:root,
[data-theme="light"] {
  --bg: #eef1f8;
  --bg-grad: radial-gradient(1200px 600px at 100% -5%, #e6ecfb 0%, #eef1f8 55%);
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --surface-3: #e9eef7;
  --text: #0f1729;
  --text-soft: #36425c;
  --muted: #5b6b86;
  --line: #e2e8f2;
  --line-strong: #cfd8e8;
  --accent: #2f6df6;
  --accent-soft: rgba(47, 109, 246, 0.12);
  --accent-2: #12b886;
  --accent-3: #f59f00;
  --warning: #b26a00;
  --danger: #e03131;
  --success: #0ca678;
  --shadow: 0 10px 28px rgba(20, 32, 64, 0.08);
  --shadow-sm: 0 2px 8px rgba(20, 32, 64, 0.06);
  --chart-1: #2f6df6;
  --chart-2: #12b886;
  --chart-3: #f59f00;
  --chart-4: #7c4dff;
  --chart-5: #ff6b6b;
  --chart-6: #22b8cf;
  --novo: #12b886;
  --base: #2f6df6;
  --grid-line: #e7edf6;
}

[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-grad: radial-gradient(1200px 600px at 100% -5%, #16213d 0%, #0a0f1e 55%);
  --surface: #141b2e;
  --surface-2: #1b2440;
  --surface-3: #222d4d;
  --text: #eaf0fb;
  --text-soft: #c2cce0;
  --muted: #8b99b8;
  --line: #283255;
  --line-strong: #34406b;
  --accent: #5b82f7;
  --accent-soft: rgba(91, 130, 247, 0.16);
  --accent-2: #20c997;
  --accent-3: #ffc94d;
  --warning: #f0a93b;
  --danger: #ff6b6b;
  --success: #20c997;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --chart-1: #5b82f7;
  --chart-2: #20c997;
  --chart-3: #ffc94d;
  --chart-4: #9d7bff;
  --chart-5: #ff8787;
  --chart-6: #3bc9db;
  --novo: #20c997;
  --base: #5b82f7;
  --grid-line: #232e4f;
}

:root {
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --space: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg-grad), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
}

h2 {
  font-size: 18px;
  font-weight: 650;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill,
button {
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 9px 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
}

button {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease, background 0.15s ease;
}

button:hover {
  filter: brightness(1.07);
}

button:active {
  transform: translateY(1px);
}

.ghost-button,
.icon-button {
  color: var(--text-soft);
  background: var(--surface);
  border-color: var(--line);
}

.ghost-button:hover,
.icon-button:hover {
  background: var(--surface-2);
  filter: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  padding: 0;
  font-size: 17px;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(135px, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.message {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--surface));
  font-weight: 600;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.summary-card,
.panel,
.compare-panel,
.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 18px 18px 16px;
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

.summary-card:nth-child(2)::before { background: var(--accent-2); }
.summary-card:nth-child(3)::before { background: var(--accent-3); }
.summary-card:nth-child(4)::before { background: var(--chart-4); }

.summary-card span,
.panel-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.summary-card strong {
  align-self: end;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel,
.compare-panel,
.compare-card {
  min-width: 0;
  padding: 16px;
}

.compare-panel {
  margin-bottom: 14px;
}

.compare-header {
  align-items: flex-start;
}

.compare-controls {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(110px, 0.7fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) minmax(220px, 1.6fr) minmax(130px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.seller-picker select {
  min-height: 152px;
}

.compare-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.compare-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.compare-card {
  box-shadow: none;
}

.compare-chart,
.compare-bars {
  display: grid;
  gap: 12px;
}

.compare-chart {
  min-height: 280px;
}

.compare-bar {
  display: grid;
  grid-template-columns: minmax(130px, 210px) minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.compare-name {
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-track {
  height: 26px;
  padding: 3px;
  border-radius: 999px;
  background: #eef3f8;
  overflow: hidden;
}

.compare-fill {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: var(--seller-color, var(--accent));
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.12);
}

.compare-value {
  min-width: 122px;
  text-align: right;
  font-weight: 800;
}

.pie-stage {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
}

.pie-chart {
  width: min(340px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--pie-stops));
  box-shadow: inset 0 0 0 28px var(--surface), 0 18px 35px rgba(0, 0, 0, 0.18);
  justify-self: center;
}

.pie-legend {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: grid;
  grid-template-columns: 14px minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--seller-color);
}

.legend-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.legend-share {
  color: var(--muted);
  font-weight: 700;
}

.xy-chart {
  min-height: 360px;
  overflow: auto;
}

.xy-svg {
  width: 100%;
  min-width: 780px;
  height: 360px;
  display: block;
  background:
    linear-gradient(to right, transparent 59px, var(--grid-line) 60px, transparent 61px),
    linear-gradient(to bottom, transparent 59px, var(--grid-line) 60px, transparent 61px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.xy-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.xy-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.line-board {
  display: grid;
  gap: 10px;
}

.line-month {
  display: grid;
  grid-template-columns: 58px minmax(140px, 1fr);
  gap: 10px;
  align-items: center;
}

.line-month-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.line-stack {
  display: grid;
  gap: 5px;
}

.line-segment {
  display: grid;
  grid-template-columns: minmax(70px, 130px) minmax(80px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.line-seller {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-track {
  height: 9px;
  border-radius: 999px;
  background: #eef3f8;
  overflow: hidden;
}

.line-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--seller-color, var(--accent));
}

.line-value {
  min-width: 92px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}

.compare-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-table {
  min-width: 860px;
}

.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  font-weight: 800;
}

.compare-table th:first-child {
  background: var(--surface-2);
}

.compare-table .winner {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  font-weight: 800;
}

.compare-table .muted-cell {
  color: var(--muted);
}

.panel.wide,
.table-panel {
  grid-column: 1 / -1;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ranking-list {
  display: grid;
  gap: 8px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.rank-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.seller-name {
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-value {
  text-align: right;
  font-weight: 700;
}

.bar-chart,
.month-chart {
  display: grid;
  gap: 10px;
}

.bar-item,
.month-item {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.bar-label,
.month-label {
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track,
.month-track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.bar-fill,
.month-fill {
  height: 100%;
  min-width: 2px;
  background: var(--accent-2);
  border-radius: inherit;
}

.bar-value,
.month-value {
  min-width: 116px;
  text-align: right;
  font-weight: 700;
}

.table-panel {
  margin-top: 14px;
}

.table-wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
  color: var(--muted);
}

td.money,
th:nth-last-child(-n + 3) {
  text-align: right;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .filters {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .summary-grid,
  .analysis-grid,
  .compare-controls {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1480px);
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions > * {
    flex: 1;
  }

  .filters,
  .summary-grid,
  .analysis-grid,
  .compare-layout,
  .compare-controls {
    grid-template-columns: 1fr;
  }

  .bar-item,
  .month-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .bar-value,
  .month-value,
  .compare-value,
  .line-value {
    min-width: 0;
    text-align: left;
  }

  .compare-bar,
  .line-segment {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .pie-stage {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Redesign — brand, tabs, theme toggle, ECharts, novos painéis
   ============================================================ */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--accent), var(--chart-4));
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-sm);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.tab {
  flex: 1 0 auto;
  min-height: 42px;
  padding: 9px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.tab:hover {
  background: var(--surface-2);
  filter: none;
}

.tab[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel {
  display: grid;
  gap: 16px;
}

/* Section header inside tabs */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px -2px;
}

.section-title h2 {
  font-size: 19px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Generic grids for panels */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.panel.span-2 {
  grid-column: 1 / -1;
}

/* ECharts container */
.chart {
  width: 100%;
  height: 340px;
}

.chart.tall {
  height: 420px;
}

.chart.short {
  height: 260px;
}

.panel > .chart {
  margin-top: 4px;
}

/* Mini KPI row (origem do faturamento, recompra, etc.) */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.kpi {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.kpi .kpi-label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.kpi .kpi-value {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kpi .kpi-sub {
  color: var(--muted);
  font-size: 12px;
}

.kpi.is-novo .kpi-value { color: var(--novo); }
.kpi.is-base .kpi-value { color: var(--base); }
.kpi.is-good .kpi-value { color: var(--success); }
.kpi.is-warn .kpi-value { color: var(--warning); }
.kpi.is-bad .kpi-value { color: var(--danger); }

/* Scorecard table (positivação, inativos) */
.scorecard {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.scorecard th,
.scorecard td {
  min-width: 0;
  padding: 11px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.scorecard th {
  position: static;
  color: var(--muted);
  background: transparent;
  font-weight: 600;
  text-align: right;
}

.scorecard th:first-child,
.scorecard td:first-child {
  text-align: left;
  white-space: normal;
}

.scorecard td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.scorecard tbody tr:hover {
  background: var(--surface-2);
}

.scorecard-wrap {
  overflow: auto;
  max-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* Inline meter (positivação %) */
.meter {
  display: inline-grid;
  grid-template-columns: 64px auto;
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.meter-track {
  width: 64px;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-2);
}

/* Segment / status chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text-soft);
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.chip.seg-campeoes { color: var(--success); }
.chip.seg-leais { color: var(--accent); }
.chip.seg-risco { color: var(--warning); }
.chip.seg-hibernando { color: var(--chart-4); }
.chip.seg-perdidos { color: var(--danger); }

/* Empty/placeholder inside chart panels */
.chart-empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 200px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tabs {
    position: sticky;
    top: 0;
    z-index: 5;
  }
}

/* ============================================================
   Sidebar + navegação lateral + Configurações
   ============================================================ */

.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.sidebar .brand {
  padding: 4px 8px 6px;
}

.brand-title {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}

.nav-item:hover {
  background: var(--surface-2);
  filter: none;
}

.nav-item[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-ico {
  width: 18px;
  font-size: 15px;
  text-align: center;
  opacity: 0.9;
}

.layout > .app-shell {
  width: auto;
  max-width: 1500px;
  margin: 0;
  padding: 24px 28px 40px;
}

.page-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
}

/* Toggles de vendedores (Configurações) */
.toggle-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
}

.toggle-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switch {
  flex: none;
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  transition: background 0.15s ease;
  cursor: pointer;
}

.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.switch.on {
  background: var(--accent-2);
}

.switch.on .knob {
  transform: translateX(17px);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar .brand {
    display: none;
  }

  .side-nav {
    flex-direction: row;
  }

  .nav-item {
    white-space: nowrap;
  }

  .nav-item .nav-ico {
    display: none;
  }

  .layout > .app-shell {
    padding: 20px 16px 40px;
  }
}
