#project-time-plan{--time-sold:#dce9f6;--time-budget:#719acb;--time-done:#25887f;--time-over:#cf4b55;--time-marker:var(--text-strong,#17365f)}
:root[data-theme="dark"] #project-time-plan{--time-sold:#354d69;--time-budget:#729ed1;--time-done:#51b5a6;--time-over:#ef7780;--time-marker:#e5eef8}
.time-budget-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}.time-budget-toolbar h2{margin:0 0 4px}.time-budget-toolbar small{color:var(--muted);font-size:12px}.time-budget-toolbar .actions{gap:6px}.time-budget-toolbar button{padding:7px 10px;font-size:12px}
.project-time-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}.project-time-kpis .stat{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;gap:8px}.project-time-kpis .stat>span{font-size:12px;color:var(--muted)}.project-time-kpis .stat>strong{font-size:17px;white-space:nowrap}
.time-plan-sold{fill:var(--time-sold);background:var(--time-sold)}.time-plan-budget{fill:var(--time-budget);background:var(--time-budget)}.time-plan-done{fill:var(--time-done);background:var(--time-done)}.time-plan-over{fill:var(--time-over);background:var(--time-over)}.time-plan-budget-limit{stroke:var(--time-marker);stroke-width:1.5}.time-plan-budget-dot{fill:var(--time-marker)}.time-plan-sold-limit{stroke:var(--time-marker);stroke-width:1}
.time-plan-table-wrap{border:1px solid var(--border);border-radius:8px;margin-bottom:20px;overflow:auto}.time-plan-table{width:100%;min-width:1000px;table-layout:auto;font-variant-numeric:tabular-nums;border-collapse:collapse}.time-plan-table thead th{font-size:10px;padding:8px;line-height:1.35;vertical-align:middle;white-space:nowrap}.time-plan-table thead th:first-child{width:27%;min-width:230px}.time-plan-table thead th:nth-last-child(3){width:18%;min-width:150px}.time-plan-table td,.time-plan-table tbody th{padding:5px 8px;font-size:12px;line-height:1.4;border-bottom:1px solid var(--border);vertical-align:middle}.time-plan-table tbody th{text-align:left;text-transform:none;letter-spacing:normal;font-weight:500}.time-plan-table small{display:block;font-size:10px;line-height:1.3;color:var(--muted);margin:1px 0}.time-plan-table .numeric{white-space:nowrap;font-size:12px}.time-plan-table input[type=number]{width:66px;max-width:100%;padding:5px 6px;font-size:12px;line-height:1.3;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text);box-sizing:border-box;margin:0}.time-plan-table [data-time-plan-fee]{width:95px!important}.time-plan-table [data-time-metric=cost]{max-width:145px;white-space:normal}.time-plan-table .time-row-actions{width:82px}.time-plan-table .time-row-actions button{padding:3px 5px;font-size:10px;white-space:normal;line-height:1.25}
.time-plan-inline{display:flex;align-items:center;gap:6px;min-width:140px}.time-plan-inline .time-plan-track{display:block;min-width:90px;width:100%;height:24px;overflow:visible}.time-plan-inline>span{font-size:10px;min-width:35px;text-align:right;white-space:nowrap}.time-plan-table [data-over-budget],.time-plan-inline.is-over>span{color:var(--text-danger,#b42c39);font-weight:700}.time-plan-table sup{font-size:10px;color:var(--muted)}
.time-plan-table .time-phase-row{background:var(--surface-soft,#edf4fc)}.time-plan-table .time-phase-row th,.time-plan-table .time-phase-row td{padding-top:9px;padding-bottom:9px;font-weight:650;border-top:2px solid var(--border)}.time-plan-table .time-phase-row button{padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left}.time-phase-chevron{display:inline-block;width:12px}.time-plan-table .time-service-row{background:var(--surface-alt,#f6f8fb)}.time-plan-table .time-service-row th{padding-left:20px;font-weight:650}.time-plan-table .time-assignment-row th,.time-plan-table .time-person-total th{padding-left:32px}.time-plan-table .time-assignment-row th>span{color:var(--muted);font-size:11px}.time-plan-table .time-person-total{font-weight:650}.time-plan-table tr[hidden]{display:none}.time-plan-table tr:focus{outline:2px solid var(--brand-blue);outline-offset:-2px}
:root[data-theme="dark"] .time-plan-table .time-phase-row{background:#243d53}:root[data-theme="dark"] .time-plan-table .time-service-row{background:#202f41}
#project-time-plan .budget-save{position:sticky;top:5px;z-index:3;padding:10px 14px;margin:8px 0;display:flex;align-items:end;justify-content:space-between;gap:12px}#project-time-plan .budget-save[hidden]{display:none}#project-time-plan .budget-save label{font-size:12px}#project-time-plan .budget-save input{padding:7px}#project-time-plan .budget-save span{font-size:11px}
.time-project-overview{border:1px solid var(--border);border-radius:8px;padding:12px 16px;background:var(--surface);margin-bottom:12px}.time-project-overview header{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;font-size:13px}.time-project-overview small{font-size:11px;color:var(--muted)}.time-project-axis{display:block;width:100%;height:34px;overflow:visible}.time-project-axis text{font-size:11px;fill:var(--text);text-anchor:middle}.time-project-axis line{stroke:var(--muted);stroke-width:1}.time-project-overview .time-plan-track{display:block;width:100%;height:30px}
@media(max-width:900px){.project-time-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.time-budget-toolbar .actions{width:100%}.time-budget-toolbar{gap:8px}.time-plan-table{min-width:1000px}#project-time-plan .budget-save{flex-wrap:wrap}.time-project-overview{padding:10px}}
.time-plan-table caption{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.time-plan-table button{min-height:0;height:auto;margin:0}.time-budget-toolbar button{min-height:30px}.time-plan-table tbody th{background:transparent}
/* Keep the daily action, phase navigation and table controls distinct. */
.time-budget-toolbar .time-budget-primary{gap:16px;flex-shrink:0}.time-budget-primary .time-history-link{padding:4px 0;border:0;background:transparent;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.time-budget-primary [data-time-plan-entry]{min-height:38px;padding:9px 14px;font-size:13px}
.time-budget-tools{gap:6px;margin:0 0 14px}.time-budget-tools>button{padding:6px 9px;min-height:30px;font-size:11px}
.time-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:18px 0 9px}.time-table-toolbar h3{margin:0;font-size:14px;font-weight:600;font-family:inherit}.time-table-toolbar .actions{gap:14px}.time-table-toolbar button{font-size:12px;padding:6px 10px;min-height:32px}.time-table-toolbar [data-time-plan-sold]{padding:4px 0;border:0;background:transparent;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.time-project-axis a{cursor:pointer;outline:none}.time-project-axis .time-phase-hit{fill:transparent;stroke:none}.time-project-axis a text{text-decoration:underline;text-underline-offset:3px}.time-project-axis a:hover text,.time-project-axis a:focus-visible text{fill:var(--brand-blue)}.time-project-axis a:focus-visible .time-phase-hit{fill:var(--surface-soft);stroke:var(--brand-blue);stroke-width:2}.time-project-axis a:hover line{stroke:var(--brand-blue)}
.time-project-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 24px;margin:16px 0 14px}.time-project-totals.is-own{grid-template-columns:repeat(3,minmax(0,1fr))}.time-project-metric{min-width:0}.time-project-metric dt{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.time-project-metric dd{margin:6px 0 0;font-size:22px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums;color:var(--text-strong,var(--ink))}.time-project-metric i{display:inline-block;width:10px;height:10px;border-radius:2px;flex-shrink:0}.time-project-metric .time-plan-dot-key{border-radius:50%;background:var(--time-marker);width:8px;height:8px}.time-project-metric.is-over dt,.time-project-metric.is-over dd{color:var(--text-danger,#b42c39)}
[data-time-plan-phase]{scroll-margin-top:16px}
@media(max-width:900px){.time-budget-toolbar .time-budget-primary{width:auto;margin-left:auto}.time-table-toolbar .actions{flex-wrap:wrap}.time-project-overview header small{font-size:10px}}@media(max-width:540px){.time-budget-toolbar .time-budget-primary{margin-left:0;width:100%;justify-content:space-between}.time-project-totals,.time-project-totals.is-own{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.time-project-metric dd{font-size:20px}.time-table-toolbar .actions{width:100%;justify-content:space-between;gap:8px}.time-table-toolbar [data-time-plan-sold]{max-width:60%;text-align:left}}
/* Compact review queue uses the existing light/dark theme tokens. */
.production-progress-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.production-progress-kpis .personal-metric{padding:14px;min-width:0}.production-progress-kpis .personal-metric strong{font-size:23px}.production-followup-table{min-width:1000px;font-size:12px}.production-followup-table td,.production-followup-table th{vertical-align:top;padding:13px 10px}.production-followup-table small,.production-days span,.production-days small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.production-followup-table td>strong{font-size:14px;white-space:nowrap}.production-client-phase+div{margin-top:10px;padding-top:8px;border-top:1px solid var(--border)}.production-client-phase>strong{font-size:11px}.production-days{line-height:1.5}.production-days .production-returned{color:var(--warning-text,#a45318)}.production-personal-metrics{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.partners-table .production-days{margin-top:10px}.time-approval-summary{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:5px;font-size:11px;color:var(--muted)}.time-approval-summary strong{color:var(--ink);font-weight:600}.time-entry-states{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 16px}.time-entry-states button{font-size:12px;padding:7px 10px;min-height:34px}.time-entry-states [aria-pressed=true]{background:var(--brand-blue);color:white;border-color:var(--brand-blue)}
@media(max-width:1000px){.production-progress-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.production-progress-kpis{grid-template-columns:1fr}.production-followup-table{min-width:0}.production-followup-table small{overflow-wrap:anywhere}.production-followup-table .production-days strong{white-space:normal}}
.time-review{margin:1rem 0 2rem}
.time-review-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.time-review-table{width:100%}
.time-review-table th,.time-review-table td{padding:.5rem .6rem}
.time-review-table input[type=checkbox]{width:1.1rem;height:1.1rem;min-height:0}
.time-review-table small{display:block}
.time-review-group th{background:var(--surface-alt,#f5f8fc);font-weight:700}
.billing-mode-dialog form>label{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:13px}.billing-mode-dialog input,.billing-mode-dialog select{box-sizing:border-box;width:100%;min-height:40px;padding:9px 12px;border:1px solid var(--field-border,var(--border));border-radius:6px;background:var(--surface,#fff);color:var(--ink);font:inherit}.billing-mode-dialog [hidden]{display:none!important}.billing-mode-dialog [data-error]:empty{display:none}
.time-review-actions{margin-top:.75rem}
.time-review-actions label{display:block;max-width:42rem;margin:.75rem 0}
.time-review-actions textarea{width:100%}
