@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Mono:ital,wght@0,300..500;1,300..500&display=swap");

:root {
  /* Design Tokens from CMMSFSC tokens.css */
  --gray-25:  #FCFCFD;
  --gray-50:  #F9FAFB;
  --gray-100: #F2F4F7;
  --gray-200: #E4E7EC;
  --gray-300: #D0D5DD;
  --gray-400: #98A2B3;
  --gray-500: #667085;
  --gray-600: #475467;
  --gray-700: #344054;
  --gray-800: #1D2939;
  --gray-900: #101828;

  --color-brand:        #3478D8;
  --color-brand-dark:   #245EA8;
  --color-brand-light:  #EAF3FE;
  
  --color-bg-app:       #EEF4F8;
  --color-bg-2:          #F9FCFD;
  --color-bg-3:          #E4EEF2;
  --color-bg-4:          #D7E5EA;

  --color-tx:            #052425;
  --color-tx-2:          #274348;
  --color-tx-3:          #58767D;
  --color-tx-4:          #8AA2A8;

  --color-ok:            #079455;
  --color-ok-bg:         #ECFDF3;
  --color-warn:          #DC6803;
  --color-warn-bg:       #FFFAEB;
  --color-danger:        #D92D20;
  --color-danger-bg:     #FEF3F2;
  --color-info:          #3478D8;
  --color-info-bg:       #EAF3FE;
  --color-border:        #D3E2E8;

  --color-executive-black:        #052425;

  /* Semantic status colors from tokens.css */
  --color-work-preventive:        #1E5EF3;
  --color-work-preventive-bg:     #EEF3FF;
  --color-work-preventive-border: #C5D4FB;
  --color-work-corrective:        #DC6803;
  --color-work-corrective-bg:     #FFFAEB;
  --color-work-corrective-border: #FEDF89;
  --color-work-projection:        #7A5AF8;
  --color-work-projection-bg:     #F4F0FF;
  --color-work-projection-border: #D9D0FC;
  --color-work-completed:         #079455;
  --color-work-completed-bg:      #ECFDF3;
  --color-work-completed-border:  #ABEFC6;
  --color-work-overdue:           #D92D20;
  --color-work-overdue-bg:        #FEF3F2;
  --color-work-overdue-border:    #FECDCA;

  --color-status-open:            #DC6803;
  --color-status-open-bg:         #FFFAEB;
  --color-status-open-border:     #FEDF89;
  --color-status-assigned:        #1E5EF3;
  --color-status-assigned-bg:     #EEF3FF;
  --color-status-assigned-border: #C5D4FB;
  --color-status-progress:        #7A5AF8;
  --color-status-progress-bg:     #F4F0FF;
  --color-status-progress-border: #D9D0FC;
  --color-status-hold:            #667085;
  --color-status-hold-bg:         #F2F4F7;
  --color-status-hold-border:     #E4E7EC;
  --color-status-completed:       #079455;
  --color-status-completed-bg:    #ECFDF3;
  --color-status-completed-border:#ABEFC6;
  --color-status-cancelled:       #98A2B3;
  --color-status-cancelled-bg:    #F9FAFB;
  --color-status-cancelled-border:#E4E7EC;

  --font-sans: "DM Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "DM Mono", "SF Mono", "JetBrains Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 14px;
  --radius-3xl: 20px;
  --radius-4xl: 28px;
  --radius-5xl: 32px;

  --chrome-radius:  var(--radius-3xl);
  --card-radius:    var(--radius-3xl);
  --overlay-radius: var(--radius-4xl);
  --border-radius: var(--radius-xl);

  --card-shadow:       0 1px 3px rgba(15,60,80,0.08), 0 1px 2px rgba(15,60,80,0.05);
  --floating-shadow:   0 12px 16px -4px rgba(16,24,40,0.08), 0 4px 6px -2px rgba(16,24,40,0.04);
}

/* Reset and Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-tx-2);
  background: var(--color-bg-app);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* Sidebar styling (matches expediente) */
.app-sidebar {
  width: 240px;
  background: var(--color-bg-2);
  border-right: 1px solid var(--color-border);
  height: 100vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-logo {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--color-border);
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-tx);
  letter-spacing: -0.02em;
}

.sidebar-nav {
  padding: 16px 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-tx-3);
  text-decoration: none;
  transition: all 150ms ease;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--gray-100);
  color: var(--color-tx);
}

.nav-item.active {
  background: var(--color-brand-light);
  color: var(--color-brand);
}

.nav-item svg {
  width: 16px;
  height: 16px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-brand-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 10px;
  color: var(--color-tx-4);
}

/* Main Container Area */
.main-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Top Navbar */
.app-navbar {
  height: 48px;
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-link {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-tx-4);
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease;
}

.breadcrumb-link:hover {
  color: var(--color-brand);
}

.breadcrumb-link.active {
  color: var(--color-brand);
}

.breadcrumb-sep {
  color: var(--color-tx-4);
  opacity: 0.5;
  font-size: 10px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-action-btn {
  background: none;
  border: none;
  color: var(--color-tx-3);
  cursor: pointer;
  transition: color 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-action-btn:hover {
  color: var(--color-tx);
}

.nav-action-btn svg {
  width: 18px;
  height: 18px;
}

/* Main Content Workspace */
.workspace-content {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--color-bg-app);
}

.tendencias-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ------------------------------------------------------------- */
/* Pulso Visual Header Row                                       */
/* ------------------------------------------------------------- */
.pulso-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.pulso-title-left {
  display: flex;
  flex-direction: column;
}

.pulso-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-tx);
  letter-spacing: -0.02em;
}

.pulso-subtitle {
  font-size: 13px;
  color: var(--color-tx-3);
  margin-top: 4px;
  font-weight: 500;
}

.pulso-agrupadores {
  font-size: 9px;
  font-weight: 900;
  color: var(--color-tx-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

.pulso-actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

/* Time range selector pills container */
.range-selector {
  background: rgba(228, 238, 242, 0.6);
  border: 1px solid var(--color-border);
  padding: 3px;
  border-radius: 24px;
  display: flex;
  gap: 2px;
}

.range-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-tx-3);
  border-radius: 20px;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

.range-btn:hover {
  color: var(--color-tx-2);
}

.range-btn.active {
  background: white;
  color: var(--color-tx);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.analyze-btn {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-tx-2);
  cursor: pointer;
  transition: all 150ms ease;
}

.analyze-btn:hover {
  color: var(--color-brand);
}

.analyze-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 150ms ease;
}

.analyze-btn:hover svg {
  transform: translateX(4px);
}

/* ------------------------------------------------------------- */
/* 5 KPIs Bar Grid                                                */
/* ------------------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.kpi-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 60, 80, 0.06);
}

.kpi-left {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-tx-4);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-tx);
  line-height: 1.1;
}

.kpi-desc {
  font-size: 10px;
  color: var(--color-tx-4);
  margin-top: 4px;
  font-weight: 500;
}

/* Custom rounded square icon shapes */
.kpi-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.kpi-icon-wrapper.blue {
  background: var(--color-status-assigned-bg);
  color: var(--color-status-assigned);
  border: 1px solid var(--color-status-assigned-border);
}
.kpi-icon-wrapper.green {
  background: var(--color-status-completed-bg);
  color: var(--color-status-completed);
  border: 1px solid var(--color-status-completed-border);
}
.kpi-icon-wrapper.red {
  background: var(--color-work-overdue-bg);
  color: var(--color-work-overdue);
  border: 1px solid var(--color-work-overdue-border);
}
.kpi-icon-wrapper.purple {
  background: var(--color-status-progress-bg);
  color: var(--color-status-progress);
  border: 1px solid var(--color-status-progress-border);
}
.kpi-icon-wrapper.yellow {
  background: var(--color-status-open-bg);
  color: var(--color-status-open);
  border: 1px solid var(--color-status-open-border);
}

/* Selected Metric Highlights */
.kpi-card.active {
  background: #FCFDFF;
  border-width: 1.5px;
  box-shadow: 0 4px 14px rgba(52, 120, 216, 0.08);
}

.kpi-card#kpi-creadas.active { border-color: var(--color-status-assigned); }
.kpi-card#kpi-cerradas.active { border-color: var(--color-status-completed); }
.kpi-card#kpi-correctivos.active { border-color: var(--color-work-overdue); }
.kpi-card#kpi-costo.active { border-color: var(--color-status-progress); }
.kpi-card#kpi-horas.active { border-color: var(--color-status-open); }

/* ------------------------------------------------------------- */
/* Interactive SVG Trend Chart Section                            */
/* ------------------------------------------------------------- */
.chart-section-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--chrome-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

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

.chart-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-title-icon {
  width: 20px;
  height: 20px;
  color: var(--color-brand);
}

.chart-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-tx);
}

.chart-desc {
  font-size: 11px;
  color: var(--color-tx-4);
  margin-top: 2px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legend-item {
  font-size: 11px;
  color: var(--color-tx-3);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-color-dot.blue {
  background: var(--color-brand);
}

.legend-color-dot.dotted {
  background: none;
  border: 1.5px dashed var(--gray-400);
}

.chart-container {
  width: 100%;
  height: 200px;
  position: relative;
  background: var(--gray-25);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 16px 20px 20px 20px;
  overflow: hidden;
}

.trend-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid-line {
  stroke: var(--color-border);
  stroke-width: 1px;
  stroke-dasharray: 4 4;
  opacity: 0.45;
}

.chart-line {
  stroke: var(--color-brand);
  stroke-width: 3.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: d 400ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 8px rgba(30, 94, 243, 0.1));
}

.chart-line.average {
  stroke: var(--gray-400);
  stroke-width: 1.5px;
  stroke-dasharray: 4 4;
  opacity: 0.8;
  filter: none;
}

.chart-area {
  fill: url(#areaGrad);
  opacity: 0.06;
  transition: d 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Gradients for charts */
svg.trend-svg {
  --chart-color: var(--color-brand);
}

/* ------------------------------------------------------------- */
/* 30 Mock Work Orders Table Section                             */
/* ------------------------------------------------------------- */
.table-section-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--chrome-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

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

.table-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-header-icon {
  width: 20px;
  height: 20px;
  color: var(--color-brand);
}

.table-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-tx);
}

.table-subtitle {
  font-size: 11px;
  color: var(--color-tx-4);
  margin-top: 2px;
}

.table-filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-box {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  width: 220px;
  transition: all 150ms ease;
}

.search-box:focus-within {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px rgba(52, 120, 216, 0.15);
}

.search-box svg {
  width: 14px;
  height: 14px;
  color: var(--color-tx-4);
}

.search-box input {
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-tx);
  width: 100%;
}

.search-box input::placeholder {
  color: var(--color-tx-4);
}

.filter-dropdown {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  height: 32px;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-tx-2);
  outline: none;
  cursor: pointer;
  transition: all 150ms ease;
}

.filter-dropdown:hover {
  background: var(--gray-50);
}

/* Mock Table styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.mock-table th {
  background: var(--gray-50);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 14px;
  font-weight: 800;
  color: var(--color-tx-4);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.mock-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-tx-2);
}

.mock-table tbody tr:last-child td {
  border-bottom: none;
}

.mock-table tbody tr:hover td {
  background: var(--gray-25);
}

.num-align {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: 800;
}

.badge.dot::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
}

/* Dynamic Toast Notification style */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--gray-900);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--floating-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 200ms ease-out;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ------------------------------------------------------------- */
/* Responsive Mobile & Tablet Rules                             */
/* ------------------------------------------------------------- */
@media (max-width: 992px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }
  .app-sidebar {
    display: none;
  }
  .main-area {
    height: auto;
    overflow: visible;
  }
  .workspace-content {
    padding: 12px;
  }
  .tendencias-container {
    gap: 16px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .chart-header, .table-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .chart-legend, .table-filters-row {
    width: 100%;
    margin-top: 8px;
  }
  .search-box {
    width: 100%;
  }
  .filter-dropdown {
    flex-grow: 1;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pulso-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .pulso-actions-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* --- CHARTS GRID & INTEGRATION --- */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 24px;
}

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

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

.chart-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 380px; /* fixed height for alignment */
}

.chart-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-tx);
}

.chart-card-sub {
  font-size: 11px;
  color: var(--color-tx-4);
  margin-top: 4px;
  margin-bottom: 16px;
}

.chart-container {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

/* Donut Chart styles */
.donut-svg {
  width: 120px;
  height: 120px;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--color-tx-3);
  font-weight: 700;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.legend-dot.correctivo { background: var(--color-work-corrective); }
.legend-dot.preventivo { background: var(--color-work-preventive); }
.legend-dot.predictiva { background: var(--color-work-projection); }

/* Horizontal Bars styles */
.bar-horizontal-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  align-items: stretch;
}

.bar-h-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-tx-3);
}

.bar-h-label {
  width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.bar-h-track {
  flex-grow: 1;
  background: var(--gray-100);
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
}

.bar-h-fill {
  background: var(--color-work-corrective);
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.bar-h-number {
  width: 12px;
  text-align: left;
  font-weight: 850;
  color: var(--color-tx);
}

.bar-h-axis {
  display: flex;
  justify-content: space-between;
  padding-left: 108px;
  padding-right: 20px;
  font-size: 9px;
  color: var(--color-tx-4);
  font-weight: 800;
  border-top: 1px solid var(--color-border);
  padding-top: 4px;
}

/* SVG Line & Bar Common */
.axis-txt {
  font-size: 9px;
  fill: var(--color-tx-4);
  font-weight: 700;
}

.line-svg, .bar-v-svg {
  width: 100%;
  height: 100%;
}

/* --- INICIO EJECUTIVO HEADER & CONTENT WRAPPER --- */
.inicio-ejecutivo-header {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.inicio-ejecutivo-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inicio-ejecutivo-header .shield-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #FEE4E2; /* light red */
  border: 1px solid #FDA29B; /* light red border */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D92D20; /* brand red */
}

.inicio-ejecutivo-header .shield-icon-badge svg {
  width: 20px;
  height: 20px;
}

.inicio-ejecutivo-header .header-titles {
  display: flex;
  flex-direction: column;
}

.inicio-ejecutivo-header .header-main-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-tx);
  line-height: 1.2;
}

.inicio-ejecutivo-header .header-subtitle {
  font-size: 11px;
  color: var(--color-tx-3);
  margin-top: 2px;
  font-weight: 500;
}

.inicio-ejecutivo-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.inicio-ejecutivo-header .agrupadores-select-wrapper {
  position: relative;
}

.inicio-ejecutivo-header .agrupadores-select {
  appearance: none;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 32px 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-tx-2);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 150ms ease;
}

.inicio-ejecutivo-header .agrupadores-select:hover {
  border-color: var(--color-tx-4);
  background-color: var(--gray-50);
}

.inicio-ejecutivo-header .updated-time-text {
  font-size: 9px;
  font-weight: 800;
  color: var(--color-tx-4);
  letter-spacing: 0.05em;
}

.inicio-ejecutivo-header .header-action-btn {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-tx-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 150ms ease;
}

.inicio-ejecutivo-header .header-action-btn:hover {
  border-color: var(--color-tx-4);
  background-color: var(--gray-50);
  color: var(--color-tx);
}

.inicio-ejecutivo-header .header-action-btn svg {
  width: 14px;
  height: 14px;
  color: var(--color-tx-3);
}

.tendencias-content-wrapper {
  padding: 24px;
  box-sizing: border-box;
  width: 100%;
}

