:root {
  color-scheme: light;
  font-family: Inter, "Avenir Next", system-ui, sans-serif;
  color: #172830;
  background: #f3f6f5;
  --navy: #142931;
  --ink: #172830;
  --muted: #52666c;
  --line: #dce5e2;
  --jade: #0f6051;
  --mint: #bdf28c;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select, input[type=file] { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #227b71; outline-offset: 3px; }
button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .68rem .9rem; color: var(--ink); font-weight: 650; }
button:hover { background: #eef5f2; }
button:disabled { opacity: .53; cursor: default; }
.primary { background: var(--jade); border-color: var(--jade); color: white; }
.primary:hover { background: #0b5043; }
.secondary { background: white; }
input, select { width: 100%; padding: .64rem .75rem; min-width: 0; border: 1px solid #bfcfca; border-radius: 7px; background: white; color: var(--ink); }
label { display: grid; gap: 7px; font-size: .84rem; font-weight: 650; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.88rem, 3.4vw, 2.68rem); letter-spacing: -.045em; line-height: 1.12; }
h2 { font-size: 1.14rem; letter-spacing: -.023em; }
p { line-height: 1.52; }
a { color: var(--jade); }
.layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: var(--navy); color: white; display: flex; flex-direction: column; padding: 28px 16px 22px; position: sticky; top: 0; height: 100dvh; }
.brand { display: flex; align-items: center; gap: 11px; letter-spacing: .13em; font-weight: 820; font-size: .76rem; }
.sidebar .brand { padding: 2px 11px 0; }
.brand img { width: 79px; height: auto; background: white; padding: 3px 5px; border-radius: 6px; }
.login-aside .brand img { width: 92px; }
.aside-location { border-top: 1px solid #3a4d53; margin: 28px 11px 13px; padding-top: 19px; color: #c2d6d5; font-size: .82rem; }
.dot { display: inline-block; width: 7px; height: 7px; background: #b5ea89; border-radius: 50%; margin-right: 7px; }
nav { display: grid; gap: 5px; }
nav button { width: 100%; text-align: left; color: #d4e1e1; background: transparent; border-color: transparent; padding: .75rem .68rem; font-size: .9rem; }
nav button span { display: inline-block; width: 1.5rem; font-size: 1rem; }
nav button:hover { background: #2e474e; }
nav button[aria-current=page] { background: #29463e; color: #d3f9ba; border-color: #42665a; }
.account { margin-top: auto; border-top: 1px solid #3a4d53; padding: 18px 8px 0; display: flex; align-items: center; gap: 9px; font-size: .8rem; }
.avatar { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #ddf1e4; color: var(--jade); font-weight: 800; }
.account button { display: block; padding: 3px 0; border: 0; color: #bed4d3; background: none; font-size: .74rem; text-decoration: underline; }
main { width: 100%; max-width: 1510px; margin: 0 auto; padding: 34px clamp(16px, 4vw, 56px) 42px; }
.top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 17px; align-items: end; margin-bottom: 24px; }
.connection { font-size: .72rem; font-weight: 750; color: var(--jade); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(142px,1fr)); gap: 13px; margin-bottom: 22px; }
.metric, .card { background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.metric { padding: 15px 17px; }
.metric span { color: var(--muted); font-weight: 630; font-size: .79rem; }
.metric strong { display: block; font-size: 1.58rem; letter-spacing: -.04em; margin-top: 3px; }
.two-up { display: grid; grid-template-columns: minmax(205px, .85fr) minmax(0, 1.65fr); gap: 15px; align-items: start; }
.card { padding: 17px; min-width: 0; }
.card-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 13px; }
.card-title select { width: auto; max-width: 100%; font-size: .8rem; }
.queue { display: grid; gap: 8px; }
.queue-row { text-align: left; width: 100%; display: grid; gap: 6px; background: #fcfefd; padding: 11px; }
.queue-row[aria-pressed=true] { border-color: #72a495; background: #eef8f3; }
.queue-row small, .muted { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.queue-row small { font-weight: 500; }
.chip { display: inline-block; justify-self: start; width: fit-content; border-radius: 999px; padding: 3px 8px; background: #e8f3ef; color: #155646; font-size: .7rem; font-weight: 760; }
.chip[data-status=in_transit], .chip[data-status=partly_received] { background: #fff0d8; color: #745007; }
.chip[data-status=cancelled] { background: #f3e3e2; color: #8a332b; }
.detail { display: grid; gap: 15px; }
.detail .card-title { margin-bottom: 0; }
.detail h2 { margin-bottom: 3px; }
.detail footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.tablescroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th { background: #f1f6f4; text-align: left; color: #415b5d; }
td, th { padding: .65rem .5rem; border-bottom: 1px solid #e1e8e5; }
td small { display: block; margin-top: 2px; color: var(--muted); }
td button { padding: 5px 8px; }
td input { min-width: 4.5rem; max-width: 6rem; }
.inline-form { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.inline-form label { flex: 1 1 11rem; }
.proofs { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px,1fr)); gap: 10px; }
.proof { padding: 10px; border: 1px dashed #b4c9c0; border-radius: 8px; }
.proof img { display: block; width: 100%; height: 94px; object-fit: cover; border-radius: 5px; margin-top: 8px; }
.proof p { font-size: .8rem; padding-top: 4px; }
.proof input { font-size: .75rem; padding: 5px; }
.history { border-top: 1px solid var(--line); padding-top: 9px; }
.history summary { cursor: pointer; font-size: .82rem; font-weight: 650; }
.history ol { padding-inline-start: 19px; font-size: .82rem; color: var(--muted); }
.editor { display: grid; gap: 12px; margin-bottom: 15px; }
.editor-row { display: grid; grid-template-columns: minmax(0,1fr) 6rem auto; align-items: end; gap: 7px; margin-bottom: 7px; }
#notice { background: #dff1e9; color: #164737; border: 1px solid #b9d9c9; border-radius: 8px; padding: 10px 13px; margin-bottom: 15px; }
#notice.error, .error { color: #832a20; }
#notice.error { background: #fff0ec; border-color: #e6bcb4; }
.login { display: grid; grid-template-columns: 1fr 1fr; width: min(100% - 34px, 910px); margin: clamp(20px, 12vh, 130px) auto; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; box-shadow: 0 18px 55px #233f3518; }
.login-aside { min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; background: var(--navy); color: white; padding: clamp(20px, 5vw, 45px); }
.login-aside h1 { font-size: clamp(2rem, 5vw, 4.3rem); margin-bottom: 9px; }
.login-aside p { color: #c6dcda; }
.login-aside .tagline { color: var(--mint); margin-bottom: 9px; font-size: .74rem; letter-spacing: .08em; font-weight: 750; }
.aside-footer { color: #a9c2bf; font-size: .8rem; border-top: 1px solid #3c555a; padding-top: 11px; }
.login-form { display: flex; flex-direction: column; justify-content: center; gap: 15px; padding: clamp(21px, 5vw, 50px); background: white; }
.login-form h2 { font-size: 1.85rem; }
.login-form p { color: var(--muted); font-size: .86rem; }
.login-form .error { color: #832a20; min-height: 1em; }
.login-form .primary { display: flex; justify-content: space-between; }
@media (max-width: 930px) { .layout { grid-template-columns: 184px minmax(0,1fr); } .sidebar { padding-inline: 9px; } .two-up { grid-template-columns: minmax(168px, .7fr) minmax(0,1.3fr); } }
@media (max-width: 710px) { .layout { display: block; } .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; } .sidebar .brand { padding: 0; } .aside-location { display: none; } .account { border: 0; margin: 0 0 0 auto; padding: 0; } .account .avatar { display: none; } .sidebar nav { order: 3; width: 100%; display: flex; overflow-x: auto; } nav button { width: auto; flex-shrink: 0; font-size: .79rem; } main { padding-top: 22px; } .two-up { grid-template-columns: 1fr; } .queue { max-height: 260px; overflow-y: auto; } }
@media (max-width: 490px) { .login { grid-template-columns: 1fr; } .login-aside { min-height: auto; gap: 17px; } .login-aside h1 br, .aside-footer { display: none; } .editor-row { grid-template-columns: minmax(0,1fr) 5rem; } }
