/* FIX266: schedule-only, compact responsive save status. No behavior is hidden. */
.schedule-entry-screen .th266-schedule-status .th261-savebar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 14px!important;min-width:0!important;max-width:100%!important;white-space:normal!important}
.schedule-entry-screen .th266-sync-info{display:grid;gap:3px;min-width:0;line-height:1.35}
.schedule-entry-screen .th266-sync-info .th261-count{font-weight:650;font-size:11px;line-height:1.4;color:#26364b;white-space:normal!important}
.schedule-entry-screen .th266-sync-info .th261-backup{display:flex;align-items:center;gap:6px;font-size:11px;line-height:1.4;color:#536579;white-space:normal!important}
.schedule-entry-screen .th266-sync-info .th261-backup::before{content:'';width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#73869a}
.schedule-entry-screen .th266-sync-info .th261-backup[data-backup-state=saved]::before{background:#20846a}
.schedule-entry-screen .th266-sync-info .th261-backup[data-backup-state=pending]::before{background:#b67c20}
.schedule-entry-screen .th266-sync-info .th261-backup[data-backup-state=error]{color:#a12828;font-weight:650}
.schedule-entry-screen .th266-sync-info .th261-backup[data-backup-state=error]::before{background:#c44444}
.schedule-entry-screen .th266-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
html body .schedule-entry-screen .th45-schedule-footer .th266-schedule-status,html body.th680-entry-focus .schedule-entry-screen .th45-schedule-footer .th266-schedule-status,.schedule-entry-screen .th266-schedule-status{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px 10px!important;min-width:0!important;max-width:100%!important;width:auto!important;padding:7px 9px!important;min-height:0!important;border:1px solid #e0e7ef!important;border-radius:9px!important;background:#f8fafc!important;white-space:normal!important;overflow:visible!important;line-height:1.35!important;font-size:11px!important}
html body.th680-entry-focus .schedule-entry-screen .th45-schedule-footer .th266-schedule-status button,html body .schedule-entry-screen .th45-schedule-footer .th266-schedule-status button,.schedule-entry-screen .th266-schedule-status button{border-radius:6px!important;height:auto!important;min-height:30px!important;padding:5px 9px!important;font-size:11px!important;white-space:normal!important;line-height:1.25!important;max-width:100%}
.schedule-entry-screen .th266-schedule-status .th266-actions button:first-child{background:#243e64;color:white;border:1px solid #243e64}
.schedule-entry-screen .th266-schedule-status .th266-actions button:nth-child(2){background:white;color:#334e6b;border:1px solid #d4dee9}
.schedule-entry-screen .th266-schedule-status[data-state=idle] .th266-native-message,.schedule-entry-screen .th266-schedule-status[data-state=saved] .th266-native-message{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important}
.schedule-entry-screen .th266-schedule-status:not([data-state=idle]):not([data-state=saved]) .th266-native-message{flex:1 1 100%;overflow-wrap:anywhere;white-space:normal!important;font-weight:600}
html body.th680-entry-focus .schedule-entry-screen .th45-schedule-footer,html body .schedule-entry-screen .th45-schedule-footer{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 14px!important;min-width:0!important;padding:8px 12px!important;overflow:visible!important}
html body.th680-entry-focus .schedule-entry-screen .th45-schedule-footer-copy,html body .schedule-entry-screen .th45-schedule-footer-copy{min-width:0!important;flex:1 1 170px!important;max-width:290px!important}
html body.th680-entry-focus .schedule-entry-screen .th45-schedule-footer-copy small{white-space:normal!important;overflow:visible!important;font-size:10px!important;line-height:1.35!important}
html body.th680-entry-focus .schedule-entry-screen .th45-schedule-footer-buttons,html body .schedule-entry-screen .th45-schedule-footer-buttons{display:flex!important;flex-wrap:wrap!important;flex:1 1 auto!important;align-items:center!important;justify-content:flex-end;gap:8px!important;min-width:0!important;max-width:100%!important}
html body.th680-entry-focus .schedule-entry-screen .th-as650-reason{min-width:0!important;flex:1 1 180px!important;max-width:280px!important}
.schedule-entry-screen .th-as650-reason input{width:100%;min-width:0;box-sizing:border-box}
@media(max-width:760px){html body.th680-entry-focus .schedule-entry-screen .th45-schedule-footer,html body .schedule-entry-screen .th45-schedule-footer{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;padding:8px!important}html body.th680-entry-focus .schedule-entry-screen .th45-schedule-footer-buttons,html body .schedule-entry-screen .th45-schedule-footer-buttons{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;justify-content:stretch}html body.th680-entry-focus .schedule-entry-screen .th45-schedule-footer-copy,html body .schedule-entry-screen .th45-schedule-footer-copy,html body.th680-entry-focus .schedule-entry-screen .th-as650-reason{max-width:100%!important}.schedule-entry-screen .th266-schedule-status .th261-savebar{width:100%!important;justify-content:space-between}.schedule-entry-screen .th266-actions{width:100%}.schedule-entry-screen .th266-actions button{flex:1}.schedule-entry-screen .th266-schedule-status button{min-height:36px!important}}

/* FIX267R4: a verified explicit save has an unmistakable, visible success state. */
.schedule-entry-screen .th266-schedule-status[data-state=saved][data-fix267r4-confirmed=true] .th266-native-message{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip-path:none!important;white-space:normal!important;flex:1 1 100%;font-weight:650;color:#17634b}

/* FIX267R5: native schedule labels must remain readable even before weekly decoration.
   The React value is authoritative for ordinary cells; no new writer or DOM observer. */
@media screen {
 html body .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell > select[data-fix267r5-native="1"],
 html body .schedule-entry-screen .mobile-schedule-row > select[data-fix267r5-native="1"] {
   color:#24334c!important;-webkit-text-fill-color:#24334c!important;
 }
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label] > select[data-fix267r5-native="1"] option {
   color:#24334c!important;-webkit-text-fill-color:#24334c!important;background:#fff!important;
 }
 /* When the legacy weekly renderer is ready, an overlay is intentional. Paint it above
    the native select (z=3) so an opaque browser select cannot erase the code. */
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label][data-th123-group]:not([data-th118-with-total="1"]):not(:focus-within)::before {
   content:attr(data-fix267r5-label)!important;display:flex!important;align-items:center!important;justify-content:center!important;
   position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;
   z-index:4!important;pointer-events:none!important;opacity:1!important;color:#56687b!important;font-weight:850!important;
 }
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label][data-th123-group]:not([data-th118-with-total="1"]):not(:focus-within) > select[data-fix267r5-native="1"] {
   color:transparent!important;-webkit-text-fill-color:transparent!important;
 }
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label][data-th123-group][data-th118-duration="seven"]:not([data-th118-with-total="1"]):not(:focus-within)::before {color:#1266cc!important}
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label][data-th123-group][data-th118-duration="six"]:not([data-th118-with-total="1"]):not(:focus-within)::before {color:#b9630b!important}
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label="OFF"][data-th123-group]:not([data-th118-with-total="1"]):not(:focus-within)::before {color:#d82736!important}
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell:is([data-fix267r5-label="C"],[data-fix267r5-label="CK"])[data-th123-group]:not([data-th118-with-total="1"]):not(:focus-within)::before {color:#7434cd!important}
 /* A complete Sunday total remains exactly the existing combined label + hours.
    If the decoration is absent, empty or still says '-' while a value exists,
    use the actual dropdown instead of a transparent placeholder. */
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label][data-th118-with-total="1"]:has(> .th118-total > .th118-total-shift:not(:empty)):not([data-th118-label="-"]:not([data-fix267r5-label="-"])):not(:focus-within) > select[data-fix267r5-native="1"] {
   color:transparent!important;-webkit-text-fill-color:transparent!important;
 }
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label][data-th118-with-total="1"]:has(> .th118-total > .th118-total-shift:not(:empty)):not([data-th118-label="-"]:not([data-fix267r5-label="-"])):not(:focus-within) > .th118-total {z-index:4!important;pointer-events:none!important}
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label][data-th118-with-total="1"]:is(:not(:has(> .th118-total > .th118-total-shift:not(:empty))),[data-th118-label="-"]:not([data-fix267r5-label="-"])) > .th118-total {visibility:hidden!important}
 /* Native fallback is opaque; suppress a stale pseudo label until decorated. */
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label]:not([data-th123-group])::before {display:none!important;content:none!important}
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label]:focus-within > select[data-fix267r5-native="1"] {color:#24334c!important;-webkit-text-fill-color:#24334c!important;background-color:#fff!important}
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label]:focus-within::before,
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label]:focus-within > .th118-total {opacity:0!important}
}
@media screen {
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label]:not([data-th123-group]) > select[data-fix267r5-native="1"],
 html body.th118-pic-schedule .schedule-entry-screen .schedule-sheet tbody tr > td.schedule-cell[data-fix267r5-label][data-th118-with-total="1"]:is(:not(:has(> .th118-total > .th118-total-shift:not(:empty))),[data-th118-label="-"]:not([data-fix267r5-label="-"])) > select[data-fix267r5-native="1"] {color:#24334c!important;-webkit-text-fill-color:#24334c!important}
}
