/* /Components/MyTimeOffList.razor.rz.scp.css */
/* Cancelled requests stay listed for history but step back: muted text, and
   the status chip still says "Cancelled", so it never relies on the tint. */
tr.cancelled td[b-rk4xxril0k],
tr.cancelled td a[b-rk4xxril0k] {
    color: var(--muted);
}

/* ::deep so it also reaches the chips StatusChip and CalendarChip render. */
td[b-rk4xxril0k]  .chip { white-space: nowrap; }
/* /Components/RichTextEditor.razor.rz.scp.css */
/* The request form's rich-text editors (Covering, Live items, What to expect).
   Matches .field inputs in app.css: same border, radius, focus ring and type,
   so each reads as one more field rather than a widget. */

.rte[b-qz406qrt3k] {
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-md);
    background: var(--panel);
    display: flex;
    flex-direction: column;
}

.rte:focus-within[b-qz406qrt3k] {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.rte-toolbar[b-qz406qrt3k] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    padding: var(--space-1);
    border-bottom: 1px solid var(--rule);
    background: var(--bg-alt);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.rte-toolbar .btn-icon[b-qz406qrt3k] {
    font-size: 13px;
    padding: 6px 10px;
}

.g-bold[b-qz406qrt3k] { font-weight: 700; }
.g-italic[b-qz406qrt3k] { font-style: italic; }
.g-underline[b-qz406qrt3k] { text-decoration: underline; }

.rte-body[b-qz406qrt3k] {
    /* Three of these sit on one form, so each starts short and grows. */
    min-height: 112px;
    max-height: 420px;
    overflow-y: auto;
    padding: 10px 12px;
    font-family: var(--qnw-body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
    outline: none;
    overflow-wrap: anywhere;
}

.rte-body:empty[b-qz406qrt3k]::before {
    content: attr(data-placeholder);
    color: var(--faint);
    pointer-events: none;
}

/* The editor's content is created by the browser, not Blazor, so it carries no
   scope attribute; ::deep reaches it. */
.rte-body[b-qz406qrt3k]  ul,
.rte-body[b-qz406qrt3k]  ol {
    margin: var(--space-1) 0;
    padding-left: var(--space-5);
}

.rte-body[b-qz406qrt3k]  p {
    margin: 0 0 var(--space-2);
}
/* /Components/TeamCalendar.razor.rz.scp.css */
/* The two-tetrad team calendar. Roles only: type colour is a chart series
   token (fixed per type, never cycled), used as a tint and a left edge. Text
   always wears ink tokens, never the series colour (brand chart rule), and a
   status is never colour alone: Needs discussion adds a dashed outline and a
   "?". AA holds in both themes because the tint is mixed into --panel and the
   text is --ink / --ink-strong on top of it. */

.cal-toolbar[b-9aw7zk0ghf] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
}

.cal-title[b-9aw7zk0ghf] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-nav[b-9aw7zk0ghf] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.cal-nav .btn[b-9aw7zk0ghf] { padding: 9px 14px; }

/* --------------------------------------------------------------- types */
/* One hook per type, shared by bars, legend swatches and agenda rows. */

.type-disconnected[b-9aw7zk0ghf] { --type-color: var(--series-1); }
.type-parttime[b-9aw7zk0ghf] { --type-color: var(--series-2); }
.type-limited[b-9aw7zk0ghf] { --type-color: var(--series-3); }
.type-unknown[b-9aw7zk0ghf] { --type-color: var(--faint); }

/* -------------------------------------------------------------- legend */

.legend[b-9aw7zk0ghf] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    font-size: 13px;
    color: var(--ink);
}

.legend li[b-9aw7zk0ghf] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.swatch[b-9aw7zk0ghf] {
    width: 22px;
    height: 14px;
    border-radius: var(--radius-sm);
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--type-color) 18%, var(--panel));
    border: 1px solid transparent;
    border-left: 3px solid var(--type-color);
}

/* Status swatches carry no type: an outline on the panel, solid or dashed. */
.swatch-status[b-9aw7zk0ghf] {
    background: var(--panel);
    border: 1px solid var(--rule-strong);
}

.swatch-discuss[b-9aw7zk0ghf] {
    border: 1px dashed var(--warn);
    font-family: var(--qnw-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    color: var(--ink-strong);
}

/* ---------------------------------------------------------------- grid */

.cal[b-9aw7zk0ghf] {
    --wk-col: 76px;
    --lane-h: 26px;
    /* A fixed height, not auto: every item in the first row also spans the
       lanes below it, so an auto row collapses to nothing and the bars ride
       up over the day numbers. */
    --daynum-h: 24px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--panel);
}

.cal-head[b-9aw7zk0ghf],
.wk-row[b-9aw7zk0ghf] {
    display: grid;
    grid-template-columns: var(--wk-col) repeat(7, minmax(0, 1fr));
}

/* On --panel, not --bg-alt: --muted on --bg-alt is 4.16:1, short of AA for
   10.5px labels; on --panel it is 4.97:1. */
.cal-head[b-9aw7zk0ghf] {
    background: var(--panel);
    border-bottom: 1px solid var(--rule);
}

.cal-head span[b-9aw7zk0ghf] {
    font-family: var(--qnw-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 6px;
    border-left: 1px solid var(--rule);
}

.cal-head .cal-head-wk[b-9aw7zk0ghf] { border-left: 0; }

.wk-row[b-9aw7zk0ghf] {
    grid-auto-rows: var(--lane-h);
    row-gap: 2px;
    border-top: 1px solid var(--rule);
}

/* A tetrad starts here: a heavier rule, plus the "Tetrad N" label. */
.wk-row.tetrad-start[b-9aw7zk0ghf] { border-top: 2px solid var(--rule-strong); }

/* The header row already draws the line above the first week. */
.cal-head + .wk-row[b-9aw7zk0ghf] { border-top: 0; }

.wk-cell[b-9aw7zk0ghf] {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
}

.wk-num[b-9aw7zk0ghf] {
    font-family: var(--qnw-mono);
    font-size: 12.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--ink-strong);
    white-space: nowrap;
}

.wk-tetrad[b-9aw7zk0ghf] {
    font-family: var(--qnw-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.3;
}

.day[b-9aw7zk0ghf] {
    border-left: 1px solid var(--rule);
    padding: 4px 6px 0;
    min-width: 0;
}

.day.weekend[b-9aw7zk0ghf] {
    background: color-mix(in srgb, var(--bg-alt) 70%, var(--panel));
}

.daynum[b-9aw7zk0ghf] {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-1);
    font-family: var(--qnw-mono);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    line-height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
}

/* --muted on the weekend tint is 4.40:1, under AA; --ink is 8.5:1. Before
   .day.today so today's accent still wins on a weekend. */
.day.weekend .daynum[b-9aw7zk0ghf] { color: var(--ink); }

.month[b-9aw7zk0ghf] {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-strong);
}

.day.today .daynum[b-9aw7zk0ghf] {
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 500;
}

.day.today .daynum .month[b-9aw7zk0ghf] { color: var(--accent-contrast); }

/* ----------------------------------------------------------------- bars */

.bar[b-9aw7zk0ghf] {
    position: relative;
    z-index: 1;
    display: block;
    min-width: 0;
    margin: 0 3px;
    padding: 0 6px;
    line-height: calc(var(--lane-h) - 2px);
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: color-mix(in srgb, var(--type-color) 16%, var(--panel));
    border: 1px solid transparent;
    border-left: 3px solid var(--type-color);
    border-radius: var(--radius-sm);
}

.bar:hover[b-9aw7zk0ghf] {
    background: color-mix(in srgb, var(--type-color) 28%, var(--panel));
}

.bar-name[b-9aw7zk0ghf] {
    font-weight: 500;
    color: var(--ink-strong);
}

/* Needs discussion: dashed outline and a "?" ahead of the name. */
.bar.discuss[b-9aw7zk0ghf] {
    border-top: 1px dashed var(--warn);
    border-right: 1px dashed var(--warn);
    border-bottom: 1px dashed var(--warn);
}

.bar-flag[b-9aw7zk0ghf] {
    font-family: var(--qnw-mono);
    font-weight: 500;
    color: var(--ink-strong);
    margin-right: var(--space-1);
}

/* Continues from the week before, or into the week after: that edge runs to
   the grid line square, so the bar reads as one absence across two rows. */
.bar.cont-before[b-9aw7zk0ghf] {
    margin-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.bar.cont-after[b-9aw7zk0ghf] {
    margin-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.bar.discuss.cont-after[b-9aw7zk0ghf] { border-right-style: none; }

/* --------------------------------------------------------------- agenda */
/* Phones get one list per week instead of the grid. */

.agenda[b-9aw7zk0ghf] {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: var(--space-3);
}

.agenda-week[b-9aw7zk0ghf] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--rule);
}

.agenda-week.tetrad-start[b-9aw7zk0ghf] { border-top: 2px solid var(--rule-strong); }

.agenda-head[b-9aw7zk0ghf] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2);
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.agenda-list[b-9aw7zk0ghf] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.agenda-item[b-9aw7zk0ghf] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--type-color) 14%, var(--panel));
    border: 1px solid transparent;
    border-left: 3px solid var(--type-color);
}

.agenda-item.discuss[b-9aw7zk0ghf] {
    border-top: 1px dashed var(--warn);
    border-right: 1px dashed var(--warn);
    border-bottom: 1px dashed var(--warn);
}

.agenda-item a[b-9aw7zk0ghf] {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0 var(--space-2);
    color: var(--ink);
    text-decoration: none;
    flex: 1 1 12rem;
    min-width: 0;
}

.agenda-name[b-9aw7zk0ghf] {
    font-weight: 600;
    color: var(--ink-strong);
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

.agenda-type[b-9aw7zk0ghf] { font-size: 14px; }

@media (max-width: 640px) {
    .cal[b-9aw7zk0ghf] { display: none; }
    .agenda[b-9aw7zk0ghf] { display: flex; }
}
/* /Components/TimeOffForm.razor.rz.scp.css */
.timeoff-form[b-ckq2b5sdir] {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-grid[b-ckq2b5sdir] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3) var(--space-4);
}

/* The grid sets the width; drop the global .field minimum so two columns fit
   on a narrow screen before wrapping. */
.form-grid .field[b-ckq2b5sdir] { min-width: 0; }

/* One-line fields stay a readable width on a wide screen. */
.timeoff-form > .field[b-ckq2b5sdir] { max-width: 720px; }

.span-note[b-ckq2b5sdir] { margin-top: calc(var(--space-2) * -1); }

/* --------------------------------------------------------- coverage check */
/* A quiet surface, not a card: the status chip and the overlap chips carry
   the meaning, each a dot plus a word. */

.preview[b-ckq2b5sdir] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg);
    border: 1px solid var(--rule);
    border-left: 2px solid var(--note);
    border-radius: var(--radius-md);
}

.preview-status[b-ckq2b5sdir] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-strong);
}

.reasons[b-ckq2b5sdir] {
    margin: 0;
    padding-left: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.overlaps[b-ckq2b5sdir] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.overlaps li[b-ckq2b5sdir] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-3);
    font-size: 14px;
}

.overlap-name[b-ckq2b5sdir] {
    font-weight: 600;
    color: var(--ink-strong);
}

.same-leader[b-ckq2b5sdir] {
    font-family: var(--qnw-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 3px 8px;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-pill);
}

/* ----------------------------------------------------------------- links */

.links[b-ckq2b5sdir] {
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4) var(--space-4);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}

.links legend[b-ckq2b5sdir] {
    font-family: var(--qnw-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    /* --muted, not --faint: --faint at 10.5px is 3.3:1 on --panel, under AA. */
    color: var(--muted);
    padding: 0 var(--space-1);
}

.link-row[b-ckq2b5sdir] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
    gap: var(--space-3);
    align-items: end;
}

.link-row .field[b-ckq2b5sdir] { min-width: 0; }

@media (max-width: 600px) {
    .link-row[b-ckq2b5sdir] { grid-template-columns: 1fr; }
    .link-row .remove[b-ckq2b5sdir] { justify-self: start; }
}
/* /Components/UpcomingTable.razor.rz.scp.css */
.upcoming-head[b-6s9pecuu6q] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Names are the way into a request; keep them on one line where they fit. */
td.name[b-6s9pecuu6q] { white-space: nowrap; font-weight: 500; }

/* ::deep so it also reaches the chip StatusChip renders. */
td[b-6s9pecuu6q]  .chip { white-space: nowrap; }
/* /Layout/MainLayout.razor.rz.scp.css */
/* Scoped to MainLayout. The topbar reuses the .mark badge from app.css at a
   smaller size; the attribute selector Blazor generates for scoped CSS
   outranks the global rule, so no !important is needed.

   This file also keeps the CSS-isolation bundle (Qnw.Web.styles.css, which
   index.html links) non-empty. The Razor SDK emits that bundle only when at
   least one .razor.css exists -- with none, index.html links a file that is
   never published. */

.mark[b-yh4fjye5hg] {
    width: 28px;
    height: auto;
    padding: 3px;
}

.topbar-title[b-yh4fjye5hg] {
    font-weight: 600;
    color: var(--ink-strong);
    white-space: nowrap;
}

/* The two-tetrad calendar needs eight columns; 920px (app.css) squeezes a
   one-day bar to a few characters. Prose keeps its own measure (t-body). */
.content[b-yh4fjye5hg] {
    max-width: 1120px;
}

/* ------------------------------------------------------------------ nav */
/* NavLink renders its own <a>, which carries no MainLayout scope attribute,
   so the link rules reach it through ::deep. The active link is marked three
   ways: aria-current="page" (NavLink sets it), a fill, and an accent rule
   under the word, so it never relies on colour alone. */

.nav[b-yh4fjye5hg] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    min-width: 0;
}

.nav[b-yh4fjye5hg]  .nav-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.nav[b-yh4fjye5hg]  .nav-link:hover {
    color: var(--ink);
    background: var(--bg-alt);
}

.nav[b-yh4fjye5hg]  .nav-link.active {
    color: var(--ink-strong);
    background: var(--bg-alt);
    box-shadow: inset 0 -2px 0 var(--accent);
}

/* Phone and narrow tablet: the nav takes its own row under the title, and its
   links wrap rather than push the page sideways. */
@media (max-width: 760px) {
    .topbar[b-yh4fjye5hg] {
        flex-wrap: wrap;
        row-gap: var(--space-1);
    }

    .nav[b-yh4fjye5hg] {
        order: 10;
        flex-basis: 100%;
    }
}
/* /Pages/Roster.razor.rz.scp.css */
/* Row headers carry the person's name; keep them reading as body text, not as
   the mono column labels in the header row. */
th.person[b-rbmr3vi8gd] {
    font-family: var(--qnw-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-strong);
    background: transparent;
    white-space: nowrap;
}

td.upn[b-rbmr3vi8gd] {
    font-family: var(--qnw-mono);
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

td[b-rbmr3vi8gd],
th.person[b-rbmr3vi8gd] {
    vertical-align: middle;
}

/* Matches .field select in app.css; the roster's selects sit in table cells,
   not in .field wrappers. */
.leader[b-rbmr3vi8gd] {
    font-family: var(--qnw-body);
    font-size: 14px;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-md);
    padding: 7px 10px;
    min-width: 180px;
}

.leader:focus[b-rbmr3vi8gd] {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.active-check[b-rbmr3vi8gd] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.active-check input[b-rbmr3vi8gd] { accent-color: var(--accent); margin: 0; }

.save-cell[b-rbmr3vi8gd] {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.save-cell .btn[b-rbmr3vi8gd] { padding: 8px 14px; white-space: nowrap; }

.row-status[b-rbmr3vi8gd] {
    font-size: 13px;
    min-width: 0;
}

.row-error[b-rbmr3vi8gd] { color: var(--stop); }

tr.inactive th.person[b-rbmr3vi8gd],
tr.inactive td.upn[b-rbmr3vi8gd] {
    color: var(--muted);
}
/* /Pages/TimeOffDetail.razor.rz.scp.css */
.dates[b-uhedl5myvo] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-3);
    margin: 0;
}

.dates .t-data[b-uhedl5myvo] {
    font-size: 15px;
    color: var(--ink-strong);
}

.status-line[b-uhedl5myvo],
.calendar-line[b-uhedl5myvo] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
}

.reasons[b-uhedl5myvo] {
    margin: 0;
    padding-left: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.facts[b-uhedl5myvo] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3) var(--space-4);
    margin: 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--rule);
}

.facts div[b-uhedl5myvo] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.facts dt[b-uhedl5myvo] {
    font-family: var(--qnw-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    /* --muted, not --faint: --faint at 10.5px is 3.3:1 on --panel, under AA. */
    color: var(--muted);
}

.facts dd[b-uhedl5myvo] {
    margin: 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* Rich text arrives as markup from the API, so it carries no scope attribute;
   ::deep reaches it. Measure kept near 70 characters for reading. */
.rich[b-uhedl5myvo] {
    max-width: 70ch;
    overflow-wrap: anywhere;
}

.rich[b-uhedl5myvo]  p { margin: 0 0 var(--space-2); }
.rich[b-uhedl5myvo]  p:last-child { margin-bottom: 0; }

.rich[b-uhedl5myvo]  ul,
.rich[b-uhedl5myvo]  ol {
    margin: 0 0 var(--space-2);
    padding-left: var(--space-5);
}

.link-list[b-uhedl5myvo] {
    margin: 0;
    padding-left: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    overflow-wrap: anywhere;
}

.stamps .t-data[b-uhedl5myvo] { font-size: 13px; }

/* A cancelled request stays readable but steps back. */
.is-cancelled .dates .t-data[b-uhedl5myvo],
.is-cancelled .facts dd[b-uhedl5myvo] {
    color: var(--muted);
}

.confirm[b-uhedl5myvo] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
