/* Tharsol Connect: employee profiles (Settings -> My employee profile, Admin -> Employees, the profile banner). Namespaced
   (.ep-*), Connect's tokens only, so the same in light and dark. Chips and pills are tinted: tint fill, saturated text,
   1px border. */

.ep-lead { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.ep-state { color: var(--muted); font-size: 13px; padding: 12px 0; }
.ep-grow { flex: 1; }

.ep-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
    .ep-top .ep-grow { flex: 1; min-width: 160px; }
.ep-progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; min-width: 140px; flex: 1; }
    .ep-progress > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.ep-pct { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.ep-pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    white-space: nowrap; border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); --c: var(--muted); }
    .ep-pill.ok { --c: var(--ok); }
    .ep-pill.warn { --c: var(--warn); }
    .ep-pill.bad { --c: var(--danger); }
    .ep-pill.acc { --c: var(--accent); }

.ep-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; margin: 0 0 12px; font-size: 13px;
    border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); color: var(--text); --c: var(--accent); }
    .ep-banner.warn { --c: var(--warn); }
    .ep-banner.bad { --c: var(--danger); }
    .ep-banner.ok { --c: var(--ok); }
    .ep-banner b { color: var(--c); }
    .ep-banner .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--c); }

.ep-sec { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; background: var(--surface); }
    .ep-sec > h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
    .ep-sec > h3 .ep-grow { flex: 1; }
    .ep-sec > .ep-body { padding: 12px 16px 14px; }
    .ep-sec .ep-hint { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }

.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 14px; }
    .ep-grid .ep-wide { grid-column: 1 / -1; }

.ep-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12.5px; color: var(--muted); }
    .ep-field > span { font-weight: 600; }
    .ep-field > span .req { color: var(--danger); margin-left: 2px; }
    .ep-field .ep-err { color: var(--danger); font-size: 12px; }
    .ep-field.bad .ep-in { border-color: var(--danger); }
    .ep-field .ep-note { font-size: 12px; color: var(--muted); }
.ep-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }

.ep-in { height: 34px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--text);
    padding: 0 10px; font: inherit; font-size: 13.5px; min-width: 0; width: 100%; box-sizing: border-box; }
    .ep-in:disabled, .ep-in[readonly] { background: var(--surface-2); color: var(--muted); }
    textarea.ep-in { height: auto; min-height: 60px; padding: 7px 10px; resize: vertical; }
    /* A file picker: the same 34px box, its button centred inside it in Connect's colours (not the browser's grey). */
    input[type=file].ep-in { padding: 3px 10px 3px 3px; line-height: 26px; cursor: pointer; }
        input[type=file].ep-in::file-selector-button { height: 26px; margin-right: 10px; padding: 0 10px; border: 1px solid var(--border);
            border-radius: calc(var(--radius-control) - 2px); background: var(--surface-2); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
        input[type=file].ep-in:hover::file-selector-button { background: var(--hover); }

.ep-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-control);
    background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
    .ep-btn:hover:not(:disabled) { background: var(--hover); }
    .ep-btn:disabled { opacity: .55; cursor: default; }
    .ep-btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
    .ep-btn.danger { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
    .ep-btn.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 11%, transparent); color: var(--ok); }
    .ep-btn.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); }
    .ep-btn.bad { border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
    .ep-btn.sm { height: 26px; padding: 0 8px; font-size: 12.5px; }
    .ep-btn .icon { width: 15px; height: 15px; }
.ep-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }

.ep-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 6px; }
    .ep-acts .ep-msg { font-size: 13px; }
    /* A hint beside the buttons sits level with them (a section's hint otherwise keeps a bottom margin for the next line). */
    .ep-acts > .ep-hint { margin: 0; }
.ep-msg.ok { color: var(--ok); }
.ep-msg.err { color: var(--danger); }
.ep-msg.warn { color: var(--warn); }
.ep-msg.info { color: var(--muted); }
.ep-field .ep-note.warn { color: var(--warn); }
.ep-sticky { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 0; margin-top: 0; z-index: 2; }

.ep-list-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px dashed var(--line); }
    .ep-list-row:last-child { border-bottom: 0; }
    .ep-list-row.dev { grid-template-columns: repeat(4, 1fr) auto; }
    .ep-list-row .ep-full { grid-column: 1 / -2; }

.ep-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
    .ep-tags .ep-pill button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font: inherit; }

.ep-cnic { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ep-shot { border: 1px dashed var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 13px; }
    .ep-shot img { max-width: 100%; max-height: 160px; border-radius: 6px; border: 1px solid var(--line); object-fit: contain; background: var(--surface-2); }
    .ep-shot .ep-file { position: relative; overflow: hidden; }
        .ep-shot .ep-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.ep-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .ep-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
    .ep-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
    .ep-table tr.ep-click { cursor: pointer; }
        .ep-table tr.ep-click:hover td { background: var(--hover); }
    .ep-table .num { text-align: right; white-space: nowrap; }
    .ep-table .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
    .ep-table .old { color: var(--muted); text-decoration: line-through; }
/* The admin tables' card (user, 20 Oct 2026: no sideways scroll in admin). Each table fits its card (container queries
   drop or merge columns as it narrows); a sideways scroll inside the card is only the last resort at phone widths, and
   then the card is never taller than the window, so its scrollbar is always in view, with the header row kept on top. */
.ep-scroll { overflow: auto; overscroll-behavior-x: contain; }
    .ep-scroll > .ep-table > thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.ep-table td { overflow-wrap: anywhere; }
    .ep-table td.num, .ep-table td.mono { overflow-wrap: normal; }
/* Forms inside a table row (colspan): a grid that fits the card's width, inputs never wider than their cell, hints wrap. */
.ep-table td[colspan] { white-space: normal; }
    .ep-table td[colspan] .ep-grid { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
    .ep-table td[colspan] .ep-in { max-width: 100%; }
    .ep-table td[colspan] .ep-hint, .ep-table td[colspan] .ep-note { white-space: normal; overflow-wrap: anywhere; }

/* A small "Download ▾" menu (Payroll's sheets). */
.ep-menu { position: relative; }
    .ep-menu > summary { list-style: none; }
    .ep-menu > summary::-webkit-details-marker { display: none; }
    .ep-menu .ep-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 5px; box-shadow: 0 8px 26px rgba(0, 0, 0, .18); display: flex; flex-direction: column; }
        .ep-menu .ep-menu-list a { padding: 7px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
            .ep-menu .ep-menu-list a:hover { background: var(--hover); }
            .ep-menu .ep-menu-list a small { color: var(--muted); margin-left: auto; }
        .ep-menu .ep-menu-list .icon { width: 15px; height: 15px; }

.ep-tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
    .ep-tabs button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; }
        .ep-tabs button + button { border-left: 1px solid var(--border); }
        .ep-tabs button:hover { background: var(--hover); }
        .ep-tabs button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }

.ep-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
    .ep-filters .ep-in { width: auto; min-width: 150px; }

.ep-kv { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 6px 14px; font-size: 13px; }
    .ep-kv dt { color: var(--muted); }
    .ep-kv dd { margin: 0; overflow-wrap: anywhere; }

/* The banner for staff whose profile isn't submitted yet (bottom right, above the phone's tabs). */
.ep-prompt { position: fixed; z-index: 58; right: 16px; bottom: 16px; max-width: min(420px, calc(100vw - 32px)); box-sizing: border-box;
    display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--border));
    background: var(--surface); color: var(--text); box-shadow: 0 8px 30px rgba(0, 0, 0, .2); font-size: 13px; }
    .ep-prompt .icon { width: 18px; height: 18px; color: var(--warn); flex: none; }
    .ep-prompt span { flex: 1; min-width: 0; }

@media (max-width: 640px) {
    .ep-list-row, .ep-list-row.dev { grid-template-columns: 1fr 1fr; }
    .ep-list-row .ep-full { grid-column: 1 / -1; }
    .ep-prompt { left: 16px; right: 16px; bottom: 76px; max-width: none; flex-wrap: wrap; }
    .ep-kv { grid-template-columns: 1fr; }
}

/* Names, brand / model and serial numbers are kept in capitals: shown so while typing (the server stores them so). */
.ep-in.ep-caps { text-transform: uppercase; }

/* Admin -> Payroll (.pr-*): the tables fit their card (never a sideways scroll on the page), team bands and totals in
   Connect's tokens, so the same in light and dark. The card is a size container (prtable). */
.pr-scroll { max-width: 100%; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; container: prtable / inline-size; }
/* 12 columns, compact numbers: only the money stays on one line; headers and text wrap. */
.pr-table { width: 100%; font-size: 13px; }
.pr-table th, .pr-table td { padding-left: 8px; padding-right: 8px; vertical-align: top; }
.pr-table th { white-space: normal; }
.pr-table th.num { text-align: right; }
.pr-table td.num { white-space: nowrap; }
.pr-table td.pr-emp { min-width: 170px; width: 100%; }
.pr-table .pr-basic-in, .pr-table .pr-merged, .pr-table .pr-adv-in { display: none; }
/* The Month report's attendance columns (30 Oct 2026): compact counts in the report's colours; zeros muted. */
.pr-table .pr-att { padding-left: 5px; padding-right: 5px; }
.pr-table td.pr-late { color: var(--warn); }
.pr-table td.pr-abs, .pr-table td.pr-neg { color: var(--danger); }
.pr-table td.pr-pos, .pr-table td.pr-gl { color: var(--ok); }
.pr-table td.pr-lv { color: var(--accent); }
.pr-table td.pr-z { color: var(--muted); opacity: .7; }
.pr-transfer { max-width: 240px; }
/* "Under" (31 Oct 2026): a reference person's people indented below them, then the group's net. */
.pr-table tr.pr-dep td.pr-emp { padding-left: 26px; }
.pr-table .pr-under { color: var(--accent); }
.pr-table tr.pr-under-sum td { color: var(--muted); font-size: 12px; font-weight: 600; text-align: right; padding-top: 3px; padding-bottom: 6px; }
/* The Month report's day cells on the salary grid (30 Oct 2026): the card scrolls sideways, the name column stays. */
.pr-table th.pr-dh { font-size: 10.5px; text-align: center; min-width: 31px; padding: 4px 1px; color: var(--muted); }
    .pr-table th.pr-dh span { display: block; font-size: 9px; opacity: .75; }
    .pr-table th.pr-dh.we { opacity: .55; }
    .pr-table th.pr-dh.today { color: var(--accent); }
.pr-table td.at-c { padding: 0; vertical-align: middle; border: 2px solid var(--surface); }
.pr-table td.pr-noatt { color: var(--muted); font-size: 12px; text-align: center; vertical-align: middle; }
.pr-table.pr-wide { width: max-content; min-width: 100%; }
    .pr-table.pr-wide td.pr-emp { width: auto; min-width: 200px; position: sticky; left: 0; z-index: 1; background: var(--surface); }
    .pr-table.pr-wide th.pr-emp-h { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.pr-table tr.pr-daypanel > td { background: var(--surface-2); white-space: normal; }
.pr-dayp { max-width: 640px; position: sticky; left: 8px; }
/* 31 Oct 2026: the editor, a row's calculation and a day panel stay in the card's visible width while the grid scrolls
   sideways (the card is the size container, so 100cqw is what shows). */
.pr-table tr[data-editor] > td > .pr-edit, .pr-table tr.pr-calc > td > .pr-break { position: sticky; left: 8px; width: min(1180px, calc(100cqw - 32px)); box-sizing: border-box; }
.pr-strip { display: flex; flex-wrap: wrap; gap: 3px; }
    .pr-strip .at-c { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 32px; height: 36px; font: inherit; cursor: default; }
    .pr-strip .at-c.click { cursor: pointer; }
    .pr-strip .at-c small { font-size: 9px; opacity: .7; line-height: 1; }
    .pr-strip .at-c b { font-size: 11px; line-height: 1.2; }
.pr-edit .pr-dayp { position: static; }
/* "Full screen": the run over the whole window (the bar, the banners and the grid, scrolling inside). */
.pr-run:focus { outline: none; }
.pr-run.pr-fullscreen { position: fixed; inset: 0; z-index: 900; background: var(--bg, var(--surface)); overflow: auto; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 10px; }
    .pr-run.pr-fullscreen .pr-scroll { max-height: none; }
.pr-table .pr-code { color: var(--muted); margin-right: 4px; }
.pr-table td.num .pr-sub { font-family: inherit; }
.pr-table td.pr-act { width: 1%; padding-right: 10px; white-space: nowrap; }
.pr-table td.pr-act > * + * { margin-left: 4px; }
.pr-table tr.pr-team td { background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--accent); padding-top: 8px; padding-bottom: 8px; }
.pr-table tr.pr-sum td { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.pr-table tfoot tr.pr-total td { border-top: 2px solid var(--border); font-weight: 700; background: var(--surface-2); }
.pr-sub { font-size: 12px; color: var(--muted); }
.pr-bar { align-items: flex-end; }
    .pr-bar .pr-month { width: auto; }
    .pr-bar .pr-month .ep-in { width: 170px; }
    .pr-bar .pr-reason { width: 220px; }
/* A salary row's editor (21 Oct 2026, user: "layout issue"): the five amounts on one row when wide, never wider than
   needed (no giant input beside a tiny one); their notes on the next row; the hint muted and wrapped; Save / Cancel on the
   left, "Adjust days…" on the right. */
.pr-edit { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; max-width: 1180px; }
.pr-edit-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px 12px; }
.pr-edit-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px 12px; }
    .pr-edit-nums .ep-field { justify-content: space-between; }
    .pr-edit .ep-field > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; color: var(--text); font-size: 12.5px; }
    .pr-edit .ep-field > span small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
    .pr-edit .ep-in.mono { font-family: ui-monospace, Consolas, monospace; text-align: right; }
.pr-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; max-width: 900px; }
.pr-edit-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pr-edit .at-adj { margin-top: 0; }
.pr-detail { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.pr-type { min-width: 130px; }
.pr-check { min-height: 34px; }
/* The row's calculation (20 Oct 2026): a chevron and the name open it under the row, in plain words. */
.pr-table .pr-chev { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 4px 0 0; font: inherit; line-height: 1; }
.pr-table .pr-name { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font: inherit; text-align: left; }
    .pr-table .pr-name:hover b { text-decoration: underline; }
.pr-table tr.pr-open td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.pr-table tr.pr-calc td { white-space: normal; background: var(--surface-2); padding-top: 8px; padding-bottom: 10px; }
.pr-break { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 12.5px; }
    .pr-break dt { color: var(--muted); font-weight: 600; }
    .pr-break dd { margin: 0; overflow-wrap: anywhere; }
.pr-pill { height: 17px; padding: 0 6px; font-size: 10.5px; margin-top: 2px; }
.pr-group { min-height: 30px; white-space: nowrap; }
/* The bar: the month and the primary action first; Group by team / Expand / Collapse / Download wrap as one group. */
.pr-bar { row-gap: 8px; }
.pr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }

/* As the salary card narrows: Advance joins Adjust. as "Other"; Basic moves under the name; then the account line and
   "Other" go (both are in the row's calculation) and the numbers get compact. Below that the card scrolls inside. */
@container prtable (max-width: 1100px) {
    .pr-table .pr-c-adv, .pr-table .pr-full { display: none; }
    .pr-table .pr-merged { display: inline; }
    .pr-table .pr-adv-in { display: block; }
}
@container prtable (max-width: 980px) {
    .pr-table .pr-c-basic { display: none; }
    .pr-table .pr-basic-in { display: block; }
    .pr-table th, .pr-table td { padding-left: 6px; padding-right: 6px; }
    .pr-table td.pr-emp { min-width: 150px; }
}
@container prtable (max-width: 860px) {
    .pr-table .pr-acct, .pr-table .pr-c-adj { display: none; }
    .pr-table { font-size: 12.5px; }
    .pr-table .mono { font-size: 12px; }
    .pr-table th, .pr-table td { padding-left: 5px; padding-right: 5px; }
    .pr-table td.pr-emp { min-width: 130px; }
}
.pr-tag { margin-left: 6px; }
/* Bank details and CNIC from the profile (24 Oct 2026): a small muted hint beside the value, the "differs" row with
   "Use profile value", and the list of people with no bank details above the salary table. */
.pr-src { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); font-family: inherit; }
.pr-acct .pr-src { margin-left: 4px; }
.pr-differs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
    .pr-differs .pr-pill { margin-top: 0; }
.pr-remind { margin-left: 6px; }
.pr-flags { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
    .pr-flags li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

@media (max-width: 640px) {
    .pr-bar .pr-month .ep-in, .pr-bar .pr-reason { width: 100%; }
    .pr-bar .pr-month { flex: 1 1 100%; }
    .pr-break { grid-template-columns: 1fr; }
}

/* Payroll -> Tax & CPF: the slab editor's inputs fit their cells. */
.pr-slabs td .ep-in { width: 100%; min-width: 90px; text-align: right; }

/* Admin -> HR -> Birthdays (.bd-*): Today / This week / This month chips (tinted when on), today's rows tinted. */
.bd-bar { row-gap: 8px; }
.bd-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.bd-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
    .bd-chip b { font-size: 12px; color: var(--muted); }
    .bd-chip:hover { background: var(--hover); }
    .bd-chip.on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
        .bd-chip.on b { color: var(--accent); }
.ep-table tr.bd-today td { background: color-mix(in srgb, var(--warn) 8%, transparent); }

/* Admin -> HR -> Birthday wishes (.bw-*): Connect Robot's messages as chat shows them (picture, name, text with mention
   chips), today's drafts. Connect's tokens only, so the same in light and dark. */
.bw-preview { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bw-cap { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.bw-msg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); max-width: 680px; }
    .bw-msg .bw-av { width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--surface); }
    .bw-msg .bw-main { min-width: 0; }
    .bw-msg .bw-who { font-size: 13px; }
        .bw-msg .bw-who span { color: var(--muted); font-size: 12px; margin-left: 4px; }
    .bw-msg .bw-txt { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
        .bw-msg .bw-txt .mention { padding: 0 3px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); font-weight: 600; }
.bw-preview-poster { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; border: 1px solid var(--line); }
.bw-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.bw-poster { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); min-width: 0; }
    .bw-poster.chosen { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
    .bw-poster img, .bw-poster .bw-thumb-wait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #0b2f68; }
    .bw-poster .bw-thumb-wait { display: grid; place-items: center; color: #a9b8d3; font-size: 12px; }
    .bw-poster-body { padding: 8px 10px 10px; min-width: 0; }
    .bw-poster-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; min-width: 0; }
        .bw-poster-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
    .bw-poster-idea { margin-top: 4px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bw-poster .ep-acts { flex-wrap: wrap; gap: 6px; }
.bw-today { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
    .bw-today.focus { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
    .bw-today .bw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }

/* Payroll -> Salary -> Publish to Accounts (24 Oct 2026): the dialog, the Published banner and its file chips. */
[data-run-status] .ep-pill .icon { width: 12px; height: 12px; }
.pr-publish { max-width: 820px; margin-top: 4px; }
    .pr-publish > h3 .icon { width: 16px; height: 16px; color: var(--accent); }
    .pr-publish > h3 .ep-btn.sm { height: 26px; padding: 0 6px; }
.pr-mail { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 13px; }
    .pr-mail dt { color: var(--muted); font-weight: 600; }
    .pr-mail dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
    .pr-mail small { color: var(--muted); }
.pr-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pr-mail .pr-files { margin-top: 0; }
.pr-file { height: 22px; font-weight: 600; }
    .pr-file .icon { width: 12px; height: 12px; }
.pr-cover { min-height: 140px; line-height: 1.45; }
.pr-manual { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
    .pr-manual > summary { cursor: pointer; font-weight: 600; color: var(--muted); }
    .pr-manual .ep-hint { margin: 8px 0; }
.pr-manual-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .pr-manual-row .ep-in { flex: 1 1 260px; }
.pr-published .pr-sub { margin-top: 3px; }
.pr-tell { margin: 10px 0 0; align-items: flex-start; }
    .pr-tell input { margin-top: 3px; }
@media (max-width: 560px) {
    .pr-mail { grid-template-columns: 1fr; gap: 2px; }
    .pr-mail dd { margin-bottom: 6px; }
}
