/* =========================
   Atom Metrics - Dark UI
   ========================= */

:root {
  --bg: #000000;
  --bg-2: #10151d;
  --panel: #141a22;
  --panel-2: #1b222d;
  --panel-3: #242c38;
  --surface: #111720;
  --surface-soft: #18202a;
  --border: #26313d;
  --border-strong: #334150;
  --text: #e7e9ec;
  --text-soft: #a3aab4;
  --text-faint: #7e8792;
  --accent: #e5b94e;
  --accent-2: #f0c65f;
  --accent-soft: rgba(105, 132, 162, 0.18);
  --value: #d9e1ea;
  --danger: #e16b6b;
  --ok: #6fd19b;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-w: 92px;
  --topbar-h: 72px;
  --transition: 190ms ease;
  --font: Inter, "Segoe UI", Roboto, Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #111720;
}

*::-webkit-scrollbar-thumb {
  background: #364454;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #465769;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000000;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
}

html {
  scroll-behavior: smooth;
}

body { min-height: 100vh; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background: #0f1621;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 30;
}

.sidebar-logo {
  width: 54px;
  height: 54px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: none;
  overflow: visible;
  text-decoration: none;
  transition: transform var(--transition), filter var(--transition);
}

.sidebar-logo:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 18px rgba(255, 143, 0, 0.18));
}

.sidebar-logo::before {
  content: "";
  width: 54px;
  height: 54px;
  display: block;
  background: url("/static/atom.png") center / contain no-repeat;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.nav-item {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

.nav-item:hover {
  transform: translateY(-1px);
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--border);
}

.nav-item.active {
  background: linear-gradient(180deg, var(--accent-2), #d6a93c);
  color: #15191f;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(229, 185, 78, 0.24);
}

.nav-icon { font-size: 22px; line-height: 1; }

.nav-letter {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: inherit;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
}

.main { min-width: 0; }

.topbar {
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 28px;
  background: rgba(11, 15, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar:not(:has(.section-nav)) {
  display: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.breadcrumb strong { color: var(--text); }

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

.content {
  min-width: 0;
  padding: 28px;
}

.visitas-content {
  padding-top: 16px;
}

.section-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 78px);
  width: min(100%, 860px);
}

.section-nav-link {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
  transition: color var(--transition);
}

.section-nav-link:hover,
.section-nav-link.active {
  color: var(--text);
}

.metric-section {
  position: relative;
  scroll-margin-top: calc(var(--topbar-h) + 22px);
  overflow-anchor: none;
}

.metric-section.is-updating {
  pointer-events: none;
}

.metric-section.is-updating::after {
  content: "Actualizando...";
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.4px;
  background: rgba(11, 15, 21, 0.46);
  backdrop-filter: blur(2px);
}

.metric-section + .metric-section {
  margin-top: 28px;
}

.metric-placeholder {
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.page-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.page-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card { padding: 22px; }

.card-title,
.section-title {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 650;
}

.card-value {
  font-size: 46px;
  line-height: 1;
  font-weight: 600;
  color: var(--value);
}

.card-sub {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-profile {
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--surface-soft);
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: visible;
}

.profile-avatar img {
  width: 84px;
  height: 84px;
  display: block;
  object-fit: contain;
}

.profile-name {
  font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #f3f4f6;
  letter-spacing: -0.1px;
}

.profile-sub {
  margin-top: 8px;
  font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #9ca3af;
  letter-spacing: -0.1px;
}

.kpi-strip { padding: 22px; }

.kpi-months {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.kpi-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, 96px);
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,0.12);
}

.kpi-client { font-weight: 650; }
.kpi-cell { text-align: right; color: var(--value); font-weight: 600; }

.btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), color var(--transition), opacity var(--transition);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--panel-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary {
  background: var(--panel-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.status {
  min-height: 18px;
  color: var(--text-soft);
  font-size: 13px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  padding: 12px 14px;
  margin: 18px 0;
}

.field { display: grid; gap: 8px; }

.compact-filters .field {
  gap: 0;
}

.field label {
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.compact-filters .field label {
  display: none;
}

.field select {
  height: 40px;
  width: 100%;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0 42px 0 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field select:hover {
  background-color: var(--panel-2);
  border-color: var(--border-strong);
}

.field select:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field select::-ms-expand {
  display: none;
}

.field select option {
  color: var(--text);
  background: var(--panel-2);
}

.tabs-wrap { margin: 18px 0; }

.tabs {
  position: relative;
  display: inline-grid;
  gap: 6px;
  padding: 6px;
  border-radius: 22px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tabs.cr-tabs {
  width: min(100%, 620px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tabs.detail-tabs {
  width: min(100%, 430px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tabs.sla-tabs {
  width: min(100%, 260px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tabs.reinc-tabs {
  width: min(100%, 390px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tabs.mini-tabs {
  width: auto;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, auto);
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  box-shadow: none;
}

.mini-tabs .tab {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.mini-tabs .tab.active {
  background: #282f38;
}

.tab {
  white-space: nowrap;
}

.tab {
  position: relative;
  z-index: 2;
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 650;
  padding: 10px 16px;
  transition: color var(--transition), transform var(--transition);
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--text); }

.tab-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  border-radius: 16px;
  background: #282f38;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 220ms ease, width 220ms ease;
  z-index: 1;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  margin: 18px 0;
}

.sla-insight-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.38fr) minmax(420px, 1fr);
  grid-template-areas:
    "breakdown trend";
  gap: 18px;
  margin: 18px 0;
}

.sla-insight-grid .sla-breakdown-card { grid-area: breakdown; }
.sla-insight-grid .sla-chart-card { grid-area: trend; }

.sla-insight-grid .chart-wrap {
  height: 340px;
}

.sla-toolbar,
.reinc-toolbar,
.metric-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
}

.sla-toolbar {
  display: grid;
  grid-template-columns: auto minmax(360px, 420px) minmax(680px, 1fr);
}

.sla-toolbar .sla-average-card {
  min-height: 86px;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "title title"
    "value summary";
  align-items: center;
  column-gap: 18px;
  align-self: center;
}

.sla-toolbar .sla-average-card .card-title {
  grid-area: title;
  margin: 0 0 2px;
  font-size: 12px;
}

.sla-toolbar .sla-average-card .metric-value {
  grid-area: value;
  margin: 0;
  font-size: 40px;
  line-height: 0.95;
}

.sla-toolbar .sla-average-card .metric-value::after {
  content: "";
  display: block;
  width: 76px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(229, 185, 78, 0.88);
}

.sla-toolbar .sla-average-card .card-sub {
  grid-area: summary;
  margin: 0;
  align-self: center;
  font-size: 13px;
  white-space: nowrap;
}

.section-filter-row {
  display: grid;
  grid-template-columns: minmax(100px, 120px) minmax(210px, 1fr) minmax(170px, 1fr) minmax(170px, 190px);
  gap: 10px;
  width: min(100%, 880px);
}

.metric-toolbar .section-filter-row {
  grid-template-columns: minmax(86px, 110px) minmax(185px, 1fr) minmax(150px, 1fr) minmax(150px, 180px) minmax(120px, 140px) minmax(70px, 82px);
  width: min(100%, 1120px);
}

.mini-icon-btn {
  height: 40px;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--text);
  background: var(--panel-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.mini-icon-btn:hover,
.mini-icon-btn:focus-visible {
  background: var(--panel-3);
  outline: none;
}

.metric-value {
  margin-top: 20px;
  font-size: 68px;
  line-height: 1;
  font-weight: 650;
  color: var(--value);
}

.grid-4 .card {
  min-height: 270px;
  padding: 16px 22px 20px;
}

.grid-4 .card-title {
  margin-bottom: 10px;
}

.grid-4 .metric-value {
  margin-top: 10px;
  font-size: 44px;
}

.grid-4 .okr-delta {
  margin-top: 8px;
}

.chart-card { padding: 20px 22px; }

#call-rate .chart-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 34, 52, 0.42), transparent 42%),
    #050a13;
}

#call-rate .chart-card .section-title,
#call-rate .chart-card .chart-subtitle {
  color: #ffffff;
}

#call-rate .cr-average-card {
  background:
    radial-gradient(circle at 35% 0%, rgba(22, 34, 52, 0.34), transparent 44%),
    #050a13;
}

#call-rate .cr-average-card .card-sub::after {
  content: "";
  display: block;
  width: 76px;
  height: 2px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(229, 185, 78, 0.88);
}

#sla .sla-chart-card,
#sla .sla-breakdown-card,
#reincidencia .reinc-chart-card,
#call-rate .table-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 34, 52, 0.42), transparent 42%),
    #050a13;
}

#sla .sla-chart-card .section-title,
#sla .sla-chart-card .chart-subtitle,
#sla .sla-breakdown-card .section-title,
#sla .sla-breakdown-card .chart-subtitle,
#reincidencia .reinc-chart-card .section-title,
#reincidencia .reinc-chart-card .chart-subtitle {
  color: #ffffff;
}

#sla .sla-average-card,
#reincidencia .reinc-average-card {
  background:
    radial-gradient(circle at 35% 0%, rgba(22, 34, 52, 0.34), transparent 44%),
    #050a13;
}

#sla .sla-average-card .card-sub::after,
#reincidencia .reinc-average-card .card-sub::after {
  content: "";
  display: block;
  width: 76px;
  height: 2px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(229, 185, 78, 0.88);
}

#sla .sla-average-card .card-sub::after {
  display: none;
}

.chart-header {
  min-height: 42px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  min-width: 0;
}

.chart-subtitle {
  min-height: 18px;
  color: var(--text-faint);
  font-size: 13px;
}

.drill-chip {
  min-height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text);
  background: var(--panel-3);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.drill-chip-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.drill-chip:hover {
  background: #2b3542;
}

.chart-wrap {
  position: relative;
  height: 280px;
}

.chart-wrap canvas {
  cursor: pointer;
}

.table-card {
  padding: 20px 22px;
  margin-top: 18px;
  overflow: hidden;
}

.table-scroll { overflow-x: auto; }

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

thead th {
  text-align: left;
  padding: 14px 12px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.045);
  font-size: 14px;
}

tbody tr:hover { background: rgba(255,255,255,0.025); }

#call-rate .table-card tbody tr.detail-alt-0 {
  background: transparent;
}

#call-rate .table-card tbody tr.detail-alt-1 {
  background: #01050a;
}

#call-rate .table-card tbody tr.detail-alt-0:hover,
#call-rate .table-card tbody tr.detail-alt-1:hover {
  background: rgba(255, 255, 255, 0.035);
}

.right { text-align: right; }
.muted { color: var(--text-soft); }

.loading {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 1120px) {
  .grid-4,
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero-grid,
  .metrics-grid { grid-template-columns: 1fr; }

  .sla-insight-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "trend"
      "breakdown";
  }

  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sla-toolbar,
  .reinc-toolbar,
  .metric-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sla-toolbar {
    display: flex;
  }

  .section-filter-row {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root { --sidebar-w: 72px; }

  .sidebar { padding: 14px 10px; }

  .load-more-trigger {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .sidebar-logo,
  .nav-item,
  .load-more-trigger {
    width: 46px;
    height: 46px;
  }

  .sidebar-logo::before {
    width: 46px;
    height: 46px;
  }

  .topbar { padding: 0 16px; }
  .content { padding: 18px 14px; }
  .visitas-content { padding-top: 12px; }

  .section-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .section-nav-link {
    min-width: 132px;
  }

  .filters,
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }

  .tabs.cr-tabs,
  .tabs.detail-tabs,
  .tabs.sla-tabs,
  .tabs.reinc-tabs {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .section-filter-row { grid-template-columns: 1fr; }
  .visitas-filters { grid-template-columns: 1fr; }

  .tab-slider { display: none; }

  .tab.active {
    background: #282f38;
  }

  .metric-value { font-size: 52px; }
}

.nav-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  transition: width var(--transition), height var(--transition), transform var(--transition);
}

.nav-item.active .nav-img {
  width: 40px;
  height: 40px;
  transform: translateY(-1px);
}

.nav-consultasbase .nav-img {
  width: 30px;
  height: 30px;
  transform: translateX(2px);
}

.nav-consultasbase.active .nav-img {
  width: 58px;
  height: 58px;
  transform: translate(2px, -1px);
}

.load-more {
  position: relative;
  width: 100%;
  margin-top: auto;
}

.load-more-trigger {
  width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: rgba(31, 42, 56, 0.72);
  cursor: pointer;
  font-weight: 650;
  margin: 0 auto;
  box-shadow: inset 0 0 0 1px rgba(132, 154, 181, 0.08);
}

.load-more:hover .load-more-trigger,
.load-more.is-open .load-more-trigger,
.load-more-trigger:focus-visible {
  background: rgba(42, 54, 70, 0.9);
  outline: none;
}

.hamburger-lines {
  display: grid;
  gap: 3px;
}

.hamburger-lines span {
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.load-menu-panel {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 0;
  width: 205px;
  padding: 7px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #202429;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
  transition: opacity var(--transition) 0.4s, transform var(--transition) 0.4s;
}

.load-menu-panel::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  width: 18px;
  height: 100%;
}

.load-more:hover .load-menu-panel,
.load-more.is-open .load-menu-panel,
.load-more:focus-within .load-menu-panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.load-menu-item {
  position: relative;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  color: #dce1e8;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0;
  text-align: left;
}

.load-menu-item:hover,
.load-menu-item:focus-visible {
  background: rgba(84, 104, 130, 0.14);
  outline: none;
}

.load-menu-panel > .load-menu-item {
  border-bottom: 1px solid rgba(132, 154, 181, 0.22);
  border-radius: 0;
}

.load-menu-panel > .load-menu-item:hover,
.load-menu-panel > .load-menu-item:focus-visible {
  border-radius: 6px;
}

.load-menu-item:disabled {
  cursor: default;
  color: var(--text-faint);
  opacity: 0.58;
}

.load-menu-item:disabled:hover {
  background: transparent;
}

.load-menu-management.is-hidden {
  display: none;
}

.load-menu-logoff {
  margin-top: 3px;
  color: #ffb3b3;
}

.load-menu-shutdown {
  border-bottom: 0 !important;
  color: #ffd4a3;
}

.load-submenu {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 0;
  width: 190px;
  padding: 7px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #24282e;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.load-submenu .load-menu-item + .load-menu-item {
  border-top: 1px solid rgba(132, 154, 181, 0.18);
}

.load-submenu::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  width: 18px;
  height: 100%;
}

.load-menu-parent:hover .load-submenu,
.load-menu-parent:focus-within .load-submenu {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.load-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 9, 12, 0.56);
  backdrop-filter: blur(4px);
}

.load-progress-overlay[hidden] {
  display: none;
}

.load-progress-modal {
  width: min(760px, 100%);
  min-height: 390px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: #171a20;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  overflow: hidden;
  font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #9ca3af;
  letter-spacing: -0.1px;
}

.load-workflow-modal {
  display: grid;
  grid-template-columns: 245px 1fr;
}

.load-workflow-modal.is-simple {
  display: block;
}

.load-workflow-modal.is-simple .load-step-sidebar {
  display: none;
}

.load-workflow-modal.is-routes {
  width: min(620px, 100%);
  min-height: 360px;
}

.load-workflow-modal.is-routes .load-workflow-main {
  font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #9ca3af;
  letter-spacing: -0.1px;
}

.load-step-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px;
  background: #11161d;
  border-right: 1px solid rgba(132, 154, 181, 0.16);
}

.load-step-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.load-step-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 9px;
  border-radius: 8px;
  color: #9ca3af;
  overflow: hidden;
}

.load-step-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(229, 185, 78, 0.24);
}

.load-step-item::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22px;
  opacity: 0;
  background: linear-gradient(0deg, rgba(229, 185, 78, 0.22), rgba(229, 185, 78, 0));
}

.load-step-item.is-active {
  color: #f3f4f6;
}

.load-step-item.is-active::before {
  opacity: 1;
}

.load-step-item span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.28);
  font-size: 11px;
}

.load-step-item strong {
  min-width: 0;
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0;
}

.load-step-item em {
  color: #6fd19b;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.load-step-item em img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: cover;
  border-radius: 999px;
  filter: drop-shadow(0 0 8px rgba(0, 224, 132, 0.34));
}

.load-step-item.is-done span {
  color: #07100b;
  background: #6fd19b;
  border-color: #6fd19b;
}

.load-step-item.is-error span {
  color: #1b0909;
  background: #ff9b9b;
  border-color: #ff9b9b;
}

.load-cancel-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(180deg, #4b91f7 0%, #367af6 100%);
  background-origin: border-box;
  box-shadow:
    0 0.5px 1.5px rgba(54, 122, 246, 0.25),
    inset 0 0.8px 0 -0.25px rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 650;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.load-cancel-button:focus {
  outline: 0;
  box-shadow:
    inset 0 0.8px 0 -0.25px rgba(255, 255, 255, 0.2),
    0 0.5px 1.5px rgba(54, 122, 246, 0.25),
    0 0 0 3.5px rgba(58, 108, 217, 0.5);
}

.load-cancel-button:disabled {
  cursor: default;
  filter: grayscale(0.45);
  opacity: 0.45;
}

.load-workflow-main {
  padding: 24px;
  text-align: center;
}

.load-progress-title {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.load-progress-percent {
  margin-top: 16px;
  color: var(--text);
  font-size: 44px;
  line-height: 1;
  font-weight: 420;
}

.load-progress-track {
  height: 7px;
  margin-top: 20px;
  border-radius: 999px;
  border: 0;
  background: #3e4754;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.load-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 18px, rgba(255, 255, 255, 0) 18px 38px),
    linear-gradient(90deg, rgba(42, 169, 244, 0.95), rgba(37, 144, 220, 0.88));
  transition: width 260ms ease;
}

.load-progress-message {
  display: none;
}

.load-upload-zone {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed rgba(229, 185, 78, 0.46);
  border-radius: 12px;
  background: rgba(229, 185, 78, 0.035);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.load-upload-zone[hidden] {
  display: none;
}

.load-upload-zone.is-dragover {
  border-color: #e5b94e;
  background: rgba(229, 185, 78, 0.09);
}

.load-upload-zone.is-uploading {
  pointer-events: none;
  opacity: 0.72;
}

.load-route-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(132, 154, 181, 0.22);
  border-radius: 12px;
  background: rgba(9, 13, 18, 0.28);
}

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

.load-route-panel.is-processing {
  opacity: 0.62;
  pointer-events: none;
}

.load-route-pending {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 300;
}

.load-route-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.load-route-options button,
.load-action-button {
  min-height: 34px;
  border: 1px solid rgba(132, 154, 181, 0.24);
  border-radius: 7px;
  background: #6e6d70;
  box-shadow:
    0 0.5px 1px rgba(0, 0, 0, 0.1),
    inset 0 0.5px 0.5px rgba(255, 255, 255, 0.5),
    0 0 0 0.5px rgba(0, 0, 0, 0.12);
  color: #dfdedf;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 650;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.load-route-options button:hover,
.load-route-options button:focus-visible,
.load-route-options button.is-selected,
.load-action-button:hover,
.load-action-button:focus-visible,
.load-action-button.is-primary {
  color: #fff;
  background: linear-gradient(180deg, #4b91f7 0%, #367af6 100%);
  background-origin: border-box;
  box-shadow:
    0 0.5px 1.5px rgba(54, 122, 246, 0.25),
    inset 0 0.8px 0 -0.25px rgba(255, 255, 255, 0.2);
  outline: 0;
}

.load-action-button:disabled {
  cursor: default;
  filter: grayscale(0.45);
  opacity: 0.48;
}

.load-route-error {
  min-height: 18px;
  color: #ff9b9b;
  font-size: 12px;
}

.load-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.load-modal-actions[hidden] {
  display: none;
}

.load-action-button {
  min-width: 104px;
  padding: 6px 14px;
}

.load-upload-copy {
  display: grid;
  gap: 4px;
}

.load-upload-copy strong {
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 520;
}

.load-upload-copy span,
.load-selected-file {
  color: #9ca3af;
  font-size: 12px;
}

.load-selected-file {
  margin-top: 10px;
}

.load-start-button {
  height: 34px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid rgba(229, 185, 78, 0.62);
  border-radius: 8px;
  background: rgba(229, 185, 78, 0.12);
  color: #f3f4f6;
  cursor: pointer;
  font-size: 12px;
  font-weight: 520;
}

.load-start-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.load-progress-log {
  max-height: 92px;
  margin-top: 16px;
  overflow: auto;
  border-top: 1px solid rgba(132, 154, 181, 0.16);
  padding-top: 10px;
  text-align: left;
}

.load-log-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  min-height: 20px;
  color: #aeb6c2;
  font-size: 12px;
}

.load-log-row span {
  color: #6f7a88;
}

.load-log-row strong {
  font-weight: 300;
}

.visitas-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 9, 12, 0.52);
  backdrop-filter: blur(5px);
}

.visitas-review-overlay[hidden] {
  display: none;
}

.visitas-review-modal {
  width: min(430px, 100%);
  padding: 22px;
  border: 1px solid rgba(132, 154, 181, 0.22);
  border-radius: 10px;
  background: #22252c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  color: #9ca3af;
  font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: -0.1px;
}

.visitas-review-modal h3 {
  margin: 0 0 8px;
  color: #f3f4f6;
  font-size: 15px;
  font-weight: 650;
}

.visitas-review-modal p {
  margin: 0;
  line-height: 1.45;
}

.visitas-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.visitas-review-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 74px;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: #6e6d70;
  box-shadow:
    0 0.5px 1px rgba(0, 0, 0, 0.1),
    inset 0 0.5px 0.5px rgba(255, 255, 255, 0.5),
    0 0 0 0.5px rgba(0, 0, 0, 0.12);
  color: #dfdedf;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 650;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.visitas-review-button:hover {
  color: #fff;
  background: linear-gradient(180deg, #4b91f7 0%, #367af6 100%);
  background-origin: border-box;
  box-shadow:
    0 0.5px 1.5px rgba(54, 122, 246, 0.25),
    inset 0 0.8px 0 -0.25px rgba(255, 255, 255, 0.2);
}

.visitas-review-button:focus {
  outline: 0;
  box-shadow:
    inset 0 0.8px 0 -0.25px rgba(255, 255, 255, 0.2),
    0 0.5px 1px rgba(0, 0, 0, 0.1),
    0 0 0 3.5px rgba(58, 108, 217, 0.5);
}

.shutdown-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--text);
  background: var(--bg);
  text-align: center;
}

.shutdown-screen h1,
.shutdown-screen p {
  margin: 0;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
}

.auth-card {
  width: min(420px, 100%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #171a20;
  padding: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.auth-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.auth-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.auth-card h1 {
  margin: 18px 0 6px;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #f3f4f6;
}

.auth-card p {
  margin: 0;
  font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #9ca3af;
  letter-spacing: -0.1px;
}

.auth-error {
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(225, 107, 107, .5);
  border-radius: 8px;
  color: #ffb3b3;
  background: rgba(225, 107, 107, .08);
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.auth-button {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
}

.auth-microsoft-button {
  grid-auto-flow: column;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid #5c5c5c;
  border-radius: 3px;
  background: #2f2f2f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .28);
  color: #fff;
}

.auth-microsoft-button:hover,
.auth-microsoft-button:focus-visible {
  background: #3a3a3a;
  outline: none;
}

.auth-microsoft-mark {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(2, 10px);
  gap: 2px;
}

.auth-microsoft-mark i:nth-child(1) { background: #f25022; }
.auth-microsoft-mark i:nth-child(2) { background: #7fba00; }
.auth-microsoft-mark i:nth-child(3) { background: #00a4ef; }
.auth-microsoft-mark i:nth-child(4) { background: #ffb900; }

.auth-button-secondary {
  background: #24282e;
  border: 1px solid rgba(132, 154, 181, .24);
}

.auth-google-button {
  grid-auto-flow: column;
  justify-content: center;
  gap: 14px;
  border: 1px solid #a7a7a7;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: none;
  color: #303134;
  font-family: "Google Sans", "Product Sans", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  min-height: 44px;
}

.auth-google-button:hover,
.auth-google-button:focus-visible {
  background: #f8fafd;
  border-color: #8f8f8f;
  outline: none;
}

.auth-google-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.auth-google-mark svg {
  display: block;
}

.atom-loading-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
}

.atom-loading-card {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.atom-draw-logo {
  width: min(320px, 78vw);
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .45);
}

.atom-letter {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .28));
}

.atom-loading-card p {
  margin: 0;
  color: #9ca3af;
  font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: -0.1px;
}

.atom-loading-fallback .atom-letter {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: atomFallbackDraw 1.4s ease forwards;
}

.atom-loading-fallback .atom-letter:nth-child(2) { animation-delay: .12s; }
.atom-loading-fallback .atom-letter:nth-child(3) { animation-delay: .24s; }
.atom-loading-fallback .atom-letter:nth-child(4) { animation-delay: .36s; }

@keyframes atomFallbackDraw {
  to { stroke-dashoffset: 0; }
}

.settings-overlay,
.settings-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(3px);
}

.settings-overlay[hidden],
.settings-edit-overlay[hidden] {
  display: none;
}

.settings-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow-y: auto;
  border: 1px solid rgba(132, 154, 181, .22);
  border-radius: 12px;
  background: #24231f;
  color: #e7e5df;
  padding: 28px 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.settings-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #cfcac0;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.settings-close:hover,
.settings-close:focus-visible {
  background: rgba(255, 255, 255, .06);
  outline: none;
}

.settings-head h2,
.settings-section h3,
.settings-edit-modal h3 {
  margin: 0;
  font-weight: 650;
}

.settings-head p,
.settings-note,
.settings-edit-modal p {
  margin: 6px 0 0;
  color: #b9b5ad;
  font-size: 13px;
}

.settings-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.settings-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 132px 34px 34px;
  align-items: center;
  gap: 8px;
}

.settings-row-new {
  grid-template-columns: minmax(240px, 1fr) 132px 34px;
}

.settings-display,
.settings-role-display,
.settings-edit-modal input,
.settings-edit-modal select {
  height: 34px;
  border: 1px solid rgba(100, 96, 88, .85);
  border-radius: 7px;
  background: #1f1e1a;
  color: #ece9e2;
  padding: 0 11px;
  outline: none;
  font-size: 13px;
}

.settings-display,
.settings-role-display {
  display: flex;
  align-items: center;
}

.settings-display.muted,
.settings-role-display.muted {
  color: #89857d;
}

.settings-edit-modal input:focus,
.settings-edit-modal select:focus {
  border-color: #6fd19b;
  box-shadow: 0 0 0 1px rgba(111, 209, 155, .28);
}

.settings-icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(100, 96, 88, .85);
  border-radius: 7px;
  background: #2e2c27;
  color: #ece9e2;
  cursor: pointer;
  font-weight: 800;
}

.settings-icon-button:hover,
.settings-icon-button:focus-visible {
  border-color: #6fd19b;
  box-shadow: 0 0 0 1px rgba(111, 209, 155, .2);
  outline: none;
}

.logs-modal {
  width: min(940px, 100%);
}

.logs-list {
  margin-top: 18px;
}

.logs-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(100, 96, 88, .65);
  border-radius: 8px;
}

.logs-row {
  display: grid;
  grid-template-columns: 116px 132px minmax(160px, 1.2fr) minmax(160px, 1.2fr) 88px;
  align-items: center;
  min-height: 34px;
  gap: 10px;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: #d9d5cc;
  font-size: 12px;
}

.logs-row:first-child {
  border-top: 0;
}

.logs-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logs-head {
  color: #f1eee7;
  background: rgba(255, 255, 255, .04);
  font-weight: 650;
}

.settings-icon-button.danger {
  color: #ffb3b3;
}

.settings-loading,
.settings-error {
  color: #b9b5ad;
  font-size: 13px;
}

.settings-error {
  color: #ffb3b3;
}

.settings-edit-modal,
.settings-delete-modal {
  position: relative;
  width: min(480px, 100%);
  border: 1px solid rgba(132, 154, 181, .22);
  border-radius: 12px;
  background: #24231f;
  color: #e7e5df;
  padding: 28px 26px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.settings-edit-modal label {
  display: block;
  margin: 18px 0 7px;
  color: #e7e5df;
  font-size: 13px;
  font-weight: 650;
}

.settings-edit-modal input,
.settings-edit-modal select {
  width: 100%;
}

.settings-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.settings-edit-actions button {
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: #302e29;
  color: #ece9e2;
  cursor: pointer;
  font-weight: 700;
}

.settings-edit-actions button:last-child {
  background: #5865f2;
  color: #fff;
}

.settings-edit-actions button.danger {
  background: #8f3e46;
  color: #fff;
}

.settings-delete-email {
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid rgba(100, 96, 88, .85);
  border-radius: 7px;
  background: #1f1e1a;
  color: #ece9e2;
  font-size: 13px;
}

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

.table-header p {
  margin: 0;
}

.visitas-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.visitas-summary-card {
  padding: 18px 20px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.visitas-summary-card span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.visitas-summary-card strong {
  color: var(--value);
  font-size: 42px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

.visitas-summary-card strong.compact-value {
  font-size: 34px;
}

.visitas-table-card {
  margin-top: 10px;
  padding-top: 14px;
}

.visitas-table {
  min-width: 980px;
}

.visitas-table th,
.visitas-table td {
  vertical-align: middle;
}

.visitas-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
}

.visitas-table thead th:first-child,
.visitas-sticky-head {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 8;
  background: var(--surface);
}

.visitas-table th.is-weekend,
.visitas-table td.is-weekend {
  background: rgba(190, 72, 72, 0.12);
  border-left: 1px solid rgba(220, 98, 98, 0.22);
  border-right: 1px solid rgba(220, 98, 98, 0.22);
}

.visitas-table th.is-holiday,
.visitas-table td.is-holiday {
  background: rgba(224, 151, 63, 0.16);
  border-left: 1px solid rgba(236, 171, 83, 0.28);
  border-right: 1px solid rgba(236, 171, 83, 0.28);
}

.visitas-table th:not(:first-child),
.visitas-table td:not(:first-child) {
  text-align: center;
}

.visitas-tech {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  white-space: nowrap;
}

.visitas-filters {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(220px, 360px) minmax(150px, 210px);
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}

.visitas-sort {
  border: 0;
  padding: 0 12px;
  width: 100%;
  min-height: 44px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-align: inherit;
}

.visitas-sort-head {
  padding: 0;
  cursor: pointer;
}

.visitas-sort-head:hover .visitas-sort {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.visitas-sort:hover,
.visitas-sort:focus-visible {
  color: var(--text);
  outline: none;
}

.visitas-day-pill {
  width: 100%;
  min-width: 92px;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(36, 44, 56, 0.82);
  color: var(--text);
  display: grid;
  gap: 2px;
  place-items: center;
  cursor: help;
}

.visitas-day-pill strong {
  font-size: 18px;
  line-height: 1;
}

.visitas-day-pill span,
.visitas-day-pill em {
  color: var(--text-soft);
  font-size: 11px;
  font-style: normal;
}

.visitas-day-pill em {
  color: var(--accent-2);
}

.visitas-empty {
  color: var(--text-faint);
}

.visitas-total {
  color: var(--value);
  font-weight: 750;
}

.visitas-total strong,
.visitas-total span {
  display: block;
}

.visitas-total span {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.visitas-empty-state {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--text-soft);
}

.visitas-empty-state strong {
  color: var(--text);
}

.visitas-sticky-scroll {
  position: fixed;
  bottom: 0;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 80;
  background: rgba(11, 15, 21, 0.92);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.22);
}

.visitas-sticky-scroll[hidden] {
  display: none;
}

.visitas-sticky-scroll-inner {
  height: 1px;
}

.visitas-sticky-header {
  position: fixed;
  top: 0;
  overflow: hidden;
  z-index: 95;
  background: rgba(17, 23, 32, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.visitas-sticky-header[hidden] {
  display: none;
}

.visitas-sticky-header-inner {
  will-change: transform;
}

.visitas-sticky-header .visitas-table {
  margin: 0;
}

.visitas-sticky-header .visitas-table thead th {
  top: auto;
}

.nav-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  transition: width var(--transition), height var(--transition), transform var(--transition);
}

.nav-item .img-active {
  display: none;
}

.nav-item.active .img-default {
  display: none;
}

.nav-item.active .img-active {
  display: block;
}

.nav-item.active .nav-img {
  width: 40px;
  height: 40px;
  transform: translateY(-1px);
}

.nav-item.nav-consultasbase.active .nav-img {
  width: 58px;
  height: 58px;
  transform: translate(2px, -1px);
}

.mapa-nav .nav-img {
  width: 28px;
  height: 28px;
  transform: translate(1px, 0);
}

.mapa-nav.active .nav-img {
  width: 40px;
  height: 40px;
  transform: translateY(-1px);
}

.okr-delta {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 650;
}

.okr-delta.ok {
  color: var(--ok);
}

.okr-delta.bad {
  color: var(--danger);
}

.okr-sparkline {
  display: flex;
  align-items: end;
  gap: 6px;
  margin-top: 16px;
  min-height: 30px;
}

.okr-dot {
  width: 18px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.okr-dot.ok {
  background: linear-gradient(180deg, #8ff0b5, #42b978);
  box-shadow: 0 0 14px rgba(111, 209, 155, 0.28);
}

.okr-dot.bad {
  background: linear-gradient(180deg, #ff9a9a, #e16b6b);
  box-shadow: 0 0 14px rgba(225, 107, 107, 0.28);
}

.okr-mini-chart-wrap {
  margin-top: 10px;
  height: 112px;
  width: 100%;
}

.sla-home-card,
.reinc-home-card {
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.sla-home-card:hover,
.sla-home-card:focus-visible,
.reinc-home-card:hover,
.reinc-home-card:focus-visible {
  border-color: var(--border-strong);
  outline: none;
  transform: translateY(-1px);
}

.pedidos-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.pedidos-search-card {
  display: grid;
  grid-template-columns: minmax(250px, max-content) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(92, 116, 145, 0.42);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 7px;
}

.pedidos-title-soft {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.pedidos-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.pedidos-view-tabs,
.base-business-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(132, 154, 181, 0.24);
  border-radius: 8px;
  background: rgba(12, 20, 31, 0.78);
}

.base-business-tabs {
  margin-right: 6px;
}

.pedidos-view-tab,
.base-business-tab {
  min-height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0 11px;
}

.pedidos-view-tab.active,
.base-business-tab.active {
  background: rgba(94, 196, 255, 0.16);
  color: var(--text);
}

.pedidos-search-form {
  display: grid;
  grid-template-columns: minmax(112px, 138px) minmax(110px, 190px) minmax(170px, 250px) minmax(120px, 180px) auto;
  gap: 10px;
  align-items: center;
  justify-content: end;
  min-width: 0;
  max-width: 100%;
}

.pedidos-search-form.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.pedidos-search-form .field {
  display: grid;
  gap: 8px;
  position: relative;
}

.pedidos-search-form label {
  color: #b7c4d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.pedidos-search-form input {
  width: 100%;
  min-height: 26px;
  border: 1px solid #4e5272;
  border-radius: 7px;
  background:
    #171827
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23aeb8d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E")
    calc(100% - 9px) center / 15px 15px no-repeat;
  color: #d2d6df !important;
  -webkit-text-fill-color: #d2d6df;
  color-scheme: dark;
  padding: 0 30px 0 10px;
  outline: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0;
}

.pedidos-search-form input::placeholder,
.pedidos-inline-filters input::placeholder {
  color: #aeb3bf;
  opacity: 1;
  font-weight: 300;
}

.pedidos-search-form .btn {
  min-height: 24px;
  padding: 3px 11px;
  border-radius: 8px;
  font-size: 13px;
}

.pedidos-search-form input:focus {
  border-color: #6b70a0;
  box-shadow: 0 0 0 1px rgba(107, 112, 160, 0.18);
}

.pedidos-search-form input:-webkit-autofill,
.pedidos-search-form input:-webkit-autofill:hover,
.pedidos-search-form input:-webkit-autofill:focus,
.pedidos-inline-filters input:-webkit-autofill,
.pedidos-inline-filters input:-webkit-autofill:hover,
.pedidos-inline-filters input:-webkit-autofill:focus {
  border-color: #4e5272;
  background-color: #171827 !important;
  color: #d2d6df !important;
  -webkit-text-fill-color: #d2d6df !important;
  caret-color: #d2d6df;
  box-shadow: 0 0 0 1000px #171827 inset !important;
  transition: background-color 9999s ease-out;
}

.pedidos-search-form input::selection,
.pedidos-inline-filters input::selection {
  background: rgba(107, 112, 160, 0.5);
  color: #f1f3f7;
}

.pedidos-results-card {
  min-height: 420px;
  min-width: 0;
  background: #01050a;
}

.pedidos-results-header {
  align-items: end;
  gap: 18px;
  min-width: 0;
}

.pedidos-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: #aeb3bf;
  font-size: 12px;
  white-space: nowrap;
}

.pedidos-pagination[hidden] {
  display: none;
}

.pedidos-pagination button {
  min-height: 26px;
  border: 1px solid #4e5272;
  border-radius: 7px;
  background: #171827;
  color: #d2d6df !important;
  -webkit-text-fill-color: #d2d6df;
  color-scheme: dark;
  cursor: pointer;
  font-size: 12px;
  font-weight: 300;
  padding: 0 10px;
}

.pedidos-pagination button:disabled {
  cursor: default;
  opacity: 0.42;
}

.pedidos-export-button {
  justify-self: end;
  min-height: 28px;
  border: 1px solid #4e5272;
  border-radius: 7px;
  background: #171827;
  color: #d2d6df !important;
  -webkit-text-fill-color: #d2d6df;
  color-scheme: dark;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 0 14px;
  white-space: nowrap;
}

.pedidos-export-button:hover,
.pedidos-export-button:focus-visible {
  border-color: #6e759f;
  background: #1d2031;
}

.mapa-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px 24px 24px;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

.mapa-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #000;
}

.mapa-toolbar h1 {
  margin: 0;
  color: #f1f5fb;
  font-size: 18px;
  white-space: nowrap;
}

.mapa-toolbar h1 span {
  color: #dbe7f4;
  font-weight: 500;
}

.mapa-toolbar p {
  margin: 4px 0 0;
  color: #aeb9c8;
  font-size: 12px;
}

.mapa-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: none;
}

.mapa-actions label {
  display: grid;
  gap: 4px;
  color: #aeb9c8;
  font-size: 11px;
  min-width: 112px;
}

.mapa-actions select,
.mapa-actions input {
  height: 30px;
  border: 1px solid #4e5272;
  border-radius: 7px;
  background: #171827;
  color: #d2d6df;
  font-size: 12px;
  padding: 0 9px;
  max-width: 190px;
}

.mapa-actions input {
  width: 82px;
}

.mapa-actions label:nth-child(2) {
  min-width: 184px;
}

.mapa-actions label:nth-child(5) {
  min-width: 86px;
}

.mapa-actions button {
  min-height: 30px;
  border: 1px solid #4e5272;
  border-radius: 7px;
  background: #171827;
  color: #d2d6df;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 0 12px;
  white-space: nowrap;
}

.mapa-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  padding: 14px;
  min-height: 0;
  background: #000;
  overflow: hidden;
}

.mapa-canvas {
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(82, 102, 128, .5);
  border-radius: 8px;
  overflow: hidden;
  background: #05080c;
}

.mapa-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.mapa-kpis {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(82, 102, 128, .5);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

.mapa-kpi-row,
.mapa-breakdown-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.mapa-kpi-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mapa-kpis strong {
  color: #dbe7f4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.mapa-breakdown {
  display: grid;
  gap: 5px;
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px solid rgba(82, 102, 128, .45);
}

.mapa-breakdown-title {
  color: #9ca8b7;
  font-size: 11px;
}

.mapa-breakdown-rows {
  display: grid;
  gap: 3px;
}

.mapa-breakdown-row span {
  min-width: 0;
  color: #cfd8e3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mapa-breakdown-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  transition: opacity .16s ease, color .16s ease;
}

.mapa-breakdown-row i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  box-shadow: 0 0 8px currentColor;
}

.mapa-breakdown-row.is-active span,
.mapa-breakdown-row.is-active strong {
  color: #ffffff;
}

.mapa-breakdown-row.is-active i {
  outline: 1px solid rgba(255, 255, 255, .82);
  outline-offset: 2px;
}

.mapa-breakdown-row.is-muted {
  opacity: .34;
}

.mapa-breakdown-row em,
.mapa-breakdown-empty {
  color: #8390a1;
  font-size: 11px;
  font-style: normal;
}

.mapa-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.mapa-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid rgba(82, 102, 128, .35);
  border-radius: 7px;
  background: #080d13;
  color: #dbe7f4;
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
}

.mapa-list button span {
  color: #9ca8b7;
  font-size: 11px;
}

.mapa-list button.is-muted {
  opacity: .55;
}

.mapa-info {
  color: #141820;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  min-width: 230px;
}

.mapa-info strong {
  display: block;
  margin-bottom: 6px;
  color: #05070a;
  font-size: 14px;
}

.mapa-info p {
  margin: 8px 0;
  color: #333b47;
}

.mapa-info ul {
  margin: 6px 0;
  padding-left: 18px;
  color: #242a33;
}

.pedidos-inline-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(105px, 150px));
  gap: 8px;
  width: 100%;
  min-width: 0;
  justify-content: end;
}

.pedidos-filter-field {
  position: relative;
  min-width: 0;
}

.pedidos-inline-filters input {
  width: 100%;
  min-height: 26px;
  border: 1px solid #4e5272;
  border-radius: 7px;
  background: #171827;
  color: #d2d6df;
  padding: 0 30px 0 10px;
  outline: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0;
}

.pedidos-filter-search {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 29px;
  height: 24px;
  border: 0;
  border-left: 1px solid rgba(78, 82, 114, 0.46);
  border-radius: 0 6px 6px 0;
  background:
    transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23aeb3bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E")
    center / 15px 15px no-repeat;
  cursor: pointer;
  opacity: 0.9;
}

.pedidos-filter-search:hover,
.pedidos-filter-search:focus-visible {
  background-color: rgba(107, 112, 160, 0.15);
  outline: none;
  opacity: 1;
}

.pedidos-inline-filters input:focus {
  border-color: #6b70a0;
  box-shadow: 0 0 0 1px rgba(107, 112, 160, 0.18);
}

.pedidos-results-card .table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}

.pedidos-table {
  width: 100%;
  min-width: 2450px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 12px;
}

.pedidos-table th,
.pedidos-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: middle;
}

.pedidos-table td {
  color: #dce1e8;
  font-size: 12px;
  font-weight: 300;
  white-space: nowrap;
}

.pedidos-table td:last-child {
  min-width: 360px;
  white-space: normal;
}

.pedidos-table th {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #01050a;
  border-top: 1px solid rgba(78, 82, 114, 0.48);
  border-bottom: 1px solid rgba(78, 82, 114, 0.6);
  color: #d2d6df;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  line-height: 1;
}

.pedidos-sort-head {
  padding: 0;
}

.pedidos-sort-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: center;
  text-transform: inherit;
  line-height: 1;
  padding: 0;
}

.pedidos-sort-button:hover,
.pedidos-sort-button:focus-visible {
  color: var(--text);
  outline: none;
}

.pedidos-table th:first-child,
.pedidos-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 7;
  background: #01050a;
}

.pedidos-table th:first-child {
  z-index: 10;
  background: #01050a;
}

.pedidos-table tbody tr:nth-child(even) {
  background: rgba(84, 104, 130, 0.08);
}

.pedidos-table tbody tr:nth-child(even) td:first-child {
  background: #07101b;
}

.pedidos-table tbody tr:hover {
  background: rgba(229, 185, 78, 0.055);
}

.pedidos-row-detail {
  margin-top: 5px;
  max-width: 280px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.35;
}

.pedidos-multiline {
  min-width: 220px;
  white-space: normal;
}

.pedidos-multiline-item {
  line-height: 1.35;
  white-space: nowrap;
}

.pedidos-multiline-item + .pedidos-multiline-item {
  margin-top: 2px;
}

.pedidos-sticky-scroll {
  position: fixed;
  bottom: 0;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 82;
  background: rgba(1, 5, 10, 0.94);
  border-top: 1px solid rgba(132, 154, 181, 0.24);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.24);
}

.pedidos-sticky-scroll[hidden] {
  display: none;
}

.pedidos-sticky-scroll-inner {
  height: 1px;
}

.pedidos-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
}

.pedidos-view {
  display: none;
  min-width: 0;
}

.pedidos-view.active {
  display: block;
}

.base-dashboard {
  display: grid;
  grid-template-columns: max-content minmax(280px, 1fr);
  grid-template-rows: minmax(300px, auto) minmax(360px, 1fr);
  gap: 16px;
  min-height: calc(100vh - 150px);
  min-width: 0;
}

.base-chart-card,
.base-side-card,
.base-table-card {
  background: #01050a;
  min-width: 0;
}

.base-chart-card {
  background: #000000 !important;
  width: max-content;
  max-width: 100%;
  padding: 18px 22px 22px 22px;
}

.base-card-head,
.base-table-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.base-period-picker {
  position: relative;
  margin-left: auto;
  margin-right: 12px;
}

.base-period-button {
  min-height: 30px;
  border: 1px solid rgba(99, 200, 87, 0.76);
  border-radius: 7px;
  background: rgba(8, 13, 12, 0.72);
  color: #dce1e8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 0 12px;
  box-shadow: 0 0 13px rgba(99, 200, 87, 0.12);
}

.base-period-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 15;
  width: 330px;
  max-height: 430px;
  overflow-y: auto;
  border: 1px solid rgba(132, 154, 181, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 24%, rgba(99, 200, 87, 0.08), transparent 34%),
    #202223;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.46);
  padding: 18px;
}

.base-period-menu[hidden] {
  display: none;
}

.base-period-year + .base-period-year {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.base-period-year strong {
  display: block;
  margin-bottom: 14px;
  color: #f1f3f7;
  font-size: 13px;
}

.base-period-months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.base-period-months button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #f1f3f7;
  cursor: pointer;
  font-size: 13px;
}

.base-period-months button.active {
  border-color: #63c857;
  box-shadow: 0 0 14px rgba(99, 200, 87, 0.22);
  color: #ffffff;
}

.base-period-months button:disabled {
  cursor: default;
  color: rgba(241, 243, 247, 0.34);
}

.base-card-head h2,
.base-side-card h2,
.base-table-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0;
}

.base-card-head p,
.base-table-head p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.base-table-head p:empty {
  display: none;
}

.base-breadcrumb {
  min-height: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 12px;
}

.base-breadcrumb button {
  min-height: 24px;
  border: 1px solid rgba(132, 154, 181, 0.25);
  border-radius: 7px;
  background: rgba(24, 32, 42, 0.72);
  color: var(--text-soft);
  cursor: pointer;
  padding: 0 9px;
}

.base-pie-layout {
  display: grid;
  grid-template-columns: 300px 1px max-content;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.base-pie-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}

#basePie {
  width: 280px;
  height: 280px;
  cursor: pointer;
}

.base-pie-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.base-pie-center strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.base-pie-center span {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
}

.base-pie-tooltip {
  position: absolute;
  z-index: 6;
  min-width: 138px;
  display: none;
  gap: 3px;
  border: 1px solid #77d98a;
  border-radius: 8px;
  background: rgba(8, 13, 12, 0.94);
  box-shadow: 0 0 18px rgba(119, 217, 138, 0.18);
  color: #dce1e8;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 10px;
  pointer-events: none;
}

.base-pie-tooltip.visible {
  display: grid;
}

.base-pie-tooltip strong {
  color: #77d98a;
  font-size: 14px;
  font-weight: 700;
}

.base-pie-tooltip span {
  color: #d2d6df;
  white-space: nowrap;
}

.base-chart-divider {
  width: 1px;
  height: 75%;
  min-height: 190px;
  align-self: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(154, 83, 216, 0.18) 12%,
    rgba(154, 83, 216, 0.92) 50%,
    rgba(154, 83, 216, 0.18) 88%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(154, 83, 216, 0.24);
}

.base-filter-panel {
  display: grid;
  gap: 10px;
  width: 265px;
  min-width: 0;
  align-content: center;
}

.base-filter-field {
  position: relative;
  min-width: 0;
}

.base-filter-field input {
  width: 100%;
  min-height: 29px;
  border: 1px solid #d9a90f;
  border-radius: 7px;
  background: #171827;
  color: #d2d6df !important;
  -webkit-text-fill-color: #d2d6df;
  color-scheme: dark;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0;
  outline: none;
  padding: 0 31px 0 10px;
  box-shadow: 0 0 11px rgba(217, 169, 15, 0.08);
}

.base-filter-field input::placeholder {
  color: #aeb3bf;
  opacity: 1;
}

.base-filter-client input {
  border-color: #f1c84b;
}

.base-filter-region input {
  border-color: #d9a90f;
}

.base-filter-tipo input {
  border-color: #b98b08;
}

.base-filter-familia input {
  border-color: #e0b733;
}

.base-filter-search {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 30px;
  height: 27px;
  border: 0;
  border-left: 1px solid rgba(217, 169, 15, 0.42);
  border-radius: 0 6px 6px 0;
  background:
    transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d9c27a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E")
    center / 15px 15px no-repeat;
  cursor: pointer;
  opacity: 0.9;
}

.base-filter-search:hover,
.base-filter-search:focus-visible {
  background-color: rgba(217, 169, 15, 0.13);
  outline: none;
  opacity: 1;
}

.base-kpi-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.base-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border: 1px solid rgba(132, 154, 181, 0.16);
  border-radius: 8px;
  background: rgba(11, 18, 28, 0.56);
  padding: 0 14px;
}

.base-kpi span {
  color: var(--text-soft);
  font-size: 12px;
}

.base-kpi strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.base-table-card {
  grid-column: 1 / -1;
  min-height: 360px;
}

.base-equipment-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 12px;
}

.base-equipment-table th,
.base-equipment-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: middle;
}

.base-equipment-table td {
  color: #dce1e8;
  font-size: 12px;
  font-weight: 300;
  white-space: nowrap;
}

.base-equipment-table th {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #01050a;
  border-top: 1px solid rgba(78, 82, 114, 0.48);
  border-bottom: 1px solid rgba(78, 82, 114, 0.6);
  color: #d2d6df;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  line-height: 1;
}

.base-sort-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: center;
  text-transform: inherit;
  line-height: 1;
  padding: 0;
}

.base-sort-button:hover,
.base-sort-button:focus-visible {
  color: var(--text);
  outline: none;
}

.base-equipment-table th:first-child,
.base-equipment-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 7;
  background: #01050a;
}

.base-equipment-table th:first-child {
  z-index: 10;
}

.base-equipment-table tbody tr:nth-child(even) {
  background: rgba(84, 104, 130, 0.08);
}

.base-equipment-table tbody tr:nth-child(even) td:first-child {
  background: #07101b;
}

.base-equipment-table tbody tr:hover {
  background: rgba(229, 185, 78, 0.055);
}

@media (max-width: 1100px) {
  .pedidos-search-card,
  .pedidos-search-form,
  .pedidos-inline-filters {
    grid-template-columns: 1fr;
  }

  .pedidos-title-row {
    align-items: start;
    flex-direction: column;
  }

  .pedidos-search-form.is-hidden {
    display: none;
  }

  .base-dashboard,
  .base-pie-layout {
    grid-template-columns: 1fr;
  }

  .base-pie-wrap {
    justify-self: center;
  }

  .pedidos-results-header {
    align-items: stretch;
  }
}
