.workforce-results-page .workforce-date-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.workforce-settlement-strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;font-size:11px;color:var(--muted);margin:-6px 0 18px;padding:0 3px}
.workforce-settlement-strip b{color:var(--text)}
.workforce-settlement-entry{padding:14px 0;border-bottom:1px solid var(--border);font-size:12px}
.workforce-settlement-entry header{display:flex;justify-content:space-between;gap:12px}
.workforce-settlement-entry p{margin:5px 0}
.workforce-settlement-entry summary{cursor:pointer;color:var(--primary);font-size:11px}
.workforce-settlement-counts{padding:12px 0;font-weight:600}
.workforce-team-settlement{margin-bottom:14px}
.workforce-periods{display:flex;gap:3px;padding:4px;background:#eeedf8;border-radius:8px}
.workforce-periods button{border:0;background:transparent;border-radius:5px;padding:6px 12px;font-size:11px;color:#77748d}
.workforce-periods button.active{background:#fff;color:var(--primary);box-shadow:0 1px 4px #35305b12}
.workforce-date-bar input[type=date]{width:145px;min-height:32px;padding:5px 8px}
.workforce-summary{display:grid;grid-template-columns:1.05fr 1.8fr 1fr;gap:18px;padding:15px 20px;margin-bottom:18px;align-items:center}
.workforce-summary>div+div{border-left:1px solid var(--border);padding-left:18px}
.workforce-summary small,.workforce-team-total small{display:block;color:var(--muted);font-size:10px}
.workforce-volumes,.workforce-results-grid,.workforce-rates{display:flex;flex-wrap:wrap;gap:5px 13px;font-size:11px;color:var(--muted);margin-top:5px}
.workforce-volumes b,.workforce-results-grid b,.workforce-rates b{color:var(--text);font-weight:650}
.workforce-results-grid .success b,.workforce-rates b{color:#3c9e83}.workforce-results-grid .failure b{color:#cc757b}.workforce-results-grid .expired b{color:#b98a4c}.workforce-results-grid .processing b{color:#7771d4}
.workforce-rates small{width:100%;font-size:9px;color:var(--muted)}
.workforce-performance-table{min-width:980px}.workforce-rules-table{min-width:800px}
.workforce-performance-table td>small,.workforce-rules-table td>small,.workforce-team-table td>small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.workforce-performance-table .workforce-results-grid,.workforce-performance-table .workforce-volumes{max-width:280px}
.workforce-row-actions{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.workforce-team-performance{margin-bottom:18px;padding-bottom:15px;border-bottom:1px solid var(--border)}
.workforce-team-performance .compact-header{padding:0 0 10px;border:0}.workforce-team-performance select{width:auto;min-height:30px;padding:4px 8px}
.workforce-team-total{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding:10px 13px;background:#f7f6fc;border-radius:8px;margin-bottom:11px}
.workforce-team-total small{width:100%}.workforce-team-table{min-width:650px}.workforce-performance-drawer #drawerBody{padding-top:16px}
@media(max-width:700px){.workforce-summary{grid-template-columns:1fr}.workforce-summary>div+div{border-left:0;border-top:1px solid var(--border);padding:12px 0 0}.workforce-periods{width:100%;overflow:auto}.workforce-periods button{flex:1;padding:6px 8px}.workforce-date-bar .row-actions{width:100%}.workforce-date-bar input[type=date]{flex:1;width:120px}}
@media(max-width:900px){
  .workforce-performance-table,.workforce-team-table{display:block;min-width:0;width:100%}
  .workforce-performance-table thead,.workforce-team-table thead{display:none}
  .workforce-performance-table tbody,.workforce-team-table tbody{display:block}
  .workforce-performance-table tbody tr,.workforce-team-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 18px;border-bottom:1px solid var(--border);padding:16px 18px}
  .workforce-performance-table tbody td,.workforce-team-table tbody td{display:block;padding:0!important;border:0!important;min-width:0;height:auto!important;white-space:normal}
  .workforce-performance-table tbody td::before,.workforce-team-table tbody td::before{content:attr(data-label);display:block;font-size:9px;color:var(--muted);margin-bottom:3px}
  .workforce-performance-table .workforce-results-grid,.workforce-team-table .workforce-results-grid{max-width:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 10px}
  .workforce-performance-table .workforce-volumes,.workforce-team-table .workforce-volumes{max-width:none}
  [data-workforce-kind=leaders] .workforce-performance-table td:first-child,[data-workforce-kind=leaders] .workforce-performance-table td:nth-child(3),[data-workforce-kind=leaders] .workforce-performance-table td:nth-child(4){grid-column:1/-1}
  [data-workforce-kind=members] .workforce-performance-table tbody tr{position:relative;padding-left:43px}
  [data-workforce-kind=members] .workforce-performance-table .check-cell{position:absolute;left:17px;top:20px;width:auto!important}
  [data-workforce-kind=members] .workforce-performance-table .check-cell::before{display:none}
  [data-workforce-kind=members] .workforce-performance-table td:nth-child(2),[data-workforce-kind=members] .workforce-performance-table td:nth-child(5),[data-workforce-kind=members] .workforce-performance-table td:nth-child(6){grid-column:1/-1}
  .workforce-team-table td:first-child,.workforce-team-table td:nth-child(3),.workforce-team-table td:nth-child(4){grid-column:1/-1}
  .workforce-performance-table .customer-avatar{height:30px;width:30px}
  .workforce-team-table .btn{min-height:27px;padding:3px 0}
  .workforce-performance-table td[colspan]{grid-column:1/-1}
}
