/* site/pages-stats-finance.css — Page areas: statistics, Меню / Склад, finance and access, marketing, sales data, stock parity. Order: wwwroot/README.md. */
/* === area: stats === */
/* Statistics pages (feat/ui-stats): header tools, receipts list with inline details, summary box, drill-downs. Tokens only. */
.stats-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.stats-head h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
table.list td.cut { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
table.list td.cut.cut-sm { max-width: 140px; }
/* The flexible name column of a statistics table never shrinks to nothing; a wider table scrolls inside its card. */
table[data-columns^="stats-"] td.trunc.name, table.receipts td.trunc.name { min-width: 150px; }
.kpi strong small { font-size: 13px; font-weight: 500; }
/* Drill-down dashboards: money tiles wide enough for «1 284 491,00 ₴»; a column of stacked panels */
.kpis.stats-kpis.drill-kpis { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.kpis.drill-kpis .kpi strong { font-size: 20px; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack > .panel, .stack > .card { margin-bottom: 0; }
table.list th.risk, table.list td.risk, table.list th.fisc, table.list td.fisc { text-align: center; width: 1%; padding-left: 6px; padding-right: 6px; }
table.list td.rid a { font-variant-numeric: tabular-nums; }
table.list tr.row-return > td { background: color-mix(in srgb, var(--danger-soft) 65%, transparent); }
table.list tr.row-return:hover > td { background: var(--danger-soft); }
table.list td.act .btn-link { font-size: 13.5px; margin-right: 4px; vertical-align: middle; }
table.list td.act > .dropdown { vertical-align: middle; }
/* Fiscal dot (Poster «Фіск.»): green = fiscal receipt, amber = fiscal return, hollow = none, red = not sent */
.fdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--border-strong); vertical-align: -1px; margin-right: 6px; }
td.fisc .fdot { margin-right: 0; }
.fdot.ok { background: var(--ok-fill); border-color: var(--ok-fill); }
.fdot.ret { background: var(--warn); border-color: var(--warn); }
.fdot.fail { background: var(--danger-fill); border-color: var(--danger-fill); }
.amount-pop { width: 260px; padding: 12px; gap: 10px; }
.amount-pop .btn { width: 100%; }

/* Receipt details (inline under a row and on the receipt page): meta, tabs Рахунок / Історія / Списання / Відгук */
.rcpt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 1100px; }
.rcpt-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 20px; margin: 0; }
.rcpt-meta dt { font-size: 12px; color: var(--muted); }
.rcpt-meta dd { margin: 1px 0 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.rcpt-meta dd small { margin-left: 6px; font-weight: 400; }
.rcpt-meta .risk-text { color: var(--warn); }
.rtabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; }
.rtabs > input { position: absolute; opacity: 0; pointer-events: none; }
.rtabs > label {
  display: inline-block; padding: 6px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0;
  font-size: 13.5px; font-weight: 500; color: var(--link); cursor: pointer; margin-bottom: -1px; position: relative; z-index: 1;
}
.rtabs > label:hover { color: var(--accent-hover); }
.rtabs > input:checked + label { color: var(--text); background: var(--surface); border-color: var(--line); }
.rtabs > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; }
.rtab { display: none; flex: 1 0 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 0 8px 8px 8px; padding: 12px 16px; }
.rtabs > input[value="bill"]:checked ~ .rtab-bill,
.rtabs > input[value="history"]:checked ~ .rtab-history,
.rtabs > input[value="stock"]:checked ~ .rtab-stock,
.rtabs > input[value="review"]:checked ~ .rtab-review { display: block; }
.rtab .hint { margin: 10px 0 0; }
.rtab p { margin: 0 0 6px; }
table.bill { width: 100%; margin: 0; border: 0; border-radius: 0; background: transparent; }
table.bill th, table.bill td { height: 34px; padding: 6px 10px; white-space: nowrap; }
table.bill th:first-child, table.bill td:first-child { padding-left: 0; }
table.bill th:last-child, table.bill td:last-child { padding-right: 0; }
table.bill thead th { position: static; font-size: 12.5px; background: transparent; }
table.bill td.bill-name { white-space: normal; width: 60%; }
table.bill td.bill-name small { margin-left: 6px; }
table.bill tfoot td { background: transparent; height: 34px; }
table.bill tr.ev-close > td { background: var(--danger-soft); }
table.bill tr.ev-risk > td { background: var(--warn-soft); }
.bill-total { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font-weight: 600; }
.bill-total i { flex: 1; border-bottom: 1px solid var(--border); transform: translateY(-4px); }
.bill-total b { font-size: 15px; font-variant-numeric: tabular-nums; }
.bill-notes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; margin-top: 6px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Poster's summary box under the receipts (Виторг, Готівка, Картки… + «Детальніше ▾») */
.sumbox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin: 12px 16px 16px; padding: 14px 18px; background: var(--surface-2); border-radius: var(--radius-sm); }
.sumbox > div, .sumbox-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sumbox span, .receipt-sum span { font-size: 13px; color: var(--muted); }
.sumbox b, .receipt-sum b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sumbox b .zero, .receipt-sum b .zero { font-weight: 500; }
.sumbox-more { margin-left: auto; }
.sumbox-more > summary { list-style: none; }
.sumbox-more > summary::-webkit-details-marker { display: none; }
.sumbox-more[open] { flex: 1 0 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.sumbox-more[open] .pp-caret { transform: rotate(180deg); }
.sumbox-grid { align-self: stretch; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.sumbox-grid b { font-size: 16px; }
.receipt-sum { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 14px 20px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.receipt-sum > div { display: flex; flex-direction: column; gap: 2px; }

/* Trend badges inside tables (Заклади: change against the previous period) */
td .trend { font-weight: 600; font-size: 12.5px; color: var(--muted); }
td .trend.up { color: var(--ok); }
td .trend.down { color: var(--danger); }
/* ABC segment cells (Poster: A green, B yellow, C pink, a bold letter) */
table.list th.abc-head { text-align: center; width: 1%; }
table.list td.abc-cell { text-align: center; font-weight: 700; width: 1%; padding-left: 14px; padding-right: 14px; }
table.list td.abc-A { background: var(--ok-soft); color: var(--ok); }
table.list td.abc-B { background: var(--warn-soft); color: var(--warn); }
table.list td.abc-C { background: var(--danger-soft); color: var(--danger); }
/* Group rows of a report table (Податки: Фіскальні продажі / повернення / нефіскальні) */
table.list tr.group-row > td { background: var(--surface-3); font-weight: 600; color: var(--text); }
table.list td.indent { padding-left: 28px; }
.table-foot-note { margin: 0; padding: 10px 16px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
/* Collapsible card with the store QR links (Відгуки) */
details.qr-links > summary { list-style: none; cursor: pointer; }
details.qr-links > summary::-webkit-details-marker { display: none; }
details.qr-links:not([open]) > summary { border-bottom: 0; }
details.qr-links > summary h2::after { content: " ▾"; color: var(--muted); font-weight: 400; }
details.qr-links[open] > summary h2::after { content: " ▴"; }

/* Public review page /r/{code}: a phone-first card */
body.review-page { min-height: 100vh; margin: 0; background: linear-gradient(180deg, var(--accent-soft) 0, var(--bg) 320px); }
.review-shell { width: min(460px, 100%); margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px 32px; display: grid; gap: 16px; }
.review-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.review-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.review-logo .icon { width: 20px; height: 20px; }
.review-card { display: grid; gap: 16px; padding: 24px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.review-card h1 { margin: 0; text-align: center; font-size: 24px; }
.review-lead { margin: -8px 0 0; text-align: center; color: var(--muted); }
.review-card .star-input { border: 0; padding: 0; margin: 0; background: none; gap: 4px; }
.review-card .star-input label { font-size: 48px; min-width: 52px; text-align: center; padding: 2px 0; -webkit-tap-highlight-color: transparent; }
.star-hint { display: flex; justify-content: space-between; margin: -10px 8px 0; font-size: 12px; color: var(--muted); }
.review-field { gap: 6px; font-size: 14px; color: var(--text); }
.review-field small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.review-field textarea, .review-field input { font-size: 16px; }
.review-submit { width: 100%; min-height: 48px; font-size: 16px; }
.review-note { margin: -4px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.review-done { justify-items: center; text-align: center; padding: 36px 20px; }
.review-done p { margin: 0; color: var(--muted); }
.review-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.review-check .icon { width: 32px; height: 32px; }

@media (max-width: 900px) {
  .stats-tools { justify-content: flex-start; width: 100%; flex-wrap: wrap; align-items: flex-start; }
  .stats-tools .btn-text { display: none; }
  .stats-tools > .period-picker { width: auto; flex: 1 1 auto; min-width: 0; }
  .sumbox { margin: 12px; gap: 10px 20px; }
  .sumbox b { font-size: 16px; }
  .rtab { padding: 10px 12px; }
  table.bill { display: table; }
  table.bill td.bill-name { min-width: 140px; }
  .rtab { overflow-x: auto; }
  /* The inline details stay in view while the wide receipts table scrolls sideways */
  tr.detail-row > td { padding-left: 12px; padding-right: 12px; }
  tr.detail-row .rcpt { position: sticky; left: 12px; width: calc(100vw - 58px); }
}
/* === end area: stats === */
/* === area: menustock === */
/* Меню → Товари: the photo column (Poster: 40 px thumbnail, empty without a photo) and store prices */
table.list th.thumbcol, table.list td.thumbcol { width: 44px; padding-right: 0; }
table.list strong.store-price { color: var(--accent-text); }
.bulkbar .ms-percent { width: 130px; }
/* Товар: Poster's price equation «Собівартість + Націнка = Всього» */
.price-eq { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.price-eq > label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; width: 132px; }
.price-eq > .op { font-size: 22px; line-height: 34px; color: var(--decor); padding: 0 2px; }
.price-eq input[readonly] { background: var(--surface-2); color: var(--text-2); }
.hint-link { margin-left: 8px; font-size: 13px; }
.store-prices { max-height: 560px; overflow: auto; }
table.list tr.row-own > td { background: var(--accent-soft); }
table.list tr.row-own:hover > td { background: var(--accent-soft); }
.card-dl { margin-top: 12px; }
/* Категорії: the tree (indent by depth, with a guide) */
.tree-cell { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.tree-cell[data-depth="1"] { padding-left: 22px; } .tree-cell[data-depth="2"] { padding-left: 44px; }
.tree-cell[data-depth="3"] { padding-left: 66px; } .tree-cell[data-depth="4"] { padding-left: 88px; }
.tree-cell[data-depth="5"] { padding-left: 110px; } .tree-cell[data-depth="6"] { padding-left: 132px; }
.tree-cell[data-depth="7"] { padding-left: 154px; } .tree-cell[data-depth="8"] { padding-left: 176px; }
.tree-cell:not([data-depth="0"])::before { content: ""; width: 10px; height: 10px; margin-left: -16px; border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); border-bottom-left-radius: 3px; transform: translateY(-4px); flex: none; }
.tree-cell > a { overflow: hidden; text-overflow: ellipsis; }
table.categories tr:not([data-depth]) td.name .tree-cell[data-depth="0"] > a { font-weight: 600; }
/* Друк цінників */
.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.tags-settings .seg small { color: var(--muted); font-weight: 400; }
table.list td.qty-cell { width: 90px; }
table.list td.qty-cell input { width: 64px; height: 30px; min-height: 30px; padding-top: 2px; padding-bottom: 2px; text-align: right; font-variant-numeric: tabular-nums; }
/* Списання: reason dots (Poster colours reasons automatically; «Без причини» is blue) */
.dot.rdot-1 { background: var(--chart-1); } .dot.rdot-2 { background: var(--chart-4); } .dot.rdot-3 { background: var(--chart-3); }
.dot.rdot-4 { background: var(--chart-2); } .dot.rdot-5 { background: var(--chart-7); } .dot.rdot-6 { background: var(--chart-5); }
.dot.rdot-7 { background: var(--chart-6); } .dot.rdot-8 { background: var(--chart-8); }
.directory-form .fields { width: 100%; }
/* Звіт за рухом: the report always has a period, so the chip hides «Весь час» */
.no-alltime { display: contents; }
.no-alltime .presets > a:last-child { display: none; }
.page-hint { margin: -8px 0 12px; }
/* Інвентаризації: Poster's counting grid (vertical cell borders, frozen name column, editable «Факт. залишок») */
.head-meta { font-size: 13px; }
.count-add { gap: 12px; flex-wrap: wrap; }
.count-add .picker { flex: 1 1 320px; }
.count-add .scan-qty { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.count-add .scan-qty input { width: 80px; text-align: right; }
.count-scroll { overflow-x: auto; }
table.count-grid th, table.count-grid td { border-right: 1px solid var(--line); }
table.count-grid th:last-child, table.count-grid td:last-child { border-right: 0; }
table.count-grid .frozen { position: sticky; left: 0; z-index: 2; background: var(--surface-2); min-width: 220px; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
table.count-grid thead .frozen { z-index: 6; }
table.count-grid td.fact { width: 150px; }
table.count-grid .count-input { width: 140px; margin-left: auto; }
table.count-grid .count-input input { text-align: right; height: 30px; min-height: 30px; font-variant-numeric: tabular-nums; }
table.count-grid tr:focus-within > td { background: var(--selected); }
table.count-grid tr:focus-within > td.frozen { background: var(--selected); }
small.unit { color: var(--muted); font-size: 12px; }
.savebar-totals b.positive { color: var(--ok); }
.done-panel { text-align: center; padding: 28px 20px; }
.done-check .icon { width: 64px; height: 64px; color: var(--ok-fill); }
.done-panel h2 { color: var(--ok); font-size: 22px; margin: 6px 0 10px; }
.done-panel p { margin: 6px 0; }
.done-result b { font-size: 20px; }
/* Додавання інвентаризації: category only for a partial count; «Почати» waits for a store (with the reason next to it) */
.stocktake-new:not(:has(input[name="kind"][value="partial"]:checked)) .partial-only { display: none; }
.stocktake-new:has(select[name="LocationId"] option[value=""]:checked) .savebar .btn-primary { opacity: .5; pointer-events: none; }
.stocktake-new:not(:has(select[name="LocationId"] option[value=""]:checked)) .need-store { display: none; }
/* === end area: menustock === */
/* === area: finacc === */
/* Finance, Access, till admin pages (feat/ui-finacc). Tokens only. */

/* A small modal form with labels on the left (Poster «Додати транзакцію», «Редагування транзакції»). */
.modal-rows { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.modal-rows > label:not(.check) { display: contents; font-size: 14px; font-weight: 400; color: var(--text-2); }
.modal-rows > label.check { grid-column: 2; }
.modal-rows > span { font-size: 14px; color: var(--text-2); }
.modal-rows .hint { cursor: help; }

/* «Додати транзакцію»: fields follow the chosen type (no script: :has on the checked radio). */
.op-form:has(input[name=kind][value=transfer]:checked) .op-io { display: none; }
.op-form:not(:has(input[name=kind][value=transfer]:checked)) .op-transfer { display: none; }
.op-form:has(input[name=kind][value=income]:checked) .cat-expense,
.op-form:has(input[name=kind][value=expense]:checked) .cat-income { display: none; }
.op-form:not(:has(input[name=hasDeal]:checked)) .op-deal { display: none; }

/* Transactions: a cancelled one stays in the list, crossed out (Poster). */
table.list tr.row-cancelled > td:not(.act) { text-decoration: line-through; text-decoration-color: var(--faint); }

/* Small notes under a list, inside its card. */
.list-note { margin: 0; padding: 0 16px 12px; font-size: 12.5px; }
.filter-title { color: var(--muted); font-size: 13px; }
.warn-text { color: var(--warn); font-weight: 500; }
.big-num { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.card-chart { padding: 4px 16px 12px; }
.card-chart .fin-chart-box { border: 0; margin: 0; padding: 0; background: none; }
.card-bar p { margin: 0; }

/* Poster's iOS-like switch, submitted as a form button: <button class="toggle on" role="switch"> */
.toggle {
  position: relative; display: inline-block; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--border-strong); vertical-align: middle; transition: background-color .15s ease;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface);
  box-shadow: var(--shadow-xs); transition: transform .15s ease;
}
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(16px); }
.toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }

/* A pair of POST buttons that works like a segmented choice (Poster [Так | Ні], «Собівартість | Витрати»). */
.seg-buttons { display: inline-flex; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: var(--radius-sm); overflow: hidden; }
.seg-buttons button {
  font: inherit; font-size: 13px; font-weight: 500; padding: 4px 14px; border: 0; background: var(--surface); color: var(--accent-text); cursor: pointer;
}
.seg-buttons button + button { border-left: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }
.seg-buttons button:hover { background: var(--accent-soft); }
.seg-buttons button.active { background: var(--accent-soft); color: var(--text); font-weight: 600; }

/* Category form: the «Податки» block exists only for expenses. */
form:has(input[name=kind][value=income]:checked) .cat-tax { display: none; }

/* Cash shifts: the expander, the row that opens and its inside (Poster «Касові зміни»). */
.expander .icon { transition: transform .15s ease; }
.expander[aria-expanded="true"] .icon { transform: rotate(90deg); }
table.fin-shifts td.chev, table.fin-shifts th.chev { width: 40px; padding-left: 8px; padding-right: 0; }
table.fin-shifts tr.is-open > td { background: var(--selected); }
.float-gap { margin: 0 0 0 4px; cursor: help; }
tr.shift-open-row > td { background: var(--surface-2); padding: 14px 20px 16px 48px; height: auto; white-space: normal; }
tr.shift-open-row:hover > td { background: var(--surface-2); }
.shift-detail { display: grid; gap: 12px; }
.shift-figures { display: flex; flex-wrap: wrap; gap: 10px 40px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.shift-figures > div { display: grid; gap: 2px; min-width: 140px; }
.shift-figures span { font-size: 13px; color: var(--muted); }
.shift-figures b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.shift-figures b.in { color: var(--ok); }
.shift-figures b.out { color: var(--danger); }
.shift-meta { margin: 0; font-size: 13px; }
.shift-detail table.shift-moves { width: 100%; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.shift-detail table.shift-moves th, .shift-detail table.shift-moves td { height: 36px; padding: 6px 12px; }
.shift-detail table.shift-moves thead th { position: static; font-size: 12.5px; }
.shift-linked .panel-head h2 { font-size: 16px; }

/* P&L and Cash flow: Poster's tree table (grey group rows with ›/⌄, 35 px rows, грн | % per period). */
table.pl-tree { white-space: nowrap; }
table.pl-tree th, table.pl-tree td { height: 35px; padding: 6px 12px; }
table.pl-tree thead th.period { text-align: right; color: var(--text-2); font-weight: 600; }
table.pl-tree thead tr.sub th { font-weight: 400; font-size: 12px; color: var(--faint); height: 28px; }
table.pl-tree tbody td:first-child { position: sticky; left: 0; z-index: 1; min-width: 280px; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
table.pl-tree tbody tr.pl-block td { background: var(--surface-3); font-weight: 600; color: var(--text); }
table.pl-tree tbody tr.pl-line td:first-child { padding-left: 44px; color: var(--text-2); }
table.pl-tree tbody tr.pl-result td { background: var(--accent-soft); font-weight: 700; color: var(--text); }
table.pl-tree tbody tr.pl-margin td { font-weight: 600; }
table.pl-tree td.neg { color: var(--text); }
table.pl-tree td.total { font-weight: 600; }
table.pl-tree td.pct-cell { color: var(--muted); font-size: 13px; }
table.pl-tree td.split { color: var(--text-2); }
table.pl-tree tbody tr:hover td { background: var(--row-hover); }
table.pl-tree tbody tr.pl-block:hover td { background: var(--surface-3); }
table.pl-tree tbody tr td.zero { color: var(--faint); }
.fold { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.fold:hover { color: var(--accent); text-decoration: none; }
.fold .icon { width: 16px; height: 16px; color: var(--muted); }
.fold-pad { padding-left: 22px; }
a.drill { color: inherit; }
a.drill:hover { color: var(--accent); }
.card-alert { margin: 12px 16px 0; }

/* Access: position indicators and masked employee PINs. */
.role-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--decor); }
.role-dot.c0 { background: var(--accent); }
.role-dot.c1 { background: var(--chart-2, var(--accent)); }
.role-dot.c2 { background: var(--chart-3, var(--accent)); }
.role-dot.c3 { background: var(--chart-4, var(--accent)); }
.role-dot.c4 { background: var(--chart-5, var(--accent)); }
.role-dot.c5 { background: var(--chart-6, var(--accent)); }
.role-dot.c6 { background: var(--chart-7, var(--accent)); }
.role-dot.c7 { background: var(--chart-8, var(--accent)); }
.role-tag { margin-right: 12px; white-space: nowrap; }
.pin-mask { letter-spacing: .15em; color: var(--text-2); margin-right: 6px; }
.card-title { margin: 0 0 14px; font-size: 16px; }
.card-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-head-row .card-title { margin: 0; }
.inline-value { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-rows > .row > span:first-child { color: var(--text); }

/* Position form: Poster's matrix «Розділи × Без доступу / Перегляд / Повний доступ». */
table.matrix th.c, table.matrix td.c { text-align: center; width: 130px; }
table.matrix td.c input[type=radio] { width: 18px; height: 18px; }
table.matrix tr.matrix-row > td { border-bottom: 0; font-weight: 500; height: 36px; padding-bottom: 0; }
table.matrix tr.matrix-detail > td { height: auto; padding-top: 0; padding-bottom: 6px; line-height: 1.2; }
table.matrix tr.matrix-detail summary { display: inline-block; cursor: pointer; color: var(--link); font-size: 12.5px; list-style: none; }
table.matrix tr.matrix-detail summary::-webkit-details-marker { display: none; }
table.matrix tr.matrix-detail details[open] summary { margin-bottom: 8px; }
table.matrix tr.matrix-detail .checks { white-space: normal; padding: 4px 0 6px 12px; }
table.matrix tr:hover > td { background: none; }
.till-checks { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Employee access: stores grouped by region; the picker hides when «Усі заклади» is chosen. */
.grant-form:has(input[name=AllLocations][value=true]:checked) .scope-pick { display: none; }
.scope-pick { margin-top: 16px; }
.store-groups { display: grid; gap: 6px; }
.store-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; }
.store-group summary { cursor: pointer; font-weight: 500; }
.store-group[open] summary { margin-bottom: 8px; }

/* Stores list: a store's tills as dots with names. */
.till-tag { margin-right: 10px; white-space: nowrap; }
.doc-meta > div.wide { grid-column: 1 / -1; }
.page-note { font-size: 12.5px; margin-top: 4px; }

/* Till registration: the one-time activation code. */
.activation-code .code { font: 700 40px/1.2 var(--mono); letter-spacing: .12em; margin: 8px 0; color: var(--text); }

/* A date input that sits in a filter bar like a chip (POS journal: «День»). */
.date-chip { display: inline-flex; align-items: center; gap: 6px; position: relative; margin: 0; }
.date-chip .icon { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.date-chip input[type=date] { width: auto; padding-left: 32px; font-weight: 500; color: var(--text-2); }

/* Integrations: one card per connected system (Poster «Застосунки» look). */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 12px; }
.app-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.app-card header { display: flex; gap: 12px; align-items: flex-start; }
.app-card header h2 { margin: 0 0 2px; font-size: 16px; }
.app-card header .muted { font-size: 13px; }
.app-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.app-icon .icon { width: 20px; height: 20px; }
.app-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: 13px; }
.app-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.app-jobs li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.app-jobs .app-job-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-jobs li.app-error { display: block; background: var(--danger-soft); color: var(--danger); white-space: normal; }
.app-card footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.step-card h2 { margin-top: 0; }
.step-card form + form, .step-card .step-dates { margin-top: 12px; }
.step-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.step-dates label { display: grid; gap: 4px; }
.step-dates input[type=date] { width: 160px; }
.step-card .alert { margin: 12px 0 0; }

/* Regions: rename inline. Taxes: a select with its save button. */
.inline-rename, .tax-pick { display: flex; align-items: center; gap: 8px; margin: 0; }
.inline-rename input { max-width: 360px; }
.tax-pick select { max-width: 320px; }

/* Sign-in: Poster-like split screen (brand panel + form card); one column on phones. */
body.auth:has(.login-split) .auth-wrap { width: min(920px, 100%); }
.login-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); width: 100%; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-pop); }
.login-hero {
  display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 40px 36px;
  background: linear-gradient(145deg, var(--accent), var(--accent-press)); color: var(--on-accent);
}
.login-hero h2 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 650; }
.login-hero ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.login-hero li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; opacity: .95; }
.login-hero li .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.login-split .login-card { border: 0; border-radius: 0; box-shadow: none; padding: 40px 36px; align-content: center; }
.login-fields { display: grid; gap: 12px; }
.login-actions { display: grid; gap: 8px; }
.login-card h1 { text-align: left; margin: 0 0 4px; font-size: 22px; }
.login-sub { margin: 0; font-size: 13.5px; }
.login-help { margin: 0; font-size: 12.5px; text-align: center; }
.login-card .btn-lg { width: 100%; }
.input-icon { position: relative; display: block; }
.input-icon .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--decor); pointer-events: none; }
.input-icon input { padding-left: 36px; min-height: 40px; }

/* Payroll rate form: «За годину + За зміну». */
.rate-sum { display: flex; align-items: flex-end; gap: 8px; }
.rate-sum > label { display: grid; gap: 4px; flex: 1; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.rate-sum .plus { color: var(--decor); font-size: 18px; padding-bottom: 6px; }

@media (max-width: 900px) {
  body.auth:has(.login-split) .auth-wrap { width: min(440px, 100%); gap: 16px; }
  .login-split { grid-template-columns: minmax(0, 1fr); }
  .login-hero { display: none; }
  .login-split .login-card { padding: 24px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  tr.shift-open-row > td { padding: 12px; }
  .shift-figures { gap: 10px 24px; }
  .modal-rows { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .modal-rows > label.check { grid-column: 1; }
}
/* === end area: finacc === */
/* === area: mkt === */
/* Wide lists of the marketing pages (Poster's client list has 13 columns): tighter cell padding. */
table.list.mkt-dense th, table.list.mkt-dense td { padding-left: 8px; padding-right: 8px; }
.card table.list.mkt-dense th:first-child, .card table.list.mkt-dense td:first-child { padding-left: 16px; }
.card table.list.mkt-dense th:last-child, .card table.list.mkt-dense td:last-child { padding-right: 12px; }
/* «+ Фільтр»: a chip that opens the extra conditions; applied conditions show as dark chips with × */
.mkt-more > summary.chip .icon, .mkt-chips .chip .icon { width: 14px; height: 14px; }
.mkt-filter-menu { width: 320px; gap: 8px; padding: 12px; }
.mkt-filter-menu .menu-label { padding: 0 0 2px; }
.mkt-filter-menu label.check { font-size: 14px; }
.mkt-field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.mkt-range { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.mkt-range input { min-width: 0; }
.mkt-chips { display: contents; }
/* Card header: long names truncate next to the tabs */
.mkt-title { max-width: min(46vw, 520px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Form rows: two inputs in one row (Прізвище + Ім'я), short inputs with a unit */
.mkt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.form-rows .mkt-short { max-width: 220px; }
.form-rows .mkt-indent { margin: 0; padding-left: 240px; }
/* Group form: the bonus rules only for the bonus programme */
.mkt-group-form:has(input[name=loyaltyKind][value=discount]:checked) .mkt-bonus-only { display: none; }
/* Period chip above the purchases tab */
.mkt-periodbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 16px; }
.mkt-periodbar .muted { font-size: 13px; }
/* Settings pages (Програми лояльності, Виключення): a lead paragraph and card headings */
.mkt-lead { max-width: 920px; margin: 0 0 16px; }
.card h2.mkt-h, .mkt-programme > h2 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.mkt-programme .form-rows { margin-top: 8px; }
.mkt-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mkt-inline-form select { width: auto; min-width: 240px; max-width: 420px; }
.mkt-short-select { max-width: 220px; }
.mkt-card-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.savebar .mkt-inline-form { flex-wrap: nowrap; }
input.mkt-ttn { width: 200px; }
/* «Умови переходу»: shown only when «Перехід між групами» is on */
.mkt-programme .mkt-moves { display: none; align-items: start; }
.mkt-programme:has(option[value="on"]:checked) .mkt-moves { display: grid; }
.mkt-move-list { display: grid; gap: 8px; }
.mkt-move { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 12px; font-size: 14px; font-weight: 400; color: var(--text); }
.mkt-move-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-move-name small { color: var(--muted); margin-left: 6px; }
/* Promotion form: fields follow the chosen result and store scope (CSS only, works without JS) */
.mkt-promo .mkt-for-n, .mkt-promo .mkt-for-receipt, .mkt-promo .mkt-stores, .mkt-promo .mkt-uah { display: none; }
.mkt-promo:has(input[name=Kind][value=n_plus_one]:checked) .mkt-for-n,
.mkt-promo:has(input[name=Kind][value=receipt_percent]:checked) .mkt-for-receipt,
.mkt-promo:has(input[name=AllLocations][value=false]:checked) .mkt-stores { display: grid; }
.mkt-promo:has(input[name=Kind][value=n_plus_one]:checked) .mkt-for-value,
.mkt-promo:has(input[name=Kind][value=receipt_percent]:checked) .mkt-for-targets,
.mkt-promo:has(input[name=Kind][value=fixed_price]:checked) .mkt-pct { display: none; }
.mkt-promo:has(input[name=Kind][value=fixed_price]:checked) .mkt-uah { display: inline; }
.mkt-promo .form-rows .seg { justify-self: start; }
.mkt-promo .form-rows > label:has(select[multiple]) { align-items: start; }
.mkt-kinds { display: grid; gap: 8px; }
.mkt-days { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mkt-time { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.mkt-time input { width: 130px; }
.mkt-store-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.mkt-region > summary { cursor: pointer; font-weight: 500; color: var(--text); padding: 2px 0; }
.mkt-region > summary small { color: var(--muted); margin-left: 6px; }
.mkt-region .checks { padding: 6px 0 4px 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.form-rows input.mkt-short, .modal-body input.mkt-short { max-width: 220px; }
/* «Ще» pages */
.mkt-channel:has(input[name=allLocations]:checked) .mkt-channel-stores { display: none; }
.mkt-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc-meta .mkt-wide { grid-column: 1 / -1; }
.mkt-instructions { margin: 14px 0 0; }
.mkt-pad { padding: 12px 20px 0; margin: 0 0 12px; font-size: 13px; }
th.mkt-thumb-col, td.mkt-thumb-col { width: 52px; padding-right: 0; }
.mkt-thumb { display: block; width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--surface-3); }
.mkt-dup { display: block; margin-top: 4px; color: var(--danger); font-size: 12.5px; }
.mkt-note { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 900px) {
  .mkt-pair { grid-template-columns: minmax(0, 1fr); }
  .mkt-move { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .kpis.mkt-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mkt-summary .kpi strong { font-size: 18px; }
  .form-rows .mkt-indent { padding-left: 0; }
  .mkt-filter-menu { width: min(320px, calc(100vw - 32px)); }
}
/* === end area: mkt === */

/* === area: salesdata === */
/* Poster «Чеки»: open receipts yellow, deleted ones pink (the row colour carries the status). */
table.list tr.row-open > td { background: var(--warn-soft); }
table.list tr.row-open:hover > td { background: color-mix(in srgb, var(--warn-soft) 70%, var(--warn-border)); }
table.list tr.row-deleted > td { background: var(--danger-soft); color: var(--muted); }
table.list tr.row-deleted > td.num strong { text-decoration: line-through; font-weight: 500; }
table.list tr.row-deleted:hover > td { background: color-mix(in srgb, var(--danger-soft) 70%, var(--danger-border)); }
table.bill tr.ev-open > td { background: var(--ok-soft); }
.rcpt .rcpt-status { margin: 0 0 12px; }
.rcpt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.rcpt-meta .wide { grid-column: 1 / -1; }
.channel-bars .muted { font-size: 12px; }
.store-address { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
/* === end area: salesdata === */
/* === area: stockparity === */
/* Date + time of a document or a count (Poster «Дата та час»). */
.datetime { display: inline-flex; gap: 8px; align-items: center; width: 100%; }
.datetime input[type=date] { flex: 1 1 150px; min-width: 0; }
.datetime input[type=time] { flex: 0 0 110px; }
.doc-header .doc-header-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.lines-scroll { overflow-x: auto; }
table.lines td.tax { width: 130px; }
table.lines td.tax select { min-width: 110px; }
table.lines td.detail-cell { min-width: 160px; }
table.lines td.detail-cell input { width: 100%; }
/* Poster's last-price hint under the price input: grey; ▴ dearer, ▾ cheaper than the last supply. */
.last-price { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.last-price .icon { width: 12px; height: 12px; }
.last-price.up { color: var(--danger); }
.last-price.down { color: var(--ok); }
/* «Імпорт постачання»: a dashed drop zone with the file input. */
.import-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.import-zone .hint { flex-basis: 100%; margin: 0; }
.import-drop {
  flex: 1 1 320px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-weight: 400; cursor: pointer;
}
.import-drop:hover { border-color: var(--accent); }
.import-drop .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.import-drop input[type=file] { flex: 1 1 200px; min-width: 0; font-size: 13px; }
/* Poster «+ Фільтр»: a chip with a small popover of conditions. */
.more-filter > summary .icon { width: 16px; height: 16px; }
.filter-pop { min-width: 260px; gap: 10px; padding: 12px; }
.filter-pop .filter-row { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filter-pop .range { display: flex; align-items: center; gap: 6px; }
.filter-pop .range input { width: 100px; }
.filter-pop select { width: 100%; }
/* Multi-select of stores (Poster «Склад (2)»). */
.multi-select > summary .icon { width: 14px; height: 14px; }
.multi-select .menu-list { min-width: 260px; max-height: min(60vh, 420px); }
.multi-select .menu-list input[type=search] { margin: 2px 2px 6px; width: calc(100% - 4px); }
.multi-select .menu-item.check { gap: 8px; white-space: normal; }
/* Limits typed in the «Залишки» table. */
td.limit-cell { width: 110px; }
td.limit-cell input { width: 90px; min-height: 30px; padding: 4px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.list-hint { margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
/* Stock takes: «Минулою датою» fields, the category tree, picked products, partial counts under a full one. */
form:not(:has(input[name="check"][value="past"]:checked)) .past-only { display: none; }
form:has(input[name="check"][value="past"]:checked) .now-only { display: none; }
.cat-pick { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 520px; }
.cat-tree { list-style: none; margin: 0; padding: 4px 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cat-tree li { padding: 3px 10px; border-bottom: 1px solid var(--line); }
.cat-tree li:last-child { border-bottom: 0; }
.cat-tree li:hover { background: var(--row-hover); }
.cat-tree li.depth-1 { padding-left: 30px; }
.cat-tree li.depth-2 { padding-left: 50px; }
.cat-tree li.depth-3 { padding-left: 70px; }
.cat-tree li.depth-4, .cat-tree li.depth-5 { padding-left: 90px; }
.product-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; max-width: 520px; }
.product-pick .picker { flex: 1 1 260px; }
.product-pick .picked { list-style: none; margin: 0; padding: 0; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.product-pick .picked li { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-radius: var(--radius-sm); background: var(--surface-3); font-size: 13px; }
tr.row-child > td { background: var(--surface-2); font-size: 13px; }
tr.row-child .child-name a { color: var(--muted); padding-left: 12px; }
.stocktake .head-meta b { color: var(--text-2); font-weight: 600; }
/* Price tags: a comment under the name, category headers of the grouped list, the quantities table of the sheet. */
.price-tag-comment { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
tr.group-row > td { background: var(--surface-2); font-weight: 600; color: var(--text-2); }
.tags-qty { margin-top: 14px; }
.tags-qty input { width: 100%; }
@media (max-width: 700px) {
  .datetime { flex-wrap: wrap; }
  .filter-pop { min-width: min(260px, calc(100vw - 32px)); }
}
/* === end area: stockparity === */
/* === area: finmkt === */
/* Finance: transaction time, category tree, P&L tree and store split, cash shifts width */
table.fin-ops td.op-when b { margin-right: 6px; }
table.fin-ops td.op-when .op-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.op-moment { display: flex; gap: 8px; }
.op-moment input[type=date] { flex: 1 1 auto; min-width: 0; }
.op-moment input[type=time] { flex: 0 0 104px; }
.checks-inline { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
table.list td.cat-depth-1 { padding-left: 36px; }
table.list td.cat-depth-2 { padding-left: 60px; }
table.list td.cat-depth-3 { padding-left: 84px; }
table.list .cat-chev .icon { width: 14px; height: 14px; color: var(--muted); vertical-align: -2px; margin-right: 2px; }
.pl-scroll { overflow-x: auto; }
table.pl-tree tbody tr.pl-line.pl-depth-1 td:first-child { padding-left: 64px; }
table.pl-tree tbody tr.pl-line.pl-depth-2 td:first-child { padding-left: 84px; }
table.pl-tree tbody tr.pl-line.pl-depth-3 td:first-child { padding-left: 104px; }
table.pl-tree tbody tr.pl-parent td { font-weight: 600; }
table.pl-tree .pl-chev { width: 14px; height: 14px; margin-left: -18px; margin-right: 4px; color: var(--muted); vertical-align: -2px; }
table.pl-tree thead th.store-head { text-align: center; border-left: 1px solid var(--line); color: var(--text); max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.pl-store-pick { max-height: 360px; overflow-y: auto; min-width: 280px; }
.pl-store-pick .menu-item.check { display: flex; gap: 8px; align-items: center; }
/* Cash shifts: the cashier is the flexible column; numbers keep compact padding so the table fits the card. */
table.fin-shifts td.cashier { min-width: 120px; }
table.fin-shifts th.num, table.fin-shifts td.num { padding-left: 8px; padding-right: 8px; }
table.fin-shifts td.store-code { white-space: nowrap; }
.fin-shifts-wrap { overflow-x: auto; }
.shift-moves-actions { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
table.shift-moves td.act { width: 1%; white-space: nowrap; }
.bank-upload .drop-area { display: block; border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 18px; background: var(--surface-2); }
.bank-errors { margin-top: 8px; }
.bank-errors ul { margin: 6px 0 0 18px; color: var(--muted); }
table.bank-rows select { max-width: 100%; }
/* Payment method colours (Poster palette): the theme's status colours, violet / teal / yellow as fallbacks. */
.pm-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; background: var(--surface-3); border: 1px solid var(--border-strong); }
.pm-swatch.pm-blue { background: var(--accent); border-color: transparent; }
.pm-swatch.pm-green { background: var(--ok); border-color: transparent; }
.pm-swatch.pm-orange { background: var(--warn); border-color: transparent; }
.pm-swatch.pm-red { background: var(--danger); border-color: transparent; }
.pm-swatch.pm-violet { background: var(--chart-7, rebeccapurple); border-color: transparent; }
.pm-swatch.pm-teal { background: var(--chart-3, teal); border-color: transparent; }
.pm-swatch.pm-yellow { background: var(--chart-4, goldenrod); border-color: transparent; }
.pm-swatch.pm-grey { background: var(--faint); border-color: transparent; }
.pm-colors { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pm-colors label { display: inline-flex; align-items: center; padding: 4px; border-radius: 6px; cursor: pointer; }
.pm-colors input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-colors input:checked + .pm-swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.pm-colors .pm-swatch { width: 20px; height: 20px; margin: 0; }
.hours-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hours-row input[type=time] { width: 110px; }
.card .mkt-pad { padding: 12px 20px; margin: 0; }
.mkt-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mkt-address-grid .wide { grid-column: 1 / -1; }
.mkt-more-addresses > summary { list-style: none; margin: 4px 0 4px 240px; }
.mkt-more-addresses > summary::-webkit-details-marker { display: none; }
.mkt-more-addresses[open] > summary { display: none; }
.mkt-more-addresses > .row { margin-top: 14px; }
@media (max-width: 720px) { .mkt-more-addresses > summary { margin-left: 0; } }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
/* === end area: finmkt === */

/* Employee salary report: filters, KPI summary, detail tables, and accrual breakdown. */
.salary-report-heading { margin: 20px 0 12px; }
.salary-report-heading h2 { margin: 0; color: var(--heading); font-size: 20px; line-height: 26px; }
.salary-report-heading p { margin: 4px 0 0; color: var(--text-2); }
.salary-report-kpis { margin-bottom: 20px; }
.salary-report-table { margin-bottom: 20px; }
.salary-report-sections .doc-meta { padding: 0 20px 20px; }
.salary-report-total { color: var(--ok); font-weight: 700; }
.salary-report-warning { color: var(--warn); font-weight: 700; }
@media (max-width: 720px) {
  .salary-report-heading { align-items: flex-start; }
  .salary-report-sections .doc-meta { grid-template-columns: minmax(0, 1fr); }
}

