/* Variables Material Design */
:root {
    --primary-color: #FFC107; /* Amber 500: color principal */
    --primary-dark: #FFA000;  /* Amber 700: versión oscura */
    --primary-light: #FFECB3; /* Amber 200: versión clara */
    --accent-color: #FFD54F;  /* Amber 300: acento */
    --text-primary: rgba(0, 0, 0, 0.87); /* Texto principal */
    --text-secondary: rgba(0, 0, 0, 0.54); /* Texto secundario */
    --divider-color: rgba(0, 0, 0, 0.12); /* Divisores */
    --elevation-1: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
    --elevation-2: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.2);
    --border-radius: 12px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f9c93a;
    padding: 10px;
}

/* Contenedor principal */
#content {
    max-width: 1200px;
    margin: 0 auto;
}
h1{text-align: center;}
h1 img{width: 115px;}
/* Encabezados */
h2 {
    color: var(--primary-dark);
    margin: 20px 0;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 500;
}

h3 {
    color: var(--text-primary);
    margin: 15px 0;
    font-size: 1.4rem;
    font-weight: 500;
}

h4 {
    color: var(--text-primary);
    margin: 10px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Secciones */
section {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-light);
}

section:hover {
    box-shadow: var(--elevation-1);
}

/* Lista de alumnas */
.descAlumnList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
}

.descAlumnList li {
    margin: 0;
    padding: 0;
    list-style: none;
}
/*
.descAlumnList li .cardAlumn {
    background-color: var(--primary-light);
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}*/

.descAlumnList li h4 {
    background-color: var(--primary-color);
    color: var(--primary-dark);
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.1em;
    border: none;
}

.descAlumn {
    background-color: var(--primary-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    flex-grow: 1;
}

.descAlumn p {
    margin: 5px 0;
    line-height: 1.4;
    font-size: 0.95em;
    color: var(--text-primary);
}

/* Formularios */
.form-dias {
    background: #fff;
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-light);
    margin: 20px 0;
}

.dias-input {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.dias-input label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
}

.dias-input input[type="number"],
.dias-input input[type="text"],
.dias-input input[type="date"],
.dias-input input[type="time"] {
    padding: 8px;
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.dias-input input[type="number"]:focus,
.dias-input input[type="text"]:focus,
.dias-input input[type="date"]:focus,
.dias-input input[type="time"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-jugadora-section {
    max-width: 420px;
    margin: 0 auto;
    box-shadow: var(--elevation-1);
}

.form-jugadora-section h2 {
    text-align: center;
    margin-bottom: 1em;
}

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

.jugadoras-actions {
    margin-top: 8px;
}

.dias-input input[type="submit"] {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.dias-input input[type="submit"]:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Mensajes de estado */
div[style*="color: green"] {
    background: var(--primary-light);
    color: var(--text-primary);
    padding: 16px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    border: 1px solid var(--primary-color);
}

/* Botones */
form button, input[type=button], input[type=submit], input[type=reset], 
.listaEditaJugador_toggle, .listaEditaCH_toggle, button {
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover, input[type=button]:hover, input[type=submit]:hover, 
input[type=reset]:hover, .listaEditaJugador_toggle:hover, 
.listaEditaCH_toggle:hover, button:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Toggles */
.listaEditaJugador_toggle, .listaEditaCH_toggle {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.listaEditaJugador_toggle:hover, .listaEditaCH_toggle:hover {
    background: var(--primary-dark);
    color: #fff;
}

.listaEditaJugador_toggle.active, .listaEditaCH_toggle.active {
    background: var(--primary-dark);
    color: #fff;
}

/* Contenido colapsable */
.listado, .listadoCH {
    display: none;
    padding: 24px;
    background: #fff;
    border-radius: var(--border-radius);
    margin: 10px 0;
    border: 1px solid var(--primary-light);
}

/* Formularios de costos */
.form_costos {
    background: #fff;
    padding: 24px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    border: 1px solid var(--primary-light);
}

.form_costos label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form_costos input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

.form_costos input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    #content {
        padding: 10px;
    }

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

    .dias-input {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1.1rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.descAlumn {
    animation: fadeIn 0.3s ease-out;
}

/* Mejoras de accesibilidad */
input:focus, button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Estilos para el toggle */
.content-input input[type=checkbox] + i {
    background: var(--primary-light);
    border: none;
    position: absolute;
    left: 0;
    top: 0;
    transition: background-color 0.3s ease;
}

.content-input input[type=checkbox]:checked + i {
    background: var(--primary-color);
}

.content-input input[type=checkbox] + i:before {
    background: #fff;
}

.content-input input[type=radio] + i {
    background: var(--primary-light);
    border: none;
}

.content-input input[type=radio]:checked + i:before {
    background: var(--primary-color);
}

/* Select */
.content-select select {
    background: #fff;
    border: 1px solid var(--primary-light);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
    border-radius: var(--border-radius);
}

.content-select select:hover {
    border-color: var(--primary-color);
}

.content-select i {
    border-color: var(--primary-color);
}

.monthly-info {
    background-color: var(--primary-light);
    border-radius: 8px;
    padding: 20px;
    margin:0 0 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.month-title {
    color: var(--primary-dark);
    font-size: 1.8em;
    margin: 0 0 20px 0;
    text-align: center;
    text-transform: capitalize;
}

.monthly-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}

.stat-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

.stat-value {
    color: var(--primary-dark);
    font-size: 1.1em;
    font-weight: 600;
}

.stat-item.total {
    background-color: var(--primary-color);
    grid-column: 1 / -1;
}

.stat-item.total .stat-label,
.stat-item.total .stat-value {
    color: var(--primary-dark);
}

.monthly-stats-compact {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item--inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
}

.stat-item--inline .stat-label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    margin: 0;
}

.stat-item--inline .stat-value {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

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

.pagado {
    background-color: #FFF9C4 !important;
    border-left: 6px solid var(--primary-dark) !important;
    opacity: 0.85;
}

.btn-pago {
    background: var(--primary-dark);
    color: #fff !important;
    border-radius: 8px;
    padding: 4px 14px 4px 0;
    font-size: 0.95em;
    margin-left: 10px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    display: inline-flex;
}

.btn-pago:hover {
    background: var(--primary-color);
    color: var(--primary-dark) !important;
}

.icon-pagado {
    color: var(--primary-dark);
    font-size: 1.2em;
    margin-left: 8px;
    vertical-align: middle;
}

.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    background: var(--primary-color);
    padding: 10px 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    overflow: auto;
    gap: 2px;
}

.main-menu a {
    display: inline-flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    padding: 8px 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    line-height: 1.3;
    transition: color 0.2s, font-weight 0.2s;
    cursor: pointer;
}

.main-menu a .material-icons {
    font-size: 1.3em;
    color: inherit;
    transition: color 0.2s;
}

.main-menu a.active,
.main-menu a:hover {
    background: transparent;
    color: #000;
    font-weight: 600;
}

.main-menu a.active .material-icons,
.main-menu a:hover .material-icons {
    color: inherit;
}

.main-menu .menu-text {
    display: inline;
}

@media (max-width: 600px) {
    body {
        padding-bottom: 88px;
    }

    #content {
        padding-bottom: 8px;
    }

    .main-menu {
        flex-direction: row;
        justify-content: space-around;
        border-radius: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        z-index: 100;
        margin-bottom: 0;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        gap: 0;
    }

    .main-menu a {
        flex-direction: column;
        font-size: 0.85em;
        padding: 6px 2px;
        line-height: 1.2;
        border-radius: 0;
        background: transparent;
    }

    .main-menu a.active,
    .main-menu a:hover {
        background: transparent;
        color: #000 !important;
        font-weight: 600;
    }

    .main-menu a.active .material-icons,
    .main-menu a:hover .material-icons {
        color: #000 !important;
    }

    .main-menu .menu-text {
        font-size: 0.72em;
    }

    body:not(.admin-logged-in) .admin-only {
        display: none !important;
    }
}

/* Asegura color de texto primary en texto y botones */
body, h1, h2, h3, h4, h5, h6, p, label, span, div, a, li, ul, ol, input, select, textarea {
    color: var(--text-primary) !important;
}

button, input[type=button], input[type=submit], input[type=reset], .btn-pago, form button {
    color: var(--text-primary) !important;
}

.main-menu a {
    color: var(--primary-dark) !important;
}

.main-menu a.active,
.main-menu a:hover {
    color: #000 !important;
}

/* Mensajes informativos */
.msg-info {
    background: #fff;
    border-left: 5px solid var(--primary-dark);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--elevation-1);
}

.historial-desc {
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

.historial-vacio,
.historial-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--elevation-1);
}

.historial-empty .material-icons {
    font-size: 48px;
    color: var(--primary-dark);
    opacity: 0.6;
    display: block;
    margin-bottom: 12px;
}

/* ── Historial Material Design ── */
.historial-page {
    font-family: 'Roboto', sans-serif;
}

.historial-section {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 24px !important;
    box-shadow: none !important;
    margin-top: 4px;
}

.historial-section:hover {
    box-shadow: none !important;
}

.historial-header {
    text-align: center;
    margin: 0 0 28px 0;
    padding: 0 8px;
}

.historial-header h2 {
    margin: 0 0 6px 0;
}

.historial-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

/* Expansion panel */
.md-panel {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--elevation-1);
    transition: box-shadow 0.25s ease;
}

.md-panel.is-open {
    box-shadow: var(--elevation-2);
}

.md-panel-header {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
    min-height: 72px;
}

.md-panel-header:hover {
    background: #FFFDE7;
}

.md-panel.is-open .md-panel-header {
    background: var(--primary-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.md-panel-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.md-panel.is-open .md-panel-icon-wrap {
    background: var(--primary-dark);
}

.md-panel-icon {
    color: var(--primary-dark) !important;
    font-size: 22px !important;
}

.md-panel.is-open .md-panel-icon {
    color: #fff !important;
}

.md-panel-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.md-panel-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87) !important;
    line-height: 1.3;
}

.md-panel-subtitle {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.54) !important;
}

.md-panel-meta {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-dark) !important;
    line-height: 1.3;
}

.md-panel-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

@media (min-width: 640px) {
    .md-panel-meta {
        display: none;
    }
}

@media (max-width: 639px) {
    .md-panel-badges {
        display: none;
    }
}

.md-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--primary-light);
    color: rgba(0, 0, 0, 0.75) !important;
    white-space: nowrap;
}

.md-badge--outline {
    background: transparent;
    border: 1px solid var(--primary-color);
}

.md-panel-chevron {
    color: rgba(0, 0, 0, 0.54) !important;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.md-panel.is-open .md-panel-chevron {
    color: var(--primary-dark) !important;
}

/* Panel body — oculto por defecto */
.md-panel-body,
.historial-detalle {
    display: none;
    padding: 8px 0 4px;
    background: #fff;
}

.historial-jugadoras {
    list-style: none;
    padding: 0;
    margin: 0;
}

.historial-resumen {
    padding: 8px 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.historial-resumen-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.historial-resumen-row span {
    color: var(--text-secondary) !important;
}

.historial-resumen-row strong {
    color: var(--primary-dark) !important;
    font-weight: 600;
    white-space: nowrap;
}

.historial-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.historial-row--paid {
    background: rgba(255, 249, 196, 0.25);
}

.historial-row-nombre {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: rgba(0, 0, 0, 0.87) !important;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.historial-row-trailing {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: 16px;
}

.historial-row-icon-wrap {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.historial-page .historial-row-icon.material-icons {
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    font-size: 20px !important;
    line-height: 1 !important;
    display: block !important;
    color: #2E7D32 !important;
}

.historial-row-monto {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25rem;
    color: rgba(0, 0, 0, 0.75) !important;
    white-space: nowrap;
    text-align: right;
}

/* Legacy cleanup */
.historial-item { /* alias */ }
.historial-toggle { /* alias */ }
.historial-subtitulo { display: none; }
.historial-jugadora { display: contents; }
.historial-jugadora-nombre,
.historial-jugadora-detalle,
.historial-jugadora-monto,
.historial-estado-pago { display: none; }

.historial-stats { margin: 0; }

@media (max-width: 600px) {
    .md-panel-header {
        grid-template-columns: auto 1fr auto;
    }

    .historial-header {
        margin-bottom: 20px;
    }

    .historial-row {
        padding: 10px 14px;
    }

    .historial-row-trailing {
        margin-left: 12px;
        gap: 6px;
    }
}

/* Lista de jugadoras — inicio (una fila, nombre amarillo) */
.descAlumnList--inicio {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-template-columns: 1fr;
}

.descAlumnList--inicio .cardAlumn {
    background-color: var(--primary-light);
    border-radius: 8px;
    padding: 8px;
    margin: 0;
}

.descAlumnList--inicio .jugadora-inicio-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.descAlumnList--inicio li h4 {
    flex: 0 1 auto;
    max-width: 55%;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.descAlumnList--inicio .jugadora-inicio-trailing {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.descAlumnList--inicio .jugadora-inicio-monto {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25rem;
    color: rgba(0, 0, 0, 0.75) !important;
    white-space: nowrap;
}

.descAlumnList--inicio .icon-pagado {
    font-size: 22px !important;
    line-height: 1 !important;
    color: var(--primary-dark) !important;
}

.descAlumnList--inicio .pendiente-badge {
    margin-left: 0;
}

@media (max-width: 480px) {
    .descAlumnList--inicio li h4 {
        max-width: 45%;
        font-size: 1em;
    }

    .descAlumnList--inicio .jugadora-inicio-monto {
        font-size: 0.88rem;
    }
}

.jugadora-resumen {
    margin: 6px 0 0 0;
    font-size: 0.92em;
    color: var(--text-secondary);
}

.pendiente-badge {
    display: inline-block;
    background: #FFECB3;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.85em;
    margin-left: 6px;
}

.btn-agregar {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-primary) !important;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-agregar:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

.login-section {
    max-width: 420px;
    margin: 0 auto;
}

.login-form .dias-input {
    flex-direction: column;
    align-items: stretch;
}

.login-error {
    color: #c62828;
    text-align: center;
    margin: 12px 0;
    font-weight: 500;
}

.admin-bar {
    text-align: right;
    margin: 0 0 12px;
    font-size: 0.9rem;
}

.admin-bar a {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

.pozo-resumen h2,
.pozo-movimientos h3,
.pozo-admin h3 {
    margin-top: 0;
}

.pozo-saldo-card {
    background: var(--primary-light);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin: 20px 0;
    box-shadow: var(--elevation-2);
}

.pozo-saldo-label {
    display: block;
    font-size: 0.95rem;
    color: #000 !important;
    margin-bottom: 8px;
}

.pozo-saldo-valor {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #000 !important;
    line-height: 1.2;
}

.pozo-totales {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.pozo-total-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--primary-light);
}

.pozo-total-item span {
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
}

.pozo-total-item strong {
    font-size: 1.1rem;
}

.pozo-total-item--ingreso strong {
    color: #2e7d32 !important;
}

.pozo-total-item--egreso strong {
    color: #c62828 !important;
}

.pozo-lista {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--elevation-1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.pozo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.pozo-row--ingreso {
    background: rgba(76, 175, 80, 0.06);
}

.pozo-row--egreso {
    background: rgba(244, 67, 54, 0.06);
}

.pozo-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pozo-row-concepto {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pozo-row-fecha {
    font-size: 0.82rem;
    color: var(--text-secondary) !important;
}

.pozo-row-trailing {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pozo-row-monto {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.pozo-row--ingreso .pozo-row-monto {
    color: #2e7d32 !important;
}

.pozo-row--egreso .pozo-row-monto {
    color: #c62828 !important;
}

.pozo-row-borrar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c62828 !important;
    text-decoration: none;
    opacity: 0.85;
}

.pozo-row-borrar:hover {
    opacity: 1;
}

.pozo-row-borrar .material-icons {
    font-size: 1.2rem;
}

.pozo-form-submit {
    display: flex;
    align-items: end;
}

.pozo-opcional {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary) !important;
}

.pozo-msg {
    text-align: center;
    margin: 0 0 16px;
    font-weight: 500;
}

.pozo-msg--ok {
    color: #2e7d32 !important;
}

.fondo-mes-section {
    margin-top: 24px;
}

.fondo-mes-stats {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.fondo-mes-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 14px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--elevation-1);
}

.fondo-mes-stat strong {
    font-size: 1.05em;
}

.fondo-mes-aplicado {
    margin: 12px 0;
}

.fondo-mes-cerrado {
    color: var(--text-secondary);
    margin: 8px 0 12px;
    font-size: 0.95em;
}

.fondo-mes-preview,
.fondo-mes-sin-saldo {
    color: var(--text-secondary);
    margin: 12px 0;
}

.fondo-btn {
    margin-top: 8px;
}

.fondo-btn--aplicar {
    background: var(--primary-dark) !important;
}

.fondo-msg--error {
    color: #b00020;
    margin: 12px 0;
}

.stat-item--fondo .stat-value {
    color: var(--primary-dark);
}

.pozo-msg--error {
    color: #c62828 !important;
}

/* Pozo: layout mobile en todas las pantallas */
.pozo-page {
    font-family: 'Roboto', sans-serif;
}

.pozo-page #content {
    max-width: 480px;
    margin: 0 auto;
    padding: 10px;
}

.pozo-page section.pozo-resumen,
.pozo-page section.pozo-admin,
.pozo-page section.pozo-movimientos {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 16px !important;
    box-shadow: none !important;
    margin: 0 0 8px 0 !important;
}

.pozo-page section:hover {
    box-shadow: none !important;
}

.pozo-page h2 {
    font-size: 1.5rem;
}

.pozo-page h3 {
    font-size: 1.15rem;
    margin: 16px 0 10px;
    text-align: left;
}

.pozo-page .pozo-saldo-valor {
    font-size: 1.6rem;
}

.pozo-page .pozo-saldo-card {
    margin: 16px 0;
}

.pozo-page .form-dias {
    padding: 16px;
    margin: 8px 0 16px;
}

.pozo-page .dias-input {
    grid-template-columns: 1fr;
}

.pozo-page .pozo-form-submit {
    margin-top: 4px;
}

.pozo-page .pozo-row {
    flex-wrap: wrap;
}

.pozo-page .pozo-row-trailing {
    width: 100%;
    justify-content: space-between;
}

.pozo-page .pozo-movimientos h3 {
    text-align: center;
    margin-bottom: 12px;
}
