:root {
    --bg: #f7f7f5;
    --fg: #1a1a1a;
    --muted: #666;
    --border: #d8d8d4;
    --accent: #1f6feb;
    --accent-fg: #ffffff;
    --error: #b3261e;
    --error-bg: #fde8e6;
    --success-bg: #e6f4ea;
    --warning: #fff8c5;
    --success: #157f3a;
    --code-bg: #efeee8;
    --radius: 6px;
    --pad: 16px;
    --max-w: 880px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px var(--pad) 64px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.topbar .brand {
    font-weight: 600;
    color: var(--fg);
    font-size: 18px;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar nav a, .topbar nav button.link {
    color: var(--fg);
    background: none;
    border: 0;
    padding: 4px 0;
    font: inherit;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.topbar nav a:hover { text-decoration: none; border-bottom-color: var(--border); }
.topbar nav a.active {
    font-weight: 600;
    border-bottom-color: var(--accent);
}

.topbar nav .btn-link {
    background: var(--accent);
    color: var(--accent-fg);
    padding: 6px 12px;
    border-radius: var(--radius);
    border-bottom: 0;
}
.topbar nav .btn-link:hover { border-bottom: 0; filter: brightness(0.97); text-decoration: none; }

.muted { color: var(--muted); }
code { background: var(--code-bg); padding: 1px 6px; border-radius: 3px; font-family: ui-monospace, Menlo, monospace; font-size: 0.95em; }
small { font-size: 0.85em; }

h1 { font-size: 28px; margin: 8px 0 16px; }
h2 { font-size: 20px; margin: 24px 0 8px; }

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--muted);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="date"],
.form input[type="number"],
.form select,
.form textarea {
    font: inherit;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    color: var(--fg);
}

.form .error {
    color: var(--error);
    font-size: 13px;
}

.alert.error {
    background: var(--error-bg);
    color: var(--error);
    padding: 10px 12px;
    border-radius: var(--radius);
}

.alert.info {
    background: #e3f1fb;
    color: #0a5a8e;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 14px;
}

.field-low {
    background: #fff8c5 !important;
    border-color: #d4a72c !important;
}

.field-medium {
    background: #fafafa;
}

.conf-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    vertical-align: middle;
}
.conf-high   { background: #d8f0e0; color: #0e6b30; }
.conf-medium { background: #ffe9c2; color: #6a4500; }
.conf-low    { background: #fff1a8; color: #4a3c00; }

.btn {
    background: var(--accent);
    color: var(--accent-fg);
    border: 0;
    padding: 10px 18px;
    border-radius: var(--radius);
    font: inherit;
    cursor: pointer;
}

.btn.secondary {
    background: white;
    color: var(--fg);
    border: 1px solid var(--border);
}

.btn:hover { filter: brightness(0.97); }

.inline { display: inline; margin: 0; padding: 0; }

.alias-box {
    background: var(--code-bg);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-family: ui-monospace, Menlo, monospace;
    font-size: 16px;
    display: inline-block;
}

table.receipts {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
table.receipts th, table.receipts td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
table.receipts th { background: #fafaf7; font-weight: 600; color: var(--muted); }
table.receipts tr:last-child td { border-bottom: 0; }

.status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}
.status-pending  { background: var(--warning); color: #4a3c00; }
.status-approved { background: #d8f0e0; color: #0e6b30; }
.status-failed   { background: var(--error-bg); color: var(--error); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table.receipts { min-width: 640px; }

.review-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
.review-grid .pdf-pane {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 720px;
}
.review-grid .pdf-pane embed,
.review-grid .pdf-pane iframe {
    width: 100%;
    height: 720px;
    display: block;
    border: 0;
}
.review-grid .form-pane {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}
@media (max-width: 800px) {
    .review-grid { grid-template-columns: 1fr; }
    .review-grid .pdf-pane { min-height: 0; }
    .review-grid .pdf-pane embed,
    .review-grid .pdf-pane iframe { height: 320px; }
    .review-grid .form-pane { order: -1; }
}

/* ─── Wide layout opt-in ──────────────────────────────────────────── */
.container--wide {
    max-width: 1200px;
}

/* ─── Archive page — re-skinned 2026-05-16 ────────────────────────── */

.arc {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Header */
.arc-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.arc-head h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.15;
}
.arc-head__sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.arc-head__sub strong { color: var(--fg); font-weight: 600; }

/* Category cards row */
.arc-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}
.cat-card {
    --color: #6b7280;
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px 12px;
    text-decoration: none;
    color: var(--fg);
    transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
    overflow: hidden;
    isolation: isolate;
}
.cat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--color);
    border-radius: 10px 0 0 10px;
}
.cat-card:hover {
    text-decoration: none;
    border-color: color-mix(in srgb, var(--color) 50%, var(--border));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--color) 35%, transparent);
}
.cat-card--on {
    border-color: var(--color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color) 15%, transparent);
    background: color-mix(in srgb, var(--color) 5%, white);
}
.cat-card__name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, var(--color) 75%, #111);
    margin-bottom: 8px;
}
.cat-card__amt {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg);
    line-height: 1.1;
}
.cat-card__cnt {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* Filter bar — clean card with sections */
.arc-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.arc-search {
    position: relative;
    display: flex;
    align-items: center;
}
.arc-search__icon {
    position: absolute;
    left: 14px;
    color: var(--muted);
    pointer-events: none;
}
.arc-search__input {
    font: inherit;
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    font-size: 15px;
    transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.arc-search__input::placeholder { color: var(--muted); }
.arc-search__input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.arc-search__submit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 0;
    background: transparent;
}

.arc-filterrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Custom-styled select — no native browser ugliness */
.arc-select {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.arc-select__label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    pointer-events: none;
}
/* Single padding-value måtte rumme den længste label ("LEVERANDØR" ~76px).
   80px gjorde "Alle" overlappe på Leverandør-droppen mens Kategori passede. */
.arc-select select {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 32px 9px 104px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--fg);
    cursor: pointer;
    transition: border-color 0.12s, background-color 0.12s;
}
.arc-select select:hover { border-color: color-mix(in srgb, var(--fg) 25%, var(--border)); }
.arc-select select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Segmented control for status */
.arc-segctrl {
    display: inline-flex;
    padding: 3px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    gap: 2px;
}
.arc-segctrl__opt {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.arc-segctrl__opt:hover { color: var(--fg); text-decoration: none; }
.arc-segctrl__opt--on {
    background: white;
    color: var(--fg);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.04);
}

.arc-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    margin-left: auto;
    transition: background 0.12s, color 0.12s;
}
.arc-clear:hover { background: var(--code-bg); color: var(--error); text-decoration: none; }

/* Active filter pills */
.arc-active {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.arc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 12px;
    background: color-mix(in srgb, var(--accent) 8%, white);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
    border-radius: 100px;
    font-size: 13px;
    color: var(--fg);
}
.arc-pill__lbl { color: var(--muted); font-size: 12px; }
.arc-pill__val { font-weight: 600; }
.arc-pill a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    transition: background 0.12s, color 0.12s;
}
.arc-pill a:hover { background: rgba(0,0,0,0.06); color: var(--error); text-decoration: none; }
.arc-pill--archived {
    background: var(--muted-bg, #f3f4f6);
    color: var(--muted-strong, #6b7280);
    font-size: 0.75rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Table */
.arc-table {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.arc-table table {
    width: 100%;
    border-collapse: collapse;
}
.arc-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}
.arc-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.arc-table tbody tr:last-child td { border-bottom: 0; }
.arc-table tbody tr {
    cursor: pointer;
    transition: background 0.08s;
}
.arc-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, white); }
.arc-table tbody tr:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Column-specific */
.t-date    { min-width: 130px; }
.t-vendor  { min-width: 200px; }
.t-client  { min-width: 140px; }
.t-project { min-width: 140px; }
.t-cat     { min-width: 130px; }
.t-amt     { min-width: 120px; text-align: right; }
.t-status  { min-width: 140px; }

.muted-strong { color: var(--fg, #111); font-weight: 500; }

.t-date__main { font-weight: 500; }
.t-date__rel  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.t-vendor__name { font-weight: 500; }
.t-vendor__raw  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.t-amt__main {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 15px;
}
.t-amt__sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* Category tag (used in table cell) */
.cat-tag {
    --color: #6b7280;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: color-mix(in srgb, var(--color) 12%, white);
    color: color-mix(in srgb, var(--color) 80%, #111);
    border: 1px solid color-mix(in srgb, var(--color) 25%, transparent);
    white-space: nowrap;
}

/* Status pills (new variants) */
.st-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}
.st-pending  { background: #fff8c5; color: #5d4a00; border-color: #f0e08c; }
.st-approved { background: #e0f4e8; color: #0e6b30; border-color: #b6e0c4; }
.st-failed   { background: var(--error-bg); color: var(--error); border-color: #f3c3be; }

/* Empty states */
.arc-empty {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 48px 24px;
    text-align: center;
}
.arc-empty--onboard { padding: 72px 24px; }
.arc-empty__art { margin-bottom: 20px; }
.arc-empty h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
}
.arc-empty p {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 6px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.arc-empty__cta { margin-top: 20px; }

/* Pager */
.arc-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.arc-pager__info { font-size: 13px; color: var(--muted); }
.arc-pager__nav { display: flex; gap: 8px; }

@media (max-width: 720px) {
    .arc-head { flex-direction: column; align-items: flex-start; }
    .arc-cats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .arc-filterrow { gap: 6px; }
    .arc-clear { margin-left: 0; }
    .t-cat { display: none; }
}

/* ─── Old archive styles (kept for compat — to remove later) ─────── */

.archive-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header row: title + aggregate meta */
.archive-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.archive-header h1.archive-title {
    margin: 0;
    font-size: 24px;
}
.archive-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}
.archive-meta-sep { color: var(--border); }
.archive-total  { font-weight: 600; color: var(--fg); }

/* Category chips summary bar */
.archive-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Cat chip — used in summary bar and in table rows */
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 8px;
    border-radius: 100px;
    border: 1.5px solid color-mix(in srgb, var(--chip-color) 35%, transparent);
    background: color-mix(in srgb, var(--chip-color) 14%, white);
    color: color-mix(in srgb, var(--chip-color) 80%, #111);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s;
}
.cat-chip:hover { background: color-mix(in srgb, var(--chip-color) 24%, white); text-decoration: none; }
.cat-chip--active {
    background: color-mix(in srgb, var(--chip-color) 30%, white);
    border-color: color-mix(in srgb, var(--chip-color) 60%, transparent);
}
.cat-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--chip-color);
    flex-shrink: 0;
}
.cat-chip__amount { font-weight: 600; }
.cat-chip__count  { color: color-mix(in srgb, var(--chip-color) 60%, #555); font-size: 12px; }

/* Small chip variant for table rows */
.cat-chip--sm {
    padding: 2px 8px 2px 6px;
    font-size: 12px;
}
.cat-chip--sm .cat-chip__dot { width: 7px; height: 7px; }

/* Filter bar */
.archive-filterbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.archive-search {
    position: relative;
    flex: 1;
}
.archive-search__icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}
.archive-search__input {
    font: inherit;
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    color: var(--fg);
    font-size: 14px;
}
.archive-search__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-select {
    font: inherit;
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    color: var(--fg);
    cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--accent); }
.filter-select--active {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, white);
    color: var(--accent);
    font-weight: 500;
}

.filter-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.filter-pill {
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg);
    background: white;
    text-decoration: none;
    transition: background 0.1s, border-color 0.1s;
    white-space: nowrap;
}
.filter-pill:hover { background: var(--code-bg); text-decoration: none; }
.filter-pill--on {
    background: var(--fg);
    color: white;
    border-color: var(--fg);
}
.filter-pill--on:hover { background: #333; text-decoration: none; }
/* Status-colored pills when active */
.filter-pill--on.status-pending  { background: #9a7200; border-color: #9a7200; }
.filter-pill--on.status-approved { background: var(--success); border-color: var(--success); }
.filter-pill--on.status-failed   { background: var(--error); border-color: var(--error); }

.archive-search-btn { font-size: 13px; padding: 6px 14px; }
.archive-clear-link {
    font-size: 13px;
    color: var(--muted);
    text-decoration: underline dotted;
    white-space: nowrap;
    margin-left: 4px;
}
.archive-clear-link:hover { color: var(--error); text-decoration: underline; }

/* Active filter chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.active-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 10px;
    border-radius: 100px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--fg);
}
.active-chip strong { font-weight: 600; }
.active-chip__remove {
    color: var(--muted);
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    padding: 0 2px;
}
.active-chip__remove:hover { color: var(--error); }

/* Archive table additions */
.receipts--archive tr.receipts__row:hover td {
    background: color-mix(in srgb, var(--accent) 5%, white);
}

.col-received { min-width: 100px; }
.col-vendor   { min-width: 130px; }
.col-category { min-width: 110px; }
.col-amount   { min-width: 110px; text-align: right; }
.col-date     { min-width: 90px; }
.col-status   { min-width: 110px; }
.col-action   { width: 56px; text-align: right; }

.cell-date, .cell-rel { display: block; }
.cell-rel { font-size: 11px; }

/* Vendor links */
.vendor-link { font-size: 14px; }
.vendor-link--linked {
    text-decoration: underline dotted;
    color: var(--fg);
}
.vendor-link--linked:hover { text-decoration: underline; color: var(--accent); }
.vendor-link--raw { color: var(--muted); }

/* Amount cell */
.amount-main     { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.amount-currency { font-size: 11px; color: var(--muted); }
.amount-vat      { display: block; font-size: 11px; }

/* Open link */
.archive-open-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    white-space: nowrap;
}

/* Empty states */
.archive-empty {
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: white;
}
.archive-empty--onboarding { padding: 56px 24px; }
.archive-empty__icon { margin-bottom: 16px; }
.archive-empty__heading {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
}
.archive-empty__sub {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 20px;
}

/* Pagination */
.archive-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
    flex-wrap: wrap;
}
.archive-pagination__info {
    font-size: 13px;
    color: var(--muted);
}
.archive-pagination__nav {
    display: flex;
    gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .archive-header     { flex-direction: column; gap: 4px; }
    .archive-filters    { gap: 6px; }
    .col-category       { display: none; }
    .col-date           { display: none; }
    .archive-pagination { flex-direction: column; align-items: flex-start; }
}

.subs-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, white) 0%, white 100%);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
    border-radius: 10px;
    text-decoration: none;
    color: var(--fg);
    transition: border-color 0.12s, transform 0.12s;
}
.subs-callout:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.subs-callout__main { font-size: 15px; }
.subs-callout__badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--accent);
    color: white;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.subs-callout__arrow { font-size: 20px; color: var(--accent); }

/* ─── End archive page ──────────────────────────────────────────────── */

/* ─── Receipt detail (/receipts/{id}) ──────────────────────────────── */
.rcpt-page { display: flex; flex-direction: column; gap: 20px; }
.rcpt-back { font-size: 14px; color: var(--muted); }
.rcpt-back a { color: var(--muted); }
.rcpt-back a:hover { color: var(--fg); }

.rcpt-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.rcpt-head__name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}
.rcpt-head__price {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}
.rcpt-head__amt { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.rcpt-head__cur { font-size: 14px; color: var(--muted); margin-left: 4px; }

.rcpt-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.rcpt-sub-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, white) 0%, white 100%);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
    border-radius: 10px;
    text-decoration: none;
    color: var(--fg);
    transition: border-color 0.12s, transform 0.12s;
}
.rcpt-sub-callout:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.rcpt-sub-callout span:last-child { font-size: 20px; color: var(--accent); }

.rcpt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
@media (max-width: 800px) {
    .rcpt-grid { grid-template-columns: 1fr; }
}

.rcpt-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
}
.rcpt-card__h {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 14px;
}

.rcpt-dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    column-gap: 16px;
    row-gap: 10px;
    margin: 0;
    font-size: 14px;
}
.rcpt-dl dt {
    color: var(--muted);
    font-weight: 500;
}
.rcpt-dl dd {
    margin: 0;
    color: var(--fg);
}
.rcpt-num { font-variant-numeric: tabular-nums; font-weight: 500; }
.rcpt-supplier { font-weight: 500; }
.rcpt-supplier__cvr {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.rcpt-ocr {
    margin-top: 18px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.rcpt-ocr summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
    user-select: none;
}
.rcpt-ocr summary:hover { color: var(--fg); }
.rcpt-ocr__txt {
    margin: 10px 0 0;
    padding: 12px;
    background: var(--code-bg);
    border-radius: 6px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    max-height: 240px;
    overflow: auto;
    white-space: pre-wrap;
    color: var(--muted);
}

.rcpt-pdf {
    width: 100%;
    height: 480px;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: block;
}
.rcpt-image-link { display: block; line-height: 0; }
.rcpt-image {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fafaf7;
    cursor: zoom-in;
}
.rcpt-attachment__meta {
    font-size: 13px;
    color: var(--muted);
    margin: 10px 0 0;
}
.rcpt-attachment__empty {
    padding: 32px 12px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 6px;
    background: var(--bg);
}
.rcpt-attachment__empty p { margin: 0 0 6px; }

.rcpt-action { margin-top: 16px; }
.rcpt-edit { padding: 18px 20px; }
.rcpt-edit .form { max-width: 480px; }

/* ─── End receipt detail ──────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--border);
    background: white;
    padding: 18px var(--pad);
    margin-top: 48px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }

/* ─── Subscriptions page ───────────────────────────────────────────── */
.subs-page { display: flex; flex-direction: column; gap: 28px; }
.subs-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.subs-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.subs-sub strong { color: var(--fg); font-weight: 600; }

.subs-section h2 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.subs-section__sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.subs-section--muted { opacity: 0.75; }

.subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.sub-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sub-card--detected { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

.sub-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sub-card__name { font-size: 15px; font-weight: 600; margin: 0; }
.sub-card__meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

.sub-card__price { text-align: right; white-space: nowrap; }
.sub-card__amt { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; }
.sub-card__per { color: var(--muted); font-size: 13px; margin-left: 2px; }
.sub-card__drift {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff3cd;
    color: #6a4500;
    margin-left: 6px;
    font-weight: 600;
}

.sub-card__chart svg.spk { display: block; }
.sub-card__next { color: var(--muted); font-size: 13px; margin: 0; }
.sub-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sub-card__actions .btn { font-size: 13px; padding: 6px 12px; }

.subs-empty {
    background: white;
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 32px;
    text-align: center;
    color: var(--muted);
}
.subs-empty code { font-size: 12px; }

/* === Dashboard ============================================ */
.dash { display: grid; gap: 24px; }
.dash-head h1 { margin: 0 0 4px; }
.dash-head__sub { margin: 0; color: var(--muted); }

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.dash-metric {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.dash-metric__label {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.dash-metric__value {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
}
.dash-metric__sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}
.dash-stack {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.dash-stack__title { margin: 0 0 16px; font-size: 16px; }
.dash-stack__svg { width: 100%; height: auto; display: block; }
.dash-stack__lbl { font-size: 11px; fill: var(--muted); }
.dash-stack__empty { color: var(--muted); margin: 0; }
.dash-suppliers {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.dash-suppliers__title { margin: 0 0 12px; font-size: 16px; }
.dash-suppliers__list { list-style: none; padding: 0; margin: 0; }
.dash-supplier { margin: 0 0 8px; }
.dash-supplier__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--fg);
    position: relative;
    overflow: hidden;
}
.dash-supplier__row:hover { border-color: var(--accent); }
.dash-supplier__name { font-weight: 500; z-index: 1; }
.dash-supplier__amt  { font-variant-numeric: tabular-nums; z-index: 1; }
.dash-supplier__cnt  { color: var(--muted); font-size: 13px; z-index: 1; }
.dash-supplier__bar {
    position: absolute; inset: 0 auto 0 0;
    width: var(--pct, 0%);
    background: rgba(31, 111, 235, 0.08);
    z-index: 0;
}
.dash-suppliers__empty { color: var(--muted); margin: 0; }

.dash-modes { display: flex; gap: 8px; margin-top: 8px; }
.dash-modes a {
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: white;
    color: var(--fg);
}
.dash-modes a.dash-modes__on {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
}

.dash-yoy {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}
.dash-yoy__col { text-align: center; }
.dash-yoy__year { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.dash-yoy__sum  { font-size: 32px; font-weight: 600; line-height: 1.1; }
.dash-yoy__sub  { font-size: 13px; color: var(--muted); margin-top: 6px; }
.dash-yoy__delta { text-align: center; }
.dash-yoy__pct {
    font-size: 22px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-block;
}
.dash-yoy__pct--up   { background: var(--error-bg);   color: var(--error); }
.dash-yoy__pct--down { background: var(--success-bg); color: var(--success); }
.dash-yoy__pct--flat { background: var(--bg);          color: var(--muted); }
.dash-yoy__no { color: var(--muted); font-size: 13px; }

.dash-onboard {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
}
.dash-onboard__title { margin: 0 0 12px; font-size: 22px; }
.dash-onboard__lede  { margin: 0 0 20px; color: var(--muted); max-width: 480px; margin-inline: auto; }
.dash-onboard__alias {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px 18px;
    display: inline-block;
    font-family: ui-monospace, "Menlo", monospace;
    font-size: 18px;
    margin: 0 0 16px;
}
.dash-onboard__hint { margin: 0; color: var(--muted); font-size: 14px; }

/* === Landing ============================================== */
.land { display: grid; gap: 48px; padding: 24px 0; }

.land-hero { text-align: center; padding: 24px 16px; }
.land-hero__title {
    font-size: 36px;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.land-hero__lede {
    font-size: 17px;
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.5;
}
.land-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.land-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--border);
}
.land-btn--primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.land-btn--ghost   { background: white; color: var(--fg); }
.land-btn:hover { text-decoration: none; }
.land-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.land-feats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.land-feat {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.land-feat__h { margin: 0 0 8px; font-size: 17px; }
.land-feat p  { margin: 0; color: var(--muted); font-size: 14px; }

.land-pricing {
    text-align: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
}
.land-pricing__h { margin: 0 0 8px; font-size: 22px; }
.land-pricing__sub { margin: 0 0 20px; color: var(--muted); }

/* === Categories & Vendor Rules === */
.cat-section { margin: 24px 0; }
.cat-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.cat-table th, .cat-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.cat-table th { font-weight: 600; color: var(--muted); font-size: 0.9em; }
.cat-row { display: contents; }
.rule-row td code { background: #fafaf7; padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 16px; }
.form-inline label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9em; }
.btn.danger { background: #ef4444; color: white; border-color: #dc2626; }
.btn.danger:hover { background: #dc2626; }

/* === Suppliers === */
.sup-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px; background: #fafaf7; padding: 16px; border-radius: 8px; margin: 16px 0; }
.sup-stat__label { color: var(--muted); font-size: 0.85em; }
.sup-stat__value { font-size: 1.4em; font-weight: 600; margin-top: 4px; }
.sup-grid { width: 100%; border-collapse: collapse; margin: 12px 0; }
.sup-grid th, .sup-grid td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.sup-grid th.num, .sup-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sup-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin-top: 8px; }
.sup-meta dt { color: var(--muted); }
.sub-flag { display: inline-block; margin-left: 6px; color: #6366f1; font-weight: bold; }

.qr-frame { display: inline-block; width: 220px; height: 220px; margin: 12px 0 4px;
    padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.qr-frame svg { width: 100%; height: 100%; display: block; }

.plan-fieldset { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
    transition: border-color 0.15s, background 0.15s; }
.plan-option:hover { border-color: #9ca3af; }
.plan-option:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
.plan-option__body { display: flex; flex-direction: column; gap: 2px; }
.plan-option__label { font-weight: 600; }
.plan-option__savings { color: var(--muted); font-size: 0.9em; }

.usage-card { margin: 12px 0 24px; padding: 14px 16px; background: #fafaf7;
    border: 1px solid var(--border); border-radius: var(--radius); max-width: 460px; }
.usage-card__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 0.95em; }
.usage-bar { width: 100%; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.usage-bar__fill { height: 100%; transition: width 0.3s; }
.usage-bar__fill.usage-bar--ok   { background: #10b981; }
.usage-bar__fill.usage-bar--warn { background: #f59e0b; }
.usage-bar__fill.usage-bar--over { background: #ef4444; }

.rcpt-fx { font-size: 0.85em; color: var(--muted); margin-top: 2px; font-weight: normal; }

.th-sort { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; }
.th-sort:hover { color: #2563eb; }
.sort-arrow { font-size: 0.85em; }
.sort-arrow.active { color: #2563eb; }
.sort-arrow.muted  { color: #cbd5e1; }

/* === Periode-bar + P/L-kort === */
.periode-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 8px 0 18px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    font-size: .9em;
}
.periode-label { color: #666; font-weight: 600; }
.periode-preset { padding: 4px 10px; border-radius: 4px; color: #2266cc; text-decoration: none; }
.periode-preset.active { background: #2266cc; color: #fff; font-weight: 600; }

.pl-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.pl-seg {
    background: #fff;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    padding: 14px;
}
.pl-seg__label { font-size: .75em; text-transform: uppercase; letter-spacing: .04em; color: #888; margin-bottom: 6px; }
.pl-seg__value { font-size: 1.5em; font-weight: 600; }
.pl-seg__sub   { font-size: .8em; color: #999; margin-top: 2px; }
.pl-seg--income-paid    .pl-seg__value { color: #1a8f5a; }
.pl-seg--income-pending .pl-seg__value { color: #c68800; }
.pl-seg--expense        .pl-seg__value { color: #cc3333; }
.pl-seg--margin         .pl-seg__value { color: #2266cc; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .75em; font-weight: 600; }
.badge.paid    { background: #e0f4e6; color: #1a8f5a; }
.badge.pending { background: #fff7e0; color: #c68800; }
.badge--dup    { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; padding: 2px 6px; border-radius: 3px; font-size: .7em; font-weight: 600; letter-spacing: .5px; margin-left: 6px; vertical-align: middle; }

.kk-card {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.kk-card--archived { opacity: 0.65; }
.kk-card__label { font-weight: 600; }
.kk-card__label a { color: #222; text-decoration: none; }
.kk-card__label a:hover { color: #2266cc; }
.kk-card__meta { color: #888; font-size: .85em; margin-top: 2px; }
.kk-card__bar {
    width: 200px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.kk-card__bar > div {
    height: 100%;
    background: #2266cc;
    border-radius: 4px;
    transition: width 0.2s;
}
.kk-card__bar.warn > div  { background: #c68800; }
.kk-card__bar.empty > div { background: #cc3333; width: 100% !important; }
.kk-card__balance { font-variant-numeric: tabular-nums; text-align: right; min-width: 110px; }
.kk-card__balance .num { font-size: 1.1em; font-weight: 600; }
.kk-card__balance .label { font-size: .78em; color: #888; }
.kk-card__balance.ok .num { color: #1a8f5a; }
.kk-card__balance.low .num { color: #c68800; }
.kk-card__balance.overdrawn .num { color: #cc3333; }

.kk-summary {
    background: #fff;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    padding: 6px 14px;
}
.kk-summary__row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: .9em;
}
.kk-summary__row:last-child { border-bottom: none; }
.kk-summary__row .ratio { color: #888; font-variant-numeric: tabular-nums; }
.kk-summary__row a { color: #2266cc; text-decoration: none; font-size: .85em; }

.suggested-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #e0e9fb;
    color: #2266cc;
    font-size: .7em;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: .02em;
    cursor: help;
}

.cost-breakdown {
    background: #f7f9fc;
    border: 1px solid #dde4ee;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 18px;
    font-size: .9em;
}
.cost-breakdown__row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #e8edf4;
}
.cost-breakdown__row:last-child { border-bottom: none; }
.cost-breakdown__row--gross {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 2px solid #dde4ee;
    font-weight: 600;
}
.cost-breakdown__label { color: #555; }
.cost-breakdown__value { font-variant-numeric: tabular-nums; color: #222; }

/* ---- Bulk action bar ---- */
.bulk-cell {
    width: 32px;
    text-align: center;
}

.bulk-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 12px 24px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
    display: none;
    align-items: center;
    gap: 14px;
    z-index: 100;
}
.bulk-bar.visible { display: flex; }
.bulk-bar__count {
    font-weight: 600;
    color: #444;
}
.bulk-bar select,
.bulk-bar button {
    padding: 6px 10px;
    font-size: .9em;
}
.bulk-bar__value { min-width: 160px; }

/* Add extra bottom padding to main content so the sticky bar doesn't cover anything */
body.has-bulk-bar { padding-bottom: 72px; }

/* --- Upload drop zone --- */
.upload-drop {
    display: block;
    border: 2px dashed #c0c8d6;
    border-radius: 8px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    background: #fafbfd;
    margin-bottom: 14px;
    position: relative;
}
.upload-drop:hover,
.upload-drop--active {
    border-color: #2266cc;
    background: #eef3fa;
}
.upload-drop__inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.upload-drop__inner strong {
    font-size: 1.1em;
    color: #2266cc;
}
.upload-drop input[type="file"] {
    position: absolute;
    left: -9999px;
}
.upload-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.upload-list li {
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: .9em;
    font-variant-numeric: tabular-nums;
}
