/* Ferox Tid v2.0 - schedule. App CSS still owns the overall design. */
.app-area .schedule-head{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.schedule-head h1{margin:3px 0 8px;font-size:28px}.schedule-head h1 small{font-size:15px;color:#63758e;letter-spacing:0}
.schedule-head p{margin:0;color:#60748c;font-size:14px}.schedule-week-nav,.schedule-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.schedule-week-nav .btn,.schedule-actions .btn{min-height:36px;padding:8px 12px;font-size:13px}.schedule-actions{margin:0 0 16px}
.app-area .schedule-board{padding:18px 18px 12px;margin-bottom:20px}
.schedule-board-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.schedule-board-head h2{margin:0;font-size:18px}
.schedule-scroller{max-width:100%;overflow-x:auto;border:1px solid #e0e8f2;border-radius:12px;scrollbar-gutter:stable}
.app-area .schedule-grid{border-collapse:separate;border-spacing:0;width:100%;min-width:890px;font-size:12px;table-layout:fixed}
.app-area .schedule-grid th,.app-area .schedule-grid td{border:0;border-right:1px solid #e7edf5;border-bottom:1px solid #e7edf5;padding:9px 7px;vertical-align:top}
.app-area .schedule-grid thead th{background:#f0f5fc;color:#334b68;text-align:center;font-size:12px;padding:11px 6px}
.schedule-grid thead th span{display:block;font-size:11px;color:#75869b;font-weight:500}
.app-area .schedule-grid .person{position:sticky;left:0;z-index:1;width:135px;background:#f8fafd;text-align:left;padding:12px 9px;overflow-wrap:anywhere}
.app-area .schedule-grid thead .person{z-index:3;background:#eaf1fa}
.app-area .schedule-grid .total{width:55px;text-align:center;background:#f8fbff;font-weight:700;color:#314c71}
.app-area .schedule-day{height:75px;background:#fff}
.shift-tile{display:flex;flex-direction:column;gap:4px;padding:7px 6px;margin-bottom:6px;border-radius:8px;background:#e9f2ff;border-left:3px solid #567fb4;color:#1e3857;min-width:0;overflow-wrap:anywhere}
.shift-tile.is-draft{background:#f2f5fa;border-left-color:#9caabd}.shift-tile strong{font-size:11px}.shift-tile span{font-size:10px;line-height:1.3}
.shift-tile .shift-status{color:#67809a}.shift-tile a{color:#214d83;text-decoration:underline;font-size:11px;font-weight:700}
.schedule-mobile-hint{margin:9px 0 0}.schedule-empty{padding:25px;text-align:center;color:#64748b}
.schedule-panels{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.app-area .schedule-panel{padding:20px 22px;margin-bottom:18px}.schedule-panel h2{margin:0 0 9px;font-size:19px}.schedule-panel h3{font-size:15px;margin:17px 0 8px}
.schedule-panel .section-help{font-size:13px;margin-bottom:15px}.schedule-panel>.field,.schedule-panel form>.field{margin-bottom:13px}
.schedule-panel .field label{font-size:12px;margin-bottom:5px}.schedule-panel .field input,.schedule-panel .field select{min-height:41px;padding:9px 10px}
.schedule-form-actions{display:flex;margin-top:16px}.schedule-form-actions .btn{min-height:38px;font-size:13px;padding:8px 14px}
.schedule-delete-form{margin-top:8px}.schedule-delete-form .btn{padding:7px 12px;min-height:35px}
.schedule-template-list{border-top:1px solid #e4ebf4;margin-top:20px;padding-top:6px}.schedule-template-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e6ebf3}
.schedule-template-item small{display:block;color:#75869b;font-size:11px;margin-top:4px}.schedule-link-btn{background:none;border:none;color:#a04444;cursor:pointer;padding:8px;font-size:12px}
.schedule-panel hr{border:0;border-top:1px solid #e4ebf4;margin:22px 0}
@media(max-width:950px){.schedule-panels{grid-template-columns:1fr}.app-area .schedule-board{padding:13px}.schedule-week-nav{width:100%}}
@media(max-width:580px){.schedule-head h1{font-size:25px}.schedule-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-actions>a,.schedule-actions>form,.schedule-actions>form button{width:100%}.schedule-week-nav .btn{font-size:12px;padding:7px 9px}.app-area .schedule-panel{padding:17px}.app-area .schedule-grid{min-width:840px}}

/* v2.0.3 – click to plan and opening-hour notices */
.app-area .schedule-day{position:relative;min-width:0;padding:5px}
.schedule-empty-pick{width:100%;height:100%;min-height:64px;border:1px dashed transparent;border-radius:9px;display:flex;align-items:center;justify-content:center;background:transparent;color:#55759d;cursor:pointer;opacity:.45;font-size:22px;transition:background .15s,border-color .15s,opacity .15s}
.schedule-empty-pick:hover,.schedule-empty-pick:focus-visible{opacity:1;background:#e9f3ff;border-color:#8baedb;outline-offset:2px}
.schedule-empty-pick.is-selected{opacity:1;background:#e3efff;border-color:#507da9}
.shift-tile[data-edit-url]{cursor:pointer}
.shift-tile[data-edit-url]:hover,.shift-tile[data-edit-url]:focus-visible{outline:2px solid #5b85bc;outline-offset:1px}
.schedule-hours-warning{margin-top:12px;padding:12px 13px;border:1px solid #e5b664;background:#fff6de;color:#794600;border-radius:10px;font-size:13px;line-height:1.5}
.schedule-hours-warning[hidden],.schedule-override[hidden]{display:none!important}
.schedule-override{display:flex;gap:8px;align-items:center;margin-top:10px;font-size:13px;font-weight:650;color:#6e4818}
.schedule-override input{width:17px;height:17px;accent-color:#a36b26}
.schedule-hours-warning strong{display:block;margin-bottom:4px}
.schedule-picked-context{font-size:13px;font-weight:700;color:#244d7c;margin-bottom:12px}
@media(max-width:850px){.schedule-empty-pick{min-height:52px;opacity:.8}}

.schedule-shift-warning{display:inline-block;color:#8a5908!important;background:#fff3d4;padding:2px 4px;border-radius:4px;font-weight:700}

.schedule-bulk-override{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.4;font-weight:600;color:#725022;margin-top:9px}.schedule-bulk-override input{width:16px;height:16px;accent-color:#946020}

/* v2.0.6 - staged revisions and publication history */
.shift-tile.has-pending{border-left-color:#b87516;background:#fff5e6}
.schedule-pending-label{font-size:11px!important;font-weight:750!important;color:#8e5500!important;background:#ffedcb;padding:4px 6px;border-radius:5px;display:inline-block}
.schedule-pending-summary{font-size:13px;color:#795214;background:#fff5df;border:1px solid #e5ca97;padding:11px 14px;border-radius:10px;margin:0 0 14px}
.schedule-version-info{background:#f0f5fd;color:#294368;padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.7;margin-bottom:14px}
.schedule-version-info .schedule-pending-label{margin-left:8px}
.schedule-history{border-top:1px solid #dce5f0;margin-top:20px;padding-top:12px;overflow-x:auto}
.schedule-history table{min-width:460px;font-size:12px}

.schedule-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.schedule-compare>div{display:flex;flex-direction:column;gap:7px;background:#f3f7fc;border:1px solid #dce5ef;border-radius:9px;padding:11px;font-size:12px}
.schedule-compare>div:last-child{background:#fff5e5;border-color:#e7ca98}
.schedule-compare strong{font-size:13px}
@media(max-width:580px){.schedule-compare{grid-template-columns:1fr}}
.schedule-history .scroll{max-width:100%;overflow-x:auto}.schedule-history table{min-width:850px}.schedule-version-change{font-weight:600;color:#214c80;padding:3px 0;white-space:normal}.schedule-history td{vertical-align:top}

/* v2.1: skabeloneditor og fravaersmarkeringer */
.template-editor-list{display:grid;gap:8px}
.template-editor-link{display:flex;justify-content:space-between;gap:12px;padding:11px 13px;background:#f3f7fc;border-radius:9px;text-decoration:none;color:#223c5c}
.template-editor-link.chosen{background:#e1ecfb;outline:2px solid #85a7d6}
.template-editor-link span{font-size:12px;color:#56708b}
.template-editor-table{min-width:720px}
.schedule-absence-label{display:block;margin:3px 0 5px;padding:3px 6px;border-radius:6px;background:#fce8df;color:#904a30;font-size:11px;font-weight:700}
.schedule-absence-label.pending{background:#fff5d8;color:#806119}
.schedule-absence-conflict{display:block;color:#963a35;background:#fce9e8;padding:3px 5px;border-radius:5px;font-size:11px;font-weight:700;margin:4px 0}
.schedule-absence-warning{font-size:12px;color:#704d28;margin:9px 0}
.schedule-absence-override{display:flex;gap:9px;align-items:center;font-size:13px;margin:8px 0 16px}
.schedule-absence-override input{width:17px;height:17px}
.absence-approval-ack{display:inline-flex;gap:6px;align-items:center;font-size:12px;max-width:220px}
@media(max-width:700px){.schedule-absence-label{font-size:10px}.template-editor-table{font-size:12px}}

.schedule-norm{display:block;font-size:10px;font-weight:500;color:#68809e;margin-top:4px;white-space:nowrap}
.schedule-norm.under-norm{color:#a36b27}
.schedule-coverage h2{font-size:18px}
.schedule-coverage-list{display:flex;flex-wrap:wrap;gap:8px}
.schedule-coverage-list span{font-size:12px;padding:8px 10px;border-radius:9px;background:#fff2df;color:#875524}

/* Location-level staff coverage control */
.coverage-setting{padding:13px 15px;margin:0 0 14px;background:#f4f8fd;border:1px solid #dbe6f1;border-radius:10px}
.coverage-setting label{display:block;font-weight:700;font-size:13px;margin-bottom:7px;color:#243c5e}
.coverage-setting select{max-width:100%;width:100%;padding:9px 11px;border:1px solid #c9d9eb;border-radius:9px;background:#fff;color:#17243d}
.coverage-setting .help{font-size:12px;line-height:1.45;margin:7px 0 0}

/* v2.1.2: Accessible radio choice cards, no native select chrome */
.coverage-setting{min-width:0;border:1px solid #dce5f0;padding:16px 17px 13px;margin:0 0 16px;border-radius:14px;background:#f7faff}
.coverage-setting legend,.ferox-person-field legend{font-size:13px;font-weight:700;color:#29405e;padding:0 5px}
.coverage-setting .help{font-size:12px;color:#526882;margin:10px 0 0}
.ferox-person-field{border:0;padding:0;margin:0;min-width:0;grid-column:1 / -1}
.ferox-person-field legend{padding:0;margin-bottom:10px}
.ferox-choice-group{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.ferox-coverage-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ferox-choice{position:relative;display:block;cursor:pointer;min-width:0;margin:0}
.ferox-choice input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}
.ferox-choice > span{display:flex;align-items:center;justify-content:center;gap:3px;flex-direction:column;min-height:42px;padding:9px 15px;border:1px solid #cbd8e8;border-radius:11px;background:#fff;color:#28425e;text-align:center;font-size:13px;font-weight:600;line-height:1.35;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
.ferox-choice strong{font-size:13px;font-weight:700}
.ferox-choice small{font-size:11px;font-weight:400;color:#667c98}
.ferox-choice input[type=radio]:checked + span{border-color:#295b9f;background:#e8f1ff;color:#163f76;box-shadow:inset 0 0 0 1px #295b9f}
.ferox-choice input[type=radio]:checked + span small{color:#315d8d}
.ferox-choice input[type=radio]:focus-visible + span{outline:3px solid #f2a53a;outline-offset:2px}
.ferox-choice:hover > span{border-color:#7298c8}
.ferox-person-options{max-height:180px;overflow-y:auto;padding:2px 1px 4px;align-items:stretch}
.ferox-person-choice > span{min-height:40px;padding:9px 14px;white-space:normal}
@media(max-width:520px){.ferox-coverage-options{grid-template-columns:1fr}.ferox-choice-group{gap:7px}.ferox-person-choice > span{padding:9px 12px}}

/* v2.2 - readable totals and compact time-registration controls. */
.app-area .schedule-grid{min-width:1080px}
.app-area .schedule-grid .total{width:132px;min-width:132px;text-align:left;padding:12px 12px;white-space:normal;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums;line-height:1.45}
.app-area .schedule-grid thead .total{text-align:center}
.app-area .schedule-grid .total .schedule-norm{display:block;font-weight:500;font-size:11px;white-space:nowrap;line-height:1.6}
.app-area .schedule-grid .total .schedule-norm.under-norm{color:#a35b18}
.manual-time-card .form-grid{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}
.manual-approval-form{min-width:185px;display:grid;gap:6px}.manual-approval-form input{width:100%;max-width:210px;padding:7px 9px;border:1px solid #cbd6e5;border-radius:8px}.manual-approval-form .actions{display:flex;gap:5px}.manual-approval-form .btn{padding:6px 9px;min-height:32px;font-size:12px}
@media(max-width:580px){.app-area .schedule-grid{min-width:1080px}.app-area .schedule-grid .total{width:132px;min-width:132px}}

.app-area .schedule-grid .total .schedule-total-planned{display:block;font-size:12px;font-weight:800;white-space:nowrap;color:#213d63;margin-bottom:3px}
