/* Manual review extends the existing cream, brown and green interface. */
#view-trabalhadores .worker-assignment-cell{flex-direction:column;gap:4px;overflow-wrap:anywhere}
#view-trabalhadores .worker-assignment-cell>small{display:block;font-size:12px;line-height:1.4}
#view-trabalhadores .worker-assignment-cell details{width:100%;font-size:12px;text-align:left}
#view-trabalhadores .worker-assignment-cell summary{cursor:pointer}
#view-trabalhadores .worker-assignment-cell details .btn{width:100%;margin-top:4px}
.worker-roster-dialog{box-sizing:border-box;width:min(1200px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:22px;background:#fffaf2;color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:14px;overflow:hidden}
.worker-roster-dialog[open]{display:flex;flex-direction:column;gap:12px}
.worker-roster-dialog::backdrop{background:#20170f8c}
.worker-roster-dialog :where(h2,p){margin:0}
.worker-roster-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}
.worker-roster-header h2{font-size:24px;line-height:1.3;color:var(--ui-ink)}
.worker-roster-dialog p{font-size:14px;line-height:1.55;max-width:95ch}
.worker-roster-summary{padding-block:10px;border-block:1px solid var(--ui-line);color:var(--ui-green);font-weight:600;flex-shrink:0}
.worker-roster-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);gap:14px;flex-shrink:0}
.worker-roster-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.worker-roster-dialog :where(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid var(--ui-line);border-radius:8px;padding:9px 10px;background:#fff;color:var(--ui-ink);font:inherit}
.worker-roster-dialog .btn{min-height:44px;font:inherit;font-size:13px;white-space:normal}
.worker-roster-count{font-size:12px!important;color:var(--ui-muted)}
.worker-roster-head,.worker-roster-row{display:grid;grid-template-columns:minmax(200px,1.2fr) minmax(170px,1fr) minmax(160px,.9fr) minmax(210px,1fr);gap:16px}
.worker-roster-head{padding:10px 12px;border-bottom:1px solid var(--ui-line);font-size:12px;font-weight:700;flex-shrink:0}
.worker-roster-body{min-height:80px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#a89272 #f3eadb;scrollbar-width:thin}
.worker-roster-row{padding:16px 12px;border-bottom:1px solid var(--ui-line);font-size:13px;line-height:1.45;align-items:start}
.worker-roster-row>div{min-width:0;overflow-wrap:anywhere}
.worker-roster-row strong{display:block;font-size:14px;font-weight:700;line-height:1.45}
.worker-roster-row small{display:block;margin-top:5px;font-size:12px;line-height:1.5;color:var(--ui-muted)}
.worker-roster-id{font-variant-numeric:tabular-nums}
.worker-roster-status{display:inline-block;padding:4px 7px;border:1px solid var(--ui-line);border-radius:5px;background:#f2e8d6;color:var(--ui-ink);font-size:12px;font-weight:600}
.worker-roster-row:is([data-roster-state=hired_manual],[data-roster-state=hired_nickname]) .worker-roster-status{background:var(--ui-green-bg);color:var(--ui-green);border-color:#8d9f72}
.worker-roster-row:is([data-roster-state=not_hired_manual],[data-roster-state=excluded_manual],[data-roster-state=excluded_nickname]) .worker-roster-status{background:#f9e9df;color:#793423;border-color:#b8755e}
.worker-roster-row .worker-roster-confirmed{color:var(--ui-green);font-weight:600}
.worker-roster-actions{display:flex;align-items:center;gap:8px}
.worker-roster-action-label{flex:1;min-width:0;font-size:0}
.worker-roster-action-label select{font-size:13px}
.worker-roster-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--ui-line);flex-shrink:0}
.worker-roster-footer p{flex:1 1 350px;font-size:12px;max-width:65ch;color:var(--ui-muted)}
.worker-roster-footer .actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:1000px){.worker-roster-head{display:none}.worker-roster-row{grid-template-columns:1fr 1fr;gap:12px}.worker-roster-actions{align-self:end}}
@media(max-width:600px){
  .worker-roster-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:14px}
  .worker-roster-dialog[open]{gap:10px}
  .worker-roster-header h2{font-size:21px}
  .worker-roster-dialog p{font-size:13px}
  .worker-roster-filters{grid-template-columns:1fr;gap:10px}
  .worker-roster-dialog :where(input,select){font-size:16px}
  .worker-roster-row{grid-template-columns:1fr;padding:14px 2px;gap:8px}
  .worker-roster-actions{margin-top:4px}
  .worker-roster-footer{gap:8px}
  .worker-roster-footer .actions{width:100%}
  .worker-roster-footer .btn{flex:1 1 120px}
}
