/* Staff worked hours (My profile and Staff Management). Scoped to .staff-hours and the hours modal form. */
/* Calm Register look for hours, payroll and monthly invoices; applies only under html.tr. */
@import url('/static/calm-staff-finance.css?v=calm-staff-finance-20261013');
.staff-hours .hours-filters{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:end;margin:12px 0 16px}
.staff-hours .hours-filters label{margin:0}
.staff-hours .hours-list{display:grid;gap:10px}
.staff-hours .hours-row{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
.staff-hours .hours-main{display:grid;gap:3px;min-width:0;flex:1 1 300px}
.staff-hours .hours-meta,.staff-hours .hours-note,.staff-hours .hours-rate{color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.staff-hours .hours-review{color:#9a3412;font-size:14px}
.staff-hours .hours-type{display:inline-block;border-radius:999px;padding:1px 8px;font-size:13px;font-weight:600;background:#eef2ff;color:#3730a3}
.staff-hours .hours-type-admin{background:#ecfdf5;color:#065f46}
.staff-hours .hours-type-cover{background:#fff7ed;color:#9a3412}
.staff-hours .hours-type-extra{background:#f5f3ff;color:#5b21b6}
.staff-hours .hours-actions{display:flex;flex-wrap:wrap;gap:8px}
.staff-hours .hours-superseded,.staff-hours .hours-cancelled{background:#f8fafc;opacity:.8}
.staff-hours .hours-superseded .hours-main>strong,.staff-hours .hours-cancelled .hours-main>strong{text-decoration:line-through}
.staff-hours .hours-submitted{border-color:#93c5fd}
.staff-hours .hours-returned{border-color:#fdba74}
.staff-hours .hours-summary{border:1px solid var(--line);border-radius:12px;padding:14px;margin:0 0 16px;background:#f8faff}
.staff-hours .hours-summary h3{margin:0 0 10px}
.staff-hours .hours-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.staff-hours .hours-summary-grid div{display:grid;gap:2px}
.staff-hours .hours-summary-grid span{color:var(--muted);font-size:13px}
.staff-hours .hours-lines,.staff-hours .hours-policy{margin:10px 0 0;padding-left:20px;font-size:14px}
.staff-hours .hours-rate-missing{color:#9a3412;font-weight:600}
.staff-hours .hours-pending{color:var(--muted);margin:8px 0 0}
.staff-hours .hours-table-wrap{overflow-x:auto}
.staff-hours .hours-table{width:100%;border-collapse:collapse;font-size:14px}
.staff-hours .hours-table th,.staff-hours .hours-table td{text-align:left;padding:8px;border-bottom:1px solid var(--line);white-space:nowrap}
.staff-hours .hours-toolbar{margin:0 0 8px}
.hours-form .hours-mode{display:flex;flex-wrap:wrap;gap:8px 18px}
.hours-form .hours-times,.hours-form .hours-duration{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.hours-form .hours-times[hidden],.hours-form .hours-duration[hidden]{display:none}
.hours-form .hours-paid{margin:0;font-weight:600}
.hours-form .hours-paid:empty,.hours-form .error:empty{display:none}
.hours-form .hours-form-actions{display:flex;flex-wrap:wrap;gap:10px}
.hours-history{padding-left:20px}
.staff-hours .hours-summary-grid small{color:var(--muted);font-size:12px}
.hours-form .hours-periods label{max-width:220px}
.hours-form .hours-periods .staff-field-help{margin:6px 0 0}
@media(max-width:700px){.staff-hours .hours-actions{width:100%}.staff-hours .hours-actions button{flex:1 1 auto}}
/* Staff hours page: side filter, teacher search and the stage overview. */
.staff-hours .hours-picker{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:end;margin:12px 0 0}
.staff-hours .hours-picker .segmented button[aria-pressed=true]{font-weight:650}
.staff-hours .hours-find{margin:0;min-width:min(240px,100%)}
.staff-hours .hours-overview{border:1px solid var(--line);border-radius:12px;padding:14px;margin:0 0 16px;background:#fff}
.staff-hours .hours-overview .hours-summary-grid>div{border-left:3px solid var(--line);padding-left:8px}
.staff-hours .hours-stage-scheduled{border-left-color:#94a3b8!important}
.staff-hours .hours-stage-draft{border-left-color:#cbd5e1!important}
.staff-hours .hours-stage-submitted{border-left-color:#93c5fd!important}
.staff-hours .hours-stage-returned{border-left-color:#fdba74!important}
.staff-hours .hours-stage-approved{border-left-color:#4ade80!important}
.staff-hours .hours-warnings{margin:10px 0 0;padding-left:20px;font-size:14px;color:#9a3412}
.staff-hours .hours-scheduled{font-weight:600;color:var(--ink,inherit)}
.staff-hours .hours-toolbar{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center}
.staff-hours button[disabled]{cursor:not-allowed;opacity:.6}
/* Staff card hours icon: same size as the other card icon buttons. */
.staff-hours-icon svg{width:20px;height:20px}
/* Confirm worked hours dialog. */
#hoursConfirmLoad{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:end;margin:12px 0}
#hoursConfirmLoad label{margin:0}
#hoursConfirmForm .hours-policy{margin:8px 0 12px;padding-left:20px;font-size:14px}
.hours-confirm-day{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:0 0 10px;display:grid;gap:8px}
.hours-confirm-day legend{font-weight:650;padding:0 4px}
.hours-confirm-slot{display:grid;gap:4px;padding:8px 10px;border-radius:10px;background:#f8faff}
.hours-confirm-slot.is-blocked{background:#f8fafc;opacity:.85}
.hours-confirm-slot.is-absent{background:#fff;outline:1px dashed var(--line)}
.hours-confirm-slot.is-absent .hours-confirm-worked span{text-decoration:line-through;color:var(--muted)}
.hours-confirm-slot .hours-meta{color:var(--muted);font-size:14px}
.hours-confirm-times{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end}
.hours-confirm-times label{margin:0}
.hours-confirm-note{flex:1 1 220px}
.hours-confirm-other{margin:14px 0;display:grid;gap:8px}
.hours-confirm-other h3{margin:0}
.hours-confirm-extra{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.hours-confirm-extra label{margin:0}
.hours-confirm-extra label[hidden]{display:none}
.hours-confirm-reason{flex:1 1 260px}
#hoursConfirmForm .hours-paid{font-weight:600}
#hoursConfirmForm .hours-form-actions{display:flex;flex-wrap:wrap;gap:10px}
#hoursConfirmForm .error:empty{display:none}
@media(max-width:700px){.hours-confirm-times label,.hours-confirm-extra label{flex:1 1 140px}#hoursConfirmForm .hours-form-actions button{flex:1 1 auto}}
