/* =============================================================================
   SABORA · INFORMES Y LIQUIDACIONES
   -----------------------------------------------------------------------------
   Extraído de los bloques <style> que vivían dentro de los .razor. Se conserva
   el origen de cada tramo para poder seguir migrándolo a componentes.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Pages/Reports/CobranzaMorosidad.razor
   -------------------------------------------------------------------------- */
    .morosidad-compact-card .analytics-filter-card__header {
        display: flex;
        gap: 1.5rem;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .morosidad-header {
        min-width: 240px;
    }

    .morosidad-meta {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
    }

    .morosidad-period-control {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
    }

    .morosidad-period-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        border: 1px solid #f1e0d8;
        border-radius: 0.75rem;
        background: var(--sb-neutral-0);
        color: var(--sb-brand);
        box-shadow: 0 12px 26px -22px rgba(15, 23, 42, 0.45);
        transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .morosidad-period-button:hover:not(:disabled) {
        transform: translateY(-1px);
        border-color: rgba(200, 40, 0, 0.35);
        box-shadow: 0 16px 30px -22px rgba(200, 40, 0, 0.45);
    }

    .morosidad-period-button:disabled {
        cursor: not-allowed;
        opacity: 0.45;
    }

    .morosidad-period-chip {
        position: relative;
        cursor: pointer;
        margin: 0;
    }

    .morosidad-period-chip input {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    .morosidad-period-chip input:disabled {
        cursor: not-allowed;
    }

    .morosidad-body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        align-items: stretch;
    }

    .morosidad-filter-row {
        display: grid;
        grid-template-columns: minmax(220px, 1fr) auto auto;
        gap: 1rem;
        align-items: end;
    }

    .morosidad-filter-row.is-hidden {
        display: none;
    }

    .morosidad-summary-row {
        display: flex;
        gap: 1.25rem;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 1rem 1.25rem;
        border-radius: 1rem;
        background: var(--sb-neutral-0);
        border: 1px solid #f1e0d8;
        box-shadow: 0 20px 45px -35px rgba(200, 40, 0, 0.35);
    }

    .morosidad-note {
        flex: 1 1 320px;
        display: flex;
        gap: 0.65rem;
        align-items: center;
        font-size: 0.92rem;
        color: var(--sb-neutral-600);
    }

    .morosidad-note i {
        color: var(--sb-brand);
    }

    .morosidad-total {
        flex: 0 0 auto;
        display: grid;
        gap: 0.15rem;
        text-align: right;
    }

    .morosidad-total-label {
        text-transform: uppercase;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        color: var(--sb-neutral-500);
        font-weight: 700;
    }

    .morosidad-total-value {
        font-size: 1.75rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
    }

    @media (max-width: 900px) {
        .morosidad-filter-row {
            grid-template-columns: 1fr;
        }

        .morosidad-summary-row {
            text-align: left;
        }

        .morosidad-total {
            text-align: left;
        }
    }

    .morosidad-search {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.45rem 0.75rem;
        border: 1px solid var(--sb-neutral-200);
        border-radius: 999px;
        background: var(--sb-neutral-0);
        box-shadow: 0 10px 25px -22px rgba(15, 23, 42, 0.45);
        min-width: 220px;
    }

    .morosidad-search i {
        color: var(--sb-neutral-400);
        font-size: 0.9rem;
    }

    .morosidad-search input {
        border: none;
        outline: none;
        width: 100%;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--sb-neutral-900);
    }

    .morosidad-student-cell {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .morosidad-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        overflow: hidden;
        background: var(--sb-neutral-100);
        color: var(--sb-neutral-900);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.9rem;
        flex-shrink: 0;
        border: 1px solid var(--sb-neutral-200);
    }

    .morosidad-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
    }

    .morosidad-student-link {
        color: inherit;
        text-decoration: none;
    }

    .morosidad-student-link:hover {
        color: inherit;
        text-decoration: none;
    }

    .morosidad-select {
        min-width: 200px;
        width: 220px;
        height: 38px;
        padding: 0 0.85rem;
        border-radius: 0.9rem;
    }

    .morosidad-alert-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.55rem 0.9rem;
        border: 1px solid var(--sb-amber-500);
        border-radius: 999px;
        background: linear-gradient(135deg, #fff7ed, #ffedd5);
        color: #9a3412;
        font-weight: 700;
        font-size: 0.88rem;
        transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
        box-shadow: 0 12px 24px -20px rgba(194, 65, 12, 0.7);
    }

    .morosidad-alert-button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 16px 28px -20px rgba(194, 65, 12, 0.85);
    }

    .morosidad-alert-button:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

    .morosidad-alert-button.is-sent {
        border-color: var(--sb-green-600);
        background: linear-gradient(135deg, #f0fdf4, var(--sb-green-100));
        color: var(--sb-green-800);
    }

    .btn-clear-filters {
        border: none;
        background: var(--sb-neutral-0);
        color: var(--sb-neutral-500);
        font-weight: 700;
        padding: 0.55rem 0.95rem;
        border-radius: 0.9rem;
        border: 1px solid var(--sb-neutral-200);
        transition: all 0.2s ease;
    }

    .btn-clear-filters:hover {
        color: var(--sb-neutral-900);
        border-color: #cbd5f5;
        box-shadow: 0 10px 18px -14px rgba(15, 23, 42, 0.3);
    }

    .table-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }

    .table-actions .table-search {
        width: 220px;
        min-width: 220px;
    }

    .btn-clear-filters {
        white-space: nowrap;
    }

    .morosidad-bulk-action {
        margin-left: auto;
    }

    .morosidad-photo-zoom-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.72);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: var(--sb-z-drawer);
        padding: 1.5rem;
    }

    .morosidad-photo-zoom-container {
        position: relative;
        max-width: min(90vw, 620px);
        width: 100%;
        background: var(--sb-neutral-0);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
    }

    .morosidad-photo-zoom-container img {
        display: block;
        width: 100%;
        height: auto;
    }

    .morosidad-photo-zoom-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        border: none;
        background: rgba(15, 23, 42, 0.75);
        color: var(--sb-neutral-0);
        width: 36px;
        height: 36px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

/* ----------------------------------------------------------------------------
   Pages/Reports/ReporteCaja.razor
   -------------------------------------------------------------------------- */
    .report-filters {
        display: flex;
        gap: 16px;
        align-items: flex-end;
        padding: 16px;
        background-color: var(--surface-2);
        border-radius: 8px;
        margin-bottom: 24px;
    }
    .report-filter-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .report-filter-item label {
        font-size: 13px;
        color: var(--text-2);
        font-weight: 500;
    }
    .luxury-badge.is-efectivo {
        background: var(--sb-green-100);
        color: var(--sb-green-800);
    }
    .luxury-badge.is-tarjeta {
        background: #e0e7ff;
        color: #3730a3;
    }
    .table-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .table-search {
        min-width: 240px;
        height: 38px;
        padding: 0 1rem;
        border-radius: 0.9rem;
    }

    .table-search-select {
        min-width: 160px;
        height: 38px;
        padding: 0 0.8rem;
        border-radius: 0.9rem;
    }

    .summary-cards {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 24px;
        width: 100%;
    }

    .caja-student-cell {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .caja-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        overflow: hidden;
        background: var(--sb-neutral-100);
        color: var(--sb-neutral-900);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.82rem;
        flex-shrink: 0;
        border: 1px solid var(--sb-neutral-200);
    }

    .caja-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
    }

    .caja-student-link {
        color: inherit;
        text-decoration: none;
        font-weight: 700;
    }

    .caja-student-link:hover {
        color: inherit;
        text-decoration: none;
    }

    .caja-photo-zoom-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.72);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: var(--sb-z-drawer);
        padding: 1.5rem;
    }

    .caja-photo-zoom-container {
        position: relative;
        max-width: min(90vw, 620px);
        width: 100%;
        background: var(--sb-neutral-0);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
    }

    .caja-photo-zoom-container img {
        display: block;
        width: 100%;
        height: auto;
    }

    .caja-photo-zoom-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        border: none;
        background: rgba(15, 23, 42, 0.75);
        color: var(--sb-neutral-0);
        width: 36px;
        height: 36px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    @media (max-width: 768px) {
        .table-header-luxury {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
        }
        .table-actions {
            flex-direction: column;
            align-items: stretch;
        }
        .table-search {
            width: 100%;
            min-width: 0;
        }
        .table-search-select {
            width: 100%;
            min-width: 0;
        }
        .summary-cards {
            grid-template-columns: 1fr;
        }
    }

/* ----------------------------------------------------------------------------
   Pages/Reports/ReporteProfesoresDetallado.razor
   -------------------------------------------------------------------------- */
    .period-trigger-pill {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        min-width: 240px;
        min-height: 60px;
        width: 100%;
        padding: 0.85rem 1rem 0.85rem 1.15rem;
        border: 1px solid rgba(200, 40, 0, 0.14);
        border-radius: 1.3rem;
        background: linear-gradient(135deg, #f8fbff 0%, var(--sb-neutral-0) 55%, #fff4ef 100%);
        box-shadow: 0 18px 35px -28px rgba(15, 23, 42, 0.45);
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .period-trigger-pill:hover,
    .period-trigger-pill:focus-visible {
        transform: translateY(-1px);
        border-color: rgba(200, 40, 0, 0.3);
        box-shadow: 0 24px 44px -28px rgba(200, 40, 0, 0.32);
        outline: none;
    }

    .period-trigger-pill--active {
        border-color: rgba(200, 40, 0, 0.36);
        box-shadow: 0 24px 44px -28px rgba(200, 40, 0, 0.32);
    }

    .period-trigger-pill__value {
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--sb-neutral-800);
        letter-spacing: 0.02em;
    }

    .period-trigger-pill__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.3rem;
        height: 2.3rem;
        border-radius: 0.95rem;
        background: rgba(200, 40, 0, 0.1);
        color: var(--sb-brand);
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .period-picker-overlay {
        position: fixed;
        inset: 0;
        z-index: var(--sb-z-modal);
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: clamp(6rem, 14vh, 9rem) 1rem 1.5rem;
        background: rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        animation: fadeInOverlay 0.18s ease;
    }

    .period-popover-report {
        position: relative;
        width: min(420px, calc(100vw - 1.5rem));
        background: linear-gradient(180deg, var(--sb-neutral-0) 0%, #fffaf8 100%);
        border-radius: 1.5rem;
        box-shadow: 0 34px 70px -26px rgba(15, 23, 42, 0.42);
        border: 1px solid rgba(200, 40, 0, 0.14);
        overflow: hidden;
        animation: slideUpModal 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .period-popover-report::before {
        display: none;
    }

    .period-popover-report__body {
        position: relative;
        display: grid;
        gap: 1rem;
        padding: 1.2rem 1.2rem 1.1rem;
    }

    .period-popover-report__header {
        display: grid;
        gap: 0.2rem;
    }

    .period-popover-report__eyebrow {
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--sb-brand);
    }

    .period-popover-report__header strong {
        font-size: 1.1rem;
        color: var(--sb-neutral-800);
    }

    .period-popover-report__copy {
        margin: 0;
        font-size: 0.82rem;
        line-height: 1.45;
        color: var(--sb-neutral-500);
    }

    .period-popover-report__actions {
        display: flex;
        gap: 0.7rem;
    }

    .period-action {
        flex: 1;
        min-height: 42px;
        border: none;
        border-radius: 0.95rem;
        font-size: 0.88rem;
        font-weight: 800;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .period-action:hover {
        transform: translateY(-1px);
    }

    .period-action--primary {
        background: linear-gradient(135deg, var(--sb-brand) 0%, #e33a0e 100%);
        color: var(--sb-neutral-0);
        box-shadow: 0 16px 26px -20px rgba(200, 40, 0, 0.6);
    }

    .period-action--primary:hover {
        box-shadow: 0 20px 32px -20px rgba(200, 40, 0, 0.7);
    }

    .period-action--secondary {
        background: var(--sb-neutral-150);
        color: var(--sb-neutral-700);
    }

    .period-action--secondary:hover {
        background: var(--sb-neutral-200);
    }

    /* ───────────── Botón lupa ───────────── */
    .btn-desglose {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: rgba(200, 40, 0, 0.08);
        color: var(--sb-brand);
        font-size: 0.95rem;
        cursor: pointer;
        transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    }
    .btn-desglose:hover {
        background: rgba(200, 40, 0, 0.18);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(200, 40, 0, 0.2);
    }

    .btn-ajuste-manual {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 9px;
        border: 1px solid rgba(15, 23, 42, 0.14);
        background: var(--sb-neutral-0);
        color: var(--sb-neutral-600);
        transition: all 0.15s ease;
    }

    .btn-ajuste-manual:hover {
        border-color: rgba(200, 40, 0, 0.35);
        color: var(--sb-brand);
        background: #fff5f3;
    }

    .btn-ajuste-manual--active {
        border-color: rgba(16, 124, 65, 0.38);
        background: #ecfdf3;
        color: #107c41;
    }

    /* Nota bajo el pago final: lo que el datáfono le resta al profesor ese mes. Sin
       ella el pago no cuadraba con el porcentaje del esquema y parecía un error. */
    .report-tpv-note {
        margin-top: 2px;
        color: var(--sb-text-muted);
        font-weight: var(--sb-weight-normal);
        white-space: nowrap;
    }

    .profesor-link {
        color: inherit;
        text-decoration: none;
        border-bottom: 1px dashed rgba(200, 40, 0, 0.35);
    }

    .profesor-link:hover {
        color: var(--sb-brand);
        border-bottom-color: var(--sb-brand);
    }

    /* ───────────── Overlay y modal ───────────── */
    .desglose-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(4px);
        z-index: var(--sb-z-modal);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        animation: fadeInOverlay 0.2s ease;
    }

    @keyframes fadeInOverlay {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    .desglose-modal {
        background: var(--sb-neutral-0);
        border-radius: 1.5rem;
        width: 100%;
        max-width: min(1220px, 96vw);
        max-height: 92vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 30px 80px -10px rgba(0,0,0,0.35);
        animation: slideUpModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        overflow: hidden;
    }

    @keyframes slideUpModal {
        from { opacity: 0; transform: translateY(40px) scale(0.97); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .desglose-modal-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 1.5rem 1.75rem 1.25rem;
        border-bottom: 1px solid var(--sb-neutral-100);
        background: linear-gradient(135deg, #fff5f3 0%, var(--sb-neutral-0) 100%);
        flex-shrink: 0;
    }

    .desglose-modal-title {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--sb-neutral-800);
    }

    .desglose-modal-subtitle {
        font-size: 0.85rem;
        color: var(--sb-neutral-500);
        margin-top: 0.25rem;
        font-weight: 500;
    }

    .desglose-modal-actions {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .btn-desglose-export {
        border: 1px solid rgba(16, 124, 65, 0.25);
        background: linear-gradient(135deg, #107c41 0%, #0f6a38 100%);
        color: var(--sb-neutral-0);
        border-radius: 0.8rem;
        height: 38px;
        padding: 0 0.9rem;
        font-size: 0.77rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    }

    .btn-desglose-export:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px -12px rgba(16, 124, 65, 0.7);
    }

    .btn-desglose-export:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

    .desglose-close-btn {
        background: none;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        color: var(--sb-neutral-400);
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        flex-shrink: 0;
    }
    .desglose-close-btn:hover {
        background: var(--sb-red-100);
        color: var(--sb-brand);
    }

    .desglose-modal-body {
        overflow-y: auto;
        padding: 1.25rem 1.75rem 1.5rem;
        flex: 1;
    }

    /* ───────────── Bloques por clase ───────────── */
    .desglose-clase-bloque {
        margin-bottom: 1.5rem;
        border-radius: 1rem;
        border: 1px solid var(--sb-neutral-200);
        overflow: hidden;
    }

    .desglose-clase-header {
        display: flex;
        align-items: center;
        padding: 0.65rem 1rem;
        background: linear-gradient(90deg, var(--sb-brand) 0%, #e03010 100%);
        color: var(--sb-neutral-0);
        font-weight: 700;
        font-size: 0.9rem;
        letter-spacing: 0.02em;
    }

    .desglose-accordion-summary {
        cursor: pointer;
        list-style: none;
    }

    .desglose-accordion-summary::-webkit-details-marker {
        display: none;
    }

    .desglose-accordion-summary::before {
        content: "▾";
        display: inline-block;
        margin-right: 0.55rem;
        font-size: 0.82rem;
        transition: transform 0.18s ease;
    }

    .desglose-accordion:not([open]) .desglose-accordion-summary::before {
        transform: rotate(-90deg);
    }

    .desglose-horario-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        margin-left: 0.55rem;
        padding: 0.18rem 0.45rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        color: #fff7ed;
        font-size: 0.74rem;
        font-weight: 700;
    }

    .desglose-clase-total {
        font-size: 1rem;
        font-weight: 800;
        color: #ffd6ce;
    }

    .desglose-clase-total-final {
        margin-left: 0.9rem;
        font-size: 0.78rem;
        font-weight: 700;
        color: #ffe9c7;
    }

    /* ───────────── Tabla interna ───────────── */
    .desglose-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.95rem;
    }

    .desglose-table thead tr {
        background: var(--sb-neutral-50);
    }

    .desglose-table th {
        padding: 0.62rem 1rem;
        font-size: 0.76rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--sb-neutral-500);
        border-bottom: 1px solid var(--sb-neutral-200);
    }

    .desglose-table td {
        padding: 0.7rem 1rem;
        border-bottom: 1px solid var(--sb-neutral-100);
        color: var(--sb-neutral-700);
        vertical-align: middle;
    }

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

    .desglose-table tbody tr:hover td {
        background: #fff5f3;
    }

    .desglose-table-subtotal td {
        background: var(--sb-neutral-50);
        border-top: 1px solid var(--sb-neutral-200);
        padding: 0.45rem 0.85rem;
    }

    .desglose-recibo-badge {
        display: inline-block;
        background: var(--sb-neutral-100);
        border-radius: 0.5rem;
        padding: 0.1rem 0.45rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--sb-neutral-600);
    }

    .desglose-alumno-link {
        color: inherit;
        font-weight: 750;
        font-size: 0.98rem;
        text-decoration: none;
        border-bottom: 1px dashed transparent;
        transition: color 0.15s ease, border-color 0.15s ease;
    }

    .desglose-alumno-link:hover {
        color: #0f766e;
        border-color: rgba(15, 118, 110, 0.45);
    }

    /* ───────────── Total final ───────────── */
    .desglose-total-final {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 1.25rem;
        padding: 1rem 1.25rem;
        background: linear-gradient(135deg, var(--sb-neutral-800) 0%, var(--sb-neutral-900) 100%);
        border-radius: 1rem;
        color: var(--sb-neutral-0);
    }

    .desglose-total-item {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        min-width: 0;
    }

    .desglose-total-label {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: var(--sb-neutral-400);
        text-transform: uppercase;
    }

    .desglose-total-valor {
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--sb-neutral-0);
    }

    .ajuste-modal {
        background: var(--sb-neutral-0);
        border-radius: 1.2rem;
        width: 100%;
        max-width: 560px;
        box-shadow: 0 24px 64px -18px rgba(15, 23, 42, 0.45);
        overflow: hidden;
    }

    .ajuste-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.2rem;
        border-bottom: 1px solid var(--sb-neutral-150);
        background: linear-gradient(135deg, #fff5f3 0%, var(--sb-neutral-0) 100%);
    }

    .ajuste-modal-title {
        font-size: 1rem;
        font-weight: 800;
        color: var(--sb-neutral-800);
    }

    .ajuste-modal-subtitle {
        margin-top: 0.2rem;
        font-size: 0.82rem;
        color: var(--sb-neutral-500);
    }

    .ajuste-modal-body {
        padding: 1rem 1.2rem 1.2rem;
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .ajuste-info-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.25rem;
        background: var(--sb-neutral-50);
        border-radius: 0.75rem;
        padding: 0.7rem 0.8rem;
        font-size: 0.82rem;
        color: var(--sb-neutral-700);
        margin-bottom: 0.15rem;
    }

    .ajuste-registrado-card {
        border: 1px solid var(--sb-blue-100);
        background: #f8fbff;
        border-radius: 0.75rem;
        padding: 0.55rem 0.65rem;
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        margin-bottom: 0.2rem;
    }

    .ajuste-registrado-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.6rem;
    }

    .ajuste-registrado-title {
        font-size: 0.74rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #1e3a8a;
    }

    .ajuste-registrado-list {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .ajuste-registrado-item {
        border: 1px solid #dbe3f1;
        background: var(--sb-neutral-0);
        border-radius: 0.6rem;
        padding: 0.4rem 0.55rem;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 0.08rem;
        transition: border-color 0.15s ease, background 0.15s ease;
    }

    .ajuste-registrado-item:hover {
        border-color: rgba(16, 124, 65, 0.45);
        background: #f1f8f4;
    }

    .ajuste-registrado-item.is-selected {
        border-color: rgba(16, 124, 65, 0.6);
        background: #e9f9ef;
    }

    .ajuste-registrado-importe {
        font-size: 0.92rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
    }

    .ajuste-registrado-meta {
        font-size: 0.73rem;
        color: var(--sb-neutral-500);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-ajuste-link {
        border: none;
        background: transparent;
        color: #0f6a38;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 0;
        text-decoration: underline;
    }

    .ajuste-label {
        font-size: 0.76rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--sb-neutral-500);
    }

    .ajuste-input,
    .ajuste-textarea {
        border: 1px solid var(--sb-neutral-300);
        border-radius: 0.7rem;
        padding: 0.55rem 0.65rem;
        font-size: 0.9rem;
        color: var(--sb-neutral-900);
        outline: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .ajuste-input:focus,
    .ajuste-textarea:focus {
        border-color: rgba(200, 40, 0, 0.45);
        box-shadow: 0 0 0 3px rgba(200, 40, 0, 0.12);
    }

    .ajuste-textarea {
        resize: vertical;
        min-height: 84px;
    }

    .ajuste-actions {
        margin-top: 0.65rem;
        display: flex;
        justify-content: space-between;
        gap: 0.7rem;
        align-items: center;
    }

    .ajuste-actions-right {
        display: flex;
        gap: 0.55rem;
        align-items: center;
    }

    .btn-ajuste-delete,
    .btn-ajuste-cancel,
    .btn-ajuste-save {
        border: none;
        border-radius: 0.7rem;
        height: 36px;
        padding: 0 0.8rem;
        font-weight: 700;
        font-size: 0.82rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .btn-ajuste-delete {
        background: var(--sb-red-50);
        color: var(--sb-red-700);
    }

    .btn-ajuste-cancel {
        background: var(--sb-neutral-150);
        color: var(--sb-neutral-700);
    }

    .btn-ajuste-save {
        background: linear-gradient(135deg, #107c41 0%, #0f6a38 100%);
        color: var(--sb-neutral-0);
    }

    .btn-ajuste-delete:hover:not(:disabled),
    .btn-ajuste-cancel:hover:not(:disabled),
    .btn-ajuste-save:hover:not(:disabled) {
        transform: translateY(-1px);
    }

    .btn-ajuste-delete:disabled,
    .btn-ajuste-cancel:disabled,
    .btn-ajuste-save:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    @media (max-width: 768px) {
        .period-trigger-pill {
            min-width: 100%;
        }

        .period-picker-overlay {
            padding: 5.25rem 0.75rem 1rem;
            align-items: flex-start;
        }

        .period-popover-report {
            width: min(100%, calc(100vw - 1.5rem));
        }

        .period-popover-report__actions {
            flex-direction: column;
        }

        .desglose-modal-actions {
            width: 100%;
            justify-content: flex-end;
        }

        .btn-desglose-export {
            width: auto;
        }

        .ajuste-actions {
            flex-direction: column-reverse;
            align-items: stretch;
        }

        .ajuste-actions-right {
            width: 100%;
            justify-content: stretch;
        }

        .btn-ajuste-cancel,
        .btn-ajuste-save,
        .btn-ajuste-delete {
            width: 100%;
        }
    }

/* ----------------------------------------------------------------------------
   Pages/Reports/ReportesAlumnos.razor
   -------------------------------------------------------------------------- */
    .bg-gradient-primary {
        background: linear-gradient(135deg, #678300 0%, #89ab00 100%);
    }
    .badge.bg-emitido { background-color: #ffc107; color: #000; }
    .badge.bg-pagado { background-color: #198754; color: var(--sb-neutral-0); }
    .badge.bg-vencido { background-color: #dc3545; color: var(--sb-neutral-0); }
