/*
 * Rod & Co. — advokatbibliotek
 * Mørk grøn/sort som et bibliotek, cremefarvet tekst, messing som accent.
 * Dokumenter, kvitteringer og underskrifter vises stadig på lyst papir.
 */

:root {
    --paper: #111614;
    --paper-deep: #0b0f0d;
    --sheet: #18201c;
    --ink: #ece5d5;
    --ink-soft: #c4bca9;
    --muted: #8f8875;
    --faint: #5f5b50;
    --rule: rgba(236, 229, 213, 0.08);
    --rule-strong: rgba(236, 229, 213, 0.17);
    --line-heavy: rgba(236, 229, 213, 0.42);
    --accent: #c8a35a;
    --accent-hover: #dcb873;
    --accent-wash: rgba(200, 163, 90, 0.08);
    --on-accent: #14110b;
    --danger: #d9776f;
    --hover: rgba(236, 229, 213, 0.045);
    --zebra: rgba(236, 229, 213, 0.018);
    --serif: "EB Garamond", "Garamond", "Times New Roman", serif;
    --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
    --mono: "IBM Plex Mono", Consolas, monospace;
    --signature: "Mrs Saint Delafield", "Brush Script MT", cursive;
}

/* Papir: alt der skal ligne rigtige dokumenter, får lyse farver igen */
.paper,
.prompt-paper,
.signature-pad canvas,
.profile-signature {
    --paper: #f3efe7;
    --paper-deep: #e9e3d7;
    --sheet: #fffdf8;
    --ink: #1c1a17;
    --ink-soft: #46413a;
    --muted: #7d7568;
    --faint: #a59d8f;
    --rule: #d8d0c1;
    --rule-strong: #b9ae9b;
    --line-heavy: #1c1a17;
    --accent: #7b1e22;
    --accent-wash: rgba(123, 30, 34, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

body.nui-hidden {
    visibility: hidden;
    pointer-events: none;
}

body.nui-open {
    visibility: visible;
}

.hidden {
    display: none !important;
}

button {
    font: inherit;
    color: inherit;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

::selection {
    background: rgba(123, 30, 34, 0.18);
}

/* Tablet ------------------------------------------------------------------ */

.tablet-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: rise 0.18s ease-out;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.tablet-frame {
    width: min(1480px, 92vw);
    height: min(900px, 88vh);
    padding: 14px;
    border-radius: 20px;
    background: #191816;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px #2c2a27;
}

.tablet-window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: var(--paper);
}

/* Brevhoved --------------------------------------------------------------- */

.top-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 66px;
    padding: 0 28px;
    border-bottom: 3px double var(--line-heavy);
    background: var(--paper);
    flex-shrink: 0;
}

/* Logo + navn (bruges i top, på brevpapir og i klient-popup) */
.brand-block,
.paper-brand,
.prompt-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-only .brand-words {
    display: none;
}

.brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.brand-block .brand-logo {
    height: 40px;
    max-width: 180px;
}

.brand-block .brand-words {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.brand-block .brand-name {
    font-size: 28px;
}

.brand-block .brand-subtitle {
    padding-left: 14px;
    border-left: 1px solid var(--rule-strong);
}

.user-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
}

.user-grade {
    color: var(--muted);
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
}

.date-time {
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 12px;
    white-space: pre;
}

.close-btn {
    padding: 4px 0;
    border: none;
    border-bottom: 1px solid var(--line-heavy);
    background: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.close-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Faner ------------------------------------------------------------------- */

.tab-bar {
    display: flex;
    align-items: flex-end;
    min-height: 38px;
    padding-top: 6px;
    border-bottom: 1px solid var(--rule-strong);
    background: var(--paper-deep);
    flex-shrink: 0;
}

.tab-home-slot {
    display: flex;
    align-items: flex-end;
    width: 232px;
    padding: 0 0 0 20px;
    flex-shrink: 0;
}

.tab-tabs-slot {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    flex: 1;
    min-width: 0;
    padding-left: 8px;
}

.tabs {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
}

.tabs::-webkit-scrollbar {
    height: 0;
}

.home-tab-btn,
.tab-item {
    position: relative;
    top: 1px;
    border: 1px solid transparent;
    border-bottom: none;
}

.home-tab-btn {
    padding: 8px 16px;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.tab-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.home-tab-btn:hover,
.tab-item:hover {
    color: var(--ink);
}

.home-tab-btn.active,
.tab-item.active {
    border-color: var(--rule-strong);
    border-top: 2px solid var(--accent);
    background: var(--paper);
    color: var(--ink);
}

.tab-button {
    max-width: 200px;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-item.active .tab-button {
    color: var(--ink);
    font-weight: 500;
}

.close-tab-btn {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    border: none;
    background: none;
    color: var(--faint);
    cursor: pointer;
    font-size: 11px;
}

.close-tab-btn:hover {
    color: var(--accent);
}

.add-tab-btn {
    width: 28px;
    height: 30px;
    border: none;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 17px;
}

.add-tab-btn:hover {
    color: var(--ink);
}

/* Register (sidemenu) ----------------------------------------------------- */

.main-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}

.module-nav {
    display: flex;
    flex-direction: column;
    width: 232px;
    padding: 18px 0 16px;
    overflow-y: auto;
    border-right: 1px solid var(--rule-strong);
    background: var(--paper-deep);
    flex-shrink: 0;
}

.module-folder {
    margin-bottom: 14px;
}

.module-folder-header {
    margin: 0 20px 4px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--rule-strong);
    color: var(--muted);
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
}

.module-button {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    padding: 8px 20px;
    border: none;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 13.5px;
    text-align: left;
}

.module-button:hover {
    color: var(--ink);
    background: var(--hover);
}

.module-button.active {
    color: var(--ink);
    font-weight: 600;
    background: var(--paper);
}

.module-button.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.module-index {
    width: 18px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
}

.module-button.active .module-index {
    color: var(--accent);
}

.module-badge {
    margin-left: auto;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
}

.nav-footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
    padding: 14px 20px 0;
    color: var(--faint);
    font-size: 10.5px;
    line-height: 1.4;
}

.nav-footer span:first-child {
    color: var(--muted);
    font-family: var(--serif);
    font-size: 13px;
}

/* Indhold ----------------------------------------------------------------- */

.content-area {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    background: var(--paper);
}

.content-area::-webkit-scrollbar,
.module-nav::-webkit-scrollbar,
.scroll-list::-webkit-scrollbar,
.paper-scroll::-webkit-scrollbar,
.picker-results::-webkit-scrollbar,
.prompt-paper::-webkit-scrollbar,
textarea::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.content-area::-webkit-scrollbar-thumb,
.module-nav::-webkit-scrollbar-thumb,
.scroll-list::-webkit-scrollbar-thumb,
.paper-scroll::-webkit-scrollbar-thumb,
.picker-results::-webkit-scrollbar-thumb,
.prompt-paper::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
    background: var(--rule-strong);
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px 36px 32px;
}

.page.fill {
    height: 100%;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-heavy);
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-header h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.05;
}

.page-header p:not(.eyebrow) {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.back-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

/* Nøgletal ---------------------------------------------------------------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 28px;
    border-bottom: 1px solid var(--rule);
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 22px 16px;
    border-left: 1px solid var(--rule);
}

.stat-card:first-child {
    padding-left: 0;
    border-left: none;
}

.stat-value {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 500;
    line-height: 1.05;
    font-variant-numeric: lining-nums tabular-nums;
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
}

/* Paneler ----------------------------------------------------------------- */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 34px;
}

.grid-3 {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 30px 34px;
}

.span-2 {
    grid-column: 1 / -1;
}

.panel {
    min-width: 0;
    padding-top: 10px;
    border-top: 2px solid var(--line-heavy);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.panel-header h2 {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.panel-header .count {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

.side-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.info-item {
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
}

.info-item span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
}

.info-item strong {
    display: block;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.description-text {
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.empty {
    padding: 28px 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 16px;
    font-style: italic;
    text-align: center;
}

.empty.left {
    padding: 8px 0;
    text-align: left;
}

.loading-line {
    padding: 24px 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 16px;
    font-style: italic;
    text-align: center;
}

/* Lister ------------------------------------------------------------------ */

.mini-list {
    display: flex;
    flex-direction: column;
}

.mini-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--rule);
    background: none;
    cursor: pointer;
    text-align: left;
}

.mini-row:hover {
    background: var(--accent-wash);
}

div.mini-row {
    cursor: default;
}

div.mini-row:hover {
    background: none;
}

.mini-row strong,
.mini-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-row strong {
    font-size: 14px;
    font-weight: 500;
}

.mini-row small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.row-side {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 12px;
    white-space: nowrap;
}

.hearing-row {
    grid-template-columns: 46px minmax(0, 1fr) auto;
}

.date-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 0;
    border: 1px solid var(--line-heavy);
    line-height: 1.1;
}

.date-chip b {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
}

.date-chip i {
    color: var(--accent);
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Værktøjslinje ----------------------------------------------------------- */

.toolbar {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(400px, 100%);
    height: 34px;
    border-bottom: 1px solid var(--rule-strong);
    color: var(--muted);
}

.search-wrap:focus-within {
    border-color: var(--line-heavy);
    color: var(--ink);
}

.search-wrap svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.search-wrap input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.search-wrap input::placeholder {
    color: var(--faint);
}

.segment {
    display: inline-flex;
    gap: 18px;
}

.segment button {
    padding: 6px 0;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
}

.segment button:hover {
    color: var(--ink);
}

.segment button.active {
    border-bottom-color: var(--accent);
    color: var(--ink);
    font-weight: 600;
}

/* Tabeller ---------------------------------------------------------------- */

.table {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    border-top: 2px solid var(--line-heavy);
    border-bottom: 1px solid var(--line-heavy);
}

.table-head,
.table-row {
    display: grid;
    align-items: center;
    gap: 16px;
    padding: 0 6px;
}

.table-head {
    min-height: 36px;
    border-bottom: 1px solid var(--line-heavy);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.scroll-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.table-row {
    width: 100%;
    min-height: 48px;
    border: none;
    border-bottom: 1px solid var(--rule);
    background: none;
    font-size: 13.5px;
    text-align: left;
}

.table-row:nth-child(even) {
    background: var(--zebra);
}

.table-row.clickable {
    cursor: pointer;
}

.table-row.clickable:hover {
    background: var(--accent-wash);
}

.table-row > span,
.table-head > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-main strong,
.cell-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-main strong {
    font-weight: 500;
}

.cell-main small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.mono {
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 12px;
}

.cell-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.cols-clients { grid-template-columns: minmax(180px, 1.4fr) minmax(100px, 0.8fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr) 60px 80px; }
.cols-cases { grid-template-columns: 124px minmax(180px, 1.5fr) minmax(120px, 1fr) 84px minmax(110px, 0.9fr) 150px 116px; }
.cols-hearings { grid-template-columns: 130px minmax(170px, 1.4fr) minmax(120px, 1fr) minmax(100px, 0.7fr) minmax(100px, 0.8fr) 96px 160px; }
.cols-documents { grid-template-columns: minmax(180px, 1.5fr) minmax(110px, 0.7fr) minmax(120px, 1fr) 150px 130px 120px; }
.cols-invoices { grid-template-columns: 124px minmax(120px, 1fr) minmax(160px, 1.4fr) 110px 136px 116px 200px; }
.cols-employees { grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) 80px 80px minmax(220px, 1fr); }
.cols-logs { grid-template-columns: 120px minmax(140px, 0.8fr) minmax(150px, 0.8fr) minmax(220px, 2fr); }

/* Status-mærker ----------------------------------------------------------- */

.badge {
    display: inline-block;
    max-width: 100%;
    padding: 2px 6px 1px;
    border: 1px solid currentColor;
    border-radius: 1px;
    overflow: hidden;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge.plain {
    padding: 0;
    border: none;
    letter-spacing: 0.06em;
}

.tone-blue { color: #8fb3dc; }
.tone-gold { color: var(--accent); }
.tone-purple { color: #b9a2dc; }
.tone-green { color: #8fc79c; }
.tone-red { color: var(--accent); }
.tone-gray { color: var(--muted); }

.online-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.online-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
}

.online-dot.on { color: #8fc79c; }
.online-dot.off { color: var(--faint); }

/* Knapper ----------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    border: 1px solid var(--line-heavy);
    border-radius: 1px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.12s ease, color 0.12s ease;
}

.btn:hover {
    border-color: var(--ink);
    background: var(--hover);
    color: var(--ink);
}

.btn.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
}

.btn.primary:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    color: var(--on-accent);
}

.btn.danger {
    border-color: var(--danger);
    color: var(--danger);
}

.btn.danger:hover {
    background: var(--danger);
    color: var(--on-accent);
}

.btn.ghost {
    height: auto;
    padding: 3px 0;
    border: none;
    border-bottom: 1px solid var(--rule-strong);
    color: var(--ink-soft);
}

.btn.ghost:hover {
    background: none;
    border-color: var(--line-heavy);
    color: var(--ink);
}

.btn.small {
    height: 26px;
    padding: 0 10px;
    font-size: 11.5px;
}

.btn.small.ghost {
    height: auto;
    padding: 2px 0;
}

.btn:disabled,
.btn:disabled:hover {
    cursor: default;
    opacity: 0.4;
    background: transparent;
    color: var(--ink);
}

.btn.primary:disabled,
.btn.primary:disabled:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

.link {
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--accent);
    background: none;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
}

/* Formularer -------------------------------------------------------------- */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field > span {
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 500;
}

.field input,
.field select,
.field textarea,
.inline-select {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--rule-strong);
    border-radius: 1px;
    outline: none;
    background: var(--sheet);
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
}

.field textarea {
    height: auto;
    min-height: 110px;
    padding: 10px;
    line-height: 1.55;
    resize: vertical;
}

.field textarea.tall {
    min-height: 360px;
    font-family: var(--serif);
    font-size: 15px;
}

.field select,
.inline-select {
    appearance: none;
    padding-right: 28px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
        linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
    background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.inline-select {
    width: auto;
    height: 30px;
    font-size: 12.5px;
    background-position: calc(100% - 15px) 12px, calc(100% - 10px) 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.inline-select:focus {
    border-color: var(--line-heavy);
}

.field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.85);
    opacity: 0.7;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}

.form-error {
    margin: 14px 0 0;
    padding: 9px 12px;
    border-left: 3px solid var(--accent);
    background: var(--accent-wash);
    color: var(--accent);
    font-size: 12.5px;
}

.picker-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line-heavy);
    background: var(--sheet);
    font-weight: 500;
}

.picker-selected small {
    margin-left: 6px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
}

.picker-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--rule-strong);
    border-top: none;
    background: var(--sheet);
}

.picker-results .mini-row {
    padding: 8px 10px;
}

/* Noter / sagsforløb ------------------------------------------------------ */

.note-compose {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.note-compose textarea {
    flex: 1;
    height: 40px;
    min-height: 40px;
    padding: 10px;
    border: 1px solid var(--rule-strong);
    border-radius: 1px;
    outline: none;
    background: var(--sheet);
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
    resize: vertical;
}

.note-compose textarea:focus {
    border-color: var(--line-heavy);
}

.note-compose .btn {
    height: 40px;
}

.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--muted);
    font-size: 11px;
}

.timeline-meta b {
    color: var(--ink-soft);
    font-weight: 600;
}

.timeline-meta span {
    font-family: var(--mono);
    font-size: 10.5px;
}

.timeline-item p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Sagshoved --------------------------------------------------------------- */

.case-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-heavy);
}

.case-hero h1 {
    margin: 2px 0 10px;
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.1;
}

.case-hero .badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.case-controls {
    display: grid;
    grid-template-columns: auto minmax(170px, auto);
    gap: 6px 12px;
    align-items: center;
    color: var(--muted);
    font-size: 11.5px;
    text-align: right;
}

.case-controls .inline-select {
    width: 100%;
}

/* Dokument (papir) -------------------------------------------------------- */

.paper-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 34px;
    flex: 1;
    min-height: 0;
}

.paper-scroll {
    min-height: 0;
    overflow-y: auto;
    padding: 4px 8px 24px;
}

.paper {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 70px 56px;
    border: 1px solid var(--rule);
    background: var(--sheet);
    box-shadow: 0 1px 0 var(--rule), 0 14px 30px rgba(60, 48, 30, 0.12);
    color: var(--ink);
}

.paper-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    margin-bottom: 34px;
    border-bottom: 3px double var(--line-heavy);
}

.paper-brand .brand-logo {
    height: 58px;
    max-width: 220px;
}

.paper-brand .brand-words {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.paper-brand .brand-name {
    font-size: 28px;
}

.paper-brand .brand-subtitle {
    font-size: 9.5px;
}

.paper-meta {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10.5px;
    line-height: 1.6;
    text-align: right;
}

.paper-body {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.paper-body p {
    margin: 0;
}

.paper-body p.center {
    text-align: center;
}

.paper-body .gap {
    height: 0.85em;
}

.paper-body h3 {
    margin: 0.2em 0 0.3em;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-align: center;
}

.paper-body h4 {
    margin: 0.5em 0 0.15em;
    font-size: 17px;
    font-weight: 600;
}

.paper-body hr {
    height: 0;
    margin: 0.7em 0;
    border: none;
    border-top: 1px solid var(--line-heavy);
}

.paper-body ul {
    margin: 0.2em 0;
    padding-left: 1.4em;
}

.paper-body li {
    margin: 0.1em 0;
}

.paper-body strong {
    font-weight: 600;
}

.fill-line {
    display: inline-block;
    max-width: 100%;
    height: 1em;
    border-bottom: 1px solid var(--line-heavy);
    vertical-align: baseline;
}

.paper-note {
    margin-top: 26px;
    padding: 8px 12px;
    border-left: 3px solid #8a6416;
    background: rgba(138, 100, 22, 0.07);
    color: #6b4e12;
    font-size: 12px;
}

.signature-line.has-image {
    display: flex;
    align-items: flex-end;
    height: 70px;
}

.signature-line.has-image img {
    max-width: 100%;
    max-height: 70px;
}

.paper-signatures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    margin-top: 56px;
}

.signature-line {
    height: 52px;
    border-bottom: 1px solid var(--line-heavy);
    color: #1f2d5a;
    font-family: var(--signature);
    font-size: 40px;
    line-height: 62px;
    overflow: hidden;
    white-space: nowrap;
}

.signature-line.pending {
    color: var(--faint);
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
}

.signature-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.paper-stamp {
    display: inline-block;
    margin-top: 32px;
    padding: 5px 14px;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transform: rotate(-3deg);
    opacity: 0.85;
}

/* Dialog ------------------------------------------------------------------ */

.dialog-backdrop {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.6);
}

.dialog {
    width: min(500px, 100%);
    max-height: 100%;
    overflow-y: auto;
    padding: 24px 26px;
    border: 1px solid var(--line-heavy);
    background: var(--paper);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    animation: rise 0.14s ease-out;
}

.dialog h2 {
    margin: 0 0 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-heavy);
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
}

.dialog > p:not(.eyebrow) {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
}

.dialog .form-grid {
    grid-template-columns: 1fr;
    margin-top: 16px;
}

/* Klient-popup (faktura / underskrift) ------------------------------------ */

#prompt-layer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#prompt-layer.active {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.3);
}

.prompt-card {
    width: min(440px, 92vw);
    border: 1px solid var(--line-heavy);
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    animation: rise 0.18s ease-out;
}

.prompt-card.document {
    width: min(700px, 94vw);
}

.prompt-top {
    padding: 22px 26px 14px;
    border-bottom: 3px double var(--line-heavy);
}

.prompt-brand .brand-logo {
    height: 30px;
    max-width: 140px;
}

.prompt-brand .brand-name {
    color: var(--accent);
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.prompt-brand .brand-subtitle {
    display: none;
}

.prompt-top h2 {
    margin: 4px 0 2px;
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 500;
}

.prompt-top small {
    color: var(--muted);
    font-size: 12px;
}

.timer-bar {
    height: 2px;
    background: var(--accent);
    transform-origin: left;
    transition: transform 1s linear;
}

.prompt-body {
    padding: 18px 26px 6px;
}

.prompt-body .info-item {
    border-bottom: none;
    padding-bottom: 0;
}

.prompt-amount {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: 46px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: lining-nums;
}

.prompt-paper {
    max-height: 38vh;
    overflow-y: auto;
    padding: 26px 34px;
    border: 1px solid var(--rule);
    background: var(--sheet);
    font-size: 15px;
}

.signature-pad {
    margin-top: 14px;
}

.signature-pad-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 500;
}

.signature-pad canvas {
    display: block;
    width: 100%;
    height: 130px;
    border: 1px dashed var(--rule-strong);
    border-bottom: 1px solid var(--line-heavy);
    background:
        linear-gradient(transparent calc(100% - 34px), rgba(28, 26, 23, 0.12) calc(100% - 34px), rgba(28, 26, 23, 0.12) calc(100% - 33px), transparent calc(100% - 33px)),
        var(--sheet);
    cursor: crosshair;
    touch-action: none;
}

.signature-pad-foot {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

/* Dokument åbnet fra inventory */
#viewer-layer {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

#viewer-layer.active {
    display: flex;
}

.viewer-wrap {
    display: flex;
    flex-direction: column;
    width: min(860px, 94vw);
    max-height: 92vh;
    border: 1px solid var(--line-heavy);
    background: var(--paper);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    animation: rise 0.18s ease-out;
}

.viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    border-bottom: 3px double var(--line-heavy);
    font-family: var(--serif);
    font-size: 20px;
}

.viewer-scroll {
    flex: 1;
    padding: 24px;
}

.prompt-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 14px 26px;
    border-top: 1px solid var(--rule);
}

.prompt-actions .timer {
    margin-right: auto;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11.5px;
}

/* Beskeder ---------------------------------------------------------------- */

.toast-stack {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    min-width: 240px;
    max-width: 380px;
    padding: 11px 16px;
    border-left: 3px solid var(--accent);
    border-top: 1px solid var(--rule-strong);
    border-right: 1px solid var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
    background: #1a221e;
    color: var(--ink);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    font-size: 13px;
    animation: rise 0.16s ease-out;
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.success {
    border-left-color: #7fb38a;
}

/* Dokument-editor ---------------------------------------------------------- */

.format-toolbar {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--rule-strong);
    border-bottom: none;
    background: var(--paper-deep);
}

.format-toolbar button {
    padding: 6px 11px;
    border: none;
    border-right: 1px solid var(--rule);
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 12px;
}

.format-toolbar button:hover {
    background: var(--paper);
    color: var(--ink);
}

.format-toolbar + textarea {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-stack .btn {
    width: 100%;
}

/* Retsmøde-kort ----------------------------------------------------------- */

.hearing-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hearing-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--rule-strong);
    border-left: 3px solid var(--rule-strong);
    background: var(--sheet);
}

.hearing-card.today {
    border-left-color: var(--accent);
}

.hearing-card-time b {
    display: block;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.hearing-card-time span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

.hearing-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.hearing-card-title strong {
    font-size: 15px;
    font-weight: 600;
}

.hearing-card-meta,
.hearing-card-people {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    color: var(--muted);
    font-size: 12px;
}

.hearing-card-people {
    margin-top: 6px;
}

.hearing-card-people b {
    color: var(--ink-soft);
    font-weight: 500;
}

.hearing-card-notes {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    white-space: pre-wrap;
}

.hearing-card-verdict {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 2px solid var(--accent);
    background: var(--accent-wash);
    font-size: 12.5px;
}

.hearing-card-verdict b {
    margin-right: 12px;
}

.hearing-card-verdict span {
    margin-right: 12px;
    color: var(--accent);
    font-family: var(--mono);
}

.hearing-card-verdict p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    line-height: 1.5;
    white-space: pre-wrap;
}

.hearing-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.hearing-card-actions:empty {
    display: none;
}

/* Retskalender ------------------------------------------------------------ */

.cal-month {
    min-width: 150px;
    font-family: var(--serif);
    font-size: 20px;
    text-align: center;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 2px solid var(--line-heavy);
    border-left: 1px solid var(--rule);
}

.cal-head {
    padding: 8px 10px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--line-heavy);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cal-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 96px;
    padding: 6px 7px;
    border: none;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: none;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
}

.cal-cell.empty {
    background: rgba(0, 0, 0, 0.12);
    cursor: default;
}

.cal-cell:not(.empty):hover {
    background: var(--hover);
}

.cal-cell.selected {
    background: var(--accent-wash);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.cal-day {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.1;
}

.cal-cell.today .cal-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
}

.cal-item {
    display: block;
    padding: 1px 5px;
    overflow: hidden;
    border-left: 2px solid var(--muted);
    background: var(--hover);
    color: var(--ink-soft);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-item.status-planned { border-left-color: #8fb3dc; }
.cal-item.status-verdict { border-left-color: var(--accent); }
.cal-item.status-held { border-left-color: #8fc79c; }
.cal-item.status-cancelled { border-left-color: var(--danger); text-decoration: line-through; opacity: 0.7; }

.cal-more {
    color: var(--muted);
    font-size: 10.5px;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.cal-legend .cal-item {
    display: inline-block;
}

/* Opslagstavle ------------------------------------------------------------ */

.board-panel {
    margin-bottom: 30px;
}

.announcement-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.announcement {
    padding: 14px 16px;
    border: 1px solid var(--rule-strong);
    background: var(--sheet);
}

.announcement.pinned {
    border-color: var(--accent);
    border-top-width: 3px;
}

.announcement-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.announcement-head strong {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
}

.announcement-head small {
    color: var(--muted);
    font-size: 11px;
}

.announcement p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.announcement-actions {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

/* Løn og bonus ------------------------------------------------------------ */

.cols-payroll { grid-template-columns: minmax(170px, 1.3fr) 120px 80px 70px 110px 110px 140px; }

.payout-amount {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
}

/* Klientportal ------------------------------------------------------------ */

.portal-wrap {
    width: min(820px, 94vw);
}

.portal-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 28px 28px;
}

.portal-body h2 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 500;
}

.portal-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-heavy);
    color: var(--muted);
    font-size: 13px;
}

.portal-summary b {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
}

.portal-section {
    margin-bottom: 24px;
}

.portal-section h3 {
    margin: 0 0 4px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--line-heavy);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Papir uden ramme (kvittering, dokument, faktura til betaling) ----------- */

.sheet-viewer {
    display: flex;
    flex-direction: column;
    width: min(820px, 94vw);
    max-height: 94vh;
    animation: rise 0.2s ease-out;
}

.sheet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.sheet-bar button {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(15, 15, 15, 0.55);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    backdrop-filter: blur(4px);
}

.sheet-bar button:hover {
    background: rgba(15, 15, 15, 0.8);
}

.sheet-timer {
    font-family: var(--mono);
    font-size: 11.5px;
    opacity: 0.85;
}

.sheet-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.sheet-scroll::-webkit-scrollbar {
    width: 8px;
}

.sheet-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}

.sheet-scroll .paper {
    max-width: none;
    margin: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

#viewer-layer.active,
#prompt-layer.active {
    background: rgba(0, 0, 0, 0.55);
}

/* Betalingsstribe nederst på fakturaen */
.pay-strip {
    flex-shrink: 0;
    border-top: 1px solid #d8d0c1;
    background: #fffdf8;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    color: #1c1a17;
}

.pay-strip .timer-bar {
    background: #7b1e22;
}

.pay-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 30px 18px;
}

.pay-strip-amount span {
    display: block;
    color: #7d7568;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pay-strip-amount strong {
    display: block;
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
}

.pay-strip-amount small {
    color: #7d7568;
    font-size: 11.5px;
}

.pay-strip-actions {
    display: flex;
    gap: 10px;
}

.pay-accept,
.pay-decline {
    height: 44px;
    padding: 0 22px;
    border-radius: 1px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
}

.pay-accept {
    border: 1px solid #1c1a17;
    background: #1c1a17;
    color: #fffdf8;
}

.pay-accept:hover {
    border-color: #7b1e22;
    background: #7b1e22;
}

.pay-decline {
    border: 1px solid #b9ae9b;
    background: transparent;
    color: #46413a;
}

.pay-decline:hover {
    border-color: #7b1e22;
    color: #7b1e22;
}

.pay-accept:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Faktura ----------------------------------------------------------------- */

.invoice-paper {
    font-family: var(--sans);
}

.invoice-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}

.invoice-to span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.invoice-to strong {
    display: block;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
}

.invoice-to small {
    color: var(--muted);
    font-size: 12px;
}

.invoice-facts {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px 18px;
    margin: 0;
    font-size: 12px;
}

.invoice-facts div {
    display: contents;
}

.invoice-facts dt {
    color: var(--muted);
}

.invoice-facts dd {
    margin: 0;
    font-family: var(--mono);
    text-align: right;
}

.invoice-title {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.invoice-note {
    margin: 0 0 20px;
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.invoice-lines {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.invoice-lines th {
    padding: 8px 6px;
    border-top: 2px solid var(--line-heavy);
    border-bottom: 1px solid var(--line-heavy);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

.invoice-lines td {
    padding: 10px 6px;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

.invoice-lines .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Faste kolonner, så specifikationen får mest plads */
.invoice-lines {
    table-layout: fixed;
}

.invoice-lines th,
.invoice-lines th.num {
    white-space: normal;
    line-height: 1.3;
    vertical-align: bottom;
}

.invoice-lines thead th:nth-child(1) { width: 49%; }
.invoice-lines thead th:nth-child(2) { width: 15%; }
.invoice-lines thead th:nth-child(3) { width: 18%; }
.invoice-lines thead th:nth-child(4) { width: 18%; }

.invoice-totals {
    width: 300px;
    max-width: 100%;
    margin: 14px 0 0 auto;
    font-size: 13px;
}

.invoice-totals div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 5px 6px;
}

.invoice-totals .invoice-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 2px solid var(--line-heavy);
    border-bottom: 3px double var(--line-heavy);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
}

.invoice-footer {
    margin-top: 34px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.invoice-footer p {
    margin: 0 0 4px;
}

.prompt-card.document.invoice {
    width: min(760px, 94vw);
}

.prompt-invoice {
    max-height: 56vh;
    overflow-y: auto;
}

.prompt-invoice .paper {
    padding: 34px 40px;
    box-shadow: none;
}

.prompt-pay-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.prompt-pay-row .prompt-amount {
    margin: 0;
    font-size: 34px;
}

.clickable-row {
    cursor: pointer;
}

/* Linje-editor */
.line-editor {
    border-top: 1px solid var(--line-heavy);
    margin-bottom: 8px;
}

.line-editor-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.line-main {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 8px;
}

.line-numbers {
    display: grid;
    grid-template-columns: 110px 130px minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.line-numbers label {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.line-numbers label span,
.line-total small {
    color: var(--muted);
    font-size: 10.5px;
}

.line-numbers input {
    width: 100%;
}

.line-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.line-total b {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
}

.line-editor-row select {
    height: 32px;
    min-width: 0;
    padding: 0 6px;
    border: 1px solid var(--rule-strong);
    border-radius: 1px;
    outline: none;
    background: var(--sheet);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}

.line-editor-row select option {
    background: var(--panel-solid, #18201c);
}

.line-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.line-qty input {
    width: 56px;
}

.line-qty small {
    color: var(--muted);
    font-size: 10.5px;
}

.line-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.line-quick .price-chip {
    padding: 4px 8px;
    font-size: 11.5px;
}

.invoice-lines .invoice-section td {
    padding: 14px 6px 4px;
    border-bottom: 1px solid var(--line-heavy);
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 600;
}

.invoice-lines .invoice-section small {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
}

.invoice-lines .invoice-subtotal td {
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
}

.line-editor-head {
    padding: 6px 0;
    border-bottom: 1px solid var(--rule-strong);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.line-editor-row {
    padding: 6px 0;
    border-bottom: 1px solid var(--rule);
}

.line-editor-row input {
    height: 32px;
    min-width: 0;
    padding: 0 8px;
    border: 1px solid var(--rule-strong);
    border-radius: 1px;
    outline: none;
    background: var(--sheet);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.line-editor-row input:focus {
    border-color: var(--ink);
}

.line-total {
    font-family: var(--mono);
    font-size: 12px;
    text-align: right;
}

.price-picker.compact .price-picker-group {
    grid-template-columns: 130px minmax(0, 1fr);
}

.invoice-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--accent-wash);
    color: var(--muted);
    font-size: 12.5px;
}

.invoice-summary b {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
}

/* Visitkort --------------------------------------------------------------- */

.business-card {
    --card-bg: #fbf8f1;
    --card-ink: #1c1a17;
    --card-muted: #7d7568;
    --card-accent: #7b1e22;
    --card-line: rgba(28, 26, 23, 0.12);
    --card-border: #d8d0c1;
    --ink: var(--card-ink);
    --muted: var(--card-muted);
    --accent: var(--card-accent);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 420px;
    max-width: 100%;
    aspect-ratio: 85 / 55;
    padding: 24px 26px 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    color: var(--ink);
}

.business-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 3;
    border: 1px solid var(--card-line);
    pointer-events: none;
}

.business-card > div {
    position: relative;
    z-index: 2;
}

.card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.14;
}

.business-card-person em {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 14px;
}

/* Skabeloner */
.business-card.tpl-dark {
    --card-bg: #111614;
    --card-ink: #ece5d5;
    --card-muted: #8f8875;
    --card-accent: #c8a35a;
    --card-line: rgba(236, 229, 213, 0.14);
    --card-border: #2a332e;
}

.business-card.tpl-bordeaux {
    --card-bg: #5b1418;
    --card-ink: #f6eee2;
    --card-muted: rgba(246, 238, 226, 0.7);
    --card-accent: #e3c27e;
    --card-line: rgba(246, 238, 226, 0.2);
    --card-border: #43100f;
}

.business-card.tpl-minimal {
    --card-bg: #ffffff;
    --card-ink: #121212;
    --card-muted: #8a8a8a;
    --card-accent: #121212;
    --card-border: #e4e4e4;
}

.business-card.tpl-minimal::before {
    display: none;
}

.business-card.tpl-minimal .business-card-person strong {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 600;
}

.business-card.tpl-minimal .business-card-foot {
    border-top-color: var(--card-border);
}

.business-card.tpl-photo {
    --card-bg: #111;
    --card-ink: #ffffff;
    --card-muted: rgba(255, 255, 255, 0.78);
    --card-accent: #e3c27e;
    --card-line: rgba(255, 255, 255, 0.25);
    --card-border: #111;
}

.business-card.tpl-photo .card-bg {
    opacity: 1;
}

.business-card.tpl-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.3));
}

.business-card.tpl-photo .business-card-foot {
    border-top-color: rgba(255, 255, 255, 0.5);
}

/* Opstilling */
.business-card.align-center {
    text-align: center;
}

.business-card.align-center .card-brand {
    justify-content: center;
}

.business-card.align-center .card-brand .brand-words {
    align-items: center;
}

.business-card.align-center .business-card-foot {
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

/* Designer */
.card-designer {
    display: grid;
    grid-template-columns: 440px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.card-designer-preview {
    position: sticky;
    top: 0;
}

.card-print-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.card-print-row .field {
    width: 90px;
}

.card-templates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.card-templates button {
    padding: 7px 14px;
    border: 1px solid var(--rule-strong);
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 12.5px;
}

.card-templates button:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.card-templates button.active {
    border-color: var(--accent);
    background: var(--accent-wash);
    color: var(--accent);
    font-weight: 600;
}

.color-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.field input[type="color"] {
    width: 54px;
    height: 36px;
    padding: 2px;
    cursor: pointer;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 13px;
    cursor: pointer;
}

.check-field input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-brand .brand-logo {
    height: 34px;
    max-width: 140px;
}

.card-brand .brand-words {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.card-brand .brand-name {
    font-size: 22px;
}

.card-brand .brand-subtitle {
    font-size: 8.5px;
}

.business-card-person strong {
    display: block;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
}

.business-card-person span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.business-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ink);
    color: var(--muted);
    font-size: 11px;
}

.business-card-foot b {
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 500;
}

.card-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    animation: rise 0.2s ease-out;
}

.card-stage .business-card {
    width: min(520px, 90vw);
}

.card-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Tavle ved receptionen --------------------------------------------------- */

.board-wrap {
    width: min(640px, 94vw);
    height: auto;
    max-height: 92vh;
}

.board-body {
    padding: 22px 28px 26px;
    overflow-y: auto;
}

.board-body h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 500;
}

.board-list {
    border-top: 2px solid var(--line-heavy);
}

.board-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px 120px;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
}

.board-name strong,
.board-name small {
    display: block;
}

.board-name strong {
    font-size: 15px;
    font-weight: 500;
}

.board-name small {
    color: var(--muted);
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
}

.board-phone {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 14px;
}

/* Prisliste --------------------------------------------------------------- */

.price-group {
    max-width: 980px;
    margin-bottom: 30px;
}

.price-group h2 {
    margin: 0 0 4px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--line-heavy);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
}

.price-row {
    display: grid;
    grid-template-columns: auto minmax(30px, 1fr) auto auto;
    align-items: baseline;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--rule);
}

.price-name strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.price-name small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.price-dots {
    align-self: center;
    border-bottom: 1px dotted var(--rule-strong);
}

.price-amount {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.price-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-picker-group {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
}

.price-picker-group > span {
    padding-top: 6px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
}

.price-picker-group > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.price-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--rule-strong);
    background: var(--sheet);
    color: var(--ink);
    cursor: pointer;
    font-size: 12.5px;
}

.price-chip b {
    color: var(--accent);
    font-weight: 600;
}

.price-chip:hover {
    border-color: var(--accent);
}

/* Lovgivning -------------------------------------------------------------- */

.law-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--rule-strong);
}

.law-tabs button {
    position: relative;
    top: 1px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-bottom: none;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: var(--serif);
    font-size: 16px;
}

.law-tabs button:hover {
    color: var(--ink);
}

.law-tabs button.active {
    border-color: var(--rule-strong);
    border-top: 2px solid var(--accent);
    background: var(--sheet);
    color: var(--ink);
}

.law-body {
    max-width: 920px;
}

.law-description,
.law-hits {
    margin: 0 0 22px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 17px;
    font-style: italic;
}

.law-chapter {
    margin-bottom: 30px;
}

.law-chapter h2 {
    margin: 0 0 4px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--line-heavy);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.law-paragraph {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}

.law-number {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    white-space: nowrap;
}

.law-content h3 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 4px;
    font-size: 14.5px;
    font-weight: 600;
}

.law-content h3 small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.law-content p {
    margin: 0;
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
}

.law-penalty {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 11.5px;
}

.law-penalty span {
    padding-left: 10px;
    border-left: 2px solid var(--accent);
}

.law-note {
    margin-top: 8px;
    color: var(--accent);
    font-size: 12px;
}

.law-chapter-intro {
    margin: 8px 0 6px;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.6;
}

.law-explain {
    margin-top: 10px;
    padding: 9px 12px;
    border-left: 2px solid var(--accent);
    background: var(--accent-wash);
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.55;
}

.law-explain b {
    color: var(--ink);
    font-weight: 600;
}

.law-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    opacity: 0.55;
    transition: opacity 0.12s ease;
}

.law-paragraph:hover .law-actions {
    opacity: 1;
}

.law-flag {
    padding: 0 5px;
    border: 1px solid var(--rule-strong);
    color: var(--muted);
    font-size: 9.5px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.law-footer {
    max-width: 920px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
}

.law-note::before {
    content: "Note: ";
    font-weight: 600;
}

/* Underskrivere ----------------------------------------------------------- */

.signer-list {
    border-top: 1px solid var(--rule-strong);
    margin-bottom: 8px;
}

.signer-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 150px auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
}

.signer-index {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 11px;
}

.signer-name strong,
.signer-name small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signer-name strong {
    font-weight: 500;
}

.signer-name small {
    color: var(--muted);
    font-size: 11px;
}

.signer-row .inline-select {
    width: 100%;
}

.paper-signatures {
    row-gap: 34px;
}

/* Timer + beviser --------------------------------------------------------- */

.time-compose {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 12px;
}

.time-compose input {
    height: 34px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid var(--rule-strong);
    border-radius: 1px;
    outline: none;
    background: var(--sheet);
    color: var(--ink);
    font: inherit;
}

.time-compose input:focus {
    border-color: var(--line-heavy);
}

.time-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line-heavy);
    font-size: 13px;
}

.time-total > span:first-child {
    margin-right: auto;
}

.time-total strong {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
}

.evidence-list {
    display: flex;
    flex-direction: column;
}

.evidence-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
}

.evidence-item:not(:has(.evidence-thumb)) {
    grid-template-columns: minmax(0, 1fr) auto;
}

.evidence-thumb {
    width: 96px;
    height: 72px;
    padding: 0;
    border: 1px solid var(--rule-strong);
    background: var(--paper-deep);
    cursor: zoom-in;
    overflow: hidden;
}

.evidence-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evidence-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.evidence-head strong {
    font-weight: 500;
}

.evidence-body p {
    margin: 0 0 4px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.evidence-body small {
    color: var(--muted);
    font-size: 11px;
}

.evidence-url {
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.lightbox {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    background: rgba(20, 18, 15, 0.86);
    cursor: zoom-out;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100% - 30px);
    border: 6px solid var(--sheet);
}

.lightbox span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.cols-bookings { grid-template-columns: 120px minmax(150px, 1fr) minmax(180px, 1.5fr) minmax(120px, 0.8fr) 120px 250px; }
.cols-stats { grid-template-columns: minmax(160px, 1.4fr) 120px 90px 80px 70px 70px 70px 90px; }

/* Min profil -------------------------------------------------------------- */

.profile-signature {
    display: flex;
    align-items: flex-end;
    height: 90px;
    margin-bottom: 14px;
    padding: 0 10px;
    border-bottom: 1px solid var(--line-heavy);
    background: var(--sheet);
}

.profile-signature img {
    max-height: 86px;
    max-width: 100%;
}

.profile-hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

/* Booking hos NPC --------------------------------------------------------- */

.booking-wrap {
    width: min(620px, 94vw);
    height: auto;
    max-height: 92vh;
}

.booking-body {
    padding: 22px 28px 24px;
    overflow-y: auto;
}

.booking-body h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 500;
}

.booking-lead {
    margin: 4px 0 20px;
    color: var(--muted);
    font-size: 13.5px;
}

.booking-existing {
    margin-bottom: 18px;
    border-top: 1px solid var(--line-heavy);
}

.booking-body .field input:disabled {
    color: var(--muted);
}

/* Kvittering -------------------------------------------------------------- */

.viewer-wrap.receipt {
    width: min(620px, 94vw);
}

.receipt-lines {
    margin-top: 18px;
    border-top: 1px solid var(--line-heavy);
}

.receipt-lines div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 13.5px;
}

.receipt-lines span {
    color: var(--muted);
}

.receipt-lines strong {
    font-weight: 500;
    text-align: right;
}

.receipt-lines .receipt-total {
    border-bottom: 3px double var(--line-heavy);
}

.receipt-lines .receipt-total strong {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2,
    .grid-3,
    .paper-wrap,
    .card-designer {
        grid-template-columns: 1fr;
    }
}
