:root {
    color-scheme: light;
    font-family: Tahoma, "Segoe UI", sans-serif;
    color: #172e33;
    background: #f2f6f6;
    line-height: 1.65;
    --line: #dbe5e5;
    --teal: #086861;
    --muted: #52686d;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-weight: bold; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #e0f0eb; color: var(--teal); }
main { padding-block: 36px; }
h1, h2, p { margin-block: 0; }
h1 { font-size: clamp(1.45rem, 4vw, 2.1rem); margin-block: 3px 8px; }
h2 { font-size: 1.04rem; }
.page-heading { margin-block-end: 24px; }
.eyebrow { color: var(--teal); font-size: .83rem; font-weight: bold; }
.muted, small { color: var(--muted); }
small { display: block; font-size: .82rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.login { max-width: 470px; margin: 6vh auto 0; padding: clamp(20px, 5vw, 34px); }
.login-fields { display: grid; gap: 15px; margin-top: 24px; }
.login-fields input { direction: ltr; }
label { display: grid; gap: 5px; min-width: 0; font-size: .9rem; font-weight: bold; }
input, button, .button { font: inherit; border-radius: 8px; min-height: 42px; }
input { width: 100%; padding: 7px 11px; border: 1px solid #afc4c5; color: inherit; background: #fff; }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: 7px 14px; border: 1px solid transparent; background: var(--teal); color: #fff; cursor: pointer; text-decoration: none; font-size: .86rem; font-weight: bold; }
button:hover, .button:hover { filter: brightness(.94); }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid #0769a6; outline-offset: 3px; }
.secondary { color: #215956; background: #f7fbfa; border-color: #b8d3ce; }
.filters { padding: 16px; margin-bottom: 18px; }
.filters form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px; }
.filters .actions { margin-bottom: 0; }
.message { background: #e4f2ee; border: 1px solid #beddd3; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.error { background: #fff1ec; border-color: #ecc8be; color: #812f22; }
.login .message { margin-bottom: 0; }
.results-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 15px 17px; }
.count { color: var(--muted); font-size: .83rem; white-space: nowrap; }
.empty { padding: 34px 17px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 11px 12px; text-align: start; }
th { background: #edf4f3; font-size: .82rem; white-space: nowrap; }
td { border-top: 1px solid var(--line); vertical-align: middle; }
.amount { font-weight: bold; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { display: inline-block; border-radius: 20px; padding: 2px 9px; background: #ebf0f0; font-size: .78rem; white-space: nowrap; }
.pending { color: #71520d; background: #fff0c5; }
.approved { color: #155e43; background: #d9f2e6; }
.details-row td { background: #fafcfc; padding-block: 6px; }
summary { cursor: pointer; color: var(--teal); width: fit-content; }
.details { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-block: 8px 3px; }
.details dt { color: var(--muted); font-size: .8rem; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.description { flex-basis: 100%; }
.description dd { white-space: pre-wrap; }
@media (max-width: 610px) {
    main { padding-block: 25px; }
    .filters form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .filters form button { grid-column: 1 / -1; }
    th, td { padding-inline: 8px; }
}
@media print {
    :root { background: #fff; color: #000; }
    .site-header, .print-hide, .filters { display: none; }
    .shell { width: 100%; }
    main { padding: 0; }
    .panel { border: none; }
    .table-scroll { overflow: visible; }
    table { font-size: 10pt; }
    tr { break-inside: avoid; }
    tbody tr:has(+ .details-row) { break-after: avoid; }
}
