:root {
  --ink: #102b32;
  --teal: #086d59;
  --teal-dark: #062c33;
  --lime: #d7fa53;
  --canvas: #f2f5f4;
  --line: #d8e1df;
  --muted: #56716d;
}
body { word-break: keep-all; overflow-wrap: anywhere; }
.shell { grid-template-columns: 230px minmax(0,1fr); }
.rail { position: sticky; top: 0; min-height: 0; height: 100dvh; overflow: auto; padding: 25px 16px 16px; background: #082b31; }
.brand { gap: 11px; padding: 0 11px 22px; }
.brand img { width: 122px; }
.brand span { color: #c4dcd6; font-size: 13px; font-weight: 650; letter-spacing: .025em; }
.rail nav { display: flex; flex-direction: column; align-items: stretch; gap: 12px; border-color: #315056; padding: 19px 0 20px; }
.rail nav a { display: flex; gap: 10px; align-items: center; min-height: 38px; padding: 8px 12px; color: #dfefeb; font-size: 14px; font-weight: 580; }
.rail nav a:hover { background: #1c4044; }
.rail nav a[aria-current=page] { color: #e4ff8e; background: #20483f; box-shadow: inset 3px 0 0 var(--lime); font-weight: 750; }
.navmark.tiles { flex: none; width: 7px; height: 7px; border-radius: 1px; background: currentColor; box-shadow: 8px 0 currentColor,0 8px currentColor,8px 8px currentColor; margin: 0 9px 8px 0; }
.menu-group { border-top: 1px solid #29484d; padding-top: 11px; }
.menu-group summary { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; margin: 0; color: #a7c1bf; list-style: none; font-size: 12px; font-weight: 650; }
.menu-group summary::-webkit-details-marker { display: none; }
.menu-group summary::after { content: ''; width: 6px; height: 6px; border: solid #adc8c0; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.menu-group[open] summary::after { transform: rotate(225deg); }
.menu-group[open] > summary { margin-bottom: 4px; }
.rail .menu-group a { padding-left: 20px; margin: 2px 0; }
.account { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; padding: 16px 4px 0; border-top: 1px solid #315056; }
.account .avatar { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #487069; border-radius: 50%; color: #d8f6e4; background: #20483f; font-size: 14px; font-weight: 750; }
.account strong { display: block; font-size: 13px; }
.account small { font-size: 11px; color: #a5bfbd; }
.account .logout { font-size: 12px; text-decoration: none; }
.menu-toggle { display: none; }
.main { min-width: 0; padding: 0 clamp(20px,3.3vw,56px) 48px; }
.tenant { min-height: 54px; margin-bottom: 28px; padding: 10px 0; letter-spacing: -.012em; }
.tenant-label,.sep { color: #617c77; font-weight: 550; }
h1 { font-size: clamp(28px,2.6vw,38px); overflow-wrap: break-word; }
h2 { font-size: 19px; }
.heading,.section-head { margin-bottom: 20px; }
.eyebrow { font-size: 13px; }
.panel { box-shadow: 0 2px 5px #0c303205; }
.period { color: var(--muted); font-size: 13px; }
.period b { color: var(--ink); }
.scope-form,.filter-bar { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.scope-form { align-items: center; }
.scope-form select { width: auto; min-width: 125px; max-width: min(55vw,280px); }
.scope-form .btn { min-height: 42px; }
.filter-bar label { flex: 1 1 125px; }
.filter-bar .grow { flex: 2 1 220px; }
.overview-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.metric { display: block; position: relative; overflow: hidden; padding: 18px 19px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.metric:first-child { background: #103f42; border-color: #103f42; color: #fff; }
.metric:first-child span,.metric:first-child em { color: #d0e4df; }
.metric span { display: block; color: #45645d; font-size: 13px; font-weight: 680; }
.metric strong { display: block; margin: 7px 0 5px; line-height: 1.18; font-size: clamp(28px,2.5vw,38px); font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.metric strong small { display: inline; margin-left: 4px; font-size: 15px; color: inherit; }
.metric em { font-size: 12px; font-style: normal; color: var(--muted); }
a.metric:hover { border-color: #569b83; text-decoration: none; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(235px,1fr); gap: 15px; align-items: stretch; }
.week-chart { display: flex; gap: 3%; height: 141px; margin: 9px 0 0; }
.chart-day { min-width: 0; flex: 1; text-align: center; display: flex; flex-direction: column; }
.chart-day small { color: var(--muted); padding-top: 7px; font-size: 11px; font-variant-numeric: tabular-nums; }
.bar-track { display: flex; align-items: end; justify-content: center; flex: 1; border-bottom: 1px solid #9bb6b0; background: repeating-linear-gradient(to top,transparent 0,transparent calc(33.33% - 1px),#eaf0ee calc(33.33% - 1px),#eaf0ee 33.33%); padding-top: 18px; }
.bar { position: relative; width: min(72%,38px); min-height: 1px; background: #72bca3; border-radius: 3px 3px 0 0; }
.bar.current { background: var(--teal); }
.bar span { position: absolute; inset: auto 0 100%; color: var(--teal); font-size: 11px; font-weight: 650; }
.status-strip { display: flex; height: 9px; gap: 2px; border-radius: 9px; overflow: hidden; background: #e6edeb; margin-bottom: 13px; }
.ready { background: #2e9979; }
.waiting { background: #e6ba62; }
.paused { background: #93a2a3; }
.status-link { display: flex; align-items: center; justify-content: space-between; min-height: 33px; gap: 9px; font-size: 13px; color: var(--ink); }
.status-link span { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.blank { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 27px 13px; background: #f7faf8; color: var(--muted); border: 1px dashed var(--line); border-radius: 7px; font-size: 14px; }
.blank a,.table-action,.cell-name { font-weight: 720; }
.cell-name { color: var(--ink); }
.tag-wait { color: #76591a; background: #fff1cc; }
.tag-muted { color: #56635f; background: #e9eeec; }
.table-scroll table { min-width: 560px; }
.table-scroll th,.table-action { white-space: nowrap; }
.table-product,.stock-head,.pagination { display: flex; align-items: center; gap: 10px; }
.table-product img { width: 52px; height: 38px; object-fit: contain; background: #f0f4f2; border-radius: 4px; }
.stock-head { margin: 20px 0 10px; justify-content: space-between; flex-wrap: wrap; }
.table-note { margin-top: 12px; }
.pagination { justify-content: flex-end; font-size: 13px; margin-top: 16px; }
@media (max-width: 1020px) {
  .shell { grid-template-columns: 194px minmax(0,1fr); }
  .overview-metrics { gap: 9px; }
  .metric { padding: 15px 12px; }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .rail { position: static; display: grid; grid-template-columns: auto 1fr auto; height: auto; padding: 12px 15px; row-gap: 9px; }
  .brand { flex-direction: row; align-items: center; padding: 0; }
  .brand img { width: 86px; }
  .brand span { font-size: 13px; }
  .rail nav { grid-column: 1/-1; grid-row: 2; overflow: visible; padding: 5px 0 0; gap: 5px; }
  .rail.js-menu nav { display: none; }
  .rail.js-menu .menu-toggle { display: block; justify-self: end; align-self: center; grid-row: 1; grid-column: 2; margin-right: 12px; border: 1px solid #416162; border-radius: 5px; background: transparent; padding: 6px 10px; color: #e1f4ed; font-size: 13px; }
  .rail.js-menu .menu-toggle[aria-expanded=true] + nav { display: flex; }
  .rail .account { grid-row: 1; grid-column: 3; padding: 0; display: flex; border: 0; }
  .account .avatar,.account > div { display: none; }
  .main { padding: 0 16px 32px; }
  .tenant { min-height: 44px; margin-bottom: 20px; }
}
@media (max-width: 650px) {
  .overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; gap: 0; }
  .week-chart { height: 111px; }
  .heading { align-items: flex-start; }
  .metric strong { font-size: 30px; }
  .filter-bar .btn { flex: 1 1 60px; }
}
