/* Additions on top of style.css (the original TimeTrace look) for the shift callout screens. */
:root { color-scheme: dark; }
[hidden] { display: none !important; }
html { padding-bottom: env(safe-area-inset-bottom, 0px); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
header { position: sticky; top: 0; z-index: 9; padding-top: max(16px, env(safe-area-inset-top, 0px)); padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); flex-wrap: wrap; gap: 10px; }
.user-info a, .user-info button.linkish { color: #ff6b6b; margin-left: 14px; text-decoration: none; background: none; border: none; font: inherit; cursor: pointer; padding: 0; }
.tabs { overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--hdr, 66px); z-index: 8; }
.tabs::-webkit-scrollbar { display: none; }
.tab-link { white-space: nowrap; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; font: inherit; }
.tab-link:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #4da3ff; outline-offset: 2px; }

.page { padding: 28px; display: grid; gap: 22px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 700px) { .page { padding: 18px 14px 40px; } header { padding-left: 14px; padding-right: 14px; } }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }
.muted { color: #7d93a8; font-size: 13px; }
.note { color: #9fb3c8; font-size: 13px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: 16px; text-transform: uppercase; letter-spacing: .4px; color: #cfe3f7; }

/* panels reuse .overview-window from style.css */
.overview-window { min-width: 0; }
.panel-plain { background: #131c28; border: 1px solid #1f2b3a; border-radius: 10px; padding: 16px 18px; }

/* shift cards */
.shift { background: linear-gradient(160deg, #161f2c 0%, #11181f 100%); border: 1px solid #1f2b3a; border-left: 3px solid #ffb84d; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.04) inset; }
.shift.filled { border-left-color: #4ddc8a; }
.shift.unfilled, .shift.cancelled, .shift.undone { border-left-color: #5b6f82; }
.shift-top { padding: 16px 20px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; align-items: flex-start; }
.shift-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #4da3ff; }
.shift-name { font-size: 26px; font-weight: 800; color: #e6edf3; line-height: 1.1; margin-top: 2px; }
.shift-date { color: #9fb3c8; font-size: 14px; margin-top: 4px; }
.shift-note { color: #7d93a8; font-size: 12px; margin-top: 4px; }
.clock { text-align: right; display: grid; gap: 5px; justify-items: end; }
.mono { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 13px; color: #cfe3f7; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.pill.open { background: #ffb84d22; color: #ffb84d; }
.req-act:not(:empty) { margin-top: 6px; }
.myoff-act { margin-top: 8px; }
.pill.filled { background: #2e9e5b33; color: #4ddc8a; }
.pill.unfilled, .pill.cancelled, .pill.undone { background: #5b6f8233; color: #9fb3c8; }
.pill.wait { background: #4da3ff22; color: #6db4ff; }
.chain { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 0 20px 12px; font-size: 12px; color: #5b6f82; }
.chain span { padding: 2px 8px; border-radius: 999px; border: 1px solid #1f2b3a; }
.chain span.done { color: #5b6f82; text-decoration: line-through; }
.chain span.now { color: #ffb84d; border-color: #ffb84d66; background: #ffb84d14; font-weight: 700; }
.chain span.won { color: #4ddc8a; border-color: #4ddc8a66; background: #4ddc8a14; font-weight: 700; }
.chain i { font-style: normal; color: #2a3a4c; }
.timebar { height: 3px; background: #1f2b3a; margin: 0 20px 14px; border-radius: 99px; overflow: hidden; }
.timebar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb84d, #ff6b6b); }
.answerbox { margin: 0 14px 14px; padding: 12px 14px; border-radius: 8px; background: #0f1620; border: 1px solid #1f2b3a; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: 14px; }
.answerbox .actions .btn { padding: 11px 18px; font-size: 14px; }
.btn.on { box-shadow: 0 0 0 2px #0f1620, 0 0 0 4px #e6edf3; }
@media (max-width: 560px) { .answerbox .actions { width: 100%; } .answerbox .actions .btn { flex: 1; } .clock { text-align: left; justify-items: start; } }
.shift .roster-list { border-top: 1px solid #1f2b3a; }
.shift table { border-radius: 0; background: transparent; }
.shift th:first-child, .shift td:first-child { padding-left: 20px; }
td.pos { color: #5b6f82; width: 2.6em; font-family: Consolas, Menlo, monospace; }
tr.me td { background: #4da3ff14; }
tr.dim td { color: #5b6f82; }
tr.winner td { font-weight: 700; }
.walk { font-size: 12px; }
.walk.winner { color: #4ddc8a; font-weight: 700; }
.walk.sick { color: #c9a4ff; }
.walk.waiting { color: #ffb84d; font-weight: 700; }
.walk.passed, .walk.dim { color: #5b6f82; }
.badge.none { color: #5b6f82; padding-left: 0; }
.badge.sick { background: #8b5cf633; color: #c9a4ff; }
.shift-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 20px; border-top: 1px solid #1f2b3a; }
.btn.small { padding: 4px 9px; font-size: 11px; }
.btn.primary { background: linear-gradient(160deg, #6db4ff 0%, #2e6fd6 100%); color: #08101c; }
.btn.danger { background: #7a2e2e; }
.empty-box { border: 1px dashed #2a3a4c; border-radius: 10px; padding: 28px 18px; color: #7d93a8; text-align: center; }

/* forms */
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .lbl { font-size: 12px; color: #9fb3c8; }
.input, .page select, .menu-panel select, .page input[type="search"], .page input[type="text"], .page input[type="email"], .page input[type="tel"], .page input[type="number"], .page input[type="password"] {
  padding: 8px 10px; border-radius: 6px; border: 1px solid #2a3a4c; background: #0f1620; color: #e6edf3; font: inherit; font-size: 13px; min-width: 0; width: 100%;
}
.page input[type="date"] { max-width: none; font-size: 13px; padding: 7px 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row > .field { flex: 1 1 140px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #cfe3f7; }

/* posting rows */
.post-row { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.3fr auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid #1f2b3a; border-radius: 8px; background: #0f1620; }
.post-row .seq { grid-column: 1 / -1; font-size: 11px; color: #7d93a8; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
@media (max-width: 760px) { .post-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .post-row .rm { grid-column: 1 / -1; } }

/* list tabs inside a page */
.subtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid #1f2b3a; }
.subtabs button { padding: 9px 14px; color: #9fb3c8; background: none; border: none; border-bottom: 3px solid transparent; font: inherit; font-size: 14px; cursor: pointer; }
.subtabs button.active { color: #4da3ff; border-bottom-color: #4da3ff; }
.subtabs .kind { font-size: 10px; color: #5b6f82; margin-left: 5px; text-transform: uppercase; }
.list-chip { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #4da3ff1f; color: #6db4ff; margin: 1px 3px 1px 0; white-space: nowrap; }

/* reports */
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 7.5em 1fr 2.2em; gap: 10px; align-items: center; font-size: 12px; }
.bar .track { background: #0f1620; border-radius: 99px; height: 8px; overflow: hidden; }
.bar .fill { height: 100%; background: #4da3ff; border-radius: 99px; }
.bar .fill.weekend { background: #ffb84d; }
.bar span:first-child { color: #9fb3c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar span:last-child { text-align: right; font-family: Consolas, Menlo, monospace; }
.flag { background: #131c28; border: 1px solid #1f2b3a; border-left: 3px solid #ffb84d; border-radius: 8px; padding: 12px 14px; display: grid; gap: 4px; }
.flag ul { margin: 0; padding-left: 1.1em; color: #9fb3c8; font-size: 13px; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* alerts panel + toast */
.alerts-panel ol { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 13px; color: #cfe3f7; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #182334; border: 1px solid #2a3a4c; color: #e6edf3; padding: 11px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; z-index: 30; max-width: calc(100vw - 32px); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.flash-ok { margin: 0; padding: 10px 14px; background: #2e9e5b22; border: 1px solid #2e9e5b; color: #8de6b0; border-radius: 6px; }
.login-box .err { color: #ff9b8f; font-size: 13px; min-height: 1.2em; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
td.pos, .pending-window td:first-child { white-space: nowrap; word-break: normal; }
.shift td, .roster-list td { word-break: normal; overflow-wrap: anywhere; }
.urgent-tag { display: inline-block; background: #c0392b; color: #fff; border-radius: 4px; padding: 1px 6px; margin-right: 6px; font-size: 10px; letter-spacing: .6px; }
.flash { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn { white-space: nowrap; }
.overview-list td, .roster-list td { word-break: normal; overflow-wrap: normal; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 18px; color: #cfe3f7; text-transform: uppercase; letter-spacing: .5px; }
.sheet-table td { font-size: 14px; }
.chg-off { color: #ffb84d; font-weight: 600; }
.chg-ot { color: #4ddc8a; font-weight: 600; }
td.nowrap { white-space: nowrap; }
@media print {
  body { background: #fff !important; color: #000 !important; }
  header, .tabs, .no-print, .toast { display: none !important; }
  .page { padding: 0 !important; }
  .sheet { background: #fff !important; border: none !important; box-shadow: none !important; padding: 0 !important; }
  .sheet-head h2, .sheet td, .sheet th, .sheet .muted { color: #000 !important; }
  .sheet table { background: #fff !important; }
  .sheet td, .sheet th { border-bottom: 1px solid #999 !important; }
  .chg-off, .chg-ot { color: #000 !important; }
  .sheet tr.dim td { color: #444 !important; }
  .urgent-tag { border: 1px solid #000; background: #fff !important; color: #000 !important; }
}
/* calendar */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .cal-wrap { grid-template-columns: 1fr; } }
.cal-panel { padding: 14px; }
.cal-month { font-weight: 700; color: #cfe3f7; min-width: 9.5em; text-align: center; font-size: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 11px; color: #7d93a8; text-transform: uppercase; letter-spacing: .4px; text-align: center; padding: 2px 0 6px; }
.cal-day { aspect-ratio: 1 / 1; max-width: 100%; min-height: 44px; border: 1px solid transparent; border-radius: 8px; background: #0f1620; color: #9fb3c8;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 2px 5px; cursor: pointer; font: inherit; }
.cal-day:hover { border-color: #2a3a4c; }
.cal-day.other { opacity: .38; }
.cal-day.active { background: #4da3ff1a; color: #e6edf3; border-color: #4da3ff33; }
.cal-day.today .cal-num { background: #4da3ff; color: #08101c; border-radius: 999px; padding: 0 6px; }
.cal-day.sel { border-color: #4da3ff; box-shadow: 0 0 0 1px #4da3ff inset; }
.cal-num { font-size: 13px; font-weight: 700; line-height: 1.4; }
.cal-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; min-height: 10px; }
.cd { display: inline-flex; align-items: center; justify-content: center; min-width: 8px; height: 8px; border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1; color: #0f1620; font-style: normal; }
.cd:not(:empty) { min-width: 14px; height: 14px; padding: 0 3px; }
.cd.filled { background: #4ddc8a; } .cd.open { background: #ffb84d; } .cd.unfilled { background: #7d93a8; } .cd.off { background: #b49cff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: #9fb3c8; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-off { display: grid; gap: 4px; font-size: 14px; }
@media (max-width: 420px) { .cal-day { padding: 4px 1px; } .cal-num { font-size: 12px; } .cd:not(:empty) { min-width: 12px; height: 12px; font-size: 8px; } }
/* one grid for all the rows, so every name box starts at the same line no matter how long the tour label is */
.cal-duty { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 10px; row-gap: 6px; font-size: 13px; align-items: start; }
.cal-duty > div { display: contents; }
.cal-duty .duty-t { padding-top: 7px; white-space: nowrap; }
.duty-t { font-family: Consolas, Menlo, monospace; color: #4da3ff; font-weight: 700; min-width: 3.6em; }
.duty-n { background: #0f1620; border: 1px solid #1f2b3a; border-radius: 999px; padding: 1px 8px; color: #cfe3f7; }
.duty-n.me { border-color: #4da3ff; color: #fff; }
/* upcoming overtime */
.up-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: #0f1620; border: 1px solid #1f2b3a; border-radius: 8px; }
/* tour swaps */
.sw-steps { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #5b6f82; }
.sw-steps .on { color: #ffb84d; font-weight: 700; } .sw-steps .done { color: #4ddc8a; }
.sw-scroll { overflow-x: auto; border: 1px solid #1f2b3a; border-radius: 8px; background: #0f1620; max-height: 60vh; overflow-y: auto; }
.sw-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; background: transparent; }
.sw-table th, .sw-table td { padding: 3px; border-bottom: 1px solid #1a2532; text-align: center; white-space: nowrap; }
.sw-table thead th { position: sticky; top: 0; background: #131c28; z-index: 2; font-size: 11px; color: #7d93a8; text-transform: none; letter-spacing: 0; }
.sw-table .wknd { color: #ffb84d; }
.sw-name { position: sticky; left: 0; background: #131c28; z-index: 1; text-align: left !important; padding: 6px 10px !important; font-weight: 600; font-size: 13px; color: #cfe3f7; min-width: 110px; }
.sw-table thead .sw-name { z-index: 3; }
tr.sw-me .sw-name { color: #4da3ff; }
tr.sw-me td, tr.sw-me .sw-name { border-bottom: 2px solid #2a3a4c; }
.sw-chip { display: inline-block; min-width: 42px; padding: 6px 4px; border-radius: 6px; border: 1px solid transparent; font: 700 11px/1 Consolas, Menlo, monospace; cursor: pointer; color: #0f1620; }
.sw-chip.day { background: #dfe8f1; } .sw-chip.eve { background: #f2c46d; } .sw-chip.mid { background: #6f8fb8; color: #fff; }
.sw-chip:disabled { opacity: .35; cursor: default; }
tr.sw-pick .sw-chip:not(:disabled) { touch-action: none; }
tr.sw-pick .sw-chip:not(:disabled):hover { outline: 2px solid #4da3ff; }
.sw-chip.give { background: #c0392b !important; color: #fff !important; opacity: 1; box-shadow: 0 0 0 2px #ff9b8f inset; }
.sw-chip.take { background: #2e9e5b !important; color: #fff !important; opacity: 1; box-shadow: 0 0 0 2px #8de6b0 inset; }
.sw-chip.swapped { box-shadow: 0 0 0 2px #b49cff; }
.sw-chip.mini { min-width: 14px; height: 12px; padding: 0; cursor: default; }
.sw-off { display: inline-block; min-width: 42px; font-size: 10px; color: #3a4b5c; }
tr.sw-with .sw-name { color: #4ddc8a; }
.swap-sum { display: grid; gap: 4px; font-size: 14px; }
/* streamlined tour swap */
.sw-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #cfe3f7; }
.sw-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #4da3ff; color: #08101c; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.sw-n.dim { background: #2a3a4c; color: #7d93a8; }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mc-dow { font-size: 11px; color: #7d93a8; text-align: center; text-transform: uppercase; letter-spacing: .3px; }
.mc-day { background: #0f1620; border: 1px solid #1a2532; border-radius: 8px; min-height: 58px; padding: 4px 3px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mc-day.past { opacity: .35; }
.mc-day.other { opacity: .55; background: transparent; }
.mc-day.other.past { opacity: .25; }
.mc-day.mark { border: 2px dashed #c0392b; }
.mc-num { font-size: 11px; color: #7d93a8; font-weight: 700; }
.mc-off { font-size: 10px; color: #3a4b5c; margin-top: 6px; }
.mc-day .sw-chip { min-width: 0; width: 100%; padding: 8px 0; touch-action: none; }
/* the swap bar sits right under the calendar (it used to float over the page) */
.sw-bar { position: static; background: #182334; border: 1px solid #2a3a4c; border-radius: 10px; padding: 10px 12px;
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.sw-bar-text { display: grid; gap: 2px; font-size: 13px; min-width: 0; flex: 1 1 220px; }
@media (max-width: 420px) { .mc-day .sw-chip { font-size: 10px; padding: 7px 0; } .mc-day { min-height: 52px; } }
/* ===== phone layout ===== */
.bottom-nav { display: none; }
.sw-builder { background: linear-gradient(160deg, #161f2c 0%, #11181f 100%); border: 1px solid #1f2b3a; border-radius: 12px; padding: 16px; }
.sw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 12px; color: #5b6f82; }
.sw-steps span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: #0f1620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-steps b { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #2a3a4c; color: #9fb3c8; font-size: 11px; }
.sw-steps .on { color: #e6edf3; background: #4da3ff1f; } .sw-steps .on b { background: #4da3ff; color: #08101c; }
.sw-steps .done { color: #4ddc8a; } .sw-steps .done b { background: #2e9e5b; color: #fff; }
.sw-hint { margin: 0; font-size: 14px; color: #cfe3f7; }
.mc-nav { display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: #cfe3f7; font-size: 14px; }
.mc-grid { gap: 3px; }
/* phones: the swap builder fits on one screen (smaller steps, tighter calendar rows) */
@media (max-width: 700px) {
  .sw-builder { gap: 8px; }
  .sw-builder .section-title { margin: 0; }
  .sw-steps span { padding: 4px 6px; font-size: 11px; } .sw-steps b { width: 16px; height: 16px; font-size: 10px; }
  .sw-hint { font-size: 13px; }
  .mc-nav .btn.small { padding: 4px 10px; }
  .mc-grid { gap: 2px; }
  .mc-day { min-height: 0; padding: 2px 1px; gap: 2px; }
  .mc-day .sw-chip { padding: 6px 0; font-size: 10px; }
  .mc-num { font-size: 10px; line-height: 1.1; }
  .mc-off { margin-top: 2px; }
  .sw-bar { padding: 8px 10px; } .sw-bar .btn.big { padding: 9px 16px; font-size: 14px; }
}
/* lists page: the list picker is a dropdown whose bar names the list you're looking at */
.list-drop > summary h2 { font-size: 18px; }
.list-drop .list-picker { margin: 0; }
/* fold-up dropdowns: a modest heading so a page of them fits on a phone screen */
.hist-drop:not(.inner) > summary h2 { font-size: 18px; line-height: 1.2; letter-spacing: 0; text-transform: none; }
@media (max-width: 700px) { .hist-drop:not(.inner) > summary h2 { font-size: 16px; } .hist-drop:not(.inner) { padding-top: 14px; padding-bottom: 14px; } }
/* phones: the slip form and the time off request open on the page, tightened so the page fits one screen */
@media (max-width: 700px) {
  .fold-form > .hist-body { margin-top: 8px; }
  .fold-form .stack { gap: 8px; }
  .fold-form .row { gap: 8px; }
  .fold-form .field { gap: 3px; }
  .fold-form .field label, .fold-form .lbl { font-size: 11px; }
  .fold-form .page select, .fold-form select, .fold-form input[type="text"], .fold-form input[type="number"], .fold-form input[type="date"], .fold-form input[type="time"] {
    height: 40px !important; min-height: 40px !important; line-height: 38px !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 16px; }
  .fold-form textarea { min-height: 0; height: 56px; padding: 6px 10px; font-size: 16px; }
  .fold-form .btn.primary { padding: 9px 16px; }
  /* slip: date, start and end on one line; the hours show on the Send button */
  .fold-form .slip-times, .fold-form .slip-times.by-hours { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .fold-form .slip-times .sw-date { grid-column: auto; }
  .fold-form .slip-times .slip-total { display: none; }
  .fold-form .slip-times input { padding: 0 6px !important; font-size: 14px; }
  .fold-form .field:has(> .seg) { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
  .fold-form .seg button { padding: 6px 12px; }
}
.mc-dow { font-size: 11px; padding-bottom: 2px; }
.mc-day { border: none; background: transparent; min-height: 0; padding: 2px 0 4px; gap: 3px; }
.mc-day.today .mc-num { color: #4da3ff; }
.mc-day.mark { border: none; }
.mc-day.mark .mc-num { background: #c0392b; color: #fff; border-radius: 999px; padding: 0 6px; }
.mc-day .sw-chip { padding: 11px 0; border-radius: 8px; font-size: 11px; }
.mc-num { font-size: 11px; }
.sw-chip.give { box-shadow: 0 0 0 2px #ff9b8f inset; }
.sw-people { display: grid; gap: 6px; }
.sw-person { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 14px; border-radius: 10px; background: #0f1620; border: 1px solid #1f2b3a; color: #e6edf3; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.sw-person:hover, .sw-person:focus-visible { border-color: #4da3ff; }
.sw-badge { flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.sw-badge.free { background: #2e9e5b33; color: #4ddc8a; } .sw-badge.busy { background: #5b6f8233; color: #9fb3c8; }
.sw-bar { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.sw-bar-text { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.btn.big { padding: 12px 18px; font-size: 15px; border-radius: 9px; }
.sw-card { background: #131c28; border: 1px solid #1f2b3a; border-radius: 12px; padding: 14px; display: grid; gap: 8px; font-size: 14px; }
.sw-card.incoming { border-color: #ffb84d66; background: linear-gradient(160deg, #1f1a10 0%, #131c28 100%); }
.sw-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sw-line { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sw-tag { flex: none; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.sw-tag.take { background: #2e9e5b33; color: #4ddc8a; } .sw-tag.give { background: #c0392b33; color: #ff9b8f; }
.sw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .sw-two .btn { padding: 12px; font-size: 15px; }

@media (max-width: 700px) {
  header { padding-block: max(10px, env(safe-area-inset-top, 0px)) 10px !important; }
  .logo-compact .logo-icon { width: 28px; height: 28px; }
  .logo-compact .logo-text { font-size: 18px; }
  .user-info { font-size: 13px; }
  .hide-sm { display: none; }
  .page { padding: 12px 12px 24px; gap: 14px; }
  .overview-window { padding: 14px; border-radius: 12px; }
  .section-title h2 { font-size: 14px; }
  .sw-builder { padding: 12px; margin-inline: -4px; }
  #app.has-bottom-nav .tabs.top-only-wide { display: none; }
  #app.has-bottom-nav .page { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(19,28,40,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid #1f2b3a;
    padding: 6px max(6px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-right, 0px)); }
  .bottom-nav button { background: none; border: none; color: #7d93a8; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; font: 600 11px/1 "Segoe UI", system-ui, sans-serif; cursor: pointer; border-radius: 10px; }
  .bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav button.active { color: #4da3ff; background: #4da3ff14; }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}

/* Per-person color: dot + tinted name (color set inline as --pc) */
.who { color: var(--pc); white-space: nowrap; }
.who::before { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--pc); margin-right: .35em; vertical-align: .08em; flex-shrink: 0; }

/* Tabs: segmented tray. Tabs sit in a tray with thin dividers; the selected tab is a raised card
   (blue underline on the top bar). Applies to the top tabs, the list tabs and the phone bottom bar. */
.tabs { gap: 0; padding-top: 8px; padding-bottom: 8px; }
.tabs > .tab-link { position: relative; padding: 9px 18px; border: none !important; border-radius: 9px; color: #9fb3c8; font-weight: 600; }
.tabs > .tab-link + .tab-link::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; border-left: 1px solid #2a3a4c; }
.tabs > .tab-link.active::before, .tabs > .tab-link.active + .tab-link::before { display: none; }
.tabs > .tab-link:hover { color: #e6edf3; background: #1a263680; }
.tabs > .tab-link.active { background: linear-gradient(180deg,#22344a,#1a293b); color: #fff; box-shadow: 0 1px 0 #ffffff14 inset, 0 2px 8px #0008; }
.tabs > .tab-link.active::after { content:""; position:absolute; left:18px; right:18px; bottom:3px; height:2px; border-radius:2px; background:#4da3ff; }
.subtabs { gap: 0; border-bottom: none; background: #0b121b; border: 1px solid #1f2b3a; border-radius: 11px; padding: 4px; width: fit-content; max-width: 100%; }
.subtabs button { border: none; border-radius: 8px; padding: 7px 13px; color: #9fb3c8; font-weight: 600; position: relative; }
.subtabs button + button::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; border-left: 1px solid #22303f; }
.subtabs button.active::before, .subtabs button.active + button::before { display: none; }
.subtabs button:hover { color: #e6edf3; }
.subtabs button.active { background: #22344a; color: #fff; box-shadow: 0 2px 6px #0008; }
@media (max-width:700px){
  .bottom-nav button { position: relative; }
  .bottom-nav button.active { color: #fff; background: #22344a; box-shadow: 0 2px 8px #0008; }
  .bottom-nav button.active svg { stroke: #4da3ff; }
  /* list tabs wrap onto several rows on a phone, so use spacing instead of dividers */
  .subtabs { gap: 2px 4px; }
  .subtabs button + button::before { display: none; }
}
/* top-bar menu */
.user-info { display: flex; align-items: center; gap: 10px; }
.menu-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #2a3a4c; background: #0f1620; color: #cfe3f7; display: grid; place-items: center; cursor: pointer; padding: 0; }
.menu-btn:hover { border-color: #4da3ff; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn.dot::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #ffb84d; box-shadow: 0 0 0 2px #131c28; }
.menu-layer { position: fixed; inset: 0; z-index: 40; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(5,9,14,.55); }
.menu-panel { position: absolute; top: calc(var(--hdr, 66px) + 6px); right: max(12px, env(safe-area-inset-right, 0px)); width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - var(--hdr, 66px) - 24px);
  max-height: calc(100dvh - var(--hdr, 66px) - 18px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; align-content: start; background: #131c28; border: 1px solid #2a3a4c; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6);
  display: grid; gap: 0; animation: menuIn .14s ease-out; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #1f2b3a; }
.menu-sec { padding: 14px 16px; border-bottom: 1px solid #1f2b3a; display: grid; gap: 8px; }
.menu-sec:last-child { border-bottom: none; }
.menu-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #7d93a8; }
.menu-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.menu-tab { padding: 11px 10px; border-radius: 9px; border: 1px solid #1f2b3a; background: #0f1620; color: #cfe3f7; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.menu-tab.active { border-color: #4da3ff; color: #4da3ff; }
.menu-ok { color: #4ddc8a; font-weight: 700; }
.menu-sec .checks { gap: 8px 14px; }
.menu-sec .alerts-panel ol, .menu-sec ol { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nudge { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #ffb84d14; border: 1px solid #ffb84d55; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .menu-panel { animation: none; } }

/* Calendar day view: each tour's names sit in a segmented tray (same look as the tabs).
   Each name is its own segment, so rows that wrap on a phone still look tidy. */
.duty-tray { display: flex; flex-wrap: wrap; gap: 3px; flex: 1 1 auto; min-width: 0; background: #0b121b; border: 1px solid #1f2b3a; border-radius: 10px; padding: 3px; }
.duty-tray .duty-n { background: #162231; border: none; border-radius: 7px; padding: 5px 10px; font-weight: 600; }
.duty-tray .duty-n.me { background: #22344a; box-shadow: 0 0 0 1px #4da3ff inset, 0 2px 6px #0008; }
.menu-install { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #2a3a4c; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 13px; }

/* Unfilled shift alert (super admins): bold, red, top of every admin page */
.unfilled-alert { border: 2px solid #ff5a5a; background: linear-gradient(160deg, #3a1214 0%, #1f0f12 100%); border-radius: 14px; padding: 16px 18px; display: grid; gap: 12px; box-shadow: 0 0 0 4px #ff5a5a1f, 0 8px 24px #0009; }
.ua-head { display: flex; gap: 14px; align-items: flex-start; }
.ua-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #ff5a5a; color: #1a0607; font: 900 24px/38px "Segoe UI", system-ui, sans-serif; text-align: center; animation: ua-pulse 1.6s ease-in-out infinite; }
@keyframes ua-pulse { 0%,100% { box-shadow: 0 0 0 0 #ff5a5a88; } 50% { box-shadow: 0 0 0 8px #ff5a5a00; } }
@media (prefers-reduced-motion: reduce) { .ua-icon { animation: none; } }
.ua-head h2 { margin: 0; font-size: 22px; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: .4px; }
.ua-head p { margin: 4px 0 0; color: #ffc9c9; font-size: 14px; }
.ua-list { display: grid; gap: 8px; }
.ua-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; background: #0f162099; border: 1px solid #ff5a5a55; border-radius: 10px; padding: 10px 12px; }
.ua-what { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; min-width: 0; }
.ua-what strong { font-size: 18px; font-weight: 800; color: #fff; }
.ua-what span { color: #ffd8d8; font-size: 14px; }
.ua-note { color: #ffb3b3 !important; }
.ua-btn { background: #ff5a5a; color: #1a0607; font-weight: 800; border: none; }
.ua-btn:hover { background: #ff7a7a; }

/* My stats */
.stand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.stand { background: #0b121b; border: 1px solid #1f2b3a; border-radius: 11px; padding: 12px; display: grid; gap: 4px; }
.stand.next { border-color: #4ddc8a88; background: linear-gradient(160deg, #10241a 0%, #0b121b 100%); }
.stand-pos { display: flex; align-items: baseline; gap: 6px; }
.stand-num { font-size: 28px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.stand.next .stand-num { color: #4ddc8a; }
.stand-list { font-weight: 700; color: #cfe3f7; }
.stand-list .kind { font-weight: 400; color: #5b6f82; font-size: 12px; }
.stand-note { font-size: 13px; color: #9fb3c8; }
.sched-row { display: flex; gap: 10px; align-items: center; }
.sched-day { flex: none; width: 6.5em; font-size: 13px; color: #9fb3c8; font-weight: 600; }
.sched-row .duty-tray { flex: 1 1 auto; }
.duty-tray .duty-n.ot { background: #3a2a0f; color: #ffcf7a; }
.cal-sub .actions { flex-wrap: wrap; }
.cal-sub a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* Master Schedule (super admin): drag an officer onto another officer to cover their spot */
.cov-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; background: #22344a; border: 1px solid #4da3ff; border-radius: 9px; padding: 7px 12px; font-weight: 700; box-shadow: 0 8px 24px #000a; }
body.cov-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.cov-hint { background: #4da3ff14; border: 1px solid #4da3ff55; border-radius: 10px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cov-confirm { border: 2px solid #4ddc8a; background: linear-gradient(160deg, #10241a 0%, #0f1620 100%); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; box-shadow: 0 8px 24px #0009; }
.cov-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 22px; font-weight: 800; color: #fff; }
.cov-arrow { color: #4ddc8a; }
.cov-dates { font-size: 16px; font-weight: 700; color: #cfe3f7; }
.cov-facts { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: #cfe3f7; font-size: 14px; }
.cov-facts li.warn { color: #ffcf7a; }
.rank-chip { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; border: 1px solid #2a3a4c; background: #0f1620; color: #9fb3c8; font-size: 11px; font-weight: 700; letter-spacing: .3px; vertical-align: 1px; }

/* Master Schedule chart (layout follows the printed rotation chart; colors follow the app) */
.ms-wrap { gap: 12px; }
.ms-scroll { overflow-x: auto; margin-inline: -4px; padding: 0 4px 6px; border-radius: 10px; }
.ms-table { border-collapse: separate; border-spacing: 0; width: max-content; background: transparent; font-variant-numeric: tabular-nums; }
.ms-table th, .ms-table td { padding: 0; border: none; text-transform: none; letter-spacing: 0; }
.ms-corner, .ms-who, .ms-month th { position: sticky; left: 0; z-index: 3; background: #131c28; box-shadow: 1px 0 0 #2a3a4c; }
.ms-corner { min-width: 150px; text-align: center; vertical-align: middle; border-bottom: 2px solid #2a3a4c !important; }
.ms-year { font: 900 22px/1 "Segoe UI", system-ui, sans-serif; color: #4ddc8a; }
.ms-dow { width: 22px; min-width: 22px; height: 26px; text-align: center; font: 800 11px/26px "Segoe UI", system-ui, sans-serif; color: #9fb3c8; background: #0f1620; border-bottom: 2px solid #2a3a4c !important; border-right: 1px solid #1a2532 !important; }
.ms-dow:nth-child(7n+1) { border-right: 2px solid #2a3a4c !important; }
.ms-dow.wk { background: #ffb84d26; color: #ffcf7a; }
.ms-dow.now { box-shadow: inset 0 -3px 0 #4ddc8a; color: #fff; }
.ms-who { min-width: 150px; max-width: 170px; padding: 6px 8px !important; vertical-align: middle; border-bottom: 1px solid #2a3a4c !important; }
tbody tr:nth-child(even) > .ms-who { background: #172231; }
.ms-who .ms-empty { font-size: 12px; font-style: italic; }
.ms-off { display: grid; gap: 1px; justify-items: start; border-radius: 8px; padding: 2px; margin: 1px 0; }
.ms-off.picked { box-shadow: 0 0 0 2px #4da3ff; background: #4da3ff14; }
.ms-off.target, .ms-off.drop { box-shadow: 0 0 0 2px #4ddc8a; background: #4ddc8a1a; }
.ms-name { background: none; border: none; padding: 2px 4px; font: 800 italic 15px/1.2 "Segoe UI", system-ui, sans-serif; cursor: grab; touch-action: none; border-radius: 6px; text-align: left; }
.ms-name:hover { background: #22344a; }
.ms-off.is-covered .ms-name { opacity: .55; text-decoration: line-through; }
.ms-note { font-size: 10.5px; line-height: 1.2; padding: 1px 5px; border-radius: 5px; }
.ms-note.covered { background: #2e9e5b22; color: #8fe3b0; }
.ms-note.covering { background: #4da3ff1a; color: #9fcbff; }
.ms-cell { width: 22px; min-width: 22px; text-align: center; vertical-align: middle; padding: 4px 0 !important; border-right: 1px solid #1a2532 !important; border-bottom: 1px solid #2a3a4c !important; }
.ms-cell:nth-child(7n+1) { border-right: 2px solid #2a3a4c !important; }
.ms-cell i { display: block; font: 700 10px/11px Consolas, Menlo, monospace; font-style: normal; }
.ms-cell.day { color: #6db4ff; } .ms-cell.eve { color: #ffb84d; } .ms-cell.mid { color: #c9b4ff; } .ms-cell.off { color: #3e5064; }
.ms-cell.wk { background: #ffb84d14; }
.ms-cell.wk.off { color: #6d5a3a; }
.ms-cell.now { background: #4ddc8a14; box-shadow: inset 1px 0 0 #4ddc8a55, inset -1px 0 0 #4ddc8a55; }
.ms-key tr:first-child > * { border-top: 3px solid #2a3a4c !important; }
.ms-month th { font: 800 12px/22px "Segoe UI", system-ui, sans-serif; color: #cfe3f7; text-align: center; border-bottom: 1px solid #1f2b3a !important; }
.ms-month td { height: 22px; text-align: center; font: 700 10.5px/22px Consolas, Menlo, monospace; color: #9fb3c8; border-right: 1px solid #1a2532 !important; border-bottom: 1px solid #1f2b3a !important; }
.ms-month td:nth-child(7n+1) { border-right: 2px solid #2a3a4c !important; }
.ms-month td.wk { background: #ffb84d14; color: #ffcf7a; }
.ms-month td.inrange { background: #4da3ff26; color: #fff; }
.ms-month td.today { background: #4ddc8a; color: #08101c; border-radius: 4px; }
.ms-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #9fb3c8; }
.ms-legend .lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: currentColor; }
.ms-legend .day { color: #6db4ff; } .ms-legend .eve { color: #ffb84d; } .ms-legend .mid { color: #c9b4ff; }
.ms-legend .wk::before { background: #ffb84d40; } .ms-legend .now::before { background: #4ddc8a; }
.ms-offchart { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; align-items: center; }

/* the chart gets the full screen width */
.page:has(.ms-wrap) { max-width: none; }
@media (max-width: 700px) {
  .ms-corner, .ms-who { min-width: 104px; max-width: 120px; }
  .ms-name { font-size: 13px; }
  .ms-year { font-size: 18px; }
}
.checks label.off { opacity: .45; }
/* detail picks */
.pk-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pk-turn { background: #4ddc8a14; border: 1px solid #4ddc8a66; border-radius: 10px; padding: 12px 14px; }
.pk-sub { margin: 6px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #7d93a8; }
.pk-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pk-month h3 { margin: 0 0 6px; font-size: 14px; color: #cfe3f7; }
.pk-day { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid #1f2b3a; }
.pk-date { flex: 0 0 64px; font-size: 13px; font-weight: 700; color: #9fb3c8; padding-top: 6px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid #2a3a4c; background: #0f1620; color: #e6edf3; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pk-chip:disabled { cursor: default; color: #7d93a8; }
.pk-chip:not(:disabled):hover { border-color: #4da3ff; }
.pk-chip.sel { border-color: #4ddc8a; background: #4ddc8a22; color: #4ddc8a; }
.pk-chip.taken { background: #131c28; border-style: dashed; color: #7d93a8; font-weight: 600; }
.pk-chip.mine { border: 1px solid #4ddc8a; color: #4ddc8a; background: #4ddc8a14; }
.pk-why { font-size: 11px; font-weight: 500; color: #7d93a8; }
tr.pk-up td { background: #ffb84d12; }
.pk textarea, .page textarea { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid #2a3a4c; background: #0f1620; color: #e6edf3; font: inherit; font-size: 13px; }

/* Master Schedule: Traffic Car and Extended Leave rows */
.ms-special .ms-who { background: #101a26 !important; border-top: 2px solid #2a3a4c !important; }
.ms-spot-title { font: 900 13px/1.3 "Segoe UI", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.ms-special.traffic .ms-spot-title, .spot-tag.traffic { color: #7fd8ff; }
.ms-special.leave .ms-spot-title, .spot-tag.leave { color: #ff9ec7; }
.ms-spot-cell { border-top: 2px solid #2a3a4c !important; border-bottom: 1px solid #2a3a4c !important; padding: 10px 14px !important; font-size: 13px; color: #7d93a8; font-style: italic; vertical-align: middle; cursor: default; }
.ms-special.traffic .ms-spot-cell { background: repeating-linear-gradient(135deg, #7fd8ff0a 0 10px, transparent 10px 20px); }
.ms-special.leave .ms-spot-cell { background: repeating-linear-gradient(135deg, #ff9ec70a 0 10px, transparent 10px 20px); }
.ms-special .ms-who.target, .ms-special .drop, .ms-spot-cell.drop { box-shadow: inset 0 0 0 2px #4ddc8a; background: #4ddc8a1a !important; }
.ms-note.traffic { background: #7fd8ff1a; color: #a9e6ff; }
.ms-note.leave { background: #ff9ec71a; color: #ffc2dc; }
.cov-confirm.traffic { border-color: #7fd8ff; background: linear-gradient(160deg, #0f2230 0%, #0f1620 100%); }
.cov-confirm.leave { border-color: #ff9ec7; background: linear-gradient(160deg, #2a1220 0%, #0f1620 100%); }
.cov-big .spot-tag { font-size: 22px; }
/* calendar day view: a tour that's there because of a swap or Master Schedule change */
.duty-tray .duty-n.chg { box-shadow: inset 0 0 0 1px #ffb84d88; }
.duty-tray .duty-n.chg::after { content: "changed"; margin-left: 6px; font-size: 10px; font-weight: 700; color: #ffcf7a; text-transform: uppercase; letter-spacing: .3px; }
.chg-open { color: #ffcf7a; font-weight: 600; }
/* people roster + person panel */
.pf-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fchip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid #2a3a4c; background: #0f1620; color: #9fb3c8; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.fchip .n { color: #7d93a8; }
.fchip.warn .n { color: #ffb84d; }
.fchip.on { border-color: #4da3ff; color: #fff; background: #22344a; }
.pr-list { display: grid; gap: 6px; }
.pr-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(200px, 2fr) auto; gap: 4px 16px; align-items: center; width: 100%; text-align: left;
  padding: 10px 14px; border-radius: 10px; border: 1px solid #1f2b3a; background: #0f1620; color: #e6edf3; font: inherit; cursor: pointer; }
.pr-row:hover { border-color: #4da3ff; background: #131c28; }
.pr-main { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.pr-name { font-weight: 700; font-size: 15px; }
.pr-meta { color: #9fb3c8; font-size: 13px; }
.pr-flags { display: flex; gap: 10px; align-items: center; font-size: 12px; justify-content: flex-end; }
.pr-go { font-size: 22px; color: #4da3ff; line-height: 1; }
.rank-chip.none { color: #7d93a8; border-style: dashed; }
.warn-t { color: #ffb84d; }
.ok-t { color: #4ddc8a; }
@media (max-width: 700px) {
  .pr-row { grid-template-columns: 1fr auto; }
  .pr-meta { grid-column: 1 / -1; grid-row: 2; }
  .pr-flags { grid-row: 1; grid-column: 2; }
  .pr-flags .muted, .pr-flags .ok-t { display: none; }
}
.pp-layer { z-index: 45; }
.pp-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #131c28; border-left: 1px solid #2a3a4c; box-shadow: -24px 0 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column; animation: ppIn .16s ease-out; }
@keyframes ppIn { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pp-panel { animation: none; } }
.pp-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 14px; border-bottom: 1px solid #1f2b3a; }
.pp-title { font-size: 22px; font-weight: 800; margin: 2px 0; }
.pp-body { flex: 1; overflow-y: auto; }
.pp-sec { padding: 16px 18px; border-bottom: 1px solid #1f2b3a; display: grid; gap: 10px; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
@media (max-width: 520px) { .pp-grid { grid-template-columns: 1fr; } }
.pp-panel input, .pp-panel select { padding: 8px 10px; border-radius: 6px; border: 1px solid #2a3a4c; background: #0f1620; color: #e6edf3; font: inherit; font-size: 14px; width: 100%; }
.pp-panel input[type="checkbox"] { width: auto; }
.pp-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #1f2b3a; background: #101822; }
.setup-tools summary { cursor: pointer; font-weight: 700; color: #9fb3c8; }
.page-subtabs { margin-bottom: 14px; }
.pp-grid { align-items: start; }
.pp-sec > div { font-size: 13px; }
.pp-sec .field label { font-size: 13px; }

/* Holidays (green, like the paper chart) */
.hol-star { font-style: normal; color: #ffcf5a; font-size: .7em; margin-left: 2px; vertical-align: super; line-height: 0; }
.cal-day.today .hol-star { color: #08101c; }
.cal-hol { display: block; font-size: 9px; line-height: 1.1; color: #ffd77a; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; padding: 0 2px; }
.hol-banner { background: #2e9e5b26; border: 1px solid #2e9e5b88; color: #b6f0cd; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.ms-month td.holiday { background: #2e9e5b; color: #fff; border-radius: 4px; }
.ms-legend .hol { color: #4ddc8a; } .ms-legend .hol::before { background: #2e9e5b; }
@media (max-width: 700px) { .cal-hol { display: none; } }

/* Find an officer (admin) */
.find-bar { display: flex; justify-content: flex-end; margin-bottom: -8px; }
.find-box { position: relative; width: min(340px, 100%); }
.find-box input { width: 100%; padding: 9px 12px 9px 34px; border-radius: 10px; border: 1px solid #2a3a4c; background: #0f1620 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d93a8' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px 50%; color: #e6edf3; font: inherit; font-size: 14px; }
.find-box input:focus { border-color: #4da3ff; outline: none; }
.find-hits { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; background: #131c28; border: 1px solid #2a3a4c; border-radius: 10px; box-shadow: 0 10px 28px #000a; display: grid; padding: 4px; }
.find-hits button { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: none; border: none; padding: 8px 10px; border-radius: 7px; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.find-hits button:hover, .find-hits button:focus-visible { background: #22344a; }
.oc-layer { display: grid; place-items: start center; padding-top: max(70px, env(safe-area-inset-top, 0px)); overflow-y: auto; }
.oc-card { position: relative; width: min(640px, calc(100vw - 24px)); background: #131c28; border: 1px solid #2a3a4c; border-radius: 16px; padding: 18px; display: grid; gap: 14px; box-shadow: 0 18px 50px #000c; margin-bottom: 40px; }
.oc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.oc-name { font-size: 24px; font-weight: 900; }
.oc-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; margin-top: 4px; }
.oc-sub .rank-chip { margin-left: 0; }
.oc-sec { display: grid; gap: 6px; }
.oc-sec ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; color: #cfe3f7; }
.oc-strip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; }
.oc-day { display: grid; justify-items: center; gap: 1px; background: #0b121b; border: 1px solid #1f2b3a; border-radius: 7px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.oc-day.holiday { border-color: #2e9e5b; }
.oc-day.chg { box-shadow: inset 0 0 0 1px #ffb84d; }
.oc-day.away { opacity: .55; }
.oc-dow { font-size: 9px; color: #7d93a8; font-weight: 700; }
.oc-date { font-size: 12px; font-weight: 800; color: #e6edf3; }
.oc-tour { font: 700 9.5px/1.2 Consolas, Menlo, monospace; }
.oc-tour.day { color: #6db4ff; } .oc-tour.eve { color: #ffb84d; } .oc-tour.mid { color: #c9b4ff; } .oc-tour.off { color: #3e5064; }
.oc-list { display: inline-block; font-size: 13px; background: #0b121b; border: 1px solid #1f2b3a; border-radius: 8px; padding: 4px 9px; margin: 0 4px 4px 0; }
.oc-sec > ul:has(.oc-list) { list-style: none; padding: 0; display: flex; flex-wrap: wrap; }
.oc-stats { margin: 0; }
@media (max-width: 700px) { .find-bar { justify-content: stretch; } .find-box { width: 100%; } .oc-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* Time bank (My stats) */
.bank-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bank-tile { background: #0b121b; border: 1px solid #1f2b3a; border-radius: 10px; padding: 9px 12px; display: grid; gap: 1px; font-variant-numeric: tabular-nums; }
.bt-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #9fb3c8; }
.bt-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bt); }
.bt-hrs { font-size: 20px; font-weight: 800; color: #e6edf3; line-height: 1.2; }
.bt-hrs small { font-size: 12px; font-weight: 600; color: #7d93a8; }
.bt-days { font-size: 12px; color: #7d93a8; }
.bank-tile.vacation { --bt: #4da3ff; } .bank-tile.sick { --bt: #c9a4ff; } .bank-tile.personal { --bt: #ffb84d; } .bank-tile.timeback { --bt: #4ddc8a; } .bank-tile.holiday { --bt: #3fd3d3; }
@media (max-width: 700px) { .bank-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bank-form { display: grid; gap: 10px; background: #0b121b; border: 1px solid #1f2b3a; border-radius: 12px; padding: 12px; }
.bank-kind { display: inline-flex; gap: 0; background: #0f1620; border: 1px solid #1f2b3a; border-radius: 10px; padding: 3px; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.bank-kind button { background: none; border: none; color: #9fb3c8; font: 600 14px/1.2 inherit; padding: 7px 13px; border-radius: 8px; cursor: pointer; }
.bank-kind button.on { background: #22344a; color: #fff; box-shadow: 0 2px 6px #0008; }
.bank-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.bank-preview { font-size: 14px; font-weight: 700; color: #9fcbff; font-variant-numeric: tabular-nums; }
td.num.pos { color: #4ddc8a; } td.num.neg { color: #ff9b8f; }
.bank-note { font-size: 12px; }
.bank-auto { margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #9fcbff; background: #4da3ff1a; border-radius: 5px; padding: 1px 6px; }

/* Department patch and name next to the TimeTrace logo */
.logo-app { display: flex; align-items: center; gap: inherit; }
.logo-dept { display: flex; align-items: center; gap: 10px; padding-left: 14px; margin-left: 2px; border-left: 1px solid #2a3a4c; }
.dept-patch { height: 46px; width: auto; filter: drop-shadow(0 2px 4px #0009); }
.dept-name { display: grid; line-height: 1.15; font-weight: 800; font-size: 13px; color: #ffd400; letter-spacing: .2px; text-transform: uppercase; }
.dept-name > span:nth-child(2) { color: #cfe3f7; font-weight: 700; font-size: 11px; letter-spacing: .6px; }
.logo-hero .logo-app { flex-direction: column; gap: 14px; }
.logo-hero .logo-dept { border-left: none; padding-left: 0; margin: 4px 0 0; flex-direction: column; gap: 8px; }
.logo-hero .dept-patch { height: 96px; }
.logo-hero .dept-name { text-align: center; font-size: 15px; }
.logo-hero .dept-name > span:nth-child(2) { font-size: 12px; }
@media (max-width: 700px) {
  .logo-dept { padding-left: 10px; gap: 7px; }
  .dept-patch { height: 34px; }
  .dept-name { font-size: 10px; }
  .dept-name > span:nth-child(2) { font-size: 8.5px; letter-spacing: .4px; }
}
@media (max-width: 420px) {
  .logo-compact .logo-text { font-size: 16px; }
  .logo-compact .logo-icon { width: 24px; height: 24px; }
  .logo-compact { gap: 7px; }
  .logo-dept { padding-left: 7px; gap: 5px; }
  .dept-patch { height: 30px; }
  .dept-name { font-size: 9px; }
  .dept-name > span:nth-child(2) { font-size: 7.5px; letter-spacing: .2px; }
}
@media (max-width: 480px) {
  header { flex-wrap: nowrap !important; gap: 8px; }
  header .logo { min-width: 0; flex-shrink: 1; }
  #app.has-bottom-nav .user-info > strong { display: none; } /* officer's name is in the menu ("Signed in as") */
}
.dept-name span { white-space: nowrap; }
@media (max-width: 480px) {
  #app:not(.has-bottom-nav) .user-info > span { display: none; } /* admin: keep just "Sign out" on phones */
  #app:not(.has-bottom-nav) .user-info .linkish { margin-left: 0; white-space: nowrap; }
}

/* Master Schedule: drop an officer onto a row's tours */
.ms-table tbody tr[data-drop^="@row:"].drop > td.ms-cell, .ms-table tbody tr.target > td.ms-cell { background: #4ddc8a1f; box-shadow: inset 0 1px 0 #4ddc8a, inset 0 -1px 0 #4ddc8a; }
.ms-table tbody tr[data-drop^="@row:"].drop > .ms-who, .ms-table tbody tr.target > .ms-who { box-shadow: inset 3px 0 0 #4ddc8a; }
.spot-tag.row { color: #9fcbff; }
.ms-note.row { background: #4da3ff1a; color: #9fcbff; }
.cov-confirm.row-move { border-color: #4da3ff; background: linear-gradient(160deg, #0f2036 0%, #0f1620 100%); }
.ms-who .ms-empty { display: block; white-space: normal; line-height: 1.25; overflow-wrap: anywhere; }

/* TimeTrace logo (high tech: hex shield, minute markers) */
.logo-text { font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: #d8f6ff; }
.logo-text .accent { color: #2ee6ff; text-shadow: 0 0 10px #2ee6ff88; }
.logo-compact .logo-text { font-size: 22px; }
.logo-hero .logo-text { font-size: 34px; letter-spacing: 5px; }
.logo-icon { filter: drop-shadow(0 0 6px #2ee6ff33) drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.logo-compact .logo-icon { width: 38px; height: 38px; }
@media (max-width: 700px) { .logo-compact .logo-text { font-size: 19px; letter-spacing: 2px; } .logo-compact .logo-icon { width: 30px; height: 30px; } }
@media (max-width: 420px) { .logo-compact .logo-text { font-size: 16px; letter-spacing: 1.5px; } .logo-compact .logo-icon { width: 26px; height: 26px; } }
@media (max-width: 380px) { .logo-compact .logo-text { font-size: 15px; letter-spacing: 1px; } .logo-compact .logo-icon { width: 24px; height: 24px; } .logo-compact { gap: 6px; } }
/* officer: today / tomorrow / next overtime */
.md-card { background: #131c28; border: 1px solid #1f2b3a; border-radius: 14px; padding: 12px; display: grid; gap: 10px; margin-bottom: 18px; }
.md-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.md-tile { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: 10px; background: #0f1620; border: 1px solid #1f2b3a; min-width: 0; }
.md-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #7d93a8; }
.md-main { font-size: 18px; font-weight: 800; color: #e6edf3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-sub { font-size: 12px; color: #9fb3c8; }
.md-tile.has-ot { border-color: #4ddc8a55; }
.md-tile.has-ot .md-sub { color: #4ddc8a; font-weight: 700; }
.md-tile.dim .md-main { color: #7d93a8; font-weight: 700; font-size: 15px; }
.md-more { font-size: 13px; }
.md-list { display: grid; gap: 4px; margin-top: 6px; }
.md-row { display: grid; grid-template-columns: 92px 84px 1fr auto; gap: 8px; align-items: center; font: inherit; font-size: 13px; text-align: left; color: #cfe3f7;
  background: #0f1620; border: 1px solid #1f2b3a; border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.md-row:hover { border-color: #2f4560; background: #131c28; }
.md-row.ot { border-color: #4ddc8a55; }
.md-row.off .md-tour { color: #5b6f82; }
.md-day { font-weight: 700; color: #e6edf3; }
.md-tour { font-variant-numeric: tabular-nums; }
.md-ot { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.md-otchip { background: #2e9e5b26; color: #4ddc8a; font-weight: 700; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.md-hol { color: #8fe3b0; font-size: 12px; }
.md-go { color: #4da3ff; font-weight: 700; font-size: 12px; }
button.md-tile { font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.md-tile:hover { border-color: #4da3ff88; background: #131c28; }
.md-tile .md-go { margin-top: 2px; }
.md-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #4da3ff; }
.md-caret { display: inline-block; transition: transform .15s; } .md-caret.up { transform: rotate(180deg); }
.md-alert { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: #cfe3f7; padding-top: 8px; border-top: 1px solid #1f2b3a; }
@media (max-width: 700px) {
  .md-tiles { grid-template-columns: 1fr 1fr; }
  .md-tiles .md-tile:nth-child(3) { grid-column: 1 / -1; }
  .md-main { font-size: 16px; }
}
.md-card .linkish { background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: #4da3ff; cursor: pointer; }
.md-card .linkish.muted { color: #7d93a8; font-weight: 600; }
/* person panel: lists */
.ot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ot-lbl { font-size: 13px; font-weight: 700; color: #cfe3f7; min-width: 70px; }
.switches { display: grid; gap: 6px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #1f2b3a; background: #0f1620; color: #e6edf3; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.switch-row:hover { border-color: #2a3a4c; }
.sw-hint { font-weight: 500; font-size: 12px; }
.switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #2a3a4c; flex: 0 0 auto; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #cfe3f7; transition: transform .15s; }
.switch-row.on .switch { background: #4ddc8a; }
.switch-row.on .switch::after { transform: translateX(18px); background: #fff; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }
.next-chip { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #4ddc8a22; border: 1px solid #4ddc8a66; color: #4ddc8a; font-size: 11px; font-weight: 700; }
tr.next-up td { background: #4ddc8a0d; }
/* Master Schedule: today is blue (green means holiday); names stay inside their column */
.ms-dow.now { box-shadow: inset 0 -3px 0 #4da3ff; color: #fff; background: #4da3ff33; }
.ms-cell.now { background: #4da3ff12; box-shadow: inset 1px 0 0 #4da3ff55, inset -1px 0 0 #4da3ff55; }
.ms-month td.today { background: #4da3ff; color: #08101c; }
.ms-legend .now::before { background: #4da3ff; }
.ms-corner, .ms-who { width: 160px; min-width: 160px; max-width: 160px; }
.ms-who { overflow: hidden; }
.ms-off { min-width: 0; max-width: 100%; justify-items: stretch; }
.ms-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ms-name .who { white-space: nowrap; }
.ms-note { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Master Schedule: names stay inside their column (long names wrap to a second line) */
.ms-who { width: 160px; min-width: 160px; max-width: 160px; overflow: hidden; }
.ms-off { max-width: 100%; }
.ms-name { display: block; max-width: 100%; font-size: 14px; line-height: 1.15; }
.ms-name .who { display: inline-block; white-space: normal; overflow-wrap: normal; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .ms-who, .ms-corner { width: 120px; min-width: 120px; max-width: 120px; } .ms-name { font-size: 13px; } }
.ms-note { display: block; max-width: 100%; white-space: normal; }
.ms-note .who { white-space: normal; }
/* today's column: a clear marker in the header, only a faint tint below */
.ms-dow.now { background: #4ddc8a; color: #08101c; box-shadow: none; border-radius: 4px 4px 0 0; }
.ms-cell.now { background: #4ddc8a0b; box-shadow: inset 1px 0 0 #4ddc8a40, inset -1px 0 0 #4ddc8a40; }
/* overtime slips */
.slip { background: #131c28; border: 1px solid #1f2b3a; border-left: 4px solid #2a3a4c; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.slip-sup, .slip-lt { border-left-color: #ffb84d; }
.slip-approved { border-left-color: #4ddc8a; }
.slip-denied { border-left-color: #ff6b6b; }
.slip-cancelled { opacity: .6; }
.slip-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.slip-who { font-weight: 800; font-size: 16px; }
.slip-when { color: #9fb3c8; font-size: 13px; }
.slip-hrs { text-align: right; line-height: 1; }
.slip-hrs strong { display: block; font-size: 24px; font-weight: 900; color: #e6edf3; }
.slip-hrs span { font-size: 11px; color: #7d93a8; text-transform: uppercase; letter-spacing: .5px; }
.slip-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: #cfe3f7; }
.slip-why { margin: 0; font-size: 14px; color: #e6edf3; white-space: pre-wrap; }
.slip-act { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid #1f2b3a; }
.slip-act input { padding: 8px 10px; border-radius: 6px; border: 1px solid #2a3a4c; background: #0f1620; color: #e6edf3; font: inherit; font-size: 14px; }
.slip-total { justify-content: end; }
.slip-total strong { font-size: 20px; padding: 6px 0; }
.page input[type="time"] { padding: 8px 10px; border-radius: 6px; border: 1px solid #2a3a4c; background: #0f1620; color: #e6edf3; font: inherit; color-scheme: dark; }
.role-lt { background: #c9b4ff33; color: #c9b4ff; }
/* Master Schedule: undo / reset bar */
.ms-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: #131c28; border: 1px solid #1f2b3a; margin-bottom: 12px; }
.ms-bar-txt { font-size: 14px; }
.ms-reset { padding: 14px; border-radius: 12px; border: 1px solid #ff6b6b66; background: #ff6b6b0f; display: grid; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.ms-history summary { cursor: pointer; color: #9fb3c8; font-weight: 600; font-size: 13px; padding: 4px 0; }
.slip-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid #1f2b3a; font-size: 13px; }
/* payroll report */
.print-only { display: none; }
.pay-table table { font-variant-numeric: tabular-nums; }
.pay-table th.num, .pay-table td.num { text-align: right; white-space: nowrap; }
.pay-table .pay-groups th { text-align: center; font-size: 11px; border-bottom: 2px solid #2a3a4c; }
.pay-table .pay-groups .g-ot { color: #ffb84d; }
.pay-table .pay-groups .g-used { color: #6db4ff; }
.pay-table td.strong-ot { color: #ffb84d; font-weight: 800; }
.pay-table td.strong-used { color: #6db4ff; font-weight: 800; }
.pay-table tfoot td { border-top: 2px solid #2a3a4c; font-weight: 700; }
.pay-table tr.dim td { opacity: .55; }
.pay-detail summary { cursor: pointer; font-weight: 700; color: #cfe3f7; }
@media print {
  body, #app, .page, .overview-window { background: #fff !important; color: #000 !important; box-shadow: none !important; border-color: #999 !important; }
  .page-subtabs, .find-bar, .bottom-nav, .menu-layer, .unfilled-alert { display: none !important; }
  .print-only { display: block !important; }
  .pay-print-head { margin-bottom: 10px; font-size: 13px; } .pay-print-head strong { font-size: 16px; }
  .pay-table table, .pay-detail table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
  .pay-table th, .pay-table td, .pay-detail th, .pay-detail td { color: #000 !important; border: 1px solid #bbb !important; padding: 3px 5px !important; background: #fff !important; }
  .pay-table tr.dim td { opacity: 1; color: #666 !important; }
  .who { color: #000 !important; } .who::before { display: none; }
  .pay-detail { break-before: page; } .pay-detail[open] summary, .pay-detail summary { font-size: 13px; color: #000; }
  .pay-sign { margin-top: 28px; display: flex !important; gap: 40px; font-size: 12px; }

}
@media print {
  .pay-table, .pay-table .overview-list, .overview-list { overflow: visible !important; max-height: none !important; }
  .pay-table table { font-size: 9.5px; table-layout: auto; }
  .pay-table th { white-space: normal; }
}
@media print {
  .page { max-width: none !important; width: auto !important; margin: 0 !important; }
  .pay-table, .pay-detail { padding: 0 !important; border: none !important; }
  .pay-table .overview-header h2 { display: none; }
  .pay-table table { font-size: 9px; width: 100% !important; }
  .pay-table th, .pay-table td { padding: 2px 4px !important; letter-spacing: 0 !important; }
  .pay-table td:nth-child(2) { white-space: nowrap; }
}
@media print {
  .pay-table th, .pay-table th.num { white-space: normal !important; word-break: normal; font-size: 8.5px; }
  .pay-table .overview-list, .pay-table .overview-window { overflow: visible !important; }
}
/* locked pay periods */
.pay-lock { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid #2a3a4c; background: #131c28; margin-bottom: 12px; font-size: 14px; }
.pay-lock.locked { border-color: #4ddc8a66; background: #4ddc8a0f; }
.pay-final { margin-top: 4px; font-weight: 800; letter-spacing: .5px; }
/* two-way toggle (e.g. times vs. hours on an overtime slip) */
.seg { display: inline-flex; border: 1px solid #2a3a4c; border-radius: 10px; overflow: hidden; width: fit-content; }
.seg button { padding: 8px 14px; background: #0f1620; color: #9fb3c8; border: none; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.seg button + button { border-left: 1px solid #2a3a4c; }
.seg button.on { background: #22344a; color: #fff; }
/* admin site on phones: ☰ menu instead of the sideways tab strip */
.menu-btn.sm-only { display: none; }
@media (max-width: 700px) {
  /* the sections as tabs that wrap onto a few rows (not a sideways strip); the ☰ menu keeps Help, Look and Sign Out */
  #app.admin-menu .tabs { display: flex; flex-wrap: nowrap; gap: 4px; overflow: visible; position: static; padding: 10px 8px; }   /* one row: Dashboard · Approvals · Post · Schedule · More */
  #app.admin-menu nav.tabs button.tab-link { flex: 1 1 auto !important; min-width: 0; padding: 8px 3px !important; font-size: 12.5px !important; overflow: hidden; text-overflow: ellipsis; }
  /* the number doesn't fit on a phone: a small dot says something is waiting ("Needs you" has the counts) */
  #app.admin-menu nav.tabs button.tab-link { position: relative; font-size: 11px !important; padding: 8px 4px !important; letter-spacing: 0 !important; }
  #app.admin-menu nav.tabs button.tab-link .tab-count { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; min-width: 0; padding: 0; font-size: 0; border-radius: 50%; }
  #app.admin-menu nav.tabs button.tab-link { background: #16212f; flex: 1 1 auto; justify-content: center; text-align: center; padding: 8px 10px; font-size: 13px; border: 1px solid #2a3a4c !important; border-radius: 10px; margin: 0; white-space: nowrap; }
  #app.admin-menu .tabs .tab-link::before, #app.admin-menu .tabs .tab-link::after { display: none; }
  #app.admin-menu nav.tabs button.tab-link.active { border-color: #4da3ff !important; }
  #app.admin-menu .menu-btn.sm-only { display: grid; }
  #app.admin-menu .user-info > span, #app.admin-menu .user-info > .linkish { display: none; }
}
.bottom-nav button { position: relative; }
.nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: #ff6b6b; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #0f1620; }
.pay-reason { max-width: 420px; font-size: 13px; color: #cfe3f7; }
@media print { .pay-reason { max-width: none; font-size: 10px; } }
.pay-appr { font-size: 12px; min-width: 190px; }
.pay-appr div + div { margin-top: 2px; }
@media print { .pay-appr { font-size: 9px; min-width: 0; } }
/* dashboard: year at a glance */
.yr .stat-strip { margin: 0; }
.yr-block { display: grid; gap: 8px; min-width: 0; }
.yr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 28px; }
.yr-legend { display: flex; gap: 16px; font-size: 12px; color: #9fb3c8; }
.yr-legend .sw, .yr-tip .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.yr-sw-f { background: #3987e5; } .yr-sw-u { background: #d95926; }
.yr-chart-wrap { position: relative; }
.yr-chart { width: 100%; height: auto; display: block; }
.yr-grid { stroke: #1f2b3a; stroke-width: 1; }
.yr-tick { fill: #7d93a8; font-size: 11px; font-family: inherit; }
.yr-filled { fill: #3987e5; } .yr-unfilled { fill: #d95926; }
.yr-hit { fill: transparent; cursor: default; } .yr-hit:hover { fill: #ffffff0a; }
.yr-tip { position: absolute; top: 0; transform: translateX(-50%); background: #0f1620; border: 1px solid #2a3a4c; border-radius: 8px; padding: 6px 10px; font-size: 12px; color: #e6edf3; pointer-events: none; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.yr-bars { display: grid; gap: 6px; }
.yr-bar-row { display: grid; grid-template-columns: minmax(90px, 130px) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.yr-bar-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cfe3f7; }
.yr-bar-track { height: 10px; background: #0f1620; border-radius: 999px; overflow: hidden; }
.yr-bar { display: block; height: 100%; background: #3987e5; border-radius: 0 4px 4px 0; }
.yr-bar-val { color: #cfe3f7; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
@media (max-width: 700px) { .yr-chart-wrap { overflow-x: auto; } .yr-chart { min-width: 560px; } }

/* ---------- sign-in: code + PIN (officers) and two-step (supervisors) ---------- */
.gate-box { display: flex; flex-direction: column; max-width: calc(100vw - 32px); box-sizing: border-box; }
.gate-box > .subtitle { margin-bottom: 6px; font-size: 16px; color: #e6edf3; letter-spacing: 0; }
.gate-box > button { margin-top: 12px; }
.gate-note { color: #9fb3c8; font-size: 13px; line-height: 1.45; margin: 6px 0 0; text-align: left; }
.login-box form .gate-note { margin: 0 0 6px; }
.login-box button.btn-alt { background: #1c2a3d; color: #cfe3ff; box-shadow: none; border: 1px solid #2f4560; }
.login-box button.btn-alt:hover { background: #22344b; box-shadow: none; }
.login-box button.linkish, .login-box a.linkish { background: none; border: none; box-shadow: none; color: #6db4ff; font-weight: 600; padding: 6px; margin-top: 10px; font-size: 13px; text-decoration: none; cursor: pointer; }
.login-box button.linkish:hover { transform: none; box-shadow: none; text-decoration: underline; }
.gate-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 4px; }
.gate-links .linkish { margin-top: 4px !important; }
.login-box .check-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.login-box .check-line input { width: 16px; height: 16px; padding: 0; box-shadow: none; }
.code-big { font-size: 18px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .login-box.gate-box, .login-box { width: auto; padding: 32px 22px; } }
.code-box { border: 1px solid #2f4560; background: #13202f; border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.code-box .code-big { font-size: 26px; font-weight: 800; color: #e6edf3; letter-spacing: 3px; }

/* While the ☰ menu is open the page behind it doesn't scroll, so swipes scroll the menu itself. */
body.menu-open { overflow: hidden; }
.menu-layer { z-index: 60; overscroll-behavior: contain; }

/* Add officers (Bike / Boat Patrol) */
.add-officers { display: grid; gap: 10px; background: #0b121b; border: 1px solid #1f2b3a; border-radius: 12px; padding: 12px; }
.ao-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.ao-head strong { font-size: 15px; }
.ao-row { align-items: center; }
.ao-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ao-chip { display: inline-flex; align-items: center; gap: 6px; background: #4da3ff14; border: 1px solid #4da3ff66; border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 14px; }
.ao-x { background: none; border: none; color: #9fb3c8; cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 999px; }
.ao-x:hover { background: #22344a; color: #fff; }
.switch-row[disabled] { opacity: .55; cursor: not-allowed; }
/* change record + nightly check */
.check-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 13px; }
.lg-changes { font-size: 12px; line-height: 1.45; max-width: 520px; word-break: break-word; }
.lg-f { color: #9fb3c8; font-weight: 600; }
.lg-old { color: #ff9b8f; text-decoration: line-through; text-decoration-color: #ff9b8f88; }
.lg-new { color: #7ee2a8; }
td.nowrap, .nowrap { white-space: nowrap; }

.cancel-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.look-pick { width: auto !important; padding: 4px 8px !important; font-size: 12px !important; background: transparent; }
/* the open list: Windows draws it light, so give the choices their own colors (they were white on white) */
select option, select optgroup { background-color: #0f1620; color: #e6edf3; }

/* Tabs with something waiting (time off and swap requests, overtime slips, unfilled shifts) */
.tab-link.hot, .subtabs button.hot, .menu-tab.hot { color: #ffb347 !important; font-weight: 800; }
.tab-link.hot.urgent, .menu-tab.hot.urgent { color: #ff7b72 !important; }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 10px; background: #ff9f1a; color: #1a1205; font-size: 12px; font-weight: 800; line-height: 1; vertical-align: 1px;
  box-shadow: 0 0 0 3px rgba(255,159,26,.18); }
.urgent > .tab-count { background: #ff5a4e; color: #fff; box-shadow: 0 0 0 3px rgba(255,90,78,.2); }
.tab-link.hot:not(.active) { background: rgba(255,159,26,.10); border-radius: 8px; }
.tab-link.hot.urgent:not(.active) { background: rgba(255,90,78,.10); }

/* setup checklist */
.setup-box > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.setup-box > summary::-webkit-details-marker { display: none; }
.setup-box > summary::before { content: "▸"; color: #8aa0b8; }
.setup-box[open] > summary::before { content: "▾"; }
.setup-box.has { border-color: rgba(255,159,26,.45); }
.setup-box.has > summary strong { color: #ffb347; }
.setup-box.ok > summary strong { color: #7ee2a8; }
.setup-chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; margin: 2px 4px 2px 0; border: 1px solid; }
.setup-chip.fix { color: #ffb347; border-color: rgba(255,159,26,.5); background: rgba(255,159,26,.1); }
.setup-chip.todo { color: #8ec5ff; border-color: rgba(109,180,255,.45); background: rgba(109,180,255,.1); }
.setup-chip.info { color: #9fb3c8; border-color: rgba(159,179,200,.35); }

/* official time banks */
.bank-check { margin: 0 14px 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px; background: #4ddc8a14; border: 1px solid #4ddc8a40; color: #b7f0cf; }
.bank-check.short { background: #ff5d5d1a; border-color: #ff5d5d66; color: #ffc4c4; font-weight: 600; }
.bank-have { color: #9fcbff; }
.bank-have.short { color: #ffb0b0; }
.bank-table .bank-in { width: 76px; padding: 6px 8px; text-align: right; }
.bank-table tr.bank-unset td:first-child .bank-note { color: #ffb84d; }
.bank-table .seg.small button { padding: 5px 9px; font-size: 12px; }

/* agency rules */
.rules-sec { display: grid; gap: 4px; }
.rule-row { padding: 10px 2px; border-top: 1px solid #1f2b3a; display: grid; gap: 6px; }
.rule-row:first-of-type { border-top: 0; }
.rule-row.off .rule-label { color: #8696aa; }
.rule-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rule-label { font-weight: 600; }
.rule-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.rule-switch input { width: 18px; height: 18px; }
.rule-def { font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: #8696aa; }
.rule-def.changed { color: #ffb84d; font-weight: 700; }
.rule-vals { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rule-k2 { display: inline-flex; align-items: center; gap: 8px; }
input.rule-num { width: 90px !important; flex: 0 0 90px; text-align: right; }
.rule-help { margin: 0; font-size: 13px; }
.rule-ranks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rules-bar { position: sticky; bottom: 0; display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0; background: linear-gradient(transparent, #0b1018 30%); }

/* agency setup */
.ag-tabs { margin-bottom: 12px; flex-wrap: wrap; }
.ag-box { display: grid; gap: 8px; }
.ag-row { border-top: 1px solid #1f2b3a; padding: 10px 0; display: grid; gap: 8px; }
.ag-row:first-of-type { border-top: 0; }
.ag-main { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ag-main input[type=text] { flex: 1 1 180px; min-width: 0; }
.ag-main select { flex: 1 1 220px; min-width: 0; }
.ag-sub { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ag-act { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-mini { min-width: 34px; padding: 4px 8px; }
.chk { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ag-chain { gap: 6px; }
.ag-pill { display: inline-flex; align-items: center; gap: 4px; background: #4da3ff1a; border: 1px solid #4da3ff40; border-radius: 999px; padding: 3px 4px 3px 10px; font-weight: 600; }
.ag-pill-act { display: inline-flex; gap: 2px; }
.ag-pill-act .ag-mini { min-width: 24px; padding: 1px 5px; font-size: 11px; }
.ag-chain select { width: auto; max-width: 180px; }
.ag-tour .ag-main input[type=text] { flex: 0 0 110px; }
.ag-alt { display: inline-flex; align-items: center; gap: 6px; }
.ag-letter { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; font-weight: 800; }
.ag-strip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; }
.ag-day { display: inline-grid; place-items: center; min-height: 26px; border-radius: 5px; border: 1px solid #1f2b3a; background: #0b121b; color: #8696aa; font-size: 12px; font-weight: 700; padding: 0; }
.ag-day.wk { box-shadow: inset 2px 0 0 #4da3ff55; }
.ag-day:disabled { cursor: default; opacity: 1; }
.ag-key .ag-day { width: 24px; display: inline-grid; margin: 0 2px; }
.t-D { background: #4da3ff26; color: #9fcbff; border-color: #4da3ff55; }
.t-E { background: #ffb84d26; color: #ffd28f; border-color: #ffb84d55; }
.t-N { background: #c9a4ff26; color: #dcc6ff; border-color: #c9a4ff55; }
.t-A, .t-B, .t-C, .t-F, .t-G { background: #4ddc8a26; color: #a6f0c6; border-color: #4ddc8a55; }
.t-O { color: #5b6b80; }
.ag-patch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-patch img { width: 44px; height: 50px; object-fit: contain; }
.ag-preview { font-size: 13px; }
.ag-box > .btn, .ag-box .stack > .btn { justify-self: start; width: auto; }

/* overtime cost */
.cost-tiles { margin-bottom: 6px; }
.cost-budget { margin-bottom: 10px; }
.warn-box { border-color: #ffb84d66; color: #ffd28f; }
.bank-check.cost { background: #4da3ff14; border-color: #4da3ff40; color: #b9dcff; }
.cost-bars { display: grid; gap: 6px; }
.cost-bar-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.cost-bar { height: 14px; background: #1a2534; border-radius: 4px; overflow: hidden; }
.cost-bar i { display: block; height: 100%; background: #4da3ff; border-radius: 4px; }
.cost-bar-val { font-variant-numeric: tabular-nums; white-space: nowrap; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
table.pay-scale td input { text-align: right; }
input.pay-in { width: 124px; text-align: right; }
table.pay-scale { min-width: 1150px; }

/* chance it reaches you */
.chance { margin-top: 6px; font-size: 13px; color: #c9d6e6; }
.chance.yes strong, .chance.yes { color: #8ff0b8; }
.chance.no strong { color: #ffb0b0; }
.chance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 6px; }
.chance-cell { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; border: 1px solid #1f2b3a; font-size: 13px; }
.chance-cell.likely { border-color: #4ddc8a55; background: #4ddc8a14; }
.chance-cell.maybe { border-color: #ffb84d55; background: #ffb84d12; }
.chance-cell.unlikely { border-color: #ff5d5d44; background: #ff5d5d10; }

/* overtime slip: date / start / end / hours line up (2 x 2 on a phone) */
.slip-times { display: grid; gap: 10px 12px; align-items: end; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.slip-times.by-hours { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
.slip-times .field { min-width: 0; margin: 0; }
.slip-times input { width: 100%; min-width: 0; box-sizing: border-box; }
.slip-times .slip-total { align-self: end; padding-bottom: 10px; text-align: right; }
@media (max-width: 600px) {
  .slip-times, .slip-times.by-hours { grid-template-columns: 1fr 1fr; }
  .slip-times .sw-date { grid-column: 1 / -1; }
  .slip-times.by-hours .sw-date { grid-column: auto; }
  .slip-times .slip-total { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; justify-content: flex-start; padding: 0; text-align: left; }
}
/* iPhone draws date and time boxes at its own sizes (and centers the date); make them all match */
.slip-times input[type=date], .slip-times input[type=time], .slip-times input[type=number] {
  -webkit-appearance: none; appearance: none; display: block; height: 48px; min-height: 48px; line-height: 46px; padding: 0 12px; text-align: left; }
/* iPhone puts the date/time at the top of the box: center it top to bottom */
.slip-times input[type=date]::-webkit-date-and-time-value, .slip-times input[type=time]::-webkit-date-and-time-value { text-align: left; margin: 0; line-height: 46px; min-height: 46px; }
.slip-times input::-webkit-datetime-edit { padding: 0; line-height: 46px; }
.slip-times label, .slip-times .lbl { display: block; min-height: 18px; }

/* Phones and tablets: iPhones zoom the page in when you tap a box whose text is under 16px. Keep every box at
   16px on touch screens so tapping one doesn't zoom (pinch-to-zoom still works). */
@media (pointer: coarse), (max-width: 820px) {
  input, select, textarea { font-size: 16px !important; }
}
table.pay-scale th.num, table.pay-scale td.num { text-align: right; white-space: nowrap; } table.pay-scale { font-variant-numeric: tabular-nums; }
/* community events */
.shift.event .ev-groups { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 20px 12px; font-size: 13px; }
.shift.event .ev-group { display: grid; gap: 2px; }
.shift.event .ev-table td.mono { white-space: nowrap; }
.shift.event .ev-me { margin: 0 14px 14px; padding: 12px 14px; border-radius: 8px; background: #0f1620; border: 1px solid #1f2b3a; display: grid; gap: 10px; }
.shift.event > .note, .shift.event > p.muted, .shift.event > .row { margin: 0 20px 12px; }
.shift.event .note.ok { color: #8ff0b8; }
.ev-why { color: #ffb84d !important; }
.ev-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-pick .field { min-width: 130px; flex: 1; }
.ev-pick .field span, .form-grid .field span { font-size: 12px; color: #9fb3c8; }
.ev-mode { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.form-grid > * { min-width: 0; }
/* a shift nobody took that still needs someone: the day breathes red */
.cal-day.needs { background: #ff4d4d26; border-color: #ff6b6b99; color: #ffd6d6; animation: tt-breathe 2.6s ease-in-out infinite; }
.cal-day.needs.sel { border-color: #ff6b6b; box-shadow: 0 0 0 1px #ff6b6b inset; }
.cd.needs { background: #ff4d4d; }
@keyframes tt-breathe { 0%, 100% { background-color: #ff4d4d1f; box-shadow: 0 0 0 0 #ff4d4d00; } 50% { background-color: #ff4d4d55; box-shadow: 0 0 14px 2px #ff4d4d66; } }
@media (prefers-reduced-motion: reduce) { .cal-day.needs { animation: none; background: #ff4d4d44; } }
.take-unfilled { border-color: #ff6b6b66; background: #ff4d4d14; }

/* Audit log filters */
.audit-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 0 0 12px; }
.audit-filters input[type=search] { flex: 1 1 220px; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid #2a3a4c; background: #0f1620; color: #e6edf3; font: inherit; font-size: 14px; }
.audit-count { font-size: 13px; }
/* Annual seniority reset */
.annual-preview { display: grid; gap: 8px; background: #0b121b; border: 1px solid #1f2b3a; border-radius: 12px; padding: 12px; }
.annual-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.annual-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 6px 10px; border-radius: 8px; background: #131c28; border: 1px solid #1f2b3a; }
.annual-row.moves { border-color: #ffb84d66; }
.annual-row.moves .muted { color: #ffcf7a; }
.annual-auto { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #cfe3f7; }
.annual-auto input { accent-color: #4da3ff; width: 16px; height: 16px; }
.warn-note { color: #ffcf7a; font-size: 13px; }

/* "Are you sure?" box */
.ask-layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.ask-backdrop { position: absolute; inset: 0; background: rgba(5,9,14,.65); }
.ask-card { position: relative; width: min(460px, 100%); background: #131c28; border: 1px solid #2a3a4c; border-radius: 16px; padding: 20px; box-shadow: 0 18px 50px #000c; display: grid; gap: 10px; }
.ask-card h2 { margin: 0; font-size: 19px; color: #fff; }
.ask-body p { margin: 0 0 6px; color: #cfe3f7; font-size: 14px; line-height: 1.45; }
.ask-actions { justify-content: flex-end; margin-top: 6px; }
.take-unfilled.flash { animation: tt-flash 1.6s ease-out 1; }
@keyframes tt-flash { 0% { box-shadow: 0 0 0 0 #ff4d4dcc; } 30% { box-shadow: 0 0 0 6px #ff4d4d88; } 100% { box-shadow: 0 0 0 0 #ff4d4d00; } }
/* the message at the bottom: bright, pops in, easy to notice */
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px 14px 14px; border-radius: 12px; font-size: 15px; line-height: 1.35; cursor: pointer;
  width: max-content; max-width: min(520px, calc(100vw - 32px)); opacity: 0; transform: translate(-50%, 16px) scale(.96); transition: opacity .2s ease, transform .25s cubic-bezier(.2,1.4,.4,1); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.ok { background: #0f3d26; border: 2px solid #4ddc8a; color: #eafff2; box-shadow: 0 0 0 4px #4ddc8a33, 0 18px 44px rgba(0,0,0,.55); }
.toast.err { background: #4a1414; border: 2px solid #ff6b6b; color: #fff0f0; box-shadow: 0 0 0 4px #ff6b6b33, 0 18px 44px rgba(0,0,0,.55); }
.toast.show.ok { animation: tt-toast-glow 1.2s ease-out 1; }
.toast-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.toast.ok .toast-icon { background: #4ddc8a; color: #06210f; }
.toast.err .toast-icon { background: #ff6b6b; color: #2a0505; }
@keyframes tt-toast-glow { 0% { box-shadow: 0 0 0 0 #4ddc8acc, 0 18px 44px rgba(0,0,0,.55); } 100% { box-shadow: 0 0 0 4px #4ddc8a33, 0 18px 44px rgba(0,0,0,.55); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.show { transition: none; animation: none; } }
/* change record: closed until opened */
.cr-drop { margin-top: 14px; border: 1px solid #1f2b3a; border-radius: 10px; padding: 12px 14px; background: #0f1620; }
.cr-drop > summary { cursor: pointer; list-style: revert; font-size: 15px; }

/* selling time, Holiday Time Back, Admin Override */
.sell-box { border-top: 1px solid #1f2b3a; padding-top: 10px; }
.override-box { border: 2px solid #ffb84d; box-shadow: 0 0 0 4px rgba(255,184,77,.15); }
.override-box .ovr-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.accrual-banner { border-color: #ffb84d; }
.help-link { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
/* explanations behind a "?" */
.explain-closed { display: none !important; }
.explain-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 8px; padding: 0; border-radius: 50%;
  border: 1.5px solid currentColor; background: transparent; color: inherit; opacity: .75; font: 700 13px/1 system-ui, sans-serif; vertical-align: middle; cursor: pointer; letter-spacing: 0; text-transform: none; }
.explain-btn:hover, .explain-btn.on { opacity: 1; background: rgba(255,255,255,.12); }
.explain-btn::after { content: ""; position: absolute; inset: -10px; }
.explain-btn { position: relative; }
.field label .explain-btn { width: 18px; height: 18px; font-size: 11px; margin-left: 6px; }
/* Swaps: the bottom bar's prompt and Next button easy to see */
.sw-bar { border-color: #f5b041; box-shadow: 0 0 0 1px rgba(245,176,65,.25); }
.sw-bar-text .muted { color: #ffcf73; font-weight: 700; font-size: 15px; }
.sw-bar .btn.primary:disabled { opacity: 1; background: #26364f; color: #d5e4f5; border: 1.5px solid #5b7aa6; cursor: not-allowed; }
html.light body .sw-bar-text .muted { color: #8a4f00 !important; }
html.light body .sw-bar .btn.primary:disabled { background: #dfe6f0 !important; color: #34465c !important; border-color: #8aa0bd !important; }
html.light body .sw-bar { border-color: #d48a10 !important; }
html.dino body .sw-bar-text .muted { color: #000 !important; font-size: 18px; }
html.dino:not(#_) body .sw-bar .btn.primary:disabled { background: #fff !important; color: #444 !important; border: 2px solid #444 !important; }
/* audit log buttons wrap instead of running off the screen */
.overview-header:has(.audit-actions) { flex-wrap: wrap; row-gap: 10px; }
.audit-actions { flex-wrap: wrap; }
@media (max-width: 700px) { .audit-actions { width: 100%; } .audit-actions .btn { flex: 1 1 auto; } }
/* loading: the TimeTrace logo with a ring going around it */
.tt-loader { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #0b1426; color: #cfe3f7; }
.tt-spin { position: relative; width: 112px; height: 112px; display: grid; place-items: center; flex: none; }
.tt-spin img { width: 64px; height: 64px; filter: drop-shadow(0 0 12px rgba(46,230,255,.35)); animation: tt-glow 2.4s ease-in-out infinite; }
.tt-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(46,230,255,.14); border-top-color: #2ee6ff; will-change: transform; animation: tt-rot 1.8s linear infinite; }
.tt-loader p { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.tt-inline { display: flex; align-items: center; gap: 10px; color: #96a5be; font-size: 14px; padding: 6px 0; }
.tt-inline.in-text { display: inline-flex; padding: 0; }
.tt-spin.mini { width: 30px; height: 30px; }
.tt-spin.mini img { width: 17px; height: 17px; filter: none; }
.tt-spin.mini .tt-ring { border-width: 2px; }
@keyframes tt-rot { to { transform: rotate(360deg); } }
@keyframes tt-glow { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tt-ring { animation-duration: 2.4s; } .tt-spin img { animation: none; } }
html.light .tt-loader { background: #f4f6f9; color: #1b2430; }
html.dino .tt-loader { background: #ffffff; color: #000; }
/* Officer Files: folders and paper-style slips */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.file-folder { position: relative; display: grid; gap: 3px; text-align: left; padding: 18px 14px 12px; border-radius: 4px 12px 12px 12px; border: 1px solid #3a4f6e; background: linear-gradient(#22324b, #1a273b); color: #ecf1f8; font: inherit; cursor: pointer; margin-top: 10px; }
.file-folder:hover { border-color: #f5b041; }
.ff-tab { position: absolute; top: -11px; left: -1px; width: 42%; height: 11px; border-radius: 6px 6px 0 0; background: #22324b; border: 1px solid #3a4f6e; border-bottom: 0; }
.ff-name { font-weight: 700; font-size: 16px; }
.ff-rank, .ff-last { font-size: 12px; }
.ff-count { font-size: 13px; color: #ffcf73; font-weight: 600; }
.file-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 12px 0 6px; }
.file-head h2 { margin: 0; }
.file-list { display: grid; gap: 14px; }
.file-slip { position: relative; background: #f7f3e8; color: #1e2430; border-radius: 6px; padding: 16px 18px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.35); border-left: 6px solid #9aa4b2; font-family: Georgia, "Times New Roman", serif; }
.file-slip.ok { border-left-color: #2e9d5b; } .file-slip.denied { border-left-color: #c94040; } .file-slip.wait { border-left-color: #d9962a; } .file-slip.void { border-left-color: #8a8f99; opacity: .85; }
.fs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border-bottom: 2px solid #1e2430; padding-bottom: 8px; margin-bottom: 10px; }
.fs-title { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; font-family: system-ui, -apple-system, sans-serif; }
.fs-who { font-size: 15px; }
.fs-stamp { font-family: system-ui, -apple-system, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border: 2px solid; border-radius: 4px; transform: rotate(-4deg); white-space: nowrap; }
.fs-stamp.ok { color: #1f7a45; } .fs-stamp.denied { color: #b02f2f; } .fs-stamp.wait { color: #a86c10; } .fs-stamp.void { color: #6b707a; }
.fs-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; }
.fs-f { display: grid; gap: 1px; border-bottom: 1px dotted #9aa4b2; padding-bottom: 4px; }
.fs-k { font-family: system-ui, -apple-system, sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #5a6270; }
.fs-v { font-size: 15px; }
.fs-signs { display: grid; gap: 4px; margin-top: 12px; }
.fs-sign { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; align-items: baseline; }
.fs-sign-l { font-family: system-ui, -apple-system, sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #5a6270; min-width: 150px; }
.fs-sign-n { font-style: italic; border-bottom: 1px solid #1e2430; padding: 0 6px; }
.fs-sign-d { color: #5a6270; font-size: 13px; }
.fs-sign-x { flex-basis: 100%; color: #5a6270; font-size: 13px; padding-left: 160px; }
.fs-foot { margin-top: 10px; font-size: 11px; font-family: system-ui, -apple-system, sans-serif; color: #6b707a !important; }
@media (max-width: 560px) { .fs-sign-l { min-width: 0; flex-basis: 100%; } .fs-sign-x { padding-left: 0; } }
@media print { .file-slip { box-shadow: none; break-inside: avoid; border: 1px solid #999; } .file-list { gap: 8px; } }
html.light body .file-folder { background: #ffffff; color: #1b2430; border-color: #b8c4d6; } html.light body .ff-tab { background: #ffffff; border-color: #b8c4d6; } html.light body .ff-count { color: #8a4f00; }
html.dino:not(#_) body .file-folder { background: #fff; color: #000; border: 2px solid #000; } html.dino:not(#_) body .ff-tab { background: #fff; border: 2px solid #000; border-bottom: 0; } html.dino:not(#_) body .ff-count { color: #000; }
/* the paper slip looks the same in every look */
html.light:not(#_) body .file-slip, html.dino:not(#_) body .file-slip { background: #fffdf6 !important; color: #1e2430 !important; box-shadow: 0 2px 8px rgba(0,0,0,.15) !important; }
html.light:not(#_) body .fs-head, html.dino:not(#_) body .fs-head { border-bottom: 2px solid #1e2430 !important; }
html.light:not(#_) body .fs-k, html.light:not(#_) body .fs-sign-l, html.dino:not(#_) body .fs-k, html.dino:not(#_) body .fs-sign-l { color: #5a6270 !important; }
html.light:not(#_) body .fs-f, html.dino:not(#_) body .fs-f { border-bottom: 1px dotted #9aa4b2 !important; }
.file-list, .file-slip { min-width: 0; max-width: 100%; }
.file-slip { overflow-wrap: anywhere; }
.fs-fields { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.fs-stamp { white-space: normal; text-align: center; max-width: 45%; }
.file-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.file-kinds button { padding: 6px 10px; border-radius: 999px; border: 1px solid #3a4f6e; background: transparent; color: #cfe3f7; font: inherit; font-size: 13px; cursor: pointer; }
.file-kinds button.on { background: #f5b041; color: #1a1205; border-color: #f5b041; font-weight: 700; }
.file-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }

/* history lists that fold up (My overtime history, slips, time off requests, time bank history) */
.hist-drop > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.hist-drop > summary::-webkit-details-marker { display: none; }
.hist-drop > summary h2 { margin: 0; }
.hist-drop > summary::after { content: "▾"; margin-left: auto; color: #9fb3c8; font-size: 18px; transition: transform .15s; }
.hist-drop:not([open]) > summary::after { transform: rotate(-90deg); }
.hist-drop .hist-count { font-size: 12px; font-weight: 700; color: #9fb3c8; background: rgba(159,179,200,.14); border-radius: 999px; padding: 2px 9px; }
.hist-drop > .hist-body { margin-top: 12px; }
.hist-drop.inner { margin-top: 6px; }
.hist-drop.inner > summary .lbl { margin: 0; }
.hist-drop.inner > .hist-body { margin-top: 8px; }
.hist-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hist-filter .chip-f { border: 1px solid #36506b; background: transparent; color: #cfe3f7; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.hist-filter .chip-f.on { background: #2f80ed; border-color: #2f80ed; color: #fff; }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; }
.filter-btn.on { border-color: #f5b041; color: #ffcf73; }
.filter-btn svg { flex: none; }
.filter-panel { border-color: #3a4f6e; }

/* records folder on this computer (Officer Files) */
.rf-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid #f5b041; background: rgba(245,176,65,.12); }
.rf-status { display: flex; gap: 10px; align-items: flex-start; }
.rf-dot { width: 10px; height: 10px; border-radius: 50%; background: #2ecc71; margin-top: 6px; flex: none; box-shadow: 0 0 0 3px rgba(46,204,113,.2); }
.rf-dot.bad { background: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.2); }

/* phone admin menu: one row per section, the same sections as the computer's top tabs */
.menu-tabs.menu-groups { grid-template-columns: 1fr !important; }
.menu-groups .menu-tab { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.menu-groups .mg-text { display: grid; gap: 2px; min-width: 0; }
.menu-groups .mg-name { font-weight: 700; }
.menu-groups .mg-sub { font-size: 12px; font-weight: 500; opacity: .7; white-space: normal; }

/* ---------- login screens: live clock ---------- */
.logo-hero svg.live .hand { transform-box: view-box; transform-origin: 32px 32px; will-change: transform; }
.logo-hero svg.live .hand-s line, .logo-hero svg.live .hand-s circle { filter: drop-shadow(0 0 2px rgba(255,184,77,.8)); }
.login-time { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: #2ee6ff; text-shadow: 0 0 10px rgba(46,230,255,.45); margin-top: -4px; font-variant-numeric: tabular-nums; }
.bg-dial { position: absolute; left: 50%; top: 50%; width: clamp(100vw, 94vh, 1000px); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .55; transition: opacity .6s ease; }
.bg-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-dial .rim { fill: none; stroke: rgba(77,163,255,.14); stroke-width: .4; }
.bg-dial .rim.in { stroke: rgba(77,163,255,.08); stroke-dasharray: 1 2.2; }
.bg-dial .tk { stroke: rgba(120,170,220,.22); stroke-width: .5; stroke-linecap: round; transition: stroke .5s ease; }
.bg-dial .tk.big { stroke: rgba(120,170,220,.38); stroke-width: .9; }
.bg-dial .tk.on { stroke: #2ee6ff; stroke-width: 1.2; filter: drop-shadow(0 0 1.5px #2ee6ff); transition: none; }
.bg-dial .tk.trail { stroke: rgba(46,230,255,.5); }
.bg-sweep { position: absolute; inset: 1.5%; border-radius: 50%; will-change: transform;
  background: conic-gradient(from 0deg, rgba(46,230,255,0) 0deg, rgba(46,230,255,0) 300deg, rgba(46,230,255,.10) 350deg, rgba(46,230,255,.22) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 18%, #000 60%); mask: radial-gradient(circle, transparent 0 18%, #000 60%); }
.login-body:focus-within .bg-dial { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .bg-sweep { display: none; } }
/* officer bottom bar with 7 sections (when a detail pick round is open) */
.bottom-nav.many button { font-size: 10px; padding-left: 0; padding-right: 0; }
.bottom-nav.many svg { width: 22px; height: 22px; }

/* My Pay Rate: the three amounts side by side, phone included */
.my-pay .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
.my-pay .stat-card { padding: 14px 10px; min-width: 0; }
.my-pay .stat-value { font-size: clamp(17px, 5vw, 26px); white-space: nowrap; }
.my-pay .stat-label { font-size: 10.5px; letter-spacing: .3px; line-height: 1.3; }

/* loading screen: after 15 seconds, a note and a Reload button */
.tt-slow { display: grid; justify-items: center; gap: 12px; max-width: 300px; text-align: center; opacity: 0; visibility: hidden; animation: ttSlow .4s ease 15s forwards; }
.tt-loader .tt-slow p { font-size: 14px; font-weight: 500; opacity: .85; line-height: 1.4; }
@keyframes ttSlow { to { opacity: 1; visibility: visible; } }

/* Lists page: the list picker, two groups of equal buttons */
.list-picker { display: grid; gap: 8px; margin-bottom: 14px; }
.list-picker .lp-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8b98ab; margin-top: 4px; }
.list-picker .lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.list-picker .lp-grid button { padding: 10px 8px; border-radius: 10px; border: 1px solid #2a3a4c; background: #16212f; color: #cfd8e3; font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; text-align: center; }
.list-picker .lp-grid button.active { background: #2b6fd6; border-color: #4da3ff; color: #fff; }
@media (max-width: 420px) { .list-picker .lp-grid { grid-template-columns: repeat(2, 1fr); } }
.lp-current { margin: 4px 0 2px; }
.lp-current h2 { margin: 0; }

/* sign-in: greeting set apart, centered note, the email under the button, the supervisor option quieter */
/* greeting in the same lettering as the department name, set off by a thin line */
.gate-box > .gate-hi, .login-box > .gate-hi { margin: 18px auto 6px; padding-top: 16px; border-top: 1px solid rgba(120,150,180,.22); width: 100%; text-align: center; font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #dce6f2; }
.gate-note.gate-center { text-align: center; margin: 0 auto 4px; max-width: 30ch; }
.gate-sendto { margin: 8px 0 0; text-align: center; font-size: 13px; color: #8ea4ba; overflow-wrap: anywhere; }
.login-box button.linkish.gate-alt { margin-top: 14px; font-size: 13px; font-weight: 600; color: #8ea4ba; text-transform: none; }
/* menu: link-buttons and buttons the same size */
.menu-sec .actions .btn.small, .cal-sub .actions .btn.small { font-size: 14px; line-height: 1.2; }
/* two equal buttons side by side (calendar, sign-in) */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two-up > .btn { width: 100%; justify-content: center; text-align: center; margin: 0; padding-left: 8px; padding-right: 8px; white-space: normal; }
.cal-sub .two-up + .two-up { margin-top: -2px; }
.login-box button.btn-alt.gate-alt2 { margin-top: 18px; }

/* promotion banner: gold, bright, a little confetti and a shine the first time it shows */
.promo-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 18px 44px 18px 18px; margin-bottom: 14px; border-radius: 16px;
  background: linear-gradient(135deg, #ffe27a 0%, #ffc531 45%, #f59e0b 100%); color: #2a1a00; border: 1px solid #ffe9a3;
  box-shadow: 0 0 0 3px rgba(255,197,49,.25), 0 10px 30px rgba(245,158,11,.35); animation: promoIn .6s cubic-bezier(.2,1.4,.4,1) both; }
.promo-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-120%); animation: promoShine 2.4s ease .5s 2; pointer-events: none; }
.promo-star { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff7d6; background: #1f2a44; box-shadow: inset 0 0 0 3px #ffd54a; }
.promo-text { display: grid; gap: 3px; min-width: 0; position: relative; z-index: 1; }
.promo-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.promo-title { font-size: 22px; font-weight: 900; line-height: 1.15; }
.promo-sub { font-size: 13px; font-weight: 600; line-height: 1.35; opacity: .85; }
.promo-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(42,26,0,.15); color: #2a1a00; font-size: 18px; line-height: 1; cursor: pointer; }
.promo-confetti { position: absolute; inset: 0; pointer-events: none; }
.promo-confetti i { position: absolute; top: -10px; left: calc(var(--i) * 5.6%); width: 7px; height: 11px; border-radius: 2px; opacity: 0;
  background: hsl(calc(var(--i) * 47), 85%, 55%); animation: promoFall 1.8s ease-in calc(var(--i) * 45ms) 1 both; }
@keyframes promoIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes promoShine { to { transform: translateX(120%); } }
@keyframes promoFall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(130px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .promo-banner, .promo-banner::after, .promo-confetti i { animation: none; } }
/* keep the promotion banner gold with dark text in every look */
html.light body .promo-banner, html.dino:not(#_) body .promo-banner { background: linear-gradient(135deg, #ffe27a 0%, #ffc531 45%, #f59e0b 100%) !important; color: #2a1a00 !important; border: 1px solid #e0a800 !important; }
html.light body .promo-banner .promo-title, html.light body .promo-banner .promo-sub, html.light body .promo-banner .promo-kicker,
html.dino:not(#_) body .promo-banner .promo-title, html.dino:not(#_) body .promo-banner .promo-sub, html.dino:not(#_) body .promo-banner .promo-kicker { color: #2a1a00 !important; }
html.light body .promo-banner .promo-star, html.dino:not(#_) body .promo-banner .promo-star { background: #1f2a44 !important; color: #fff7d6 !important; box-shadow: inset 0 0 0 3px #ffd54a !important; border-radius: 50% !important; }
html.light body .promo-banner .promo-close, html.dino:not(#_) body .promo-banner .promo-close { background: rgba(42,26,0,.15) !important; color: #2a1a00 !important; border-radius: 50% !important; }
/* promotion banner, compact */
.promo-banner { padding: 10px 40px 10px 12px; gap: 10px; border-radius: 12px; margin-bottom: 10px; }
.promo-star { width: 34px; height: 34px; font-size: 18px; box-shadow: inset 0 0 0 2px #ffd54a; }
.promo-kicker { display: none; }
.promo-title { font-size: 17px; font-weight: 900; }
.promo-sub { font-size: 12px; line-height: 1.3; }
.promo-close { top: 50%; transform: translateY(-50%); width: 26px; height: 26px; font-size: 16px; }
.promo-confetti i { animation-name: promoFallShort; }
@keyframes promoFallShort { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(80px) rotate(540deg); } }

/* Today on the calendar: the blue date bubble says it, nothing more */

/* Holiday touches in the header */
.logo.has-hol { position: relative; }
.hol-flag { font-size: 18px; line-height: 1; margin-left: 6px; align-self: center; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); animation: holWave 3s ease-in-out infinite; transform-origin: left bottom; }
@keyframes holWave { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
.hol-blueline { display: grid; grid-template-rows: 2px 2px 2px; width: 100%; margin-top: 3px; border-radius: 1px; overflow: hidden; }
.hol-blueline i { background: #0b0b0b; } .hol-blueline i:nth-child(2) { background: #1f6fff; }
.hol-snow { position: absolute; inset: -12px -40px -24px; pointer-events: none; overflow: hidden; }
.hol-snow i { position: absolute; top: -8px; left: calc(var(--i) * 6.4%); width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .8;
  animation: holSnow calc(5s + var(--i) * .35s) linear calc(var(--i) * -.7s) infinite; }
.hol-snow i:nth-child(3n) { width: 3px; height: 3px; opacity: .55; }
@keyframes holSnow { to { transform: translate(14px, 90px); } }
@media (prefers-reduced-motion: reduce) { .hol-snow, .hol-flag { animation: none; } .hol-snow { display: none; } }

/* Swipe a shift: green for Yes, red for No, stronger the farther you go */
article.shift.swiping { transition: none !important; }
article.shift { transition: transform .25s ease, box-shadow .25s ease; }
article.shift[data-swipe="yes"] { box-shadow: 0 0 0 2px rgba(46,204,113,calc(var(--swipe) * 1)), 0 0 24px rgba(46,204,113,calc(var(--swipe) * .5)); }
article.shift[data-swipe="no"] { box-shadow: 0 0 0 2px rgba(231,76,60,calc(var(--swipe) * 1)), 0 0 24px rgba(231,76,60,calc(var(--swipe) * .5)); }

/* Pull to refresh */
.ptr { position: fixed; top: calc(env(safe-area-inset-top, 0px) - 44px); left: 50%; z-index: 60; transform: translate(-50%, 0); pointer-events: none; opacity: 0;
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #131c28; box-shadow: 0 4px 14px rgba(0,0,0,.45); transition: transform .25s ease, opacity .2s; }
.ptr.pulling { opacity: 1; transition: none; }
.ptr.ready { box-shadow: 0 0 0 2px #4da3ff, 0 4px 14px rgba(0,0,0,.45); }
.ptr.loading { opacity: 1; }
.ptr .tt-spin.mini { width: 30px; height: 30px; }
.ptr:not(.loading) .tt-ring { animation-play-state: paused; }

/* Night look: everything in red on black, easy on night vision in a dark car */
html.night { filter: url(#tt-night); background: #000; }
html.night body { background: #000 !important; }

/* shimmer placeholders while a page part loads */
.skel { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: #151e2b; border: 1px solid #223042; }
.skel-bar { display: block; height: 11px; border-radius: 6px; background: #1f2b3b; position: relative; overflow: hidden; }
.skel-bar.big { height: 18px; }
.skel-bar.pill { height: 18px; border-radius: 999px; }
.skel-row { display: flex; gap: 8px; }
.skel-bar::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent); animation: skelSweep 1.3s ease-in-out infinite; }
@keyframes skelSweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skel-bar::after { animation: none; } }
html.light body .skel { background: #ffffff; border-color: #d8e0ea; }
html.light body .skel-bar { background: #e6ecf3; }
html.light body .skel-bar::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); }
html.dino:not(#_) body .skel { background: #fff; border: 2px solid #808080; border-radius: 0; }
html.dino:not(#_) body .skel-bar { background: #d4d4d4; border-radius: 0; }
/* iPhone/iPad Safari draws the menu, pop-ups and notes in their own layer, which skips the page-wide Night filter, and it
   won't apply that filter to them directly either. So there they're turned gray and tinted deep red with a multiply layer
   (only on Apple touch devices, so nothing is tinted twice elsewhere). */
@supports (-webkit-touch-callout: none) {
  html.night .menu-layer > *, html.night .ask-layer > * { filter: grayscale(1) contrast(1.35) brightness(1.1); }
  html.night .menu-layer::after, html.night .ask-layer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: #f0101c; mix-blend-mode: multiply; z-index: 5; }
  /* the top bar, the bottom tabs and the tab rows are separate layers there too */
  html.night #app > header > *, html.night .bottom-nav > *, html.night nav.tabs > * { filter: grayscale(1) contrast(1.35) brightness(1.1); }
  html.night #app > header::after, html.night .bottom-nav::after, html.night nav.tabs::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: #f0101c; mix-blend-mode: multiply; z-index: 5; }
  html.night #app.admin-menu .tabs { position: relative; }
  html.night #app > header, html.night .bottom-nav, html.night nav.tabs { background: #000 !important; }
  html.night .toast { background: #1a0000 !important; color: #ff3b3b !important; border-color: #6a000a !important; box-shadow: none !important; }
  html.night .toast * { color: #ff3b3b !important; }
}

/* Settings: the row in the menu, the panel's title, and the gear on the Me page */
.settings-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #2a3a4c; background: #16212f; color: #e4ecf5; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-align: left; }
.settings-row .gear { font-size: 20px; line-height: 1; color: #8fb8e0; }
.settings-row .chev { margin-left: auto; font-size: 22px; line-height: 1; color: #7d93a8; }
.menu-head .settings-title { font-size: 16px; }
.me-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.me-top .me-name { margin: 0; font-size: 20px; }
.gear-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid #2a3a4c; background: #16212f; color: #cfe3f7; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gear-btn span:first-child { font-size: 18px; line-height: 1; }
html.light body .settings-row, html.light body .gear-btn { background: #fff; border-color: #cfd8e3; color: #1d2733; }

/* Things waiting on someone breathe, like an unfilled day: amber for waiting, red when urgent */
.tab-link.hot:not(.active), .subtabs button.hot:not(.active), .menu-tab.hot:not(.active) { animation: tt-breathe-amber 2.6s ease-in-out infinite; }
.tab-link.hot.urgent:not(.active), .menu-tab.hot.urgent:not(.active) { animation-name: tt-breathe-red; }
.tab-link.hot .tab-count, .subtabs button.hot .tab-count, .menu-tab.hot .tab-count, .bottom-nav .nav-badge { animation: tt-breathe-dot 2.6s ease-in-out infinite; }
@keyframes tt-breathe-amber { 0%, 100% { background-color: rgba(255,159,26,.08); box-shadow: 0 0 0 0 rgba(255,159,26,0); } 50% { background-color: rgba(255,159,26,.22); box-shadow: 0 0 14px 1px rgba(255,159,26,.35); } }
@keyframes tt-breathe-red { 0%, 100% { background-color: rgba(255,90,78,.08); box-shadow: 0 0 0 0 rgba(255,90,78,0); } 50% { background-color: rgba(255,90,78,.24); box-shadow: 0 0 14px 1px rgba(255,90,78,.4); } }
@keyframes tt-breathe-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,159,26,0); } 50% { box-shadow: 0 0 0 4px rgba(255,159,26,.25), 0 0 10px rgba(255,159,26,.5); } }
html.dino .tab-link.hot, html.dino .subtabs button.hot, html.dino .menu-tab.hot, html.dino .tab-count, html.dino .nav-badge { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .tab-link.hot, .subtabs button.hot, .menu-tab.hot, .tab-count, .nav-badge { animation: none !important; } }

/* date boxes never run past the edge of the screen (iPhone gives them a fixed minimum width) */
input[type="date"], input[type="time"] { min-width: 0; max-width: 100%; box-sizing: border-box; }
.field input[type="date"], .field input[type="time"] { width: 100%; display: block; }
.field { grid-template-columns: minmax(0, 1fr); }
/* iPhone: its own date/time box styling has a fixed minimum width that pushed past the screen; use ours instead */
@supports (-webkit-touch-callout: none) {
  input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; min-height: 44px; line-height: 1.2; }
  input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
}
/* any form row with a date or time box: its columns may shrink to fit the screen */
.slip-times > *, .pp-grid > *, .post-row > *, .sw-date, .cols > * { min-width: 0; }

/* Recent decisions: a card per decision (the old table ran off a phone screen) */
.rd-list { display: grid; gap: 8px; }
.rd-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #0f1620; border: 1px solid #1f2b3a; }
.rd-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.rd-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-sub { font-size: 13px; color: #8ea4ba; }
.rd-res { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.rd-res.yes { background: rgba(46,204,113,.15); color: #4ddc8a; }
.rd-res.no { background: rgba(231,76,60,.15); color: #ff7b72; }
.rd-res.muted { background: rgba(140,160,180,.15); color: #9fb3c8; }
.rd-item > .btn { flex: none; }
html.light body .rd-item { background: #fff; border-color: #d8e0ea; }

/* the day's lineup: Patrol (left) and the Detective Division (right), last names only */
.lineup { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.lu-side { display: grid; gap: 8px; min-width: 0; }
/* names one under the other: supervisors first, a gap, then officers */
.lu-stack { display: grid; gap: 10px; min-width: 0; }
.lu-div { display: grid; gap: 8px; min-width: 0; padding: 9px 8px; border-radius: 12px; background: #0f1620; border: 1px solid #1f2b3a; }
.lu-head { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8ea4ba; }
.lu-line { display: grid; gap: 4px; min-width: 0; }
.lu-line + .lu-line { border-top: 1px solid #1c2735; padding-top: 8px; }
.lu-label { font-size: 12px; font-weight: 700; color: #4da3ff; font-variant-numeric: tabular-nums; }
.lu-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; align-items: start; }
.lu-sup, .lu-ofc { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lu-n { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 7px; background: #162231; color: #dce8f5; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-n::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--pc, #4da3ff); }
.lu-n.me { box-shadow: inset 0 0 0 1px #4da3ff; color: #fff; }
.lu-n.chg { box-shadow: inset 0 0 0 1px #f5b041; }
.lu-sup .lu-n { background: #1b2a3c; }
.lu-none { color: #5f7286; font-size: 13px; padding: 4px 2px; }
html.light body .lu-div { background: #f6f8fb; border-color: #d8e0ea; }
html.light body .lu-n { background: #e8eef5; color: #1d2733; }
html.light body .lu-sup .lu-n { background: #dde6f0; }
html.light body .lu-line + .lu-line { border-top-color: #dfe6ee; }

/* iPhone: no rubber-band bounce at the top or bottom of a page, which dragged the bottom bar up the screen
   (TimeTrace's own pull-to-refresh doesn't rely on it) */
html, body { overscroll-behavior-y: none; }

/* department phone list */
.dir-list { display: grid; gap: 6px; }
.dir-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #0f1620; border: 1px solid #1f2b3a; }
.dir-who { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.dir-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-meta { font-size: 12px; color: #8ea4ba; }
.dir-call { flex: none; font-variant-numeric: tabular-nums; }
#dirSearch { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid #2a3a4c; background: #0f1620; color: #e4ecf5; font: inherit; font-size: 15px; }
.dir-call { text-decoration: none !important; }
html.light body #dirSearch { background: #fff; border-color: #cfd8e3; color: #1d2733; }
html.light body .dir-row { background: #fff; border-color: #d8e0ea; }

/* Calendar sharing: who it's for, and the people it's shared with */
.share-ask { display: flex; gap: 8px; align-items: center; }
.share-ask input { flex: 1; min-width: 0; }
.share-list { display: grid; gap: 6px; }
.share-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7d93a8; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #0f1620; border: 1px solid #1f2b3a; }
.share-who { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.share-who strong { font-size: 15px; }
.share-row .btn { flex: none; }

/* Menu search */
.menu-search { display: grid; gap: 6px; }
.menu-search input { width: 100%; box-sizing: border-box; }
.ms-results { display: grid; gap: 4px; }
.ms-hit { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; background: #0f1620; border: 1px solid #1f2b3a; color: inherit; font: inherit; cursor: pointer; }
.ms-hit:hover, .ms-hit:focus-visible { border-color: #4da3ff; }
.ms-label { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-where { flex: none; font-size: 12px; color: #7d93a8; }
.ms-none { font-size: 13px; padding: 4px 2px; }

/* My own days off on the Dashboard: striped days with a tag saying what kind (VAC, SICK, FUNERAL…), joined across
   the days of one request. Each kind has the same color as its time bank on the Me page: vacation blue, sick purple,
   personal amber, time back green, holiday teal; funeral slate, workers comp and leave orange. */
.cal-day.me-off { --mo: #2ecc71; --mo-ink: #062414; position: relative; color: #f4fff8; border-color: color-mix(in srgb, var(--mo) 60%, transparent);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--mo) 25%, transparent) 0 7px, color-mix(in srgb, var(--mo) 12%, transparent) 7px 14px); }
.cal-day.me-off.mo-vacation { --mo: #4da3ff; --mo-ink: #04121f; }
.cal-day.me-off.mo-sick { --mo: #c9a4ff; --mo-ink: #1a0c2e; }
.cal-day.me-off.mo-personal { --mo: #ffb84d; --mo-ink: #2a1a00; }
.cal-day.me-off.mo-holiday { --mo: #3fd3d3; --mo-ink: #032222; }
.cal-day.me-off.mo-funeral { --mo: #9aa8c7; --mo-ink: #10141c; }
.cal-day.me-off.mo-wc, .cal-day.me-off.mo-leave { --mo: #ff8c42; --mo-ink: #2a1200; }
.cal-day.me-off .cal-dots { min-height: 0; }
.cal-day.me-off .cd:not(:empty) { min-width: 10px; height: 10px; }
.cal-day.me-off:not(.mo-start) { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-color: transparent; }
.cal-day.me-off:not(.mo-end) { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-color: transparent; }
.cal-day.me-off.sel { border-color: #4da3ff; }
.cal-offtag { font-size: 9px; font-weight: 800; letter-spacing: .02em; line-height: 1; padding: 2px 4px; border-radius: 4px; background: var(--mo); color: var(--mo-ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd.myoff { background: #2ecc71; }
.myoff-banner { --mo: #e6edf3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-radius: 12px; color: #f4fff8;
  border: 1px solid color-mix(in srgb, var(--mo) 60%, transparent);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--mo) 20%, transparent) 0 8px, color-mix(in srgb, var(--mo) 10%, transparent) 8px 16px); }
.myoff-banner strong { font-size: 16px; }
.md-tile.is-off { --mo: #e6edf3; border-color: color-mix(in srgb, var(--mo) 60%, transparent);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--mo) 15%, transparent) 0 8px, color-mix(in srgb, var(--mo) 7%, transparent) 8px 16px); }
.md-row.myoff { --mo: #e6edf3; border-color: color-mix(in srgb, var(--mo) 40%, transparent); background: color-mix(in srgb, var(--mo) 10%, transparent); }
.md-row.myoff .md-tour { color: var(--mo); font-weight: 800; }
.md-row.myoff.mo-vacation, .md-tile.is-off.mo-vacation, .myoff-banner.mo-vacation { --mo: #e6edf3; }
.md-row.myoff.mo-sick, .md-tile.is-off.mo-sick, .myoff-banner.mo-sick { --mo: #e6edf3; }
.md-row.myoff.mo-personal, .md-tile.is-off.mo-personal, .myoff-banner.mo-personal { --mo: #e6edf3; }
.md-row.myoff.mo-holiday, .md-tile.is-off.mo-holiday, .myoff-banner.mo-holiday { --mo: #e6edf3; }
.md-row.myoff.mo-funeral, .md-tile.is-off.mo-funeral, .myoff-banner.mo-funeral { --mo: #e6edf3; }
.md-row.myoff.mo-wc, .md-tile.is-off.mo-wc, .myoff-banner.mo-wc, .md-row.myoff.mo-leave, .md-tile.is-off.mo-leave, .myoff-banner.mo-leave { --mo: #e6edf3; }
/* the header search button is for computers; on a phone, search is at the top of the ☰ menu */
@media (max-width: 700px) { .menu-btn.hide-sm { display: none; } }

/* the app lock */
.lock-msg { margin: 6px 0 2px; padding: 10px 12px; border-radius: 10px; background: rgba(255,184,77,.12); border: 1px solid rgba(255,184,77,.45); color: #ffd79a; font-weight: 600; text-align: left; }
.lock-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; border: 1px solid #f5b041; background: rgba(245,176,65,.12); }
.lock-banner strong { color: #ffcf73; }
.lock-panel.on { border-color: #f5b041; }

/* Station network lock */
.station-here { display: grid; gap: 8px; }
.station-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.station-add input { flex: 1; min-width: 160px; }
.station-nets { display: grid; gap: 6px; }
.station-net { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #0f1620; border: 1px solid #1f2b3a; }
.station-lock { border-color: #4da3ff66; }
.check-row { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; } .check-row input { margin-top: 3px; flex: none; }

/* ---------- Me page, slimmed down ---------- */
.me-page .overview-window { padding: 12px 14px; gap: 8px; }
.me-page .overview-header h2, .me-page .hist-drop > summary h2 { font-size: 15px; letter-spacing: .06em; }
.me-page .me-name { font-size: 20px; margin: 0; }
.me-page .explain { font-size: 12px; }
/* where I stand: one line per list */
.stand-rows { display: grid; gap: 4px; }
.stand-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 9px; background: #0b121b; border: 1px solid #1f2b3a; font-size: 14px; }
.stand-row.next { border-color: #4ddc8a88; }
.sr-pos { font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; min-width: 4.2em; }
.stand-row.next .sr-pos { color: #4ddc8a; }
.sr-pos small, .sr-list small { font-weight: 400; color: #7d93a8; font-size: 12px; }
.sr-list { font-weight: 700; color: #cfe3f7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-note { font-size: 12px; color: #9fb3c8; white-space: nowrap; }
/* overtime hours and pay: four small tiles in a row */
.me-page .stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.me-page .my-pay .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.me-page .stat-strip > * { min-width: 0; }
.me-page .stat-card { padding: 8px 9px; gap: 2px; box-shadow: none; border-top-width: 2px; }
.me-page .stat-value { font-size: 20px !important; line-height: 1.1; }
.me-page .stat-label { font-size: 10px !important; line-height: 1.2; letter-spacing: .03em; }
/* time bank: smaller tiles, three across on a phone */
.me-page .bank-tiles { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.me-page .bank-tile { padding: 7px 9px; }
.me-page .bt-hrs { font-size: 18px !important; }
.me-page .bt-label, .me-page .bt-days { font-size: 10.5px !important; }
.me-page .hist-drop.inner > summary { padding: 6px 0; }
/* next 2 weeks: every day, tight rows; days off dimmed, weekends marked */
.sched-rows { display: grid; gap: 3px; }
.me-page .sched-row { gap: 8px; font-size: 13px; }
.me-page .sched-row .duty-tray { padding: 3px; min-height: 0; }
.me-page .sched-row .duty-n { padding: 3px 8px; font-size: 13px; }
.me-page .sched-day { width: 6em; font-size: 12px; }
.sched-row.wkend .sched-day { color: #cfe3f7; }
.duty-off { color: #5b6f82; font-size: 12px; padding: 3px 8px; }
.sched-row.off .duty-tray { background: transparent; border-style: dashed; }
.sched-row.myoff .duty-n.off-kind { background: #2ecc7126; color: #4ddc8a; }
.sched-row.myoff.mo-sick .duty-n.off-kind { background: #e6edf326; color: #e6edf3; }
.sched-row.myoff.mo-vacation .duty-n.off-kind { background: #4da3ff26; color: #8cc4ff; }
.sched-row.myoff.mo-personal .duty-n.off-kind { background: #ffb84d26; color: #ffcb7d; }
.sched-row.myoff.mo-holiday .duty-n.off-kind { background: #3fd3d326; color: #7fe3e3; }
.sched-row.myoff.mo-funeral .duty-n.off-kind { background: #9aa8c726; color: #c3cde0; }
.sched-row.myoff.mo-wc .duty-n.off-kind, .sched-row.myoff.mo-leave .duty-n.off-kind { background: #ff8c4226; color: #ffad7a; }
/* Supervise tab while its first pass is fetched */
.bottom-nav button.busy, .tab-link.busy{ opacity:.55; animation:busyPulse 1s ease-in-out infinite; }
@keyframes busyPulse{ 50%{ opacity:.9; } }
/* ---------- Supervise: slimmed like the Me page ---------- */
.sup-page .stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sup-page .yr .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sup-page .stat-strip > * { min-width: 0; }
.sup-page .stat-card { padding: 8px 9px; gap: 2px; box-shadow: none; border-top-width: 2px; }
.sup-page .stat-value { font-size: 20px !important; line-height: 1.1; }
.sup-page .stat-label { font-size: 10px !important; line-height: 1.2; letter-spacing: .03em; }
.sup-page .shift-top { padding: 10px 14px 8px; gap: 6px 14px; }
.sup-page .shift .chain { padding-left: 14px; padding-right: 14px; }
.sup-page .shift .timebar { margin: 0 14px 6px; }
.sup-page .shift .chain { padding-bottom: 8px; }
.sup-page .shift-foot { padding: 8px 14px; }
.sup-page .shift .roster-fold { margin: 6px 14px 8px; }
.sup-page .shift th:first-child, .sup-page .shift td:first-child { padding-left: 10px; }
.sup-page .shift-name { font-size: 22px; }
.sup-page .shift-date { font-size: 14px; }
.roster-fold { margin-top: 8px; }
.roster-fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; padding: 8px 10px; border-radius: 9px; background: #0b121b; border: 1px solid #1f2b3a; font-size: 14px; list-style: none; }
.roster-fold > summary::-webkit-details-marker { display: none; }
.roster-fold > summary::after { content: "▾"; color: #7d93a8; margin-left: 4px; }
.roster-fold[open] > summary::after { content: "▴"; }
.rf-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-n { font-size: 12px; color: #9fb3c8; white-space: nowrap; }
.fold-panel > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; list-style: none; }
.fold-panel > summary::-webkit-details-marker { display: none; }
.fold-panel > summary::before { content: "▸"; color: #7d93a8; }
.fold-panel[open] > summary::before { content: "▾"; }
.fold-panel > summary strong { font-size: 16px; }
.fp-n { font-weight: 800; font-size: 14px; }
.fp-sub { font-size: 13px; }
.fold-panel:not([open]) { padding-top: 12px; padding-bottom: 12px; gap: 0; }
.sup-page .decided-panel:not([open]) { padding-top: 12px; padding-bottom: 12px; }
.sup-page .decided-panel > summary strong { font-size: 16px; }
@media (max-width: 700px) {
  .sup-page .overview-list td, .sup-page .overview-list th { padding: 6px 6px; font-size: 13px; }
  .sup-page .roster-list td, .sup-page .roster-list th { padding: 6px 5px; }
}
/* Computer: bigger Today / Tomorrow / Next Overtime tiles (phone unchanged) */
@media (min-width: 900px) {
  .md-tiles { gap: 12px; }
  .md-tile { padding: 16px 18px; gap: 4px; border-radius: 12px; }
  .md-lbl { font-size: 12.5px; }
  .md-main { font-size: 26px; }
  .md-sub { font-size: 14px; }
  .md-tile.dim .md-main { font-size: 19px; }
}
/* Master Schedule: a planned row move, shown under the name until it starts */
.ms-note.upcoming { color: #f5c96a; font-weight: 700; }
/* Computer: Supervise dashboard tiles back to full size (phones keep the compact ones) */
@media (min-width: 900px) {
  .sup-page .stat-strip { gap: 12px; }
  .sup-page .stat-card { padding: 16px 20px; gap: 4px; border-top-width: 3px; }
  .sup-page .stat-value { font-size: 34px !important; line-height: 1.1; }
  .sup-page .stat-label { font-size: 12.5px !important; letter-spacing: .05em; }
}
/* Computer: the calendar and the day's lineup side by side as a matched pair (same width, same height);
   a long day scrolls inside its box instead of stretching past the calendar */
@media (min-width: 901px) {
  .cal-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .cal-wrap > #calDetail { height: 0; min-height: 100%; overflow-y: auto; padding: 14px 16px; border-radius: 10px;
    background: linear-gradient(160deg, #161f2c 0%, #11181f 100%); border: 1px solid #1f2b3a; border-left: 3px solid #2a3a4c;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset; align-content: start; }
  .cal-wrap > #calDetail > .section-title { margin: 0; }
  .cal-wrap > #calDetail > .section-title h2 { font-size: 15px; }
}
@media (min-width: 901px) { .cal-wrap > #calDetail > .lineup-wrap { background: transparent; border: 0; padding: 0; } }
/* Sign-in box: stays put (it used to tilt and lift under the mouse, which looked glitchy) */
.login-box, .login-box:hover { transform: none; transition: box-shadow .35s ease; }
.login-box button:hover, .login-box button:active { transform: none; }

/* Calendar day tags: short words instead of dots */
.cal-tags { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 0; max-width: 100%; }
.ct { display: inline-block; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .02em; line-height: 1; padding: 2px 4px; border-radius: 4px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid transparent; }
.ct.needs { background: #ff5c5c; color: #2a0606; }
.ct.mine { background: #4da3ff; color: #04121f; }
.ct.open { background: transparent; color: #ffb84d; border-color: #ffb84d99; }
.ct.filled { background: #4ddc8a26; color: #7ee8a9; }
.ct.offn { background: #9fb3c81f; color: #b8c7d6; }
.cal-legend .ct.my { background: var(--mo, #2ecc71); color: #0b0f14; }
.cal-legend .mo-vacation { --mo: #4da3ff; } .cal-legend .mo-sick { --mo: #c9a4ff; } .cal-legend .mo-personal { --mo: #ffb84d; }
.cal-legend .mo-holiday { --mo: #3fd3d3; } .cal-legend .mo-funeral { --mo: #9aa8c7; } .cal-legend .mo-wc, .cal-legend .mo-leave { --mo: #ff8c42; }
.cal-legend .hol-star { vertical-align: baseline; font-size: 14px; line-height: 1; margin: 0; }
.cal-day.today .cal-num { box-shadow: 0 0 0 3px #4da3ff33; }
@media (max-width: 420px) { .ct { font-size: 8px; padding: 2px 3px; } }

/* Officer calendar: quiet. My tour in plain white on working days, blank on regular days off, OFF (V) etc. on
   time off, a blue OT pill for my overtime. Only two signals: red pulse = overtime nobody has taken, gold = holiday. */
.cal-day.mine { aspect-ratio: auto; min-height: 56px; justify-content: flex-start; gap: 4px; padding-top: 7px; background: #0b1118; color: #5d6f82; border-color: transparent; }
.cal-day.mine .cal-num { font-size: 12px; font-weight: 700; }
.cal-day.mine.work { background: #151e29; color: #c6d3e0; }
/* time off: striped in the color of its time bank (sick purple, vacation blue...), with the letter in that color */
.cal-day.mine.toff { --mo: #e6edf3; color: #e6edf3; border-color: color-mix(in srgb, var(--mo) 55%, transparent);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--mo) 30%, transparent) 0 6px, color-mix(in srgb, var(--mo) 10%, transparent) 6px 12px); }
.cal-day.mine.toff .cm.off b { color: var(--mo); }
.cal-day.toff.mo-vacation { --mo: #e6edf3; } .cal-day.toff.mo-sick { --mo: #e6edf3; } .cal-day.toff.mo-personal { --mo: #e6edf3; } .cal-day.toff.mo-timeback { --mo: #e6edf3; }
.cal-day.toff.mo-holiday { --mo: #e6edf3; } .cal-day.toff.mo-funeral { --mo: #e6edf3; } .cal-day.toff.mo-wc { --mo: #e6edf3; } .cal-day.toff.mo-leave { --mo: #e6edf3; }
.cal-mine { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; }
.cm { display: inline-block; font-style: normal; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm.tour { color: #e6edf3; font-size: 12px; font-weight: 800; }
.cm.tour.day { color: #ffa94d; } .cm.tour.eve { color: #3fd3d3; } .cm.tour.mid { color: #a99bff; }
.cm.off { color: #8fa3b8; font-size: 10px; font-weight: 800; letter-spacing: 0; }
.cm.off b { color: #e6edf3; font-weight: 800; }
.cm.ot { background: #4da3ff; color: #04121f; border-radius: 4px; padding: 1px 4px; font-size: 9px; font-weight: 800; }
.cal-day.mine.today { box-shadow: inset 0 0 0 2px #4da3ff; }
.cal-day.mine.today .cal-num { background: #4da3ff; color: #08101c; border-radius: 999px; padding: 0 6px; }
.cal-day.mine.holiday { box-shadow: inset 0 0 0 2px #2e9e5b; }
.cal-day.mine.holiday .cal-num, .cal-day.mine.holiday .hol-star, .mine-key .hol-star { color: #4ddc8a; }
.cal-day.mine.today.holiday { box-shadow: inset 0 0 0 2px #4da3ff; }
.cal-day.mine.today.holiday .cal-num { color: #08101c; }
.cal-day.mine.needs { border-color: #ff6b6b99; color: #ffd6d6; }
.mine-key { display: block; font-size: 12px; line-height: 1.7; color: #7d8fa3; margin-top: 10px; }
.mine-key b { color: #c6d3e0; }
.mine-key .cm.ot { vertical-align: 1px; }
.mk-red { color: #ff6b6b; font-weight: 700; }
.mine-key .hol-star { vertical-align: baseline; font-size: 12px; margin: 0; }
@media (max-width: 420px) { .cm.tour { font-size: 11px; } .cm.off { font-size: 8.5px; } .cm.ot { font-size: 8px; padding: 1px 3px; } }
.cs-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; }
.cs-key.needs { background: #ff4d4d40; border: 1px solid #ff6b6b; animation: tt-breathe 2.6s ease-in-out infinite; }

/* Time Bank: Sell time, Holiday time back and History as their own tappable cards */
.hist-drop.inner { background: #131c28; border: 1px solid #24344a; border-radius: 12px; padding: 10px 12px; margin-top: 0; }
.hist-drop.inner[open] { border-color: #34506e; }
.hist-drop.inner > summary { gap: 12px; }
.hist-drop.inner > summary .lbl { color: #e6edf3; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.bk-t { display: grid; gap: 1px; min-width: 0; } .bk-t small { color: #7d93a8; font-size: 12px; }
.bk-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.bk-ic.sell { background: #2e9e5b26; color: #4ddc8a; } .bk-ic.hol { background: #3fd3d326; color: #3fd3d3; } .bk-ic.hist { background: #4da3ff26; color: #4da3ff; }
.hist-drop.inner > summary::after { font-size: 14px; }
.mine-key .explain-btn { vertical-align: 1px; }
.mk-letters { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.mk-l b { color: var(--mo, #c6d3e0); }
.mk-l.mo-vacation { --mo: #e6edf3; } .mk-l.mo-sick { --mo: #e6edf3; } .mk-l.mo-personal { --mo: #e6edf3; } .mk-l.mo-timeback { --mo: #e6edf3; }
.mk-l.mo-holiday { --mo: #e6edf3; } .mk-l.mo-funeral { --mo: #e6edf3; } .mk-l.mo-wc { --mo: #e6edf3; } .mk-l.mo-leave { --mo: #e6edf3; }
/* sick days: white stripes everywhere (calendar, Today/Tomorrow on the Dashboard) */
.md-tile.is-off.mo-sick, .cal-day.mine.toff.mo-sick { border-color: #e6edf399; }
.cs-key.hol { width: 14px; height: 14px; border-radius: 4px; border: 2px solid #2e9e5b; vertical-align: -2px; }
/* history time filter: a period picker (and from/to dates) above the status chips */
.hf-time-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hf-time-row select.hf-time { width: auto; max-width: 100%; }
.hf-dates { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hf-dates input[type=date] { width: 150px; max-width: 42vw; }
.hf-n { font-size: 12px; }
/* officer calendar: the day's schedule changes */
.chg-day .chg-row { display: grid; grid-template-columns: minmax(84px, auto) 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid #1f2b3a; font-size: 14px; }
.chg-day .lbl + .chg-row { border-top: none; }
.chg-day .chg-shift { color: #9fb3c8; font-weight: 700; white-space: nowrap; }
/* officer calendar: a working day is outlined in its tour's color (days orange, evenings teal, midnights purple) */
.cal-day.mine.work.tb-day { border-color: #ffa94d99; } .cal-day.mine.work.tb-eve { border-color: #3fd3d399; } .cal-day.mine.work.tb-mid { border-color: #a99bff99; }
.cal-day.mine.work.needs { border-color: #ff6b6b99; }
/* officer calendar: my overtime days are filled blue */
.cal-day.mine.has-ot { background: #1d4f86; border-color: #6bb6ff; color: #e6f2ff; }
.cal-day.mine.has-ot .cm.tour { color: #ffffff; }
.cm.ot-t { color: #fff; font-size: 12px; font-weight: 800; } .cm.ot-t.sm { font-size: 10px; color: #cfe6ff; }
.cs-key.myot { width: 14px; height: 14px; border-radius: 4px; background: #1d4f86; border: 1px solid #6bb6ff; vertical-align: -2px; }
.ot-banner { background: #1d4f86; border: 1px solid #6bb6ff; color: #e6f2ff; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.bank-note.fam-sick { color: #cfd9e4; font-weight: 600; } .bank-note.fam-sick.full { color: #ffb84d; }
/* Supervise dashboard: Needs you, tappable tiles, the Post chooser */
.needs-card { padding: 12px 14px; }
.needs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.needs-head h2 { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: #ffb84d; }
.needs-card.clear .needs-head h2 { color: #9fb3c8; }
.needs-list { display: grid; gap: 6px; margin-top: 8px; }
.needs-item { display: flex; align-items: center; gap: 6px; text-align: left; background: #ffb84d14; border: 1px solid #ffb84d55; color: #ffe2b3; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; cursor: pointer; }
.needs-item strong { color: #fff; font-size: 17px; }
.needs-go { margin-left: auto; color: #ffb84d; font-size: 20px; line-height: 1; }
.stat-card.tap { cursor: pointer; } .stat-card.tap:hover { filter: brightness(1.15); }
.post-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 8px; }
.needs-unf { margin-top: 8px; border: 1px solid #ff6b6b88; background: #ff4d4d14; border-radius: 10px; padding: 8px 10px; }
.needs-unf-t { color: #ffb3b3; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.needs-unf .ua-row { padding: 6px 0; }
.sup-page { position: relative; }
.more-layer { position: absolute; inset: 0; z-index: 30; }
.more-backdrop { position: fixed; inset: 0; background: rgba(5,9,14,.6); }
.more-panel { position: relative; display: grid; gap: 10px; background: #131c28; border: 1px solid #2a3a4c; border-radius: 12px; padding: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.more-group .lbl { margin-bottom: 6px; } .more-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.more-btns .btn.on { border-color: #4da3ff; color: #fff; }

/* Supervise on a computer: the officer's own tabs on top, the supervisor tabs as a row under them (like the phone) */
.nav-stack { position: sticky; top: var(--hdr, 66px); z-index: 8; background: inherit; }
.nav-stack > .tabs { position: static; }
.nav-stack > .my-app-tabs { border-bottom: none; }
.nav-stack > .sup-subnav { padding-top: 4px; padding-bottom: 8px; border-top: 1px solid #1f2b3a; background: #0d1520; }
.nav-stack > .sup-subnav > .tab-link { padding: 6px 14px; font-size: 14px; }
@media (max-width: 700px) { .nav-stack > .sup-subnav { border-top: none; background: none; } .nav-stack > .sup-subnav > .tab-link { font-size: inherit; } }

/* super admin viewing the app as an officer (view only) */
.viewas-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid #ffa94d66; background: #2a1f1080; }
.viewas-bar select { width: auto !important; min-width: 220px; max-width: 100%; flex: 0 1 auto; }
.viewas-bar .btn { margin-left: auto; }

/* Text size picker: four A's, smallest to largest */
.seg.text-size button { min-width: 52px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
html:not([data-textsize="1"]) .page,
html:not([data-textsize="1"]) .ask-card,
html:not([data-textsize="1"]) .toast { zoom: var(--tz, 1); }
html:not([data-textsize="1"]) #app > header,
html:not([data-textsize="1"]) .bottom-nav,
html:not([data-textsize="1"]) nav.tabs { zoom: var(--tzc, 1); }
/* panels placed against the screen edges: their size and position are given in screen terms, so undo the zoom on those */
html:not([data-textsize="1"]) .menu-panel { zoom: var(--tz, 1);
  top: calc((var(--hdr, 66px) + 6px) / var(--tz, 1)); right: calc(12px / var(--tz, 1)); width: calc(min(380px, 100vw - 24px) / var(--tz, 1));
  max-height: calc((100dvh - var(--hdr, 66px) - 18px - env(safe-area-inset-bottom, 0px)) / var(--tz, 1)); }
html:not([data-textsize="1"]) .pp-panel { zoom: var(--tz, 1); width: calc(min(560px, 100vw) / var(--tz, 1)); }
@media (max-width: 700px) { html:not([data-textsize="1"]) .dept-name { display: none; } }
html:not([data-textsize="1"]) .menu-panel .seg { display: flex; flex-wrap: wrap; max-width: 100%; }
html:not([data-textsize="1"]) .menu-panel .seg > button { flex: 1 1 auto; }

/* Bigger text sizes on a phone: give names and tables room instead of cutting them off */
@media (max-width: 700px) {
  /* the day's lineup: Patrol and the Detective Division stacked, full width, so last names fit */
  html[data-textsize="1.4"] .lineup { grid-template-columns: minmax(0, 1fr); }
  html:not([data-textsize="1"]) .lu-n { padding: 4px 6px; }
  /* tables (sign-up lists, who's been asked) and the month calendar's seven columns: only half the step bigger, so
     columns don't break words apart or cut off the day's tags */
  html:not([data-textsize="1"]) .page table,
  html:not([data-textsize="1"]) .page .cal-grid { zoom: calc(var(--tzc, 1) / var(--tz, 1)); }
  html:not([data-textsize="1"]) .page td, html:not([data-textsize="1"]) .page th { overflow-wrap: normal; word-break: normal; hyphens: none; }
}
@media (max-width: 700px) {
  /* slip: at bigger text sizes the date gets its own line and Start / End share the next, so times aren't cut off */
  html:not([data-textsize="1"]) .fold-form .slip-times, html:not([data-textsize="1"]) .slip-times { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html:not([data-textsize="1"]) .slip-times .sw-date { grid-column: 1 / -1; }
  html:not([data-textsize="1"]) .slip-times.by-hours .sw-date { grid-column: 1 / -1; }
  html:not([data-textsize="1"]) .page input[type="time"], html:not([data-textsize="1"]) .page input[type="date"] { padding-left: 8px !important; padding-right: 4px !important; }
}

/* time pickers in fixed steps (15 / 30 minutes) */
select.time-sel { width: 100%; min-width: 0; }
/* time off: part of a day */
.part-day { display: grid; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed #2a3a4c; background: #0f1620; }
.part-day.on { border-style: solid; border-color: #4da3ff66; background: #0f1a28; }
.part-toggle { justify-self: start; }
.part-day.on .part-toggle { color: #9fb3c8; }
.part-times { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; }
.part-times .field { margin: 0; min-width: 0; }
.part-hrs { padding-bottom: 10px; white-space: nowrap; }
@media (max-width: 420px) { .part-times { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .part-hrs { grid-column: 1 / -1; padding-bottom: 0; } }
html:not([data-textsize="1"]) .part-times { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html:not([data-textsize="1"]) .part-hrs { grid-column: 1 / -1; padding-bottom: 0; }
html.light body .part-day { background: #f5f8fb; border-color: #cfd9e4; }
html.light body .part-day.on { background: #eef5ff; border-color: #4da3ff88; }
.part-badge { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: #ffb84d1f; border: 1px solid #ffb84d66; color: #ffd38a; font-size: 14px; }
html.light body .part-badge { background: #fff4e0; border-color: #e8a84a; color: #7a4a00; }
.resubmit-note { padding: 10px 12px; border-radius: 10px; background: #4da3ff14; border: 1px solid #4da3ff55; color: #cfe3f7; font-size: 14px; line-height: 1.4; }
.resubmit-note .linkish { margin-left: 6px; }
html.light body .resubmit-note { background: #eaf3ff; border-color: #9cc6f5; color: #1d3a5c; }
@media (max-width: 700px) {
  /* slip on a phone: the date on its own line, Start and End side by side (the time lists need the room) */
  .fold-form .slip-times, .fold-form .slip-times.by-hours { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fold-form .slip-times .sw-date { grid-column: 1 / -1; }
}

/* selling time: the certify-and-sign step */
.sell-cert { padding: 12px 14px; border-radius: 10px; border: 1px solid #f0b42966; background: #f0b42912; gap: 10px; }
.sell-cert .tick-row { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sell-cert .tick-row input { width: 20px; height: 20px; }

/* requests still waiting: big and hard to miss, at the top of the officer's Dashboard */
.wait-banner { border: 2px solid #f0b429; background: #f0b4291f; border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; display: grid; gap: 10px; }
.wait-banner.late { border-color: #ff7a45; background: #ff7a4524; box-shadow: 0 0 0 3px #ff7a4522; }
.wait-head { display: flex; gap: 12px; align-items: center; }
.wait-head strong { font-size: 18px; color: #ffd27a; }
.wait-banner.late .wait-head strong { color: #ffb08a; }
.wait-ico { font-size: 30px; line-height: 1; }
.wait-sub { font-size: 14px; color: #f3d9b0; margin-top: 2px; }
.wait-list { display: grid; gap: 6px; }
.wait-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; text-align: left; background: #0b1118aa; border: 1px solid #f0b42955; border-radius: 10px; padding: 10px 12px; color: inherit; font: inherit; cursor: pointer; }
.wait-row.late { border-color: #ff7a4599; }
.wait-what { font-weight: 700; flex: 1 1 200px; }
.wait-who { font-size: 14px; color: #d7c7a8; }
.wait-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #ff7a45; color: #1a0d05; }
html.light body .wait-banner { background: #fff6e0; border-color: #e0a100; }
html.light body .wait-banner.late { background: #fff0e8; border-color: #e5602a; }
html.light body .wait-head strong { color: #7a4d00; } html.light body .wait-banner.late .wait-head strong { color: #8a2f08; }
html.light body .wait-sub, html.light body .wait-who { color: #5c4a2a; }
html.light body .wait-row { background: #ffffffcc; }

/* a fold-up list inside another box (My overtime history inside Overtime hours) */
.hist-drop.inner { margin: 0; background: #0b111866; box-shadow: none; border: 1px solid #ffffff14; }
html.light body .hist-drop.inner { background: #f4f6f9; border-color: #d9dee6; }
/* Holiday Time Back: one holiday per line */
.checks.hc-checks { display: grid; gap: 8px; }
.checks.hc-checks label { font-size: 15px; }

/* Holiday Time Back: how you want your holidays */
.seg.hc-mode { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid #2a3a4c; border-radius: 10px; overflow: hidden; width: fit-content; max-width: 100%; }
.seg.hc-mode button { flex: 1 1 auto; padding: 8px 14px; background: transparent; border: 0; border-right: 1px solid #2a3a4c; color: #cfe3f7; font: inherit; font-weight: 600; cursor: pointer; }
.seg.hc-mode button:last-child { border-right: 0; }
.seg.hc-mode button.active { background: #4da3ff; color: #06121f; }
.seg.hc-mode { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.seg.hc-mode button { padding: 9px 6px; font-size: 14px; }

/* Holiday Time Back: where you stand, and a request waiting */
.hc-now { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid #2a3a4c; }
.hc-now.on { border-color: #36c48f88; background: #36c48f14; }
.hc-now-l { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #8aa0b5; }
.hc-wait { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid #f0b42966; background: #f0b42914; }
/* Supervisor tabs on a phone with larger text: two rows of three, full words (no "Dashbo…") */
@media (max-width: 700px) {
  html:not([data-textsize="1"]) #app.admin-menu .tabs:not(.my-app-tabs) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  html:not([data-textsize="1"]) #app.admin-menu nav.tabs:not(.my-app-tabs) button.tab-link { overflow: visible; text-overflow: clip; white-space: nowrap; font-size: 12px !important; padding: 8px 2px !important; }
}

/* Master Schedule: view toggle, Edit, and the LT's unpublished draft */
.ms-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.seg.ms-view { display: inline-flex; border: 1px solid #2a3a4c; border-radius: 10px; overflow: hidden; }
.ms-final-note { padding: 8px 12px; border-radius: 10px; background: #4da3ff14; border: 1px solid #4da3ff44; color: #cfe3f7; font-size: 14px; }
.ms-final-note.edit { background: #f0b42914; border-color: #f0b42966; color: #f3dfb6; }
.ms-draft { border: 2px solid #f0b429; background: #f0b42912; }
.ms-draft h2 { color: #ffd27a; }
.ms-draft-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ms-draft-list li { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; background: #0b111888; }
.ms-note.draft, .ms-off.has-draft .ms-note { outline: 1px dashed #f0b429; outline-offset: 1px; }
.ms-draft-banner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 14px; margin: 0 0 12px; border-radius: 12px; border: 2px solid #f0b429; background: #f0b4291f; font-weight: 600; }
html.light body .ms-draft-list li { background: #ffffffcc; }
html.light body .ms-final-note { color: #1d3a5c; } html.light body .ms-final-note.edit { color: #5c4a2a; }
html.light body .ms-draft h2 { color: #7a4d00; }

/* Agency → Your plan */
.plan-list { display: grid; gap: 8px; }
.plan-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid #2a3a4c; opacity: .75; }
.plan-row.on { opacity: 1; border-color: #36c48f66; background: #36c48f10; }
.plan-mark { font-weight: 800; font-size: 18px; width: 18px; color: #8aa0b5; } .plan-row.on .plan-mark { color: #36c48f; }
.plan-state { margin-left: 8px; font-size: 12px; font-weight: 700; color: #8aa0b5; } .plan-row.on .plan-state { color: #36c48f; }

/* overtime slip: upgrade to a 4-hour call-in */
.btn.callin-btn { border: 1px dashed #f0b429aa; background: transparent; color: #f3d9a0; font-weight: 700; width: fit-content; }
.btn.callin-btn.on { border-style: solid; background: #f0b42922; color: #ffd27a; }
html.light body .btn.callin-btn { color: #7a4d00; } html.light body .btn.callin-btn.on { color: #5c3a00; background: #fff1cc; }

/* Getting started (the LTs' setup guide) */
.gs-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gs-step { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 14px; border: 1px solid #22324a; border-radius: 12px; background: #0f1a2b; }
.gs-step .gs-n { grid-row: span 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; border: 2px solid #3a4f6c; color: #a8bbd0; }
.gs-step.done .gs-n { border-color: #39c27a; background: #39c27a; color: #062414; }
.gs-step.next { border-color: rgba(46,230,255,.55); box-shadow: 0 0 0 1px rgba(46,230,255,.25); }
.gs-step.next .gs-n { border-color: #2ee6ff; color: #2ee6ff; }
.gs-step.warn { border-color: rgba(255,159,26,.55); }
.gs-step h3 { margin: 4px 0 0; font-size: 16px; }
.gs-step .gs-what { margin: 0; color: #a8bbd0; font-size: 14px; }
.gs-step .gs-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gs-step .gs-state { font-size: 13px; font-weight: 700; color: #ffb347; }
.gs-step.done .gs-state { color: #7ee2a8; }
.gs-bar { height: 8px; border-radius: 8px; background: #1b2940; overflow: hidden; }
.gs-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #2ee6ff, #39c27a); }
.gs-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.gs-banner .gs-bar { flex: 1 1 160px; }
/* a change on the Master Schedule that the LT can tap to see or cancel */
button.ms-chg { border: none; font: inherit; font-size: 10.5px; text-align: left; cursor: pointer; display: inline-block; max-width: 100%; }
button.ms-chg:hover, button.ms-chg:focus-visible { outline: 1px solid currentColor; outline-offset: 1px; }
@media (max-width: 700px) { button.ms-chg { display: block; } }
/* Master Schedule: tap to follow a column (a day in the rotation) and a row across the chart */
.ms-table [data-col], .ms-table tr[data-sel] > th { cursor: pointer; }
.ms-table .sel-col { box-shadow: inset 2px 0 0 #ffd54a, inset -2px 0 0 #ffd54a, inset 0 0 0 999px #ffd54a26; }
.ms-table thead .sel-col { box-shadow: inset 0 0 0 999px #ffd54a; color: #10151f; }
.ms-table tr.sel-row > th, .ms-table tr.sel-row > td { box-shadow: inset 0 2px 0 #ffd54a, inset 0 -2px 0 #ffd54a, inset 0 0 0 999px #ffd54a1f; }
.ms-table tr.sel-row > .sel-col { box-shadow: inset 0 0 0 999px #ffd54a33, inset 0 2px 0 #ffd54a, inset 0 -2px 0 #ffd54a; }
.ms-table .sel-x { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 999px #ffd54a66 !important; }
.ms-table .ms-month td.sel-col { font-weight: 800; color: #fff; }
/* Staffing Check: tap a row to see that day in the calendar */
tr.staff-row { cursor: pointer; }
tr.staff-row:hover > td { background: #4da3ff12; }
tr.staff-row.on > td { background: #4da3ff1f; }
.staff-day { background: none; border: none; padding: 0; font: inherit; color: #9fcbff; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* calendar: a tour below minimum staffing (tag, and the spot to tap on the day picked) */
.ct.short { background: #ff5c5c; color: #2a0606; }
.short-day { border-color: #ff6b6b66; background: #ff4d4d12; }
.short-spot { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: left;
  background: #ff4d4d1f; border: 1px solid #ff6b6b88; border-radius: 10px; padding: 9px 12px; margin-top: 6px; }
.short-spot .ss-who { grid-column: 1; font-size: 12.5px; }
.short-spot .ss-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) { .short-spot { grid-template-columns: 1fr; } .short-spot .ss-go { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 6px; } }
/* Supervise: on the far right of the officer's own tabs, in its own gold box so it stands apart */
.tabs > .tab-link.sup-tab { border: 1px solid #f5c96a88; background: #f5c96a14; color: #f5c96a; margin-left: 6px; }
.tabs > .tab-link.sup-tab::before { display: none; }
.tabs > .tab-link.sup-tab:hover { background: #f5c96a26; }
.tabs > .tab-link.sup-tab.active { background: linear-gradient(180deg,#4a3a12,#33280c); color: #ffe2a0; border-color: #f5c96a; }
.tabs > .tab-link.sup-tab.active::after { background: #f5c96a; }
.bottom-nav button.sup-tab { color: #f5c96a; border: 1px solid #f5c96a66; background: #f5c96a12; }
.bottom-nav button.sup-tab svg { stroke: #f5c96a; }
.bottom-nav button.sup-tab.active { color: #ffe2a0; background: #4a3a12; border-color: #f5c96a; }
.bottom-nav button.sup-tab.active svg { stroke: #ffe2a0; }
/* Post screen: who's working the tour being posted */
.work-box { border: 1px solid #4da3ff33; background: #4da3ff0d; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.work-box .wb-head { margin-bottom: 6px; }
.work-box .wb-list { display: flex; flex-wrap: wrap; gap: 6px; }
.work-box .wb-p { background: #ffffff0d; border: 1px solid #ffffff1a; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.work-box .wb-p.sup { border-color: #f5c96a66; }
.work-box .wb-r { color: #8fa3bd; font-size: 11.5px; }
.work-box .wb-ot { margin-left: 5px; font-size: 10.5px; font-weight: 800; color: #10151f; background: #39c27a; border-radius: 5px; padding: 0 4px; }
.work-box .wb-outs { margin-top: 6px; font-size: 12px; }
.flex-tag { background: #1a7dff; }
/* Time off: the Dashboard calendar's day boxes, plus the days picked (gold) and days that can't be picked (faded) */
.to-cal-wrap { display: grid; gap: 8px; }
.to-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-day.to-day { font: inherit; cursor: pointer; }
.cal-day.to-day.other { opacity: .45; }
.cal-day.to-day.to-no { opacity: .3; cursor: default; }
.cal-day.to-day.in { background: #f5c96a33 !important; border-color: #f5c96a !important; opacity: 1; }
.cal-day.to-day.lo, .cal-day.to-day.hi { border-width: 2px !important; box-shadow: 0 0 0 2px #f5c96a40; }
.cal-day.to-day .to-tag { font-size: 9px; font-weight: 800; border-radius: 4px; padding: 1px 4px; }
.cal-day.to-day .to-tag.off { background: #39c27a; color: #082214; }
.cal-day.to-day .to-tag.pend { background: #4da3ff; color: #06182b; }
.to-cal-hint { margin: 0; font-size: 13px; }
.to-typed summary { cursor: pointer; color: #9fcbff; font-size: 13px; }
/* Swaps: the Dashboard calendar's day boxes; tap or drag the tours. Giving up = red, taking = green. */
.sw-cal .cal-day { position: relative; }
.sw-cal .cal-day.other { opacity: .45; }
.sw-cal .cal-day.to-no { opacity: .3; }
.sw-cal .sw-chip.cm.tour { background: none !important; border: none; box-shadow: none !important; padding: 2px 0; min-width: 0; width: 100%; font-family: inherit; font-size: 12px; font-weight: 800; line-height: 1.1; letter-spacing: 0; text-overflow: clip; cursor: pointer; touch-action: none; border-radius: 6px; }
@media (max-width: 420px) { .sw-cal .sw-chip.cm.tour { font-size: 11px; } }
.sw-cal .sw-chip.cm.tour.day { color: #ffa94d; } .sw-cal .sw-chip.cm.tour.eve { color: #3fd3d3; } .sw-cal .sw-chip.cm.tour.mid { color: #a99bff; }
.sw-cal .sw-chip:disabled { opacity: .6; cursor: default; }
/* the whole day box shows what's picked */
.sw-cal .cal-day:has(.sw-chip.give) { background: #c0392b !important; border-color: #ff9b8f !important; }
.sw-cal .cal-day:has(.sw-chip.take) { background: #2e9e5b !important; border-color: #8de6b0 !important; }
.sw-cal .cal-day:has(.sw-chip.give) .sw-chip, .sw-cal .cal-day:has(.sw-chip.take) .sw-chip, .sw-cal .cal-day:has(.sw-chip.give) .cal-num, .sw-cal .cal-day:has(.sw-chip.take) .cal-num { color: #fff !important; }
/* on the other officer's calendar: the days you're giving up */
.sw-cal .cal-day.sw-mark { outline: 2px dashed #ff6b6b; outline-offset: -2px; }
.sw-cal .sw-chip.swapped { text-decoration: underline dotted #b49cff; text-underline-offset: 3px; }
/* time off calendar: dragging across days picks them (the page doesn't scroll under the finger while dragging) */
.cal-day.to-day:not([disabled]) { touch-action: none; user-select: none; -webkit-user-select: none; }
