/* PNA app stylesheet — only what Tabler (@tabler/core 1.6.1, loaded in core/document.html) lacks.

   Structure: one block per owner, each opened by a "/* == <slice>: <area> == *\/" heading.
   A slice edits only its own block (and adds one if it has none), so parallel slices merge
   cleanly. Colours come from Tabler/Bootstrap variables (--tblr-*), never hex values, so every
   rule reads in both the light and the dark theme. Money states use the classes in the
   «T24a: money states» block.

   Blocks:
   - T24a: shell               — sidebar brand, theme switch, balances strip, print.
   - T24a: money states        — negative, income, outcome, planned, overdue.
   - T24g: layout helpers      — width of single-form pages.
   - T24g: Tabler contrast fixes — the one place that adjusts Tabler parts for 4.5:1 in both themes.
   - T24a: sign-in pages       — recovery codes, TOTP secret and QR code.
   - Section blocks below      — kept from before T24; each slice restyles its own. */

/* == T24a: shell == */
.pna-brand { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; color: var(--tblr-body-color); text-decoration: none; }
.pna-brand:hover { color: var(--tblr-link-color); text-decoration: none; }
/* The switch shows only the button for the other theme. */
[data-bs-theme="dark"] .pna-theme-to-dark,
:root:not([data-bs-theme="dark"]) .pna-theme-to-light { display: none; }
/* Group titles also show in the phone menu (Tabler shows them only in the expanded sidebar). */
@media (max-width: 991.98px) {
  .navbar-vertical .nav-section-title { display: block; padding: 0.75rem 0.75rem 0.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tblr-secondary); }
}
.pna-balances .card-body { padding-block: 0.25rem; }
.pna-balances-toggle { padding-inline: 0; }
@media print {
  .page-wrapper { margin: 0 !important; }
  .page-body { margin-top: 0; }
}

/* == T24a: money states == */
.amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.negative, .outcome { color: var(--tblr-danger-text-emphasis); }
.income { color: var(--tblr-success-text-emphasis); }
.overdue { color: var(--tblr-warning-text-emphasis); font-weight: 700; }
.planned { color: var(--tblr-secondary); font-style: italic; }

/* == T24g: layout helpers == */
/* Width of a single-form page card. */
.form-card { max-width: 560px; }

/* == T24a: sign-in pages == */
.codes { font-family: var(--tblr-font-monospace); font-size: 1.1rem; columns: 2; padding-left: 20px; }
.secret { font-family: var(--tblr-font-monospace); word-break: break-all; }
/* The QR code is black on white by design: keep its white quiet zone in the dark theme too. */
.qr svg { width: 200px; height: 200px; background: var(--tblr-white); padding: 8px; border-radius: var(--tblr-border-radius); }
@media (max-width: 720px) { .codes { columns: 1; } }

/* == T24b: report grid == */
/* The shared grid of the reports (reports/_grid.html, the other report tables) and of
   budgets/_grid.html. CONTRACT for reuse (T24e):
     .report-wrap            scroll box: both axes scroll, header row and first column stay put, opaque
     table.report            the grid (works with or without Tabler's .table .table-sm)
     th.report-label         first column: sticky left, wraps; add .report-depth-N (0-10) to indent
     .tree-toggle            empty <button> with aria-expanded: a chevron; keeps a text glyph if it has one
     .tree-spacer            same width as a toggle, aligns leaf rows with toggled siblings
     tr.report-<kind>        group | balance | total | info | article (plain); override a row's fill
                             with --report-row-bg on the <tr> (cells follow it, so the sticky column stays opaque)
     .report-sum-col         the total column (a light tint over the row fill)
     .report-sub             small secondary line inside a header cell
     .report-plan / div.report-overdue   plan figure (italic, secondary) / overdue note inside a cell
   Cell money states use .negative .income .outcome .planned .overdue from «T24a: money states». */
.report-wrap {
  --report-bg: var(--tblr-bg-surface);
  --report-head-bg: var(--tblr-bg-surface-tertiary);
  --report-line: var(--tblr-border-color);
  max-height: 75vh;
  overflow: auto;
  background: var(--report-bg);
  border: 1px solid var(--report-line);
  border-radius: var(--tblr-border-radius);
}
.report { width: auto; min-width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 0.8125rem; }
table.report th, table.report td {
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
  background-color: var(--report-row-bg, var(--report-bg));
  border-bottom: 1px solid var(--report-line);
  color: var(--tblr-body-color);
  font-weight: 400;
  vertical-align: top;
}
table.report thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: var(--report-head-bg);
  border-bottom: 2px solid var(--report-line);
  font-weight: 600;
  font-size: 1em;
  letter-spacing: normal;
  line-height: inherit;
  text-transform: none;
  vertical-align: bottom;
}
/* Tabler's .table sets the cell colour, so a planned row must colour its cells. */
table tr.planned > * { color: var(--tblr-secondary); font-style: italic; }
table.report .report-label {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 14rem;
  max-width: 24rem;
  text-align: left;
  white-space: normal;
  box-shadow: 1px 0 0 var(--report-line);
}
table.report thead .report-label { z-index: 3; }
table.report .report-sum-col { background-image: linear-gradient(rgba(var(--tblr-body-color-rgb), 0.05), rgba(var(--tblr-body-color-rgb), 0.05)); }
.report a { text-decoration: none; }
.report a:hover { text-decoration: underline; }
.report-sub { font-size: 0.75rem; font-weight: 400; color: var(--tblr-secondary); }
.report-share { font-size: 0.75rem; font-weight: 400; color: var(--tblr-secondary); white-space: nowrap; }
.report-cmp { font-size: 0.75rem; font-weight: 400; color: var(--tblr-secondary); white-space: nowrap; }
.report-cmp .report-delta, .report-cmp .report-delta-pct { font-weight: 600; }

/* Row kinds: each differs from a plain article row in fill and weight. */
tr.report-group { --report-row-bg: color-mix(in srgb, var(--tblr-body-color) 5%, var(--tblr-bg-surface)); }
tr.report-group th, tr.report-group td { font-weight: 600; }
tr.report-balance { --report-row-bg: color-mix(in srgb, var(--tblr-primary) 5%, var(--tblr-bg-surface)); }
tr.report-balance th, tr.report-balance td { font-weight: 700; border-top: 1px solid var(--tblr-primary); }
tr.report-total { --report-row-bg: color-mix(in srgb, var(--tblr-body-color) 9%, var(--tblr-bg-surface)); }
tr.report-total th, tr.report-total td { font-weight: 700; border-top: 2px solid var(--tblr-border-color-dark, var(--report-line)); }
tr.report-info th, tr.report-info td { font-style: italic; color: var(--tblr-secondary); }
tr.report-overdue { --report-row-bg: var(--tblr-warning-bg-subtle); }
tr.report-overdue th, tr.report-overdue td { color: var(--tblr-warning-text-emphasis); font-weight: 600; }
tr.report-overdue a:not(.negative) { color: inherit; text-decoration: underline; }

/* Figures inside a cell. */
.report-plan { color: var(--tblr-secondary); font-style: italic; font-size: 0.92em; }
.report-plan a { color: inherit; }
.report-plan .negative { color: var(--tblr-danger-text-emphasis); }
div.report-overdue, div.report-overdue a { color: var(--tblr-warning-text-emphasis); font-size: 0.85em; }

/* Tree: a chevron toggle, keyboard-operable as a real button; indent by depth. */
.tree-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; margin-right: 0.125rem; padding: 0;
  border: 0; border-radius: var(--tblr-border-radius); background: none;
  color: var(--tblr-body-color); cursor: pointer; vertical-align: middle;
}
.tree-toggle:hover { background: var(--tblr-bg-surface-tertiary); }
.tree-toggle:focus-visible { outline: 2px solid var(--tblr-link-color); outline-offset: 1px; }
.tree-toggle:empty::before {
  content: ""; width: 0.375rem; height: 0.375rem;
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translate(-1px, -2px) rotate(45deg); transition: transform 0.12s;
}
.tree-toggle:empty[aria-expanded="false"]::before { transform: translate(-2px, 0) rotate(-45deg); }
.tree-spacer { display: inline-block; width: 1.375rem; }
table.report .report-depth-0 { padding-left: 0.5rem; }
table.report .report-depth-1 { padding-left: 1.5rem; }
table.report .report-depth-2 { padding-left: 2.5rem; }
table.report .report-depth-3 { padding-left: 3.5rem; }
table.report .report-depth-4 { padding-left: 4.5rem; }
table.report .report-depth-5 { padding-left: 5.5rem; }
table.report .report-depth-6 { padding-left: 6.5rem; }
table.report .report-depth-7 { padding-left: 7.5rem; }
table.report .report-depth-8 { padding-left: 8.5rem; }
table.report .report-depth-9 { padding-left: 9.5rem; }
table.report .report-depth-10 { padding-left: 10.5rem; }
@media (pointer: coarse) { .tree-toggle { width: 1.75rem; height: 1.75rem; } .tree-spacer { width: 1.875rem; } }
@media (max-width: 575.98px) {
  table.report .report-label { min-width: 9rem; max-width: 11rem; }
  .report-wrap { max-height: 70vh; }
}
@media print {
  .report-wrap { max-height: none; overflow: visible; border: 0; }
  table.report th, table.report td { position: static !important; }
}

/* Collapsible cards (report filters, daily balances, JSON and version lists). */
details.card > summary.card-header { cursor: pointer; list-style: none; }
details.card > summary.card-header::-webkit-details-marker { display: none; }
details.card > summary.card-header::after {
  content: ""; width: 0.4rem; height: 0.4rem; margin-left: auto;
  border: solid var(--tblr-secondary); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform 0.12s;
}
details.card[open] > summary.card-header::after { transform: rotate(-135deg); }
details.card:not([open]) > summary.card-header { border-bottom: 0; }
details.card > summary.card-header:focus-visible { outline: 2px solid var(--tblr-link-color); outline-offset: -2px; }

/* == T24b: ОПиУ layout editor == */
.layout-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.layout-line-head { flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.layout-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.layout-group select:first-child { flex: 1 1 240px; min-width: 0; }
.layout-group select + select { width: auto; }
.report-json { max-height: 24rem; overflow: auto; font-size: 0.8rem; }

/* == T24b: payment calendar == */
/* reports/payment_calendar.html: cash gaps and empty-cell create links. */
.calendar-gap-note { font-weight: 600; }
table.report th.cash-gap, table.report td.cash-gap {
  background-color: var(--tblr-danger-bg-subtle);
  background-image: none;
  color: var(--tblr-danger-text-emphasis);
  box-shadow: inset 0 -2px 0 var(--tblr-danger-text-emphasis);
}
.calendar-add {
  display: inline-block; min-width: 1.5em; padding: 0 0.25rem; line-height: 1.3;
  border: 1px dashed var(--tblr-secondary); border-radius: var(--tblr-border-radius);
  color: var(--tblr-body-color); text-align: center;
}
table.report th.cash-gap .report-sub { color: inherit; }
.report a.calendar-add:hover, .calendar-add:focus-visible { color: var(--tblr-link-color); background: var(--tblr-bg-surface-secondary); text-decoration: none; }
@media (pointer: coarse) { .calendar-add { min-width: 2rem; padding: 0.25rem 0.4rem; } }

/* == T24c: dashboard == */
/* reports/dashboard.html: Tabler cards in a row grid; only chart sizing and KPI values are custom. */
.widget .kpi { display: flex; flex-direction: column; min-width: 0; }
.widget .kpi-value { font-size: 1.1rem; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-box { position: relative; height: 260px; margin: 8px 0; }
.chart-box-square { height: 300px; }
.structure-list { list-style: none; padding: 0; margin: 8px 0 0; }
.structure-list ul { list-style: none; padding-left: 16px; }
.structure-list li, .structure-leaf { padding: 4px 0; }
.structure-list summary { cursor: pointer; }
@media print { .widget .chart-box { break-inside: avoid; } }

/* == T24e: budgets and directories == */
/* budgets/_grid.html builds on «T24b: report grid» (.report-wrap, table.report, .report-depth-N,
   .tree-toggle, .tree-spacer); only the plan input and the plan-vs-fact colours live here.
   payment_calendar.html uses .budget-good/.budget-bad/.budget-even too. */
.budget-input { min-width: 7rem; width: 100%; text-align: right; font-variant-numeric: tabular-nums; }
/* A saved cell: the answer re-renders its input (_cell_saved.html) with .is-saved; focusing it again clears the mark. */
.budget-input.is-saved:not(:focus, .is-invalid) { border-color: var(--tblr-success-text-emphasis); box-shadow: inset 0 0 0 1px var(--tblr-success-text-emphasis); }
.budget-fact { font-size: 0.9em; }
.budget-good { color: var(--tblr-success-text-emphasis); font-size: 0.85em; }
.budget-bad { color: var(--tblr-danger-text-emphasis); font-size: 0.85em; font-weight: 600; }
/* Darker than --tblr-secondary: this text also sits on tinted group and total rows (4.09:1 otherwise). */
.budget-even { color: var(--tblr-secondary-text-emphasis); font-size: 0.85em; }
table.report tr.report-heading th { padding-top: 0.875rem; font-weight: 700; }
.budget-toggles label { white-space: nowrap; }
/* directories: muted archived rows (Tabler's .table colours the cells, so colour them), tree indent, search box. */
table tr.archived > td { color: var(--tblr-secondary); }
.card-table > tbody > tr > td.directory-tree-label { padding-left: calc(1.25rem + var(--depth, 0) * 1rem); }
.directory-search { flex: 1 1 14rem; width: auto; min-width: 0; }
.directory-group { flex: 0 1 14rem; width: auto; min-width: 0; }

/* == T24d: open plans == */
/* operations/open_plans.html: one card per plan, stacks on a phone. */
.plan-list { display: flex; flex-direction: column; gap: 0; }
.plan-row { margin-bottom: 10px; }
.plan-row.plan-overdue { border-left: 4px solid var(--tblr-warning); }
.plan-row.plan-done { opacity: 0.75; }
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.plan-head input[type=checkbox] { margin: 0; }
.plan-amount { margin-left: auto; }
.plan-meta { margin: 4px 0 8px; overflow-wrap: anywhere; }
.plan-purpose { margin-top: 2px; }
.plan-suggestions { list-style: none; padding: 0; margin: 0 0 8px; }
.plan-suggestions li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 6px 0; border-top: 1px solid var(--tblr-border-color); }
.plan-suggestions li form { margin: 0; }
.plan-diff { color: var(--tblr-secondary); font-size: 0.875rem; white-space: nowrap; }
.plan-actions form { display: flex; gap: 6px; align-items: center; }
.plan-reschedule input[type=date] { width: auto; }
.plan-reschedule { display: flex; gap: 6px; align-items: center; }

/* == T24f2: banks, mapping, audit log, users == */
.diff { font-family: var(--tblr-font-monospace); font-size: 0.8rem; margin: 0; padding-left: 16px; }
/* Audit log: removed (before) and added (after) values differ by colour AND by marker
   (strike-through vs bold), so they stay distinguishable without colour. */
.pna-diff-before, .pna-diff-after { padding: 0 0.25rem; border-radius: var(--tblr-border-radius-sm); }
.pna-diff-before { background: var(--tblr-danger-bg-subtle); color: var(--tblr-danger-text-emphasis); text-decoration: line-through; }
.pna-diff-after { background: var(--tblr-success-bg-subtle); color: var(--tblr-success-text-emphasis); text-decoration: none; font-weight: 600; }

/* == T24f1: state badges (imports and rules) == */
/* A Tabler badge in a state colour: text from the theme's text-emphasis variables (the same ones the
   money states use), so it reads in both themes; Tabler's tiny uppercase label is relaxed for words. */
.badge[class*="pna-state-"] { border: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface-secondary); text-transform: none; font-size: 0.75rem; letter-spacing: 0; }
.pna-state-committed, .pna-state-new, .pna-state-imported, .pna-state-done, .pna-state-previewed { color: var(--tblr-success-text-emphasis); }
.pna-state-draft, .pna-state-similar, .pna-state-held, .pna-state-queued, .pna-state-running { color: var(--tblr-warning-text-emphasis); }
.pna-state-failed, .pna-state-invalid, .pna-state-refused { color: var(--tblr-danger-text-emphasis); }
.pna-state-rolled_back, .pna-state-duplicate, .pna-state-discarded { color: var(--tblr-secondary); }

/* == T24d: operations and period controls == */
/* Status badges: tinted background with the theme's emphasis text colour (readable in both themes). */
.pna-badge-confirmed, .pna-badge-planned, .pna-badge-overdue { font-weight: 600; text-transform: none; letter-spacing: 0; }
.pna-badge-confirmed { background: var(--tblr-success-bg-subtle); color: var(--tblr-success-text-emphasis); }
.pna-badge-planned { background: var(--tblr-secondary-bg-subtle); color: var(--tblr-secondary-text-emphasis); }
.pna-badge-overdue { background: var(--tblr-warning-bg-subtle); color: var(--tblr-warning-text-emphasis); }
/* Collapsible filter cards: the summary is the card header. */
.pna-collapse > summary { cursor: pointer; list-style: none; }
.pna-collapse > summary::-webkit-details-marker { display: none; }
.pna-collapse > summary::after { content: "▾"; margin-left: auto; color: var(--tblr-secondary); }
.pna-collapse[open] > summary::after { content: "▴"; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; }
.filters .mb-3 { margin: 0; }
.filters select[multiple] { min-height: 5.5em; }
.summary { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0; }
/* The selection sum and bulk actions stay in view while a long list scrolls. */
.pna-bulk-bar { position: sticky; bottom: 0; z-index: 5; margin-bottom: 0; box-shadow: 0 -4px 12px color-mix(in srgb, var(--tblr-black) 12%, transparent); }
.pna-bulk-bar .card-body { padding: 0.75rem 1rem; }
.pna-bulk-bar .summary { margin: 0; }
.pna-bulk-bar .form-control, .pna-bulk-bar .form-select, .pna-auto-width { width: auto; max-width: 100%; }
/* Operation form: the parts are separate rows. */
.pna-op-form { max-width: 960px; }
.part-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.part-row { display: block; margin: 0; padding: 12px 16px; background: var(--tblr-bg-surface-secondary); border: 1px solid var(--tblr-border-color); border-left: 4px solid var(--tblr-primary); border-radius: var(--tblr-border-radius); }
.part-row .mb-3 { margin: 0; }
.part-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.part-delete { align-self: center; }

/* == T26a1: the shared type-ahead picker (core/picker.js) == */
/* A plain <dialog> styled like a card: Tabler's .card would override its display. */
.pna-picker-dialog { width: min(28rem, calc(100vw - 32px)); padding: 0; color: var(--tblr-body-color); background: var(--tblr-bg-surface); border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius-lg); box-shadow: 0 1rem 3rem color-mix(in srgb, var(--tblr-black) 20%, transparent); }
/* While typing in a single picker, the typed text replaces the shown choice. */
.ts-wrapper.single.pna-typing .ts-control > .item { display: none; }
.pna-picker-dialog::backdrop { background: color-mix(in srgb, var(--tblr-black) 40%, transparent); }
.ts-dropdown .create { color: var(--tblr-link-color); }

/* == T24g: Tabler contrast fixes == */
/* The one place that adjusts Tabler parts so text holds 4.5:1 in both themes. Measured on the
   light page (white) and the dark page; the stock values fall short as noted. */
/* Group titles in the sidebar. */
.navbar-vertical.navbar-expand-lg .navbar-nav .nav-section-title { color: var(--tblr-secondary); }
/* Alert text follows the page text, not the tinted alert colour. */
.alert[class*="alert-"] { color: var(--tblr-body-color); }
.invalid-feedback { color: var(--tblr-danger-text-emphasis); }
/* Link-style buttons use the primary colour: 4.04:1 on white, 3.75:1 on the dark page. */
.btn.btn-link { color: var(--tblr-link-color); }
/* Active pill: a solid primary so its text reads in both themes. */
.nav-pills .nav-link { color: var(--tblr-link-color); }
.nav-pills .nav-link.active { background: var(--tblr-primary); color: var(--tblr-primary-fg); }
/* Outline danger: Tabler's text is too dark on the dark surface. */
.btn.btn-outline-danger { color: var(--tblr-danger-text-emphasis); }
.btn.btn-outline-danger:hover { color: var(--tblr-danger-text-emphasis); background: var(--tblr-danger-bg-subtle); }
/* Solid danger: 4.47:1 with white text stock; darker so it holds 4.5:1 in both themes. */
.btn.btn-danger { --tblr-btn-bg: color-mix(in oklab, var(--tblr-danger) 85%, var(--tblr-black)); --tblr-btn-border-color: var(--tblr-btn-bg); --tblr-btn-hover-bg: color-mix(in oklab, var(--tblr-danger) 75%, var(--tblr-black)); --tblr-btn-hover-border-color: var(--tblr-btn-hover-bg); --tblr-btn-active-bg: var(--tblr-btn-hover-bg); --tblr-btn-color: var(--tblr-white); }
.ts-wrapper.multi .ts-control > .item .pna-chip-remove { margin-left: .4rem; padding: 0 .25rem; color: inherit; text-decoration: none; opacity: .7; }
.ts-wrapper.multi .ts-control > .item .pna-chip-remove:hover { opacity: 1; }

/* == T26n: attachment and comment markers in the operation list == */
.pna-marker { width: 1rem; height: 1rem; margin-left: 0.25rem; vertical-align: -0.15rem; fill: none; stroke: var(--tblr-secondary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* == T26u: payment calendar plan panel (a <dialog>; full width on a phone) == */
.plan-panel-dialog { width: min(42rem, calc(100vw - 1rem)); max-height: calc(100vh - 2rem); padding: 1rem; border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius-lg); background: var(--tblr-bg-surface); color: var(--tblr-body-color); }
.plan-panel-dialog::backdrop { background: rgba(var(--tblr-black-rgb, 0, 0, 0), 0.4); }
.plan-panel-close { display: flex; justify-content: flex-end; margin: 0 0 0.5rem; }
.plan-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
@media (max-width: 575.98px) { .plan-panel-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; margin: 0; border-radius: 0; } }

/* == T26v: payment calendar «Что если» scenario == */
table.report td[data-changed] { box-shadow: inset 0 0 0 2px var(--tblr-azure); background: rgba(var(--tblr-azure-rgb), 0.08); }
.scenario-panel { border-color: var(--tblr-azure); }
.scenario-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.scenario-summary { font-size: 1rem; }
.scenario-changes li, .scenario-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin-bottom: 0.375rem; }
.scenario-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; }
.scenario-field { display: flex; flex-direction: column; gap: 0.125rem; min-width: 9rem; flex: 1 1 9rem; }
.scenario-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: -0.5rem 0 1rem; padding: 0.5rem 0.75rem; border: 1px dashed var(--tblr-azure); border-radius: var(--tblr-border-radius); }
.scenario-postpone { display: flex; gap: 0.25rem; }
.scenario-postpone input[type="date"] { width: auto; }
@media (max-width: 575.98px) { .scenario-field { flex-basis: 100%; } .scenario-add .btn { width: 100%; } }
