:root{color-scheme:light dark;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;--crew-surface: var(--hris-surface, #ffffff);--crew-surface-alt: var(--hris-surface-alt, #f8fafc);--crew-text: var(--hris-on-surface, #0f172a);--crew-text-muted: var(--hris-on-surface-variant, #64748b);--crew-primary: var(--brand-primary-600, #0284c7);--crew-primary-hover: var(--brand-primary-700, #0369a1);--crew-border: var(--hris-border, #e2e8f0);--crew-danger: #ef4444;--crew-success: #10b981}:root[data-theme=dark]{--crew-surface: var(--hris-surface, #18181b);--crew-surface-alt: var(--hris-surface-alt, rgba(255, 255, 255, .05));--crew-text: var(--hris-on-surface, #f4f4f5);--crew-text-muted: var(--hris-on-surface-variant, #a1a1aa);--crew-border: var(--hris-border, rgba(255, 255, 255, .1));--crew-primary: var(--brand-primary-500, #0284c7);--crew-primary-hover: var(--brand-primary-400, #0369a1)}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){--crew-surface: var(--hris-surface, #18181b);--crew-surface-alt: var(--hris-surface-alt, rgba(255, 255, 255, .05));--crew-text: var(--hris-on-surface, #f4f4f5);--crew-text-muted: var(--hris-on-surface-variant, #a1a1aa);--crew-border: var(--hris-border, rgba(255, 255, 255, .1));--crew-primary: var(--brand-primary-500, #0284c7);--crew-primary-hover: var(--brand-primary-400, #0369a1)}}body{margin:0;padding:0;background:transparent;color:var(--crew-text)}[data-testid=bridge-state]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#app{max-width:72rem;margin:0 auto;padding:1.25rem;background:var(--crew-surface);box-sizing:border-box}body.is-card #app{padding:0;background:transparent;max-width:100%}[data-testid=crew-ledger-card]{display:flex;flex-direction:column;gap:.75rem;padding:1rem;border-radius:.5rem;background:var(--crew-surface-alt);border:1px solid var(--crew-border)}[data-testid=crew-ledger-card] h2{margin:0;font-size:1.125rem;font-weight:600;color:var(--crew-text)}[data-testid=crew-ledger-burn-summary]{margin:0;font-size:.875rem;color:var(--crew-text-muted);font-weight:500}[data-testid=crew-ledger-page] h1{margin:0 0 .5rem;font-size:1.5rem;font-weight:700;letter-spacing:-.025em}[data-testid=crew-ledger-status]{margin:0 0 1.25rem;font-size:.9375rem;color:var(--crew-text-muted);padding:.625rem .875rem;background:var(--crew-surface-alt);border-radius:.375rem;border-left:3px solid var(--crew-primary)}[data-testid=crew-ledger-grid]{display:flex;flex-direction:column;gap:.75rem}tr[data-line=true]{display:table-row}button{font:inherit;font-weight:600;font-size:.875rem;padding:.5rem 1rem;border-radius:.375rem;cursor:pointer;transition:background-color .15s ease,opacity .15s ease;border:none}[data-testid=crew-ledger-open],[data-testid=crew-ledger-submit]{background:var(--crew-primary);color:#fff;align-self:flex-start;margin-top:.5rem}[data-testid=crew-ledger-open]:hover,[data-testid=crew-ledger-submit]:hover{background:var(--crew-primary-hover)}button:disabled{opacity:.6;cursor:not-allowed}li[data-verdict]{color:var(--crew-danger);font-size:.8125rem;font-weight:500;list-style-type:none;padding:.25rem .5rem;background:#ef44441a;border-radius:.25rem}[data-testid=crew-ledger-error],.error-msg{color:var(--crew-danger);background:#ef44441a;padding:.75rem 1rem;border-radius:.375rem;font-size:.875rem;font-weight:500}.dashboard-container{display:flex;flex-direction:column;gap:1.25rem;width:100%}.dash-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem}.dash-kpi-card{display:flex;flex-direction:column;gap:.25rem;padding:.875rem 1rem;background:var(--crew-surface-alt);border:1px solid var(--crew-border);border-radius:.5rem}.dash-kpi-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--crew-text-muted)}.dash-kpi-val{font-size:1.375rem;font-weight:700;color:var(--crew-text);letter-spacing:-.02em}.dash-kpi-sub{font-size:.75rem;color:var(--crew-text-muted);font-weight:500}.dash-kpi-sub.positive{color:var(--crew-success)}.dash-charts-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:1rem}@media (max-width: 768px){.dash-charts-grid{grid-template-columns:1fr}}.dash-chart-card{display:flex;flex-direction:column;gap:.875rem;padding:1rem 1.125rem;background:var(--crew-surface-alt);border:1px solid var(--crew-border);border-radius:.5rem}.chart-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--crew-border);padding-bottom:.625rem}.chart-title{margin:0;font-size:.9375rem;font-weight:600;color:var(--crew-text)}.chart-badge{font-size:.75rem;font-weight:600;padding:.125rem .5rem;border-radius:9999px;background:#0284c726;color:var(--crew-primary)}.bar-chart-list{display:flex;flex-direction:column;gap:.75rem}.bar-row{display:flex;flex-direction:column;gap:.3125rem}.bar-row-info{display:flex;justify-content:space-between;font-size:.8125rem;color:var(--crew-text)}.bar-job-name{font-weight:500}.job-code{color:var(--crew-text-muted);font-size:.75rem}.bar-job-stats{font-size:.75rem;color:var(--crew-text-muted)}.bar-track{width:100%;height:8px;background:#0000000f;border-radius:4px;overflow:hidden}:root[data-theme=dark] .bar-track{background:#ffffff1a}.bar-fill{height:100%;border-radius:4px;transition:width .4s ease}.donut-section{display:flex;align-items:center;gap:1.25rem}.donut-visual{flex-shrink:0;width:140px;height:140px}.donut-svg{width:100%;height:100%}.donut-center-label{font-size:1.5rem;font-weight:700;fill:var(--crew-text)}.donut-center-sub{font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;fill:var(--crew-text-muted)}.donut-legend{display:flex;flex-direction:column;gap:.5rem;flex-grow:1}.legend-item{display:flex;align-items:center;gap:.5rem;font-size:.8125rem}.legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.legend-name{flex-grow:1;color:var(--crew-text);font-weight:500}.legend-val{font-size:.75rem;color:var(--crew-text-muted)}.dash-footer{display:flex;align-items:center;justify-content:space-between;padding-top:.25rem}.dash-footer-note{font-size:.75rem;color:var(--crew-text-muted);font-style:italic}.dash-workspace-btn{background:var(--crew-primary);color:#fff;font-size:.8125rem;font-weight:600;padding:.375rem .875rem;border-radius:.375rem;border:none;cursor:pointer;transition:background-color .15s ease}.dash-workspace-btn:hover{background:var(--crew-primary-hover)}.crew-ledger-page{display:flex;flex-direction:column;gap:1.25rem}.crew-page-header{display:flex;flex-direction:column;gap:.5rem}.crew-title-row{display:flex;align-items:center;gap:.75rem}.crew-title-row h1{margin:0;font-size:1.5rem;font-weight:700;letter-spacing:-.025em}.crew-header-badge{font-size:.75rem;font-weight:600;padding:.2rem .6rem;border-radius:9999px;background:#0284c71f;color:var(--crew-primary);border:1px solid rgba(2,132,199,.25)}.crew-status-bar{margin:0;font-size:.875rem;color:var(--crew-text-muted);padding:.5rem .75rem;background:var(--crew-surface-alt);border-radius:.375rem;border-left:3px solid var(--crew-primary)}.crew-card-panel{display:flex;flex-direction:column;gap:1rem;padding:1.125rem;background:var(--crew-surface-alt);border:1px solid var(--crew-border);border-radius:.625rem}.panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;border-bottom:1px solid var(--crew-border);padding-bottom:.75rem}.panel-header h2{margin:0 0 .25rem;font-size:1.0625rem;font-weight:600;color:var(--crew-text);letter-spacing:-.01em}.panel-sub{margin:0;font-size:.8125rem;color:var(--crew-text-muted)}.status-healthy{border-color:#10b9814d}.status-warning{border-color:#f59e0b66}.status-overrun{border-color:#ef444480;background:#ef44440a}.crew-roster-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:.75rem}.crew-member-card{display:flex;align-items:center;gap:.875rem;padding:.75rem .875rem;background:var(--crew-surface);border:1px solid var(--crew-border);border-radius:.5rem}.crew-avatar{width:2.5rem;height:2.5rem;border-radius:50%;background:var(--crew-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.875rem;flex-shrink:0}.crew-member-info{display:flex;flex-direction:column;gap:.125rem;flex-grow:1;min-width:0}.crew-member-name{font-size:.875rem;font-weight:600;color:var(--crew-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crew-member-dept{font-size:.75rem;color:var(--crew-text-muted)}.crew-member-rate{font-size:.6875rem;color:var(--crew-primary);font-weight:500}.crew-duty-btn{font-size:.75rem;padding:.25rem .625rem;border-radius:9999px;border:1px solid var(--crew-border);background:transparent;color:var(--crew-text-muted);cursor:pointer;white-space:nowrap}.crew-duty-btn.active{background:#10b98126;border-color:#10b98166;color:var(--crew-success);font-weight:600}.mass-controls-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem}.mass-field{display:flex;flex-direction:column;gap:.25rem;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--crew-text-muted)}.mass-field input,.mass-field select,.crew-select{font:inherit;font-size:.875rem;padding:.45rem .625rem;border:1px solid var(--crew-border);border-radius:.375rem;background:var(--crew-surface);color:var(--crew-text);outline:none}.mass-field input:focus,.mass-field select:focus,.crew-select:focus{border-color:var(--crew-primary);box-shadow:0 0 0 2px #0284c733}.mass-action-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;padding-top:.5rem}.mass-presets{display:flex;gap:.5rem}.btn-preset{font-size:.75rem;padding:.25rem .5rem;background:var(--crew-surface);border:1px solid var(--crew-border);color:var(--crew-text-muted);border-radius:.25rem}.btn-preset:hover{background:var(--crew-surface-alt);color:var(--crew-text)}.btn-mass-allocate{background:var(--crew-primary);color:#fff;padding:.55rem 1.25rem;font-size:.875rem;font-weight:600;border-radius:.375rem;transition:background-color .15s ease}.btn-mass-allocate:hover{background:var(--crew-primary-hover)}.radar-list{display:flex;flex-direction:column;gap:.875rem}.radar-row{display:flex;flex-direction:column;gap:.375rem;padding:.625rem .75rem;background:var(--crew-surface);border:1px solid var(--crew-border);border-radius:.5rem}.radar-info{display:flex;justify-content:space-between;align-items:center;font-size:.8125rem}.radar-job-name{font-weight:600;color:var(--crew-text)}.radar-job-stats{font-size:.75rem;color:var(--crew-text-muted)}.radar-track{width:100%;height:10px;background:#0000000f;border-radius:5px;overflow:hidden}:root[data-theme=dark] .radar-track{background:#ffffff1a}.radar-fill{height:100%;border-radius:5px;transition:width .35s ease}.radar-fill.status-healthy{background:#10b981}.radar-fill.status-warning{background:#f59e0b}.radar-fill.status-overrun{background:#ef4444}.radar-badge{align-self:flex-start;font-size:.6875rem;font-weight:600;padding:.125rem .5rem;border-radius:9999px}.badge-healthy{background:#10b98126;color:var(--crew-success)}.badge-warning{background:#f59e0b26;color:#f59e0b}.badge-overrun{background:#ef444426;color:var(--crew-danger)}.radar-empty{font-size:.875rem;color:var(--crew-text-muted);font-style:italic;margin:0}.crew-lines-container{display:flex;flex-direction:column;gap:.625rem}.crew-table-wrapper{overflow-x:auto;border:1px solid var(--crew-border);border-radius:.5rem;background:var(--crew-surface)}.crew-data-table{width:100%;border-collapse:collapse;font-size:.8125rem;text-align:left;table-layout:fixed}.crew-thead th{padding:.625rem .75rem;font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--crew-text-muted);border-bottom:1px solid var(--crew-border);background:var(--crew-surface-alt);white-space:nowrap}.crew-table-row{border-bottom:1px solid var(--crew-border);transition:background-color .15s ease}.crew-table-row:last-child{border-bottom:none}.crew-table-row:hover{background-color:var(--crew-surface-alt)}.crew-table-row td{padding:.375rem .625rem;vertical-align:middle}.th-emp,.td-emp{width:25%}.th-date,.td-date{width:14%}.th-hours,.td-hours{width:10%}.th-job,.td-job{width:23%}.th-cc,.td-cc{width:16%}.th-cost,.td-cost{width:9%}.th-action,.td-action{width:3%}.text-right{text-align:right}.text-center{text-align:center}.crew-table-row input.text-right{text-align:right}.crew-table-row input,.crew-table-row select{font:inherit;font-size:.8125rem;width:100%;box-sizing:border-box;padding:.375rem .5rem;border:1px solid var(--crew-border);border-radius:.375rem;background:var(--crew-surface);color:var(--crew-text);outline:none;transition:border-color .15s ease}.crew-table-row input:focus,.crew-table-row select:focus{border-color:var(--crew-primary);box-shadow:0 0 0 2px #0284c733}.line-cost-preview{font-size:.75rem;font-weight:600;color:var(--crew-text-muted);white-space:nowrap;text-align:right;padding-right:.25rem}.btn-remove-line{background:transparent;color:var(--crew-text-muted);font-size:1rem;padding:.25rem .5rem;border-radius:.25rem;border:none;cursor:pointer;line-height:1}.btn-remove-line:hover{color:var(--crew-danger);background:#ef44441a}.btn-secondary{background:var(--crew-surface);border:1px solid var(--crew-border);color:var(--crew-text)}.btn-secondary:hover{background:var(--crew-surface-alt)}.btn-sm{font-size:.75rem;padding:.25rem .625rem}.attestation-box{display:flex;flex-direction:column;gap:.625rem;padding:.875rem;background:var(--crew-surface);border:1px solid var(--crew-border);border-radius:.5rem}.attestation-checkbox-label{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:var(--crew-text);cursor:pointer}.supervisor-seal{margin-top:.5rem;padding:.625rem .75rem;background:#0284c714;border:1px dashed var(--crew-primary);border-radius:.375rem}.seal-badge{display:flex;align-items:center;gap:.625rem}.seal-icon{display:flex;align-items:center;justify-content:center;color:var(--crew-primary);flex-shrink:0}.seal-text{display:flex;flex-direction:column;gap:.125rem;font-size:.8125rem;color:var(--crew-text)}.seal-text small{color:var(--crew-text-muted);font-size:.6875rem}.certify-action-row{display:flex;justify-content:flex-end;padding-top:.5rem}.btn-certify-submit{background:#059669;color:#fff;font-size:.875rem;font-weight:600;padding:.625rem 1.25rem;border-radius:.375rem;border:none;cursor:pointer;transition:background-color .15s ease}.btn-certify-submit:hover{background:#047857}
