/* HCM ▸ Scheduling (HH HRM). Rule: no highlighted backgrounds behind text; status = green/yellow/red TEXT only. */
.hcs-subnav { display: flex; gap: 1.2rem; border-bottom: 2px solid var(--hh-charcoal, #121212); margin: 0 0 .8rem; }
.hcs-subnav button { background: transparent; border: 0; border-bottom: 4px solid transparent; padding: .35rem .1rem; font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; color: var(--hh-charcoal, #121212); cursor: pointer; box-shadow: none; }
.hcs-subnav button.on { border-bottom-color: var(--hh-yellow, #FFF200); }
.hcs-subnav button:hover { background: transparent; transform: none; }
.hcs-ok { color: #1b6e20; font-weight: 700; } .hcs-warn { color: #9a6700; font-weight: 700; } .hcs-bad { color: #b0001f; font-weight: 700; }
.hcs-muted { color: var(--hh-muted, #5a5a5a); font-weight: 500; }
.hcs-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; font-size: .78rem; }
.hcs-weeks { display: flex; gap: .4rem; flex-wrap: wrap; }
.hcs-chip { background: transparent; border: 1.5px solid var(--hh-charcoal, #121212); border-radius: 999px; padding: .2rem .65rem; font-size: .72rem; font-weight: 700; cursor: pointer; color: var(--hh-charcoal, #121212); box-shadow: none; }
.hcs-chip.on { border-width: 2.5px; border-color: var(--hh-red, #E4002B); color: var(--hh-red, #E4002B); }
.hcs-loading { padding: 1.5rem; color: var(--hh-muted, #5a5a5a); }
table.hcs-grid th, table.hcs-grid td { text-align: center; padding: .25rem .3rem; white-space: nowrap; }
table.hcs-grid td.hcs-name { text-align: left; font-weight: 700; border-left: 4px solid var(--hh-muted, #5a5a5a); }
tr.hcs-grp td { text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--hh-muted, #5a5a5a); font-weight: 800; padding-top: .55rem; border-left: 4px solid var(--hh-muted, #5a5a5a); }
.hcs-shift { background: transparent; border: 1px solid rgba(18, 18, 18, .18); border-left: 4px solid var(--hh-muted, #5a5a5a); border-radius: 6px; padding: .15rem .4rem; min-width: 5.2rem; font-size: .76rem; font-weight: 700;
  color: var(--hh-charcoal, #121212); cursor: pointer; position: relative; line-height: 1.15; box-shadow: none; }
.hcs-shift small { display: block; font-weight: 500; font-size: .62rem; color: var(--hh-muted, #5a5a5a); }
.hcs-shift.hcs-out { border-left-color: rgba(18, 18, 18, .18); border-style: dashed; }
.hcs-shift.sel { outline: 2px solid var(--hh-charcoal, #121212); outline-offset: 1px; }
.hcs-shift:hover { background: transparent; transform: none; }
.hcs-flag { position: absolute; top: -2px; right: 3px; font-size: .7rem; }
.hcs-note { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #b0001f; border: 1px solid currentColor; border-radius: 4px; padding: 0 .25rem; }
table.hcs-cov td, table.hcs-cov th { text-align: center; white-space: nowrap; }
table.hcs-cov td.hcs-rl { text-align: left; font-weight: 700; }
.hcs-bar { display: inline-block; height: .7rem; border-radius: 3px; vertical-align: middle; }
.hcs-foot { font-size: .68rem; color: var(--hh-muted, #5a5a5a); margin: .5rem 0 0; }
.hcs-click { cursor: pointer; }
.hcs-edit { margin-top: .7rem; border: 2px solid var(--hh-charcoal, #121212); border-radius: 10px; padding: .55rem .75rem; font-size: .78rem; }
.hcs-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .45rem; }
.hcs-act { background: transparent; border: 1.5px solid var(--hh-charcoal, #121212); border-radius: 8px; padding: .2rem .6rem; font-size: .72rem; font-weight: 700; cursor: pointer; color: var(--hh-charcoal, #121212); box-shadow: none; }
.hcs-act[disabled] { opacity: .45; cursor: not-allowed; }
#hcmScheduling .grid-2 { margin-top: .9rem; } #hcmScheduling > .panel { margin-top: .9rem; }
.hcs-away { color: var(--hh-muted, #5a5a5a); font-size: .72rem; font-weight: 700; border: 1px dashed rgba(18, 18, 18, .3); border-radius: 6px; padding: .15rem .4rem; display: inline-block; min-width: 5.2rem; }
/* v1.1 layout: the page never scrolls sideways. Panels may shrink; wide tables scroll inside their own panel. */
#hcmScheduling, #hcmScheduling .panel, #hcmScheduling .grid-2 > * { min-width: 0; }
#hcmScheduling .tbl-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
#hcmScheduling .tbl-wrap > table { min-width: max-content; }
#hcmScheduling .hcs-gridpanel .tbl-wrap > table { width: 100%; }
#hcmScheduling .grid-2 { grid-template-columns: minmax(0, 1fr); }   /* coverage + hours tables need ~600-880px each; stacked they fit the ~1200px content width */
.hcs-mode { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--hh-charcoal, #121212); border: 1.5px solid var(--hh-charcoal, #121212); border-radius: 999px; padding: .12rem .5rem; margin-right: .4rem; }
table.hcs-my td { vertical-align: top; padding: .35rem .5rem; } table.hcs-my td.hcs-rl { font-weight: 700; white-space: nowrap; width: 7rem; }
.hcs-glyph { font-size: .8em; color: var(--hh-charcoal, #121212); }
.hcs-gl { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.hcs-legend { display: flex; flex-wrap: wrap; gap: .3rem 0; align-items: center; }
.hcs-toggle { font-size: .74rem; font-weight: 600; margin-right: .6rem; cursor: pointer; }
.hcs-sm { font-size: .66rem; padding: .1rem .45rem; }
.hcs-cow { font-size: .7rem; margin-top: .15rem; }
.hcs-form .hcs-fields { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .5rem; font-size: .78rem; }
.hcs-form input[type=text], .hcs-form input[type=date], .hcs-form input[type=time], .hcs-decide input, .hcs-decide select { font: inherit; font-size: .76rem; border: 1.5px solid var(--hh-charcoal, #121212); border-radius: 6px; padding: .15rem .35rem; background: transparent; }
.hcs-form .hcs-wide input { min-width: 22rem; }
table.hcs-req td { vertical-align: top; } .hcs-decide { white-space: nowrap; } .hcs-decide input { width: 12rem; }
.hcs-msg { font-size: .8rem; font-weight: 600; margin: .35rem 0; background: transparent; } .hcs-msg:empty { display: none; }
/* ---- v1.4 GM builder (desktop). Same rule: no fills behind text; status = green / yellow / red text. ---- */
.hcs-btools { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 0 0 .6rem; font-size: .78rem; }
.hcs-act.hcs-primary { border-width: 2.5px; font-weight: 800; }
.hcs-act.hcs-danger { color: #b0001f; border-color: #b0001f; }
td.hcs-empty { min-width: 1.8rem; }
.hcs-add { opacity: 0; background: transparent; border: 1px dashed rgba(18, 18, 18, .4); border-radius: 6px; width: 1.8rem; height: 1.6rem; padding: 0; font-weight: 800; font-size: .85rem;
  color: var(--hh-muted, #5a5a5a); cursor: pointer; box-shadow: none; line-height: 1; }
table.hcs-grid tr:hover .hcs-add, .hcs-add:focus-visible { opacity: 1; }
.hcs-add:hover { background: transparent; transform: none; border-color: var(--hh-charcoal, #121212); color: var(--hh-charcoal, #121212); }
td.hcs-dropok { outline: 2px dashed var(--hh-charcoal, #121212); outline-offset: -3px; }
td.hcs-dropok .hcs-add { opacity: 1; }
.hcs-dragging { opacity: .45; }
.hcs-bform h2, .hcs-nwform h2 { font-size: 1rem; margin: 0 0 .5rem; }
.hcs-bgrid { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; }
.hcs-bform label, .hcs-nwform > label { display: flex; flex-direction: column; gap: .15rem; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.hcs-bform input[type=text], .hcs-bform select, .hcs-nwform select { font: inherit; font-size: .85rem; text-transform: none; letter-spacing: 0; font-weight: 600;
  border: 1.5px solid var(--hh-charcoal, #121212); border-radius: 6px; padding: .25rem .4rem; background: #fff; min-width: 9rem; color: var(--hh-charcoal, #121212); }
.hcs-bform input[name=time] { width: 9.5rem; font-weight: 800; }
.hcs-bprev { margin: .5rem 0 .15rem; font-size: .85rem; }
ul.hcs-checks { list-style: none; margin: .35rem 0; padding: 0; font-size: .78rem; display: grid; gap: .25rem; }
ul.hcs-checks li { font-weight: 700; }
ul.hcs-cols { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); column-gap: 1.2rem; }
.hcs-bstat { font-size: .74rem; }
.hcs-nwfill { border: 0; padding: 0; margin: .55rem 0; display: grid; gap: .35rem; font-size: .82rem; }
.hcs-nwfill legend { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .2rem; }
.hcs-nwfill label { display: flex; gap: .45rem; align-items: center; font-weight: 600; }
#hcmScheduling .hcs-checkpanel { margin-bottom: .9rem; }

/* ---- v1.4 phones (≤600px): day view, cards, sticky picker, bottom sheets, 44px tap targets ---- */
@media (max-width: 600px) {
  #hcmScheduling .hcs-m { font-size: .95rem; }
  .hcs-mbar { position: sticky; top: 0; z-index: 15; display: flex; gap: .35rem; align-items: center; background: #fff; border-bottom: 2px solid var(--hh-charcoal, #121212);
    padding: .4rem .25rem; margin: 0 0 .5rem; }
  .hcs-mbar select { flex: 1 1 auto; min-width: 0; min-height: 44px; font: inherit; font-size: 16px; font-weight: 700; border: 2px solid var(--hh-charcoal, #121212); border-radius: 8px;
    background: #fff; color: var(--hh-charcoal, #121212); padding: 0 .35rem; }
  .hcs-mbar select.hcs-mstore { flex: 0 0 5.4rem; }
  .hcs-mstore1 { font-weight: 800; padding: 0 .35rem; white-space: nowrap; }
  .hcs-mnav { flex: 0 0 44px; min-width: 44px; min-height: 44px; background: transparent; border: 2px solid var(--hh-charcoal, #121212); border-radius: 8px; font-size: 1.3rem; font-weight: 800;
    color: var(--hh-charcoal, #121212); padding: 0; box-shadow: none; cursor: pointer; }
  .hcs-mnav[disabled] { opacity: .3; }
  .hcs-mnav.hcs-mback { flex: 0 0 auto; padding: 0 .7rem; font-size: .95rem; }
  .hcs-mrow { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .45rem 0; }
  .hcs-mrow2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .55rem; }
  .hcs-mbtn, #hcmScheduling .hcs-m .hcs-act { min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--hh-charcoal, #121212); border-radius: 10px; background: transparent; font: inherit;
    font-size: .92rem; font-weight: 700; color: var(--hh-charcoal, #121212); cursor: pointer; box-shadow: none; }
  .hcs-mbtn.hcs-wide { width: 100%; display: block; margin: .45rem 0; }
  .hcs-mbtn.hcs-primary, #hcmScheduling .hcs-m .hcs-act.hcs-primary { border-width: 3px; font-weight: 800; }
  .hcs-mbtn[disabled] { opacity: .45; }
  .hcs-mweekline { font-size: .85rem; margin: .2rem 0; }
  .hcs-dtabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .2rem; margin: .45rem 0 .55rem; }
  .hcs-dtab { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: transparent; border: 1.5px solid rgba(18, 18, 18, .3);
    border-radius: 8px; font: inherit; font-size: .7rem; font-weight: 700; color: var(--hh-charcoal, #121212); padding: 0; box-shadow: none; cursor: pointer; }
  .hcs-dtab b { font-size: 1.05rem; }
  .hcs-dtab.on { border: 3px solid var(--hh-red, #E4002B); color: var(--hh-red, #E4002B); }
  .hcs-mday-h { font-size: 1.15rem; margin: .3rem 0; }
  .hcs-msum { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .85rem; margin: .25rem 0 .45rem; }
  .hcs-dp h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; margin: .85rem 0 .25rem; color: var(--hh-muted, #5a5a5a); font-weight: 800; }
  .hcs-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name time" "role time" "flag flag"; gap: .1rem .6rem; width: 100%; box-sizing: border-box;
    text-align: left; background: #fff; border: 1px solid rgba(18, 18, 18, .22); border-left-width: 5px; border-radius: 10px; padding: .55rem .7rem; margin: .35rem 0; min-height: 56px;
    font: inherit; color: var(--hh-charcoal, #121212); box-shadow: none; cursor: default; }
  button.hcs-card { cursor: pointer; }
  button.hcs-card:hover { background: #fff; transform: none; }
  .hcs-cname { grid-area: name; font-weight: 800; overflow-wrap: anywhere; }
  .hcs-crole { grid-area: role; font-size: .8rem; color: var(--hh-muted, #5a5a5a); font-weight: 600; }
  .hcs-ctime { grid-area: time; align-self: center; text-align: right; white-space: nowrap; font-weight: 800; }
  .hcs-ctime small { display: block; font-weight: 600; }
  .hcs-cflag { grid-area: flag; font-size: .76rem; }
  .hcs-mmiss { border: 2px solid #b0001f; color: #8a0018; border-radius: 10px; padding: .55rem .7rem; font-weight: 600; margin: .5rem 0; background: #fff; }
  .hcs-mh { font-size: 1.1rem; margin: .9rem 0 .2rem; }
  .hcs-msub { margin: 0 0 .3rem; font-size: .85rem; }
  .hcs-mylist, .hcs-mreqs { list-style: none; padding: 0; margin: .3rem 0; }
  .hcs-myday, .hcs-mreq { border: 1px solid rgba(18, 18, 18, .22); border-radius: 10px; padding: .55rem .7rem; margin: .4rem 0; background: #fff; display: grid; gap: .25rem; }
  .hcs-myday.today { border: 2.5px solid var(--hh-charcoal, #121212); }
  .hcs-mydl { font-size: .85rem; }
  .hcs-mytime { font-size: 1.05rem; }
  .hcs-mtoggle { display: flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 700; font-size: .9rem; }
  .hcs-mtoggle input, .hcs-sheet input[type=radio], .hcs-sheet input[type=checkbox] { width: 22px; height: 22px; margin: 0; }
  .hcs-mlabel { display: flex; flex-direction: column; gap: .2rem; font-size: .78rem; font-weight: 700; margin-top: .35rem; }
  .hcs-mlabel input, .hcs-mlabel select { min-height: 44px; font: inherit; font-size: 16px; border: 2px solid var(--hh-charcoal, #121212); border-radius: 8px; padding: 0 .5rem; background: #fff; }
  .hcs-mempty { margin: 1rem 0; }
  .hcs-mtools { margin: .3rem 0 .2rem; }
  /* bottom sheets (full width). The backdrop is transparent (no tint over the page); the sheet has a shadow + charcoal top edge. */
  .hcs-sheet-wrap { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; background: transparent; }
  .hcs-sheet { width: 100%; max-height: 88vh; overflow-y: auto; background: #fff; border-top: 4px solid var(--hh-charcoal, #121212); border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, .28); padding: .35rem 1rem calc(1rem + env(safe-area-inset-bottom)); box-sizing: border-box; }
  .hcs-grab { width: 44px; height: 5px; border-radius: 3px; background: #b5b5b5; margin: .25rem auto .55rem; }
  .hcs-sheet h2 { font-size: 1.1rem; margin: 0 0 .4rem; }
  .hcs-sheet .hcs-fields, .hcs-sheet .hcs-bgrid { display: flex; flex-direction: column; align-items: stretch; gap: .2rem; }
  .hcs-sheet label { display: flex; flex-direction: column; gap: .2rem; font-size: .76rem; font-weight: 800; margin: .3rem 0; text-transform: none; letter-spacing: 0; }
  .hcs-sheet label:has(> input[type=radio]), .hcs-sheet label:has(> input[type=checkbox]) { flex-direction: row; align-items: center; gap: .55rem; min-height: 44px; font-size: .92rem; }
  .hcs-sheet input[type=text], .hcs-sheet input[type=date], .hcs-sheet input[type=time], .hcs-sheet select { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; font: inherit;
    font-size: 16px; font-weight: 600; border: 2px solid var(--hh-charcoal, #121212); border-radius: 8px; padding: .3rem .55rem; background: #fff; color: var(--hh-charcoal, #121212); }
  .hcs-sheet .hcs-form .hcs-wide input, .hcs-sheetform .hcs-wide input { min-width: 0; }
  .hcs-sheet .hcs-actions { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-top: .6rem; }
  .hcs-sheet .hcs-act, .hcs-sheet .hcs-act.hcs-sm { min-height: 44px; width: 100%; font-size: .95rem; padding: .4rem .8rem; border-radius: 10px; }
  .hcs-sheet .hcs-bstat { grid-template-columns: 1fr 1fr; }
  .hcs-sheet .hcs-bstat > span { grid-column: 1 / -1; }
  .hcs-sheet .hcs-nwfill label { min-height: 44px; }
  .hcs-sheetform.panel, .hcs-sheet .panel { border: 0; padding: 0; box-shadow: none; margin: 0; }
  #hcmScheduling .hcs-m + .hcs-sheet-wrap, #hcmScheduling .hcs-m { min-width: 0; }
}
.hcs-bform [hidden], .hcs-sheet [hidden] { display: none !important; }
/* v1.5 fiscal-week labels */
.hcs-fflag { margin: .2rem 0 .5rem; }
/* no blue: native radios / checkboxes in the schedule use charcoal instead of the browser's blue accent */
#hcmScheduling input[type=radio], #hcmScheduling input[type=checkbox], .hcs-sheet input[type=radio], .hcs-sheet input[type=checkbox] { accent-color: var(--hh-charcoal, #121212); }

/* v1.6.2 company overview (ALL stores). Howie's style: ink on white, no blue, status = text colour only. */
.hco .hco-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.hco .hco-week { font: inherit; padding: .2rem .4rem; border: 1.5px solid var(--hh-charcoal, #121212); border-radius: 8px; background: #fff; max-width: 100%; }
.hco .hco-kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .6rem; }
.hco .hco-kpi .value { font-size: 1.55rem; overflow-wrap: anywhere; }
.hco .hco-kpi .sub { overflow-wrap: anywhere; }
.hco .hco-stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .6rem; }
.hco .hco-store { cursor: pointer; }
.hco .hco-store:focus-visible { outline: 3px solid var(--hh-red, #E4002B); outline-offset: 2px; }
.hco .hco-table { width: 100%; table-layout: auto; }
.hco .hco-table td, .hco .hco-table th { white-space: nowrap; }
.hco .hco-total td { border-top: 2px solid var(--hh-charcoal, #121212); }
.hco .hco-grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
.hco .hco-grid th, .hco .hco-grid td { width: 11.4%; padding: .25rem .35rem; vertical-align: top; font-size: .82rem; border-bottom: 1px solid rgba(18, 18, 18, .12); overflow-wrap: anywhere; }
.hco .hco-grid .hco-name { width: 20.2%; }
.hco .hco-grid th.hco-today { color: var(--hh-red, #E4002B); }
.hco .hco-lt { font-size: .74rem; }
.hco .hco-sec { border-top: 2px solid var(--hh-charcoal, #121212); }
.hco .hco-sec > summary { cursor: pointer; padding: .4rem .2rem; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.hco .hco-sec > summary .hco-drill { margin-left: auto; }
.hco .hco-alerts ul { max-height: 22rem; overflow: auto; }
.hco-m .hco-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hco-m .hco-stores { grid-template-columns: 1fr; }
.hco-m .hco-mstore h3 { display: flex; gap: .5rem; align-items: baseline; margin: .6rem 0 .3rem; font-size: 1.05rem; }
.hco-m .hco-mstore h3 a { margin-left: auto; }
.hco-m .hco-mcard { text-transform: none; letter-spacing: normal; }
@media (max-width: 1280px) { .hco .hco-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hco .hco-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hco .hco-stores { grid-template-columns: 1fr; } }
.hco a, .hco a:visited { color: var(--hh-charcoal, #121212); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.hco a:hover { color: var(--hh-red, #E4002B); }
/* ---- v1.6.4 unavailable days: hatched "OFF – approved" / "OFF – every Wed" cells (all views), GM mark/clear, open-or-reassign prompt ---- */
.hcs-unavcell { background-image: repeating-linear-gradient(135deg, rgba(18, 18, 18, .10) 0 2px, transparent 2px 7px); }
.hcs-unav { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--hh-charcoal, #121212); border: 1px solid rgba(18, 18, 18, .45); border-radius: 4px; padding: 0 .3rem; background: #fff; white-space: nowrap; }
.hcs-unav.hcs-sm { font-size: .64rem; display: block; margin-top: .15rem; width: max-content; }
.hcs-key { display: inline-block; padding: .05rem .3rem; margin-left: .9rem; }
.hcs-uadd, .hcs-uclear { opacity: 0; background: transparent; border: 1px dashed rgba(18, 18, 18, .4); border-radius: 6px; width: 1.6rem; height: 1.6rem; padding: 0; margin-left: .15rem; font-size: .8rem; cursor: pointer; color: var(--hh-muted, #5a5a5a); }
.hcs-uclear { opacity: .8; border-style: solid; }
table.hcs-grid tr:hover .hcs-uadd, .hcs-uadd:focus-visible, .hcs-uclear:hover { opacity: 1; color: var(--hh-charcoal, #121212); }
.hcs-unavlist { list-style: none; margin: .3rem 0; padding: 0; }
.hcs-unavlist li { padding: .25rem 0; border-bottom: 1px solid rgba(18, 18, 18, .08); }
.hcs-unavform { margin-top: .5rem; }
.hcs-reslist { list-style: none; padding: 0; margin: .4rem 0; }
.hcs-resrow { padding: .45rem 0; border-bottom: 1px solid rgba(18, 18, 18, .1); display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.hcs-resrow label { display: inline-flex; gap: .35rem; align-items: center; font-weight: 600; }
@media (min-width: 601px) {
  .hcs-sheet-wrap { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: transparent; }
  .hcs-sheet { width: min(680px, 94vw); max-height: 86vh; overflow-y: auto; background: #fff; border: 1px solid rgba(18, 18, 18, .2); border-top: 4px solid var(--hh-charcoal, #121212); border-radius: 10px; padding: 1rem 1.2rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
  .hcs-sheet .hcs-grab { display: none; }
}

/* v1.6.5 week picker: Current week + dropdown (upcoming through 12/31 · archive · admin older weeks). Text colour only, no fills. */
.hcs-wkpicker { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hcs-wkpick { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #121212; border-radius: 6px; background: #fff; max-width: 100%; }
.hcs-arch { margin: 4px 0 8px; }
.hcs-skel td.hcs-name { color: #5a5a5a; }
.hcs-rpanel h2, .hcs-mroster h2 { margin-top: 0; }
.hcs-rprev th, .hcs-rprev td { font-size: 12px; padding: 4px 6px; white-space: nowrap; }
.hcs-borrow summary { cursor: pointer; font-weight: 700; margin: 8px 0 4px; }
.hcs-mroster { margin: 10px 0; overflow-x: auto; }
@media (max-width: 600px) { .hcs-mbar .hcs-mweek { flex: 1 1 auto; min-width: 0; } }
/* v1.6.6.1 week dropdown: one list, newest first, opens on the current week. No tinted backgrounds, no blue (site palette). */
.hcs-wkdd { position: relative; display: inline-block; max-width: 100%; }
.hcs-wkddbtn { cursor: pointer; text-align: left; color: #121212; background: #fff; box-shadow: none; text-transform: none; letter-spacing: normal; font-weight: 600; }
.hcs-wkddbtn:hover { background: #fff; transform: none; }
.hcs-wklist, .hcs-wklist * { text-transform: none; letter-spacing: normal; }
.hcs-wklist .hcs-wkgrp { text-transform: uppercase; letter-spacing: .05em; }
.hcs-wklist { position: absolute; z-index: 80; left: 0; top: calc(100% + 4px); min-width: 22rem; max-width: 92vw; max-height: 22rem; overflow-y: auto; margin: 0; padding: 4px 0;
  list-style: none; background: #fff; border: 1.5px solid #121212; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.hcs-wklist[hidden] { display: none; }
.hcs-wkgrp { padding: 6px 10px 2px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #5a5a5a; border-top: 1px solid rgba(18, 18, 18, .15); }
.hcs-wkgrp:first-child { border-top: 0; }
.hcs-wkopt { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; font-size: 13px; cursor: pointer; border-left: 4px solid transparent; outline: none; }
.hcs-wkopt:hover, .hcs-wkopt:focus { text-decoration: underline; }
.hcs-wkopt:focus-visible { outline: 2px solid #121212; outline-offset: -2px; }
.hcs-wkopt.cur { font-weight: 800; border-left-color: var(--hh-red, #E4002B); }
.hcs-wkopt.sel .hcs-wklbl { font-weight: 800; }
.hcs-wkck { width: 1em; flex: 0 0 1em; font-weight: 800; }
.hcs-wkcurtag { margin-left: auto; padding: 0 5px; border: 1.5px solid var(--hh-red, #E4002B); border-radius: 4px; color: var(--hh-red, #E4002B); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hcs-mweek option.hcs-optcur { font-weight: 800; }

/* 2.8.17.2 Schedule Flags: one plain card at the bottom (no colours here: text colours come from hcs-bad / hcs-warn / hcs-muted) */
.hcs-flags h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; margin: .75rem 0 .2rem; font-weight: 800; }
.hcs-flags h2 + h3 { margin-top: .25rem; }
.hcs-flags ul.hcs-checks li { font-weight: 600; }
.hcs-flags .hcs-flagsnone { margin: .2rem 0; font-size: .85rem; }
/* 2.8.17.2: phone week select in the red text style when it's on the current week (beats .hcs-mbar select's colour) */
.hcs-mbar select.hcs-mweek.hcs-bad { color: #b0001f; }

/* 2.8.17.2 "Build a new week?" dialog (desktop + phone): plain card, text colours only; dark twin from gen_dark_theme.py */
.hcs-dlg-bg { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; background: transparent; padding: 1rem; }
.hcs-dlg { width: min(460px, 100%); background: #fff; color: #121212; border: 2px solid #121212; border-radius: 10px; padding: 1rem 1.1rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.hcs-dlg h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.hcs-dlg p { font-size: .85rem; margin: .3rem 0; }
.hcs-dlg-acts { display: flex; flex-wrap: wrap; gap: .45rem; margin: .7rem 0 .3rem; }
.hcs-dlg-acts .hcs-act { min-height: 40px; }
.hcs-dlg-acts .hcs-act[disabled] { opacity: .45; cursor: not-allowed; }
.hcs-dlg-err:empty { display: none; }
.hcs-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; color: inherit; }
@media (max-width: 600px) { .hcs-dlg-acts .hcs-act { flex: 1 1 100%; min-height: 44px; font-size: 16px; } }
