.staff-shifts{color:#183f36;min-width:0}.shift-hero{padding:1.4rem;border-radius:18px;background:linear-gradient(125deg,#e7f4ed,#edf2ff 58%,#fff2e3);margin-bottom:1rem}.shift-hero h3{margin:.3rem 0}.shift-hero p:last-child{margin-bottom:0}.shift-section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.shift-section-heading h3,.shift-section-heading h4{margin:.25rem 0}.shift-chip{display:inline-flex;padding:.35rem .65rem;border-radius:999px;background:#e3f2ed;color:#245c4b;font-size:.85em}.shift-chip.review{background:#fff0d7;color:#78491c}.shift-chip.recorded{background:#e7edf9;color:#38577e}.shift-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:.8rem}.shift-toolbar>div{display:flex;gap:.5rem;flex-wrap:wrap}.shift-toolbar label{flex:1;min-width:180px}.shift-toolbar input,.shift-toolbar select{margin-bottom:0}.shift-plan-grid,.shift-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.shift-plan-card,.shift-records>article{padding:1rem;border:1px solid #d4e4dd;border-radius:14px;background:#fbfdfb;min-width:0;overflow-wrap:anywhere}.shift-plan-card h4{margin:.8rem 0 .3rem}.shift-plan-card p{margin:.5rem 0}.shift-plan-card button{margin-top:.7rem}.shift-empty{padding:1rem;border-radius:14px;background:#f0f5f3;margin:1rem 0}.shift-ack{color:#456f65;font-size:.92em}.shift-comparison{margin:1.2rem 0;padding:1rem;background:#f7fafb;border:1px solid #dce7e6;border-radius:18px}.shift-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin:1rem 0}.shift-metrics article{padding:.9rem;background:#fff;border-radius:12px;border:1px solid #e0e9e5;min-width:0}.shift-metrics small{display:block;color:#57746c;line-height:1.4}.shift-metrics strong{display:block;font-size:1.15em;margin-top:.4rem;overflow-wrap:anywhere}.shift-coverage{display:block;height:18px;width:100%;min-height:18px;overflow:hidden;border-radius:8px;background:#e5ebe9}.shift-coverage .closed{fill:#5085ad}.shift-coverage .provisional{fill:#e9b35d}.shift-coverage .unrecorded{fill:#cf818b}.shift-legend{display:flex;gap:.6rem 1rem;flex-wrap:wrap;font-size:.8em;margin:.6rem 0;color:#4c675f}.shift-legend span:before{content:'';display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:.35rem;background:#5085ad}.shift-legend span:nth-child(2):before{background:#e9b35d}.shift-legend span:nth-child(3):before{background:#cf818b}.shift-review-note{padding:.8rem;border-radius:10px;background:#fff2dc;color:#76521f}.shift-records{display:grid;gap:.7rem;margin-top:1rem}.shift-records p{margin:.5rem 0}.shift-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.8rem}.shift-edit fieldset{min-width:0;border:1px solid #d3e2db;border-radius:12px;padding:1rem;margin:.8rem 0}.shift-edit>button[type=submit]{margin-top:1rem}.staff-shifts .sop-history article{overflow-wrap:anywhere}.staff-shifts label,.staff-shifts input,.staff-shifts select{min-width:0;max-width:100%}@media(max-width:680px){.shift-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.shift-plan-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:420px){.shift-two{grid-template-columns:minmax(0,1fr)}.shift-comparison{padding:.8rem}.shift-metrics article{padding:.65rem}.shift-hero{padding:1rem}.shift-toolbar label{min-width:100%}}
#app-dialog:has(.staff-shifts){width:min(860px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
.staff-shifts{font-size:14px;line-height:1.6}
.staff-shifts p,.staff-shifts small{overflow-wrap:anywhere}
.staff-shifts label{display:grid;gap:7px;margin:14px 0;font-weight:600}
.staff-shifts input:not([type=checkbox]),.staff-shifts select{display:block;width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #b8cec4;border-radius:10px;background:#fff;color:#183f36;font:inherit;min-height:44px}
.staff-shifts input:focus-visible,.staff-shifts select:focus-visible{outline:2px solid #5085ad;outline-offset:2px}
.staff-shifts .check{display:flex;align-items:flex-start;gap:10px;font-weight:400;padding:12px 14px;border-radius:10px;background:#f1f7f4}
.staff-shifts .check input{flex:none;width:17px;height:17px;margin:3px 0 0;accent-color:#245c4b}
.staff-shifts .button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px}
.staff-shifts .shift-two>label{margin:10px 0}
.staff-shifts form{margin:14px 0 20px}
.staff-shifts details>summary{cursor:pointer;padding:10px 0;font-weight:600}
.staff-shifts .sop-history article>small{display:block;color:#57746c;margin-top:4px}
.staff-shifts .shift-edit>h4{margin:22px 0 10px}
@media(max-width:420px){.staff-shifts{font-size:13px}.staff-shifts input:not([type=checkbox]),.staff-shifts select{padding:10px;min-height:44px}}

.extra-panel .assisted-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.extra-panel .assisted-steps>span{padding:12px;border:1px solid #e6dbf0;border-radius:12px;background:#f7f2fc;color:#715881;overflow-wrap:anywhere;font-size:12px}.extra-panel .assisted-steps .done{background:#eaf6f0;border-color:#cbe5d8;color:#285a45}.extra-panel .extra-state.awaiting_acknowledgement{background:#fff2d8;color:#805c24}.extra-panel .extra-state.declined{background:#fae9ed;color:#92455b}@media(max-width:680px){.extra-panel .assisted-steps{grid-template-columns:1fr}}

.reviewer-change-panel{margin:1rem 0;padding:1rem 1.1rem;border:1px solid #c8d7e5;border-radius:16px;background:linear-gradient(120deg,#f0f6fd,#faf5ff);color:#20394e;overflow-wrap:anywhere}.reviewer-change-panel p{margin:.4rem 0}.reviewer-change-panel .eyebrow{color:#355c7d}

.availability-files{margin:1.25rem 0;padding:1rem;border:1px solid #c8d7e5;border-radius:18px;background:#f5f8fd;overflow-wrap:anywhere}.availability-file-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:.8rem}.availability-file-grid article{padding:1rem;border:1px solid #dce3ef;background:#fff;border-radius:14px}.availability-file-grid article p{margin:.4rem 0}.availability-file-grid small{display:block;margin-bottom:.8rem}.availability-files form{margin-top:1rem;padding-top:1rem;border-top:1px solid #dce3ef}.availability-files input[type=file]{max-width:100%;padding:.7rem;font-size:12px}
.leave-types{margin:1rem 0}.leave-types>article{padding:1rem;margin:1rem 0;background:#f5f4fc;border:1px solid #dcd8f0;border-radius:16px}.leave-type-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.leave-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1rem 0;border:1px solid #dce6e5;border-radius:14px;padding:1rem}.leave-roles label{display:flex;align-items:center;gap:.5rem}.leave-roles input{width:auto}.leave-rule-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem;margin:1rem 0}.leave-rule-cards article{padding:1rem;border:1px solid #cddfea;border-radius:16px;background:linear-gradient(145deg,#f3f8fc,#faf4ff);overflow-wrap:anywhere}.leave-rule-cards dt{font-size:12px;color:#526e73}.leave-rule-cards dd{margin:0 0 .7rem;font-weight:600}@media(max-width:600px){.leave-type-fields{grid-template-columns:1fr}.leave-roles{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Assigned leave rules share the responsive, private People panels. */

.leave-ledger-table{overflow-x:auto;margin:16px 0;border:1px solid #d5dcef;border-radius:14px}.leave-ledger-table table{width:100%;border-collapse:collapse;font-size:13px}.leave-ledger-table th,.leave-ledger-table td{padding:12px;text-align:left;border-bottom:1px solid #e2e7f0;overflow-wrap:anywhere}.leave-ledger-table thead{background:#eef2fd;color:#30496d}.leave-ledger-table tbody tr:nth-child(even){background:#f5faf8}.leave-rule-cards strong{display:block;font-size:24px;color:#165b50;margin:12px 0}@media(max-width:600px){.leave-ledger-table th,.leave-ledger-table td{padding:8px 5px;font-size:11px}}

@media(max-width:600px){.leave-ledger-table{overflow:visible}.leave-ledger-table table{display:block;min-width:0;width:100%;table-layout:fixed}.leave-ledger-table thead{position:absolute;clip:rect(0,0,0,0);height:1px;width:1px;overflow:hidden;white-space:nowrap}.leave-ledger-table tbody{display:block;width:100%}.leave-ledger-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.leave-ledger-table tbody th{grid-column:1/-1;font-size:12px;padding:12px;background:#eaf3ef;white-space:normal}.leave-ledger-table td{min-width:0;white-space:normal;font-size:12px;padding:12px 8px}.leave-ledger-table td::before{content:attr(data-label);display:block;font-size:10px;line-height:1.4;color:#587079;margin-bottom:6px;font-weight:600}}

.leave-request-summary,.leave-request-policy {padding:1.1rem;border:1px solid #cfdfdc;border-radius:18px;background:linear-gradient(125deg,#eef8f3,#f7f4ec);margin:1rem 0;overflow-wrap:anywhere}.leave-request-summary h4,.leave-request-policy h4 {margin:.35rem 0}.leave-request-panel .sop-fields {grid-template-columns:repeat(2,minmax(0,1fr))}.leave-request-panel input,.leave-request-panel select,.leave-request-panel textarea {min-width:0;width:100%;box-sizing:border-box}.leave-request-panel .button {white-space:normal}.leave-request-numbers {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.leave-request-numbers article {border-radius:12px;background:#fff;padding:.75rem}.leave-request-numbers strong {display:block;font-size:1.25rem;color:#144b3b}.leave-request-panel small {overflow-wrap:anywhere}@media(max-width:600px){.leave-request-panel .sop-fields {grid-template-columns:1fr}.leave-request-numbers {grid-template-columns:1fr}.leave-request-panel {padding:.8rem}}
.leave-request-panel .check{display:flex;align-items:flex-start;gap:10px;line-height:1.5}.leave-request-panel .check input[type=checkbox]{width:18px;min-width:18px;height:18px;flex:0 0 18px;margin:4px 0 0}

.shift-plan-grid.is-attendance{grid-template-columns:minmax(0,1fr)}.shift-review-heading{padding:1rem 0}.shift-review-summary,.shift-review-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.shift-review-summary article:nth-child(2){background:#fff4df}.shift-review-summary article:nth-child(3){background:#fff6e8}.shift-review-summary article:nth-child(4){background:#fff0f1}@media(max-width:680px){.shift-review-summary,.shift-review-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
