/* Compact annual sheet, matching the original scheduling grid. */
.schedule-layout { height:100dvh; display:flex; flex-direction:column; overflow:hidden; background:#fff; font-family:Arial,sans-serif; }
.schedule-layout .app-header { height:42px; min-height:42px; padding:0 15px; gap:15px; }
.schedule-layout .brand { font-size:20px; letter-spacing:-.5px; }
.schedule-layout .brand-caption { display:none; }
.schedule-layout .app-header nav { gap:18px; font-size:12px; }
.schedule-layout .subnav { padding:7px 15px; font-size:11px; gap:20px; }
.schedule-layout main { padding:0 15px 8px; margin:0; max-width:none; flex:1; min-height:0; display:flex; flex-direction:column; }
.schedule-layout .flash { padding:5px 10px; margin:4px 0; }
.schedule-page { display:flex; flex-direction:column; flex:1; min-height:0; }
.schedule-page .page-heading { min-height:49px; margin:0; flex-direction:row; align-items:center; }
.schedule-page h1 { color:#999; font-size:28px; font-weight:300; margin:0; letter-spacing:-1px; }
.schedule-page .actions { gap:6px; }
.schedule-page .grid-today { background:none; border:0; color:#888; padding:5px 8px; font-weight:400; font-size:12px; }
.schedule-page .year-step { display:inline-flex; align-items:center; justify-content:center; width:44px; height:34px; background:#68afe0; color:white; font-size:16px; text-decoration:none; }
.schedule-page .year-step:hover { background:#4899d0; }
.save-status { font-size:11px; color:#999; margin-right:8px; white-space:nowrap; }
.save-status[data-state=error] { color:#a53939; }
.save-status[data-state=saving] { color:#648aa0; }
[data-sheet-target=retry][hidden] { display:none!important; }
.grid-filters { border:0; padding:0; margin:0; position:relative; }
.grid-filters summary { position:absolute; left:90px; top:-33px; color:#999; font-size:11px; padding:5px; }
.grid-filters .filters { border-radius:0; margin:0 0 8px; padding:8px; }
.grid-filters input,.grid-filters select { font-size:12px; }
.schedule-page .sheet-scroll { flex:1; height:auto; min-height:0; max-height:none; border:1px solid #ccc; border-radius:0; overflow:auto; overscroll-behavior:contain; background:#fff; }
.schedule-page .planning-sheet { border-collapse:separate; border-spacing:0; table-layout:fixed; width:max-content; min-width:100%; font-family:Arial,sans-serif; }
.schedule-page .planning-sheet th { position:sticky; top:0; z-index:4; width:180px; min-width:120px; max-width:180px; height:31px; padding:4px 5px; border-right:1px solid #ccc; border-bottom:1px solid #ccc; background:#eee; color:#333; font-size:13px; font-weight:400; letter-spacing:0; white-space:nowrap; overflow:hidden; text-overflow:clip; text-align:center; }
.schedule-page .planning-sheet td { width:180px; height:28px; padding:0 5px; vertical-align:middle; border-right:1px solid #ccc; border-bottom:1px solid #ccc; background:#fff; color:#888; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:clip; }
.schedule-page .planning-sheet .meta-column { width:180px; max-width:180px; }
.schedule-page .planning-sheet .date-link { display:inline-block; color:#888; font-weight:400; font-size:13px; white-space:nowrap; }
.schedule-page .assignment-cell { position:relative; border-left:0; }
.schedule-page .assignment-cell input:is([data-person], [data-special]) { display:block; width:100%; height:27px; min-height:27px; padding:2px 15px 2px 0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; outline:0; }
.schedule-page .assignment-cell input:is([data-person], [data-special]):focus { background:transparent; outline:0; }
.schedule-page input:is([data-person], [data-special])::-webkit-calendar-picker-indicator { display:none!important; }
.schedule-page .assignment-cell .cell-meta { display:none; }
.schedule-page .person-dropdown { position:absolute; right:2px; top:0; height:27px; width:16px; padding:0; border:0; border-radius:0; background:transparent; color:#e5e5e5; font:13px Arial,sans-serif; font-weight:400; line-height:27px; }
.schedule-page .person-dropdown:hover,.schedule-page .person-dropdown:focus { color:#999; background:#f3f3f3; }
.schedule-page .assignment-cell.grid-selected { box-shadow:inset 0 0 0 2px #6c91ff!important; }
.schedule-page .assignment-cell:focus-within::after { content:""; position:absolute; width:5px; height:5px; background:#6c91ff; right:0; bottom:0; pointer-events:none; }
.schedule-page .planning-sheet .current-week td { background:#cceecc!important; color:green; font-weight:700; }
.schedule-page .planning-sheet .current-week .date-link { color:green; font-weight:700; }
.schedule-page .saving-cell { box-shadow:inset 0 -2px #86b1dd; }
.schedule-page .save-error { box-shadow:inset 0 0 0 2px #b64b4b!important; }
.schedule-page [aria-invalid=true] { background:#ffe9e6!important; }
.schedule-page .task-info { min-height:24px!important; height:24px; border-top:1px solid #eee!important; font-size:12px!important; }
.schedule-page .resize { width:5px; border-radius:0; }
.schedule-page [data-sheet-target=message] { font-size:11px; margin:3px 0 0; min-height:0; color:#999; }
.schedule-page [data-sheet-target=message]:empty { display:none; }
.sheet-picker { position:fixed; z-index:100; background:white; border:1px solid #aaa; box-shadow:0 3px 8px #0002; padding:4px; color:#777; font-size:13px; }
.sheet-picker input { min-height:30px!important; height:30px; font:13px Arial,sans-serif; padding:4px 6px!important; border-radius:0!important; }
.sheet-picker [role=listbox] { max-height:210px; overflow:auto; margin-top:3px; }
.sheet-picker button { display:block; width:100%; padding:4px 6px; border:0; border-radius:0; background:white; color:#777; text-align:left; font:13px Arial,sans-serif; }
.sheet-picker button:hover,.sheet-picker button:focus,.sheet-picker [aria-selected=true] { background:#e5edff; outline:0; }
.schedule-page input:is([data-person], [data-special])[readonly] { caret-color:transparent; cursor:default; user-select:none; }
.schedule-page .assignment-cell.cell-editing input:is([data-person], [data-special]) { cursor:text; background:white; color:#111; }
.inline-suggestions { overflow:auto; padding:0; border:1px solid #ccc; }
.inline-suggestions button { font-size:13px; padding:5px; min-height:28px; }
.inline-suggestions [aria-selected=true] { background:#eee; }
.assignment-history[hidden] { display:none!important; }
.assignment-history { position:fixed; right:15px; top:120px; bottom:25px; width:min(420px,calc(100vw - 30px)); z-index:50; background:white; border:1px solid #bbb; box-shadow:0 4px 20px #0003; overflow:auto; padding:16px; font-size:13px; }
.history-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #ddd; padding-bottom:12px; margin-bottom:16px; }
.schedule-page .assignment-history h2 { margin:0; font-size:20px; }
.assignment-history h3 { font-size:14px; margin-top:20px; }
.assignment-history .message p { margin:6px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.assignment-history turbo-frame[busy] { opacity:.65; }
@media(max-width:850px) {
  .schedule-layout .app-header { flex-wrap:nowrap; gap:8px; }
  .schedule-layout .app-header nav { gap:9px; font-size:11px; }
  .schedule-layout .brand { font-size:17px; }
  .schedule-layout main { padding:0 6px 6px; }
  .schedule-layout .subnav { padding:7px 6px; }
  .schedule-page .page-heading { gap:5px; }
  .schedule-page .actions { flex-wrap:nowrap; gap:4px; }
  .schedule-page .year-step { width:32px; }
  .save-status { font-size:10px; margin:0; }
  .grid-filters summary { position:static; padding:0 0 4px; }
}


.schedule-page .planning-sheet td.week-date { background:#eee!important; color:#777; }
.schedule-page .planning-sheet .current-week td.week-date { background:#e4e4e4!important; }
.schedule-page .planning-sheet th[data-column=week] { background:#e2e2e2!important; color:#777; }
.schedule-page .special-service-cell input { font-size:13px!important; }


.schedule-toolbar { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:10px 0; }
.schedule-toolbar h1 { flex:0 0 auto; }
.schedule-filters { display:flex; align-items:center; gap:10px; flex:1; flex-wrap:wrap; margin:0; }
.schedule-filters label { display:flex; align-items:center; gap:5px; margin:0; font-size:11px; font-weight:400; color:#888; }
.schedule-filters select, .schedule-filters input { width:auto; max-width:180px; min-height:28px; height:28px; border:1px solid #ddd; border-radius:2px; font-size:12px; padding:3px 6px; }
.schedule-filters input[type=number] { width:68px; }
.schedule-filters input[type=search] { width:140px; }
.schedule-filters .clear-filters { font-size:11px; white-space:nowrap; color:#777; }
.schedule-toolbar .actions { display:flex; align-items:center; margin-left:auto; }
.task-schedule-scroll { flex:1; min-height:0; overflow:auto; border:1px solid #ccc; }
.task-schedule-table { width:100%; min-width:850px; table-layout:fixed; border-collapse:collapse; font-size:13px; }
.task-schedule-table th { position:sticky; top:0; background:#eee; z-index:1; font-size:13px; font-weight:400; color:#444; }
.task-schedule-table th, .task-schedule-table td { border:1px solid #d4d4d4; padding:3px 5px; vertical-align:top; }
.task-schedule-table th:nth-child(1) { width:160px; }
.task-schedule-table th:nth-child(2) { width:175px; }
.task-schedule-table th:nth-child(3) { width:180px; }
.task-schedule-table th:nth-child(4) { width:calc(100% - 515px); }
.task-schedule-table .week-date { white-space:nowrap; background:#eee; }
.task-schedule-table select, .task-schedule-table textarea { width:100%; margin:0; font-size:13px; border:0; border-radius:0; background:transparent; padding:3px 4px; min-height:26px; color:#888; }
.task-schedule-table textarea { resize:vertical; height:48px; color:#555; }
.task-schedule-table select:focus, .task-schedule-table textarea:focus { background:white; outline:2px solid #739bff; outline-offset:-2px; }
.task-schedule-table [data-status] { font-size:10px; color:#899; }
.task-schedule-table [data-retry][hidden] { display:none; }
.task-schedule-table tr.current-week > td { background:#cceecc!important; }
.task-schedule-table tr.current-week > td.week-date { background:#e4e4e4!important; }
@media(max-width:1100px) { .schedule-toolbar { gap:8px; } .schedule-filters { gap:6px; } .schedule-filters label { font-size:0; } .schedule-filters label select, .schedule-filters label input { font-size:12px; max-width:155px; } }
