/* ==========================================================================
   PANEL ADMINISTRATIVO & DASHBOARD SAAS - EXPOFERIA ESTÉTICA 2027
   Inspirado 100% en la Referencia Moderna de Alta Gama (Clean Light SaaS)
   ========================================================================== */

:root {
  --bg-app: #e9ecf2;
  --bg-surface: #ffffff;
  --bg-main: #f8fafc;
  --border-subtle: #f1f4f9;
  --border-card: #eef2f6;
  
  --text-main: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --color-primary: #6366f1;
  --color-primary-light: #eef2ff;
  --color-purple: #7c3aed;
  --color-teal: #06b6d4;
  --color-cyan: #0284c7;
  --color-emerald: #10b981;
  --color-gold: #c5a059;
  --color-amber: #f59e0b;
  --color-rose: #f43f5e;
  
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.admin-body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ==========================================================================
   1. PANTALLA DE LOGIN LIMPIA Y MODERNA
   ========================================================================== */
.admin-login-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 60px auto;
}

.admin-login-card {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-brand {
  text-align: center;
}

.login-brand-logo {
  max-height: 52px;
  margin-bottom: 12px;
}

.login-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.login-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.login-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.8rem;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrap i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.form-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px 12px 42px;
  font-size: 0.88rem;
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.btn-admin-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-admin-login:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   2. MARCO PRINCIPAL DEL DASHBOARD (WHITE CONTAINER FLOATING)
   ========================================================================== */
.admin-app {
  display: none;
  width: 100%;
  max-width: 1480px;
  background: var(--bg-surface);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-card);
  display: flex;
  overflow: hidden;
  min-height: 880px;
}

/* ==========================================================================
   3. BARRA LATERAL (SIDEBAR DE NAVEGACIÓN)
   ========================================================================== */
.dashboard-sidebar {
  width: 240px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.sidebar-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  background: #f8fafc;
  color: var(--text-main);
}

.nav-link:hover i {
  color: var(--color-primary);
}

.nav-link.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
}

.nav-link.active i {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--color-primary);
  border-radius: 4px 0 0 4px;
}

.sidebar-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.btn-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #ef4444;
  font-size: 0.84rem;
  font-weight: 700;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sidebar-logout:hover {
  background: #fef2f2;
}

/* ==========================================================================
   4. ÁREA PRINCIPAL DE CONTENIDO (MAIN WORKSPACE)
   ========================================================================== */
.dashboard-main {
  flex: 1;
  background: var(--bg-main);
  padding: 24px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  max-height: 100vh;
}

/* Header Superior con Perfil y Buscador */
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.user-role {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.topbar-center-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.topbar-center-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.topbar-search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 30px;
  padding: 10px 18px 10px 44px;
  font-size: 0.84rem;
  color: var(--text-main);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.topbar-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.topbar-icon-btn:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.btn-open-map-public {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.btn-open-map-public:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ==========================================================================
   5. FILA SUPERIOR: 4 CARDS COLORIDAS CON ESQUINAS GEOMÉTRICAS
   ========================================================================== */
.kpi-row-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.kpi-banner-card {
  border-radius: 18px;
  padding: 22px 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 125px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.kpi-banner-card:hover {
  transform: translateY(-2px);
}

/* Colores idénticos a la referencia */
.card-dark {
  background: #181926;
}
.card-purple {
  background: #8b5cf6;
}
.card-teal {
  background: #06b6d4;
}
.card-blue {
  background: #0ea5e9;
}

/* Círculo geométrico decorativo en esquina derecha */
.kpi-bg-accent {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  pointer-events: none;
}

.card-dark .kpi-bg-accent {
  background: #3b82f6;
  opacity: 0.95;
}
.card-purple .kpi-bg-accent {
  background: #f59e0b;
  opacity: 0.95;
}
.card-teal .kpi-bg-accent {
  background: #10b981;
  opacity: 0.95;
}
.card-blue .kpi-bg-accent {
  background: #eab308;
  opacity: 0.95;
}

.kpi-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.kpi-icon-pill {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.kpi-title {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.kpi-bottom-val {
  display: flex;
  align-items: baseline;
  gap: 8px;
  z-index: 2;
  margin-top: 14px;
}

.kpi-number {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}

.kpi-badge-pill {
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ==========================================================================
   6. FILA MEDIA: TARGET GAUGE & STATISTIC CHART
   ========================================================================== */
.middle-analytics-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.white-panel-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title-group h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-title-group p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-dots-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

/* Semi-circular Target Gauge */
.target-gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 10px 0;
}

.gauge-svg {
  width: 220px;
  height: 125px;
}

.gauge-center-info {
  position: absolute;
  top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-percentage {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.gauge-sub-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-emerald);
  margin-top: 2px;
}

.target-lead-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 8px 0 16px;
}

.target-mini-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  width: 100%;
}

.target-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.t-item-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.t-item-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

/* Statistic Multi-line Smooth Bezier Chart */
.chart-legend-top {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  font-weight: 600;
}

.legend-bullet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-bullet .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-purple { background: #8b5cf6; }
.dot-orange { background: #f97316; }

.statistic-chart-wrap {
  width: 100%;
  height: 200px;
  position: relative;
  margin-top: 8px;
}

.statistic-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   7. FILA INFERIOR: 3 DATA CARDS (DONUT, TOP STANDS, TOP ZONAS)
   ========================================================================== */
.bottom-data-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1fr;
  gap: 18px;
}

/* Donut Chart: Sales Source */
.donut-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.donut-svg-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-center-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-main-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.donut-sub-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-emerald);
}

.donut-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.donut-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.donut-item-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.donut-item-amount {
  font-weight: 700;
  color: var(--text-main);
}

/* Top Stands List */
.top-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.top-item-row:last-child {
  border-bottom: none;
}

.top-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-item-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
}

.top-item-details {
  display: flex;
  flex-direction: column;
}

.top-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.top-item-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.top-item-val {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Top Category List */
.cat-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.cat-badge-green {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 10px;
}

.cat-badge-red {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ef4444;
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: 10px;
}

/* ==========================================================================
   8. TAB DE GESTIÓN DE STANDS & TABLA CONTABLE (EXPANDIBLE)
   ========================================================================== */
.admin-tab-view {
  display: none;
}

.admin-tab-view.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.table-header-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

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

.btn-saas-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-card);
  background: #ffffff;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.btn-saas-tool:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-saas-tool.primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-saas-tool.primary:hover {
  background: #4f46e5;
}

/* Tabla Moderna SaaS */
.saas-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.saas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
  white-space: nowrap;
}

.saas-table th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.saas-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: middle;
}

.saas-table tr:hover td {
  background: #f8fafc;
}

/* Badges de Estado */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.pill-badge.vendido {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.pill-badge.disponible {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.pill-badge.apartado {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.pill-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Botones de acción en tabla */
.btn-table-action {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.btn-table-action:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.btn-table-action.sold-toggle {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.btn-table-action.sold-toggle:hover {
  background: #dc2626;
  color: #ffffff;
}

.btn-table-action.sold-toggle.is-sold {
  color: #059669;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.btn-table-action.sold-toggle.is-sold:hover {
  background: #059669;
  color: #ffffff;
}

/* ==========================================================================
   9. MODAL FLOTANTE MODERNO PARA EDITAR VENTA
   ========================================================================== */
.saas-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.saas-modal-overlay.active {
  display: flex;
}

.saas-modal-card {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-modal-close:hover {
  color: var(--text-main);
}

.modal-stand-highlight {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: 6px;
}

/* ==========================================================================
   10. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
  .kpi-row-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .middle-analytics-grid {
    grid-template-columns: 1fr;
  }
  .bottom-data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .admin-app {
    flex-direction: column;
    border-radius: 0;
  }
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nav-link.active::after {
    display: none;
  }
  .kpi-row-grid {
    grid-template-columns: 1fr;
  }
}
