/* === Farmacia Avellaneda — Dashboard CSS === */

:root {
    --verde: #00943d;
    --verde-claro: #2ecc71;
    --verde-bg: #e8f5ee;
    --verde-suave: #f4faf6;

    --gris-900: #111827;
    --gris-700: #374151;
    --gris-500: #6b7280;
    --gris-400: #9ca3af;
    --gris-300: #d1d5db;
    --gris-200: #e5e7eb;
    --gris-100: #f3f4f6;
    --gris-50: #f9fafb;

    --rojo: #dc2626;
    --rojo-bg: #fef2f2;
    --amarillo: #d97706;
    --amarillo-bg: #fffbeb;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);

    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--gris-50);
    color: var(--gris-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* === Topbar === */

.topbar {
    background: white;
    border-bottom: 1px solid var(--gris-200);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    background: var(--verde);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
}

.brand-mark.big {
    width: 64px;
    height: 64px;
    font-size: 36px;
}

.brand-name {
    font-weight: 600;
    color: var(--gris-900);
    font-size: 16px;
}

.brand-sub {
    font-size: 12px;
    color: var(--gris-500);
}

.nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    padding: 8px 14px;
    color: var(--gris-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.nav-link:hover {
    background: var(--gris-100);
}

.nav-link.active {
    background: var(--verde-bg);
    color: var(--verde);
}

.nav-link.logout {
    color: var(--gris-500);
    margin-left: 12px;
}

/* === Container === */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--gris-900);
    margin-bottom: 4px;
}

.subtitle {
    color: var(--gris-500);
    font-size: 14px;
}

/* === KPI cards === */

.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.kpi-card {
    background: white;
    border: 1px solid var(--gris-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.kpi-card.kpi-danger {
    background: var(--rojo-bg);
    border-color: #fecaca;
}

.kpi-label {
    font-size: 13px;
    color: var(--gris-500);
    margin-bottom: 6px;
    font-weight: 500;
}

.kpi-card.kpi-danger .kpi-label {
    color: var(--rojo);
}

.kpi-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--gris-900);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.kpi-card.kpi-danger .kpi-value {
    color: var(--rojo);
}

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

/* === Sections === */

.section {
    background: white;
    border: 1px solid var(--gris-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.section.section-danger {
    background: var(--rojo-bg);
    border-color: #fecaca;
}

.section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gris-900);
    margin-bottom: 16px;
}

/* === Calendario semanal === */

.weeks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.week-card {
    border: 1px solid var(--gris-200);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.week-card:hover {
    border-color: var(--gris-300);
    box-shadow: var(--shadow);
}

.week-card.week-current {
    border-color: var(--verde);
    background: var(--verde-suave);
}

.week-card.week-empty {
    background: var(--gris-50);
    opacity: 0.7;
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gris-200);
}

.week-current .week-header {
    border-bottom-color: #b8e0c5;
}

.week-range {
    font-weight: 600;
    color: var(--gris-700);
    font-size: 13px;
}

.badge-now {
    display: inline-block;
    background: var(--verde);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.week-total {
    font-weight: 600;
    color: var(--verde);
    font-size: 14px;
}

.week-empty .week-total {
    color: var(--gris-400);
}

.week-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.week-items li {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.week-items .dot {
    width: 6px;
    height: 6px;
    background: var(--verde);
    border-radius: 50%;
}

.week-items .prov {
    color: var(--gris-900);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.week-items .dia {
    display: none;
}

.week-items .monto {
    font-weight: 600;
    color: var(--gris-700);
    font-size: 13px;
    grid-column: 1 / -1;
    margin-left: 14px;
    margin-top: -4px;
    color: var(--gris-500);
}

.week-empty-msg {
    color: var(--gris-400);
    font-size: 13px;
    font-style: italic;
    padding: 8px 0;
}

/* === Tablas === */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    border-bottom: 1px solid var(--gris-200);
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    color: var(--gris-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table th.num { text-align: right; }

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gris-100);
    color: var(--gris-700);
}

.data-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table td.strong { font-weight: 600; color: var(--gris-900); }

.data-table td.muted { color: var(--gris-500); font-size: 13px; }

.data-table tr:hover td { background: var(--gris-50); }

.data-table .empty {
    text-align: center;
    color: var(--gris-400);
    padding: 32px;
    font-style: italic;
}

/* === Badges === */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background: var(--verde-bg); color: var(--verde); }
.badge-warning { background: var(--amarillo-bg); color: var(--amarillo); }
.badge-danger  { background: var(--rojo-bg);    color: var(--rojo); }

/* === Buttons === */

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: var(--gris-700);
    border: 1px solid var(--gris-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.btn:hover {
    background: var(--gris-50);
    border-color: var(--gris-400);
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-primary {
    background: var(--verde);
    color: white;
    border-color: var(--verde);
}

.btn-primary:hover {
    background: #007830;
    border-color: #007830;
}

.btn-success {
    background: var(--verde-bg);
    color: var(--verde);
    border-color: #b8e0c5;
}

.btn-success:hover {
    background: var(--verde);
    color: white;
    border-color: var(--verde);
}

.btn-danger {
    background: var(--rojo-bg);
    color: var(--rojo);
    border-color: #fecaca;
}

.btn-danger:hover {
    background: var(--rojo);
    color: white;
}

/* === Forms === */

.filters {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 20px;
    background: white;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--gris-200);
}

.filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filters span {
    font-size: 12px;
    font-weight: 500;
    color: var(--gris-500);
}

.filters input,
.filters select {
    padding: 8px 12px;
    border: 1px solid var(--gris-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: white;
    color: var(--gris-900);
    min-width: 180px;
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 3px var(--verde-bg);
}

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

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.form-grid span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gris-700);
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    padding: 10px 12px;
    border: 1px solid var(--gris-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--gris-900);
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 3px var(--verde-bg);
}

/* === Info box === */

.info-box {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #78350f;
}

.info-help {
    margin-top: 8px;
    font-size: 13px;
    color: #92400e;
}

.chip {
    display: inline-block;
    background: white;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 13px;
    margin: 4px 4px 0 0;
    color: #78350f;
}

/* === Login === */

.login-body {
    background: linear-gradient(150deg, var(--verde), var(--verde-claro));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-brand .brand-mark {
    margin: 0 auto 16px;
}

.login-brand h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gris-900);
    margin-bottom: 4px;
}

.login-brand p {
    font-size: 13px;
    color: var(--gris-500);
}

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

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

.login-form span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gris-700);
}

.login-form input {
    padding: 12px 14px;
    border: 1px solid var(--gris-300);
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.login-form input:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 3px var(--verde-bg);
}

.login-form .btn {
    margin-top: 8px;
    padding: 12px;
    font-size: 15px;
}

.error-box {
    background: var(--rojo-bg);
    color: var(--rojo);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    border: 1px solid #fecaca;
}

/* === Mobile === */

@media (max-width: 768px) {
    .topbar { flex-direction: column; gap: 12px; padding: 16px; }
    .container { padding: 20px 16px; }
    .nav { flex-wrap: wrap; justify-content: center; }
    .form-grid { grid-template-columns: 1fr; }
    .filters { flex-direction: column; align-items: stretch; }
    .filters input, .filters select { min-width: 0; width: 100%; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 8px; }
}

/* === Badge info para gastos === */
.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

/* === Dot de gastos en cashflow === */
.week-items .dot-gasto {
    background: #0369a1;
}

/* === Barras de categorías === */
.categoria-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-row {
    display: grid;
    grid-template-columns: 160px 1fr 120px 40px;
    gap: 12px;
    align-items: center;
    font-size: 13px;
}

.cat-name {
    font-weight: 500;
    color: var(--gris-700);
}

.cat-bar-wrap {
    background: var(--gris-100);
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
}

.cat-bar {
    background: linear-gradient(90deg, var(--verde), var(--verde-claro));
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
    min-width: 4px;
}

.cat-total {
    text-align: right;
    font-weight: 600;
    color: var(--gris-900);
    font-variant-numeric: tabular-nums;
}

.cat-count {
    text-align: right;
    font-size: 12px;
}

@media (max-width: 768px) {
    .cat-row {
        grid-template-columns: 1fr 60px;
        grid-template-rows: auto auto;
    }
    .cat-bar-wrap {
        grid-column: 1 / -1;
    }
}

/* === Cascada P&L === */
.pl-cascada {
    display: flex;
    flex-direction: column;
}

.pl-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: baseline;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gris-100);
    font-variant-numeric: tabular-nums;
}

.pl-label {
    font-size: 14px;
    color: var(--gris-700);
}

.pl-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--gris-900);
    text-align: right;
}

.pl-row-major .pl-label,
.pl-row-major .pl-value {
    font-size: 16px;
    font-weight: 600;
}

.pl-row-minor {
    background: var(--gris-50);
}

.pl-row-minor .pl-label {
    padding-left: 16px;
    color: var(--gris-500);
    font-size: 13px;
}

.pl-neg {
    color: var(--rojo) !important;
}

.pl-row-subtotal {
    background: var(--verde-bg);
    border-top: 1px solid var(--verde);
    border-bottom: 1px solid var(--verde);
    margin: 4px 0;
}

.pl-row-subtotal .pl-label,
.pl-row-subtotal .pl-value {
    font-weight: 600;
    color: var(--verde);
    font-size: 15px;
}

.pl-row-margen {
    background: var(--verde-bg);
}

.pl-row-final {
    background: var(--gris-900);
    color: white;
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
}

.pl-row-final .pl-label,
.pl-row-final .pl-value {
    color: white;
    font-size: 17px;
    font-weight: 700;
}

.pl-row-neg .pl-label,
.pl-row-neg .pl-value {
    color: var(--rojo) !important;
}

.pl-row-final.pl-row-neg {
    background: var(--rojo);
}

.pl-row-divider {
    margin-top: 4px;
    border-top: 1px dashed var(--gris-300);
}

.pl-pct {
    font-size: 12px;
    color: var(--gris-500);
    font-weight: 400;
    margin-left: 4px;
}

.pl-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pl-tag-good {
    background: var(--verde-bg);
    color: var(--verde);
}

.pl-tag-warn {
    background: #fef3c7;
    color: #92400e;
}

.pl-detalle-gastos {
    background: var(--gris-50);
    padding: 4px 32px 8px;
    font-size: 12px;
}

.pl-detalle-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: var(--gris-500);
}

.pl-detalle-label {
    text-transform: capitalize;
}

.pl-detalle-value {
    font-variant-numeric: tabular-nums;
}

/* === Upload form === */
.upload-form {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--gris-50);
    padding: 16px;
    border-radius: var(--radius);
    border: 2px dashed var(--gris-300);
}

.upload-form input[type="file"] {
    flex: 1;
    padding: 8px;
    background: white;
    border: 1px solid var(--gris-300);
    border-radius: var(--radius-sm);
}

/* === Howto list === */
.howto {
    padding-left: 20px;
    line-height: 1.8;
    color: var(--gris-700);
    font-size: 14px;
}

.howto li {
    padding: 4px 0;
}

.howto a {
    color: var(--verde);
    font-weight: 500;
}

/* === Home: alertas === */
.alertas-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.alerta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border-left: 4px solid;
    background: white;
}

.alerta-danger {
    background: #fef2f2;
    border-color: var(--rojo);
}

.alerta-warning {
    background: #fffbeb;
    border-color: #f59e0b;
}

.alerta-info {
    background: #eff6ff;
    border-color: #3b82f6;
}

.alerta-icono {
    font-size: 22px;
    line-height: 1;
}

.alerta-body {
    flex: 1;
}

.alerta-titulo {
    font-weight: 600;
    color: var(--gris-900);
    font-size: 14px;
}

.alerta-detalle {
    color: var(--gris-500);
    font-size: 13px;
    margin-top: 2px;
}

.alerta-cta {
    color: var(--verde);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.alerta-cta:hover {
    text-decoration: underline;
}

/* === Home grid === */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.home-col {
    margin-bottom: 0;
}

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

/* === Section head === */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.section-head h2 {
    margin-bottom: 0;
}

.section-meta {
    font-size: 13px;
    color: var(--verde);
    font-weight: 600;
    text-decoration: none;
}

a.section-meta:hover {
    text-decoration: underline;
}

/* === Lista de pagos en home === */
.lista-pagos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-pagos li {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gris-100);
}

.lista-pagos li:last-child {
    border-bottom: none;
}

.lista-pagos-fecha {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dias-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

.dias-hoy {
    background: var(--rojo);
    color: white;
}

.dias-proximo {
    background: #fbbf24;
    color: #78350f;
}

.dias-normal {
    background: var(--gris-100);
    color: var(--gris-700);
}

.lista-pagos-fecha-iso {
    font-size: 11px;
    color: var(--gris-500);
    font-variant-numeric: tabular-nums;
}

.lista-pagos-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lista-pagos-prov {
    font-weight: 600;
    color: var(--gris-900);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lista-pagos-detalle {
    font-size: 12px;
    color: var(--gris-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lista-pagos-monto {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--gris-900);
}

.badge-mini {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 6px;
}

/* === Empty state === */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--gris-500);
}

.empty-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin: 8px 0;
}

/* === Turno destacado === */
.turno-destacado {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, var(--verde-bg), white);
    border: 1px solid var(--verde);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.turno-destacado-label {
    font-size: 11px;
    color: var(--verde);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
}

.turno-destacado-fecha {
    font-size: 22px;
    font-weight: 700;
    color: var(--gris-900);
    font-variant-numeric: tabular-nums;
}

.turno-destacado-dias {
    font-size: 13px;
    color: var(--gris-700);
    margin-top: 4px;
}

.turnos-siguientes-label {
    font-size: 11px;
    color: var(--gris-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.turnos-siguientes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.turnos-siguientes li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--gris-100);
}

.turnos-siguientes li:last-child {
    border-bottom: none;
}

/* === Turnos grid (calendario) === */
.turnos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.turno-mini {
    padding: 12px;
    background: var(--gris-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gris-100);
    text-align: center;
}

.turno-mini-destacado {
    background: var(--verde-bg);
    border-color: var(--verde);
}

.turno-mini-fecha {
    font-weight: 600;
    font-size: 14px;
    color: var(--gris-900);
}

.turno-mini-dias {
    font-size: 11px;
    color: var(--gris-500);
    margin-top: 2px;
}

.turno-mini-destacado .turno-mini-dias {
    color: var(--verde);
    font-weight: 600;
}

/* === Resumen mejor/peor día === */
.dias-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.dia-item {
    background: var(--gris-50);
    padding: 12px 16px;
    border-radius: var(--radius);
    border-left: 3px solid var(--verde);
}

.dia-label {
    font-size: 12px;
    color: var(--gris-500);
    margin-bottom: 4px;
}

.dia-fecha {
    font-weight: 600;
    color: var(--gris-900);
    font-size: 14px;
}

.dia-monto {
    font-variant-numeric: tabular-nums;
    font-size: 16px;
    font-weight: 700;
    color: var(--verde);
    margin-top: 4px;
}

/* === Utilidad hidden === */
.hidden {
    display: none;
}

/* === Tabs internos === */
.tab-link {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--gris-500);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
    font-size: 14px;
}
.tab-link:hover {
    color: var(--gris-900);
}
.tab-active {
    color: var(--verde);
    border-bottom-color: var(--verde);
}

/* === Indicadores grid === */
.indicadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.ind-card {
    background: white;
    border: 1px solid var(--gris-100);
    border-radius: var(--radius);
    padding: 14px;
}
.ind-label {
    font-size: 11px;
    color: var(--gris-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.ind-value {
    font-variant-numeric: tabular-nums;
    font-size: 22px;
    font-weight: 700;
    color: var(--gris-900);
}
.ind-sub {
    font-size: 12px;
    color: var(--gris-500);
    margin-top: 4px;
}
.ind-card-up {
    border-left: 3px solid var(--verde);
}
.ind-card-down {
    border-left: 3px solid var(--rojo);
}
.ind-card-down .ind-value {
    color: var(--rojo);
}
