/* HR roster + time off — RosterView (.hrr*), TimeOffView (.hrl*) and MyTimeOffCard (.hrl-mine*).

   Promoted from the salon's Shifts.razor.css, TimeOff.razor.css and the time-off rules in
   Tech.razor.css. Those were SCOPED css; scoped .razor.css in a referenced project never reaches a
   head's bundle, so here they are one served sheet the head links:
       <link rel="stylesheet" href="_content/SPC.Blazor.HR.Touch/hr-roster.css" />
   Every selector carries the hrr / hrl prefix, because as a global sheet a bare .sheet, .bulk or
   .badge would land on whatever else the head calls that.

   Colour comes from the --touch-* tokens every head defines on its touch shell, so the salon keeps
   slate-and-pink, the café and the restaurant their espresso, day and night. The literal after
   each comma is only the fallback for a host that defines none (the salon's own values). The
   frosted surfaces come from .touch-glass--solid in the markup, which each head paints; the rules
   below only give them shape, and a plain fallback background for a host without it.

   One rule decides the colour on the roster: ACCENT IS SELECTION. The ticked rows, the sheet's day
   chips and every button that writes something wear the head's accent; the roster itself is drawn
   in neutrals, so a filled cell means "works" and never has to compete with a highlight for the
   same meaning. A grid of forty people tinted with the accent for data would leave the operator
   unable to see which six they had just ticked. A staged plan is violet for the same reason: it is
   "you are looking at the future", not "you picked this". */

/* ── Local tokens ─────────────────────────────────────────────────────────────
   On every root these screens draw — the two page shells, the card, and the overlays, which render
   outside the page's own column. */
.hrr-shell, .hrl-shell, .hrl-mine, .hrr-modal, .hrr-bulk {
    /* The surface under a sticky heading or name cell. It must hide the rows scrolling beneath it,
       so it is the control fill (white in the salon) rather than the see-through panel. A head whose
       controls are translucent gets the blur on those cells to finish the job — or sets this. */
    /* OPAQUE ground for everything that floats over live content — the sheets, the bulk bar, the
       pinned header row and name column. Never touch-glass: in a dark palette the rows behind show
       straight through a translucent popup. The café's page-top cream (which flips in its dark
       theme) with a touch of ink; white where a head has no such token. */
    --hrr-solid: color-mix(in srgb, var(--touch-ink, #1f2024) 7%, var(--cafe-cream-1, #fff));
    --hrr-ok: var(--touch-ok, #1a7f4f);
    --hrr-ok-bg: var(--touch-ok-bg, rgba(26, 127, 79, 0.12));
    --hrr-danger: var(--touch-danger, #b3261e);
    --hrr-danger-bg: color-mix(in srgb, var(--hrr-danger) 10%, transparent);
    --hrr-warn: #96601c;
    --hrr-warn-bg: rgba(255, 176, 32, 0.16);
    --hrr-plan: #7a5cc2;
    --hrr-plan-bg: color-mix(in srgb, var(--hrr-plan) 10%, transparent);
    --hrr-fill: var(--touch-accent-fill, var(--touch-accent, var(--mud-palette-primary, #4b5563)));
}

/* ═════════════════════════════════ ROSTER ═════════════════════════════════ */

/* The page: exactly one viewport, with the roster card the only thing that scrolls. min-height
   would not do — a flex item can grow past a minimum, so the card simply expanded to all 2780px of
   a forty-name roster and the whole page scrolled instead of the card. */
.hrr-shell {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--touch-ink, #1f2024);
    --tph-ink: var(--touch-ink, #1f2024);
    --tph-muted: var(--touch-muted, #6b6f76);
}
.hrr-page {
    width: 100%;
    max-width: var(--tph-page-max, 1536px);
    margin: 0 auto;
    padding: 14px 1rem 24px;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
/* In a column of fixed height every child is shrinkable by default, and the header was the one
   that gave: it lost 21px and its subtitle spilled out of its own box. Only the roster flexes. */
.hrr-page > .form-page-header { flex: 0 0 auto; }

/* The roster itself: hugging the grid and centred, so a wide monitor puts equal air either side
   instead of pinning a narrow grid to the left with the slack piled up on the right. Capped, so a
   wide grid scrolls inside its own card instead of pushing the page sideways. */
.hrr {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    align-self: center;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.hrr > *:not(.hrr__scroll) { flex: 0 0 auto; }

/* Clear of the selection bar, which is fixed and would otherwise cover the last rows — the ones a
   long roster is most likely to be scrolled to when the bar appears. */
.hrr.has-bulk { padding-bottom: 168px; }

.hrr__status { display: block; color: var(--hrr-ok); font-weight: 600; font-size: 0.95rem; }

.hrr__hint { color: var(--touch-muted, #6b6f76); padding: 16px 2px; margin: 0; }
.hrr__hint--lead { padding-top: 0; }
.hrr__hint--how { padding-top: 0; }
.hrr__link {
    background: none; border: 0; padding: 0 0 0 4px; font: inherit; font-weight: 600;
    color: var(--touch-accent, #b0304a); text-decoration: underline; cursor: pointer;
}

/* ── Tabs ── */
.hrr__tabs { display: flex; gap: 8px; }
.hrr__tab {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px; border-radius: 999px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff);
    color: var(--touch-muted, #6b6f76); font-size: 1rem; font-weight: 700;
    cursor: pointer; touch-action: manipulation;
}
.hrr__tab.is-on { border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }
.hrr__tab-n {
    min-width: 22px; padding: 0 6px; border-radius: 999px; box-sizing: border-box;
    background: var(--touch-tile-alt, #efedf3); color: var(--touch-muted, #6b6f76);
    font-size: 0.78rem; font-weight: 800; line-height: 20px; text-align: center;
}
.hrr__tab.is-on .hrr__tab-n { background: var(--touch-accent-soft, color-mix(in srgb, var(--touch-accent, var(--mud-palette-primary, #4b5563)) 12%, transparent)); color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }

/* ── Search + filters ── */
.hrr__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.hrr__search {
    -webkit-appearance: none; appearance: none; font: inherit;
    flex: 1 1 240px; max-width: 340px; min-height: 48px;
    padding: 0 16px; border-radius: 12px; box-sizing: border-box;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-ink, #1f2024);
    font-size: 1rem;
}
.hrr__search::placeholder { color: var(--touch-hint, #9aa0ad); }
.hrr__search:focus { outline: none; border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }

.hrr__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.hrr__filter {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-muted, #6b6f76);
    font-size: 0.95rem; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.hrr__filter.is-on { border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); background: var(--touch-accent-soft, color-mix(in srgb, var(--touch-accent, var(--mud-palette-primary, #4b5563)) 6%, transparent)); }
.hrr__filter-n { color: var(--touch-hint, #9aa0ad); font-weight: 800; font-size: 0.85rem; }
.hrr__filter.is-on .hrr__filter-n { color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }

/* ── The grid ── */
/* Scrolls inside its own box, headings pinned. A forty-row roster is read by scrolling, and a day
   column with no heading over it is unreadable the moment the first row leaves the screen. It
   fills what the page has left rather than guessing it — a reserve like calc(100vh - 330px) goes
   stale the moment the chrome above it changes. */
.hrr__scroll {
    background: var(--touch-panel, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--touch-frost-border, #e3e1e8);
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--touch-shadow, rgba(20, 18, 30, 0.05));
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    /* Hug the table rather than stretch: otherwise the one flexible column swallows every spare
       pixel and opens a gulf between the name and the days. */
    width: fit-content;
    max-width: 100%;
}
/* The date-changes tab has few columns and reads better spanning the card. */
.hrr__scroll--dates { width: 100%; }

.hrr__table {
    /* The staff column's width, in one place: the header cell and the body cells have to agree, and
       the narrow-screen override below is then a single number. */
    --who-w: 280px;
    /* What the tick column actually occupies. `width` on a table cell is a MINIMUM — the checkbox
       and its padding need 60px — and the name column's sticky offset has to clear exactly that,
       or it slides under the checkboxes as soon as the grid scrolls sideways. */
    --tick-w: 60px;
    width: auto; border-collapse: separate; border-spacing: 0; font-size: 0.95rem;
    color: var(--touch-ink, #1f2024);
}
.hrr__table--dates { width: 100%; }

.hrr__table thead th {
    position: sticky; top: 0; z-index: 3;
    background: var(--hrr-solid);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    padding: 10px 8px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--touch-hint, #8a8f98); text-align: center; white-space: nowrap;
    border-bottom: 1px solid var(--touch-line, #ececf1);
}

/* The tick and the name stay put when a narrow tablet scrolls the days sideways — without them a
   row of hours belongs to nobody. */
.hrr__tick-col { width: var(--tick-w); }
.hrr__who-col {
    text-align: left !important;
    /* All three, because the table is table-layout:auto — max-width alone is ignored on a cell and
       the column simply grows to fit the longest name on the roster. */
    width: var(--who-w); min-width: var(--who-w); max-width: var(--who-w);
}
.hrr__table thead .hrr__tick-col,
.hrr__table thead .hrr__who-col { z-index: 4; }
.hrr__table .hrr__tick-col,
.hrr__table .hrr__who,
.hrr__table .hrr__who-col {
    position: sticky;
    background: var(--hrr-solid);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.hrr__table .hrr__tick-col { left: 0; }
/* The offset is the TICK column's width, not this column's — it stays right whatever --who-w is. */
.hrr__table .hrr__who,
.hrr__table .hrr__who-col { left: var(--tick-w); }
.hrr__table .hrr__who { max-width: var(--who-w); }

.hrr__day-col { width: 84px; }
.hrr__day-name { display: block; font-size: 0.86rem; color: var(--touch-muted, #6b6f76); }
.hrr__day-n { display: block; margin-top: 2px; font-size: 0.68rem; font-weight: 700; color: var(--touch-hint, #b3b7c0); letter-spacing: 0; text-transform: none; }
.hrr__total-col { width: 88px; }

.hrr__table tbody tr + tr td,
.hrr__table tbody tr + tr th { border-top: 1px solid var(--touch-line, #f2f2f6); }

/* Selection, and the only accent in the grid. The sticky cells lay the tint over their solid
   ground so a picked row stays opaque where the days scroll under it. */
.hrr__table tbody tr.is-picked td,
.hrr__table tbody tr.is-picked th { background: var(--touch-accent-soft, #fdf2f6); }
.hrr__table tbody tr.is-picked .hrr__tick-col,
.hrr__table tbody tr.is-picked .hrr__who {
    background: linear-gradient(var(--touch-accent-soft, #fdf2f6), var(--touch-accent-soft, #fdf2f6)), var(--hrr-solid);
}

.hrr__who { padding: 8px 10px; text-align: left; font-weight: 400; cursor: pointer; }
.hrr__who-inner { display: flex; align-items: center; gap: 10px; }
.hrr__pic { width: 34px; height: 34px; flex: 0 0 auto; font-size: 0.75rem; }
.hrr__who-body { display: flex; flex-direction: column; min-width: 0; }
.hrr__who-name { display: block; font-size: 0.98rem; font-weight: 700; color: var(--touch-ink, #1f2024); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The job title under the name — the product's word for what they do. */
.hrr__who-sub { display: block; font-size: 0.8rem; color: var(--touch-muted, #6b6f76); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hrr__unset {
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    border-radius: 999px; padding: 1px 7px; margin-top: 2px; align-self: flex-start;
    color: var(--touch-muted, #6b6f76); background: var(--touch-tile-alt, #efedf3);
}

.hrr__cell { padding: 5px 4px; text-align: center; }

/* A day. Filled means on the floor; a dashed outline means off — the difference is legible from a
   step back, which is how a roster gets read. */
.hrr-day {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    width: 76px; min-height: 48px; padding: 0 4px; box-sizing: border-box;
    border-radius: 11px; cursor: pointer; touch-action: manipulation;
    transition: transform 0.06s ease, border-color 0.12s ease;
}
.hrr-day:active { transform: scale(0.95); }
.hrr-day--on {
    border: 1.5px solid var(--touch-control-border, #dcdde4);
    background: var(--touch-tile-alt, #edeff4);
    color: var(--touch-ink, #1f2024); font-size: 0.95rem; font-weight: 700;
}
.hrr-day--on:hover { border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }
.hrr-day--off {
    border: 1.5px dashed var(--touch-control-border, #e3e1e8); background: transparent;
    color: var(--touch-hint, #c3c7ce); font-size: 0.95rem; font-weight: 600;
}
.hrr-day--off:hover { border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }
.hrr-day__hours { white-space: nowrap; }

.hrr__total { padding: 8px 10px; text-align: right; white-space: nowrap; }
.hrr__total-h { display: block; font-size: 0.98rem; font-weight: 800; color: var(--touch-ink, #1f2024); }
.hrr__total-d { display: block; font-size: 0.72rem; color: var(--touch-hint, #9aa0ad); }
.hrr__total-none { color: var(--touch-hint, #c3c7ce); }

/* ── Date changes table ── */
.hrr__table--dates thead th { text-align: left; }
.hrr__table--dates td { padding: 12px; }
.hrr__date-day { display: block; font-weight: 700; color: var(--touch-ink, #1f2024); }
.hrr__date-num { display: block; font-size: 0.8rem; color: var(--touch-hint, #9aa0ad); }
.hrr__date-hours { font-weight: 600; white-space: nowrap; }
.hrr__date-job { font-weight: 500; color: var(--touch-muted, #6b6f76); }
.hrr__date-off {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em;
    color: var(--touch-muted, #6b6f76); box-shadow: inset 0 0 0 1.5px var(--touch-control-border, #e3e1e8);
}
.hrr__undo-col { width: 110px; text-align: right; }
.hrr__undo {
    -webkit-appearance: none; appearance: none; font: inherit;
    min-height: 44px; padding: 0 16px; border-radius: 10px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-muted, #6b6f76);
    font-size: 0.9rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.hrr__undo:hover { border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }
.hrr__undo:disabled { opacity: 0.5; cursor: default; }

/* ── Empty roster ── */
.hrr__empty {
    background: var(--touch-panel, #fff);
    border: 1px solid var(--touch-frost-border, #e3e1e8); border-radius: 16px;
    padding: 40px 24px; text-align: center;
}
.hrr__empty-text { margin: 0 0 18px; color: var(--touch-muted, #6b6f76); font-size: 1.05rem; }
.hrr__empty-go {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
    border-radius: 12px; background: var(--hrr-fill); color: var(--touch-on-accent, #fff);
    font-size: 1rem; font-weight: 700; text-decoration: none;
}

/* ── Avatars (shared with the time-off screens) ── */
.hrr-av {
    border-radius: 50%; object-fit: cover; box-sizing: border-box; display: block;
    border: 1px solid var(--touch-line, #e7e5ea);
}
.hrr-av--i {
    display: flex; align-items: center; justify-content: center;
    background: var(--touch-tile-alt, #efedf2); color: var(--touch-muted, #6b6f76); font-weight: 700;
}

/* ── Selection bar ── */
/* Fixed to the bottom, where a thumb already is, and present only while there is a selection for
   its buttons to act on. */
.hrr-bulk {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
    background: var(--hrr-solid);
    -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
    border-top: 1px solid var(--touch-line, #e7e5ea);
    box-shadow: 0 -8px 30px var(--touch-shadow, rgba(20, 18, 30, 0.10));
    color: var(--touch-ink, #1f2024);
}

.hrr-bulk__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hrr-bulk__n { font-size: 1rem; font-weight: 800; color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); white-space: nowrap; }
.hrr-bulk__names { flex: 1; min-width: 0; color: var(--touch-muted, #6b6f76); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrr-bulk__clear {
    -webkit-appearance: none; appearance: none; font: inherit;
    min-height: 40px; padding: 0 14px; border-radius: 10px;
    border: none; background: none; color: var(--touch-muted, #6b6f76);
    font-size: 0.9rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.hrr-bulk__clear:hover { color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }

.hrr-bulk__acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hrr-bulk__label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--touch-hint, #8a8f98); }
.hrr-bulk__gap { flex: 1 1 auto; }
.hrr-bulk__btn {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 20px; border-radius: 12px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-ink, #1f2024);
    font-size: 1rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
    transition: transform 0.06s ease;
}
.hrr-bulk__btn:active { transform: scale(0.97); }
.hrr-bulk__btn:hover { border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }
.hrr-bulk__btn--go { border-color: transparent; background: var(--hrr-fill); color: var(--touch-on-accent, #fff); }
.hrr-bulk__btn--go:hover { border-color: transparent; color: var(--touch-on-accent, #fff); }

/* ── Modal (overlay + card + title/sub/foot) ── */
/* The roster's own, not a head's .picker: the café has none, and a sheet that only rendered
   properly in the salon would be the salon's sheet. The card's frost is .touch-glass--solid in the
   markup; the background here is only for a host without it. */
.hrr-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(20, 18, 30, 0.32);
    -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.hrr-modal__card {
    background: var(--hrr-solid);
    border: 1px solid var(--touch-frost-border, rgba(255, 255, 255, 0.6));
    border-radius: 22px; padding: 24px; box-sizing: border-box;
    min-width: min(320px, 100%); max-width: 560px; max-height: 88vh; overflow: auto;
    box-shadow: 0 24px 60px var(--touch-shadow, rgba(20, 18, 30, 0.30));
    color: var(--touch-ink, #1f2024);
}
.hrr-modal__title { font-size: 1.2rem; font-weight: 700; color: var(--touch-ink, #1f2024); margin-bottom: 8px; }
.hrr-modal__sub { margin: 4px 0 16px; color: var(--touch-muted, #6b6f76); font-size: 0.95rem; }
.hrr-modal__foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hrr-modal__cancel {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 20px; border-radius: 10px;
    border: 1px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-muted, #6b6f76);
    font-size: 1rem; font-weight: 600; cursor: pointer; touch-action: manipulation;
}

/* ── Hours sheet ── */
.hrr-sheet { min-width: min(420px, 100%); }
.hrr-sheet__days { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.hrr-chip {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 14px; border-radius: 999px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-ink, #33363d);
    font-size: 0.95rem; font-weight: 600; cursor: pointer; touch-action: manipulation;
    transition: transform 0.05s ease;
}
.hrr-chip:active { transform: scale(0.96); }
.hrr-chip.is-on { border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); background: var(--touch-accent-soft, color-mix(in srgb, var(--touch-accent, var(--mud-palette-primary, #4b5563)) 12%, transparent)); color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }

.hrr-sheet__label { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--touch-hint, #8a8f98); margin-bottom: 6px; }

.hrr-sheet__times { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hrr-sheet__time { flex: 1 1 170px; min-width: 0; }
.hrr-sheet__len { min-height: 56px; display: flex; align-items: center; padding: 0 4px; color: var(--touch-muted, #6b6f76); font-weight: 700; }

.hrr-step {
    display: flex; align-items: center; gap: 4px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8); border-radius: 12px;
    background: var(--touch-control, #fff); padding: 4px;
}
.hrr-step__b {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex: 0 0 auto; border: none; border-radius: 9px;
    background: var(--touch-tile-alt, #f4f2f7); color: var(--touch-ink, #1f2024);
    font-size: 1.4rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.hrr-step__b:active { background: var(--touch-accent-soft, color-mix(in srgb, var(--touch-accent, var(--mud-palette-primary, #4b5563)) 12%, transparent)); color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }
.hrr-step__v { flex: 1; text-align: center; font-size: 1.15rem; font-weight: 800; color: var(--touch-ink, #1f2024); white-space: nowrap; line-height: 1.1; }
/* A finish past midnight says so: 1:00 AM on its own reads as the start of the day. */
.hrr-step__next { display: block; font-size: 0.68rem; font-weight: 700; color: var(--touch-hint, #9aa0ad); text-transform: uppercase; letter-spacing: 0.04em; }

.hrr-sheet__presets { margin-bottom: 18px; }
.hrr-sheet__preset-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hrr-preset {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-ink, #1f2024);
    font-size: 0.98rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.hrr-preset.is-on { border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); background: var(--touch-accent-soft, color-mix(in srgb, var(--touch-accent, var(--mud-palette-primary, #4b5563)) 10%, transparent)); color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }

.hrr-sheet__field { margin-bottom: 18px; }
.hrr-sheet__select {
    -webkit-appearance: none; appearance: none; font: inherit;
    width: 100%; min-height: 52px; padding: 0 14px; box-sizing: border-box;
    border: 1.5px solid var(--touch-control-border, #e3e1e8); border-radius: 12px;
    background: var(--touch-control, #fff); color: var(--touch-ink, #1f2024);
    font-size: 1rem;
}
.hrr-sheet__select:focus { outline: none; border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }

.hrr-sheet__problem {
    margin: 0 0 12px; padding: 10px 14px; border-radius: 10px;
    background: var(--hrr-danger-bg); color: var(--hrr-danger);
    font-size: 0.9rem; font-weight: 600;
}

.hrr-sheet__apply, .hrr-sheet__off {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 22px; border-radius: 10px;
    font-size: 1rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.hrr-sheet__apply { border: none; background: var(--hrr-fill); color: var(--touch-on-accent, #fff); }
.hrr-sheet__apply:active { transform: scale(0.97); }
.hrr-sheet__apply:disabled { background: var(--touch-tile-alt, #d8d5dd); color: var(--touch-hint, #8a8f98); cursor: default; }
.hrr-sheet__off {
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-muted, #6b6f76);
}
.hrr-sheet__off:hover { border-color: var(--hrr-danger); color: var(--hrr-danger); }
.hrr-sheet__off:disabled { opacity: 0.5; cursor: default; }

/* ── Copy-a-week picker ── */
.hrr-copy__list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; }
.hrr-copy__row {
    -webkit-appearance: none; appearance: none; font: inherit; text-align: left;
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    min-height: 60px; padding: 0 16px; border-radius: 12px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-ink, #1f2024);
    cursor: pointer; touch-action: manipulation;
}
.hrr-copy__row:hover { border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }
.hrr-copy__row:disabled { opacity: 0.5; cursor: default; }
.hrr-copy__name { font-weight: 700; flex: 0 0 auto; }
.hrr-copy__week { flex: 1; min-width: 0; color: var(--touch-muted, #6b6f76); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrr-copy__hours { color: var(--touch-hint, #9aa0ad); font-weight: 700; font-size: 0.85rem; }

/* ── The tick ── */
/* A real checkbox, drawn over, so the keyboard and the screen reader get the control they expect
   and a finger gets a 44px target. */
.hrr__box {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; cursor: pointer; touch-action: manipulation;
}
.hrr__box input { position: absolute; opacity: 0; width: 0; height: 0; }
.hrr__box-mark {
    width: 24px; height: 24px; position: relative; box-sizing: border-box;
    border: 2px solid var(--touch-control-border, #c6c4cd); border-radius: 7px; background: transparent;
}
.hrr__box input:checked + .hrr__box-mark { background: var(--hrr-fill); border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }
.hrr__box input:checked + .hrr__box-mark::after {
    content: ""; position: absolute; left: 6px; top: 1px;
    width: 5px; height: 11px; border: solid var(--touch-on-accent, #fff); border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.hrr__box input:focus-visible + .hrr__box-mark { outline: 2px solid var(--touch-accent, var(--mud-palette-primary, #4b5563)); outline-offset: 3px; }

.hrr__sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Which pattern you're editing ──
   Violet throughout, because a plan is NOT a selection: the accent is what the operator has ticked
   on this screen, and a staged week has to be told apart from that at a glance. One button in the
   title row, a list behind it, and a banner only when the two disagree about which week is live. */
.hrr-plan__btn {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-ink, #1f2024);
    cursor: pointer; touch-action: manipulation;
}
.hrr-plan__btn:hover { border-color: var(--hrr-plan); }
.hrr-plan__btn-l { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--touch-hint, #8a8f98); }
.hrr-plan__btn-v { font-size: 0.95rem; font-weight: 800; }
.hrr-plan__btn-caret { color: var(--touch-hint, #8a8f98); font-size: 0.8rem; }
/* Editing a week that isn't the live one — the button carries that state, so the operator can see
   it without reading the banner. */
.hrr-plan__btn.is-off { border-color: var(--hrr-plan); background: var(--hrr-plan-bg); }
.hrr-plan__btn.is-off .hrr-plan__btn-l,
.hrr-plan__btn.is-off .hrr-plan__btn-caret { color: var(--hrr-plan); }

.hrr-planbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-bottom: 14px; padding: 12px 16px; border-radius: 12px;
    background: var(--hrr-plan-bg); border: 1px solid color-mix(in srgb, var(--hrr-plan) 30%, transparent);
}
.hrr-planbar__text { flex: 1; min-width: 0; color: var(--touch-ink, #4a3d6b); font-size: 0.92rem; font-weight: 600; }
/* The way back to the live week, named — a warning that can't be acted on is just noise. */
.hrr-planbar__go {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0 16px; border-radius: 10px;
    border: 1.5px solid var(--hrr-plan); background: var(--touch-control, #fff); color: var(--hrr-plan);
    font-size: 0.88rem; font-weight: 800; cursor: pointer; touch-action: manipulation;
}
.hrr-planbar__go:hover { background: var(--hrr-plan-bg); }

.hrr-plans { min-width: min(460px, 100%); }
/* Capped and scrolled: thirty plans is a list to run down, not a reason to grow the card past the
   screen. Five and a bit rows visible, so it always reads as scrollable. */
.hrr-plans__list {
    display: flex; flex-direction: column; gap: 6px;
    max-height: min(46vh, 340px); overflow-y: auto;
    margin: 4px -4px 0; padding: 0 4px;
}
.hrr-plans__item { display: flex; align-items: center; gap: 8px; }
.hrr-plans__item .hrr-plans__row { flex: 1; min-width: 0; }
.hrr-plans__row {
    -webkit-appearance: none; appearance: none; font: inherit; text-align: left;
    display: flex; align-items: center; justify-content: flex-start; gap: 10px;
    width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; box-sizing: border-box;
    border: 1.5px solid var(--touch-control-border, #e8e6ee);
    background: var(--touch-control, #fff); color: var(--touch-ink, #1f2024);
    cursor: pointer; touch-action: manipulation;
}
.hrr-plans__row:hover { border-color: color-mix(in srgb, var(--hrr-plan) 45%, transparent); }
.hrr-plans__row.is-on { border-color: var(--hrr-plan); background: var(--hrr-plan-bg); }
.hrr-plans__name { font-size: 1rem; font-weight: 800; white-space: nowrap; }
.hrr-plans__meta { flex: 1; min-width: 0; color: var(--touch-hint, #8a8f98); font-size: 0.85rem; font-weight: 600; }
.hrr-plans__tag {
    flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; margin-left: auto;
    background: var(--touch-tile-alt, #f1eff4); color: var(--touch-muted, #6b6f76);
    font-size: 0.74rem; font-weight: 800; white-space: nowrap;
}
/* Green for the week that is actually running: the one fact on this list that is about today. */
.hrr-plans__tag--now  { background: var(--hrr-ok-bg); color: var(--hrr-ok); }
.hrr-plans__tag--soon { background: var(--hrr-plan-bg); color: var(--hrr-plan); }
.hrr-plans__discard {
    -webkit-appearance: none; appearance: none; font: inherit; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 12px; border-radius: 10px;
    border: 1.5px solid color-mix(in srgb, var(--hrr-danger) 35%, transparent);
    background: var(--touch-control, #fff); color: var(--hrr-danger);
    font-size: 0.85rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.hrr-plans__discard:disabled { opacity: 0.5; cursor: default; }
.hrr-plans__more {
    -webkit-appearance: none; appearance: none; font: inherit;
    align-self: flex-start; margin-top: 2px; padding: 8px 4px; text-align: left;
    border: none; background: none; color: var(--hrr-plan);
    font-size: 0.88rem; font-weight: 700; cursor: pointer; text-decoration: underline;
}

/* ── Narrow tablet / phone ── */
@media (max-width: 720px) {
    .hrr__table { --who-w: 120px; }
    .hrr__who-sub { display: none; }
    .hrr-bulk__acts { gap: 8px; }
    .hrr-bulk__btn { min-height: 48px; padding: 0 14px; font-size: 0.95rem; }
}

/* ═══════════════════════════════ TIME OFF ═══════════════════════════════ */

/* A page of fixed height whose one column of cards scrolls inside it, so a short list never
   stretches into an empty slab and a long one never scrolls the title away. */
.hrl-shell {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--touch-ink, #1f2024);
    --tph-ink: var(--touch-ink, #1f2024);
    --tph-muted: var(--touch-muted, #6b6f76);
}
.hrl-page {
    width: 100%;
    margin: 0 auto;
    padding: 14px 1rem 24px;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hrl-page > .form-page-header { flex: 0 0 auto; }

.hrl__status { display: block; color: var(--hrr-ok); font-weight: 600; font-size: 0.95rem; }
.hrl__loading { color: var(--touch-muted, #6b6f76); margin: 0; }

.hrl {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px;
}
.hrl__panel {
    background: var(--touch-panel, #fff);
    border: 1px solid var(--touch-frost-border, #e7e5ea); border-radius: 20px;
    box-shadow: 0 6px 24px var(--touch-shadow, rgba(20, 18, 30, 0.08));
    padding: 20px 22px;
}
.hrl__head { display: flex; align-items: center; gap: 10px; }
.hrl__title { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--touch-ink, #1f2024); }
.hrl__count {
    min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; box-sizing: border-box;
    background: var(--hrr-fill); color: var(--touch-on-accent, #fff); font-size: 0.85rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.hrl__lead { margin: 4px 0 14px; color: var(--touch-muted, #6b6f76); font-size: 0.92rem; }

.hrl__empty {
    display: flex; align-items: center; gap: 12px;
    padding: 18px; border-radius: 14px;
    background: var(--touch-tile-alt, #f7f6f9); color: var(--touch-muted, #6b6f76); font-weight: 600;
}
.hrl__empty--quiet { margin-top: 12px; }
.hrl__empty-ico {
    width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%;
    background: var(--hrr-ok-bg); color: var(--hrr-ok); font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}

/* A pending request: calendar leaf | who, when, why, and the decision. */
.hrl__req {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px; border-radius: 16px;
    border: 1px solid var(--touch-line, #eeecf1); background: var(--touch-control, #fcfbfd);
}
.hrl__req + .hrl__req { margin-top: 10px; }
.hrl__cal {
    flex: 0 0 auto; width: 76px; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--touch-line, #ece9f0); background: var(--hrr-solid); text-align: center;
    display: flex; flex-direction: column;
}
.hrl__cal-mon {
    background: var(--hrr-fill); color: var(--touch-on-accent, #fff); font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.08em; padding: 4px 0;
}
.hrl__cal-day {
    font-size: 1.5rem; font-weight: 800; color: var(--touch-ink, #1f2024); line-height: 1.15; padding: 6px 4px 0;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hrl__cal-sub { font-size: 0.74rem; color: var(--touch-hint, #8a8f98); padding: 2px 4px 8px; white-space: nowrap; }
.hrl__cal--sm { width: 56px; }
.hrl__cal--sm .hrl__cal-mon { background: var(--touch-muted, #6b6f76); color: var(--hrr-solid); font-size: 0.66rem; padding: 3px 0; }
.hrl__cal--sm .hrl__cal-day { font-size: 1.05rem; padding: 4px 2px 6px; }
.hrl__cal--sm.is-now .hrl__cal-mon { background: var(--hrr-ok); color: #fff; }

.hrl__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hrl__who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hrl__pic { width: 34px; height: 34px; flex: 0 0 auto; font-size: 0.8rem; }
.hrl__name { font-size: 1.05rem; font-weight: 800; color: var(--touch-ink, #1f2024); }
.hrl__kind {
    padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em;
    background: rgba(67, 84, 155, 0.12); color: #43549b;
}
.hrl__kind--sick { background: var(--hrr-danger-bg); color: var(--hrr-danger); }
.hrl__kind--personal { background: var(--hrr-plan-bg); color: var(--hrr-plan); }
.hrl__when { font-weight: 700; color: var(--touch-ink, #3a3c42); }
.hrl__quote {
    margin: 2px 0 0; padding: 8px 12px; border-left: 3px solid var(--touch-control-border, #e3e1e8);
    border-radius: 0 10px 10px 0; background: var(--touch-tile-alt, #fff);
    color: var(--touch-muted, #4a4d55); font-style: italic; overflow-wrap: anywhere;
}
.hrl__warn {
    padding: 8px 12px; border-radius: 10px; background: var(--hrr-warn-bg); color: var(--hrr-warn);
    font-size: 0.88rem; font-weight: 700;
}
.hrl__clashes { list-style: none; margin: 6px 0 0; padding: 0; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.hrl__clash-at { font-variant-numeric: tabular-nums; font-weight: 800; }
.hrl__clash-more { font-style: italic; }
.hrl__decide { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.hrl__note {
    -webkit-appearance: none; appearance: none; font: inherit; flex: 1 1 200px; min-width: 0;
    min-height: 46px; padding: 0 14px; border-radius: 12px; box-sizing: border-box;
    border: 1.5px solid var(--touch-control-border, #e3e1e8); background: var(--touch-control, #fff);
    font-size: 16px; color: var(--touch-ink, #1f2024);
}
.hrl__note::placeholder { color: var(--touch-hint, #9aa0ad); }
.hrl__note:focus { outline: none; border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }
.hrl__btn {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 22px; border-radius: 12px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-ink, #4a4d55);
    font-size: 0.95rem; font-weight: 800; cursor: pointer; touch-action: manipulation;
}
.hrl__btn:hover { border-color: var(--hrr-danger); color: var(--hrr-danger); }
/* Approve is green, not the accent: it is a verdict, and the accent is kept for selection. */
.hrl__btn--go { border-color: var(--hrr-ok); background: var(--hrr-ok); color: #fff; }
.hrl__btn--go:hover { border-color: var(--hrr-ok); color: #fff; filter: brightness(0.92); }
.hrl__btn:disabled { opacity: 0.5; cursor: default; }

/* Approved leave: a plain list, one line per absence. */
.hrl__rows { list-style: none; margin: 12px 0 0; padding: 0; }
.hrl__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.hrl__row + .hrl__row { border-top: 1px solid var(--touch-line, #f1eff4); }
.hrl__row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hrl__row-sub { font-size: 0.88rem; color: var(--touch-muted, #6b6f76); }
.hrl__now {
    flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: var(--hrr-ok-bg); color: var(--hrr-ok);
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.hrl__undo {
    -webkit-appearance: none; appearance: none; font: inherit; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0 14px; border-radius: 10px; border: none; background: transparent;
    color: var(--touch-hint, #8a8f98); font-size: 0.9rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.hrl__undo:hover { background: var(--hrr-danger-bg); color: var(--hrr-danger); }
.hrl__undo:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 560px) {
    .hrl__panel { padding: 16px; }
    .hrl__req { flex-direction: column; }
    .hrl__cal { flex-direction: row; width: auto; align-items: center; gap: 8px; }
    .hrl__cal-mon { padding: 6px 10px; }
    .hrl__cal-day, .hrl__cal-sub { padding: 0 6px; }
    .hrl__row { flex-wrap: wrap; }
}

/* ═════════════════════════════ MY TIME OFF ═════════════════════════════ */

/* Self-contained: its own surface, so it reads the same in a salon's phone page, a café's staff
   page or anywhere else a head drops it. */
.hrl-mine {
    display: flex; flex-direction: column; gap: 10px;
    padding: 18px; border-radius: 18px; box-sizing: border-box;
    background: var(--touch-panel, #fff);
    border: 1px solid var(--touch-frost-border, #e7e5ea);
    box-shadow: 0 6px 24px var(--touch-shadow, rgba(20, 18, 30, 0.08));
    color: var(--touch-ink, #1f2024);
}
.hrl-mine__h { margin: 0; font-size: 1.15rem; font-weight: 800; }
.hrl-mine__sub { margin: 10px 0 0; font-size: 1rem; font-weight: 800; }
.hrl-mine__muted { margin: 0; color: var(--touch-muted, #6b6f76); font-size: 0.92rem; }

.hrl-mine__kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.hrl-mine__kind {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 12px; border-radius: 999px;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-muted, #6b6f76);
    font-size: 0.95rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.hrl-mine__kind.is-on { border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); background: var(--touch-accent-soft, color-mix(in srgb, var(--touch-accent, var(--mud-palette-primary, #4b5563)) 10%, transparent)); color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }

.hrl-mine__dates { display: flex; align-items: center; gap: 8px; }
.hrl-mine__date, .hrl-mine__note {
    -webkit-appearance: none; appearance: none; font: inherit;
    min-height: 48px; padding: 0 12px; border-radius: 12px; box-sizing: border-box;
    border: 1.5px solid var(--touch-control-border, #e3e1e8);
    background: var(--touch-control, #fff); color: var(--touch-ink, #1f2024);
    font-size: 16px;   /* 16px: anything smaller and iOS zooms the page on focus */
}
.hrl-mine__date { flex: 1 1 0; min-width: 0; }
.hrl-mine__note { width: 100%; }
.hrl-mine__note::placeholder { color: var(--touch-hint, #9aa0ad); }
.hrl-mine__date:focus, .hrl-mine__note:focus { outline: none; border-color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); }
.hrl-mine__sep { flex: 0 0 auto; color: var(--touch-muted, #6b6f76); font-weight: 600; }

.hrl-mine__msg { padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; }
.hrl-mine__msg.is-ok { background: var(--hrr-ok-bg); color: var(--hrr-ok); }
.hrl-mine__msg.is-err { background: var(--hrr-danger-bg); color: var(--hrr-danger); }

.hrl-mine__send {
    -webkit-appearance: none; appearance: none; font: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; min-height: 52px; border: none; border-radius: 12px;
    background: var(--hrr-fill); color: var(--touch-on-accent, #fff);
    font-size: 1rem; font-weight: 800; cursor: pointer; touch-action: manipulation;
}
.hrl-mine__send:active { transform: scale(0.98); }
.hrl-mine__send:disabled { opacity: 0.55; cursor: default; }

.hrl-mine__list { list-style: none; margin: 0; padding: 0; }
.hrl-mine__row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.hrl-mine__row + .hrl-mine__row { border-top: 1px solid var(--touch-line, #f1eff4); }
.hrl-mine__row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hrl-mine__row-when { font-weight: 700; }
.hrl-mine__row-sub { font-size: 0.86rem; color: var(--touch-muted, #6b6f76); overflow-wrap: anywhere; }
.hrl-mine__row-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.hrl-mine__pill {
    padding: 3px 10px; border-radius: 999px; white-space: nowrap;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em;
}
.hrl-mine__pill--pending   { background: var(--hrr-warn-bg); color: var(--hrr-warn); }
.hrl-mine__pill--approved  { background: var(--hrr-ok-bg); color: var(--hrr-ok); }
.hrl-mine__pill--rejected  { background: var(--hrr-danger-bg); color: var(--hrr-danger); }
.hrl-mine__pill--cancelled { background: var(--touch-tile-alt, #f0eef3); color: var(--touch-hint, #8a8f98); }

.hrl-mine__link {
    -webkit-appearance: none; appearance: none; font: inherit;
    padding: 6px 2px; border: none; background: none;
    color: var(--touch-accent, var(--mud-palette-primary, #4b5563)); font-size: 0.88rem; font-weight: 700;
    text-decoration: underline; cursor: pointer; touch-action: manipulation;
}
.hrl-mine__link:disabled { opacity: 0.5; cursor: default; }
