.ot-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.ot-editor-tools,.ot-actions,.ot-chart-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}.ot-edit-table{min-width:1200px}.ot-edit-table input[type=number]{width:86px}.ot-edit-table input[type=time]{width:122px}.ot-edit-table td:first-child{min-width:200px}.ot-purpose{white-space:pre-wrap;overflow-wrap:anywhere}.ot-total{font-size:1.4rem;font-weight:700}.ot-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.ot-metrics article{border:1px solid var(--line,#d7e3de);border-radius:14px;padding:20px}.ot-metrics strong{display:block;font-size:1.75rem;margin-top:8px}.ot-chart{display:grid;gap:10px;margin:22px 0;min-height:80px}.ot-bar-row{display:grid;grid-template-columns:minmax(140px,25%) 1fr;align-items:center;gap:14px;text-decoration:none;color:inherit}.ot-bar-row:focus-visible{outline:2px solid #79a88b;outline-offset:3px}.ot-bar{width:100%;height:32px}.ot-bar text{font-family:inherit;font-size:13px;fill:currentColor}.ot-bar rect{fill:#71a88b}.ot-chart-controls [aria-pressed=true]{background:#29564b;color:#fff}.ot-actions form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.ot-metrics [hidden],.ot-chart-controls [hidden]{display:none}#ot-report-rows td{white-space:nowrap}@media(max-width:800px){.ot-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ot-bar-row{grid-template-columns:120px 1fr}}@media(max-width:420px){.ot-metrics{grid-template-columns:1fr}.ot-tabs .button{flex:1 1 45%}}

.ot-sidebar-sub{padding-left:22px;margin:4px 0 14px}.ot-sidebar-sub a{display:block;color:inherit;text-decoration:none;padding:7px 12px;border-left:1px solid #91b3a4;font-size:.9rem}

/* Autosave feedback: whole message and timestamp share the status color. */
#ot-autosave-status[data-state="saved"]{color:#B01864;font-weight:700}
#ot-autosave-status[data-state="restored"]{color:#00843D;font-weight:700}
[data-theme="dark"] #ot-autosave-status[data-state="saved"]{color:#FF80B8}
[data-theme="dark"] #ot-autosave-status[data-state="restored"]{color:#57DB8D}

/* OT list filters: aligned controls, wrapping at useful widths. */
.ot-list-filters{display:grid;grid-template-columns:repeat(2,minmax(130px,1fr)) minmax(150px,1.15fr) minmax(190px,1.5fr) repeat(2,minmax(140px,1fr)) auto;gap:14px;align-items:end}
.ot-list-filters label{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0}
.ot-list-filters input,.ot-list-filters select{width:100%;min-width:0;box-sizing:border-box;margin:0;height:46px}
.ot-list-filters button{height:46px;margin:0;white-space:nowrap}
@media(max-width:1400px){.ot-list-filters{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.ot-list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.ot-list-filters{grid-template-columns:minmax(0,1fr)}}

/* OT employee selection: compact actions with responsive wrapping. */
.ot-staff-builder{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0 16px}
.ot-staff-panel{min-width:0;border:1px solid var(--line,#d7e3de);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:14px}
.ot-staff-panel h3{font-size:1.05rem;margin:0;line-height:1.5}
.ot-staff-panel p{margin:0;font-size:.9rem;line-height:1.7}
.ot-staff-panel label,.ot-time-controls label{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0}
.ot-staff-panel select,.ot-time-controls select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;height:46px;margin:0}
.ot-person-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
.ot-person-row button,.ot-time-controls button{height:46px;margin:0;white-space:nowrap}
.ot-source-field{width:100%;max-width:320px;align-self:flex-start}
.ot-staff-buttons{display:flex;gap:10px;flex-wrap:wrap}
.ot-existing-time{margin-bottom:16px}
.ot-time-controls{display:grid;grid-template-columns:minmax(0,380px) max-content;justify-content:start;align-items:end;border:1px solid var(--line,#d7e3de);border-radius:14px;padding:20px;gap:12px 14px}
.ot-time-controls .ot-time-description{grid-column:1/-1;margin:0;font-size:.9rem;line-height:1.6}
@media(max-width:1100px){.ot-staff-builder{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.ot-staff-panel,.ot-time-controls{padding:16px}.ot-staff-builder{gap:14px}}
@media(max-width:540px){.ot-person-row,.ot-time-controls{grid-template-columns:minmax(0,1fr)}.ot-person-row button,.ot-time-controls button{width:100%}.ot-source-field{max-width:100%}}

/* Compact bulk-time action and live employee total. */
.ot-time-controls{grid-template-columns:minmax(0,380px) 170px minmax(0,1fr)}
.ot-time-controls #ot-apply{width:170px;max-width:100%;height:auto;min-height:44px;padding:7px 12px;font-size:.88rem;line-height:1.35;white-space:normal}
.ot-headcount{justify-self:end;align-self:center;text-align:right;font-size:.95rem;line-height:1.5}
.ot-headcount strong{font-size:1.35rem;margin:0 5px}
#ot-editor .ot-save-actions{display:flex;margin-top:28px;padding-top:8px;margin-bottom:8px}
@media(max-width:900px){.ot-time-controls{grid-template-columns:minmax(0,380px) 170px}.ot-headcount{grid-column:1/-1;justify-self:end}}
@media(max-width:540px){.ot-time-controls{grid-template-columns:minmax(0,1fr)}.ot-time-controls #ot-apply{width:170px;justify-self:start}.ot-headcount{justify-self:start;text-align:left}}

/* Request list only: keep forms and paper output unchanged. */
.ot-list-filters .ot-list-query{grid-column:1/-1}
.ot-list-filters .ot-list-query input{max-width:720px}
.ot-list-panel .ot-list-scroll{width:100%;overflow-x:auto}
.ot-list-panel .ot-list-table{width:100%;table-layout:auto}
.ot-list-panel .ot-list-table th,.ot-list-panel .ot-list-table td{white-space:nowrap;vertical-align:middle;padding:14px 16px;text-align:left}
.ot-list-panel .ot-list-table th:last-child,.ot-list-panel .ot-list-table td:last-child{text-align:right}
.ot-list-panel .ot-list-table input[type=checkbox]{margin:0;vertical-align:middle}
.ot-list-output{margin-top:24px;padding-top:18px;border-top:1px solid var(--border,#d9e4df)}
.ot-list-output .hr-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:0}
.ot-list-output .hr-toolbar button{margin:0}
.ot-list-panel .ot-list-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:24px 0 0}
.ot-list-status{font-weight:600;border:0;background:none;padding:0;border-radius:0}
.ot-list-status[data-status=draft]{color:#596574}
.ot-list-status[data-status=pending]{color:#986000}
.ot-list-status[data-status=approved]{color:#187347}
.ot-list-status[data-status=rejected]{color:#bb2945}
.ot-list-status[data-status=cancelled]{color:#796577}
html[data-theme=dark] .ot-list-status[data-status=draft]{color:#b7c2d0}
html[data-theme=dark] .ot-list-status[data-status=pending]{color:#f3c46b}
html[data-theme=dark] .ot-list-status[data-status=approved]{color:#83dfa8}
html[data-theme=dark] .ot-list-status[data-status=rejected]{color:#ff91a6}
html[data-theme=dark] .ot-list-status[data-status=cancelled]{color:#c6adc6}

/* v11_084.15: compact checkbox, centered columns and a bounded purpose preview. */
.ot-list-panel .ot-list-table{table-layout:fixed;min-width:1100px}
.ot-list-panel .ot-list-table[data-cost-visible="0"]{min-width:970px}
.ot-list-table .ot-col-check{width:44px}
.ot-list-table .ot-col-number{width:130px}
.ot-list-table .ot-col-date{width:120px}
.ot-list-table .ot-col-department{width:170px}
.ot-list-table .ot-col-requester{width:170px}
.ot-list-table .ot-col-cost{width:130px}
.ot-list-table .ot-col-status{width:140px}
.ot-list-panel .ot-list-table th,.ot-list-panel .ot-list-table td,
.ot-list-panel .ot-list-table th:last-child,.ot-list-panel .ot-list-table td:last-child{text-align:center;overflow:hidden;text-overflow:ellipsis}
.ot-list-panel .ot-list-table .ot-check-cell{padding:14px 8px}
.ot-list-panel .ot-list-table td.ot-purpose-cell{text-align:left}
.ot-purpose-preview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}

.ot-list-status[data-status=returned]{color:#a65b00}
html[data-theme=dark] .ot-list-status[data-status=returned]{color:#ffd08a}
