body.fichas-login-body,
body.fichas-app-body {
    background: linear-gradient(135deg, #8e8f93 0%, #5b5c5d 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 440px;
    margin: 8vh auto;
    padding: 40px 36px;
}

.login-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.login-preestimacion h2 {
    margin-bottom: 0.25rem;
}

.login-card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 12px;
}

.login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 16px;
    background: linear-gradient(45deg, #515153, #3f3f3f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.btn-fichas {
    background: linear-gradient(45deg, #515153, #3f3f3f);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 20px;
}

.btn-fichas:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.fichas-shell {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    margin: 28px auto 48px;
    max-width: 1100px;
    padding: 28px 32px 36px;
}

.fichas-shell--wide {
    max-width: 1280px;
}

.fichas-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.fichas-topbar h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.user-chip {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bloque-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bloque-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.bloque-card .semana-num {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #0d6efd;
    text-transform: uppercase;
}

.bloque-card .cuenta-num {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.bloque-progreso {
    margin-top: 0.85rem;
}

.bloque-progreso .progress {
    height: 8px;
    border-radius: 999px;
    background: #e9ecef;
}

.bloque-progreso-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

.bloque-vacio {
    opacity: 0.72;
}

.badge-tipo-gerencia {
    background: #0d6efd;
}

.badge-tipo-coord {
    background: #198754;
}

/* Reportes SuperAdmin — validación por fechas */
.rep-val-resumen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 1.25rem;
}

.rep-val-resumen--vacio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.rep-val-stat {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
}

.rep-val-stat-num {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.rep-val-stat-label {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.rep-val-block-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rep-val-progress--dias {
    height: 10px;
    border-radius: 999px;
    background: #e9ecef;
}

.rep-val-timeline {
    display: flex;
    gap: 2px;
    margin-top: 0.65rem;
    min-height: 14px;
}

.rep-val-tick {
    flex: 1 1 0;
    min-width: 2px;
    height: 14px;
    border-radius: 2px;
    background: #dee2e6;
}

.rep-val-tick--on {
    background: #198754;
}

.rep-val-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #6c757d;
    margin-top: 0.35rem;
}

.rep-val-bars-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}

.rep-val-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    min-height: 120px;
    min-width: min(100%, max(100%, var(--rep-bars-min, 100%)));
}

.rep-val-bar-col {
    flex: 1 1 0;
    min-width: 6px;
    max-width: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 120px;
}

.rep-val-bar {
    width: 100%;
    max-width: 18px;
    border-radius: 4px 4px 2px 2px;
    background: #e9ecef;
    min-height: 2px;
    transition: background 0.15s ease;
}

.rep-val-bar--on {
    background: linear-gradient(180deg, #20c997 0%, #198754 100%);
}

.rep-val-bar-col:hover .rep-val-bar--on {
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
}

.rep-val-bar-lbl {
    font-size: 0.62rem;
    color: #6c757d;
    margin-top: 4px;
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: top center;
    height: 28px;
}

@media (max-width: 576px) {
    .rep-val-resumen {
        grid-template-columns: 1fr;
    }
}

.rep-user-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.rep-user-table > tbody > tr.rep-user-row {
    cursor: pointer;
}

.rep-user-table > tbody > tr.rep-user-row:hover {
    background: rgba(13, 110, 253, 0.04);
}

.rep-user-table .rep-user-chevron {
    transition: transform 0.15s ease;
    color: #6c757d;
}

.rep-user-table tr.rep-user-row[aria-expanded="true"] .rep-user-chevron {
    transform: rotate(90deg);
}

.rep-user-bloques {
    background: #f8f9fa;
}

.rep-user-bloques table {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.rep-user-pct-bar {
    height: 6px;
    border-radius: 999px;
    background: #e9ecef;
    overflow: hidden;
    min-width: 72px;
}

.rep-user-pct-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #20c997, #198754);
    border-radius: 999px;
}

.rep-user-excel-box {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 0.5rem;
}
