.dashboard-shell {
    --primary: #3a69c0;
    --primary-dark: #2b529c;
    --secondary: #16a0db;
    --accent: #fcd85c;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;
    --success: #10b981;
    --success-light: #d1fae5;
    --success-text: #065f46;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-text: #92400e;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-text: #991b1b;
    --sidebar-width: 290px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-color: #3a69c0;
    --secondary-color: #16a0db;
    --card-background: #ffffff;
    --border-color: #e2e8f0;
    --botton-blue: #30b4fd;
    display: flex;
    min-height: 100vh;
    background-color: var(--background);
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.dashboard-shell * {
    box-sizing: border-box;
}

body:has(.ambiente-banner) .dashboard-shell .sidebar {
    top: 32px;
}

.dashboard-shell .sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary);
    color: var(--text-on-primary);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(58, 105, 192, 0.15);
}

.dashboard-shell .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-shell .sidebar-logo-inline {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.dashboard-shell .sidebar-logo-seal {
    width: 100%;
    max-width: 168px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid #fff;
    box-sizing: content-box;
}

.dashboard-shell .sidebar-brand-text {
    font-family: "DynaPuff", cursive;
    font-weight: 800;
    line-height: 1.1;
}

.dashboard-shell .text-row-top {
    font-size: 0.85rem;
    color: #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

.dashboard-shell .text-row-bottom {
    font-size: 1.4rem;
    white-space: nowrap;
    margin-top: 1px;
}

.dashboard-shell .word-sor {
    color: var(--accent);
    margin-right: 4px;
}

.dashboard-shell .word-juana {
    color: #f472b6;
}

.dashboard-shell .sidebar-menu {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.dashboard-shell .sidebar-menu a,
.dashboard-shell .nav-disabled {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 0.95rem;
}

.dashboard-shell .sidebar-menu a i,
.dashboard-shell .nav-disabled i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.dashboard-shell .sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-on-primary);
}

.dashboard-shell .sidebar-menu a.active {
    background-color: var(--accent);
    color: var(--text-main);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.dashboard-shell .nav-disabled {
    opacity: 0.45;
    cursor: default;
}

.dashboard-shell .sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-shell .btn-logout {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--text-on-primary);
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.dashboard-shell .btn-logout:hover {
    background-color: var(--danger);
}

.dashboard-shell .main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 40px;
    width: calc(100% - var(--sidebar-width));
    position: relative;
    container-type: inline-size;
    container-name: dashboard-main;
}

.dashboard-shell .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--surface);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
    gap: 24px;
    border-bottom: 3px solid var(--secondary);
}

.dashboard-shell .search-box {
    flex-grow: 1;
    max-width: 400px;
    position: relative;
}

.dashboard-shell .search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.dashboard-shell .search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.9rem;
    background-color: #f8fafc;
    font-family: inherit;
}

.dashboard-shell .search-box input:focus {
    border-color: var(--primary);
    background-color: var(--surface);
    box-shadow: 0 0 0 3px rgba(58, 105, 192, 0.1);
}

.dashboard-shell .navbar.navbar-end {
    justify-content: flex-end;
}

.dashboard-shell .nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dashboard-shell .cycle-select {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    outline: none;
    background-color: var(--surface);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    font-family: inherit;
    min-width: 180px;
}

.dashboard-shell .cycle-select:hover {
    border-color: var(--primary);
}

.dashboard-shell .btn-icon-nav {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    padding: 4px;
}

.dashboard-shell .btn-icon-nav:hover {
    color: var(--text-main);
}

.dashboard-shell .btn-icon-nav::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
}

.dashboard-shell .user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.dashboard-shell .user-profile i {
    background-color: #e2e8f0;
    color: var(--primary);
    padding: 8px;
    border-radius: 50%;
}

.dashboard-shell .kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-shell .kpi-card {
    background-color: var(--surface);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 5px solid var(--primary);
}

.dashboard-shell .kpi-card.teachers { border-left-color: var(--secondary); }
.dashboard-shell .kpi-card.attendance { border-left-color: var(--success); }
.dashboard-shell .kpi-card.finance { border-left-color: var(--warning); }

.dashboard-shell .kpi-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.dashboard-shell .kpi-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-shell .kpi-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.dashboard-shell .students .kpi-icon-wrapper { background-color: #eff6ff; color: var(--primary); }
.dashboard-shell .teachers .kpi-icon-wrapper { background-color: #ecf8ff; color: var(--secondary); }
.dashboard-shell .attendance .kpi-icon-wrapper { background-color: #ecfdf5; color: var(--success); }
.dashboard-shell .finance .kpi-icon-wrapper { background-color: #fffbeb; color: var(--warning); }

.dashboard-shell .chart-wrapper-scroll {
    width: 100%;
    overflow-x: auto;
}

.dashboard-shell .ingresos-duo {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: 32px;
    align-items: stretch;
    margin-bottom: 32px;
}

.dashboard-shell .ingresos-duo > .panel {
    margin-bottom: 0;
}

.dashboard-shell .grado-donut-layout {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 240px;
}

.dashboard-shell .grado-donut {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
}

.dashboard-shell .grado-donut-hole {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: inset 0 0 0 1px #eef2f7;
    position: relative;
    z-index: 2;
}

.dashboard-shell .grado-donut-hole strong {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.1;
}

.dashboard-shell .grado-donut-hole span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dashboard-shell .grado-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.dashboard-shell .grado-legend li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.dashboard-shell .grado-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dashboard-shell .grado-name {
    color: var(--text-muted);
    font-weight: 600;
}

.dashboard-shell .grado-legend strong {
    color: var(--text-main);
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-shell .chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 240px;
    padding-top: 32px;
    border-bottom: 2px solid #e2e8f0;
    min-width: 320px;
}

.dashboard-shell .ingresos-duo .chart-container {
    min-width: 0;
}

.dashboard-shell .chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 55px;
    height: 100%;
    justify-content: flex-end;
}

.dashboard-shell .chart-bar {
    width: 100%;
    height: var(--bar-h, 8%);
    background: linear-gradient(180deg, #a4bfe6 0%, var(--primary) 100%);
    border-radius: 6px 6px 0 0;
    position: relative;
    cursor: pointer;
    min-height: 8px;
}

.dashboard-shell .chart-value {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background-color: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.dashboard-shell .chart-bar:hover {
    background: linear-gradient(180deg, var(--secondary) 0%, var(--primary-dark) 100%);
}

.dashboard-shell .chart-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

@property --panel-donut {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}

.dashboard-shell .ingresos-duo.is-animated .chart-bar {
    height: 0;
    min-height: 0;
    animation: panel-bar-grow 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dashboard-shell .ingresos-duo.is-animated .chart-value {
    opacity: 0;
    animation: panel-chart-fade 0.35s ease forwards;
}

.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(1) .chart-bar { animation-delay: 0.05s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(2) .chart-bar { animation-delay: 0.14s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(3) .chart-bar { animation-delay: 0.23s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(4) .chart-bar { animation-delay: 0.32s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(5) .chart-bar { animation-delay: 0.41s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(6) .chart-bar { animation-delay: 0.5s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(1) .chart-value { animation-delay: 0.55s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(2) .chart-value { animation-delay: 0.64s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(3) .chart-value { animation-delay: 0.73s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(4) .chart-value { animation-delay: 0.82s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(5) .chart-value { animation-delay: 0.91s; }
.dashboard-shell .ingresos-duo.is-animated .chart-bar-wrapper:nth-child(6) .chart-value { animation-delay: 1s; }

.dashboard-shell .ingresos-duo.is-animated .grado-donut::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from -90deg, transparent var(--panel-donut), var(--surface) var(--panel-donut));
    animation: panel-donut-fill 1.15s ease-out forwards;
    z-index: 1;
    pointer-events: none;
}

.dashboard-shell .ingresos-duo.is-animated .grado-legend li {
    opacity: 0;
    animation: panel-chart-fade 0.4s ease forwards;
}

.dashboard-shell .ingresos-duo.is-animated .grado-legend li:nth-child(1) { animation-delay: 0.35s; }
.dashboard-shell .ingresos-duo.is-animated .grado-legend li:nth-child(2) { animation-delay: 0.5s; }
.dashboard-shell .ingresos-duo.is-animated .grado-legend li:nth-child(3) { animation-delay: 0.65s; }
.dashboard-shell .ingresos-duo.is-animated .grado-legend li:nth-child(4) { animation-delay: 0.8s; }
.dashboard-shell .ingresos-duo.is-animated .grado-legend li:nth-child(5) { animation-delay: 0.95s; }

@keyframes panel-bar-grow {
    from { height: 0; }
    to { height: var(--bar-h, 8%); }
}

@keyframes panel-donut-fill {
    from { --panel-donut: 0%; }
    to { --panel-donut: 100%; }
}

@keyframes panel-chart-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:not(.data-table-section),
.dashboard-shell .event-list .event-item {
    opacity: 0;
    transform: translateY(10px);
    animation: panel-row-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dashboard-shell .data-table tbody tr.data-table-section {
    opacity: 1;
    transform: none;
    animation: none;
}

.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(1),
.dashboard-shell .event-list .event-item:nth-child(1) { animation-delay: 0.05s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(2),
.dashboard-shell .event-list .event-item:nth-child(2) { animation-delay: 0.12s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(3),
.dashboard-shell .event-list .event-item:nth-child(3) { animation-delay: 0.19s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(4),
.dashboard-shell .event-list .event-item:nth-child(4) { animation-delay: 0.26s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(5),
.dashboard-shell .event-list .event-item:nth-child(5) { animation-delay: 0.33s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(6) { animation-delay: 0.4s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(7) { animation-delay: 0.47s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(8) { animation-delay: 0.54s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(9) { animation-delay: 0.61s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(10) { animation-delay: 0.68s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(11) { animation-delay: 0.75s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(12) { animation-delay: 0.82s; }
.dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:nth-child(n+13) { animation-delay: 0.89s; }

@keyframes panel-row-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-shell .ingresos-duo.is-animated .chart-bar,
    .dashboard-shell .ingresos-duo.is-animated .chart-value,
    .dashboard-shell .ingresos-duo.is-animated .grado-donut::before,
    .dashboard-shell .ingresos-duo.is-animated .grado-legend li,
    .dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:not(.data-table-section),
    .dashboard-shell .event-list .event-item {
        animation: none;
    }

    .dashboard-shell :is(.data-table, .payments-table, .invoice-table, .attendance-table) tbody tr:not(.data-table-section),
    .dashboard-shell .event-list .event-item {
        opacity: 1;
        transform: none;
    }

    .dashboard-shell .ingresos-duo.is-animated .chart-bar {
        height: var(--bar-h, 8%);
        min-height: 8px;
    }

    .dashboard-shell .ingresos-duo.is-animated .chart-value,
    .dashboard-shell .ingresos-duo.is-animated .grado-legend li {
        opacity: 1;
    }

    .dashboard-shell .ingresos-duo.is-animated .grado-donut::before {
        content: none;
    }
}

.dashboard-shell .btn-action-danger {
    background-color: var(--danger);
}

.dashboard-shell .btn-action-danger:hover {
    background-color: var(--danger-text);
}

.dashboard-shell .dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.dashboard-shell .grupos-layout {
    grid-template-columns: 1fr 1fr;
}

.dashboard-shell .grupo-alumnos-lista {
    max-height: min(36vh, 320px);
    overflow-y: auto;
    margin-bottom: 8px;
}

.dashboard-shell .grupo-datos-grupo {
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.dashboard-shell .grupo-datos-grupo summary {
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 12px;
}

.dashboard-shell .grupo-candidatos {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
    margin: 12px 0 16px;
    padding: 4px;
}

.dashboard-shell .grupo-candidato {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
}

.dashboard-shell .grupo-candidato span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-shell .panel {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.dashboard-shell .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.dashboard-shell .panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.dashboard-shell .panel-title i {
    color: var(--primary);
}

.dashboard-shell .data-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    text-align: left;
}

.dashboard-shell .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-shell .table-panel-scroll {
    max-height: min(52vh, 420px);
    overflow-y: auto;
}

.dashboard-shell .table-panel-scroll .data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.dashboard-shell .table-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.dashboard-shell .table-row-actions .btn-secondary,
.dashboard-shell .table-row-actions .btn-danger,
.dashboard-shell .table-row-actions .btn-success {
    margin: 0;
}

.dashboard-shell .table-row-actions .btn-success {
    width: auto;
    min-width: 148px;
    margin-top: 0;
    padding: 10px 16px;
    font-size: 0.9rem;
}

.dashboard-shell .cargo-doc-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard-shell .cargo-doc-actions .btn-doc {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.dashboard-shell .cargo-doc-actions .btn-doc:disabled {
    opacity: 0.65;
    cursor: wait;
}

.dashboard-shell .cargo-doc-actions .btn-doc.is-pdf {
    background: #fee2e2;
    color: #dc2626;
}

.dashboard-shell .cargo-doc-actions .btn-doc.is-xml {
    background: #dbeafe;
    color: #2563eb;
}

.dashboard-shell .cargo-doc-actions .btn-doc.is-recibo {
    background: #f0f9ff;
    color: #38bdf8;
}

.dashboard-shell .cargo-doc-actions .btn-doc.is-comprobante {
    background: #ecfdf5;
    color: #059669;
}

.dashboard-shell .cargo-doc-actions .btn-doc.is-cfdi {
    background: #ffedd5;
    color: #ea580c;
}

.dashboard-shell .cargo-doc-actions .btn-doc.is-baja {
    background: #ffe4e6;
    color: #e11d48;
}

.dashboard-shell .cargo-doc-actions .btn-doc:hover:not(:disabled) {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.dashboard-shell .cargo-doc-actions .btn-doc::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    left: auto;
    transform: none;
    background: #0f172a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    display: none;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
    z-index: 5;
}

.dashboard-shell .cargo-doc-actions .btn-doc:hover:not(:disabled)::after,
.dashboard-shell .cargo-doc-actions .btn-doc:focus-visible::after {
    display: block;
}

.dashboard-shell .data-table th:last-child,
.dashboard-shell .data-table td:last-child,
.dashboard-shell .payments-table th:last-child,
.dashboard-shell .payments-table td:last-child {
    width: 1%;
    white-space: nowrap;
    padding-left: 8px;
    padding-right: 8px;
    text-align: right;
    vertical-align: middle;
}

.dashboard-shell .data-table th:first-child,
.dashboard-shell .data-table td:first-child {
    width: auto;
}

.dashboard-shell .data-table td:has(.cargo-doc-actions),
.dashboard-shell .payments-table td:has(.cargo-doc-actions) {
    overflow: visible;
}

.dashboard-shell .data-table th,
.dashboard-shell .data-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    border: none;
}

.dashboard-shell .data-table th {
    color: var(--text-muted);
    font-weight: 600;
    background-color: #f8fafc;
    border-bottom: 2px solid #edf2f7;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.dashboard-shell .data-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-shell .data-table tbody tr,
.dashboard-shell .invoice-table tbody tr,
.dashboard-shell .payments-table tbody tr,
.dashboard-shell .attendance-table tbody tr {
    transition: background-color 0.15s ease;
}

.dashboard-shell .data-table tbody tr:hover,
.dashboard-shell .invoice-table tbody tr:hover,
.dashboard-shell .payments-table tbody tr:hover,
.dashboard-shell .attendance-table tbody tr:hover {
    background-color: #eef4ff;
}

.dashboard-shell .data-table tbody tr.is-selected {
    background: #edf4ff;
}

.dashboard-shell .data-table tbody tr.is-selected:hover {
    background: #dbe7ff;
}

.dashboard-shell .data-table tbody tr.is-inactive td {
    opacity: 0.65;
}

.dashboard-shell .data-table tbody tr.data-table-section,
.dashboard-shell .data-table tbody tr.data-table-section:hover {
    background: #f1f5f9;
    cursor: default;
}

.dashboard-shell .data-table tbody tr.data-table-section td {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    padding-top: 10px;
    padding-bottom: 8px;
}

.dashboard-shell .aplicacion-select {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    background: #fff;
}

.dashboard-shell .concept-assign-lead {
    margin: 0 0 16px;
    color: var(--text-muted);
}

.dashboard-shell .badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dashboard-shell .badge.success { background-color: var(--success-light); color: var(--success-text); }
.dashboard-shell .badge.muted { background-color: #e2e8f0; color: #475569; }

.dashboard-shell .event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-shell .event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-shell .event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard-shell .event-date {
    background-color: #f0fdfa;
    color: var(--secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    min-width: 54px;
    border: 1px solid rgba(22, 160, 219, 0.15);
}

.dashboard-shell .event-info h4 {
    font-size: 0.9rem;
    margin: 0 0 2px;
}

.dashboard-shell .event-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.dashboard-shell .alert-box {
    background-color: var(--danger-light);
    border-left: 4px solid var(--danger);
    padding: 18px;
    border-radius: var(--radius-sm);
}

.dashboard-shell .alert-box.ok {
    background-color: var(--success-light);
    border-left-color: var(--success);
}

.dashboard-shell .alert-box p {
    font-size: 0.85rem;
    color: var(--danger-text);
    margin: 0;
    line-height: 1.5;
}

.dashboard-shell .alert-box.ok p {
    color: var(--success-text);
}

.dashboard-shell .dash-form .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dashboard-shell .dash-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    max-width: none;
}

.dashboard-shell .dash-form input[type="text"],
.dashboard-shell .dash-form input[type="date"],
.dashboard-shell .dash-form input[type="datetime-local"],
.dashboard-shell .dash-form input:not([type="checkbox"]):not([type="radio"]),
.dashboard-shell .dash-form select {
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    background: #fff;
}

.dashboard-shell .dash-form .req {
    color: var(--danger);
}

.dashboard-shell .dash-form label.is-invalid input:not([type="checkbox"]),
.dashboard-shell .dash-form label.is-invalid select {
    border-color: var(--danger);
    box-shadow: 0 0 0 1px var(--danger);
}

.dash-toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 240;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.dash-toast {
    pointer-events: auto;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 110;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    animation: dash-toast-in 0.28s ease-out;
}

.dash-toast-stack .dash-toast {
    position: static;
    max-width: none;
    width: 100%;
}

.dash-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.dash-toast-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
    line-height: 1.35;
}

.dash-toast-copy strong {
    font-size: 0.95rem;
}

.dash-toast-copy span {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: pre-line;
    opacity: 0.92;
}

.dash-toast-cerrar {
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.65;
    cursor: pointer;
    padding: 2px 4px;
    margin: -2px -4px 0 0;
    border-radius: 6px;
}

.dash-toast-cerrar:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.08);
}

.dash-toast-error {
    background: #fff;
    color: var(--danger-text);
    border: 1px solid #fecaca;
}

.dash-toast-error .dash-toast-icon {
    background: var(--danger-light);
    color: var(--danger);
}

.dash-toast-ok {
    background: #fff;
    color: var(--success-text);
    border: 1px solid #a7f3d0;
}

.dash-toast-ok .dash-toast-icon {
    background: var(--success-light);
    color: var(--success);
}

.dash-toast-aviso {
    background: #fff;
    color: #1e3a5f;
    border: 1px solid #bfdbfe;
}

.dash-toast-aviso .dash-toast-icon {
    background: #dbeafe;
    color: var(--primary);
}

@keyframes dash-toast-in {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.dashboard-shell .check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 18px;
}

.dashboard-shell .btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.dashboard-shell .btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.dashboard-shell .btn-danger:hover:not(:disabled) {
    filter: brightness(0.95);
}

.dashboard-shell .student-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dashboard-shell .student-actions .btn-secondary,
.dashboard-shell .student-actions .btn-danger,
.dashboard-shell .student-actions .btn-primary {
    margin: 0;
    height: 38px;
    min-width: 118px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.85rem;
    line-height: 1;
}

.dash-confirm {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    padding: 16px;
}

.dash-confirm-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.dash-confirm-card.is-comprobante-vista {
    max-width: min(640px, 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-confirm-card.is-comprobante-vista header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    padding-bottom: 8px;
}

.dash-confirm-card.is-comprobante-vista header h3 {
    margin: 0 0 4px;
}

.dash-confirm-card.is-comprobante-vista header p {
    margin: 0;
}

.dash-confirm-card.is-comprobante-vista img {
    display: block;
    width: 100%;
    max-height: min(60vh, 520px);
    object-fit: contain;
    border-radius: 12px;
    background: #0f172a;
}

.dash-confirm-card h3 {
    margin: 0 0 12px;
    color: var(--primary);
}

.dash-confirm-card p {
    margin: 0 0 18px;
    line-height: 1.5;
}

.dash-confirm-card.dash-form label.method-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.dash-confirm-card.dash-form .method-option input[type="radio"],
.dash-confirm-card.dash-form .method-option input[type="checkbox"] {
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.dashboard-shell .btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 16px;
}

.dashboard-shell .choice-legend {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 4px 0 8px;
}

.dashboard-shell .choice-grid {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
    max-height: 220px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    background: #fff;
}

.dashboard-shell .choice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 500;
}

.dashboard-shell .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.dashboard-shell .form-actions .btn-primary,
.dashboard-shell .form-actions .btn-secondary,
.dashboard-shell .form-actions .btn-danger,
.dashboard-shell .form-actions .btn-outline,
.dashboard-shell .form-actions .btn-success {
    margin: 0;
    height: 42px;
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
    font-size: 0.9rem;
}

.dash-confirm-card .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.dash-confirm-card .form-actions .btn-primary,
.dash-confirm-card .form-actions .btn-secondary,
.dash-confirm-card .form-actions .btn-danger,
.dash-confirm-card .form-actions .btn-outline,
.dash-confirm-card .form-actions .btn-success {
    margin: 0;
    height: 42px;
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
    font-size: 0.9rem;
}

.dashboard-shell .autorizado-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
}

.dashboard-shell .btn-primary:hover:not(:disabled) {
    background: var(--secondary);
}

.dashboard-shell .btn-primary:disabled {
    opacity: 0.7;
    cursor: wait;
}

.dashboard-shell .btn-secondary:disabled {
    opacity: 0.7;
    cursor: wait;
}

.dashboard-shell .btn-with-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dashboard-shell .btn-spinner {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: dash-spin 0.7s linear infinite;
    flex-shrink: 0;
    box-sizing: border-box;
}

.dashboard-shell .btn-spinner-lg {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-width: 4px;
    border-color: var(--primary);
    border-right-color: transparent;
    display: block;
    margin: 0 auto 16px;
}

.dashboard-shell .pago-trabajando {
    text-align: center;
    max-width: 420px;
}

.dashboard-shell .pago-trabajando h3 {
    margin-bottom: 8px;
}

.dashboard-shell .pago-trabajando p {
    margin: 0;
    color: var(--text-muted);
}

@keyframes dash-spin {
    to {
        transform: rotate(360deg);
    }
}

.dashboard-shell .status-ok {
    color: var(--success-text);
    margin: 0 0 16px;
    font-weight: 600;
}

.dashboard-shell .floating-footer-logo {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 120px;
    height: auto;
    z-index: 10;
    opacity: 0.75;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
    pointer-events: none;
}

.dashboard-shell .btn-back {
    display: inline-block;
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.dashboard-shell .btn-back:hover {
    color: var(--primary);
}

.dashboard-shell .student-header-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--secondary);
}

.dashboard-shell .student-avatar {
    width: 80px;
    height: 80px;
    background-color: #e8f4fd;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.dashboard-shell .student-main-info {
    flex-grow: 1;
}

.dashboard-shell .student-main-info h1 {
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0 0 8px;
}

.dashboard-shell .student-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dashboard-shell .badge.active { background-color: #d1fae5; color: #0f5132; }
.dashboard-shell .badge.danger { background-color: #fff5f5; color: #e6332a; }
.dashboard-shell .badge.warning { background-color: #fff3cd; color: #664d03; }

.dashboard-shell .student-stats {
    text-align: right;
    border-left: 2px solid #e2e8f0;
    padding-left: 25px;
}

.dashboard-shell .student-stats p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.dashboard-shell .student-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.dashboard-shell .tabs-container {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    gap: 10px;
    overflow-x: auto;
    background-color: #fff;
}

.dashboard-shell .tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
    font-family: inherit;
}

.dashboard-shell .tab-btn.active {
    color: var(--primary);
    font-weight: 700;
}

.dashboard-shell .tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px 3px 0 0;
}

.dashboard-shell .tab-content {
    display: none;
    background: #fff;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.dashboard-shell .tab-content.active {
    display: block;
}

.dashboard-shell .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.dashboard-shell .info-section h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin: 0 0 15px;
    border-bottom: 2px solid #f0f4f9;
    padding-bottom: 8px;
}

.dashboard-shell .form-group {
    margin-bottom: 14px;
}

.dashboard-shell .form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
    max-width: none;
}

.dashboard-shell .form-group p {
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 0;
}

.dashboard-shell .tutor-acceso {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.dashboard-shell .tutor-acceso .rfc-muted {
    background: none;
    border: none;
    padding: 0;
}

.dashboard-shell .tutor-acceso .form-actions,
.dashboard-shell .tutor-acceso .btn-secondary,
.dashboard-shell .tutor-acceso .btn-primary {
    margin: 0;
}

.dashboard-shell .tutor-acceso-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid #f0f4f9;
}

.dashboard-shell .tutor-acceso .field-input {
    width: 100%;
    max-width: 360px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    box-sizing: border-box;
}

.dashboard-shell .tutor-acceso .field-input:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 160, 219, 0.15);
}

.dashboard-shell .tutor-acceso .btn-with-spinner {
    width: fit-content;
}

.dashboard-shell .action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.dashboard-shell .btn-action {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
}

.dashboard-shell .btn-action:hover {
    background-color: var(--primary);
}

.dashboard-shell .text-danger-score {
    color: var(--danger);
    font-weight: 700;
}

.dashboard-shell .adeudo {
    font-weight: 700;
    color: var(--danger);
}

.dashboard-shell .dash-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-bottom: 16px;
    align-items: start;
}

.dashboard-shell .dash-form .form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 0;
}

.dashboard-shell .dash-form .form-grid input[type="text"],
.dashboard-shell .dash-form .form-grid input[type="date"],
.dashboard-shell .dash-form .form-grid input:not([type="checkbox"]),
.dashboard-shell .dash-form .form-grid select {
    width: 100%;
    height: 44px;
    margin-top: 0;
    box-sizing: border-box;
}

.dashboard-shell .dash-form .form-grid .campo-ancho {
    grid-column: 1 / -1;
}

.dashboard-shell .dash-form .campo-etiqueta {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-height: 1.25rem;
    line-height: 1.25;
}

.dashboard-shell .alta-alumno-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    align-items: start;
    margin-bottom: 8px;
}

.dashboard-shell .alta-col-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    align-items: start;
}

.dashboard-shell .alta-col-fields > .rfc-muted {
    grid-column: 1 / -1;
    margin: 0;
}

.dashboard-shell .alta-col-fields > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 0;
}

.dashboard-shell .alta-col-fields > label input[type="text"],
.dashboard-shell .alta-col-fields > label input[type="date"],
.dashboard-shell .alta-col-fields > label input:not([type="checkbox"]),
.dashboard-shell .alta-col-fields > label select {
    width: 100%;
    height: 44px;
    margin-top: 0;
    box-sizing: border-box;
}

.dashboard-shell .alta-head-alumno,
.dashboard-shell .alta-head-tutor {
    font-size: 1.05rem;
    color: var(--primary);
    margin: 0 0 10px;
    border-bottom: 2px solid #f0f4f9;
    padding-bottom: 8px;
}

.dashboard-shell .alta-alumno-grid .campo-ancho-2 {
    grid-column: 1 / -1;
}

.dashboard-shell .alta-alumno-grid .fiscal-section {
    grid-column: 1 / -1;
}

@media (max-width: 1150px) {
    .dashboard-shell .alta-alumno-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-shell .alta-alumno-grid,
    .dashboard-shell .alta-col-fields,
    .dashboard-shell .dash-form .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1150px) {
    .dashboard-shell .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-shell .ingresos-duo {
        grid-template-columns: 1fr;
    }
}

.dashboard-shell .search-panel,
.dashboard-shell .header-panel {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--secondary);
}

.dashboard-shell .pagos-filtros {
    align-items: flex-end;
    flex-wrap: wrap;
}

.dashboard-shell .pagos-filtro {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 220px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

.dashboard-shell .pagos-filtro .search-input {
    font-weight: 500;
}

.dashboard-shell .search-container {
    flex-grow: 1;
    max-width: 530px;
}

.dashboard-shell .header-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-shell .header-title h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.dashboard-shell .search-input {
    flex-grow: 1;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #f8fafc;
    font-family: inherit;
}

.dashboard-shell .search-input:focus {
    border-color: var(--secondary);
}

.dashboard-shell .student-strip {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.95rem;
}

.dashboard-shell .student-name {
    color: var(--primary);
    font-weight: 700;
}

.dashboard-shell .adeudo-vencido {
    color: var(--danger);
    font-weight: 800;
}

.dashboard-shell .status-error {
    color: var(--danger-text);
    margin: 12px 0 0;
    font-weight: 600;
}

.dashboard-shell .finance-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.dashboard-shell .finance-panel {
    margin-bottom: 0;
    height: fit-content;
    padding: 25px;
}

.dashboard-shell .payments-table,
.dashboard-shell .invoice-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dashboard-shell .invoice-table {
    min-width: 800px;
}

.dashboard-shell .payments-table th,
.dashboard-shell .payments-table td,
.dashboard-shell .invoice-table th,
.dashboard-shell .invoice-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    vertical-align: middle;
}

.dashboard-shell .payments-table th,
.dashboard-shell .invoice-table th {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.dashboard-shell .invoice-table th {
    background-color: #f8fafc;
}

.dashboard-shell .payments-table td {
    font-weight: 600;
}

.dashboard-shell .payments-table tr.is-paid td {
    color: var(--text-muted);
}

.dashboard-shell .checkbox-cell {
    text-align: center;
    width: 40px;
}

.dashboard-shell .checkbox-cell input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.dashboard-shell .recargo-cell {
    color: var(--danger);
}

.dashboard-shell .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 600;
}

.dashboard-shell .summary-row span:first-child {
    color: var(--text-muted);
}

.dashboard-shell .total-row {
    border-top: 2px dashed var(--border-color);
    margin-top: 15px;
    padding-top: 15px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.dashboard-shell .total-row span:first-child {
    color: var(--primary);
}

.dashboard-shell .payment-methods {
    margin-top: 25px;
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.dashboard-shell .payment-methods h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dashboard-shell .method-option,
.dashboard-shell .dash-form label.method-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.dashboard-shell .method-option:last-child {
    margin-bottom: 0;
}

.dashboard-shell .method-option input[type="radio"],
.dashboard-shell .method-option input[type="checkbox"],
.dashboard-shell .dash-form .method-option input[type="radio"],
.dashboard-shell .dash-form .method-option input[type="checkbox"] {
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    accent-color: var(--primary);
}

.dashboard-shell .btn-success {
    background-color: var(--success);
    color: #fff;
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

.dashboard-shell .btn-success:hover:not(:disabled) {
    background-color: #27ae60;
}

.dashboard-shell .btn-success:disabled {
    opacity: 0.7;
    cursor: wait;
}

.dashboard-shell .tarea-modal .family-recibo-btn {
    width: auto;
    margin: 0;
    padding: 10px 16px;
}

.dashboard-shell .tarea-modal .family-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dashboard-shell .tarea-modal .family-doc-actions .btn-secondary {
    margin: 0;
}

.dashboard-shell .invoice-panel {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--primary);
}

.dashboard-shell .invoice-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-shell .invoice-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.dashboard-shell .invoice-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.dashboard-shell .invoice-filters .search-input {
    height: 42px;
    padding: 8px 12px;
}

@media (max-width: 1100px) {
    .dashboard-shell .invoice-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.dashboard-shell .invoice-panel .panel-header {
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-shell .invoice-panel .panel-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.dashboard-shell .sat-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    isolation: isolate;
    margin: 0 0 0 auto;
    padding: 3px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.dashboard-shell .sat-mode::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 0;
    width: calc((100% - 6px) / 2);
    height: calc(100% - 6px);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.32s ease,
        box-shadow 0.32s ease;
}

.dashboard-shell .sat-mode.is-live::before {
    transform: translateX(100%);
    background: #059669;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.dashboard-shell .sat-mode-btn {
    position: relative;
    z-index: 1;
    margin: 0;
    border: none;
    background: transparent;
    padding: 7px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.28s ease;
}

.dashboard-shell .sat-mode.is-test .sat-mode-btn:first-child {
    color: #c2410c;
}

.dashboard-shell .sat-mode.is-live .sat-mode-btn:last-child {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-shell .sat-mode::before,
    .dashboard-shell .sat-mode-btn {
        transition: none;
    }
}

.dashboard-shell .btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.dashboard-shell .btn-outline:hover {
    background-color: #e2e8f0;
}

.dashboard-shell .rfc-muted {
    color: var(--text-muted);
}

.dashboard-shell .download-actions {
    display: flex;
    gap: 8px;
}

.dashboard-shell .btn-download {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    font-family: inherit;
}

.dashboard-shell .btn-download:hover:not(:disabled) {
    background-color: #eff6ff;
    border-color: var(--secondary);
    color: var(--secondary);
}

.dashboard-shell .btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .dashboard-shell .finance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .dashboard-shell .sidebar {
        width: 80px;
        padding: 20px 12px;
    }

    .dashboard-shell .sidebar-brand-text,
    .dashboard-shell .sidebar-menu a span,
    .dashboard-shell .nav-disabled span {
        display: none;
    }

    .dashboard-shell .sidebar-logo-seal {
        max-width: 52px;
        border-width: 2px;
    }

    .dashboard-shell .sidebar-brand {
        justify-content: center;
        border-bottom: none;
        padding-bottom: 0;
    }

    .dashboard-shell .sidebar-menu a,
    .dashboard-shell .nav-disabled {
        justify-content: center;
        padding: 12px 0;
    }

    .dashboard-shell .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .dashboard-shell {
        flex-direction: column;
    }

    .dashboard-shell .sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 16px;
    }

    .dashboard-shell .sidebar-menu {
        display: flex;
        margin-top: 0;
        gap: 8px;
    }

    .dashboard-shell .sidebar-footer {
        display: block;
        border: none;
        padding: 0;
        width: auto;
    }

    .dashboard-shell .btn-logout {
        width: auto;
        padding: 10px;
    }

    .dashboard-shell .main-content {
        margin-left: 0;
        width: 100%;
        padding: 16px;
    }

    .dashboard-shell .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .dashboard-shell .navbar.navbar-end .nav-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 12px;
    }

    .dashboard-shell .dash-form .input-row {
        grid-template-columns: 1fr;
    }

    .dashboard-shell .search-bar,
    .dashboard-shell .search-container,
    .dashboard-shell .header-panel,
    .dashboard-shell .student-strip {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
    }

    .dashboard-shell .floating-footer-logo {
        display: none;
    }
}

/* --- Panel de profesores (DBD_Profesores) --- */
.dashboard-shell .teacher-welcome {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 3px solid var(--secondary);
}

.dashboard-shell .welcome-text h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 4px;
}

.dashboard-shell .welcome-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.dashboard-shell .selector-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-shell .selector-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.dashboard-shell .select-input {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    background-color: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    font-family: inherit;
}

.dashboard-shell .select-input:focus {
    border-color: var(--secondary);
}

.dashboard-shell .workspace-panel {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dashboard-shell .workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--background);
    padding-bottom: 15px;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.dashboard-shell .workspace-title h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0 0 2px;
}

.dashboard-shell .workspace-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.dashboard-shell .action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard-shell .action-buttons .btn-secondary {
    margin-bottom: 0;
}

.dashboard-shell .btn-workspace {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.dashboard-shell .btn-workspace-primary {
    background-color: var(--secondary);
    color: #fff;
}

.dashboard-shell .btn-workspace-primary:hover:not(:disabled) {
    background-color: var(--primary);
}

.dashboard-shell .btn-workspace-success {
    background-color: var(--success);
    color: #fff;
}

.dashboard-shell .btn-workspace-success:hover:not(:disabled) {
    background-color: #27ae60;
}

.dashboard-shell .btn-workspace-danger {
    background: #fff1f0;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.dashboard-shell .btn-workspace-danger:hover:not(:disabled) {
    background: #c53030;
    color: #fff;
}

.dashboard-shell .btn-workspace:disabled {
    opacity: 0.7;
    cursor: default;
}

.dashboard-shell .attendance-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px;
}

.dashboard-shell .attendance-table th,
.dashboard-shell .attendance-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--background);
    font-size: 0.9rem;
}

.dashboard-shell .attendance-table th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
}

.dashboard-shell .score-input {
    width: 65px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    color: var(--text-main);
    font-family: inherit;
}

.dashboard-shell .score-input:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 160, 219, 0.15);
}

.dashboard-shell .score-input.is-locked {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.dashboard-shell .attendance-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.dashboard-shell .attendance-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 700;
}

.dashboard-shell .attendance-options input[type="radio"] {
    accent-color: var(--primary);
    transform: scale(1.1);
}

.dashboard-shell .radio-p { color: var(--success); }
.dashboard-shell .radio-r { color: #0ea5e9; }
.dashboard-shell .radio-f { color: var(--danger); }
.dashboard-shell .radio-j { color: #f39c12; }

.dashboard-shell .attendance-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.dashboard-shell .attendance-chip {
    border: 1px solid #dbe3ef;
    background: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
}

.dashboard-shell .attendance-chip.radio-p { background: #ecfdf3; border-color: #bbf7d0; }
.dashboard-shell .attendance-chip.radio-r { background: #e0f2fe; border-color: #bae6fd; }
.dashboard-shell .attendance-chip.radio-f { background: #fff5f5; border-color: #fecaca; }
.dashboard-shell .attendance-chip.radio-j { background: #fff8e8; border-color: #fde68a; }

.dashboard-shell .attendance-help {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: #334155;
}

.dashboard-shell .attendance-help.is-hint {
    color: #64748b;
    font-weight: 500;
}

.dashboard-shell .badge.retardo {
    background-color: #e0f2fe;
    color: #075985;
}

.dashboard-shell .justificante-link {
    margin-top: 6px;
    border: 0;
    background: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.dashboard-shell .justificante-faltante {
    margin: 4px 0 0;
    color: var(--danger);
    font-size: 0.72rem;
    font-weight: 600;
}

.dashboard-shell .justificante-overlay {
    align-items: flex-start;
    padding: 24px 16px;
    overflow: auto;
}

.dashboard-shell .justificante-card {
    background: #fff;
    border-radius: 16px;
    width: min(520px, 100%);
    margin: auto;
    padding: 0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.dashboard-shell .justificante-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px 16px;
    background: linear-gradient(180deg, #fff8e8 0%, #fff 100%);
    border-bottom: 1px solid #f1e4c3;
}

.dashboard-shell .justificante-chip {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff3cd;
    color: #92400e;
    font-weight: 800;
    font-size: 1.1rem;
}

.dashboard-shell .justificante-kicker {
    margin: 0 0 2px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #92400e;
}

.dashboard-shell .justificante-head h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.3;
}

.dashboard-shell .justificante-lead {
    margin: 0;
    padding: 14px 22px 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.dashboard-shell .justificante-card .alert-box {
    margin: 12px 22px 0;
}

.dashboard-shell .justificante-block {
    margin: 16px 22px 0;
}

.dashboard-shell .justificante-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.dashboard-shell .justificante-block-head h4 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

.dashboard-shell .justificante-block-head span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dashboard-shell .justificante-text-action {
    border: 0;
    background: none;
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.dashboard-shell .justificante-textarea {
    width: 100%;
    min-height: 108px;
    resize: vertical;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-main);
    background: #f8fafc;
}

.dashboard-shell .justificante-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(58, 105, 192, 0.15);
}

.dashboard-shell .justificante-drop {
    position: relative;
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
    padding: 18px 14px;
    border: 1.5px dashed #c5d4ee;
    border-radius: 12px;
    background: #f5f8ff;
    cursor: pointer;
    color: var(--primary);
}

.dashboard-shell .justificante-drop:hover {
    border-color: var(--primary);
    background: #eef3ff;
}

.dashboard-shell .justificante-drop input,
.dashboard-shell .justificante-ghost-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.dashboard-shell .justificante-drop strong {
    font-size: 0.9rem;
}

.dashboard-shell .justificante-drop span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dashboard-shell .justificante-file-chip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #ecfdf3;
}

.dashboard-shell .justificante-file-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.dashboard-shell .justificante-file-meta strong {
    font-size: 0.85rem;
    color: #065f46;
    overflow-wrap: anywhere;
}

.dashboard-shell .justificante-file-meta span {
    font-size: 0.72rem;
    color: #047857;
    font-weight: 600;
}

.dashboard-shell .justificante-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dashboard-shell .justificante-ghost {
    border: 1px solid #a7f3d0;
    background: #fff;
    color: #047857;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.dashboard-shell .justificante-ghost-file {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.dashboard-shell .justificante-ghost.is-danger {
    border-color: #fecaca;
    color: var(--danger-text);
}

.dashboard-shell .justificante-foot {
    margin-top: 20px;
    padding: 16px 22px 20px;
    border-top: 1px solid var(--border-color);
    display: grid;
    gap: 12px;
}

.dashboard-shell .justificante-foot-main {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard-shell .justificante-foot-main .btn-modal-cancel,
.dashboard-shell .justificante-foot-main .btn-workspace {
    margin: 0;
}

.dashboard-shell .justificante-remove {
    border: 0;
    background: none;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    justify-self: center;
    padding: 4px 8px;
}

.dashboard-shell .justificante-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 6px;
}

.dashboard-shell .justificante-vista {
    z-index: 1200;
}

.dashboard-shell .justificante-vista-card {
    background: #fff;
    border-radius: 16px;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 18px 20px 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.dashboard-shell .justificante-vista-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-shell .justificante-vista-card header h3 {
    margin: 0;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.dashboard-shell .justificante-vista-card .btn-modal-cancel {
    margin: 0;
}

.dashboard-shell .justificante-vista-img {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    background: #0f172a;
}

.dashboard-shell .justificante-vista-pdf {
    width: 100%;
    min-height: 70vh;
    border: 0;
    border-radius: 12px;
    background: #e2e8f0;
}

.dashboard-shell .text-danger-alert {
    color: var(--danger);
    font-weight: bold;
}

.dashboard-shell .tarea-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.dashboard-shell .tarea-modal.show {
    display: flex;
}

.dashboard-shell .tarea-modal > div,
.dashboard-shell .tarea-modal-shell {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

.dashboard-shell .tarea-modal-shell.is-tarea {
    max-width: 560px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    border: 1px solid #dbeafe;
}

.dashboard-shell .tarea-ficha {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-shell .tarea-ficha-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 22px 22px 18px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-shell .tarea-ficha-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #b6e4f7;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}

.dashboard-shell .tarea-ficha-icon img {
    width: 28px;
    height: 28px;
}

.dashboard-shell .tarea-ficha-kicker {
    margin: 0 0 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
}

.dashboard-shell .tarea-ficha-titulo h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 1.25;
}

.dashboard-shell .tarea-ficha-materia {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.dashboard-shell .tarea-ficha-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.dashboard-shell .tarea-ficha-vigencia {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 10px;
}

.dashboard-shell .tarea-ficha-vigencia.is-vigente {
    background: var(--success-light);
    color: var(--success-text);
}

.dashboard-shell .tarea-ficha-vigencia.is-vencida {
    background: var(--danger-light);
    color: var(--danger-text);
}

.dashboard-shell .tarea-ficha-fechas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 22px 4px;
}

.dashboard-shell .tarea-ficha-fechas > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}

.dashboard-shell .tarea-ficha-fechas span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.dashboard-shell .tarea-ficha-fechas strong {
    font-size: 1.05rem;
    color: var(--text-main);
}

.dashboard-shell .tarea-ficha-bloque {
    margin: 12px 22px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.dashboard-shell .tarea-ficha-bloque h4 {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
}

.dashboard-shell .tarea-ficha-bloque p {
    margin: 0;
    color: var(--text-main);
    line-height: 1.5;
    white-space: pre-wrap;
}

.dashboard-shell .tarea-ficha-foot {
    display: flex;
    justify-content: flex-end;
    padding: 16px 22px 20px;
}

@media (max-width: 640px) {
    .dashboard-shell .tarea-ficha-head {
        grid-template-columns: auto 1fr;
    }

    .dashboard-shell .tarea-ficha-badges {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .dashboard-shell .tarea-ficha-fechas {
        grid-template-columns: 1fr;
    }
}

.dashboard-shell .teacher-tareas {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #edf2f7;
}

.dashboard-shell .teacher-tareas .data-table td.teacher-tarea-actions {
    width: auto;
    min-width: 18.5rem;
}

.dashboard-shell .teacher-tarea-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.dashboard-shell .teacher-tarea-actions .btn-workspace {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 5.6rem;
    min-width: 5.6rem;
    height: 32px;
    padding: 0 8px;
    font-size: 0.75rem;
    line-height: 1;
    flex: 0 0 5.6rem;
}

.dashboard-shell .tarea-modal > div:has(table) {
    max-width: 640px;
    max-height: 80vh;
    overflow: auto;
}

.dashboard-shell .tarea-modal h3 {
    margin: 0 0 16px;
    color: var(--primary);
}

.dashboard-shell .tarea-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-shell .tarea-form label {
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.dashboard-shell .tarea-form input,
.dashboard-shell .tarea-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.9rem;
}

.dashboard-shell .tarea-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dashboard-shell .tarea-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.dashboard-shell .btn-modal-cancel {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 640px) {
    .dashboard-shell .tarea-dates {
        grid-template-columns: 1fr;
    }
}

.dashboard-shell .family-board {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
}

.dashboard-shell .family-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.dashboard-shell .family-contact {
    grid-column: 1 / -1;
    container-type: inline-size;
    overflow: hidden;
}

.dashboard-shell .family-tile {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
    min-height: 0;
    position: relative;
    z-index: 11;
}

.dashboard-shell .family-tile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
    border-bottom: solid 1px #f2f2f2;
    padding-bottom: 10px;
}

.dashboard-shell .family-news > .family-tile-head {
    display: flex;
    width: 100%;
    border-bottom: solid 1px #f2f2f2;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.dashboard-shell .family-tile-head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-shell .family-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary);
}

.dashboard-shell .family-pictogram {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

.dashboard-shell .family-pictogram-lg {
    width: 36px;
    height: 36px;
}

.dashboard-shell .family-tile-head .family-pictogram,
.dashboard-shell .family-tile-head .family-pictogram-lg {
    width: 32px;
    height: 32px;
}

.dashboard-shell .family-cursos-actions .btn-primary,
.dashboard-shell .family-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-shell .family-hero {
    background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 280px;
    overflow: hidden;
    position: relative;
}

.dashboard-shell .family-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 70%;
}

.dashboard-shell .family-hero-copy .family-kicker,
.dashboard-shell .family-hero-copy h2,
.dashboard-shell .family-hero-copy p {
    color: #fff;
}

.dashboard-shell .family-hero-copy h2 {
    font-size: 1.8rem;
    margin: 8px 0 10px;
}

.dashboard-shell .family-hero-copy p {
    margin: 0 0 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-shell .family-hero-art {
    position: absolute;
    right: -12px;
    bottom: -18px;
    height: 220px;
    pointer-events: none;
}

.dashboard-shell .family-hero-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-shell .family-hero-switch button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.dashboard-shell .family-hero-switch button.is-active {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.dashboard-shell .family-cal-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-shell .family-cal-nav button {
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--primary);
}

.dashboard-shell .family-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.dashboard-shell .family-cal-dow {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 0;
}

.dashboard-shell .family-cal-day {
    border: none;
    background: transparent;
    border-radius: 10px;
    min-height: 36px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
}

.dashboard-shell .family-cal-day.is-muted {
    color: #cbd5e1;
    cursor: default;
}

.dashboard-shell .family-cal-day.is-today {
    background: #e8f4fd;
    color: var(--secondary);
}

.dashboard-shell .family-cal-day.is-selected {
    background: var(--primary);
    color: #fff;
}

.dashboard-shell .family-cal-day i {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin: 2px auto 0;
}

.dashboard-shell .family-cal-day.is-selected i {
    background: #fff;
}

.dashboard-shell .family-cal-events {
    font-weight: 700;
    margin: 14px 0 6px;
    color: var(--primary);
}

.dashboard-shell .family-event-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-main);
}

.dashboard-shell .family-tareas {
    min-width: 0;
}

.dashboard-shell .family-tareas-scroll {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.dashboard-shell .family-tarea-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.dashboard-shell .family-tarea-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}

.dashboard-shell .family-tarea-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard-shell .family-tarea-list strong {
    display: block;
    color: var(--primary);
}

.dashboard-shell .family-tarea-list .family-tarea-abrir {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.dashboard-shell .family-tarea-list .family-tarea-abrir:hover strong {
    text-decoration: underline;
}

.dashboard-shell .family-tarea-detalle {
    margin-top: 12px;
}

.dashboard-shell .family-news-title {
    color: var(--primary);
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
}

.dashboard-shell .family-news-badge {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin: 0 0 10px;
    vertical-align: middle;
}

.dashboard-shell .family-news-dots {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.dashboard-shell .family-news-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    padding: 0;
    cursor: pointer;
}

.dashboard-shell .family-news-dots button.is-active {
    background: var(--secondary);
}

.dashboard-shell .family-facts {
    margin: 0;
    display: grid;
    gap: 10px;
}

.dashboard-shell .family-facts div {
    display: grid;
    gap: 2px;
}

.dashboard-shell .family-facts dt {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dashboard-shell .family-facts dd {
    margin: 0;
}

.dashboard-shell .family-link-btn {
    margin-top: 14px;
    border: none;
    background: none;
    color: var(--secondary);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.dashboard-shell .family-saldo-school {
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.dashboard-shell .family-saldo-row,
.dashboard-shell .family-saldo-pay {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.dashboard-shell .family-saldo-pay {
    background: #e8f4fd;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0 8px;
    color: var(--primary);
}

.dashboard-shell .family-full-btn {
    width: 100%;
    margin-top: 10px;
}

.dashboard-shell .family-saldo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.dashboard-shell .family-cursos {
    container-type: inline-size;
    min-width: 0;
    overflow: hidden;
}

.dashboard-shell .family-cursos-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.dashboard-shell .family-cursos-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 8px;
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
}

.dashboard-shell .family-cursos-actions .family-pictogram {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.dashboard-shell .family-cursos-table {
    table-layout: fixed;
    width: 100%;
}

.dashboard-shell .family-cursos-table th,
.dashboard-shell .family-cursos-table td {
    padding: 8px 4px;
    vertical-align: top;
}

.dashboard-shell .family-cursos-table th:first-child,
.dashboard-shell .family-cursos-table td:first-child {
    width: 44%;
    padding-left: 8px;
}

.dashboard-shell .family-cursos-table td:first-child strong,
.dashboard-shell .family-cursos-table td:first-child .family-muted {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-shell .family-cursos-table th:not(:first-child),
.dashboard-shell .family-cursos-table td:not(:first-child) {
    width: 14%;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dashboard-shell .family-asistencia-dias {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

@container (max-width: 320px) {
    .family-cursos-actions {
        grid-template-columns: 1fr;
    }
}

.dashboard-shell .family-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 24px;
    align-items: start;
}

.dashboard-shell .family-contact-grid > * {
    min-width: 0;
}

.dashboard-shell .lector-constancia {
    display: grid;
    gap: 8px;
    margin: 8px 0 12px;
}

.dashboard-shell .lector-constancia-boton {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
}

.dashboard-shell .family-fiscal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 12px 16px;
    margin: 12px 0;
}

.dashboard-shell .family-fiscal-grid label,
.dashboard-shell .family-contact form label {
    display: grid;
    gap: 4px;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    overflow-wrap: anywhere;
}

.dashboard-shell .family-fiscal-grid input,
.dashboard-shell .family-fiscal-grid select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    font-family: inherit;
}

@container (max-width: 720px) {
    .family-contact-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-shell .family-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 800px) {
    .dashboard-shell .family-contact-grid,
    .dashboard-shell .family-fiscal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .dashboard-shell .family-board {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-shell .family-col-end {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .dashboard-shell .family-board,
    .dashboard-shell .family-saldo-actions,
    .dashboard-shell .family-cursos-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-shell .family-col-end {
        grid-column: 1;
    }

    .dashboard-shell .family-hero-copy {
        max-width: 100%;
    }

    .dashboard-shell .family-hero-art {
        opacity: 0.25;
    }
}

@container dashboard-main (max-width: 1080px) {
    .family-board {
        grid-template-columns: 1fr 1fr;
    }

    .family-col-end {
        grid-column: 1 / -1;
    }
}

@container dashboard-main (max-width: 720px) {
    .family-board {
        grid-template-columns: 1fr;
    }

    .family-col-end {
        grid-column: 1;
    }
}

.dashboard-shell .notif-wrap {
    position: relative;
    margin-bottom: 12px;
}

.dashboard-shell .notif-bell {
    position: relative;
    width: 100%;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px;
    cursor: pointer;
}

.dashboard-shell .notif-count {
    position: absolute;
    top: 4px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.dashboard-shell .notif-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 58px;
    background: #fff;
    color: var(--text-main);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 12px;
    z-index: 20;
    max-height: 280px;
    overflow: auto;
}

.dashboard-shell .notif-panel ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.dashboard-shell .notif-panel button {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px 12px;
}

.dashboard-shell .notif-panel li {
    border-radius: 10px;
    margin-bottom: 6px;
}

.dashboard-shell .notif-panel li.is-unread {
    background: #e8f6fd;
    border: 1px solid #b6e4f7;
    border-left: 4px solid var(--secondary);
}

.dashboard-shell .notif-panel li.is-read {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dashboard-shell .notif-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dashboard-shell .notif-title {
    font-weight: 700;
    color: var(--text-main);
}

.dashboard-shell .notif-panel li.is-unread .notif-title {
    color: #0c4a6e;
}

.dashboard-shell .notif-panel li.is-read .notif-title,
.dashboard-shell .notif-panel li.is-read small {
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-shell .notif-panel small {
    display: block;
    margin-top: 4px;
    line-height: 1.35;
}

.dashboard-shell .notif-new {
    flex-shrink: 0;
    background: var(--secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 2px 8px;
}

.dashboard-shell .navbar .notif-wrap {
    margin-bottom: 0;
}

.dashboard-shell .navbar .notif-bell {
    width: 42px;
    height: 42px;
    background: #eef3fb;
    color: var(--primary);
}

.dashboard-shell .navbar .notif-panel {
    left: auto;
    right: 0;
    bottom: auto;
    top: 48px;
    width: 340px;
}
