:root {
  --ink:#20332e; --muted:#6b7872; --line:#e3e9e4; --canvas:#f5f7f3;
  --accent:#173c34; --accent-dark:#0c2a23; --lime:#d5edb8; --radius:12px;
  font-family:"Segoe UI",ui-sans-serif,system-ui,-apple-system,sans-serif;
  color:var(--ink); background:var(--canvas); font-synthesis:none; color-scheme:light;
}
*{box-sizing:border-box}
body{margin:0}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button,summary{cursor:pointer}
button{color:inherit}
button:disabled{opacity:.55;cursor:wait}
h1,h2,h3,p{margin-top:0}
h1{font-size:28px;font-weight:650;letter-spacing:-.8px;margin-bottom:6px;line-height:1.2}
h2{font-size:18px;letter-spacing:-.35px;font-weight:650}
h3{font-size:16px}
p{line-height:1.6}
small{line-height:1.5}
form{margin:0}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #517e36;outline-offset:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:fixed;top:-100px;left:20px;z-index:100;padding:15px;background:white;border-radius:8px}
.skip:focus{top:15px}
.svg-defs{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.button{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:44px;border:1px solid transparent;border-radius:9px;padding:0 17px;font-size:13px;font-weight:600;line-height:1.4;transition:background .15s,border-color .15s}
.primary,.secondary{color:white;background:var(--accent)}
.primary:hover,.secondary:hover{background:var(--accent-dark)}
.ghost{background:white;border-color:#dce3dc;color:#40534b}
.ghost:hover{background:#edf3e9;border-color:#c2d1bf}
.full{width:100%}
input,select{display:block;width:100%;border:1px solid #dbe2da;border-radius:9px;background:#fff;color:var(--ink);min-height:46px;padding:10px 13px;font-size:14px}
input::placeholder{color:#6f7d75}
label{display:block;font-size:13px;font-weight:600;line-height:1.5}
label input,label select{margin-top:8px}
.stack{display:grid;gap:16px}
.flash{border:1px solid #b7dfd0;background:#edf8f1;color:#146c4f;border-radius:10px;padding:14px 18px;margin-bottom:18px;font-size:13px}
.flash.error{background:#fff1f0;border-color:#efc9c5;color:#a03431}
.flash.warning{background:#fff8e8;border-color:#efdfb9;color:#7e581d}

/* Navigation */
.sidebar{position:fixed;inset:0 auto 0 0;width:190px;background:#fff;border-right:1px solid var(--line);padding:20px 14px 14px;display:flex;flex-direction:column;z-index:5}
.brand{display:flex;align-items:center;gap:12px;width:fit-content}
.sidebar>.brand{margin:0 8px 28px}
.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--accent);font-size:30px;line-height:1;font-weight:800;letter-spacing:-3px;padding:0 4px 6px 0;color:var(--lime)}
.brand strong{display:block;font-size:19px;font-weight:750;letter-spacing:.3px}
.brand small{display:block;font-size:12px;color:var(--muted);margin-top:1px;letter-spacing:.4px}
.sidebar nav{display:grid;gap:4px}
.sidebar nav a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:8px;font-size:13px;font-weight:550;color:#64726a}
.sidebar nav a:hover{background:#f3f6f0;color:var(--accent)}
.sidebar nav a[aria-current]{background:#eaf2e1;color:#284931;font-weight:650}
.sidebar nav a[aria-current]::after{content:"";height:6px;width:6px;background:#577b3f;border-radius:50%;margin-left:auto}
.sidebar-account{margin-top:auto;padding-top:25px}
.account{display:flex;align-items:center;gap:10px;padding:12px 7px;border-top:1px solid var(--line)}
.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#edf0e9;color:#53634e;font-size:13px;font-weight:650;flex-shrink:0}
.account-name{font-size:13px;font-weight:650;min-width:0;overflow-wrap:anywhere}
.account-name small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:3px}
.logout{border:0;background:none;display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 13px;border-radius:9px;color:#6a776f;font-size:12px}
.logout:hover{background:#f3f5f0;color:var(--accent)}
.logout .icon{width:18px;height:18px}
.app-shell{margin-left:190px}
.page-topbar{padding:6px 24px 0;display:flex;justify-content:flex-end}
.demo-banner{display:inline-flex;align-items:center;gap:7px;font-size:10px;white-space:nowrap;color:#6e623e;background:#f7f4e8;padding:4px 8px;border-radius:6px}
.demo-banner .status-dot{background:#9d8b50;width:5px;height:5px}
.container{max-width:1600px;padding:20px 24px 32px;margin:auto}
.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
.heading>div{min-width:0}
.heading p{font-size:13px;color:var(--muted);margin-bottom:0}
.heading #refresh-form{flex-shrink:0}
.eyebrow{display:block;color:#67765e;font-size:11px;font-weight:600;letter-spacing:.65px;margin-bottom:10px}
.status-dot{width:6px;height:6px;background:#66894f;border-radius:50%;flex-shrink:0}
#sync-bar p{margin:4px 0 0}

/* Filters and totals */
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.period-panel{display:flex;align-items:center;gap:14px;min-width:0}
.period-copy{min-width:0}
.period-panel h2{font-size:16px;margin:0 0 4px}
.period-panel p{font-size:11px;color:var(--muted);margin:0}
.period-button{background:#eff4ec;border-color:#dce6d5;color:#284b38;flex-shrink:0;padding-inline:12px;gap:8px}
.period-button:hover{background:#e3eddc;border-color:#aabda0}
.period-button .chevron{width:14px;height:14px}
.filters{display:flex;gap:9px;align-items:end;margin:0 0 16px}
.toolbar .filters{margin:0;flex:1;max-width:450px;min-width:240px}
.search-field,.grow{flex:1;min-width:0}
.search-field{position:relative}
.search-field>.icon{position:absolute;left:14px;top:14px;width:18px;height:18px;color:#74836f;pointer-events:none}
.search-field input{margin:0;padding-left:42px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
.metric{--tone:#27684f;--tint:#eff7f0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;min-width:0;transition:border-color .15s,background .15s;position:relative}
.metric.uninvoiced{--tone:#886019;--tint:#fff8e8}
.metric.failed{--tone:#a4473b;--tint:#fff2ef}
.metric.partial{--tone:#426d9d;--tint:#eff5fc}
.metric:hover{border-color:var(--tone);background:var(--tint)}
.metric.selected{background:var(--tint);border-color:var(--tone);box-shadow:inset 0 0 0 1px var(--tone)}
.metric-top{display:flex;align-items:center;gap:10px;margin-bottom:18px;min-height:36px}
.metric-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--tint);color:var(--tone);flex-shrink:0}
.metric.selected .metric-icon{background:var(--tone);color:#fff}
.metric-label{font-size:13px;font-weight:650;line-height:1.35;max-width:140px}
.metric-arrow{color:var(--tone);font-size:20px;line-height:1}
.metric>strong{font-size:clamp(22px,2.1vw,32px);font-weight:650;letter-spacing:-.8px;line-height:1.2;display:block;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.metric>strong small{font-size:12px;font-weight:500;letter-spacing:0}
.metric-unit{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#637168;margin-top:12px;line-height:1.5}
.missing-amount{font-size:10px}
.list-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.list-heading{padding:18px 20px;display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:68px}
.list-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.list-title h2{margin:0;font-size:17px}
.list-subtitle{margin:5px 0 0;font-size:12px;color:var(--muted)}
.count-badge{font-size:11px;font-weight:600;color:#5f7252;background:#eff3e9;border:1px solid #e2e9d8;padding:4px 8px;border-radius:7px}
.search-term{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.orders-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left}
.orders-table th{font-size:11px;background:#f8faf7;color:#5f7067;padding:12px 16px;border-block:1px solid var(--line);font-weight:600}
.orders-table th:first-child{width:30%;padding-left:20px}
.orders-table th:nth-child(2){width:19%}
.orders-table th:nth-child(3){width:14%}
.orders-table th:nth-child(4){width:20%}
.orders-table td{font-size:13px;padding:14px 16px;border-top:1px solid #edf0e9;vertical-align:middle;color:#52645b;overflow-wrap:anywhere;line-height:1.5}
.orders-table tbody tr:hover{background:#f8fbf6}
.orders-table td:first-child{padding-left:20px}
.orders-table td a{display:block;min-height:44px;width:fit-content}
.orders-table td a:hover strong{color:#598039;text-decoration:underline;text-underline-offset:3px}
.orders-table td strong,.orders-table td span,.orders-table td small{display:block}
.orders-table td a strong{font-size:14px;color:#26372c;font-weight:600}
.order-code{font-size:11px;color:#65786c;margin-top:3px;font-variant-numeric:tabular-nums}
.orders-table td small,.customer-city{font-size:12px;color:#6e7d72;margin-top:2px}
.orders-table td .order-open{display:flex;align-items:center;gap:6px;min-height:44px;font-size:12px;font-weight:600;color:var(--accent)}
.order-open:hover{text-decoration:underline;text-underline-offset:3px}
.orders-table .badge,.badge{display:inline-flex;align-items:center;gap:5px;justify-content:center;border-radius:6px;padding:5px 8px;font-size:11px;font-weight:600;width:fit-content;white-space:nowrap}
.badge::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor;flex-shrink:0}
.badge.done{background:#edf5e7;color:#4d713d}
.badge.failed{background:#fcf0ed;color:#a55245}
.badge.partial{background:#faf3df;color:#8d6c25}
.invoice{font-size:11px;margin-top:5px}
.unbilled{color:#95712d}
.amount{color:#263b30;font-weight:650;font-size:16px;font-variant-numeric:tabular-nums}
.orders-table .amount small{display:inline;font-size:11px;font-weight:500}
.pagination{display:flex;justify-content:center;align-items:center;gap:16px;border-top:1px solid var(--line);padding:10px;font-size:12px;color:#66775b;flex-wrap:wrap}
.empty{text-align:center;padding:32px 20px;background:#fff}
.empty>.icon,.empty>span{display:grid;place-items:center;margin:0 auto 20px;border-radius:15px;width:52px;height:52px;background:#edf3e7;color:#6c8658;font-size:25px;padding:14px}
.empty h3{font-size:17px;margin-bottom:8px;font-weight:600}
.empty p{font-size:13px;color:var(--muted);max-width:450px;margin:auto}
.empty>.button{margin-top:22px}

/* Calendar */
dialog{width:min(440px,calc(100% - 24px));padding:24px;border:1px solid var(--line);border-radius:20px;color:var(--ink);box-shadow:0 24px 90px #16322530;max-height:90dvh;overflow:auto}
dialog::backdrop{background:#10271c55;backdrop-filter:blur(3px)}
.dialog-heading{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:20px}
.dialog-heading h2{font-size:18px;margin:0}
.icon-button{width:44px;min-width:44px;height:44px;background:#fff;border:1px solid var(--line);border-radius:9px;font-size:23px}
.icon-button:hover{background:#eef3e7}
.calendar-nav{display:flex;gap:7px;align-items:center;margin-bottom:20px}
.calendar-nav label{min-width:0}
.calendar-nav label:first-of-type{flex:1}
.calendar-nav label:last-of-type{width:85px}
.calendar-nav input,.calendar-nav select{margin:0;padding:10px 6px}
.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:11px;color:var(--muted);margin-bottom:6px}
.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;width:100%;min-height:44px;padding:0;background:white;border:1px solid transparent;border-radius:8px;font-size:13px}
.calendar-week:hover,.calendar-week:focus-visible{background:#eaf2df;border-color:#c8d9b7}
.calendar-week[aria-pressed="true"]{background:#eaf2df;border-color:#658953;color:#25462f;font-weight:650}
.calendar-week .outside{color:#929d88}
.calendar-week .today{font-weight:800;color:#426a2c;text-decoration:underline;text-underline-offset:4px}
.calendar-help{font-size:11px;color:var(--muted);text-align:center;margin:16px 0 20px}
.calendar-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.calendar-shortcuts button{background:#f2f5ed;border:0;border-radius:8px;min-height:44px;font-size:11px;padding:8px;color:#536646}
.calendar-shortcuts button:hover{background:#e7eddd}

/* Order and history */
.back-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:#617657;margin-bottom:6px}
.back-link:hover{color:var(--accent);text-decoration:underline}
/* Focused order detail */
.order-heading{align-items:flex-start;margin:4px 0 22px}
.order-heading h1{font-size:32px;overflow-wrap:anywhere}
.order-heading>.badge{margin-top:24px;font-size:12px;padding:8px 12px;flex-shrink:0}
.order-heading .eyebrow{margin-bottom:8px}
.order-card{background:#fff;border:1px solid #dce5dc;border-radius:16px;overflow:hidden;box-shadow:0 4px 18px #20332e04}
.order-card-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 24px;border-bottom:1px solid #dce5dc}
.order-card-heading h2{display:flex;align-items:center;gap:10px;margin:0;font-size:16px}
.order-card-heading h2::before{content:"";width:4px;height:20px;border-radius:3px;background:var(--accent);flex-shrink:0}
.order-total{text-align:right;min-width:0;padding:10px 16px;background:#eff5e9;border:1px solid #dce7d3;border-radius:10px}
.order-total>span{display:block;font-size:11px;color:var(--muted);margin-bottom:3px}
.order-total strong{font-size:25px;font-weight:650;letter-spacing:-.7px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.order-total small{font-size:12px;letter-spacing:0;font-weight:500}
.order-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0;background:#dce5dc}
.order-fields>div,.order-notes>div{min-width:0;padding:18px 24px;background:#fff}
.order-fields dt,.order-notes dt,.field-label{display:block;font-size:11px;color:var(--muted);margin-bottom:6px;font-weight:500}
.order-fields dd,.order-notes dd{margin:0;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.order-address{grid-column:1/-1}
.order-notes{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:1px;margin:0;background:#dce5dc;border-top:1px solid #dce5dc}
.order-notes>div{background:#f7f9f4}
.order-notes dt{color:#56694b;font-weight:600}
.order-notes dd{font-size:13px;color:#45564c}
.order-payment{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 24px;background:#fff;border-top:1px solid #dce5dc}
.order-payment>span{display:flex;align-items:center;gap:8px;font-size:12px;padding:8px 12px;border:1px solid #e2e9df;border-radius:8px;background:#fff;overflow-wrap:anywhere;max-width:100%}
.order-payment .icon{width:16px;height:16px;color:#577b49}
.delivery-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:18px 0 28px;background:#edf3e8;border:1px solid #d5e0cd;border-radius:14px;overflow:hidden}
.delivery-card>div{display:flex;gap:12px;min-width:0;padding:22px 24px}
.delivery-card>div+div{border-left:1px solid #d5e0cd}
.delivery-card>div>div{min-width:0}
.delivery-card strong{display:block;font-size:14px;font-weight:650;overflow-wrap:anywhere}
.delivery-card strong+span{display:block;font-size:11px;color:#64745d;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}
.delivery-icon{display:grid;place-items:center;width:36px;height:36px;background:#fff;border:1px solid #dce6d5;border-radius:10px;flex-shrink:0;color:#526f43;font-size:20px}
.products-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.products-heading h2{margin:0;font-size:18px}
.product-list{list-style:none;padding:0;margin:0;border:1px solid #dce5dc;border-radius:14px;overflow:hidden}
.product-card{display:flex;align-items:center;gap:18px;padding:22px 24px;background:#fff;min-width:0;border-left:3px solid #759966}
.product-card+.product-card{border-top:1px solid #dce5dc}
.product-card.failed{border-left-color:#c4897c}
.product-number{font-size:12px;color:#83907b;font-variant-numeric:tabular-nums;align-self:flex-start;padding-top:5px}
.product-copy{flex:1;min-width:0}
.product-copy h3{margin:0;font-size:15px;line-height:1.6;font-weight:600;overflow-wrap:anywhere}
.product-copy p{margin:5px 0 0;font-size:12px;color:#78675e;overflow-wrap:anywhere;white-space:pre-wrap}
.product-result{display:flex;flex-direction:column;align-items:flex-end;gap:9px;flex-shrink:0;padding-left:24px;border-left:1px solid #e3e9e4}
.product-result time{font-size:11px;color:var(--muted)}
@media(max-width:1100px){.delivery-card>div{padding:20px}.delivery-icon{display:none}}
@media(max-width:700px){
 .order-heading h1{font-size:27px}.order-heading{gap:12px;margin-bottom:18px}.order-heading>.badge{margin-top:0}
 .order-card-heading{padding:16px}.order-fields{grid-template-columns:1fr}.order-fields>div,.order-notes>div{padding:14px 16px}
 .order-notes{grid-auto-flow:row;grid-template-columns:1fr}.order-fields dd{font-size:13px}.order-total{padding:8px 10px}.order-total strong{font-size:22px}.order-payment{padding:14px 16px;gap:8px}
 .delivery-card{grid-template-columns:1fr;margin-bottom:24px}.delivery-card>div{padding:18px 16px}.delivery-card>div+div{border-left:0;border-top:1px solid #d5e0cd}.delivery-icon{display:grid}
 .product-card{padding:18px 16px;gap:12px;flex-wrap:wrap;align-items:flex-start}.product-result{width:100%;flex-direction:row;align-items:center;justify-content:space-between;padding:12px 0 0;border-left:0;border-top:1px solid #e3e9e4;flex-wrap:wrap}
 .product-copy h3{font-size:14px}
}
@media(max-width:380px){.order-card-heading{gap:10px}.order-card-heading h2{font-size:14px}.order-total strong{font-size:20px}}
.archive-list>a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}
.archive-list>a:hover{background:#f7faf2}
.archive-list strong,.archive-list small{display:block}
.archive-list small{color:var(--muted);margin-top:6px}
.archive-status{color:#697b5f;font-size:11px}
.archive-filter{max-width:660px}
.archive-filter select{font-size:12px}

/* Sign in */
.login-wrap{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:#fafbf7;padding:18px;gap:30px}
.login-art{display:flex;flex-direction:column;padding:40px 48px;background:var(--accent);color:#fff;border-radius:20px}
.login-art .brand-mark{background:var(--lime);color:var(--accent)}
.login-art .brand small{color:#b7cab9}
.login-art-center{margin:auto 0;padding:55px 0 30px}
.login-wordmark{font-size:clamp(55px,6.5vw,100px);font-weight:600;line-height:1.05;letter-spacing:-5px}
.login-wordmark>span{color:var(--lime)}
.route-art{display:block;width:min(100%,440px);margin-top:35px}
.login-art-footer{font-size:12px;color:#bacdbd}
.login-card{width:min(100%,350px);margin:auto;min-width:0;padding:35px 0}
.login-card h1{font-size:30px;margin-bottom:32px}
.login-card input{min-height:50px;background:#fff}
.login-card .button{margin-top:8px;min-height:50px;justify-content:space-between;padding-inline:20px}
.login-note{display:inline-block;font-size:11px;color:#6c765e;background:#edf1e4;padding:7px 10px;border-radius:6px;margin-bottom:22px}
.mobile-login-brand{display:none}

@media(max-width:1150px){
  .container{padding:18px 20px 32px}.page-topbar{padding-inline:20px}.toolbar{gap:12px;flex-wrap:wrap}.toolbar .filters{max-width:none}
  .metric{padding:14px}.orders-table th,.orders-table td{padding-inline:12px}
}
@media(max-width:980px){
  .sidebar{position:static;width:auto;padding:12px 20px 0;display:grid;grid-template-columns:1fr auto;gap:8px;border-right:0;border-bottom:1px solid var(--line)}
  .sidebar>.brand{margin:0}.sidebar nav{grid-column:1/-1;grid-row:2;display:flex;gap:8px}
  .sidebar nav a{min-height:45px;border-radius:9px 9px 0 0;padding-inline:17px;font-size:13px}.sidebar nav a[aria-current]::after{display:none}
  .sidebar-account{margin:0;padding:0;display:flex;align-items:center;gap:10px;grid-column:2;grid-row:1}.account{padding:0;border:0}.account-name small{display:none}
  .logout{width:44px;padding:12px}.logout>span{display:none}.app-shell{margin:0}
  .login-art{padding:30px}.login-wrap{gap:30px}.login-card{padding:25px;max-width:380px}
}
@media(max-width:700px){
  .container{padding:16px 14px 28px}.page-topbar{padding-inline:14px}.sidebar{padding-inline:14px}
  .toolbar{flex-direction:column;align-items:stretch;gap:14px;padding:14px;margin-bottom:14px}.toolbar .filters{min-width:0}.period-panel{justify-content:space-between}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.metric{padding:14px}.metric-top{gap:8px;margin-bottom:14px}.metric-label{font-size:12px}.metric-arrow{font-size:18px}
  .metric>strong{font-size:26px}.metric-unit{font-size:11px}
  .list-heading{padding:16px;flex-wrap:wrap;gap:4px}.list-title h2{font-size:16px}
  .orders-table,.orders-table tbody,.orders-table tr,.orders-table td{display:block;width:100%}
  .orders-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .orders-table tr{padding:16px;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
  .orders-table td{padding:0!important;border:0;font-size:12px}
  .orders-table td:first-child{grid-column:1/-1;margin-bottom:2px}
  .orders-table td a strong{font-size:15px}
  .orders-table td[data-label]::before{content:attr(data-label);font-size:10px;display:block;color:#7a866f;margin-bottom:5px}
  .orders-table td a{min-height:44px}
  .archive-list>a{flex-direction:column;align-items:start;padding:12px}
  .login-wrap{display:flex;align-items:center;justify-content:center;padding:24px;background:var(--canvas)}
  .login-art{display:none}.login-card{padding:32px;background:#fff;border:1px solid var(--line);border-radius:20px;width:min(100%,400px)}
  .mobile-login-brand{display:flex;align-items:center;gap:12px;font-size:16px;margin-bottom:40px}
  .login-card h1{font-size:27px}.login-note{font-size:10px}
}
@media(max-width:440px){
  .sidebar{padding:10px 12px 0;gap:8px}.sidebar nav{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px}.sidebar nav a{gap:7px;padding-inline:10px;font-size:12px}
  .brand-mark{width:36px;height:36px;font-size:27px;border-radius:11px}.brand strong{font-size:17px}.brand small{font-size:10px}
  .account-name{display:none}.sidebar-account{gap:3px}.avatar{width:32px;height:32px}
  .container{padding:14px 12px 28px}.page-topbar{padding-inline:12px}.demo-banner{font-size:9px}
  .heading{align-items:start;gap:10px;flex-wrap:wrap;margin-bottom:12px}.heading h1{font-size:26px}
  .heading .button{min-height:44px;font-size:12px;padding-inline:12px}
  .period-panel{gap:12px;flex-wrap:wrap}.period-panel h2{font-size:15px}.period-panel p{font-size:11px}.period-button{width:100%}
  .filters{gap:7px}.search-field input{font-size:12px;padding-left:36px}.search-field>.icon{left:11px;width:16px}.filters .button{padding-inline:13px;font-size:12px}
  .metric{padding:12px}.metric-top{align-items:start;flex-direction:column;gap:8px;min-height:70px}.metric-label{font-size:12px}.metric-icon{width:30px;height:30px;border-radius:8px}.metric-icon .icon{width:18px;height:18px}
  .metric>strong{font-size:22px}.metric>strong small{font-size:10px}.metric-unit{font-size:11px;margin-top:10px}
  .pagination{gap:12px;padding:10px}.pagination .button{padding-inline:10px;font-size:11px}
  dialog{padding:17px}.calendar-nav{gap:4px}.calendar-nav .icon-button{width:32px;min-width:32px}.calendar-nav label:last-of-type{width:64px}.calendar-nav input,.calendar-nav select{font-size:12px;padding-inline:3px}.dialog-heading h2{font-size:16px}
  .login-wrap{padding:18px}.login-card{padding:26px}.login-card input{font-size:16px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
