:root {
  --admin-bg: #07101f;
  --admin-surface: #0d1728;
  --admin-surface-soft: #111f35;
  --admin-border: rgba(148, 163, 184, .18);
  --admin-text: #e8eef9;
  --admin-muted: #93a4bd;
  --admin-blue: #2563eb;
  --admin-cyan: #38bdf8;
  --admin-green: #22c55e;
  --admin-amber: #f59e0b;
  --admin-red: #ef4444;
  --admin-sidebar-width: 260px;
  --admin-radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  border-radius: 10px;
  background: #fff;
  color: #061229;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.admin-shell { min-height: 100vh; }

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--admin-sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1rem;
  border-right: 1px solid var(--admin-border);
  background: linear-gradient(180deg, #0a1427 0%, #07101f 100%);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem .4rem 1.35rem;
  border-bottom: 1px solid var(--admin-border);
}
.admin-brand > a { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.admin-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, .38);
  border-radius: 13px;
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
  font-size: 1.2rem;
}
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { font-size: .96rem; white-space: nowrap; }
.admin-brand small { margin-top: .1rem; color: var(--admin-muted); font-size: .72rem; }
.demo-badge {
  margin-left: auto;
  padding: .2rem .45rem;
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: 999px;
  color: #7dd3fc;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-nav { display: grid; gap: .35rem; padding: 1.35rem 0; }
.admin-nav-link {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: .65rem;
  padding: .68rem .8rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #aebbd0;
  text-align: left;
  cursor: pointer;
}
.admin-nav-link i { color: #8293ad; font-size: 1.05rem; }
.admin-nav-link:hover { background: rgba(37, 99, 235, .1); color: #fff; }
.admin-nav-link.is-active {
  background: linear-gradient(90deg, rgba(37, 99, 235, .28), rgba(14, 165, 233, .1));
  color: #fff;
  box-shadow: inset 3px 0 #38bdf8;
}
.admin-nav-link.is-active i { color: #38bdf8; }
.nav-count {
  min-width: 23px;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, .14);
  color: #cbd5e1;
  font-size: .7rem;
  text-align: center;
}
.nav-count-alert { background: rgba(245, 158, 11, .15); color: #fbbf24; }

.admin-sidebar-foot { margin-top: auto; }
.system-status { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem; border: 1px solid var(--admin-border); border-radius: 13px; background: rgba(17, 31, 53, .62); }
.system-status > span { width: 8px; height: 8px; margin-top: .35rem; border-radius: 50%; background: var(--admin-green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .12); }
.system-status strong, .system-status small { display: block; }
.system-status strong { font-size: .75rem; }
.system-status small { margin-top: .2rem; color: var(--admin-muted); font-size: .66rem; line-height: 1.45; }
.store-link { display: flex; align-items: center; gap: .55rem; margin-top: .7rem; padding: .7rem .85rem; color: #9fb0c8; font-size: .78rem; }
.store-link:hover { color: #fff; }

.admin-workspace { min-height: 100vh; margin-left: var(--admin-sidebar-width); }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--admin-border);
  background: rgba(7, 16, 31, .88);
  backdrop-filter: blur(18px);
}
.admin-topbar-start, .admin-topbar-actions { display: flex; align-items: center; gap: .8rem; }
.eyebrow { margin: 0 0 .15rem; color: #38bdf8; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.admin-topbar h1 { margin: 0; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 11px;
  background: var(--admin-surface-soft);
  cursor: pointer;
}
.icon-button:hover { border-color: rgba(56, 189, 248, .42); color: #7dd3fc; }
.mobile-menu-button { display: none; }
.admin-search { min-width: 250px; height: 42px; display: flex; align-items: center; gap: .55rem; padding: 0 .85rem; border: 1px solid var(--admin-border); border-radius: 12px; background: var(--admin-surface); color: var(--admin-muted); }
.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: .82rem; }
.admin-search input::placeholder { color: #6f819d; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid #111f35; border-radius: 50%; background: var(--admin-red); }
.admin-user { display: flex; align-items: center; gap: .6rem; }
.admin-user > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #1d4ed8, #0891b2); font-size: .78rem; font-weight: 700; }
.admin-user strong, .admin-user small { display: block; }
.admin-user strong { font-size: .76rem; }
.admin-user small { color: var(--admin-muted); font-size: .67rem; }
.notification-panel { position: absolute; top: 68px; right: 2rem; z-index: 60; width: min(340px, calc(100vw - 2rem)); padding: 1rem; border: 1px solid var(--admin-border); border-radius: 14px; background: #111f35; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.notification-panel > strong { display: block; margin-bottom: .7rem; }
.notification-panel p { display: flex; align-items: flex-start; gap: .55rem; margin: .55rem 0; color: #cbd5e1; font-size: .76rem; line-height: 1.5; }
.status-dot { width: 8px; height: 8px; margin-top: .3rem; flex: 0 0 auto; border-radius: 50%; }
.status-dot.warning { background: var(--admin-amber); }
.status-dot.success { background: var(--admin-green); }

.admin-content { padding: 1.25rem clamp(1rem, 3vw, 2rem) 2.5rem; }
.demo-notice { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; padding: .8rem 1rem; border: 1px solid rgba(56, 189, 248, .24); border-radius: 13px; background: rgba(14, 165, 233, .08); }
.demo-notice > i { color: #38bdf8; }
.demo-notice div { min-width: 0; }
.demo-notice strong, .demo-notice span { display: block; }
.demo-notice strong { font-size: .8rem; }
.demo-notice span { margin-top: .12rem; color: #9fb0c8; font-size: .72rem; }
.demo-notice time { margin-left: auto; color: #9fb0c8; font-size: .72rem; white-space: nowrap; }

.admin-view[hidden] { display: none !important; }
.view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 0 1.2rem; }
.view-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.view-heading p:not(.section-kicker) { margin: .28rem 0 0; color: var(--admin-muted); font-size: .82rem; }
.section-kicker { margin: 0 0 .22rem; color: #38bdf8; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.heading-actions { display: flex; gap: .6rem; }

.primary-button, .secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.primary-button { border: 1px solid transparent; background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; box-shadow: 0 10px 22px rgba(37, 99, 235, .2); }
.primary-button:hover { filter: brightness(1.08); }
.secondary-button { border: 1px solid var(--admin-border); background: var(--admin-surface-soft); color: #dbeafe; }
.secondary-button:hover { border-color: rgba(56, 189, 248, .42); }
.text-button { padding: .3rem; border: 0; background: transparent; color: #7dd3fc; font-size: .73rem; font-weight: 600; cursor: pointer; }
.text-button:hover { color: #fff; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: .85rem; }
.metric-card { min-width: 0; display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); background: linear-gradient(145deg, rgba(17, 31, 53, .9), rgba(13, 23, 40, .95)); box-shadow: 0 16px 38px rgba(0, 0, 0, .12); }
.metric-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; font-size: 1.05rem; }
.metric-icon.blue { background: rgba(37, 99, 235, .15); color: #60a5fa; }
.metric-icon.cyan { background: rgba(6, 182, 212, .15); color: #22d3ee; }
.metric-icon.green { background: rgba(34, 197, 94, .14); color: #4ade80; }
.metric-icon.amber { background: rgba(245, 158, 11, .14); color: #fbbf24; }
.metric-card div:last-child { min-width: 0; }
.metric-card span, .metric-card strong, .metric-card small { display: block; }
.metric-card span { color: var(--admin-muted); font-size: .72rem; }
.metric-card strong { margin: .15rem 0 .08rem; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.metric-card small { color: #8293ad; font-size: .65rem; }
.positive { color: #4ade80 !important; }
.warning-text { color: #fbbf24 !important; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, 1fr); gap: .85rem; }
.admin-panel { min-width: 0; padding: 1rem; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); background: linear-gradient(145deg, rgba(17, 31, 53, .92), rgba(10, 20, 39, .96)); box-shadow: 0 16px 38px rgba(0, 0, 0, .12); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.panel-heading span { color: #7dd3fc; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.panel-heading h3 { margin: .2rem 0 0; font-size: .95rem; }
.panel-total { text-align: right; }
.panel-total small, .panel-total strong { display: block; }
.panel-total small { color: var(--admin-muted); font-size: .64rem; }
.panel-total strong { margin-top: .12rem; font-size: .9rem; }

.chart-wrap { height: 250px; display: grid; grid-template-columns: 48px 1fr; gap: .65rem; padding-top: .4rem; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 23px; color: #687b98; font-size: .6rem; text-align: right; }
.bar-chart { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: clamp(.35rem, 1.4vw, .9rem); padding: 1rem .4rem 0; border-bottom: 1px solid var(--admin-border); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), rgba(148, 163, 184, .09) 25%); }
.bar-column { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: .4rem; }
.bar-column small { color: #8293ad; font-size: .62rem; text-align: center; }
.bar { position: relative; height: var(--bar-height); min-height: 24px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #38bdf8, #2563eb); opacity: .78; transition: filter .2s, opacity .2s; }
.bar span { position: absolute; top: -.95rem; left: 50%; transform: translateX(-50%); color: #8fa1bb; font-size: .52rem; white-space: nowrap; opacity: 0; }
.bar:hover { filter: brightness(1.14); opacity: 1; }
.bar:hover span { opacity: 1; }
.bar-column.today .bar { background: linear-gradient(180deg, #4ade80, #16a34a); opacity: 1; }

.donut-row { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 1rem 0 .4rem; }
.donut { width: 145px; height: 145px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#38bdf8 0 33%, #2563eb 33% 61%, #f59e0b 61% 78%, #22c55e 78% 100%); }
.donut::before { content: ""; grid-area: 1 / 1; width: 96px; height: 96px; border-radius: 50%; background: #101d32; }
.donut > span { z-index: 1; grid-area: 1 / 1; text-align: center; }
.donut strong, .donut small { display: block; }
.donut strong { font-size: 1.65rem; }
.donut small { color: var(--admin-muted); font-size: .63rem; }
.legend-list { width: 100%; display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.legend-list li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: .5rem; color: #b7c4d7; font-size: .68rem; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.diagnosis { background: #38bdf8; }.legend-dot.progress { background: #2563eb; }.legend-dot.waiting { background: #f59e0b; }.legend-dot.ready { background: #22c55e; }

.recent-orders-panel { grid-column: 1; }
.stock-panel { grid-column: 2; }
.table-scroll { width: 100%; overflow-x: auto; scrollbar-color: #334155 transparent; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .72rem; white-space: nowrap; }
.admin-table th { padding: .7rem .65rem; border-bottom: 1px solid var(--admin-border); color: #8394ae; font-size: .62rem; font-weight: 600; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: .75rem .65rem; border-bottom: 1px solid rgba(148, 163, 184, .1); color: #c7d2e4; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(56, 189, 248, .035); }
.status-pill, .payment { display: inline-flex; align-items: center; padding: .25rem .48rem; border-radius: 999px; font-size: .6rem; font-weight: 600; }
.status-pill.diagnosis { background: rgba(56, 189, 248, .12); color: #7dd3fc; }.status-pill.progress { background: rgba(37, 99, 235, .14); color: #93c5fd; }.status-pill.waiting { background: rgba(245, 158, 11, .14); color: #fbbf24; }.status-pill.ready { background: rgba(34, 197, 94, .14); color: #4ade80; }
.payment.paid { color: #4ade80; }.payment.partial { color: #fbbf24; }.payment.pending { color: #94a3b8; }

.stock-list, .customer-list { display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.stock-list li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .65rem; padding: .65rem 0; border-bottom: 1px solid rgba(148, 163, 184, .1); }
.stock-list li:last-child { border-bottom: 0; }
.stock-list img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #1e293b; }
.stock-list strong, .stock-list small { display: block; }
.stock-list div strong { font-size: .68rem; }.stock-list small { margin-top: .15rem; color: #7789a5; font-size: .56rem; }.stock-list > li > span { color: #fbbf24; font-size: .61rem; text-align: right; }.stock-list > li > span strong { font-size: .85rem; }

.table-toolbar { display: flex; align-items: flex-end; gap: .75rem; margin-bottom: 1rem; }
.table-toolbar label, .period-select { display: grid; gap: .28rem; color: #93a4bd; font-size: .65rem; }
.table-toolbar label:first-child { flex: 1; }
.table-toolbar input, .table-toolbar select, .period-select select, .dialog-grid input, .dialog-grid select { min-height: 40px; padding: .55rem .7rem; border: 1px solid var(--admin-border); border-radius: 10px; outline: 0; background: #0b1628; color: #e8eef9; font-size: .74rem; }
.table-toolbar input:focus, .table-toolbar select:focus, .period-select select:focus, .dialog-grid input:focus, .dialog-grid select:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .1); }
.result-count { margin-left: auto; padding-bottom: .7rem; color: #8293ad; font-size: .68rem; }
.product-cell { display: flex; align-items: center; gap: .65rem; }
.product-cell img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: #1e293b; }
.stock-ok { color: #86efac; }.stock-low { color: #fbbf24; font-weight: 600; }
.publish-state { display: inline-flex; align-items: center; gap: .35rem; color: #86efac; }.publish-state i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }.publish-state.draft { color: #94a3b8; }.publish-state.draft i { background: #64748b; }
.inventory-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: .85rem; }
.inventory-summary article { padding: .9rem 1rem; border: 1px solid var(--admin-border); border-radius: 14px; background: var(--admin-surface); }.inventory-summary span, .inventory-summary strong { display: block; }.inventory-summary span { color: var(--admin-muted); font-size: .66rem; }.inventory-summary strong { margin-top: .2rem; font-size: 1.1rem; }.inventory-summary .alert-summary { border-color: rgba(245, 158, 11, .22); }.inventory-summary .alert-summary strong { color: #fbbf24; }

.customer-grid, .report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.customer-summary { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; min-height: 320px; text-align: center; }.customer-summary > span { color: var(--admin-muted); font-size: .75rem; }.customer-summary > strong { margin: .2rem 0; font-size: 3rem; }.customer-summary > small { color: #4ade80; font-size: .7rem; }
.avatar-stack { display: flex; justify-content: center; margin-top: 1.4rem; }.avatar-stack span { width: 38px; height: 38px; display: grid; place-items: center; margin-left: -8px; border: 2px solid #101d32; border-radius: 50%; background: linear-gradient(145deg, #1d4ed8, #0891b2); font-size: .62rem; font-weight: 700; }.avatar-stack span:first-child { margin-left: 0; }
.customer-list li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: .65rem; padding: .6rem 0; border-bottom: 1px solid rgba(148, 163, 184, .1); }.customer-list li:last-child { border-bottom: 0; }.customer-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(37, 99, 235, .16); color: #93c5fd; font-size: .65rem; font-weight: 700; }.customer-list strong, .customer-list small { display: block; }.customer-list div strong { font-size: .72rem; }.customer-list small { margin-top: .13rem; color: var(--admin-muted); font-size: .58rem; }.customer-list b { font-size: .7rem; }
.source-bars { display: grid; gap: .75rem; }.source-bars div { display: grid; gap: .28rem; }.source-bars span { display: flex; justify-content: space-between; color: #aebbd0; font-size: .66rem; }.source-bars i { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, .12); }.source-bars i::before { content: ""; display: block; width: var(--source-width); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #38bdf8); }

.report-highlight { grid-row: span 2; display: flex; flex-direction: column; min-height: 360px; background: radial-gradient(circle at 90% 0, rgba(37, 99, 235, .28), transparent 45%), linear-gradient(145deg, rgba(17, 31, 53, .96), rgba(10, 20, 39, .98)); }.report-highlight > span { color: var(--admin-muted); font-size: .75rem; }.report-highlight > strong { margin: .3rem 0; font-size: clamp(1.8rem, 4vw, 2.65rem); }.report-highlight > small { font-size: .68rem; }.sparkline { height: 170px; display: flex; align-items: flex-end; gap: .45rem; margin-top: auto; }.sparkline i { flex: 1; min-width: 8px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #38bdf8, #2563eb); opacity: .78; }
.income-list, .operations-list { display: grid; gap: .78rem; }.income-list > div, .operations-list > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(148, 163, 184, .1); color: #b8c5d7; font-size: .68rem; }.income-list > div:last-child, .operations-list > div:last-child { padding-bottom: 0; border-bottom: 0; }.income-list span { display: flex; align-items: center; gap: .45rem; }.income-list strong, .operations-list strong { color: #fff; font-size: .72rem; white-space: nowrap; }.income-list strong small { margin-left: .25rem; color: var(--admin-muted); font-size: .58rem; }.income-color { width: 8px; height: 8px; border-radius: 3px; }.income-color.service { background: #38bdf8; }.income-color.products { background: #2563eb; }.income-color.other { background: #22c55e; }

.demo-toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80; max-width: 380px; margin: 0; padding: .8rem 1rem; border: 1px solid rgba(56, 189, 248, .28); border-radius: 12px; background: #13233c; box-shadow: 0 18px 42px rgba(0, 0, 0, .4); color: #dbeafe; font-size: .75rem; }

.order-dialog { width: min(620px, calc(100% - 2rem)); padding: 0; border: 1px solid var(--admin-border); border-radius: 18px; background: #101d32; color: var(--admin-text); box-shadow: 0 28px 80px rgba(0, 0, 0, .6); }.order-dialog::backdrop { background: rgba(2, 6, 23, .78); backdrop-filter: blur(5px); }.order-dialog form { padding: 1.2rem; }.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }.dialog-heading span { color: #38bdf8; font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }.dialog-heading h2 { margin: .2rem 0 0; font-size: 1.2rem; }.order-dialog form > p { margin: .55rem 0 1rem; color: var(--admin-muted); font-size: .73rem; line-height: 1.55; }.dialog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }.dialog-grid label { display: grid; gap: .3rem; color: #aebbd0; font-size: .67rem; }.full-field { grid-column: 1 / -1; }.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.1rem; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .recent-orders-panel, .stock-panel { grid-column: 1; }
  .admin-search { min-width: 210px; }
}

@media (max-width: 820px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0, 0, 0, .36); }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-overlay { position: fixed; inset: 0; z-index: 35; background: rgba(2, 6, 23, .68); }
  .admin-workspace { margin-left: 0; }
  .mobile-menu-button { display: inline-grid; }
  .admin-user div { display: none; }
  .customer-grid, .report-grid { grid-template-columns: 1fr; }
  .customer-summary, .report-highlight { grid-row: auto; }
}

@media (max-width: 640px) {
  .admin-topbar { min-height: 68px; padding: .7rem .8rem; }
  .admin-topbar-actions { gap: .4rem; }
  .admin-search { width: 42px; min-width: 42px; padding: 0; justify-content: center; }
  .admin-search input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .admin-user { display: none; }
  .admin-content { padding: .85rem .75rem 2rem; }
  .demo-notice { align-items: flex-start; }
  .demo-notice time { display: none; }
  .view-heading { align-items: stretch; flex-direction: column; }
  .view-heading > button, .heading-actions, .heading-actions button { width: 100%; }
  .heading-actions { flex-direction: column; }
  .metric-grid, .inventory-summary { grid-template-columns: 1fr; }
  .metric-card { align-items: center; }
  .chart-wrap { height: 220px; grid-template-columns: 38px 1fr; }
  .bar-chart { gap: .3rem; }
  .bar span { display: none; }
  .donut-row { align-items: stretch; flex-direction: column; }
  .donut { align-self: center; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-toolbar label { width: 100%; }
  .result-count { margin-left: 0; padding-bottom: 0; }
  .dialog-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
