style.css: :root {
  --primary: #3157d5;
  --primary-dark: #2445b5;
  --sidebar: #172033;
  --background: #f4f6fb;
  --surface: #ffffff;
  --text: #202a3b;
  --muted: #7b8497;
  --border: #e6eaf1;
  --success: #16845b;
  --warning: #b7791f;
  --danger: #c53b46;
}

* {
  box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    
    background: #0b1424;
    color: #eaf2ff;
    overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-layout {
  min-height: 100vh;
  display: flex;
}


/* MENÚ LATERAL - TEMA AZUL OSCURO */

.sidebar {
    width: 250px;
    background: #0b1424;
    color: #eaf2ff;
    display: flex;
    flex-direction: column;
    padding: 25px 16px;
    flex-shrink: 0;
    border-right: 1px solid #263b58;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 34px;
}

.brand-icon {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #2563a8;
    color: white;
    font-size: 23px;
    font-weight: 800;
}

.brand strong {
    font-size: 15px;
    color: #f1f7ff;
}

.brand small,
.sidebar-bottom small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #9aadc5;
}

.menu-label {
    padding: 0 12px 12px;
    font-size: 10px;
    letter-spacing: 1.3px;
    color: #7fa6d2;
    font-weight: 700;
}

.nav-link {
    min-height: 44px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #bdcce0;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link > span {
    width: 19px;
    text-align: center;
    font-size: 17px;
}

.nav-link.active {
    background: #1e4775;
    color: #ffffff;
    border: 1px solid #3677b9;
}

.nav-link:not(.disabled-link):hover {
    background: #1a304c;
    color: #93c5fd;
}

.disabled-link {
    cursor: not-allowed;
    opacity: 0.55;
    flex-wrap: wrap;
}

.disabled-link small {
    width: 100%;
    padding-left: 31px;
    font-size: 10px;
}

.sidebar-bottom {
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #263b58;
    padding: 22px 8px 0;
    margin-top: auto;
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #34d399;
    border-radius: 50%;
}


.main-content {
  flex: 1;
  min-width: 0;
  min-height: calc(100vh - 70px); 
  padding: 25px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* =========================================
   TABLAS RESPONSIVAS
========================================= */

.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table-container table {
    min-width: 600px;
}

/* =========================================
   TARJETAS Y PANELES
========================================= */

.card,
.stat-card,
.dashboard-card {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.cards-container,
.stats-container {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(220px, 100%), 1fr)
    );
    gap: 20px;
    width: 100%;
}

/* HEADER - BARRA SUPERIOR */

.topbar {
    min-height: 76px;
    background: #142238;
    border-bottom: 1px solid #263b58;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    gap: 15px;
    color: #eaf2ff;
}

.breadcrumb {
    color: #93a9c4;
    margin-right: 8px;
}

.user-badge {
    padding: 9px 13px;
    border-radius: 20px;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #93c5fd;
    font-weight: 600;
    font-size: 12px;
}

.page-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 32px;
  min-height: calc(100vh - 140px);
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 25px;
}

.page-heading h1 {
  margin: 0 0 8px;
  font-size: 27px;
  letter-spacing: -0.7px;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

.stat-card,
.panel,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(30, 45, 80, 0.025);
}

.stat-card {
  padding: 22px;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.stat-icon {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #edf1ff;
  color: var(--primary);
  font-size: 20px;
}

.stat-value {
  margin-top: 18px;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.6px;
}

.stat-description {
  color: var(--muted);
  margin-top: 8px;
  font-size: 12px;
}

.panel {
  overflow: hidden;
  margin-bottom: 22px;
}

.panel-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid #edf0f5;
}

th {
  background: #fafbfe;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafbff;
}

.product-name {
  font-weight: 650;
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 650;
}

.badge-ok {
  background: #e5f7ee;
  color: var(--success);
}

.badge-warning {
  background: #fff2d9;
  color: var(--warning);
}

.badge-danger {
  background: #ffeaec;
  color: var(--danger);
}

.button {
  border: 0;
  border-radius: 9px;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: var(--primary);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
    color: #34445b;
    background: #e9eef6;
    border: 1px solid #d4deeb;
}

.button-danger {
  background: #ffeaec;
  color: var(--danger);
}

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

.actions form {
  margin: 0;
} 

.form-card {
  max-width: 900px;
  padding: 25px;
}

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

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 43px;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: 2px solid #dce5ff;
  border-color: var(--primary);
}

.form-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.alert {
  padding: 14px 16px;
  border-radius: 9px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.alert-success {
  color: #146744;
  background: #e5f7ee;
}

.alert-error {
  color: #9b2833;
  background: #ffeaec;
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form input {
  min-width: 220px;
  min-height: 40px;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
}

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


.footer {
    padding: 17px 32px;
    border-top: 1px solid #263b58;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #0b1424;
    color: #9aadc5;
    font-size: 11px;
}


@media (max-width: 950px) {
  .sidebar {
    width: 205px;
  }

  .page-content {
    padding: 24px 18px;
  }

  .topbar {
    padding: 18px;
  }

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

@media (max-width: 650px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 16px;
  }

  .brand {
    padding-bottom: 18px;
  }

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

  .menu-label,
  .sidebar-bottom,
  .disabled-link {
    display: none;
  }

  .nav-link {
    font-size: 12px;
    padding: 10px;
  }

  .topbar {
    min-height: 60px;
    flex-wrap: wrap;
  }

  .page-heading {
    flex-direction: column;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: auto;
  }

  .form-card {
    padding: 17px;
  }

  .footer {
    padding: 15px 18px;
    flex-direction: column;
  }

  /* Mensajes del sistema */
  .alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .alert-success {
    background: #e8f7ed;
    color: #176534;
  }

  .alert-error {
    background: #fdecec;
    color: #a12626;
  }

 /* Indicadores de entradas y salidas */
.movement-entry {
    color: #176534;
    background: #e8f7ed;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.movement-exit {
    color: #a12626;
    background: #fdecec;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}
}

/* Indicadores del estado del inventario */
.stock-low {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  background-color: #fdecec;
  color: #a12626;
  font-size: 12px;
  font-weight: 600;
}

.stock-normal {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  background-color: #e8f7ed;
  color: #176534;
  font-size: 12px;
  font-weight: 600;
}

/* Botones pequeños para acciones de la tabla */
.action-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.action-buttons form {
  margin: 0;
}

.button-small {
  padding: 7px 10px;
  font-size: 12px;
}

.button-danger {
  background-color: #b42318;
  color: #ffffff;
  border: 1px solid #b42318;
}

.button-danger:hover {
  background-color: #912018;
}

/* Tablero de alertas */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
}

.dashboard-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.dashboard-card h2 {
  margin: 0;
  color: #172033;
  font-size: 30px;
}

.dashboard-warning {
  border-left: 4px solid #d97706;
}

.dashboard-danger {
  border-left: 4px solid #b42318;
}

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


/* =========================================
   TABLERO PRINCIPAL - TEMA AZUL OSCURO
========================================= */

.dashboard-page {
    --dash-blue: #60a5fa;
    --dash-blue-light: #93c5fd;
    --dash-blue-bright: #38bdf8;
    --dash-purple: #818cf8;
    --dash-green: #34d399;
    --dash-orange: #fbbf24;
    --dash-red: #fb7185;

    --dash-bg: #0b1424;
    --dash-card: #142238;
    --dash-card-hover: #192b45;
    --dash-border: #263b58;
    --dash-text: #eaf2ff;
    --dash-muted: #9aadc5;

    color: var(--dash-text);
    background: var(--dash-bg);
    padding: 28px;
    border-radius: 22px;
}

/* ENCABEZADO */

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

.dashboard-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--dash-blue-bright);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.dashboard-heading h1 {
    margin: 0 0 8px;
    color: #f1f7ff;
    font-size: clamp(26px, 3vw, 32px);
    letter-spacing: -0.9px;
}

.dashboard-heading p {
    margin: 0;
    color: var(--dash-muted);
    line-height: 1.6;
}

/* TARJETAS DE INDICADORES */

.dashboard-grid.dashboard-grid-four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.dashboard-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 185px;
    padding: 21px;
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 17px;
    background: linear-gradient(145deg, #192c47, #122037);
    color: var(--dash-text);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.dashboard-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -45px;
    bottom: -55px;
    border-radius: 50%;
    background: var(--card-color, #60a5fa);
    opacity: 0.13;
    pointer-events: none;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, #203957, #172943);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.30);
    border-color: var(--card-color);
}

.dashboard-card:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}

.dashboard-card.is-active {
    border-color: var(--card-color, var(--dash-blue));
    box-shadow: 0 0 0 2px var(--card-color), 0 10px 28px rgba(0, 0, 0, 0.25);
}

.dashboard-card-products {
    --card-color: #60a5fa;
}

.dashboard-card-warning {
    --card-color: #fbbf24;
}

.dashboard-card-danger {
    --card-color: #fb7185;
}

.dashboard-card-movements {
    --card-color: #38bdf8;
}

.dashboard-card-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 15px;
    border-radius: 13px;
    background: rgba(96, 165, 250, 0.14);
    color: var(--card-color);
    font-size: 21px;
}

.dashboard-card-title {
    color: #b8c9df;
    font-size: 13px;
    font-weight: 650;
}

.dashboard-number {
    margin: 7px 0 13px;
    color: var(--card-color);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
}

.dashboard-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    color: var(--card-color);
    font-size: 11px;
    font-weight: 700;
}

.dashboard-card-footer span {
    font-size: 17px;
}

/* TABLAS DESPLEGABLES */

.dashboard-expandable {
    margin-bottom: 24px;
    animation: dashboard-aparecer 0.3s ease;
}

.dashboard-expandable[hidden],
.dashboard-secondary-content[hidden] {
    display: none !important;
}

@keyframes dashboard-aparecer {
    from {
        opacity: 0;
        transform: translateY(-9px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-panel {
    min-width: 0;
    padding: 21px;
    border: 1px solid var(--dash-border);
    border-radius: 15px;
    background: var(--dash-card);
    color: var(--dash-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

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

.dashboard-panel-heading h2 {
    margin: 0;
    color: #edf5ff;
    font-size: 16px;
    font-weight: 750;
}

.dashboard-panel-heading p {
    margin: 5px 0 0;
    color: var(--dash-muted);
    font-size: 12px;
}

.dashboard-panel-heading a {
    color: var(--dash-blue-light);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-panel-heading a:hover {
    color: var(--dash-blue-bright);
    text-decoration: underline;
}

.dashboard-panel table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.dashboard-panel th,
.dashboard-panel td {
    padding: 13px 14px;
    border-bottom: 1px solid #263b58;
    text-align: left;
}

.dashboard-panel th {
    background: #1b304c;
    color: #9fb5d0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-panel td {
    color: #dce9f8;
    font-size: 12px;
}

.dashboard-panel tbody tr {
    transition: background 0.2s ease;
}

.dashboard-panel tbody tr:hover {
    background: #1c3452;
}

.dashboard-panel tbody tr:last-child td {
    border-bottom: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-secondary-text {
    display: block;
    margin-top: 4px;
    color: var(--dash-muted);
    font-size: 11px;
}

.empty-message {
    padding: 20px 0;
    color: var(--dash-muted);
    text-align: center;
}

/* =========================================
   GRÁFICAS DEL TABLERO
========================================= */

.dashboard-charts {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 20px;
    margin: 28px 0;
}

.dashboard-chart-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--dash-border);
    border-radius: 17px;
    background: linear-gradient(145deg, #172943, #122037);
    color: var(--dash-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
}

.dashboard-chart-panel h2 {
    margin: 0;
    color: #edf5ff;
    font-size: 16px;
    font-weight: 750;
}

.dashboard-chart-panel p {
    color: var(--dash-muted);
    font-size: 12px;
    line-height: 1.5;
}

.chart-period {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid rgba(96, 165, 250, 0.20);
    border-radius: 20px;
    background: rgba(96, 165, 250, 0.13);
    color: #93c5fd;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 20px 0 12px;
    color: #b8c9df;
    font-size: 11px;
}

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

.chart-legend i,
.inventory-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 3px;
}

.legend-entry {
    background: #60a5fa;
}

.legend-exit {
    background: #fbbf24;
}

/* GRÁFICA DE BARRAS */

.activity-chart {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    width: 100%;
    height: 205px;
    padding: 12px 5px 0;
    border-bottom: 1px solid #2b405d;
}

.activity-day {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: 0;
    height: 100%;
    color: #9aadc5;
    font-size: 10px;
}

.activity-bars {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 155px !important;
    min-height: 155px;
    overflow: visible;
}

.activity-bar {
    display: block !important;
    flex: 0 1 22px;
    width: 22px;
    min-width: 5px;
    min-height: 4px;
    max-height: 155px;
    border-radius: 6px 6px 0 0;
    transition:
        height 0.5s ease,
        opacity 0.2s ease;
}

.activity-bar:hover {
    opacity: 0.7;
}

.bar-entry {
    background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%) !important;
}

.bar-exit {
    background: linear-gradient(180deg, #fde68a 0%, #d97706 100%) !important;
}

/* GRÁFICA CIRCULAR */

.inventory-chart-area {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    min-height: 230px;
    padding: 15px 0;
}

.inventory-donut {
    display: grid !important;
    flex: 0 0 165px;
    width: 165px !important;
    height: 165px !important;
    min-width: 165px;
    min-height: 165px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(
        #fb7185 0 var(--agotados),
        #fbbf24 var(--agotados) calc(var(--agotados) + var(--bajo)),
        #34d399 calc(var(--agotados) + var(--bajo)) 100%
    ) !important;
    transform: rotate(-90deg);
}

.inventory-donut-center {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 112px !important;
    height: 112px !important;
    border: 1px solid #2c4260;
    border-radius: 50%;
    background: #142238;
    transform: rotate(90deg);
}

.inventory-donut-center strong {
    color: #f1f7ff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.inventory-donut-center span {
    margin-top: 3px;
    color: #9aadc5;
    font-size: 10px;
}

.inventory-legend {
    display: flex !important;
    flex-direction: column;
    gap: 17px;
    min-width: 130px;
}

.inventory-legend div {
    display: grid !important;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.inventory-legend span {
    color: #b8c9df;
}

.inventory-legend strong {
    color: #edf5ff;
    font-size: 13px;
}

.legend-normal {
    background: #34d399;
}

.legend-low {
    background: #fbbf24;
}

.legend-empty {
    background: #fb7185;
}

/* MÁS INFORMACIÓN */

.dashboard-secondary {
    margin: 25px 0 30px;
}

.dashboard-secondary-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 17px 20px;
    border: 1px solid var(--dash-border);
    border-radius: 13px;
    background: var(--dash-card);
    color: var(--dash-text);
    text-align: left;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-secondary-toggle:hover,
.dashboard-secondary-toggle.is-active {
    border-color: #4386d4;
    background: #1b304c;
}

.dashboard-secondary-toggle strong,
.dashboard-secondary-toggle small {
    display: block;
}

.dashboard-secondary-toggle strong {
    color: #edf5ff;
    font-size: 13px;
}

.dashboard-secondary-toggle small {
    margin-top: 5px;
    color: var(--dash-muted);
    font-size: 11px;
}

.secondary-arrow {
    color: var(--dash-blue-light);
    font-size: 22px;
    transition: transform 0.2s ease;
}

.dashboard-secondary-toggle.is-active .secondary-arrow {
    transform: rotate(180deg);
}

.dashboard-secondary-content {
    margin-top: 15px;
    animation: dashboard-aparecer 0.3s ease;
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
}

.dashboard-action {
    display: inline-flex;
    margin-top: 18px;
}

/* ACCESOS RÁPIDOS */

.dashboard-quick-access {
    margin: 30px 0;
}

.dashboard-quick-access h2 {
    margin-bottom: 16px;
    color: #edf5ff;
    font-size: 18px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.quick-link {
    display: block;
    padding: 18px;
    border: 1px solid var(--dash-border);
    border-radius: 13px;
    background: var(--dash-card);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.quick-link:hover {
    transform: translateY(-3px);
    border-color: #60a5fa;
    background: #1b304c;
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.25);
}

.quick-link strong,
.quick-link span {
    display: block;
}

.quick-link strong {
    color: #dbeafe;
    font-size: 12px;
}

.quick-link span {
    margin-top: 8px;
    color: var(--dash-muted);
    font-size: 11px;
    line-height: 1.6;
}

/* RESPONSIVE */

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

    .dashboard-charts {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .dashboard-page {
        padding: 18px;
        border-radius: 15px;
    }

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

    .dashboard-heading .button {
        width: 100%;
    }

    .dashboard-grid.dashboard-grid-four {
        gap: 11px;
    }

    .dashboard-card {
        min-height: 165px;
        padding: 15px;
    }

    .dashboard-number {
        font-size: 27px;
    }

    .dashboard-chart-panel,
    .dashboard-panel {
        padding: 15px;
    }

    .dashboard-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .inventory-chart-area {
        flex-direction: column;
        gap: 20px;
    }

    .inventory-legend {
        width: 100%;
    }

    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .dashboard-grid.dashboard-grid-four {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 145px;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .activity-chart {
        gap: 5px;
    }

    .activity-bars {
        gap: 3px;
    }

    .chart-period {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-page *,
    .dashboard-page *::before,
    .dashboard-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}



/* =========================================
   REPORTES DE INVENTARIO
========================================= */

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

.report-heading h1 {
  margin-bottom: 8px;
}

.report-heading p {
  margin-top: 0;
  color: #666;
}

.report-panel {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid #e2e5e9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.report-panel h2 {
  margin-top: 0;
  margin-bottom: 18px;
}

.report-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.report-filters .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.report-filters input,
.report-filters select {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ccd2d8;
  border-radius: 6px;
  font: inherit;
  box-sizing: border-box;
}

.report-filter-actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.report-summary-card {
  padding: 20px;
  border: 1px solid #e2e5e9;
  border-radius: 9px;
  background: #fff;
}

.report-summary-card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.report-summary-card p {
  margin: 12px 0;
  font-size: 1.8rem;
  font-weight: bold;
}

.report-summary-card span,
.report-note {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.report-note {
  margin-bottom: 18px;
}

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

  .report-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .report-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-filters {
    grid-template-columns: 1fr;
  }

  .report-panel {
    padding: 14px;
  }
}

/* ==========================================
   PREDICCIONES DEL MODELO XGBOOST
========================================== */

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

.page-header h1 {
  margin-bottom: 8px;
}

.page-header p {
  margin-top: 0;
  color: #666;
}

.button-secondary {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  background: #fff;
}

.button-secondary:hover {
    background: #dce6f2;
}

.alert {
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.alert-warning {
  background: #fff7e6;
  border: 1px solid #f0d28a;
  color: #684d00;
}

.alert code {
  display: inline-block;
  padding: 6px;
  margin-top: 8px;
  border-radius: 4px;
  background: #fff;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.table-responsive th {
  background: #f8fafc;
}

.text-muted {
  margin-top: 20px;
  color: #666;
  font-size: 0.9rem;
}

.dashboard-number {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 12px 0;
}

.notification-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

/* Ventanas emergentes de notificaciones */
body #notificaciones-toast.notificaciones-toast {
  position: fixed !important;
  top: 85px !important;
  right: 24px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 99999 !important;

  width: 360px;
  max-width: calc(100vw - 32px);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;

  margin: 0 !important;
  padding: 0 !important;
}

.notificacion-toast-item {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 18px 38px 18px 18px;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 5px solid #dc2626;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  color: #1f2937;

  animation: aparecer-notificacion 0.25s ease-out;
}

.notificacion-toast-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.notificacion-toast-item p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.notificacion-toast-item a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.notificacion-toast-item a:hover {
  text-decoration: underline;
}

.notificacion-toast-cerrar {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  cursor: pointer;
}

@keyframes aparecer-notificacion {
  from {
    opacity: 0;
    transform: translateX(15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  body #notificaciones-toast.notificaciones-toast {
    top: 70px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;

    width: calc(100vw - 24px);
    max-width: none;
  }
}

/* Buscador de productos */
.product-search-panel {
  margin-bottom: 20px;
}

.product-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 18px;
}

.product-search-form .form-group {
  margin-bottom: 0;
  min-width: 0;
}

.product-search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Miniaturas que se pueden pulsar */
.product-image-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: zoom-in;
}

.product-thumbnail {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  transition: transform 0.2s ease;
}

.product-image-button:hover .product-thumbnail {
  transform: scale(1.06);
}

.product-image-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

/* Visor de imagen ampliada */
.product-image-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 50px 24px 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.86);
  cursor: zoom-out;
}

.product-image-modal[hidden] {
  display: none !important;
}

.product-image-modal img {
  display: block;
  max-width: min(100%, 1100px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  cursor: default;
}

.product-image-modal p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  text-align: center;
  overflow-wrap: anywhere;
}

.product-image-modal-close {
  position: absolute;
  top: 14px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

body.product-image-modal-open {
  overflow: hidden;
}

/* Botón de eliminación */
.button-delete {
  background: #991b1b;
  color: #fff;
  border: 1px solid #991b1b;
}

.button-delete:hover {
  background: #7f1d1d;
}

@media (max-width: 800px) {
  .product-search-form {
    grid-template-columns: 1fr;
  }

  .product-search-actions {
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .product-image-modal {
    padding: 56px 12px 20px;
  }

  .product-image-modal img {
    max-height: 72vh;
  }

  .product-image-modal-close {
    top: 8px;
    right: 12px;
  }
}

/* Filtros del historial de movimientos */
.movement-search-panel {
  margin-bottom: 20px;
}

.movement-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 16px;
  align-items: end;
  padding: 18px;
}

.movement-search-form .form-group {
  margin-bottom: 0;
  min-width: 0;
}

.movement-search-form input,
.movement-search-form select {
  width: 100%;
  box-sizing: border-box;
}

.movement-search-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .movement-search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .movement-search-form {
    grid-template-columns: 1fr;
  }

  .movement-search-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .movement-search-actions .button {
    text-align: center;
  }
}

/* =========================================
   PREDICCIONES DE INVENTARIO
========================================= */

.predicciones-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--text);
}

.predicciones-page * {
  box-sizing: border-box;
}

.predicciones-page > h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.predicciones-page .intro {
  margin: 8px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.predicciones-page .resumen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.predicciones-page .resumen-card,
.predicciones-page .producto-card,
.predicciones-page .panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(30, 45, 80, 0.04);
}

.predicciones-page .resumen-label {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.predicciones-page .resumen-valor {
  margin: 9px 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.predicciones-page .ayuda {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.predicciones-page .seccion-titulo {
  margin: 30px 0 8px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.predicciones-page .producto-lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.predicciones-page .producto-card h3 {
  margin: 8px 0;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.predicciones-page .producto-codigo {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.predicciones-page .estado {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.predicciones-page .estado-reponer {
  background: #fff1f0;
  color: #b42318;
}

.predicciones-page .estado-vigilar {
  background: #fff7df;
  color: #8a5b00;
}

.predicciones-page .estado-suficiente {
  background: #e9f8ef;
  color: #176b3a;
}

.predicciones-page .metricas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.predicciones-page .metrica {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.predicciones-page .metrica span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.predicciones-page .metrica strong {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.predicciones-page .explicacion {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.predicciones-page .tabla-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
}

.predicciones-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.predicciones-page th,
.predicciones-page td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.predicciones-page th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.3px;
}

.predicciones-page .aviso {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #f1d28b;
  border-radius: 10px;
  background: #fffaeb;
  color: #7a4b00;
  line-height: 1.6;
}

.predicciones-page .error {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #f3b6b6;
  border-radius: 10px;
  background: #fff1f0;
  color: #9b1c1c;
  overflow-wrap: anywhere;
}

.predicciones-page .error ul {
  margin-bottom: 0;
}

.predicciones-page .sin-datos {
  margin-top: 16px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  line-height: 1.7;
  background: var(--surface);
}

.predicciones-page .sin-datos p {
  margin-bottom: 0;
}

.predicciones-page .panel {
  margin-top: 16px;
  margin-bottom: 22px;
  overflow: hidden;
}

.predicciones-page .panel p {
  line-height: 1.6;
}

.predicciones-page .panel p:last-child {
  margin-bottom: 0;
}

@media (max-width: 950px) {
  .predicciones-page .resumen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .predicciones-page .producto-lista {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .predicciones-page .resumen-grid {
    gap: 9px;
  }

  .predicciones-page .resumen-card,
  .predicciones-page .producto-card,
  .predicciones-page .panel {
    padding: 14px;
  }

  .predicciones-page .metricas {
    gap: 8px;
  }

  .predicciones-page .metrica {
    padding: 10px;
  }

  .predicciones-page .tabla-wrap {
    margin-right: 0;
  }
}

/* =========================================
   INTELIGENCIA DE INVENTARIO - MACHINE LEARNING
========================================= */

.predicciones-page .ml-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid #d9defb;
  border-radius: 20px;
  background: linear-gradient(135deg, #f4f5ff 0%, #ffffff 72%);
}

.predicciones-page .ml-etiqueta,
.predicciones-page .ml-mini-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f46a5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.predicciones-page .ml-punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6258c8;
  box-shadow: 0 0 0 4px #e5e3ff;
}

.predicciones-page .ml-hero h1 {
  margin: 14px 0 10px;
  color: #25234a;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.predicciones-page .ml-hero > p {
  max-width: 780px;
  color: #555773;
  line-height: 1.7;
}

.predicciones-page .ml-pasos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.predicciones-page .ml-pasos span {
  padding: 9px 12px;
  border: 1px solid #deddf5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #48447f;
  font-size: 12px;
  font-weight: 700;
}

.predicciones-page .ml-periodo {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.predicciones-page .ml-periodo > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 17px;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  background: #fff;
}

.predicciones-page .ml-periodo-label {
  color: #777b8c;
  font-size: 12px;
}

.predicciones-page .ml-periodo strong {
  color: #272942;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.predicciones-page .ml-aviso {
  margin-bottom: 25px;
  padding: 16px 18px;
  border-left: 4px solid #7770d7;
  border-radius: 8px;
  background: #f6f5ff;
  color: #484766;
  line-height: 1.65;
}

.predicciones-page .ml-ranking {
  margin: 24px 0 32px;
  overflow: hidden;
  border: 1px solid #e5e5f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(39, 35, 83, 0.05);
}

.predicciones-page .ml-ranking-cabecera {
  padding: 24px 24px 18px;
  background: #fafaff;
  border-bottom: 1px solid #ececf5;
}

.predicciones-page .ml-ranking-cabecera h2 {
  margin: 10px 0 8px;
  color: #282644;
  font-size: 22px;
}

.predicciones-page .ml-ranking-cabecera p {
  max-width: 780px;
  margin: 0;
  color: #696b7e;
  line-height: 1.6;
}

.predicciones-page .ml-ranking-lista {
  padding: 0 24px;
}

.predicciones-page .ml-ranking-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid #eeeef5;
}

.predicciones-page .ml-ranking-item:last-child {
  border-bottom: 0;
}

.predicciones-page .ml-ranking-numero {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #efeeff;
  color: #5148ae;
  font-size: 15px;
  font-weight: 800;
}

.predicciones-page .ml-ranking-info {
  min-width: 0;
}

.predicciones-page .ml-ranking-info h3 {
  margin: 0 0 5px;
  color: #292a40;
  font-size: 15px;
}

.predicciones-page .ml-ranking-info > p {
  margin: 0;
  color: #858697;
  font-size: 12px;
}

.predicciones-page .ml-ranking-compra {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 10px;
  font-size: 12px;
}

.predicciones-page .ml-ranking-compra span {
  color: #727386;
}

.predicciones-page .ml-ranking-compra strong {
  color: #3e398c;
}

.predicciones-page .ml-ranking-demanda {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.predicciones-page .ml-ranking-demanda strong {
  color: #4941a2;
  font-size: 25px;
  line-height: 1.1;
}

.predicciones-page .ml-ranking-demanda span {
  color: #7a7b8c;
  font-size: 11px;
}

.predicciones-page .ml-nota {
  margin: 0;
  padding: 16px 24px;
  background: #fafaff;
  color: #747589;
  font-size: 12px;
  line-height: 1.7;
}

.predicciones-page .ml-compra-destacada {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #dfddfa;
  border-radius: 13px;
  background: #f7f6ff;
}

.predicciones-page .ml-compra-destacada > span:first-child {
  color: #625ba2;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.predicciones-page .ml-compra-destacada > strong {
  color: #393477;
  font-size: 22px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.predicciones-page .ml-compra-destacada .ml-costo {
  color: #55566c;
  font-size: 13px;
}

.predicciones-page .ml-sin-pronostico {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8e9;
  color: #77591e;
  font-size: 13px;
  line-height: 1.6;
}

.predicciones-page .ml-metodologia {
  margin: 30px 0 10px;
  padding: 24px;
  border: 1px solid #e4e5ef;
  border-radius: 16px;
  background: #fff;
}

.predicciones-page .ml-metodologia > h2 {
  margin: 0 0 20px;
  color: #292943;
  font-size: 22px;
}

.predicciones-page .ml-metodologia-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.predicciones-page .ml-metodologia-grid article {
  padding: 17px;
  border: 1px solid #ececf5;
  border-radius: 12px;
  background: #fafaff;
}

.predicciones-page .ml-metodologia-grid article > span {
  color: #655bc3;
  font-size: 12px;
  font-weight: 800;
}

.predicciones-page .ml-metodologia-grid h3 {
  margin: 10px 0 7px;
  color: #33334f;
  font-size: 15px;
}

.predicciones-page .ml-metodologia-grid p {
  margin: 0;
  color: #6e7082;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .predicciones-page .ml-metodologia-grid {
    grid-template-columns: 1fr;
  }

  .predicciones-page .ml-periodo {
    grid-template-columns: 1fr 1fr;
  }

  .predicciones-page .ml-periodo > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .predicciones-page .ml-hero {
    padding: 22px 18px;
  }

  .predicciones-page .ml-pasos {
    flex-direction: column;
  }

  .predicciones-page .ml-periodo {
    grid-template-columns: 1fr;
  }

  .predicciones-page .ml-periodo > div:first-child {
    grid-column: auto;
  }

  .predicciones-page .ml-ranking-cabecera {
    padding: 20px 16px;
  }

  .predicciones-page .ml-ranking-lista {
    padding: 0 16px;
  }

  .predicciones-page .ml-ranking-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .predicciones-page .ml-ranking-numero {
    width: 32px;
    height: 32px;
  }

  .predicciones-page .ml-ranking-demanda {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }

  .predicciones-page .ml-compra-destacada > strong {
    font-size: 19px;
  }

  .predicciones-page .ml-metodologia {
    padding: 18px;
  }
}

/* Mejor contraste para páginas generales */
.page-heading h1,
.report-heading h1,
.page-header h1 {
    color: #eaf2ff;
}

.page-heading p,
.report-heading p,
.page-header p {
    color: #9aadc5;
}

/* Los paneles blancos mantienen texto oscuro */
.panel,
.stat-card,
.form-card,
.report-panel,
.report-summary-card {
    color: #202a3b;
}

.panel h2,
.stat-card h2,
.form-card h2,
.report-panel h2 {
    color: #202a3b;
}

/* Campos de búsqueda */
.search-form input,
.report-filters input,
.report-filters select {
    background: #ffffff;
    color: #202a3b;
}

/* Tablas generales */
th {
    background: #edf1f7;
    color: #526176;
}

td {
    color: #263447;
}

/* Encabezados de las tablas desplegables del dashboard */
.dashboard-page .table-responsive table thead th {
    background: #1e3a5f;
    color: #eaf2ff;
    border-bottom: 1px solid #365577;
    font-weight: 600;
}

/* Filas del encabezado al pasar el cursor */
.dashboard-page .table-responsive table thead th:hover {
    background: #264a73;
    color: #ffffff;
}

/* Cuerpo de las tablas desplegables */
.dashboard-page .table-responsive table tbody td {
    color: #d5e2f2;
    border-bottom: 1px solid #263b58;
}

/* Fondo de las filas */
.dashboard-page .table-responsive table tbody tr {
    background: #142238;
}

.dashboard-page .table-responsive table tbody tr:hover {
    background: #1a304c;
}


/* =========================================
   TABLA DE PRODUCTOS
   MISMO DISEÑO QUE LAS TABLAS DEL DASHBOARD
========================================= */

.product-table-panel {
    width: 100%;
    min-width: 0;
    padding: 21px;
    border: 1px solid #263b58;
    border-radius: 15px;
    background: #142238;
    color: #eaf2ff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.product-table-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 0;
    border: 0;
}

.product-table-panel .panel-header h2 {
    color: #edf5ff;
    font-size: 16px;
}

.product-table-panel .panel-header span {
    color: #9aadc5;
    font-size: 12px;
}

/* Contenedor con desplazamiento horizontal */

.product-table-panel .table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 9px;
}

/* Tabla */

.product-table-panel .product-table {
    width: 100%;
    min-width: 1150px;
    border-collapse: collapse;
    table-layout: auto;
    background: #142238;
    color: #dce9f8;
    white-space: nowrap;
}

/* Encabezados */

.product-table-panel .product-table th {
    padding: 13px 12px;
    background: #1e3a5f;
    color: #eaf2ff;
    border-bottom: 1px solid #365577;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    line-height: 1.4;
}

/* Celdas */

.product-table-panel .product-table td {
    padding: 13px 12px;
    color: #d5e2f2;
    border-bottom: 1px solid #263b58;
    text-align: left;
    vertical-align: middle;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
}

/* Filas */

.product-table-panel .product-table tbody tr {
    background: #142238;
    transition: background 0.2s ease;
}

.product-table-panel .product-table tbody tr:hover {
    background: #1a304c;
}

.product-table-panel .product-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Nombre del producto */

.product-table-panel .product-name {
    color: #ffffff;
    font-weight: 650;
    min-width: 130px;
}

/* Imágenes */

.product-table-panel .product-thumbnail {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 1px solid #365577;
    border-radius: 8px;
    background: #ffffff;
}

.product-table-panel .product-image-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: zoom-in;
}

.product-table-panel .product-image-button:hover .product-thumbnail {
    transform: scale(1.06);
}

/* Texto secundario de los costos */

.product-table-panel td small {
    display: block;
    margin-top: 4px;
    color: #9aadc5;
    font-size: 11px;
}

/* Estados del inventario */

.product-table-panel .stock-low {
    display: inline-block;
    padding: 5px 9px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 650;
}

.product-table-panel .stock-normal {
    display: inline-block;
    padding: 5px 9px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.13);
    color: #4ade80;
    font-size: 11px;
    font-weight: 650;
}

/* Botones de acciones */

.product-table-panel .action-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 210px;
}

.product-table-panel .action-buttons form {
    display: inline-flex;
    margin: 0;
}

.product-table-panel .action-buttons .button {
    display: inline-flex;
    width: auto;
    padding: 7px 9px;
    font-size: 11px;
    white-space: nowrap;
}

/* Botón de eliminación */

.product-table-panel .button-delete {
    background: #991b1b;
    color: #ffffff;
    border: 1px solid #991b1b;
}

.product-table-panel .button-delete:hover {
    background: #7f1d1d;
}

/* Sin resultados */

.product-table-panel .empty-state {
    padding: 30px 15px;
    color: #a9bad1;
    text-align: center;
}

/* Pantallas medianas */

@media (max-width: 1100px) {
    .product-table-panel {
        padding: 15px;
    }

    .product-table-panel .product-table th,
    .product-table-panel .product-table td {
        padding: 11px 9px;
    }

    .product-table-panel .product-thumbnail {
        width: 42px;
        height: 42px;
    }
}

/* Celulares */

@media (max-width: 650px) {
    .product-table-panel {
        padding: 12px;
    }

    .product-table-panel .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-table-panel .product-table {
        min-width: 1150px;
    }
}

/* Etiquetas del buscador de productos */
.product-search-panel label,
.product-search-form label {
    color: #eaf2ff !important;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Texto de los campos */
.product-search-panel input,
.product-search-panel select {
    color: #eaf2ff;
    background: #0b192d;
    border: 1px solid #365577;
}

/* Texto de ayuda o placeholder */
.product-search-panel input::placeholder {
    color: #9aadc5;
}

/* =========================================
   FORMULARIOS DE REGISTRAR Y EDITAR PRODUCTOS
========================================= */

/* Títulos de las páginas */
.page-heading h1 {
    color: #eaf2ff !important;
}

.page-heading p {
    color: #9aadc5 !important;
}

/* Panel del formulario */
.form-card {
    background: #142238 !important;
    border: 1px solid #263b58;
    color: #eaf2ff !important;
}

/* Etiquetas de los campos */
.form-card .form-group label {
    color: #eaf2ff !important;
    font-weight: 600;
}

/* Textos de ayuda */
.form-card .form-help,
.form-card .form-group small {
    color: #9aadc5 !important;
}

/* Campos de texto y selectores */
.form-card input,
.form-card select,
.form-card textarea {
    background: #0b192d !important;
    color: #eaf2ff !important;
    border: 1px solid #365577 !important;
}

/* Texto de los campos */
.form-card input::placeholder {
    color: #9aadc5 !important;
}

/* Opciones de los selectores */
.form-card select option {
    background: #142238;
    color: #eaf2ff;
}

/* Botones */
.form-card .form-actions .button {
    color: #ffffff !important;
    font-weight: 600;
    opacity: 1 !important;
}

/* Guardar */
.form-card .button-primary {
    background: #3157d5 !important;
    border: 1px solid #3157d5 !important;
}

/* Cancelar */
.form-card .button-secondary {
    background: #263b58 !important;
    border: 1px solid #365577 !important;
    color: #ffffff !important;
}


/* =========================================================
   MOVIMIENTOS: TARJETAS DE RESUMEN
========================================================= */

.movement-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.movement-summary-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 22px;
    border: 1px solid #263b58;
    border-radius: 16px;
    background: #142238;
    color: #eaf2ff;
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.movement-summary-card:hover {
    transform: translateY(-3px);
    border-color: #5278ad;
    background: #192d49;
}

.movement-summary-card[aria-expanded="true"] {
    border-color: #5d8ee8;
    box-shadow: 0 0 0 2px rgba(93, 142, 232, .12);
}

.movement-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #263b58;
    color: #eaf2ff;
    font-size: 23px;
}

.movement-summary-label {
    color: #a9bdd6;
    font-size: 13px;
    font-weight: 600;
}

.movement-summary-card strong {
    color: #fff;
    font-size: 30px;
    line-height: 1.2;
}

.movement-summary-card small {
    color: #91a7c3;
    font-size: 12px;
}

.movement-summary-entries .movement-summary-icon {
    background: rgba(34, 197, 139, .15);
    color: #42d6a2;
}

.movement-summary-exits .movement-summary-icon {
    background: rgba(237, 102, 132, .15);
    color: #ff829d;
}

/* =========================================================
   MOVIMIENTOS: TABLAS Y FILTROS
========================================================= */

.movement-table-section[hidden] {
    display: none !important;
}

.movement-table-section {
    margin-bottom: 24px;
}

.movement-table-panel {
    overflow: hidden;
}

.movement-table-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(140px, 1fr)) auto;
    align-items: end;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #263b58;
    background: #101e32;
}

.movement-table-filters .form-group {
    margin: 0;
}

.movement-table-filters label {
    display: block;
    margin-bottom: 7px;
    color: #eaf2ff;
    font-size: 12px;
    font-weight: 600;
}

.movement-table-filters input {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #365577;
    border-radius: 8px;
    background: #0b192d;
    color: #eaf2ff;
    outline: none;
}

.movement-table-filters input:focus {
    border-color: #6b9af0;
    box-shadow: 0 0 0 3px rgba(107, 154, 240, .12);
}

.movement-table-filters input::placeholder {
    color: #8fa4bf;
}

.movement-table-filters .button {
    min-height: 40px;
    white-space: nowrap;
}

.movement-table-panel .table-wrap {
    overflow-x: auto;
}

.movement-table-panel table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    white-space: nowrap;
}

.movement-table-panel th {
    padding: 13px 14px;
    background: #1e3a5f;
    color: #eaf2ff;
    border-bottom: 1px solid #365577;
    text-align: left;
    font-size: 12px;
}

.movement-table-panel td {
    padding: 13px 14px;
    color: #d5e2f2;
    border-bottom: 1px solid #263b58;
    font-size: 12px;
}

.movement-table-panel tbody tr {
    background: #142238;
}

.movement-table-panel tbody tr:hover {
    background: #1a304c;
}

.movement-table-panel tbody tr[hidden] {
    display: none !important;
}

.movement-table-panel td strong {
    color: #f0f5ff;
}

.movement-table-panel code {
    color: #b9d3ff;
    background: #203957;
    padding: 4px 6px;
    border-radius: 5px;
}

.movement-filter-result {
    padding: 10px 18px;
    color: #9aadc5;
    font-size: 12px;
}

/* =========================================================
   MOVIMIENTOS: GRÁFICAS
========================================================= */

.movement-charts-section {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.movement-chart-panel {
    min-width: 0;
    padding: 20px;
    background: #142238;
    border: 1px solid #263b58;
    border-radius: 14px;
}

.movement-chart-panel h2 {
    color: #eaf2ff;
}

.movement-chart-panel .muted {
    color: #9aadc5;
}

.movement-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 18px 0 10px;
    color: #c7d6e9;
    font-size: 12px;
}

.movement-chart-legend span,
.movement-distribution-legend div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.movement-legend-entry,
.movement-legend-exit {
    display: inline-block;
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.movement-legend-entry {
    background: #22c58b;
}

.movement-legend-exit {
    background: #ed6684;
}

.movement-week-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    height: 220px;
    padding-top: 15px;
}

.movement-day-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.movement-day-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 180px;
    border-bottom: 1px solid #36506f;
}

.movement-chart-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: min(30px, 40%);
    min-height: 0;
    height: 0;
    border-radius: 6px 6px 0 0;
    transition: height .3s ease;
}

.movement-chart-bar.has-value {
    min-height: 5px;
}

.movement-bar-entry {
    background: #22c58b;
}

.movement-bar-exit {
    background: #ed6684;
}

.movement-chart-bar span {
    position: relative;
    top: -20px;
    color: #dce9f8;
    font-size: 10px;
    font-weight: 600;
}

.movement-day-label {
    margin-top: 10px;
    color: #a9bdd6;
    font-size: 11px;
}

.movement-distribution-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 24px 5px;
}

.movement-donut {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 170px;
    flex: 0 0 170px;
    border-radius: 50%;
    background: #263b58;
    position: relative;
}

.movement-donut::before {
    content: "";
    position: absolute;
    inset: 17px;
    border-radius: 50%;
    background: #142238;
}

.movement-donut-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.movement-donut-center strong {
    color: #fff;
    font-size: 28px;
}

.movement-donut-center span {
    color: #9aadc5;
    font-size: 11px;
}

.movement-distribution-legend {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 120px;
}

.movement-distribution-legend div {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 8px;
    color: #cbd9eb;
    font-size: 12px;
}

.movement-distribution-legend strong {
    color: #fff;
}

.movement-distribution-legend small {
    grid-column: 2 / 4;
    color: #91a7c3;
}

/* =========================================================
   MOVIMIENTOS: HISTORIAL DE ANULACIONES
========================================================= */

.movement-canceled-panel {
    padding: 0;
    overflow: hidden;
    background: #142238;
    border: 1px solid #263b58;
    border-radius: 14px;
}

.movement-canceled-panel details summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    color: #eaf2ff;
    font-weight: 600;
    cursor: pointer;
    list-style-position: inside;
}

.movement-canceled-panel details summary:hover {
    background: #192d49;
}

.movement-canceled-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border-radius: 20px;
    background: #263b58;
    color: #eaf2ff;
    font-size: 12px;
}

.movement-canceled-content {
    padding: 18px;
    border-top: 1px solid #263b58;
}

.movement-canceled-content table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    white-space: nowrap;
}

.movement-canceled-content th {
    padding: 12px;
    background: #1e3a5f;
    color: #eaf2ff;
    text-align: left;
    font-size: 12px;
}

.movement-canceled-content td {
    padding: 12px;
    border-bottom: 1px solid #263b58;
    color: #d5e2f2;
    font-size: 12px;
}

/* =========================================================
   MOVIMIENTOS: RESPONSIVE
========================================================= */

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

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

@media (max-width: 650px) {
    .movement-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .movement-summary-card {
        padding: 17px;
    }

    .movement-table-filters {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .movement-week-chart {
        gap: 4px;
    }

    .movement-distribution-content {
        gap: 18px;
    }

    .movement-chart-panel {
        padding: 15px;
    }
}

/* =========================================================
   LEGIBILIDAD DE MOVIMIENTOS
   ========================================================= */

/* Tarjetas de resumen */
.movement-summary-card {
    color: #eaf2ff !important;
}

.movement-summary-card .movement-summary-label,
.movement-summary-card small,
.movement-summary-card strong,
.movement-summary-card .movement-summary-icon {
    color: #eaf2ff !important;
}

.movement-summary-card small {
    opacity: 1 !important;
}

/* Textos secundarios dentro de los paneles */
.movement-table-panel .muted,
.movement-chart-panel .muted,
.movement-canceled-panel .muted {
    color: #b8c9df !important;
    opacity: 1 !important;
}

/* Encabezados de las tablas */
.movement-table-panel h2,
.movement-chart-panel h2,
.movement-canceled-panel summary {
    color: #f1f6ff !important;
}

/* Ayudas y etiquetas del formulario */
#form-movimiento label,
#form-movimiento .form-help {
    color: #d5e2f3 !important;
    opacity: 1 !important;
}

/* Textos de las líneas de productos */
#form-movimiento .linea-producto {
    color: #eaf2ff;
}

#form-movimiento .linea-producto label {
    color: #eaf2ff !important;
}

/* Resultado de los filtros */
.movement-filter-result {
    color: #b8c9df;
}

/* Texto de las tablas */
.movement-table-panel table th {
    color: #eaf2ff;
}

.movement-table-panel table td {
    color: #dce7f5;
}

.movement-table-panel table td .muted {
    color: #b8c9df !important;
}

/* Historial de anulaciones */
.movement-canceled-panel,
.movement-canceled-panel td,
.movement-canceled-panel th {
    color: #eaf2ff;
}

.movement-canceled-count {
    color: #ffffff;
}

/* =========================================================
   LEGIBILIDAD - MOVIMIENTOS/NUEVO.PHP
   ========================================================= */

/* Título y descripción */
.page-heading h1,
.page-heading h2 {
    color: #f1f6ff !important;
}

.page-heading p {
    color: #b8c9df !important;
}

/* Formulario principal */
#form-movimiento,
#form-movimiento .form-group,
#form-movimiento .linea-producto {
    color: #eaf2ff !important;
}

/* Etiquetas */
#form-movimiento label {
    display: block;
    color: #eaf2ff !important;
    opacity: 1 !important;
}

/* Textos de ayuda */
#form-movimiento .form-help,
#form-movimiento small {
    color: #b8c9df !important;
    opacity: 1 !important;
}

/* Campos de texto y números */
#form-movimiento input[type="text"],
#form-movimiento input[type="number"],
#form-movimiento input[type="search"],
#form-movimiento select {
    color: #f1f6ff !important;
    background-color: #0b1424 !important;
    border: 1px solid #405675 !important;
}

/* Texto de los productos seleccionables */
#form-movimiento select option {
    color: #f1f6ff !important;
    background-color: #142238 !important;
}

/* Texto cuando el campo está vacío */
#form-movimiento input::placeholder {
    color: #9aadc5 !important;
    opacity: 1 !important;
}

/* Texto seleccionado y enfoque */
#form-movimiento input:focus,
#form-movimiento select:focus {
    color: #ffffff !important;
    border-color: #5b8cff !important;
    outline: none;
}

/* Paneles de cada producto */
#form-movimiento .linea-producto {
    background-color: #142238 !important;
    border-color: #314765 !important;
}

/* Botones */
#form-movimiento .button {
    color: #ffffff !important;
}

/* Mensajes de alerta */
.alert {
    color: #ffffff !important;
}

.alert-error,
.alert-warning,
.alert-success {
    opacity: 1 !important;
}

/* Botones secundarios de la página */
.page-heading .button {
    color: #ffffff !important;
}

/* =========================================================
   MÓDULO DE ALERTAS
   ========================================================= */

/* Tarjetas */
.alertas-dashboard .alertas-card {
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    color: #eaf2ff !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.alertas-dashboard .alertas-card p,
.alertas-dashboard .alertas-card h2,
.alertas-dashboard .alertas-card span {
    color: #eaf2ff !important;
    opacity: 1 !important;
}

.alertas-dashboard .alertas-card span {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
}

.alertas-dashboard .alertas-card:hover {
    border-color: #5b8cff !important;
    transform: translateY(-2px);
}

.alertas-dashboard .alertas-card.alerta-card-activa {
    border-color: #5b8cff !important;
    box-shadow: 0 0 0 2px rgba(91, 140, 255, 0.18);
}

/* Paneles de tablas */
.alertas-panel {
    margin-top: 22px;
    color: #eaf2ff !important;
}

.alertas-panel[hidden] {
    display: none !important;
}

.alertas-panel-header h2 {
    color: #f1f6ff !important;
}

.alertas-panel-header p {
    color: #b8c9df !important;
    opacity: 1 !important;
    margin-top: 5px;
}

.alertas-total {
    color: #eaf2ff !important;
    font-weight: 600;
    white-space: nowrap;
}

/* Filtros */
.alertas-filtros {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.alertas-buscador {
    width: min(100%, 430px);
    min-height: 42px;
    padding: 10px 13px;
    color: #f1f6ff !important;
    background: #0b1424 !important;
    border: 1px solid #405675 !important;
    border-radius: 8px;
    font: inherit;
}

.alertas-buscador::placeholder {
    color: #9aadc5 !important;
    opacity: 1 !important;
}

.alertas-buscador:focus {
    outline: none;
    border-color: #5b8cff !important;
    box-shadow: 0 0 0 2px rgba(91, 140, 255, 0.18);
}

.alertas-resultados {
    color: #b8c9df !important;
    font-size: 0.9rem;
}

/* Tabla */
.alertas-tabla {
    width: 100%;
    border-collapse: collapse;
}

.alertas-tabla thead th {
    color: #eaf2ff !important;
    background: #1b2d47;
    font-weight: 600;
}

.alertas-tabla tbody td {
    color: #dce7f5 !important;
}

.alertas-tabla tbody td.product-name {
    color: #ffffff !important;
    font-weight: 600;
}

.alertas-tabla tbody tr:hover td {
    background: rgba(91, 140, 255, 0.07);
}

.alertas-tabla tr[hidden] {
    display: none !important;
}

/* Estados de inventario */
.alerta-estado {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.alerta-estado-normal {
    color: #8ff0c5 !important;
    background: rgba(34, 197, 139, 0.15);
    border: 1px solid rgba(34, 197, 139, 0.35);
}

.alerta-estado-bajo {
    color: #ffdc82 !important;
    background: rgba(245, 178, 55, 0.15);
    border: 1px solid rgba(245, 178, 55, 0.35);
}

.alerta-estado-agotado {
    color: #ff9cac !important;
    background: rgba(237, 102, 132, 0.15);
    border: 1px solid rgba(237, 102, 132, 0.35);
}

/* Mensajes sin resultados */
.alertas-panel .empty-state,
.alertas-sin-resultados {
    color: #b8c9df !important;
    text-align: center;
    padding: 22px;
}

.alertas-sin-resultados[hidden] {
    display: none !important;
}

/* Botones de acción dentro de las tablas */
.alertas-panel .button {
    color: #ffffff !important;
}

/* Adaptación a pantallas pequeñas */
@media (max-width: 700px) {
    .alertas-filtros {
        align-items: stretch;
    }

    .alertas-buscador {
        width: 100%;
        max-width: none;
    }

    .alertas-total {
        white-space: normal;
    }
}


/* ==========================================
   REPORTES - DISEÑO GENERAL
========================================== */

.report-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: #eaf2ff;
}

.report-page [hidden] {
    display: none !important;
}

.report-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.report-heading h1 {
    color: #f1f6ff;
    margin: 5px 0;
}

.report-heading p {
    color: #aebfd4;
    margin: 5px 0 0;
}

.report-eyebrow {
    display: block;
    color: #75baff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    margin-bottom: 7px;
}

.report-heading-actions,
.report-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}


/* ==========================================
   PANELES
========================================== */

.report-page .report-panel {
    background: #142238;
    border: 1px solid #263b58;
    border-radius: 15px;
    padding: 22px;
    min-width: 0;
}

.report-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.report-section-heading h2,
.report-panel h2 {
    color: #f1f6ff;
    font-size: 19px;
    margin: 0;
}

.report-panel-description,
.report-filter-note {
    color: #aebfd4;
    font-size: 13px;
    line-height: 1.6;
}

.report-filter-note {
    margin: 15px 0 0;
}

.report-filter-note strong {
    color: #f1f6ff;
}


/* ==========================================
   FILTROS
========================================== */

.report-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 15px;
    align-items: end;
}

.report-filters .form-group {
    margin: 0;
    min-width: 0;
}

.report-filters label {
    color: #dce8f7;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.report-filters input,
.report-filters select {
    background: #0d192b;
    border: 1px solid #344b69;
    border-radius: 9px;
    color: #f1f6ff;
    min-height: 43px;
    padding: 9px 11px;
    width: 100%;
    color-scheme: dark;
}

.report-filters input:focus,
.report-filters select:focus {
    border-color: #68aaff;
    outline: 2px solid rgba(104, 170, 255, .18);
}

.report-filters option {
    background: #142238;
    color: #f1f6ff;
}

.report-filter-actions {
    grid-column: 1 / -1;
    margin-top: 3px;
}


/* ==========================================
   TARJETAS DE RESUMEN
========================================== */

.report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.report-summary-card {
    appearance: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #344b69;
    border-radius: 15px;
    background: #142238;
    color: #f1f6ff;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease,
                background .2s ease, box-shadow .2s ease;
}

.report-summary-card:hover {
    transform: translateY(-3px);
    border-color: #6e9ed6;
    background: #192c46;
}

.report-summary-card:focus-visible {
    outline: 3px solid #75baff;
    outline-offset: 3px;
}

.report-summary-card.report-card-active {
    border-color: #80baff;
    box-shadow: 0 0 0 2px rgba(117, 186, 255, .18);
}

.report-card-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    font-size: 21px;
    font-weight: 800;
    background: rgba(255, 255, 255, .09);
}

.report-card-label {
    color: #c5d5e9;
    font-size: 13px;
    font-weight: 700;
}

.report-summary-card strong {
    color: #ffffff;
    font-size: clamp(21px, 2vw, 29px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.report-summary-card small {
    color: #aebfd4;
    font-size: 12px;
}

.report-card-blue .report-card-icon {
    color: #91caff;
    background: rgba(79, 156, 255, .15);
}

.report-card-green .report-card-icon {
    color: #65e2b0;
    background: rgba(34, 197, 139, .15);
}

.report-card-pink .report-card-icon {
    color: #ff9bb3;
    background: rgba(237, 102, 132, .15);
}

.report-card-yellow .report-card-icon {
    color: #ffdc85;
    background: rgba(245, 190, 70, .15);
}


/* ==========================================
   GRÁFICAS
========================================== */

.report-charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 16px;
}

.report-chart-panel {
    min-height: 290px;
}

.report-chart-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: #c4d3e6;
    font-size: 12px;
    margin-bottom: 15px;
}

.report-chart-legend span,
.report-distribution-legend i {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-entry,
.legend-exit {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-entry {
    background: #22c58b;
}

.legend-exit {
    background: #ed6684;
}

.report-daily-chart {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 9px;
    min-height: 175px;
    height: 175px;
    padding: 10px 5px 0;
    border-bottom: 1px solid #344b69;
}

.report-day-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.report-day-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 145px;
    width: 100%;
    border-bottom: 1px solid #344b69;
}

.report-bar {
    display: block;
    width: min(25px, 38%);
    height: 0;
    min-height: 0;
    border-radius: 5px 5px 0 0;
    transition: height .55s ease;
}

.report-bar-entry {
    background: linear-gradient(180deg, #49e0ad, #159b70);
}

.report-bar-exit {
    background: linear-gradient(180deg, #ff91aa, #d94e70);
}

.report-day-column > span {
    color: #aebfd4;
    font-size: 11px;
    white-space: nowrap;
}

.report-donut {
    display: grid;
    place-items: center;
    width: 175px;
    height: 175px;
    margin: 5px auto 17px;
    border-radius: 50%;
    background: #34445a;
    position: relative;
}

.report-donut::before {
    content: "";
    position: absolute;
    inset: 19px;
    background: #142238;
    border-radius: 50%;
}

.report-donut-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.report-donut-center strong {
    color: #ffffff;
    font-size: 22px;
}

.report-donut-center span {
    color: #aebfd4;
    font-size: 11px;
}

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

.report-distribution-legend > div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #c5d5e9;
    font-size: 12px;
}

.report-distribution-legend strong {
    margin-left: auto;
    color: #ffffff;
}


/* ==========================================
   PRODUCTOS DESTACADOS
========================================== */

.report-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.report-ranking {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.report-ranking-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid #293e5b;
    min-width: 0;
}

.report-ranking-row:last-child {
    border-bottom: 0;
}

.report-ranking-position {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #203653;
    color: #9dcaff;
    font-weight: 800;
    font-size: 12px;
}

.report-ranking-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.report-ranking-info strong {
    color: #edf4ff;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.report-ranking-info small {
    color: #9aadc5;
    font-size: 11px;
}

.report-ranking-value {
    color: #6ce3b4;
    font-size: 12px;
    text-align: right;
    overflow-wrap: anywhere;
}

.report-ranking-value.report-value-exit {
    color: #ff9bb3;
}


/* ==========================================
   TABLAS DESPLEGABLES
========================================== */

.report-table-panel {
    scroll-margin-top: 20px;
    animation: reportPanelIn .22s ease;
}

@keyframes reportPanelIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-table-count {
    color: #b8c9df;
    background: #203653;
    border: 1px solid #344b69;
    border-radius: 20px;
    padding: 6px 11px;
    font-size: 12px;
}

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

.report-data-table th {
    background: #1b304b;
    color: #eaf2ff;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    padding: 13px 12px;
    white-space: nowrap;
}

.report-data-table td {
    color: #dce7f5;
    font-size: 13px;
    padding: 12px;
    border-bottom: 1px solid #293e5b;
    vertical-align: middle;
}

.report-data-table tbody tr:hover {
    background: rgba(105, 160, 220, .07);
}

.report-data-table tbody tr:last-child td {
    border-bottom: 0;
}

.report-text-entry {
    color: #65e2b0 !important;
}

.report-text-exit {
    color: #ff9bb3 !important;
}

.report-movement-entry,
.report-movement-exit {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.report-movement-entry {
    color: #7aebbd;
    background: rgba(34, 197, 139, .13);
}

.report-movement-exit {
    color: #ff9bb3;
    background: rgba(237, 102, 132, .13);
}

.report-estimated-label {
    display: block;
    color: #ffd27b;
    font-size: 10px;
    margin-top: 4px;
}

.report-muted {
    color: #aebfd4;
}

.report-total-value {
    color: #ffe19a;
    font-size: 20px;
}


/* ==========================================
   COSTOS
========================================== */

.report-cost-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.report-cost-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: #0e1b2d;
    border: 1px solid #2b405d;
    border-radius: 12px;
}

.report-cost-item span {
    color: #b8c9df;
    font-size: 13px;
}

.report-cost-item strong {
    font-size: clamp(20px, 2vw, 27px);
    overflow-wrap: anywhere;
}


/* ==========================================
   ESTADOS VACÍOS
========================================== */

.report-page .empty-message {
    color: #b8c9df;
    padding: 16px 0;
    font-size: 13px;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1050px) {
    .report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    .report-charts-grid,
    .report-highlights-grid {
        grid-template-columns: 1fr;
    }

    .report-heading {
        align-items: flex-start;
    }

    .report-heading-actions {
        width: 100%;
    }

    .report-heading-actions .button {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .report-page .report-panel {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .report-summary {
        grid-template-columns: 1fr;
    }

    .report-filters {
        grid-template-columns: 1fr;
    }

    .report-cost-grid {
        grid-template-columns: 1fr;
    }

    .report-summary-card {
        padding: 16px;
    }

    .report-summary-card strong {
        font-size: 24px;
    }

    .report-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .report-filter-actions .button {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================
   IMPRESIÓN
========================================== */

@media print {
    body {
        background: #ffffff !important;
        color: #111111 !important;
    }

    .report-heading-actions,
    .report-filter-panel,
    .report-summary-card,
    .report-eyebrow {
        display: none !important;
    }

    .report-page,
    .report-page .report-panel {
        color: #111111 !important;
        background: #ffffff !important;
        border-color: #cccccc !important;
        box-shadow: none !important;
    }

    .report-page h1,
    .report-page h2,
    .report-page h3,
    .report-page p,
    .report-page strong,
    .report-page td,
    .report-page th,
    .report-page span {
        color: #111111 !important;
    }

    .report-table-panel[hidden] {
        display: block !important;
    }

    .report-charts-grid,
    .report-highlights-grid {
        break-inside: avoid;
    }

    .report-data-table {
        min-width: 0;
    }

    .report-data-table th,
    .report-data-table td {
        color: #111111 !important;
        background: #ffffff !important;
        border: 1px solid #cccccc !important;
        font-size: 9px;
        padding: 5px;
    }

    .report-donut::before {
        background: #ffffff !important;
    }

    .report-page .report-panel {
        break-inside: avoid;
    }
}


/* =====================================================
   INTELIGENCIA DE INVENTARIO - PREDICCIONES
===================================================== */

.predicciones-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: #eaf2ff;
}

.predicciones-page [hidden] {
    display: none !important;
}

/* HERO */

.ml-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    gap: 25px;
    padding: 34px;
    border: 1px solid #29486d;
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% 15%, rgba(49, 113, 190, .28), transparent 34%),
        linear-gradient(120deg, #132943, #182d4b 60%, #1b3153);
}

.ml-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.ml-etiqueta,
.ml-mini-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #82c6ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.ml-punto {
    width: 8px;
    height: 8px;
    background: #36d99d;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(54, 217, 157, .7);
}

.ml-hero h1 {
    margin: 14px 0 10px;
    color: #ffffff;
    font-size: clamp(27px, 4vw, 39px);
    line-height: 1.15;
}

.ml-hero p {
    max-width: 680px;
    color: #c2d5eb;
    font-size: 14px;
    line-height: 1.7;
}

.ml-pasos {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 23px;
}

.ml-pasos span {
    padding: 8px 11px;
    border: 1px solid #385777;
    border-radius: 8px;
    background: rgba(9, 25, 45, .35);
    color: #d2e4f7;
    font-size: 11px;
    font-weight: 700;
}

.ml-hero-symbol {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(116, 182, 255, .35);
    border-radius: 50%;
    background: rgba(82, 151, 225, .08);
}

.ml-hero-symbol::before,
.ml-hero-symbol::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(116, 182, 255, .25);
    border-radius: 50%;
}

.ml-hero-symbol::before {
    inset: 13px;
}

.ml-hero-symbol::after {
    inset: 27px;
}

.ml-hero-symbol span {
    color: #9bcfff;
    font-size: 37px;
    font-weight: 900;
}

.ml-hero-symbol i {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43dba5;
}

.ml-hero-symbol i:nth-of-type(1) {
    top: 20px;
    right: 33px;
}

.ml-hero-symbol i:nth-of-type(2) {
    bottom: 27px;
    left: 24px;
}

.ml-hero-symbol i:nth-of-type(3) {
    top: 70px;
    right: 8px;
}


/* PERÍODO */

.ml-periodo {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    padding: 17px 20px;
    border: 1px solid #2b4563;
    border-radius: 13px;
    background: #142238;
}

.ml-periodo > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ml-periodo > div + div {
    padding-left: 20px;
    border-left: 1px solid #344b69;
}

.ml-periodo span {
    color: #91a9c5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ml-periodo strong {
    color: #f1f6ff;
    font-size: 16px;
    overflow-wrap: anywhere;
}


/* AVISO */

.ml-aviso {
    padding: 14px 17px;
    border: 1px solid #52603d;
    border-left: 4px solid #e5b84e;
    border-radius: 10px;
    background: rgba(229, 184, 78, .08);
    color: #e8d9b4;
    font-size: 13px;
    line-height: 1.65;
}

.ml-aviso strong {
    color: #ffe19a;
}


/* ERROR */

.ml-error {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    border: 1px solid #754155;
    border-radius: 13px;
    background: #321e2c;
    color: #f5dbe4;
}

.ml-error h2 {
    margin: 0 0 10px;
    color: #ffd5e0;
    font-size: 18px;
}

.ml-error p,
.ml-error li {
    color: #e7c5d1;
    font-size: 13px;
    line-height: 1.6;
}

.ml-error-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #8f3d5a;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
}


/* TARJETAS */

.ml-resumen-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.ml-resumen-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #344b69;
    border-radius: 15px;
    background: #142238;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease,
                background .2s ease, box-shadow .2s ease;
}

.ml-resumen-card:hover {
    transform: translateY(-3px);
    border-color: #79b7f4;
    background: #192c46;
}

.ml-resumen-card:focus-visible {
    outline: 3px solid #75baff;
    outline-offset: 3px;
}

.ml-resumen-card.ml-card-activa {
    border-color: #80baff;
    box-shadow: 0 0 0 2px rgba(117, 186, 255, .17);
}

.ml-card-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .09);
    font-size: 22px;
    font-weight: 800;
}

.ml-card-label {
    color: #c4d5e9;
    font-size: 12px;
    font-weight: 700;
}

.ml-resumen-card > strong {
    color: #ffffff;
    font-size: clamp(21px, 2vw, 29px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ml-resumen-card > small {
    color: #aebfd4;
    font-size: 11px;
}

.ml-card-blue .ml-card-icon {
    color: #94caff;
    background: rgba(79, 156, 255, .15);
}

.ml-card-yellow .ml-card-icon {
    color: #ffdc85;
    background: rgba(245, 190, 70, .15);
}

.ml-card-green .ml-card-icon {
    color: #65e2b0;
    background: rgba(34, 197, 139, .15);
}

.ml-card-pink .ml-card-icon {
    color: #ff9bb3;
    background: rgba(237, 102, 132, .15);
}


/* PANELES */

.predicciones-page .ml-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid #263b58;
    border-radius: 15px;
    background: #142238;
}

.ml-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 18px;
}

.ml-panel-heading h2 {
    margin: 5px 0;
    color: #f1f6ff;
    font-size: 19px;
}

.ml-panel-heading p {
    margin: 5px 0 0;
    color: #aebfd4;
    font-size: 12px;
    line-height: 1.5;
}

.ml-panel-heading > strong {
    color: #dceaff;
    font-size: 14px;
}

.ml-grafica-badge {
    padding: 6px 10px;
    border: 1px solid #365778;
    border-radius: 20px;
    background: #1b3452;
    color: #9dccff;
    font-size: 11px;
    font-weight: 800;
}


/* GRÁFICAS */

.ml-graficas-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 16px;
}

.ml-grafica-panel,
.ml-distribucion-panel {
    min-height: 290px;
}

.ml-chart-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c2d3e7;
    font-size: 12px;
    margin-bottom: 12px;
}

.ml-chart-legend i,
.ml-donut-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: #55a8ff;
}

.ml-chart {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 8px;
    height: 185px;
    padding: 10px 4px 0;
    border-bottom: 1px solid #344b69;
}

.ml-chart-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.ml-chart-bar-area {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 150px;
    border-bottom: 1px solid #344b69;
}

.ml-chart-bar {
    width: min(30px, 65%);
    height: 0;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #67b7ff, #326ed4);
    box-shadow: 0 0 12px rgba(85, 168, 255, .15);
    transition: height .6s ease;
}

.ml-chart-column > span {
    color: #aebfd4;
    font-size: 10px;
    white-space: nowrap;
}

.ml-chart-note {
    color: #91a9c5;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 13px;
}

.ml-donut {
    position: relative;
    display: grid;
    place-items: center;
    width: 175px;
    height: 175px;
    margin: 8px auto 18px;
    border-radius: 50%;
    background: #34445a;
}

.ml-donut::before {
    content: "";
    position: absolute;
    inset: 19px;
    border-radius: 50%;
    background: #142238;
}

.ml-donut-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.ml-donut-center strong {
    color: #ffffff;
    font-size: 25px;
}

.ml-donut-center span {
    color: #aebfd4;
    font-size: 11px;
}

.ml-donut-legend {
    display: grid;
    gap: 11px;
}

.ml-donut-legend > div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #c5d5e9;
    font-size: 12px;
}

.ml-donut-legend strong {
    margin-left: auto;
    color: #ffffff;
}

.ml-dot-forecast {
    background: #22c58b !important;
}

.ml-dot-missing {
    background: #ed6684 !important;
}


/* RANKING */

.ml-ranking-lista {
    display: flex;
    flex-direction: column;
}

.ml-ranking-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #293e5b;
}

.ml-ranking-item:last-child {
    border-bottom: 0;
}

.ml-ranking-numero {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: #203653;
    color: #a7d1ff;
    font-size: 13px;
    font-weight: 900;
}

.ml-ranking-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ml-ranking-info > strong {
    color: #f1f6ff;
    font-size: 13px;
}

.ml-ranking-info > small {
    color: #9aadc5;
    font-size: 11px;
}

.ml-ranking-track {
    height: 6px;
    overflow: hidden;
    border-radius: 10px;
    background: #263b58;
    margin-top: 5px;
}

.ml-ranking-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3579d9, #67bdff);
    transition: width .6s ease;
}

.ml-ranking-cantidad {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.ml-ranking-cantidad strong {
    color: #80c2ff;
    font-size: 17px;
}

.ml-ranking-cantidad small {
    color: #9aadc5;
    font-size: 10px;
}


/* FILTROS */

.ml-filtros {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    align-items: end;
    gap: 12px;
}

.ml-filtro {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.ml-filtro label {
    color: #dce8f7;
    font-size: 12px;
    font-weight: 700;
}

.ml-filtro input,
.ml-filtro select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #344b69;
    border-radius: 9px;
    outline: none;
    background: #0d192b;
    color: #f1f6ff;
    color-scheme: dark;
}

.ml-filtro input:focus,
.ml-filtro select:focus {
    border-color: #68aaff;
    box-shadow: 0 0 0 2px rgba(104, 170, 255, .14);
}

.ml-filtro select option {
    background: #142238;
    color: #ffffff;
}

.ml-filtro-resultados {
    margin-top: 13px;
    color: #9fb3cc;
    font-size: 11px;
}


/* BOTONES */

.ml-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #4777b0;
    border-radius: 9px;
    background: #285a9b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.ml-button:hover {
    background: #3475bd;
    transform: translateY(-1px);
}

.ml-button-light {
    border-color: #405673;
    background: #203653;
    color: #e1edfc;
}

.ml-button-light:hover {
    background: #2b4668;
}

.ml-lista-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


/* PANELES DESPLEGABLES */

.ml-tabla-panel {
    scroll-margin-top: 20px;
    animation: ml-panel-in .22s ease;
}

@keyframes ml-panel-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* TABLAS */

.ml-tabla-wrap {
    width: 100%;
    overflow-x: auto;
}

.ml-tabla {
    width: 100%;
    min-width: 690px;
    border-collapse: collapse;
}

.ml-tabla th {
    padding: 13px 12px;
    background: #1b304b;
    color: #eaf2ff;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

.ml-tabla td {
    padding: 12px;
    border-bottom: 1px solid #293e5b;
    color: #dce7f5;
    font-size: 12px;
    vertical-align: middle;
}

.ml-tabla td strong {
    color: #f1f6ff;
}

.ml-tabla td small {
    display: block;
    margin-top: 4px;
    color: #9aadc5;
    font-size: 10px;
}

.ml-tabla tbody tr:hover {
    background: rgba(105, 160, 220, .07);
}

.ml-tabla tbody tr:last-child td {
    border-bottom: 0;
}


/* LISTA DE PRODUCTOS */

.ml-lista-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ml-productos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ml-producto-card {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-width: 0;
    padding: 19px;
    border: 1px solid #2d4564;
    border-radius: 15px;
    background: #142238;
    transition: border-color .2s ease, transform .2s ease;
}

.ml-producto-card:hover {
    border-color: #527ca9;
    transform: translateY(-2px);
}

.ml-producto-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.ml-estado {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.estado-reponer {
    border: 1px solid rgba(237, 102, 132, .3);
    background: rgba(237, 102, 132, .13);
    color: #ff9bb3;
}

.estado-vigilar {
    border: 1px solid rgba(245, 190, 70, .3);
    background: rgba(245, 190, 70, .12);
    color: #ffdc85;
}

.estado-suficiente {
    border: 1px solid rgba(34, 197, 139, .3);
    background: rgba(34, 197, 139, .12);
    color: #65e2b0;
}

.ml-producto-codigo {
    color: #9aadc5;
    font-size: 11px;
}

.ml-producto-categoria {
    color: #78b8f4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.ml-producto-card h3 {
    margin: -7px 0 0;
    color: #f1f6ff;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.ml-producto-pronostico {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px;
    border: 1px solid #2b5277;
    border-radius: 10px;
    background: rgba(61, 129, 192, .09);
}

.ml-producto-pronostico > span {
    color: #8fcaff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.ml-producto-pronostico strong {
    color: #ffffff;
    font-size: 21px;
}

.ml-producto-pronostico small {
    color: #aebfd4;
    font-size: 11px;
}

.ml-producto-sin-pronostico {
    padding: 12px;
    border: 1px solid #5d4d36;
    border-radius: 9px;
    background: rgba(245, 190, 70, .08);
    color: #e8d5ad;
    font-size: 12px;
    line-height: 1.6;
}

.ml-producto-metricas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ml-producto-metricas > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 11px;
    border: 1px solid #293e5b;
    border-radius: 9px;
    background: #0f1c2e;
    min-width: 0;
}

.ml-producto-metricas span {
    color: #9aadc5;
    font-size: 10px;
}

.ml-producto-metricas strong {
    color: #edf4ff;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ml-compra {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid #315d50;
    border-radius: 10px;
    background: rgba(34, 197, 139, .08);
}

.ml-compra > span {
    color: #80dcb7;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.ml-compra > strong {
    color: #ffffff;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.ml-compra > small {
    color: #b7e8d4;
    font-size: 11px;
}

.ml-explicacion {
    padding-top: 12px;
    border-top: 1px solid #293e5b;
}

.ml-explicacion > strong {
    color: #d9e8fa;
    font-size: 12px;
}

.ml-explicacion p {
    margin: 6px 0 0;
    color: #aebfd4;
    font-size: 11px;
    line-height: 1.65;
}

.ml-sin-resultados,
.ml-sin-datos {
    padding: 20px;
    border: 1px dashed #405673;
    border-radius: 10px;
    color: #b8c9df;
    font-size: 13px;
    text-align: center;
}

.ml-sin-resultados {
    grid-column: 1 / -1;
}


/* METODOLOGÍA */

.ml-metodologia {
    padding: 23px;
    border: 1px solid #263b58;
    border-radius: 15px;
    background: #142238;
}

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

.ml-metodologia-grid article {
    padding: 17px;
    border: 1px solid #2c4563;
    border-radius: 12px;
    background: #102036;
}

.ml-metodologia-grid article > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #75baff;
    font-size: 22px;
    font-weight: 900;
}

.ml-metodologia-grid h3 {
    color: #f1f6ff;
    font-size: 15px;
}

.ml-metodologia-grid p {
    color: #aebfd4;
    font-size: 12px;
    line-height: 1.65;
}

.ml-nota {
    color: #9fb3cc;
    font-size: 11px;
    line-height: 1.65;
    margin-top: 14px;
}


/* RESPONSIVE */

@media (max-width: 1050px) {
    .ml-resumen-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ml-graficas-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
    }
}

@media (max-width: 760px) {
    .ml-hero {
        padding: 23px;
    }

    .ml-hero-symbol {
        width: 105px;
        height: 105px;
    }

    .ml-hero-symbol span {
        font-size: 27px;
    }

    .ml-graficas-grid,
    .ml-productos-grid {
        grid-template-columns: 1fr;
    }

    .ml-metodologia-grid {
        grid-template-columns: 1fr;
    }

    .ml-periodo {
        grid-template-columns: 1fr;
    }

    .ml-periodo > div + div {
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid #344b69;
    }
}

@media (max-width: 500px) {
    .ml-hero {
        padding: 19px;
    }

    .ml-hero-symbol {
        display: none;
    }

    .ml-resumen-grid,
    .ml-filtros {
        grid-template-columns: 1fr;
    }

    .predicciones-page .ml-panel,
    .ml-metodologia {
        padding: 16px;
    }

    .ml-lista-acciones {
        width: 100%;
    }

    .ml-lista-acciones .ml-button {
        flex: 1;
    }

    .ml-producto-metricas {
        grid-template-columns: 1fr 1fr;
    }

    .ml-ranking-item {
        gap: 8px;
    }
}


/* IMPRESIÓN */

@media print {
    body {
        background: #ffffff !important;
        color: #111111 !important;
    }

    .ml-lista-acciones,
    .ml-filtros-panel,
    .ml-resumen-grid,
    .ml-hero-symbol {
        display: none !important;
    }

    .predicciones-page,
    .predicciones-page .ml-panel,
    .ml-producto-card,
    .ml-metodologia {
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #cccccc !important;
        box-shadow: none !important;
    }

    .predicciones-page h1,
    .predicciones-page h2,
    .predicciones-page h3,
    .predicciones-page p,
    .predicciones-page strong,
    .predicciones-page span,
    .predicciones-page td,
    .predicciones-page th {
        color: #111111 !important;
    }

    .ml-tabla-panel[hidden] {
        display: block !important;
    }

    .ml-tabla th,
    .ml-tabla td {
        background: #ffffff !important;
        color: #111111 !important;
        border: 1px solid #cccccc !important;
        font-size: 9px;
        padding: 5px;
    }

    .ml-producto-card,
    .ml-metodologia-grid article,
    .ml-panel {
        break-inside: avoid;
    }
}

/* Paneles de predicciones */
#panel-reposicion[hidden],
#panel-presupuesto[hidden],
#panel-demanda[hidden],
#panel-analisis[hidden] {
    display: none !important;
}

.ml-resumen-card {
    cursor: pointer;
}

.ml-resumen-card:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 4px;
}

.ml-resumen-card.ml-card-activa {
    border-color: #60a5fa !important;
}

.ml-panel-visible {
    animation: mlAparecer 0.25s ease;
}

@keyframes mlAparecer {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   PREDICCIONES - DISEÑO OSCURO Y COMPACTO
========================================================= */

.predicciones-page {
    color: #eaf2ff;
}

.predicciones-page .ml-panel,
.predicciones-page .ml-grafica-card,
.predicciones-page .ml-periodo,
.predicciones-page .ml-metodologia,
.predicciones-page .ml-filtros,
.predicciones-page .ml-tabla-wrap {
    background: #142238 !important;
    color: #eaf2ff !important;
    border-color: #263b58 !important;
}

.predicciones-page .ml-panel[hidden] {
    display: none !important;
}

.predicciones-page .ml-resumen-card {
    cursor: pointer;
}

.predicciones-page .ml-resumen-card:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 4px;
}

.predicciones-page .ml-resumen-card.ml-card-activa {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, .15);
}

.predicciones-page .ml-panel:not([hidden]) {
    animation: mlPanelAparecer .25s ease;
}

@keyframes mlPanelAparecer {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Campos */

.predicciones-page input,
.predicciones-page select {
    width: 100%;
    min-width: 0;
    background: #0b1424 !important;
    color: #eaf2ff !important;
    border: 1px solid #354967 !important;
    border-radius: 9px;
    color-scheme: dark;
}

.predicciones-page input::placeholder {
    color: #91a4bd !important;
}

.predicciones-page input:focus,
.predicciones-page select:focus {
    outline: none;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .12);
}

/* Tablas */

.predicciones-page .ml-tabla-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    border: 1px solid #263b58;
    border-radius: 12px;
}

.predicciones-page .ml-tabla {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
}

.predicciones-page .ml-tabla th {
    background: #1b304c !important;
    color: #c7d8ed !important;
    padding: 10px 6px !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    border-color: #354967 !important;
}

.predicciones-page .ml-tabla td {
    background: #142238 !important;
    color: #eaf2ff !important;
    padding: 9px 6px !important;
    line-height: 1.35;
    border-bottom: 1px solid #263b58 !important;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: middle;
}

.predicciones-page .ml-tabla tbody tr:hover td {
    background: #1b304c !important;
}

.predicciones-page .ml-tabla td strong {
    color: #f1f6ff;
}

.predicciones-page .ml-tabla td small {
    display: block;
    color: #9aadc5 !important;
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.3;
}

.predicciones-page .ml-tabla td .ml-estado {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    font-size: 10px;
    padding: 5px 7px;
}

.predicciones-page .ml-texto-muted {
    color: #91a4bd !important;
}

/* Anchos de las tablas de reposición y presupuesto */

#panel-reposicion .ml-tabla th:first-child,
#panel-reposicion .ml-tabla td:first-child {
    width: 22%;
}

#panel-reposicion .ml-tabla th:nth-child(2),
#panel-reposicion .ml-tabla td:nth-child(2),
#panel-reposicion .ml-tabla th:nth-child(3),
#panel-reposicion .ml-tabla td:nth-child(3),
#panel-reposicion .ml-tabla th:nth-child(4),
#panel-reposicion .ml-tabla td:nth-child(4) {
    width: 10%;
}

#panel-reposicion .ml-tabla th:nth-child(5),
#panel-reposicion .ml-tabla td:nth-child(5) {
    width: 16%;
}

#panel-reposicion .ml-tabla th:nth-child(6),
#panel-reposicion .ml-tabla td:nth-child(6) {
    width: 13%;
}

#panel-reposicion .ml-tabla th:nth-child(7),
#panel-reposicion .ml-tabla td:nth-child(7) {
    width: 19%;
}

#panel-presupuesto .ml-tabla th:first-child,
#panel-presupuesto .ml-tabla td:first-child {
    width: 35%;
}

#panel-presupuesto .ml-tabla th:nth-child(2),
#panel-presupuesto .ml-tabla td:nth-child(2) {
    width: 25%;
}

#panel-presupuesto .ml-tabla th:nth-child(3),
#panel-presupuesto .ml-tabla td:nth-child(3) {
    width: 20%;
}

#panel-presupuesto .ml-tabla th:nth-child(4),
#panel-presupuesto .ml-tabla td:nth-child(4) {
    width: 20%;
}

/* Tabla de análisis: diez columnas compactas */

.predicciones-page .ml-tabla-analisis {
    font-size: 10px;
}

.predicciones-page .ml-tabla-analisis th,
.predicciones-page .ml-tabla-analisis td {
    padding: 8px 4px !important;
}

.predicciones-page .ml-tabla-analisis th:first-child,
.predicciones-page .ml-tabla-analisis td:first-child {
    width: 17%;
}

.predicciones-page .ml-tabla-analisis th:nth-child(2),
.predicciones-page .ml-tabla-analisis td:nth-child(2) {
    width: 10%;
}

.predicciones-page .ml-tabla-analisis th:nth-child(3),
.predicciones-page .ml-tabla-analisis td:nth-child(3) {
    width: 5%;
}

.predicciones-page .ml-tabla-analisis th:nth-child(4),
.predicciones-page .ml-tabla-analisis td:nth-child(4),
.predicciones-page .ml-tabla-analisis th:nth-child(5),
.predicciones-page .ml-tabla-analisis td:nth-child(5),
.predicciones-page .ml-tabla-analisis th:nth-child(6),
.predicciones-page .ml-tabla-analisis td:nth-child(6) {
    width: 8%;
}

.predicciones-page .ml-tabla-analisis th:nth-child(7),
.predicciones-page .ml-tabla-analisis td:nth-child(7) {
    width: 9%;
}

.predicciones-page .ml-tabla-analisis th:nth-child(8),
.predicciones-page .ml-tabla-analisis td:nth-child(8) {
    width: 12%;
}

.predicciones-page .ml-tabla-analisis th:nth-child(9),
.predicciones-page .ml-tabla-analisis td:nth-child(9) {
    width: 9%;
}

.predicciones-page .ml-tabla-analisis th:nth-child(10),
.predicciones-page .ml-tabla-analisis td:nth-child(10) {
    width: 14%;
}

/* Identidad e imágenes de productos */

.ml-producto-identidad {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ml-producto-imagen,
.ml-producto-sin-imagen {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 9px;
    object-fit: cover;
    background: #263b58;
    border: 1px solid #354967;
}

.ml-producto-sin-imagen {
    display: grid;
    place-items: center;
    color: #9aadc5;
    font-size: 9px;
    font-weight: 700;
}

.ml-producto-datos {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ml-producto-datos strong {
    display: block;
    color: #f1f6ff;
    line-height: 1.3;
}

/* Gráficas */

.ml-graficas-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    margin: 22px 0;
}

.ml-grafica-card {
    min-width: 0;
    padding: 20px;
    background: #142238;
    border: 1px solid #263b58;
    border-radius: 16px;
}

.ml-grafica-titulo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ml-grafica-titulo h3 {
    color: #eaf2ff;
    font-size: 17px;
    margin: 5px 0;
}

.ml-grafica-titulo p {
    color: #9aadc5;
    font-size: 12px;
    margin: 0;
}

.ml-grafica-icono {
    color: #60a5fa;
    font-size: 25px;
}

.ml-barras-diarias {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 9px;
    height: 175px;
    margin-top: 20px;
    border-bottom: 1px solid #354967;
}

.ml-barra-dia {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
}

.ml-barra-contenedor {
    height: 140px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ml-barra-contenedor span {
    display: block;
    width: min(30px, 75%);
    min-height: 3px;
    background: linear-gradient(180deg, #60a5fa, #3157d5);
    border-radius: 6px 6px 2px 2px;
    transition: height .4s ease;
}

.ml-barra-dia small {
    color: #9aadc5;
    font-size: 10px;
}

/* Gráfica de dona */

.ml-dona-contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 20px 0 5px;
}

.ml-dona {
    width: 155px;
    height: 155px;
    flex: 0 0 155px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #354967;
}

.ml-dona > div {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: #142238;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ml-dona strong {
    color: #fff;
    font-size: 25px;
}

.ml-dona small {
    color: #9aadc5;
}

.ml-leyenda {
    display: grid;
    gap: 12px;
    min-width: 145px;
}

.ml-leyenda span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd8e9;
    font-size: 11px;
}

.ml-leyenda b {
    margin-left: auto;
    color: white;
}

.ml-leyenda i {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
}

.ml-leyenda .rosa { background: #ed6684; }
.ml-leyenda .amarillo { background: #f5c451; }
.ml-leyenda .verde { background: #22c58b; }
.ml-leyenda .gris { background: #64748b; }

/* Comparación stock y demanda */

.ml-comparacion {
    margin-top: 25px;
    padding: 18px;
    background: #0b1424;
    border: 1px solid #263b58;
    border-radius: 13px;
}

.ml-comparacion h3 {
    color: #eaf2ff;
    font-size: 16px;
    margin: 0 0 5px;
}

.ml-comparacion > p {
    color: #9aadc5;
    font-size: 12px;
    margin: 0 0 18px;
}

.ml-comparacion-lista {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ml-comparacion-item {
    min-width: 0;
    padding: 13px;
    background: #142238;
    border: 1px solid #263b58;
    border-radius: 10px;
}

.ml-comparacion-item > strong {
    display: block;
    color: #eaf2ff;
    font-size: 12px;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.ml-comparacion-barras {
    display: grid;
    gap: 10px;
}

.ml-comparacion-fila {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) 35px;
    align-items: center;
    gap: 7px;
}

.ml-comparacion-fila small {
    color: #9aadc5;
    font-size: 10px;
}

.ml-comparacion-fila b {
    color: #eaf2ff;
    font-size: 10px;
    text-align: right;
}

.ml-comparacion-track {
    height: 9px;
    background: #263b58;
    border-radius: 10px;
    overflow: hidden;
}

.ml-comparacion-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 10px;
    transition: width .5s ease;
}

.ml-comparacion-track .barra-stock {
    background: #60a5fa;
}

.ml-comparacion-track .barra-demanda {
    background: #ed6684;
}

/* Ranking */

.ml-ranking-track {
    height: 7px;
    overflow: hidden;
    background: #263b58;
    border-radius: 10px;
}

.ml-ranking-barra {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3157d5, #60a5fa);
    border-radius: 10px;
    transition: width .5s ease;
}

/* Filtros */

.predicciones-page .ml-filtros {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(140px, 1fr)) auto;
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px solid #263b58;
    border-radius: 12px;
}

.predicciones-page .ml-filtro {
    min-width: 0;
}

.predicciones-page .ml-filtro label {
    display: block;
    color: #bcd2ed;
    font-size: 11px;
    margin-bottom: 6px;
}

.predicciones-page .ml-filtro input,
.predicciones-page .ml-filtro select {
    min-height: 40px;
    padding: 8px 10px;
}

.predicciones-page .ml-filtro-boton {
    display: flex;
}

.predicciones-page .ml-filtro-boton button {
    min-height: 40px;
    white-space: nowrap;
}

.ml-filtro-resultados {
    margin: 12px 0;
    color: #9aadc5;
    font-size: 12px;
}

/* Paneles, metodología y mensajes */

.predicciones-page .ml-panel {
    padding: 20px;
    border: 1px solid #263b58;
    border-radius: 16px;
}

.predicciones-page .ml-sin-datos,
.predicciones-page .ml-sin-resultados {
    background: #0b1424 !important;
    color: #bcd2ed !important;
    border: 1px solid #263b58;
    border-radius: 10px;
    padding: 15px;
}

.predicciones-page .ml-metodologia {
    background: #142238;
    color: #eaf2ff;
    border: 1px solid #263b58;
    border-radius: 14px;
}

.predicciones-page .ml-metodologia summary {
    color: #eaf2ff;
}

.predicciones-page .ml-metodologia summary small {
    color: #9aadc5;
}

.predicciones-page .ml-metodologia-contenido p {
    color: #bcd2ed;
}

.predicciones-page .ml-nota {
    color: #9aadc5;
}

.predicciones-page .ml-panel-pie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    color: #9aadc5;
    font-size: 11px;
}

.predicciones-page .ml-presupuesto-total {
    background: #0b1424;
    border: 1px solid #354967;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}

.predicciones-page .ml-presupuesto-total span,
.predicciones-page .ml-presupuesto-total small {
    display: block;
    color: #9aadc5;
}

.predicciones-page .ml-presupuesto-total strong {
    display: block;
    color: #f5c451;
    font-size: clamp(25px, 4vw, 36px);
    margin: 8px 0;
}

/* Adaptación para pantallas medianas */

@media (max-width: 1000px) {
    .ml-graficas-grid {
        grid-template-columns: 1fr;
    }

    .predicciones-page .ml-filtros {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .predicciones-page .ml-tabla-analisis {
        font-size: 9px;
    }

    .predicciones-page .ml-tabla-analisis th,
    .predicciones-page .ml-tabla-analisis td {
        padding: 6px 3px !important;
    }

    .ml-producto-imagen,
    .ml-producto-sin-imagen {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

/* En móvil se ocultan columnas secundarias para evitar
   desplazamiento horizontal y conservar legibilidad. */

@media (max-width: 650px) {
    .predicciones-page .ml-panel {
        padding: 12px;
    }

    .predicciones-page .ml-tabla-analisis th:nth-child(3),
    .predicciones-page .ml-tabla-analisis td:nth-child(3),
    .predicciones-page .ml-tabla-analisis th:nth-child(5),
    .predicciones-page .ml-tabla-analisis td:nth-child(5),
    .predicciones-page .ml-tabla-analisis th:nth-child(7),
    .predicciones-page .ml-tabla-analisis td:nth-child(7) {
        display: none;
    }

    .predicciones-page .ml-tabla-analisis th:first-child,
    .predicciones-page .ml-tabla-analisis td:first-child {
        width: 28%;
    }

    .predicciones-page .ml-tabla-analisis th:nth-child(2),
    .predicciones-page .ml-tabla-analisis td:nth-child(2),
    .predicciones-page .ml-tabla-analisis th:nth-child(4),
    .predicciones-page .ml-tabla-analisis td:nth-child(4),
    .predicciones-page .ml-tabla-analisis th:nth-child(6),
    .predicciones-page .ml-tabla-analisis td:nth-child(6),
    .predicciones-page .ml-tabla-analisis th:nth-child(8),
    .predicciones-page .ml-tabla-analisis td:nth-child(8),
    .predicciones-page .ml-tabla-analisis th:nth-child(9),
    .predicciones-page .ml-tabla-analisis td:nth-child(9),
    .predicciones-page .ml-tabla-analisis th:nth-child(10),
    .predicciones-page .ml-tabla-analisis td:nth-child(10) {
        width: 12%;
    }

    .predicciones-page .ml-tabla-analisis th,
    .predicciones-page .ml-tabla-analisis td {
        font-size: 9px;
        padding: 6px 3px !important;
    }

    .ml-producto-identidad {
        gap: 5px;
    }

    .ml-producto-imagen,
    .ml-producto-sin-imagen {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .predicciones-page .ml-filtros {
        grid-template-columns: 1fr;
    }

    .ml-comparacion-lista {
        grid-template-columns: 1fr;
    }

    .ml-dona-contenedor {
        gap: 15px;
    }

    .ml-panel-pie {
        align-items: stretch;
    }

    .ml-panel-pie .ml-button {
        width: 100%;
    }
}

/* =====================================================
   PREDICCIONES: SELECTOR DE PERIODO
===================================================== */

.predicciones-page .ml-periodo-selector {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.predicciones-page .ml-periodo-selector label,
.predicciones-page .ml-periodo > div > span {
    color: #9aadc5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.predicciones-page .ml-periodo-selector form {
    margin: 0;
}

.predicciones-page .ml-periodo-selector select {
    min-width: 190px;
    padding: 10px 36px 10px 12px;
    color: #eaf2ff;
    background: #0b1424;
    border: 1px solid #3157d5;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.predicciones-page .ml-periodo-selector select:focus {
    outline: 2px solid rgba(49, 87, 213, .35);
    outline-offset: 2px;
}

.predicciones-page .ml-periodo-selector option {
    color: #eaf2ff;
    background: #142238;
}

.predicciones-page .ml-periodo-selector strong,
.predicciones-page .ml-periodo > div > strong {
    color: #eaf2ff;
    font-size: 15px;
}

.predicciones-page .ml-aviso-periodo {
    margin: 14px 0 22px;
    padding: 14px 16px;
    color: #f5d88b;
    background: rgba(245, 196, 81, .09);
    border: 1px solid rgba(245, 196, 81, .28);
    border-radius: 12px;
    line-height: 1.6;
}

/* =====================================================
   PREDICCIONES: EXPLICACIÓN DE ESTADOS
===================================================== */

.predicciones-page .ml-estados-explicacion {
    margin: 24px 0;
    padding: 22px;
    background: #142238;
    border: 1px solid #263b58;
    border-radius: 16px;
}

.predicciones-page .ml-estados-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px;
}

.predicciones-page .ml-estado-explicacion {
    min-width: 0;
    padding: 15px;
    background: #0b1424;
    border: 1px solid #263b58;
    border-radius: 12px;
}

.predicciones-page .ml-estado-explicacion p {
    margin: 12px 0 0;
    color: #b5c4d8;
    font-size: 13px;
    line-height: 1.65;
}

.predicciones-page .ml-estado-explicacion .ml-estado {
    display: inline-block;
    white-space: normal;
    line-height: 1.4;
}

.predicciones-page .estado-exp-reponer {
    border-top: 3px solid #ed6684;
}

.predicciones-page .estado-exp-vigilar {
    border-top: 3px solid #f5c451;
}

.predicciones-page .estado-exp-suficiente {
    border-top: 3px solid #22c58b;
}

.predicciones-page .estado-exp-sin-datos {
    border-top: 3px solid #64748b;
}

/* =====================================================
   PREDICCIONES: MOTIVO DE RECOMENDACIÓN
===================================================== */

.predicciones-page .ml-motivo-recomendacion {
    display: block;
    min-width: 180px;
    max-width: 330px;
    margin-top: 8px;
    color: #aebfd4;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;
    white-space: normal;
}

.predicciones-page .ml-tabla td {
    vertical-align: middle;
}

/* =====================================================
   PREDICCIONES: IMÁGENES CLICABLES
===================================================== */

.predicciones-page .ml-producto-imagen {
    cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease;
}

.predicciones-page .ml-producto-imagen:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 2px #3157d5;
}

/* =====================================================
   PREDICCIONES: VISOR DE IMÁGENES
===================================================== */

body.ml-visor-abierto {
    overflow: hidden;
}

.ml-visor-imagen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 8, 18, .88);
    backdrop-filter: blur(7px);
    animation: ml-visor-aparecer .18s ease;
}

.ml-visor-contenido {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(900px, 94vw);
    max-height: 90vh;
    padding: 18px;
    background: #142238;
    border: 1px solid #385273;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.ml-visor-contenido img {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 10px;
}

.ml-visor-cerrar {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: #ed6684;
    border: 0;
    border-radius: 50%;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.ml-visor-cerrar:hover {
    background: #d94e70;
}

.ml-visor-nombre {
    margin: 12px 0 0;
    color: #eaf2ff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

@keyframes ml-visor-aparecer {
    from {
        opacity: 0;
        transform: scale(.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =====================================================
   PREDICCIONES: RESPONSIVE
===================================================== */

@media (max-width: 900px) {
    .predicciones-page .ml-estados-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .predicciones-page .ml-estados-grid {
        grid-template-columns: 1fr;
    }

    .predicciones-page .ml-estados-explicacion {
        padding: 15px;
    }

    .predicciones-page .ml-periodo {
        gap: 14px;
    }

    .predicciones-page .ml-periodo-selector {
        width: 100%;
    }

    .predicciones-page .ml-periodo-selector select {
        width: 100%;
    }

    .ml-visor-imagen {
        padding: 10px;
    }

    .ml-visor-contenido {
        width: 100%;
        padding: 12px;
    }

    .ml-visor-contenido img {
        max-height: 70vh;
    }
}

/* =====================================================
   PREDICCIONES: CORREGIR FONDOS Y COLORES
===================================================== */

.predicciones-page {
    color: #eaf2ff;
}

/* Encabezado principal */
.predicciones-page .ml-hero {
    background: linear-gradient(135deg, #142238, #0b1424) !important;
    color: #eaf2ff !important;
    border: 1px solid #263b58;
}

.predicciones-page .ml-hero h1,
.predicciones-page .ml-hero p,
.predicciones-page .ml-hero .ml-etiqueta,
.predicciones-page .ml-hero .ml-pasos,
.predicciones-page .ml-hero .ml-pasos span {
    color: #eaf2ff !important;
}

/* Selector y tarjetas del periodo */
.predicciones-page .ml-periodo {
    background: #142238 !important;
    color: #eaf2ff !important;
    border: 1px solid #263b58 !important;
}

.predicciones-page .ml-periodo > div {
    background: transparent !important;
}

.predicciones-page .ml-periodo > div > span {
    color: #9aadc5 !important;
}

.predicciones-page .ml-periodo > div > strong {
    color: #eaf2ff !important;
}

/* Selector */
.predicciones-page .ml-periodo-selector {
    background: transparent !important;
}

.predicciones-page .ml-periodo-selector label {
    color: #9aadc5 !important;
}

.predicciones-page .ml-periodo-selector select {
    color: #eaf2ff !important;
    background-color: #0b1424 !important;
    border: 1px solid #3157d5 !important;
}

/* Aviso sobre las predicciones */
.predicciones-page .ml-nota {
    color: #b8c8dc !important;
    background: #142238 !important;
    border: 1px solid #263b58 !important;
    border-radius: 12px;
    padding: 14px 16px;
}

/* Tarjetas y paneles */
.predicciones-page .ml-grafica-card,
.predicciones-page .ml-panel,
.predicciones-page .ml-estados-explicacion {
    color: #eaf2ff;
    background: #142238 !important;
    border-color: #263b58 !important;
}

/* Textos secundarios */
.predicciones-page .ml-grafica-card p,
.predicciones-page .ml-panel p,
.predicciones-page .ml-estados-explicacion p {
    color: #b5c4d8;
}


/* =========================================
   LOGIN - INVENTARIO ML
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b132b;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background-color: #111e38;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
    color: #ffffff;
}

.login-header p {
    font-size: 14px;
    color: #8a9bb8;
    margin-top: 5px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #8a9bb8;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: #0b132b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 25px;
    color: #8a9bb8;
}

.remember-label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0 !important;
}

.remember-label input {
    accent-color: #2563eb;
    cursor: pointer;
    width: 15px;
    height: 15px;
}

.form-actions a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.form-actions a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover {
    background-color: #1d4ed8;
}

.btn-submit:active {
    transform: scale(0.98);
}

.login-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #64748b;
}

/* Adaptación para móviles */

@media (max-width: 480px) {
    .login-container {
        padding: 30px 22px;
    }

    .form-actions {
        align-items: flex-start;
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .main-content {
        padding: 15px;
    }

    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        flex-basis: auto;
    }

    .cards-container,
    .stats-container {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {

    .main-content {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }

}
