﻿/* =========================================================
   Base / Tipografía
========================================================= */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 .1rem #fff,0 0 0 .25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

html, body {
    background: var(--bg);
    color: var(--text);
}

h1, h2 {
    letter-spacing: .2px;
}

/* =========================================================
   Variables
========================================================= */
:root {
    --brand: #dc2626;
    --brand1: #b30000;
    --brand2: #ff4d4d;
    --bg: #f5f7fb;
    --panel: #fff;
    --card: #fff;
    --card-border: #e5e7eb;
    --border: #e5e7eb;
    --ink: #0f172a;
    --text: #1b2430;
    --muted: #64748b;
    --ring: rgba(59,130,246,.35);
    --shadow: 0 10px 30px rgba(16,24,40,.12);
    --radius: 16px;
    /* Botón de acción (contraste con fondo rojo) */
    --action1: #111827; /* gris 900 */
    --action2: #374151; /* gris 700 */
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e6e8ee;
        --text: #e6e8ee;
        --muted: #9aa4b2;
        --card: #0b1220;
        --panel: #0b1220;
        --card-border: #1d2433;
        --bg: #060a12;
        --shadow: 0 10px 30px rgba(0,0,0,.35);
        --action1: #0b1220;
        --action2: #1f2937;
    }
}

/* =========================================================
   Layout (sidebar + contenido)
========================================================= */
.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.content {
    background: var(--bg);
    padding: 28px;
}

.container {
    padding: 34px;
}

/* =========================================================
   Sidebar (rojo degradado)
========================================================= */
.sidebar {
    background: linear-gradient(180deg,var(--brand1) 0%,var(--brand2) 100%);
    color: #fff;
    padding: 26px 20px;
    box-shadow: 2px 0 12px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand {
    font-weight: 800;
    font-size: 30px;
    letter-spacing: .5px;
    margin-bottom: 26px;
    color: #fff;
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

    .sidebar-user .hello {
        font-size: 16px;
        opacity: .98;
        margin-bottom: 4px;
        color: #fff;
    }

/* Botón Salir */
.btn-power {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,.6);
    background: #fff;
    color: var(--brand1);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .05s, background .2s, color .2s, border-color .2s, box-shadow .2s;
    box-shadow: var(--shadow);
}

    .btn-power:hover {
        background: var(--brand1);
        color: #fff;
        border-color: var(--brand1);
        box-shadow: 0 14px 30px rgba(16,24,40,.14);
    }

    .btn-power:active {
        transform: scale(.98);
    }

.logout-form {
    margin: 0;
}

/* =========================================================
   Banner de página (opcional)
========================================================= */
.page-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    margin: 8px 0 18px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(90deg,var(--brand1) 0%,var(--brand2) 100%);
    box-shadow: 0 10px 24px rgba(179,0,0,.18);
}

.page-hero__title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: .3px;
}

.page-hero__right {
    display: flex;
    gap: 10px;
}

/* =========================================================
   Botones
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform .05s, box-shadow .2s, border-color .2s, filter .2s;
}

    .btn:hover {
        box-shadow: 0 14px 30px rgba(16,24,40,.14);
    }

    .btn:active {
        transform: scale(.98);
    }

    .btn.primary {
        background: linear-gradient(90deg,var(--brand1),var(--brand2));
        color: #fff;
        border-color: transparent;
    }

    .btn.ghost {
        background: transparent;
        border: 1px solid #d1d5db;
        box-shadow: none;
    }

.btn-light {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
}

    .btn-light:hover {
        filter: brightness(.95);
        transform: translateY(-1px);
    }

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

    .btn-outline:hover {
        background: rgba(220,38,38,.08);
    }

.btn-outline-warning {
    border-color: #facc15;
    color: #a16207;
}

    .btn-outline-warning:hover {
        background: #fef3c7;
    }

.btn-outline-danger {
    border-color: #ef4444;
    color: #b91c1c;
}

    .btn-outline-danger:hover {
        background: #fee2e2;
    }

.btn-outline-secondary {
    background: #fff;
    border: 2px solid #d1d5db;
    color: #374151;
    font-weight: 600;
    border-radius: 10px;
    transition: all .2s;
}

    .btn-outline-secondary:hover {
        background: #f3f4f6;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
    }
/* Pills */
.btn-set {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn.btn-pill {
    padding: 8px 14px;
    border-radius: 9999px;
    font-weight: 700;
}

.btn-pill.primary {
    background: #fff;
    border-color: transparent;
    color: var(--brand1);
    box-shadow: 0 8px 22px rgba(179,0,0,.18);
}

.btn-pill.view {
    background: #eef2ff;
    color: #1d4ed8;
    border-color: #dbe3ff;
}

.btn-pill.edit {
    background: #fff7ed;
    color: #b45309;
    border-color: #ffe5c7;
}

.btn-pill.delete {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* =========================================================
   Dashboard (simple)
========================================================= */
.dash-simple {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 20px 36px; /* sin margin-left extra */
}

.dash-simple__title {
    text-align: left;
    margin: 6px 0 18px;
    font-size: clamp(30px,3.6vw,42px);
    font-weight: 900;
    color: var(--ink);
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(270px,1fr));
    gap: 28px;
    align-items: stretch;
    justify-items: stretch;
}

@media (max-width:1300px) {
    .tile-grid {
        grid-template-columns: repeat(3,minmax(260px,1fr));
    }
}

@media (max-width:980px) {
    .tile-grid {
        grid-template-columns: repeat(2,minmax(240px,1fr));
    }
}

@media (max-width:640px) {
    .tile-grid {
        grid-template-columns: 1fr;
    }
}

.tile {
    display: block;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 24px 26px;
    min-height: 120px;
    box-shadow: 0 18px 42px rgba(15,23,42,.10);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .tile:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 54px rgba(15,23,42,.14);
        border-color: rgba(220,38,38,.35);
    }

.tile__title {
    font-size: clamp(22px,2.2vw,30px);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tile__sub {
    color: var(--muted);
    font-size: 15px;
}

/* =========================================================
   Cards genéricas
========================================================= */
.card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4,minmax(240px,1fr));
}

@media (max-width:1200px) {
    .card-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:900px) {
    .card-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow);
    outline: 2px solid transparent;
    transition: transform .08s, box-shadow .2s, outline .2s;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(16,24,40,.16);
        outline: 2px solid var(--ring);
    }

    .card h2 {
        font-size: 26px;
        margin: 0 0 6px 0;
    }

    .card p {
        color: var(--muted);
        margin: 0;
    }

/* =========================================================
   Tablas
========================================================= */
.table-wrap {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px;
    overflow: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .table thead th {
        position: sticky;
        top: 0;
        background: #fafbff;
        z-index: 1;
        padding: 14px 16px;
        text-align: left;
        font-weight: 700;
        border-bottom: 1px solid #eef2f7;
    }

    .table tbody td {
        padding: 12px 16px;
        border-bottom: 1px solid #f0f3f8;
        vertical-align: top;
    }

    .table tbody tr:hover {
        background: #fbfdff;
    }

.table-modern thead th {
    background: #f9fafb;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.table-modern td, .table-modern th {
    padding: 10px 14px;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: #f3f6ff;
}

.table-container {
    max-height: 420px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* =========================================================
   Badges
========================================================= */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    border: 1px solid transparent;
}

    .badge.ok {
        background: #dcfce7;
        color: #166534;
        border-color: #bbf7d0;
    }
    /* Aprobado/Activo */
    .badge.warn {
        background: #fef9c3;
        color: #854d0e;
        border-color: #fde68a;
    }
    /* Atención/Licencia */
    .badge.off {
        background: #f3f4f6;
        color: #374151;
        border-color: #e5e7eb;
    }
/* Inactivo */

/* =========================================================
   Vistas de detalle / formularios
========================================================= */
.info-card, .form-card {
    background: var(--panel);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px 22px 12px;
}

.section-head {
    margin: 6px 0 10px;
    padding: 10px 6px;
    border-left: 4px solid var(--brand1);
    background: linear-gradient(90deg, rgba(179,0,0,.10), rgba(255,77,77,.06));
    border-radius: 10px;
}

.section-title {
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .section-title .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: var(--brand1);
        box-shadow: 0 0 0 3px rgba(179,0,0,.18);
    }

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px,1fr));
    gap: 14px 20px;
    margin: 6px 6px 18px;
}

@media (max-width:900px) {
    .field-grid {
        grid-template-columns: 1fr;
    }
}

.field {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 12px 14px;
}

.field--full {
    grid-column: 1 / -1;
}

.label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6b7280;
    margin-bottom: 4px;
}

.value {
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px,1fr));
    gap: 14px 20px;
    margin: 6px 6px 18px;
}

@media (max-width:900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.input {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    transition: box-shadow .2s, border-color .2s;
}

    .input:focus {
        border-color: #e11d48;
        box-shadow: 0 0 0 3px rgba(225,29,72,.15);
    }

/* =========================================================
   Avisos / Notificaciones
========================================================= */
.notice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 16px;
    padding: 10px 16px;
    border-radius: 12px;
    line-height: 1.25;
    box-shadow: 0 10px 24px rgba(16,24,40,.10);
    border: 1px solid #e5e7eb;
    background: #fff;
    max-width: 1100px;
}

    .notice.success {
        border-color: #bbf7d0;
        background: linear-gradient(0deg,#f0fdf4,#f0fdf4), #fff;
    }

    .notice .ico {
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        border-radius: 999px;
        background: #dcfce7;
        color: #166534;
        flex: 0 0 26px;
    }

    .notice .msg {
        font-weight: 600;
        color: #14532d;
    }

    .notice .close {
        margin-left: auto;
        border: 0;
        background: transparent;
        color: #065f46;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        padding: 0 6px;
    }

    .notice.success::before {
        content: "";
        position: absolute;
        left: 0;
        top: 15%;
        width: 6px;
        height: 70%;
        border-radius: 6px;
        background: linear-gradient(180deg,var(--brand1),var(--brand2));
    }

    .notice.hide {
        opacity: 0;
        transform: translateY(-4px);
        transition: opacity .25s, transform .25s;
    }

/* =========================================================
   Utilidades
========================================================= */
.content-only {
    background: #f6f8fc;
    min-height: 100vh;
}
/* layout de Login (sin sidebar) */
.acciones-empleado {
    margin-top: -4px;
    margin-bottom: 16px;
}

.tabla-scroll {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.volver-wrapper {
    margin-top: 44px;
    margin-bottom: 26px;
}

.card.shadow-sm {
    border: 1px solid #edf1f7;
}

/* Sidebar responsivo */
@media (max-width:960px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        width: auto;
        min-height: auto;
        border-radius: 0 0 16px 16px;
    }
}

/* =========================================================
   LOGIN / AUTH
========================================================= */
.auth-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(220,38,38,.08), transparent 28%), radial-gradient(circle at bottom right, rgba(179,0,0,.06), transparent 24%), linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.auth-card {
    width: min(520px, 96vw);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 24px;
    padding: 30px 34px 26px;
    box-shadow: 0 24px 60px rgba(15,23,42,.14);
    backdrop-filter: blur(8px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eceff3;
}

.auth-logo {
    width: 92px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-company {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    letter-spacing: -.2px;
}

.auth-system {
    font-size: 14px;
    color: #6b7280;
}

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -.3px;
}

.auth-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.auth-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.input-container {
    position: relative;
}



.auth-input {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    padding: 0 16px 0 60px;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    outline: none;
    color: #111827;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

    .auth-input::placeholder {
        color: #9ca3af;
    }

    .auth-input:focus {
        border-color: var(--brand);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(220,38,38,.10);
    }

    /* Evita que el autofill "ensucie" demasiado el diseño */
    .auth-input:-webkit-autofill,
    .auth-input:-webkit-autofill:hover,
    .auth-input:-webkit-autofill:focus,
    .auth-input:-webkit-autofill:active {
        -webkit-text-fill-color: #111827;
        -webkit-box-shadow: 0 0 0 1000px #f9fafb inset;
        transition: background-color 9999s ease-in-out 0s;
    }


.form-options {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    user-select: none;
    min-height: 22px;
}

    .checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background: #fff;
    border: 1.5px solid #cfd6de;
    border-radius: 6px;
    transition: all .2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--brand);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--brand);
    border-color: var(--brand);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-login {
    height: 54px;
    margin-top: 8px;
    width: 100%;
    border-radius: 14px;
    border: none;
    background: linear-gradient(90deg, var(--brand1), var(--brand2));
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .2px;
    box-shadow: 0 12px 28px rgba(179,0,0,.20);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-login:hover {
        filter: brightness(1.03);
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(179,0,0,.24);
    }

    .btn-login:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px rgba(220,38,38,.18);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.btn-icon {
    transition: transform .2s;
}

.btn-login:hover .btn-icon {
    transform: translateX(3px);
}

.auth-form .text-danger.small {
    margin-top: 6px;
    font-size: 13px;
}

@media (max-width: 560px) {
    .auth-card {
        padding: 26px 20px 22px;
        border-radius: 20px;
    }

    .auth-brand {
        gap: 12px;
        align-items: center;
    }

    .auth-logo {
        width: 68px;
    }

    .auth-company {
        font-size: 20px;
    }

    .auth-system {
        font-size: 13px;
    }

    .auth-title {
        font-size: 28px;
    }
}

@media (prefers-color-scheme: dark) {
    .auth-body {
        background: radial-gradient(circle at top left, rgba(220,38,38,.12), transparent 30%), linear-gradient(180deg, #0f172a 0%, #111827 100%);
    }

    .auth-card {
        background: rgba(15,23,42,.94);
        border-color: rgba(255,255,255,.08);
        box-shadow: 0 24px 60px rgba(0,0,0,.35);
    }

    .auth-brand {
        border-bottom-color: rgba(255,255,255,.08);
    }

    .auth-company,
    .auth-title {
        color: #f8fafc;
    }

    .auth-system,
    .auth-subtitle,
    .checkbox-container {
        color: #cbd5e1;
    }

    .auth-label {
        color: #e5e7eb;
    }

    .auth-input {
        background: #0f172a;
        border-color: #334155;
        color: #f8fafc;
    }

        .auth-input::placeholder {
            color: #94a3b8;
        }

        .auth-input:focus {
            background: #111827;
        }

        .auth-input:-webkit-autofill,
        .auth-input:-webkit-autofill:hover,
        .auth-input:-webkit-autofill:focus,
        .auth-input:-webkit-autofill:active {
            -webkit-text-fill-color: #f8fafc;
            -webkit-box-shadow: 0 0 0 1000px #0f172a inset;
        }

    .checkmark {
        background: #0f172a;
        border-color: #475569;
    }
}

/* Quita adornos automáticos del navegador en inputs */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button,
input::-webkit-caps-lock-indicator {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

input[type="email"]::-webkit-textfield-decoration-container,
input[type="email"]::-webkit-textfield-decoration-container * {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Más espacio interno para que no se monten icono y texto */
.auth-input {
    padding-left: 58px;
}

/* Ajuste fino del icono */
.input-icon {
    left: 18px;
}
/* =========================================================
   Botón VOLVER (unificado para todo el sistema)
========================================================= */
.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--brand1), var(--brand2));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(179, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .btn-volver:hover {
        filter: brightness(1.05);
        box-shadow: 0 10px 24px rgba(179, 0, 0, 0.28);
        transform: translateY(-2px);
    }

    .btn-volver:active {
        transform: scale(0.97);
        box-shadow: 0 4px 12px rgba(179, 0, 0, 0.2);
    }

    /* Ícono dentro del botón (opcional) */
    .btn-volver svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
    }
/* Accesibilidad: oculto visual pero disponible para lectores */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Evita "doble click" molesto por transform de active dentro de tablas */
.table .btn:active {
    transform: none;
}

/* Por si el aviso queda encima y tapa clics, baja su z-index */
.notice {
    position: relative;
    z-index: 1;
}

.table-wrap {
    position: relative;
    z-index: 0;
}
/* ====== RECIBOS ====== */

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #991b1b; /* rojo oscuro */
    letter-spacing: .2px;
}

    .section-title .dot {
        width: 10px;
        height: 10px;
        border-radius: 9999px;
        background: radial-gradient(circle at 40% 40%, #ff7f7f, #b30000);
        box-shadow: 0 0 0 3px rgba(255,0,0,.1);
    }

.upload-grid,
.filter-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
}

@media (max-width: 1100px) {
    .upload-grid, .filter-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 640px) {
    .upload-grid, .filter-grid {
        grid-template-columns: 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label {
    font-size: .95rem;
    font-weight: 700;
    opacity: .9;
}

.muted {
    color: var(--muted);
}

.input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: var(--shadow);
}

    .input:focus {
        outline: 2px solid var(--ring);
    }

.align-end {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

/* Botones consistentes con el resto */
.btn.view {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

    .btn.view:hover {
        background: #bfdbfe;
        color: #1e3a8a;
    }

.btn.delete {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

    .btn.delete:hover {
        background: #fca5a5;
        color: #fff;
    }

/* Ajuste de tabla */
.table-modern td, .table-modern th {
    vertical-align: middle;
}


/* ============================= */
/* ESTADOS VACACIONES (REPORTES) */
/* ============================= */

.estado-link {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

    .estado-link:hover {
        transform: translateY(-1px);
        opacity: 0.85;
    }

/* Colores por estado */

.estado-pendiente {
    background-color: #fff3cd;
    color: #856404;
}

.estado-aprobada {
    background-color: #d4edda;
    color: #155724;
}

.estado-rechazada {
    background-color: #f8d7da;
    color: #721c24;
}

.estado-cancelada {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Número más prolijo */
.estado-count {
    font-weight: 600;
    font-size: 0.95rem;
}
.estado-eliminada {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Vacaciones/Edit - estilo consistente + sin resize en textarea */
.rc-no-resize {
    resize: none;
}

.rc-segmented {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .rc-segmented input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .rc-segmented label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 18px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #fff;
        cursor: pointer;
        font-weight: 600;
        transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    }

        .rc-segmented label:hover {
            transform: translateY(-1px);
        }

    .rc-segmented input:checked + label {
        border-color: var(--brand);
        box-shadow: 0 8px 20px rgba(16,24,40,.10);
    }

        .rc-segmented input:checked + label.danger {
            border-color: #ef4444;
        }

            
.upload-mini{
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:flex-start;
}

.upload-mini .btn{
    margin:0;
}

.upload-input{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}

.upload-filename{
    font-size: .85rem;
    color: #6b7280;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn.disabled{
    opacity:.6;
    pointer-events:none;
}


.upload-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

    .upload-mini .btn {
        margin: 0;
    }

.upload-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.upload-filename {
    font-size: .85rem;
    color: #6b7280;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn.disabled {
    opacity: .6;
    pointer-events: none;
}

.input-container.no-icon .auth-input {
    padding-left: 16px;
}

.acciones {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.btn-tabla {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid transparent;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
    transition: all .15s ease;
}

    .btn-tabla:hover {
        transform: translateY(-1px);
    }

.btn-ver {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.btn-editar {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.btn-eliminar {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
    color: #fff;
    border-color: transparent;
}
.perfil-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filtros-actions {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding-top: 41px;
}
.filtros-actions .btn,
.filtros-actions .btn-tabla {
    margin: 0;
}
.btn-filtrar {
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
    color: #fff;
    border-color: transparent;
}