/* Warm palette shared with fat-cat-banking: cream page, tan header, brown brand, teal accent. */
:root {
    --page: #f6f2e9;
    --surface: #fffdf8;
    --header: #f0e8d7;
    --line: #e4dccb;
    --text: #14100a;
    --dim: #5c5549;
    --brand: #6b4f1d;
    --accent: #1d6673;
    --neg: #b3261e;
    --pos: #1f7a3d;
}
@media (prefers-color-scheme: dark) {
    :root {
        --page: #2a241c;
        --surface: #312c26;
        --header: #3a332a;
        --line: #4a4238;
        --text: #fffaf2;
        --dim: #d2c9bb;
        --brand: #e7c98a;
        --accent: #7fcfd8;
        --neg: #f28b82;
        --pos: #6fd596;
    }
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font:
        15px/1.4 'Segoe UI Variable Text',
        system-ui,
        -apple-system,
        'Segoe UI',
        sans-serif;
    font-weight: 450;
}
a {
    color: var(--accent);
}
.top {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 16px;
    background: var(--header);
    border-bottom: 1px solid var(--line);
}
.brand {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--brand);
    text-decoration: none;
}
.brand span {
    color: var(--accent);
}
.top nav a {
    text-decoration: none;
    color: var(--text);
    padding: 4px 8px;
    border-radius: 6px;
}
.top nav a.active {
    background: var(--surface);
    font-weight: 600;
}
.who {
    margin-left: auto;
    color: var(--dim);
    font-size: 0.9em;
}
main {
    padding: 16px 24px;
    /* Full window width: the Payments and Purchases tables have many columns. */
    max-width: none;
    margin: 0 auto;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}
.filters label {
    display: flex;
    flex-direction: column;
    font-size: 0.8em;
    color: var(--dim);
    gap: 3px;
}
select,
button {
    font: inherit;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
}
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.tile {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--text);
}
.tile.on {
    border-color: var(--accent);
}
.tile-n {
    font-size: 1.4em;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.tile-amt {
    font-variant-numeric: tabular-nums;
    color: var(--dim);
}
.tile-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dim);
    margin-top: 2px;
}
.tile-attention .tile-n {
    color: var(--neg);
}
.count {
    color: var(--dim);
    font-size: 0.9em;
}
.count a {
    margin-left: 8px;
}
.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border-radius: 10px;
}
table.lines {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}
.lines th {
    text-align: left;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dim);
    padding: 8px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.lines td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.mono {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.neg {
    color: var(--neg);
}
.pos {
    color: var(--pos);
}
.dim {
    color: var(--dim);
    font-size: 0.85em;
}
.empty {
    text-align: center;
    color: var(--dim);
    padding: 24px;
}
.badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.8em;
    white-space: nowrap;
    background: var(--header);
}
.st-matched {
    color: var(--accent);
}
.st-already_paid {
    color: var(--pos);
}
.st-amount_mismatch,
.st-not_found,
.st-ambiguous,
.st-deduction {
    color: var(--neg);
}
.st-adjustment,
.st-unmatched {
    color: var(--dim);
}
body.center {
    display: grid;
    place-items: center;
    min-height: 100vh;
}
.card {
    background: var(--surface);
    padding: 28px 32px;
    border-radius: 12px;
    text-align: center;
    display: grid;
    gap: 14px;
}
.button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}
.error {
    color: var(--neg);
}
input[type='date'],
input[type='search'] {
    font: inherit;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
}
.ms-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ms-label {
    font-size: 0.8em;
    color: var(--dim);
}
details.ms {
    position: relative;
}
details.ms > summary {
    list-style: none;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    white-space: nowrap;
}
details.ms > summary::-webkit-details-marker {
    display: none;
}
.ms-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    display: grid;
    gap: 6px;
    min-width: 200px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.15);
}
.ms-panel label {
    flex-direction: row !important;
    align-items: center;
    gap: 6px !important;
    font-size: 0.92em !important;
    color: inherit !important;
    white-space: nowrap;
}
.hide-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -4px 0 12px;
}
.filters .grow {
    flex: 1 1 220px;
}
.filters .grow input {
    width: 100%;
}
.filters button,
.filters .clear {
    align-self: flex-end;
}
.pg-pending {
    color: #a86b00;
}
.pg-delivered {
    color: var(--pos);
}
.pg-cancelled {
    color: var(--neg);
}
.row-cancelled td {
    color: var(--dim);
    text-decoration: line-through;
    text-decoration-color: color-mix(in srgb, var(--neg) 50%, transparent);
}
.row-cancelled td .badge {
    text-decoration: none;
}
.amt {
    font-weight: 600;
}
/* PO column — same badges and button colors as fat-cat-banking. */
.po-cell {
    white-space: nowrap;
}
.po-cell select.saved {
    outline: 2px solid var(--pos);
}
.po-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid;
}
.po-badge-yes {
    background: #fff;
    border-color: #b8ddc6;
    color: #16603a;
}
.po-badge-partial {
    background: #c2410c;
    border-color: #a5350a;
    color: #fff;
}
@media (prefers-color-scheme: dark) {
    .po-badge-yes {
        background: #1d2a22;
        border-color: #2f5d43;
        color: #7fd0a1;
    }
    .po-badge-partial {
        background: #9a3409;
    }
}
.po-find,
.po-unmatch {
    padding: 1px 6px;
    font-size: 0.9em;
    cursor: pointer;
}
.po-find.has-matches {
    background: #28a745;
    color: #fff;
}
.po-find.no-matches {
    background: #dc3545;
    color: #fff;
}
.po-multi a {
    display: block;
}
tr.po-results > td {
    background: var(--header);
}
.po-panel {
    padding: 6px 4px;
}
.po-how {
    color: var(--dim);
    margin-bottom: 6px;
}
table.po-lines {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}
.po-lines th,
.po-lines td {
    padding: 4px 6px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 0.95em;
}
.po-lines tr.suggested td {
    background: #d4edda;
}
.po-lines tr:has(.po-pick:checked) td {
    background: #86d195;
}
.po-lines tr.taken td {
    opacity: 0.45;
    background: #fff0f0;
}
@media (prefers-color-scheme: dark) {
    .po-lines tr.suggested td {
        background: #24402c;
    }
    .po-lines tr:has(.po-pick:checked) td {
        background: #2f6b40;
    }
    .po-lines tr.taken td {
        background: #3a2626;
    }
}
.po-lines .notes {
    white-space: pre-wrap;
    max-width: 320px;
}
.po-foot {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 4px 2px;
}
.po-match-now {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
}
.po-match-now:disabled {
    opacity: 0.5;
    cursor: default;
}
.po-query {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 8px;
}
.po-query label {
    display: flex;
    flex-direction: column;
    font-size: 0.8em;
    color: var(--dim);
    gap: 2px;
}
.po-query input {
    font: inherit;
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
}
.po-query input[name='notes'] {
    width: 260px;
}
.po-query input[name='cost'] {
    width: 110px;
}
.po-lines-wrap.loading {
    opacity: 0.4;
}
/* Selection + bulk actions */
th.sel,
td.sel {
    width: 28px;
    text-align: center;
}
.bulkbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
}
.sel-count {
    color: var(--dim);
    font-size: 0.9em;
    min-width: 80px;
}
details.menu {
    position: relative;
}
details.menu > summary {
    list-style: none;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}
details.menu > summary::-webkit-details-marker {
    display: none;
}
.menu-items {
    position: absolute;
    z-index: 5;
    top: 110%;
    left: 0;
    display: flex;
    flex-direction: column;
    min-width: 160px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 4px;
}
.menu-items button {
    text-align: left;
    border: none;
    background: none;
    padding: 6px 10px;
    cursor: pointer;
}
.menu-items button:hover {
    background: var(--header);
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: grid;
    place-items: center;
    z-index: 20;
    padding: 16px;
}
.modal {
    background: var(--surface);
    border-radius: 12px;
    padding: 18px 20px;
    max-width: 1100px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
}
.modal h3 {
    margin: 0 0 10px;
}
.modal .warn {
    background: #fff3cd;
    color: #664d03;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.modal-foot {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
}
.modal-foot .dim {
    margin-right: auto;
}
.modal-foot .confirm {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 14px;
}
.st-settled {
    color: var(--pos);
}
.st-dismissed {
    color: var(--pos);
}
td.actions {
    white-space: nowrap;
}
td.actions button {
    padding: 1px 8px;
    font-size: 0.85em;
    cursor: pointer;
}
/* An action, not a status: outlined, never a check-mark badge. */
td.actions button.dismiss {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 6px;
}
td.actions button.dismiss:hover {
    background: var(--accent);
    color: #fff;
}
/* Order groups: the latest line in place, the order's earlier lines indented beneath it. */
tr.parent td {
    border-bottom-color: transparent;
}
tr.child td {
    background: color-mix(in srgb, var(--header) 45%, var(--surface));
    font-size: 0.92em;
}
tr.child td.paid-on {
    padding-left: 22px;
}
tr.child .indent {
    color: var(--dim);
    margin-right: 4px;
}
/* Shown for context, but not itself in the current filter. */
tr.child.context td {
    color: var(--dim);
}
.tile-sub {
    font-size: 0.75em;
    color: var(--dim);
    margin-top: 2px;
}
td.by {
    white-space: nowrap;
    font-size: 0.9em;
}
.ded-note {
    font-size: 0.82em;
    color: var(--neg);
    margin-top: 2px;
}
.line-kind {
    font-size: 0.85em;
    color: var(--dim);
}
.line-kind.neg {
    color: var(--neg);
}
.st-incomplete {
    color: var(--neg);
}
.pen-note {
    font-size: 0.82em;
    color: #a86b00;
    margin-top: 2px;
}
.syncbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9em;
}
.syncbar .sync-last {
    margin-right: auto;
}
.sync-now {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 5px 12px;
    cursor: pointer;
}
.sync-now:disabled {
    opacity: 0.6;
    cursor: default;
}
/* Sortable headers, the invoice-value switch and the Suggested fixes chip. */
th.sortable a {
    color: inherit;
    text-decoration: none;
}
th.sortable a:hover,
th.sorted a {
    color: var(--accent);
}
.toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: -4px 0 12px;
    font-size: 0.9em;
}
.seg {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}
.seg-label {
    padding: 4px 8px;
    color: var(--dim);
    border-right: 1px solid var(--line);
}
.seg a {
    padding: 4px 10px;
    text-decoration: none;
    color: var(--text);
}
.seg a.on {
    background: var(--accent);
    color: #fff;
}
.chip {
    padding: 4px 10px;
    border: 1px solid #a86b00;
    border-radius: 999px;
    color: #a86b00;
    text-decoration: none;
    background: var(--surface);
}
.chip.on {
    background: #a86b00;
    color: #fff;
}
/* Settings */
.nav-settings {
    margin-left: auto;
    text-decoration: none;
    color: var(--text);
    padding: 4px 8px;
    border-radius: 6px;
}
.nav-settings.active {
    background: var(--surface);
    font-weight: 600;
}
.top .nav-settings + .who {
    margin-left: 12px;
}
main.settings {
    max-width: 860px;
}
.settings h1 {
    margin: 4px 0;
}
.saved-note {
    color: var(--pos);
}
.settings-section h2 {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dim);
    margin: 24px 0 8px;
}
.setting {
    background: var(--surface);
    border-radius: 10px;
    padding: 14px 16px;
}
.setting textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 12px 0 8px;
    font-family: inherit;
}
.conn {
    margin: 14px 0;
    display: grid;
    gap: 8px;
}
.conn-title {
    font-weight: 600;
}
.conn-field {
    display: grid;
    gap: 3px;
    font-size: 0.92em;
}
.conn-field input,
.token-row input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
}
.src {
    font-size: 0.85em;
    color: var(--dim);
}
.src-saved,
.src-env {
    color: var(--pos);
}
.token-row {
    display: flex;
    gap: 8px;
    margin: 12px 0 8px;
}
.token-actions {
    display: flex;
    gap: 8px;
}
.api-help {
    margin-top: 12px;
}
.api-help pre {
    white-space: pre-wrap;
    font-size: 0.82em;
    background: var(--bg, transparent);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
}
.users-admins {
    margin-bottom: 10px;
    font-size: 0.88em;
}
.setting-label {
    font-weight: 700;
}
.setting-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.option {
    display: grid;
    gap: 4px;
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}
.option.on {
    border-color: var(--accent);
}
.option input {
    justify-self: start;
}
.option-label {
    font-weight: 600;
}
.option-hint {
    font-size: 0.88em;
}
.mini {
    display: grid;
    margin-top: 6px;
    font-size: 0.82em;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}
.mini-row {
    padding: 4px 8px;
    background: var(--surface);
    font-weight: 600;
}
.mini-row.sub {
    padding-left: 18px;
    font-weight: 400;
    background: color-mix(in srgb, var(--header) 45%, var(--surface));
}
.clear-all {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--dim);
    text-decoration: none;
    background: var(--surface);
    font-size: 0.9em;
}
.clear-all:hover {
    color: var(--neg);
    border-color: var(--neg);
}
.filters .clear-all {
    align-self: flex-end;
}
.st-unzeroed,
.st-nopenalty,
.st-unzeroed_nopenalty {
    color: var(--neg);
}
/* Payments: a ticked order is gently highlighted, all its lines (a look-closer marker for now). */
table.orders > tbody > tr.picked > td {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

/* ---- Payments tags ---- */
.tag-tiles {
    margin-top: -2px;
}
.tag-tile {
    border-left: 5px solid var(--tag);
}
.tag-tile.on {
    border-color: var(--tag);
}
.tile-newtag {
    font: inherit;
    cursor: pointer;
    border: 2px dashed var(--line);
    background: transparent;
    color: var(--dim);
    text-align: center;
}
.tile-newtag:hover {
    color: var(--text);
}
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 3px 3px 0 0;
    padding: 0 2px 0 7px;
    border-radius: 999px;
    font-size: 0.78em;
    white-space: nowrap;
    color: #fff;
    background: var(--tag);
}
.tag-chip .tag-off {
    border: 0;
    background: none;
    color: inherit;
    padding: 0 4px;
    cursor: pointer;
    opacity: 0.75;
}
.tag-chip .tag-off:hover {
    opacity: 1;
}
.tag-one {
    padding: 2px 6px;
    margin-right: 4px;
}
.tagbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}
.tagbar[hidden] {
    display: none;
}
.tag-menu {
    position: absolute;
    z-index: 50;
    display: grid;
    gap: 6px;
    min-width: 220px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.18);
    font-size: 0.92em;
}
.tag-menu-head {
    font-weight: 600;
}
.tag-menu-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tag-menu-row button {
    padding: 1px 6px;
    font-size: 0.85em;
}
.tag-menu-row button[data-action='add'] {
    margin-left: auto;
}
.tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tag);
    flex: none;
}
.tag-menu-new {
    justify-self: start;
}
.tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.tag-row .tag-name {
    flex: 1;
    padding: 4px 8px;
}
.tag-icon {
    vertical-align: -2px;
    color: var(--text);
}
.tag-one {
    line-height: 1;
}
.nowrap {
    white-space: nowrap;
}
/* ---- Order notes ---- */
.notes-open {
    padding: 2px 6px;
    margin-right: 4px;
    line-height: 1;
}
.note-latest {
    display: block;
    margin-top: 4px;
    padding: 3px 7px;
    max-width: 420px;
    border: 0;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    font: inherit;
    font-size: 0.85em;
    text-align: left;
    color: var(--text);
    cursor: pointer;
}
.notes-row td {
    background: var(--surface);
}
.notes-panel {
    max-width: 760px;
    padding: 6px 4px;
}
.note-form {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.note-form textarea {
    flex: 1;
    font: inherit;
    padding: 6px 8px;
}
.note-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.note-meta {
    font-size: 0.85em;
    color: var(--dim);
}
.note-del {
    margin-left: 8px;
    padding: 0 6px;
    font-size: 0.85em;
}
.note-body {
    white-space: pre-wrap;
}
/* A little count on the tag / notes buttons, like an app badge. */
.icon-btn {
    position: relative;
}
.count-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--surface);
    pointer-events: none;
}
.actions .icon-btn {
    margin-right: 8px;
}
.mark-paid,
.mark-paid-all {
    border-color: var(--pos);
    color: var(--pos);
    font-weight: 600;
}
.paybar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}
.pen-changed {
    border-left-color: #dc2626;
}
.pen-accept {
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 0.85em;
}
.inv-tags {
    max-width: 160px;
}
.inv-tag {
    display: inline-block;
    margin: 1px 3px 1px 0;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
}
.table-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 10px;
}
.table-tools .tagbar {
    margin: 0;
}
/* ---- Column filters (row under the headers) ---- */
tr.col-filters th {
    padding-top: 0;
    padding-bottom: 8px;
    vertical-align: top;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.col-filters .cf {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 3px 5px;
    font: inherit;
    font-size: 0.82em;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    color: var(--text);
}
.col-filters .cf-range {
    display: grid;
    gap: 3px;
}
.col-filters input[type='number'].cf {
    min-width: 64px;
}
.col-filters input[type='date'].cf {
    min-width: 112px;
}
.col-filters .cf-ms summary {
    font-size: 0.82em;
    padding: 3px 6px;
}
.col-filters .cf-ms .ms-panel {
    font-size: 0.9em;
}
.cf-clear {
    text-decoration: none;
    font-weight: 700;
}
/* The event name gets room instead of wrapping into a tall column. */
table.orders td:nth-child(5),
table.orders th:nth-child(5) {
    min-width: 260px;
}
/* Darker, heavier grid text. */
table.lines {
    font-size: 0.95em;
}
table.lines td {
    font-weight: 500;
}
.lines th {
    color: var(--text);
    font-weight: 700;
}
table.lines td .dim,
table.lines .line-kind {
    font-weight: 500;
}
.tile-label,
.tile-sub {
    color: var(--text);
    font-weight: 600;
}
.fix-open {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}
.fix-modal {
    max-width: 640px;
}
.fix-facts {
    line-height: 1.5;
}
.fix-act {
    display: block;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.fix-act input[type='number'] {
    width: 110px;
}
.fix-grid {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 6px 10px;
    align-items: center;
    margin-top: 8px;
}
.fix-grid input {
    font: inherit;
    padding: 3px 6px;
}
/* A tag recovered for an emptied invoice (a cancelled line, or the removed seats' PO line). */
.inv-tag.recovered {
    border-style: dashed;
    font-style: italic;
}
