:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: #17213c;
    background: #dee5f2;
    --primary: #244cbb;
    --ink: #17213c;
    --muted: #465473;
    --glass: rgba(255, 255, 255, .66);
    --edge: rgba(255, 255, 255, .86);
    --divider: #d5dcee;
    --shadow: 0 19px 55px rgba(43, 66, 115, .12), inset 0 1px 0 #fff;
}
* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 95% 2%, #fff0d3 0, transparent 38%),
        radial-gradient(ellipse at 0 23%, #c6e5df 0, transparent 44%),
        radial-gradient(ellipse at 90% 65%, #dad1f1 0, transparent 53%),
        linear-gradient(145deg, #eef3f9, #dae4f4);
    background-attachment: fixed;
}
header, main { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
header { padding-top: 1.25rem; }
header nav, .hero, .card {
    border: 1px solid var(--edge);
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
header nav {
    padding: .7rem .85rem .7rem 1.05rem;
    border-radius: 1.5rem;
}
header nav, .heading, .filter, .actions, .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
}
header nav > a { padding: .6rem .7rem; border-radius: 2rem; text-decoration: none; }
header nav > a:hover, header nav [aria-current="page"] { background: #e0e8fe; }
header nav .brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding-left: 0;
    margin-right: auto;
    color: var(--ink);
    font-weight: 800;
}
.brand-mark {
    display: block;
    flex: none;
    width: 3.75rem;
    height: 3.75rem;
    object-fit: contain;
}

main { padding-block: 1.7rem 3rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.85rem, 4.5vw, 3.2rem); line-height: 1.04; letter-spacing: -.046em; }
h2 { font-size: 1.2rem; letter-spacing: -.02em; }
a { color: var(--primary); text-underline-offset: .22em; font-weight: 650; }
.heading { justify-content: space-between; margin: .55rem 0 1.45rem; }
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.2rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}
.hero-copy { padding: clamp(.25rem, 2.5vw, 1.6rem); }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 4.3rem); max-width: 9ch; }
.hero-date { color: var(--primary); font-weight: 700; margin-bottom: .9rem; }
.hero-summary { color: var(--muted); line-height: 1.6; max-width: 33ch; margin: 1.1rem 0 1.45rem; }
.hero-art {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(15rem, 28vw, 23rem);
    border: 1px solid #ffffffcf;
    border-radius: 1.5rem;
    background:
        radial-gradient(ellipse at 16% 0, #ffb4c4, transparent 55%),
        radial-gradient(ellipse at 88% 60%, #50b7e8, transparent 58%),
        linear-gradient(150deg, #ffc3ce, #dbaff0 55%, #4e70df);
    box-shadow: 0 16px 26px #5d68a752, inset 0 1px 12px #ffffffa8;
}
.hero-art::before, .hero-art::after, .hero-art span {
    content: "";
    position: absolute;
    display: block;
    border: 1px solid #fff8;
}
.hero-art::before {
    width: 155%;
    height: 92%;
    left: -37%;
    top: -48%;
    transform: rotate(-16deg);
    border-radius: 45% 55% 50% 52%;
    background: linear-gradient(140deg, #f4a8bb, #ffe3bf 64%, #fde3e483);
    box-shadow: 0 13px 32px #78568527;
}
.hero-art::after {
    width: 134%;
    height: 83%;
    bottom: -48%;
    left: -31%;
    border-radius: 36% 64% 49% 51%;
    transform: rotate(19deg);
    background: linear-gradient(154deg, #fee7f946, #ea98cf 63%, #778df14a);
    box-shadow: 0 -8px 30px #fff2;
}
.hero-art span {
    width: 110%;
    height: 82%;
    left: 15%;
    bottom: -52%;
    transform: rotate(-32deg);
    border-radius: 60%;
    background: linear-gradient(156deg, #264dcc, #7fb5ff 55%, #ffc0db);
}
.muted, small { color: var(--muted); }
small { display: block; margin-top: .25rem; }
.metrics, .sections { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }
.sections { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.metrics a, .card { border-radius: 1.5rem; padding: 1.25rem; min-width: 0; }
.metrics a {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--edge);
    background: linear-gradient(145deg, #fafaff, #c8d7ff);
    box-shadow: var(--shadow);
    transition: transform .18s ease;
}
.metrics a:nth-child(2) { background: linear-gradient(145deg, #fff8f7, #f5c6d5); }
.metrics a:nth-child(3) { background: linear-gradient(145deg, #f4fffd, #a9deda); }
.metrics a:hover { transform: translateY(-3px); }
.metrics strong { display: block; font-size: 2.45rem; line-height: 1.1; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--divider); }
.more { display: inline-block; margin-top: 1rem; }
.badge { display: inline-block; border-radius: 2rem; padding: .34rem .63rem; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.in, .notice { background: #d6f2e9; color: #174f43; }
.out { background: #e0e8ff; color: #23437e; }
.warning { background: #fbe0e8; color: #7b2947; }
.notice { padding: .75rem 1rem; border-radius: .85rem; }
button, .button {
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: .68rem 1rem;
    border: 1px solid #2d55c5;
    border-radius: 2rem;
    background: linear-gradient(165deg, #365fda, #2146b5);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 12px #3157be30, inset 0 1px 0 #ffffff42;
}
button:hover, .button:hover { background: #1c3fa5; }
button.quiet, .button.secondary { background: #ffffffa8; color: var(--primary); border-color: #fff; }
button.quiet:hover, .button.secondary:hover { background: #e0e8ff; }
input:not([type=checkbox]), select, textarea {
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid #aebbd6;
    border-radius: .8rem;
    padding: .55rem .7rem;
    font: inherit;
    background: #ffffffe0;
    color: inherit;
}
:focus-visible { outline: 3px solid #234fbb; outline-offset: 3px; }
label { font-weight: 650; }
label input:not([type=checkbox]), .form-card input:not([type=hidden]), .form-card select, .form-card textarea { margin-top: .35rem; display: block; }
.filter { margin-bottom: 1.25rem; align-items: end; }
.filter .check { align-self: center; }
.table-wrap { overflow-x: auto; border-radius: .85rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .85rem .7rem; border-bottom: 1px solid var(--divider); }
th { background: #e7edfc; white-space: nowrap; }
td.actions { display: table-cell; white-space: nowrap; }
td.actions a + a { margin-left: .65rem; }
.form-card { max-width: 37rem; margin: 0 auto; padding: clamp(1.25rem, 4vw, 2rem); }
.form-card h1 { margin-bottom: 1.4rem; }
.errorlist { color: #901638; }
.pagination { justify-content: center; margin-top: 1.25rem; }
@media (max-width: 680px) {
    header nav { gap: .3rem; }
    header nav .brand { flex-basis: 100%; }
    header nav > a, header button { padding: .36rem .52rem; font-size: .86rem; }
    .hero { grid-template-columns: 1fr; }
    .hero h1 { max-width: none; }
    .hero-art { min-height: 11rem; }
}
@media (prefers-reduced-motion: reduce) {
    .metrics a { transition: none; }
    .metrics a:hover { transform: none; }
}

.sales-recap { margin-bottom: 1.25rem; }
.sales-recap .heading { margin-top: 0; }
.sales-recap .heading h2 { margin: 0; }
.sales-recap h3 { font-size: 1rem; }
.sales-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
    gap: .75rem;
    margin: 0 0 1.25rem;
}
.sales-totals > div { padding: .85rem; border-radius: .85rem; background: #e7edfc; }
.sales-totals dt { color: var(--muted); }
.sales-totals dd { margin: .3rem 0 0; font-size: 1.2rem; font-weight: 750; overflow-wrap: anywhere; }
.sale-amount { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem; }
.sales-recap .row > div { min-width: 0; overflow-wrap: anywhere; }

.sale-observations { min-width: 10rem; white-space: pre-wrap; overflow-wrap: anywhere; }
