@font-face {
  font-family: Inter;
  src: url('./assets/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Material Design Icons';
  src: url('./assets/icons.woff') format('woff');
  font-display: block;
}

:root {
  font-family: Inter, Arial, sans-serif;
  color: #172842;
  background: #f4f6fa;
  --navy: #142540;
  --navy-deep: #10213b;
  --blue: #2546a3;
  --blue-light: #eaf0ff;
  --red: #ed1c29;
  --text: #172842;
  --muted: #55647a;
  --line: #e2e8f1;
  --canvas: #f4f6fa;
  --white: #fff;
  --sidebar-width: 228px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::after, *::before { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid #3762da; outline-offset: 4px; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  flex: none;
  font: normal 1em/1 'Material Design Icons';
  -webkit-font-smoothing: antialiased;
}

.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; }
.button {
  min-height: 42px;
  gap: 9px;
  border: 1px solid transparent;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 640;
}
.primary { background: var(--blue); color: white; }
.primary:hover { background: #1b3482; }
.button .icon { font-size: 18px; }
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  flex: none;
  font-size: 21px;
}
.icon-button:hover { background: var(--blue-light); color: var(--blue); }

.login {
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(0, 1.1fr);
  min-height: 100vh;
  min-height: 100svh;
  background: white;
}
.login-pane {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 55px clamp(35px, 5vw, 100px) 26px;
}
.login-inner { width: 100%; max-width: 384px; justify-self: center; margin-block: 0 23px; }
.login-logo { display: block; width: 104px; height: auto; margin-bottom: 34px; }
.login-heading h1 { font-size: clamp(27px, 3.25vw, 42px); font-weight: 740; line-height: 1.08; letter-spacing: -.054em; }
.login-heading p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.login-form { display: grid; gap: 17px; margin-top: 31px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { color: var(--text); font-size: 13px; font-weight: 640; }
.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  height: 50px;
  background: #f8faff;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  color: #566985;
  font-size: 18px;
}
.input-wrap:focus-within { border-color: #6381d1; }
.input-wrap input { border: 0; background: transparent; color: var(--text); min-width: 0; width: 100%; font-size: 14px; padding: 8px 0; }
.input-wrap input:focus { outline: none; }
.eye-button { width: 33px; height: 33px; margin-right: -6px; font-size: 19px; }
.login-submit { position: relative; margin-top: 5px; min-height: 50px; font-size: 14px; }
.login-submit .icon { position: absolute; right: 16px; }
.demo-note { display: flex; align-items: center; gap: 7px; color: var(--muted); margin-top: 21px; font-size: 12px; }
.demo-note .icon { font-size: 16px; }
.login-footer { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 11px; }
.brand-stroke { width: 14px; height: 3px; border-radius: 999px; background: var(--red); }
.login-hero {
  margin: 16px 16px 16px 0;
  background: #b6a38d url('./assets/showroom.webp') center center / cover no-repeat;
  border-radius: 18px;
}

.app { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.skip-link { position: fixed; z-index: 100; left: 10px; top: 10px; background: white; padding: 9px 13px; transform: translateY(-200%); border-radius: 5px; }
.skip-link:focus { transform: none; }
.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  align-self: start;
  inset: 0 auto auto 0;
  height: 100vh;
  height: 100dvh;
  background: var(--navy-deep);
  color: #e8eef9;
  overflow-y: auto;
  padding: 24px 14px 17px;
  z-index: 5;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; margin: 0 8px; padding: 0 0 24px; border-bottom: 1px solid #2b3b54; }
.sidebar-logo { display: grid; place-items: center; width: 72px; height: 53px; border-radius: 9px; background: white; }
.sidebar-logo img { width: 52px; height: auto; }
.sidebar-brand > span { font-size: 12px; line-height: 1.36; font-weight: 610; }
.nav { flex: 1; padding-top: 5px; }
.nav-label { padding: 0 12px; margin: 24px 0 9px; color: #a3b2c9; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 11px;
  padding: 9px 11px;
  margin: 4px 0;
  border-left: 2px solid transparent;
  border-radius: 8px;
  color: #e2eaf7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 475;
}
.nav a .icon { font-size: 19px; color: #a9bbd7; }
.nav a:hover { background: #203653; color: white; }
.nav a[aria-current='page'] { color: white; background: #24416e; border-left-color: #fa4554; font-weight: 630; }
.nav a[aria-current='page'] .icon { color: #e7eeff; }
.sidebar-account { display: flex; align-items: center; gap: 10px; padding: 15px 3px 0 6px; border-top: 1px solid #2b3b54; margin: 22px 4px 0; }
.sidebar-account > div { flex: 1; min-width: 0; }
.sidebar-account strong, .sidebar-account > div > span { display: block; }
.sidebar-account strong { font-size: 12px; }
.sidebar-account > div > span { color: #a9bad3; font-size: 10px; margin-top: 4px; line-height: 1.35; }
.sidebar-account .avatar { background: #294675; color: #f2f6ff; }
.sign-out { width: 31px; height: 33px; font-size: 19px; color: #b5c4db; }
.sidebar-close, .menu-toggle, .nav-scrim { display: none; }

.workspace { min-width: 0; }
.topbar {
  min-height: 66px;
  padding: 0 clamp(20px, 3.1vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.breadcrumbs, .topbar-right, .store-location { display: flex; align-items: center; }
.breadcrumbs { gap: 10px; color: var(--muted); font-size: 12px; min-width: 0; }
.breadcrumbs strong { color: var(--text); font-weight: 650; }
.breadcrumbs .icon { color: #76839a; font-size: 14px; }
.topbar-right { gap: 20px; }
.store-location { gap: 6px; color: var(--muted); white-space: nowrap; font-size: 12px; }
.store-location .icon { font-size: 17px; color: var(--blue); }
.preview-status { background: #edf2fc; border-radius: 6px; color: #385486; font-size: 11px; font-weight: 640; padding: 6px 8px; white-space: nowrap; }
.notifications { position: relative; }
.notification-toggle { position: relative; border-color: var(--line); background: #fff; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--red); border: 1.5px solid white; border-radius: 50%; }
.notification-panel {
  position: absolute;
  z-index: 9;
  right: 0;
  top: calc(100% + 11px);
  width: min(355px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 14px 36px #17284222;
}
.notification-footer { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; justify-content: space-between; padding-top: 9px; }
.text-button { background: transparent; border: 0; color: var(--blue); font-size: 12px; font-weight: 650; padding: 7px 0; text-align: left; }
.text-button:hover { text-decoration: underline; }

.content { max-width: 1650px; padding: 30px clamp(20px, 3.1vw, 46px) 40px; margin: 0 auto; }
.content:focus { outline: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.page-heading h1 { color: var(--text); font-size: clamp(27px, 3vw, 36px); line-height: 1.12; font-weight: 755; letter-spacing: -.05em; }
.page-heading p { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 9px; }
.page-heading p .icon { font-size: 17px; }
.segmented { display: inline-flex; flex: none; gap: 3px; padding: 3px; border: 1px solid #dce4f1; background: white; border-radius: 9px; }
.segmented button, .segmented a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 45px;
  padding: 0 12px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  font-size: 12px;
  font-weight: 635;
}
.segmented button:hover, .segmented a:hover { background: #f1f4fa; }
.segmented [aria-pressed='true'], .segmented [aria-current='true'] { background: var(--blue-light); color: var(--blue); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.metric, .panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 1px 2px #17284205; }
.metric { min-height: 127px; padding: 14px 15px 13px; }
.metric-top { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #435570; font-size: 12px; font-weight: 620; }
.metric-icon, .mini-icon, .panel-icon { display: inline-grid; place-items: center; flex: none; border-radius: 9px; width: 35px; height: 35px; font-size: 19px; }
.blue { background: #e9efff; color: #2546a3; }
.teal { background: #e3f5ee; color: #1a654f; }
.violet { background: #efebfc; color: #5439a6; }
.amber { background: #fff2dd; color: #87500d; }
.metric strong { display: block; margin: 6px 0; color: var(--text); font-weight: 755; letter-spacing: -.043em; line-height: 1.1; font-size: clamp(19px, 2.15vw, 30px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric > p, .metric-progress { font-size: 11px; line-height: 1.4; color: var(--muted); }
.metric-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.metric-progress progress { accent-color: var(--blue); display: block; width: min(56px, 30%); height: 6px; border: 0; border-radius: 999px; appearance: none; background: #e7edff; }
.metric-progress progress::-webkit-progress-bar { background: #e7edff; border-radius: 999px; }
.metric-progress progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.metric-progress progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 17px; margin-bottom: 17px; }
.panel { padding: 18px 19px 14px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.panel-heading h2 { font-size: 15px; line-height: 1.32; font-weight: 720; letter-spacing: -.019em; }
.panel-heading p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 4px; }
.chart-panel { min-height: 319px; }
.chart-panel .panel-heading { margin-bottom: 19px; }
.chart-key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; color: var(--muted); margin-top: 3px; }
.chart-key span { width: 8px; height: 8px; background: var(--blue); border-radius: 3px; }
.chart { --plot-height: 185px; position: relative; display: grid; grid-template-columns: 59px minmax(0, 1fr); padding-top: 7px; }
.chart-ruler { position: absolute; inset: 7px 0 auto 0; display: flex; flex-direction: column; justify-content: space-between; height: var(--plot-height); }
.chart-ruler > div { display: flex; align-items: center; gap: 8px; height: 0; }
.chart-ruler span { width: 51px; color: var(--muted); text-align: right; font-size: 10px; white-space: nowrap; }
.chart-ruler i { flex: 1; border-top: 1px solid #e9edf5; }
.chart-ruler > div:last-child i { border-color: #d9e1ed; }
.chart-columns { display: grid; grid-column: 2; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); }
.chart-column { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; outline-offset: -2px; }
.bar-track { display: flex; width: 100%; height: var(--plot-height); align-items: flex-end; justify-content: center; }
.bar { width: min(60%, 33px); height: var(--bar-height); border-radius: 5px 5px 0 0; background: #91a8e8; }
.latest .bar, .chart-column:hover .bar, .chart-column:focus-visible .bar { background: #2d51b4; }
.bar-label { font-size: 10px; color: var(--muted); margin-top: 9px; white-space: nowrap; }
.chart-tip { display: none; position: absolute; z-index: 2; top: -11px; left: 50%; transform: translateX(-50%); background: var(--navy); color: white; border-radius: 5px; padding: 5px 7px; font-size: 10px; white-space: nowrap; pointer-events: none; box-shadow: 0 1px 4px #17284230; }
.chart-column:first-child .chart-tip, .chart-column:nth-child(2) .chart-tip { left: 0; transform: none; }
.chart-column:last-child .chart-tip, .chart-column:nth-last-child(2) .chart-tip { left: auto; right: 0; transform: none; }
.chart-column:hover .chart-tip, .chart-column:focus-visible .chart-tip { display: block; }

.plain-list { list-style: none; padding: 0; margin: 10px 0 0; }
.activity-row, .summary-row { display: flex; align-items: center; gap: 9px; min-height: 51px; padding: 8px 0; }
.activity-row + .activity-row, .summary-row + .summary-row { border-top: 1px solid #edf0f6; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 10px; font-weight: 740; }
.row-name { display: grid; flex: 1; min-width: 0; gap: 3px; }
.row-name strong { color: var(--text); font-size: 12px; font-weight: 670; }
.row-name > span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.activity-time, .compact-date { flex: none; font-size: 11px; font-weight: 630; color: #435570; white-space: nowrap; font-variant-numeric: tabular-nums; }
.panel-footer { display: flex; align-items: center; border-top: 1px solid #edf0f6; margin-top: 2px; padding: 9px 0 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 670; text-decoration: none; color: var(--blue); padding: 4px 0; }
.text-link .icon { font-size: 15px; }
.text-link:hover { text-decoration: underline; }
.lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.summary-panel .panel-icon { width: 30px; height: 30px; font-size: 16px; }
.summary-row .mini-icon { width: 30px; height: 30px; font-size: 16px; }
.status { display: inline-flex; flex: none; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 8px; white-space: nowrap; font-size: 10px; font-weight: 650; }
.status > span { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }

.data-panel { margin-bottom: 17px; }
.data-panel > .panel-heading { margin-bottom: 14px; align-items: center; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
table th { padding: 11px 12px; background: #f1f5fb; color: #435570; white-space: nowrap; font-size: 11px; font-weight: 700; }
table th:first-child { border-radius: 6px 0 0 6px; }
table th:last-child { border-radius: 0 6px 6px 0; }
table td { padding: 11px 12px; border-bottom: 1px solid #ebeff6; white-space: nowrap; color: #354760; }
table tr:last-child td { border-bottom: 0; }
table strong { color: var(--text); font-weight: 650; }
.table-person { display: inline-flex; align-items: center; gap: 9px; }
.table-person .avatar { width: 27px; height: 27px; }
.full-activity { max-width: 650px; }
.order-panel { margin-bottom: 12px; padding: 0; }
.order-panel summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; border-radius: 13px; }
.order-panel summary::-webkit-details-marker { display: none; }
.order-panel summary:hover { background: #f8faff; }
.order-panel summary > .icon { font-size: 18px; }
.order-panel[open] summary > .icon { transform: rotate(180deg); }
.order-date { font-size: 11px; font-weight: 630; white-space: nowrap; color: var(--muted); }
.order-detail { border-top: 1px solid var(--line); padding: 14px 18px; }
.order-detail p, .empty-state { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.select-field { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.select-field select { min-height: 33px; border: 1px solid #dce4f1; padding: 3px 5px; border-radius: 6px; color: var(--text); background: white; }

@media (max-width: 1160px) {
  :root { --sidebar-width: 197px; }
  .topbar, .content { padding-inline: 24px; }
  .metric strong { font-size: clamp(17px, 2.13vw, 26px); }
}

@media (max-width: 1000px) and (min-width: 841px) {
  :root { --sidebar-width: 172px; }
  .sidebar { padding-inline: 10px; }
  .sidebar-brand { margin-inline: 5px; padding-bottom: 18px; }
  .sidebar-logo { width: 64px; }
  .sidebar-account { margin-inline: 0; gap: 6px; }
  .topbar, .content { padding-inline: 18px; }
  .metrics-grid { gap: 9px; }
  .metric { padding-inline: 11px; }
  .metric strong { font-size: clamp(17px, 1.92vw, 21px); }
  .dashboard-grid { gap: 11px; grid-template-columns: minmax(0, 1.53fr) minmax(0, 1fr); }
  .lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding-inline: 13px; }
  .chart-column.alternate-label .bar-label { visibility: hidden; }
}

@media (max-width: 840px) {
  .app { display: block; }
  .sidebar { position: fixed; width: min(280px, calc(100vw - 40px)); transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .app.menu-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-close { display: inline-flex; position: absolute; top: 26px; right: 14px; color: #dce8fd; }
  .menu-toggle { display: inline-flex; border-color: var(--line); }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 4; width: 100%; background: #10213b70; border: 0; }
  .topbar { justify-content: flex-start; }
  .topbar-right { margin-left: auto; }
  .login { grid-template-columns: minmax(350px, 1fr) minmax(0, .82fr); }
  .metric strong { font-size: clamp(17px, 3.1vw, 27px); }
}

@media (min-width: 621px) and (max-width: 740px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .login { display: flex; flex-direction: column; }
  .login-pane { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 35px 22px 20px; }
  .login-inner { margin: 0 0 31px; }
  .login-logo { width: 80px; margin-bottom: 24px; }
  .login-heading h1 { font-size: 34px; }
  .login-form { margin-top: 23px; gap: 14px; }
  .login-hero { order: -1; min-height: clamp(145px, 28svh, 220px); margin: 10px 10px 0; background-position: center 56%; border-radius: 13px; }
  .topbar { min-height: 58px; padding-inline: 14px; }
  .topbar-right { gap: 9px; }
  .breadcrumbs > span { display: none; }
  .store-location { display: none; }
  .content { padding: 23px 14px 34px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 16px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p { margin-top: 6px; font-size: 12px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
  .metric { min-height: 111px; padding: 10px 11px; }
  .metric-top { min-height: 31px; font-size: 11px; }
  .metric-icon { width: 30px; height: 30px; font-size: 17px; }
  .metric strong { font-size: clamp(17px, 5vw, 25px); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
  .panel { padding: 15px 13px 12px; }
  .chart-panel { min-height: 266px; }
  .chart { --plot-height: 153px; }
  .chart-column.alternate-label .bar-label { visibility: hidden; }
  .order-panel { padding: 0; }
  .order-panel summary { gap: 7px; padding-inline: 10px; }
  .order-panel summary .mini-icon { width: 29px; height: 29px; font-size: 17px; }
  .order-date { display: none; }
  .order-detail { padding-inline: 10px; }
  .data-panel .button { font-size: 11px; padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
