:root {
    font: 16px/1.5 system-ui, sans-serif;
    color: #17273a;
    background: #f2f5f8;
    --primary: #064f58;
    --muted: #526276;
    --border: #dce4ec;
}
* { box-sizing: border-box; }
body { margin: 0; }
.top { color: #fff; background: #122638; }
.top-inner, main { width: min(94%, 1180px); margin-inline: auto; }
.top-inner, .heading, .document, .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.top-inner { min-height: 4.25rem; }
.brand { color: inherit; text-decoration: none; font-weight: 650; }
.brand span { color: #a4e3df; font-size: .73rem; letter-spacing: .12em; margin-right: .55rem; }
main { padding-block: 2rem 4rem; }
h1 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.15; overflow-wrap: anywhere; }
h2 { font-size: 1.05rem; margin: 0 0 .65rem; }
p { margin: .35rem 0; }
.heading { margin: .75rem 0 1.5rem; flex-wrap: wrap; }
.eyebrow { color: var(--primary); font-weight: 750; font-size: .74rem; letter-spacing: .14em; }
.panel { background: white; border: 1px solid var(--border); border-radius: .75rem; padding: 1.15rem; }
.listing { margin-bottom: 1rem; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.address { white-space: pre-line; }
.muted, small { color: var(--muted); }
small { display: block; overflow-wrap: anywhere; }
.login { width: min(92vw, 440px); margin-top: clamp(2rem, 14vh, 8rem); padding: 2rem; }
.login form { margin-top: 1.4rem; display: grid; gap: .85rem; }
.filters { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(12rem, 1fr) max-content; gap: .75rem; align-items: end; margin-bottom: 1rem; }
.order-filters { grid-template-columns: minmax(8rem, 12rem) minmax(10rem, 15rem) minmax(12rem, 1fr) max-content; }
label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 650; }
input, select, button { font: inherit; padding: .56rem .75rem; min-height: 2.6rem; border-radius: .4rem; }
input, select { width: 100%; color: inherit; border: 1px solid #9faebd; background: white; }
button { cursor: pointer; border: 1px solid var(--primary); background: var(--primary); color: white; font-weight: 650; }
.secondary { background: transparent; border-color: #8396a8; }
a { color: var(--primary); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #297dc4; outline-offset: 3px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .7rem .65rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #edf3f7; white-space: nowrap; font-size: .83rem; }
.badge { display: inline-block; border-radius: .3rem; padding: .18rem .48rem; background: #e2f2eb; color: #185636; white-space: nowrap; font-size: .84rem; }
.pending, .notice { background: #fff1d2; color: #6d4810; }
.production-statuses { display: flex; flex-wrap: wrap; gap: .3rem; }
.production-open { background: #edf2f6; color: #35465a; }
.production-exported { background: #deedfb; color: #18476e; }
.production-printed { background: #ece5f6; color: #513978; }
.production-shipped { background: #e2f2eb; color: #185636; }
.notice { padding: .65rem; border-radius: .4rem; }
.document { justify-content: flex-start; padding: .55rem 0; flex-wrap: wrap; overflow-wrap: anywhere; }
.document + .document { border-top: 1px solid var(--border); }
.document-action { margin-top: .75rem; }
.fulfillment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; min-width: 16rem; }
.fulfillment-form label { font-size: .79rem; }
.fulfillment-form input, .fulfillment-form select, .fulfillment-form button { min-height: 2rem; padding: .3rem .45rem; font-size: .85rem; }
.fulfillment-form button { align-self: end; }
.fulfillment-form small { grid-column: 1 / -1; }
tr:target { background: #f0faf8; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.top-nav a { color: #e6f4f4; font-size: .9rem; }
.top-nav a[aria-current="page"] { font-weight: 750; }
.settings-switch { display: flex; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.settings-switch label { min-width: min(14rem, 55%); }
.settings-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .85rem 1rem; margin-top: 1rem; }
.settings-form h3, .settings-actions { grid-column: 1 / -1; }
.settings-form h3 { margin: .25rem 0 0; font-size: 1rem; }
.settings-actions { display: flex; align-items: center; gap: .8rem; }
.export-actions { flex-wrap: wrap; }
.export-customers { min-width: 0; border: 1px solid var(--border); border-radius: .45rem; }
.export-customers label { display: flex; align-items: center; gap: .35rem; }
.export-customers input { width: auto; min-height: auto; }
.print-checkbox { width: 1.25rem; min-height: 1.25rem; }
.success { margin-bottom: 1rem; background: #e2f2eb; color: #185636; }
.card-data { margin-top: .3rem; }
.card-data summary { color: var(--primary); cursor: pointer; }
.card-data dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem .65rem; margin: .4rem 0; font-size: .85rem; }
.card-data dt { font-weight: 650; }
.card-data dd { margin: 0; overflow-wrap: anywhere; }
.pagination { justify-content: center; padding-top: 1rem; }
@media (max-width: 650px) {
    .filters { grid-template-columns: 1fr; }
    .brand span { display: block; }
    .panel { padding: .9rem; }
    .top-inner { flex-wrap: wrap; padding-block: .6rem; }
}
