:root {
    --azul-fondo: #001E4D;
    --azul-noche: #001535;
    --blanco-frio: #F7F8FA;
    --gris-plata: #D6D8DA;
    --gris-metalico: #A7A9AC;
    --grafito: #4A4F55;
    --negro-suave: #0A0F18;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--azul-fondo), var(--azul-noche));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(10, 15, 24, 0.78);
    border: 1px solid rgba(214, 216, 218, 0.18);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    color: var(--blanco-frio);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

    .login-logo h1 {
        font-size: 30px;
        font-weight: 800;
        letter-spacing: 1px;
        margin: 0;
    }

    .login-logo span {
        color: var(--gris-plata);
        font-size: 14px;
    }

.login-label {
    color: var(--gris-plata);
    font-size: 14px;
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(214, 216, 218, 0.25);
    background: #F7F8FA;
    color: #0A0F18;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.login-button {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 13px;
    background: #D6D8DA;
    color: #001535;
    font-weight: 700;
    margin-top: 8px;
}

    .login-button:hover {
        background: #F7F8FA;
    }

.login-error {
    background: rgba(255, 80, 80, 0.16);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.user-shell {
    min-height: 100vh;
    display: flex;
    background: #F7F8FA;
}

.user-sidebar {
    width: 260px;
    background: #001E4D;
    color: #F7F8FA;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-brand span {
    color: #D6D8DA;
    font-size: 14px;
}

.user-sidebar nav {
    margin-top: 42px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .user-sidebar nav a {
        color: #D6D8DA;
        padding: 12px 14px;
        border-radius: 12px;
        text-decoration: none;
    }

        .user-sidebar nav a.active,
        .user-sidebar nav a:hover {
            background: #001535;
            color: #F7F8FA;
        }

.logout-button {
    margin-top: auto;
    border: 1px solid rgba(247,248,250,0.25);
    background: transparent;
    color: #F7F8FA;
    border-radius: 12px;
    padding: 12px;
}

.user-main {
    flex: 1;
    padding: 36px;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

    .user-header h1 {
        margin: 0;
        color: #001E4D;
    }

    .user-header p {
        margin: 6px 0 0;
        color: #4A4F55;
    }

.user-badge {
    background: #001E4D;
    color: #F7F8FA;
    padding: 12px 18px;
    border-radius: 999px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
}

.dashboard-card {
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(10,15,24,0.08);
}

    .dashboard-card span {
        color: #4A4F55;
        font-size: 14px;
    }

    .dashboard-card strong {
        display: block;
        margin-top: 10px;
        color: #001E4D;
        font-size: 18px;
    }

.action-panel {
    margin-top: 32px;
    background: white;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(10,15,24,0.08);
}

    .action-panel h2 {
        margin-top: 0;
        color: #001E4D;
    }

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

    .action-grid button {
        background: #001E4D;
        color: #F7F8FA;
        border: none;
        border-radius: 14px;
        padding: 16px;
        font-weight: 700;
    }

        .action-grid button:hover {
            background: #001535;
        }

.loading-text {
    color: #001E4D;
}

.panel-error {
    background: #ffe6e6;
    color: #8a0000;
    padding: 14px;
    border-radius: 12px;
}

.panel-success {
    background: #e7f8ed;
    color: #0b6634;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.panel-warning {
    background: #fff4d8;
    color: #7a5200;
    padding: 14px;
    border-radius: 12px;
}

.dashboard-grid-secondary {
    margin-top: 18px;
}

.fichaje-status-panel {
    margin-top: 32px;
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(10,15,24,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.status-label {
    display: block;
    color: #4A4F55;
    font-size: 14px;
    margin-bottom: 6px;
}

.fichaje-status-panel h2 {
    margin: 0;
    color: #001E4D;
    font-size: 32px;
}

.fichaje-status-panel p {
    margin: 8px 0 0;
    color: #4A4F55;
}

.smart-fichaje-button {
    min-width: 280px;
    border: none;
    border-radius: 20px;
    padding: 24px 28px;
    color: white;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

    .smart-fichaje-button:hover {
        filter: brightness(0.95);
    }

    .smart-fichaje-button.disabled {
        background: #4A4F55;
        cursor: not-allowed;
    }

@media (max-width: 900px) {
    .fichaje-status-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .smart-fichaje-button {
        width: 100%;
        min-width: 0;
    }
}

.employee-main {
    flex: 1;
    padding: 38px;
    background: #F7F8FA;
}

.employee-hero {
    background: linear-gradient(135deg, #001E4D, #001535);
    color: #F7F8FA;
    border-radius: 30px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 18px 45px rgba(10,15,24,0.20);
    margin-bottom: 24px;
}

.employee-date {
    color: #D6D8DA;
    font-size: 14px;
    text-transform: capitalize;
}

.employee-hero h1 {
    margin: 8px 0 4px;
    font-size: 34px;
}

.employee-hero p {
    margin: 0;
    color: #D6D8DA;
}

.employee-clock {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 1px;
}

.employee-status-card {
    background: white;
    border-radius: 28px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 12px 34px rgba(10,15,24,0.08);
    margin-bottom: 24px;
}

.status-left h2 {
    margin: 0;
    color: #001E4D;
    font-size: 36px;
}

.status-left p {
    margin: 10px 0 0;
    color: #4A4F55;
}

.employee-main-button {
    min-width: 310px;
    border: none;
    border-radius: 24px;
    padding: 28px 34px;
    color: white;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, filter 0.15s ease;
}

    .employee-main-button:hover {
        transform: translateY(-2px);
        filter: brightness(0.96);
    }

.button-finished {
    background: #4A4F55;
    cursor: not-allowed;
}

.employee-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.employee-summary-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(10,15,24,0.07);
}

    .employee-summary-card span {
        color: #4A4F55;
        font-size: 14px;
    }

    .employee-summary-card strong {
        display: block;
        margin-top: 10px;
        color: #001E4D;
        font-size: 24px;
    }

.timeline-card {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 12px 34px rgba(10,15,24,0.08);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

    .timeline-header h2 {
        margin: 0;
        color: #001E4D;
    }

    .timeline-header span {
        color: #4A4F55;
    }

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: #F7F8FA;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
}

.dot-green {
    background: #22C55E;
}

.dot-red {
    background: #EF4444;
}

.dot-yellow {
    background: #F59E0B;
}

.dot-gray {
    background: #A7A9AC;
}

.timeline-content strong {
    display: block;
    color: #001E4D;
}

.timeline-content span {
    color: #4A4F55;
    font-size: 14px;
}

.timeline-method {
    color: #4A4F55;
    font-size: 13px;
    background: white;
    padding: 7px 10px;
    border-radius: 999px;
}

.empty-state {
    background: #F7F8FA;
    border-radius: 18px;
    padding: 22px;
    color: #4A4F55;
}

@media (max-width: 1000px) {
    .employee-hero,
    .employee-status-card {
        flex-direction: column;
        align-items: stretch;
    }

    .employee-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .employee-main-button {
        width: 100%;
        min-width: 0;
    }
}

.employee-buttons {
    display: flex;
    gap: 18px;
}

.employee-secondary-button {
    border: none;
    border-radius: 22px;
    padding: 26px 34px;
    font-size: 22px;
    font-weight: 800;
    color: white;
    min-width: 260px;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
    transition: .2s;
}

    .employee-secondary-button:hover {
        transform: translateY(-2px);
    }

    .employee-secondary-button.pause {
        background: #F59E0B;
    }

    .employee-secondary-button.finish {
        background: #DC2626;
    }

.employee-buttons {
    display: flex;
    gap: 18px;
}

.employee-secondary-button {
    border: none;
    border-radius: 22px;
    padding: 26px 34px;
    font-size: 22px;
    font-weight: 800;
    color: white;
    min-width: 260px;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
    transition: .2s;
}

    .employee-secondary-button:hover {
        transform: translateY(-2px);
    }

    .employee-secondary-button.pause {
        background: #F59E0B;
    }

    .employee-secondary-button.finish {
        background: #DC2626;
    }

.progress-ring-wrapper {
    position: relative;
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    width: 190px;
    height: 190px;
    transform: rotate(-90deg);
}

.progress-ring-content {
    position: absolute;
    text-align: center;
    color: #F7F8FA;
}

    .progress-ring-content strong {
        display: block;
        font-size: 38px;
        font-weight: 900;
        line-height: 1;
    }

    .progress-ring-content span {
        display: block;
        margin-top: 8px;
        font-size: 13px;
        color: #D6D8DA;
    }
.employee-hero.compact {
    margin-bottom: 24px;
}

.filters-card {
    background: white;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(10,15,24,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 24px;
}

    .filters-card label {
        display: block;
        color: #4A4F55;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .filters-card input {
        width: 100%;
        border: 1px solid #D6D8DA;
        border-radius: 14px;
        padding: 13px 14px;
        color: #001E4D;
        background: #F7F8FA;
    }

    .filters-card button {
        border: none;
        border-radius: 14px;
        padding: 14px 22px;
        background: #001E4D;
        color: #F7F8FA;
        font-weight: 800;
    }

.fichajes-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fichajes-table-header,
.fichajes-table-row {
    display: grid;
    grid-template-columns: 140px 100px 180px 120px 1fr;
    gap: 12px;
    align-items: center;
}

.fichajes-table-header {
    color: #4A4F55;
    font-size: 13px;
    padding: 0 14px 8px;
}

.fichajes-table-row {
    background: #F7F8FA;
    border-radius: 16px;
    padding: 14px;
    color: #001E4D;
}

.fichaje-chip {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.chip-green {
    background: #DCFCE7;
    color: #166534;
}

.chip-red {
    background: #FEE2E2;
    color: #991B1B;
}

.chip-yellow {
    background: #FEF3C7;
    color: #92400E;
}

.chip-gray {
    background: #E5E7EB;
    color: #374151;
}

@media (max-width: 900px) {
    .filters-card {
        grid-template-columns: 1fr;
    }

    .fichajes-table-header {
        display: none;
    }

    .fichajes-table-row {
        grid-template-columns: 1fr;
    }
}

.vacaciones-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vacaciones-item {
    background: #F7F8FA;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.vacaciones-date {
    display: block;
    color: #4A4F55;
    font-size: 14px;
    margin-bottom: 6px;
}

.vacaciones-item strong {
    display: block;
    color: #001E4D;
    font-size: 18px;
}

.vacaciones-item p {
    margin: 6px 0 0;
    color: #4A4F55;
}

.vacaciones-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vacaciones-days {
    color: #001E4D;
    font-weight: 800;
}

@media (max-width: 900px) {
    .vacaciones-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .vacaciones-right {
        width: 100%;
        justify-content: space-between;
    }
}

.vacaciones-form-card {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 12px 34px rgba(10,15,24,0.08);
    margin-bottom: 24px;
}

.vacaciones-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}

    .vacaciones-form-grid label {
        display: block;
        color: #4A4F55;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .vacaciones-form-grid input,
    .vacaciones-form-grid select,
    .vacaciones-form-grid textarea {
        width: 100%;
        border: 1px solid #D6D8DA;
        border-radius: 14px;
        padding: 13px 14px;
        color: #001E4D;
        background: #F7F8FA;
    }

    .vacaciones-form-grid textarea {
        min-height: 95px;
        resize: vertical;
    }

.vacaciones-form-full {
    grid-column: 1 / -1;
}

.vacaciones-form-actions {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .vacaciones-form-actions div {
        display: flex;
        flex-direction: column;
    }

    .vacaciones-form-actions strong {
        color: #001E4D;
        font-size: 28px;
    }

    .vacaciones-form-actions span {
        color: #4A4F55;
        font-size: 14px;
    }

    .vacaciones-form-actions button {
        border: none;
        border-radius: 16px;
        padding: 16px 24px;
        background: #001E4D;
        color: #F7F8FA;
        font-weight: 900;
    }

@media (max-width: 900px) {
    .vacaciones-form-grid {
        grid-template-columns: 1fr;
    }

    .vacaciones-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
}

/* =========================================================
   MIS FICHAJES AGRUPADOS POR DÍA
   ========================================================= */

.daily-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.daily-group {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e7ec;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(10, 15, 24, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .daily-group:hover {
        box-shadow: 0 10px 28px rgba(10, 15, 24, 0.10);
    }

.daily-group-header {
    width: 100%;
    margin: 0;
    padding: 20px 22px;
    border: 0;
    background: #f7f8fa;
    color: #001e4d;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 24px;
    font: inherit;
    text-align: left;
}

    .daily-group-header:hover {
        background: #f0f3f6;
    }

.daily-group-date {
    min-width: 0;
}

    .daily-group-date strong {
        display: block;
        color: #001e4d;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.35;
        text-transform: capitalize;
    }

    .daily-group-date span {
        display: block;
        margin-top: 5px;
        color: #6b7280;
        font-size: 13px;
    }

.daily-group-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    white-space: nowrap;
    color: #5c636c;
    font-size: 14px;
}

    .daily-group-summary > span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .daily-group-summary strong {
        color: #001e4d;
        font-weight: 800;
    }

.daily-group-toggle {
    min-width: 126px;
    justify-content: flex-end;
    color: #001e4d;
    font-weight: 800;
}

.daily-group-content {
    padding: 14px;
    background: #ffffff;
    border-top: 1px solid #e8ebef;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-fichaje-row {
    padding: 15px 16px;
    border-radius: 15px;
    background: #f7f8fa;
    display: grid;
    grid-template-columns: 90px 180px 100px minmax(180px, 1fr);
    align-items: center;
    gap: 16px;
}

.daily-fichaje-time {
    color: #001e4d;
    font-size: 18px;
    font-weight: 900;
}

.daily-fichaje-method {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #4a4f55;
    font-size: 12px;
    font-weight: 700;
}

.daily-fichaje-notes {
    overflow: hidden;
    color: #4a4f55;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive */

@media (max-width: 1050px) {
    .daily-group-header {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .daily-group-summary {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px 22px;
        white-space: normal;
    }

    .daily-group-toggle {
        min-width: 0;
        justify-content: flex-start;
    }

    .daily-fichaje-row {
        grid-template-columns: 80px 160px 90px 1fr;
    }
}

@media (max-width: 760px) {
    .daily-group-header {
        padding: 17px;
    }

    .daily-group-summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .daily-group-toggle {
        grid-column: 1 / -1;
    }

    .daily-group-content {
        padding: 10px;
    }

    .daily-fichaje-row {
        grid-template-columns: 74px 1fr;
        gap: 10px 14px;
    }

    .daily-fichaje-method,
    .daily-fichaje-notes {
        grid-column: 2;
    }

    .daily-fichaje-notes {
        white-space: normal;
    }
}

/* =========================================================
   SOLICITUD DE FICHAJE MANUAL
   ========================================================= */

.manual-request-card {
    margin-bottom: 24px;
    padding: 30px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 34px rgba(10, 15, 24, 0.08);
}

.manual-request-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

    .manual-request-header h2 {
        margin: 0;
        color: #001e4d;
        font-size: 24px;
    }

    .manual-request-header p {
        margin: 7px 0 0;
        color: #4a4f55;
    }

.manual-request-status {
    padding: 9px 14px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.manual-request-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
}

.manual-form-field label {
    display: block;
    margin-bottom: 8px;
    color: #4a4f55;
    font-size: 14px;
}

.manual-form-field select,
.manual-form-field input,
.manual-form-field textarea {
    width: 100%;
    padding: 14px 15px;
    color: #001e4d;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 14px;
    font: inherit;
}

    .manual-form-field select:focus,
    .manual-form-field input:focus,
    .manual-form-field textarea:focus {
        outline: none;
        border-color: #001e4d;
        box-shadow: 0 0 0 3px rgba(0, 30, 77, 0.10);
    }

.manual-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.manual-form-full {
    position: relative;
    grid-column: 1 / -1;
}

.manual-character-count {
    position: absolute;
    right: 13px;
    bottom: 11px;
    color: #7b8087;
    font-size: 12px;
}

.manual-request-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 18px;
    background: #f7f8fa;
    border-radius: 18px;
}

.manual-preview-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 23px;
    font-weight: 900;
}

.manual-preview-green {
    color: #166534;
    background: #dcfce7;
}

.manual-preview-red {
    color: #991b1b;
    background: #fee2e2;
}

.manual-preview-yellow {
    color: #92400e;
    background: #fef3c7;
}

.manual-preview-gray {
    color: #374151;
    background: #e5e7eb;
}

.manual-request-preview span {
    display: block;
    color: #4a4f55;
    font-size: 13px;
}

.manual-request-preview strong {
    display: block;
    margin-top: 3px;
    color: #001e4d;
    font-size: 18px;
}

.manual-request-preview p {
    margin: 4px 0 0;
    color: #4a4f55;
    font-size: 14px;
}

.manual-request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

    .manual-request-actions button {
        padding: 14px 22px;
        border-radius: 14px;
        font-weight: 800;
        cursor: pointer;
    }

        .manual-request-actions button:disabled {
            cursor: not-allowed;
            opacity: 0.65;
        }

.manual-cancel-button {
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
}

.manual-submit-button {
    color: #f7f8fa;
    background: #001e4d;
    border: 1px solid #001e4d;
}

    .manual-submit-button:hover:not(:disabled) {
        background: #001535;
    }

.manual-info-card {
    padding: 28px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 34px rgba(10, 15, 24, 0.08);
}

    .manual-info-card h2 {
        margin: 0 0 20px;
        color: #001e4d;
    }

.manual-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

    .manual-info-grid div {
        padding: 18px;
        background: #f7f8fa;
        border-radius: 17px;
    }

    .manual-info-grid strong {
        display: block;
        color: #001e4d;
    }

    .manual-info-grid span {
        display: block;
        margin-top: 6px;
        color: #4a4f55;
        font-size: 14px;
        line-height: 1.45;
    }

@media (max-width: 900px) {
    .manual-request-header {
        flex-direction: column;
    }

    .manual-request-grid,
    .manual-info-grid {
        grid-template-columns: 1fr;
    }

    .manual-request-actions {
        flex-direction: column-reverse;
    }

        .manual-request-actions button {
            width: 100%;
        }
}

/* =========================================================
   ADMINISTRACIÓN - EMPLEADOS
   ========================================================= */

.admin-employees-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-primary-button {
    padding: 15px 22px;
    color: #001e4d;
    background: #f7f8fa;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

    .admin-primary-button:hover {
        background: #ffffff;
        transform: translateY(-1px);
    }

.admin-employees-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-employees-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, 0.07);
}

.admin-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 14px;
}

    .admin-search-box span {
        color: #4a4f55;
        font-size: 20px;
    }

    .admin-search-box input {
        width: 100%;
        padding: 13px 0;
        color: #001e4d;
        background: transparent;
        border: none;
        outline: none;
        font: inherit;
    }

.admin-employees-toolbar select {
    width: 100%;
    padding: 13px 14px;
    color: #001e4d;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 14px;
    font: inherit;
}

.admin-employees-toolbar > button {
    padding: 14px 20px;
    color: #f7f8fa;
    background: #001e4d;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}

.admin-employees-container {
    overflow: hidden;
}

.admin-employees-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-employees-table-header,
.admin-employee-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) 110px minmax(160px, 1fr) minmax(210px, 1.2fr) 100px 110px;
    gap: 14px;
    align-items: center;
}

.admin-employees-table-header {
    padding: 0 16px 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-employee-row {
    padding: 15px 16px;
    background: #f7f8fa;
    border: 1px solid transparent;
    border-radius: 17px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .admin-employee-row:hover {
        border-color: #d6d8da;
        box-shadow: 0 8px 24px rgba(10, 15, 24, 0.07);
        transform: translateY(-1px);
    }

.admin-employee-person {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.admin-employee-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    color: #f7f8fa;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
}

.admin-employee-person strong,
.admin-employee-contact strong {
    display: block;
    overflow: hidden;
    color: #001e4d;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-employee-person span,
.admin-employee-contact span {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-employee-code,
.admin-employee-center {
    color: #4a4f55;
    font-size: 14px;
}

.admin-status-chip {
    display: inline-flex;
    justify-content: center;
    min-width: 74px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admin-status-active {
    color: #166534;
    background: #dcfce7;
}

.admin-status-inactive {
    color: #991b1b;
    background: #fee2e2;
}

.admin-employee-actions {
    display: flex;
    justify-content: flex-end;
}

    .admin-employee-actions button {
        padding: 9px 12px;
        color: #001e4d;
        background: #ffffff;
        border: 1px solid #d6d8da;
        border-radius: 11px;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
        white-space: nowrap;
    }

        .admin-employee-actions button:hover {
            color: #f7f8fa;
            background: #001e4d;
            border-color: #001e4d;
        }

@media (max-width: 1200px) {
    .admin-employees-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-employees-table-header {
        display: none;
    }

    .admin-employee-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .admin-employee-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 800px) {
    .admin-employees-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-employees-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-employees-summary {
        grid-template-columns: 1fr;
    }

    .admin-employee-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FORMULARIO DE EMPLEADOS
   ========================================================= */

.employee-form {
    width: 100%;
}

.employee-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 30px;
    color: #f7f8fa;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(10, 15, 24, 0.18);
}

.employee-form-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #d6d8da;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.employee-form-header h1 {
    margin: 0;
    font-size: 32px;
}

.employee-form-header p {
    margin: 8px 0 0;
    color: #d6d8da;
}

.employee-form-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    color: #001e4d;
    background: #f7f8fa;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.employee-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

    .employee-status-dot.is-active {
        background: #22c55e;
    }

    .employee-status-dot.is-inactive {
        background: #ef4444;
    }

.employee-form-message {
    margin-bottom: 24px;
}

.employee-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.employee-form-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.employee-form-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, 0.07);
}

.employee-form-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.employee-form-section-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    color: #f7f8fa;
    background: #001e4d;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 900;
}

.employee-form-section-header h2 {
    margin: 0;
    color: #001e4d;
    font-size: 21px;
}

.employee-form-section-header p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.employee-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.employee-field {
    min-width: 0;
}

.employee-field-full {
    grid-column: 1 / -1;
}

.employee-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.employee-required {
    color: #dc2626;
}

.employee-optional {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
}

.employee-field input,
.employee-field select {
    width: 100%;
    padding: 14px 15px;
    color: #001e4d;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 14px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .employee-field input:focus,
    .employee-field select:focus {
        outline: none;
        background: #ffffff;
        border-color: #001e4d;
        box-shadow: 0 0 0 3px rgba(0, 30, 77, 0.10);
    }

.employee-field-help,
.employee-field-warning {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.4;
}

.employee-field-help {
    color: #6b7280;
}

.employee-field-warning {
    color: #b45309;
}

.employee-toggle-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 14px;
}

    .employee-toggle-field label {
        margin: 0;
    }

.employee-switch {
    position: relative;
    width: 52px;
    height: 29px;
    flex: 0 0 52px;
    cursor: pointer;
}

    .employee-switch input {
        width: 0;
        height: 0;
        opacity: 0;
    }

.employee-switch-slider {
    position: absolute;
    inset: 0;
    background: #a7a9ac;
    border-radius: 999px;
    transition: background 0.2s ease;
}

    .employee-switch-slider::before {
        content: "";
        position: absolute;
        width: 23px;
        height: 23px;
        top: 3px;
        left: 3px;
        background: #ffffff;
        border-radius: 50%;
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
        transition: transform 0.2s ease;
    }

.employee-switch input:checked + .employee-switch-slider {
    background: #22c55e;
}

    .employee-switch input:checked + .employee-switch-slider::before {
        transform: translateX(23px);
    }

.employee-access-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    background: #f7f8fa;
    border-radius: 17px;
}

    .employee-access-toggle strong {
        display: block;
        color: #001e4d;
    }

    .employee-access-toggle span {
        display: block;
        margin-top: 5px;
        color: #6b7280;
        font-size: 13px;
    }

.employee-access-fields {
    margin-top: 20px;
}

.employee-password-field {
    display: flex;
    align-items: stretch;
}

    .employee-password-field input {
        border-radius: 14px 0 0 14px;
    }

    .employee-password-field button {
        padding: 0 15px;
        color: #001e4d;
        background: #ffffff;
        border: 1px solid #d6d8da;
        border-left: none;
        border-radius: 0 14px 14px 0;
        font-weight: 800;
        cursor: pointer;
    }

.employee-account-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    background: #f7f8fa;
    border-radius: 17px;
}

.employee-account-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    color: #f7f8fa;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 15px;
    font-weight: 900;
}

.employee-account-summary strong {
    display: block;
    color: #001e4d;
}

.employee-account-summary span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.employee-role-chip {
    margin-left: auto;
    padding: 7px 10px;
    color: #001e4d;
    background: #dbeafe;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.employee-form-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.employee-preview-card,
.employee-form-help-card {
    padding: 24px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, 0.07);
}

.employee-preview-card {
    text-align: center;
}

.employee-preview-avatar {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: #f7f8fa;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 27px;
    font-size: 26px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(0, 30, 77, 0.22);
}

.employee-preview-card h2 {
    margin: 0;
    color: #001e4d;
    font-size: 21px;
}

.employee-preview-code {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.employee-preview-divider {
    height: 1px;
    margin: 22px 0;
    background: #e5e7eb;
}

.employee-preview-card dl {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    text-align: left;
}

    .employee-preview-card dl div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

.employee-preview-card dt {
    color: #6b7280;
    font-size: 12px;
}

.employee-preview-card dd {
    overflow: hidden;
    margin: 0;
    color: #001e4d;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
}

.employee-form-help-card h3 {
    margin: 0 0 15px;
    color: #001e4d;
}

.employee-form-help-card ul {
    margin: 0;
    padding-left: 19px;
    color: #4a4f55;
    font-size: 13px;
    line-height: 1.65;
}

.employee-form-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 18px 0;
    background: linear-gradient( to top, #f7f8fa 75%, rgba(247, 248, 250, 0) );
}

    .employee-form-footer button {
        min-width: 150px;
        padding: 14px 21px;
        border-radius: 14px;
        font-weight: 900;
        cursor: pointer;
    }

        .employee-form-footer button:disabled {
            cursor: not-allowed;
            opacity: 0.65;
        }

.employee-form-cancel-button {
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
}

.employee-form-save-button {
    color: #f7f8fa;
    background: #001e4d;
    border: 1px solid #001e4d;
    box-shadow: 0 10px 24px rgba(0, 30, 77, 0.20);
}

    .employee-form-save-button:hover:not(:disabled) {
        background: #001535;
    }

@media (max-width: 1100px) {
    .employee-form-layout {
        grid-template-columns: 1fr;
    }

    .employee-form-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .employee-form-header {
        flex-direction: column;
    }

    .employee-form-grid {
        grid-template-columns: 1fr;
    }

    .employee-field-full {
        grid-column: auto;
    }

    .employee-form-sidebar {
        grid-template-columns: 1fr;
    }

    .employee-form-card {
        padding: 21px;
    }

    .employee-account-summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .employee-role-chip {
        width: fit-content;
        margin-left: 60px;
    }

    .employee-form-footer {
        flex-direction: column-reverse;
    }

        .employee-form-footer button {
            width: 100%;
        }
}

/* =========================================================
   ADMINISTRACIÓN - FICHAJES
   ========================================================= */

.admin-attendance-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-attendance-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(150px, .7fr) minmax(150px, .7fr) minmax(170px, .8fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
    padding: 22px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
}

.admin-attendance-field label {
    display: block;
    margin-bottom: 8px;
    color: #4a4f55;
    font-size: 13px;
    font-weight: 700;
}

.admin-attendance-field input,
.admin-attendance-field select {
    width: 100%;
    padding: 13px 14px;
    color: #001e4d;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 14px;
    font: inherit;
}

    .admin-attendance-field input:focus,
    .admin-attendance-field select:focus {
        outline: none;
        background: #ffffff;
        border-color: #001e4d;
        box-shadow: 0 0 0 3px rgba(0, 30, 77, .10);
    }

.admin-attendance-search-button {
    padding: 14px 22px;
    color: #f7f8fa;
    background: #001e4d;
    border: none;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

    .admin-attendance-search-button:disabled {
        cursor: not-allowed;
        opacity: .65;
    }

.admin-attendance-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.admin-attendance-days {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-attendance-day {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e7ec;
    border-radius: 20px;
}

.admin-attendance-day-header {
    width: 100%;
    padding: 20px 22px;
    color: #001e4d;
    background: #f7f8fa;
    border: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 24px;
    align-items: center;
    text-align: left;
    font: inherit;
}

    .admin-attendance-day-header:hover {
        background: #f0f3f6;
    }

    .admin-attendance-day-header > div:first-child strong {
        display: block;
        font-size: 17px;
        text-transform: capitalize;
    }

    .admin-attendance-day-header > div:first-child span {
        display: block;
        margin-top: 5px;
        color: #6b7280;
        font-size: 13px;
    }

.admin-attendance-day-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    color: #4a4f55;
    font-size: 13px;
    white-space: nowrap;
}

    .admin-attendance-day-summary span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .admin-attendance-day-summary strong {
        color: #001e4d;
    }

.admin-attendance-expand {
    min-width: 105px;
    justify-content: flex-end;
    color: #001e4d;
    font-weight: 900;
}

.admin-attendance-day-content {
    padding: 14px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.admin-attendance-row-header,
.admin-attendance-row {
    display: grid;
    grid-template-columns: 80px 150px 110px minmax(150px, .8fr) minmax(220px, 1.5fr);
    gap: 14px;
    align-items: center;
}

.admin-attendance-row-header {
    padding: 5px 15px 11px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-attendance-row {
    margin-bottom: 10px;
    padding: 14px 15px;
    color: #4a4f55;
    background: #f7f8fa;
    border-radius: 15px;
    font-size: 14px;
}

    .admin-attendance-row:last-child {
        margin-bottom: 0;
    }

.admin-attendance-time {
    color: #001e4d;
    font-size: 17px;
}

.admin-attendance-method {
    width: fit-content;
    padding: 6px 10px;
    color: #4a4f55;
    background: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admin-attendance-notes {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .admin-attendance-filters {
        grid-template-columns: 1fr 1fr;
    }

    .employee-filter {
        grid-column: 1 / -1;
    }

    .admin-attendance-search-button {
        width: 100%;
    }

    .admin-attendance-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-attendance-day-header {
        grid-template-columns: 1fr;
    }

    .admin-attendance-day-summary {
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }
}

@media (max-width: 800px) {
    .admin-attendance-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-attendance-filters,
    .admin-attendance-summary {
        grid-template-columns: 1fr;
    }

    .employee-filter {
        grid-column: auto;
    }

    .admin-attendance-row-header {
        display: none;
    }

    .admin-attendance-row {
        grid-template-columns: 70px 1fr;
    }

    .admin-attendance-method,
    .admin-attendance-notes {
        grid-column: 2;
    }

    .admin-attendance-notes {
        white-space: normal;
    }
}

/* =========================================================
   ADMINISTRACIÓN - SOLICITUDES MANUALES
   ========================================================= */

.manual-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.manual-admin-hero-actions {
    display: flex;
    gap: 12px;
}

.admin-secondary-button {
    padding: 15px 20px;
    color: #f7f8fa;
    background: transparent;
    border: 1px solid rgba(247, 248, 250, .35);
    border-radius: 15px;
    font-weight: 800;
    cursor: pointer;
}

    .admin-secondary-button:hover {
        background: rgba(247, 248, 250, .10);
    }

.admin-manual-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-manual-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
}

    .admin-manual-toolbar select {
        width: 100%;
        padding: 13px 14px;
        color: #001e4d;
        background: #f7f8fa;
        border: 1px solid #d6d8da;
        border-radius: 14px;
        font: inherit;
    }

.admin-manual-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-manual-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e7ec;
    border-radius: 20px;
}

.admin-manual-card-main {
    display: grid;
    grid-template-columns: 48px minmax(180px, 1.2fr) 150px 140px minmax(165px, .9fr) auto;
    gap: 15px;
    align-items: center;
    padding: 18px;
    background: #f7f8fa;
}

.admin-manual-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #f7f8fa;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 15px;
    font-size: 13px;
    font-weight: 900;
}

.admin-manual-person strong,
.admin-manual-date strong,
.admin-manual-request-date strong {
    display: block;
    color: #001e4d;
}

.admin-manual-person span,
.admin-manual-date span,
.admin-manual-request-date span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.admin-manual-review-button {
    padding: 10px 14px;
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

    .admin-manual-review-button:hover {
        color: #f7f8fa;
        background: #001e4d;
        border-color: #001e4d;
    }

.admin-manual-reason {
    padding: 17px 20px;
    border-top: 1px solid #e5e7eb;
}

    .admin-manual-reason span {
        display: block;
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
    }

    .admin-manual-reason p {
        margin: 7px 0 0;
        color: #374151;
        line-height: 1.5;
    }

.admin-manual-response {
    padding: 22px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.admin-manual-response-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

    .admin-manual-response-header h3 {
        margin: 0;
        color: #001e4d;
    }

    .admin-manual-response-header p {
        margin: 5px 0 0;
        color: #6b7280;
        font-size: 13px;
    }

.admin-manual-response-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

    .admin-manual-response-preview div {
        padding: 15px;
        background: #f7f8fa;
        border-radius: 14px;
    }

    .admin-manual-response-preview span {
        display: block;
        color: #6b7280;
        font-size: 12px;
    }

    .admin-manual-response-preview strong {
        display: block;
        margin-top: 5px;
        color: #001e4d;
    }

.admin-manual-comment {
    position: relative;
}

    .admin-manual-comment label {
        display: block;
        margin-bottom: 8px;
        color: #374151;
        font-size: 14px;
        font-weight: 700;
    }

    .admin-manual-comment textarea {
        width: 100%;
        min-height: 100px;
        padding: 14px;
        color: #001e4d;
        background: #f7f8fa;
        border: 1px solid #d6d8da;
        border-radius: 14px;
        resize: vertical;
        font: inherit;
    }

        .admin-manual-comment textarea:focus {
            outline: none;
            background: #ffffff;
            border-color: #001e4d;
            box-shadow: 0 0 0 3px rgba(0, 30, 77, .10);
        }

    .admin-manual-comment > span {
        position: absolute;
        right: 12px;
        bottom: 10px;
        color: #9ca3af;
        font-size: 11px;
    }

.admin-manual-response-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

    .admin-manual-response-actions button {
        padding: 14px 20px;
        border-radius: 14px;
        font-weight: 900;
        cursor: pointer;
    }

        .admin-manual-response-actions button:disabled {
            cursor: not-allowed;
            opacity: .65;
        }

.admin-manual-reject-button {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.admin-manual-approve-button {
    color: #ffffff;
    background: #15803d;
    border: 1px solid #15803d;
}

    .admin-manual-approve-button:hover:not(:disabled) {
        background: #166534;
    }

@media (max-width: 1150px) {
    .admin-manual-card-main {
        grid-template-columns: 48px 1fr 140px auto;
    }

    .admin-manual-request-date {
        grid-column: 2;
    }
}

@media (max-width: 850px) {
    .manual-admin-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .manual-admin-hero-actions {
        flex-direction: column;
    }

    .admin-manual-summary,
    .admin-manual-toolbar,
    .admin-manual-response-preview {
        grid-template-columns: 1fr;
    }

    .admin-manual-card-main {
        grid-template-columns: 48px 1fr;
    }

    .admin-manual-type,
    .admin-manual-date,
    .admin-manual-request-date,
    .admin-manual-review-button {
        grid-column: 2;
    }

    .admin-manual-response-header {
        flex-direction: column;
    }

    .admin-manual-response-actions {
        flex-direction: column-reverse;
    }

        .admin-manual-response-actions button {
            width: 100%;
        }
}

/* =========================================================
   ADMINISTRACIÓN - VACACIONES
   ========================================================= */

.admin-vacations-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-vacations-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-vacations-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 220px 220px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
}

    .admin-vacations-toolbar select {
        width: 100%;
        padding: 13px 14px;
        color: #001e4d;
        background: #f7f8fa;
        border: 1px solid #d6d8da;
        border-radius: 14px;
        font: inherit;
    }

.admin-vacations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-vacation-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e7ec;
    border-radius: 20px;
}

.admin-vacation-card-main {
    display: grid;
    grid-template-columns: 48px minmax(180px, 1.2fr) 145px 185px 80px minmax(165px, .8fr) auto;
    gap: 15px;
    align-items: center;
    padding: 18px;
    background: #f7f8fa;
}

.admin-vacation-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #f7f8fa;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 15px;
    font-size: 13px;
    font-weight: 900;
}

.admin-vacation-person strong,
.admin-vacation-period strong,
.admin-vacation-requested strong {
    display: block;
    color: #001e4d;
}

.admin-vacation-person span,
.admin-vacation-period span,
.admin-vacation-requested span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.admin-vacation-days {
    text-align: center;
}

    .admin-vacation-days strong {
        display: block;
        color: #001e4d;
        font-size: 20px;
    }

    .admin-vacation-days span {
        color: #6b7280;
        font-size: 12px;
    }

.vacation-type-chip {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.vacation-type-blue {
    color: #1e40af;
    background: #dbeafe;
}

.vacation-type-yellow {
    color: #92400e;
    background: #fef3c7;
}

.vacation-type-purple {
    color: #6b21a8;
    background: #f3e8ff;
}

.vacation-type-gray {
    color: #374151;
    background: #e5e7eb;
}

.admin-vacation-review-button {
    padding: 10px 14px;
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

    .admin-vacation-review-button:hover {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
    }

.admin-vacation-reason {
    padding: 17px 20px;
    border-top: 1px solid #e5e7eb;
}

    .admin-vacation-reason span {
        display: block;
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
    }

    .admin-vacation-reason p {
        margin: 7px 0 0;
        color: #374151;
        line-height: 1.5;
    }

.admin-vacation-response {
    padding: 22px;
    border-top: 1px solid #e5e7eb;
}

.admin-vacation-response-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

    .admin-vacation-response-header h3 {
        margin: 0;
        color: #001e4d;
    }

    .admin-vacation-response-header p {
        margin: 5px 0 0;
        color: #6b7280;
        font-size: 13px;
    }

.admin-vacation-response-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

    .admin-vacation-response-preview div {
        padding: 15px;
        background: #f7f8fa;
        border-radius: 14px;
    }

    .admin-vacation-response-preview span {
        display: block;
        color: #6b7280;
        font-size: 12px;
    }

    .admin-vacation-response-preview strong {
        display: block;
        margin-top: 5px;
        color: #001e4d;
    }

.admin-vacation-comment {
    position: relative;
}

    .admin-vacation-comment label {
        display: block;
        margin-bottom: 8px;
        color: #374151;
        font-size: 14px;
        font-weight: 700;
    }

    .admin-vacation-comment textarea {
        width: 100%;
        min-height: 100px;
        padding: 14px;
        color: #001e4d;
        background: #f7f8fa;
        border: 1px solid #d6d8da;
        border-radius: 14px;
        resize: vertical;
        font: inherit;
    }

        .admin-vacation-comment textarea:focus {
            outline: none;
            background: #ffffff;
            border-color: #001e4d;
            box-shadow: 0 0 0 3px rgba(0, 30, 77, .10);
        }

    .admin-vacation-comment > span {
        position: absolute;
        right: 12px;
        bottom: 10px;
        color: #9ca3af;
        font-size: 11px;
    }

.admin-vacation-response-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

    .admin-vacation-response-actions button {
        padding: 14px 20px;
        border-radius: 14px;
        font-weight: 900;
        cursor: pointer;
    }

        .admin-vacation-response-actions button:disabled {
            cursor: not-allowed;
            opacity: .65;
        }

.admin-vacation-reject-button {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.admin-vacation-approve-button {
    color: #ffffff;
    background: #15803d;
    border: 1px solid #15803d;
}

    .admin-vacation-approve-button:hover:not(:disabled) {
        background: #166534;
    }

@media (max-width: 1250px) {
    .admin-vacation-card-main {
        grid-template-columns: 48px 1fr 145px 180px auto;
    }

    .admin-vacation-days,
    .admin-vacation-requested {
        grid-column: 2;
    }
}

@media (max-width: 900px) {
    .admin-vacations-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-vacations-summary,
    .admin-vacations-toolbar,
    .admin-vacation-response-preview {
        grid-template-columns: 1fr;
    }

    .admin-vacation-card-main {
        grid-template-columns: 48px 1fr;
    }

    .admin-vacation-type,
    .admin-vacation-period,
    .admin-vacation-days,
    .admin-vacation-requested,
    .admin-vacation-review-button {
        grid-column: 2;
    }

    .admin-vacation-response-header {
        flex-direction: column;
    }

    .admin-vacation-response-actions {
        flex-direction: column-reverse;
    }

        .admin-vacation-response-actions button {
            width: 100%;
        }
}

/* =========================================================
   ADMINISTRACIÓN - INCIDENCIAS
   ========================================================= */

.admin-incidents-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-incidents-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-incidents-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 220px 220px 190px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
}

    .admin-incidents-toolbar select {
        width: 100%;
        padding: 13px 14px;
        color: #001e4d;
        background: #f7f8fa;
        border: 1px solid #d6d8da;
        border-radius: 14px;
        font: inherit;
    }

.admin-incidents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-incident-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left-width: 5px;
    border-radius: 19px;
}

.incident-border-critical {
    border-left-color: #dc2626;
}

.incident-border-warning {
    border-left-color: #f59e0b;
}

.incident-border-info {
    border-left-color: #3b82f6;
}

.admin-incident-header {
    width: 100%;
    padding: 18px;
    display: grid;
    grid-template-columns: 46px minmax(170px, 1fr) 185px 135px minmax(220px, 1.4fr) 100px;
    gap: 15px;
    align-items: center;
    color: #001e4d;
    background: #f7f8fa;
    border: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

    .admin-incident-header:hover {
        background: #f0f3f6;
    }

.admin-incident-severity {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 900;
}

.incident-severity-critical {
    color: #991b1b;
    background: #fee2e2;
}

.incident-severity-warning {
    color: #92400e;
    background: #fef3c7;
}

.incident-severity-info {
    color: #1e40af;
    background: #dbeafe;
}

.admin-incident-person strong,
.admin-incident-date strong {
    display: block;
    color: #001e4d;
}

.admin-incident-person span,
.admin-incident-date span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.incident-type-chip {
    display: inline-flex;
    padding: 7px 11px;
    color: #001e4d;
    background: #e5e7eb;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admin-incident-description {
    overflow: hidden;
    color: #4a4f55;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-incident-expand {
    color: #001e4d;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.admin-incident-content {
    padding: 22px;
    border-top: 1px solid #e5e7eb;
}

.admin-incident-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

    .admin-incident-detail-grid div {
        padding: 15px;
        background: #f7f8fa;
        border-radius: 14px;
    }

    .admin-incident-detail-grid span {
        display: block;
        color: #6b7280;
        font-size: 12px;
    }

    .admin-incident-detail-grid strong {
        display: block;
        margin-top: 5px;
        color: #001e4d;
    }

.admin-incident-difference {
    margin-bottom: 18px;
    padding: 16px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 14px;
}

    .admin-incident-difference span {
        display: block;
        font-size: 12px;
    }

    .admin-incident-difference strong {
        display: block;
        margin-top: 4px;
        font-size: 18px;
    }

.admin-incident-full-description {
    margin-bottom: 16px;
    padding: 17px;
    background: #f7f8fa;
    border-radius: 14px;
}

    .admin-incident-full-description span {
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
    }

    .admin-incident-full-description p {
        margin: 7px 0 0;
        color: #374151;
        line-height: 1.55;
    }

.admin-incident-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

    .admin-incident-actions button,
    .incident-detail-side button {
        padding: 13px 18px;
        border-radius: 14px;
        font-weight: 900;
        cursor: pointer;
    }

.admin-incident-details-button {
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
}

.admin-incident-resolve-button {
    color: #ffffff;
    background: #15803d;
    border: 1px solid #15803d;
}

    .admin-incident-resolve-button:hover:not(:disabled) {
        background: #166534;
    }

.incident-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.incident-detail-severity {
    padding: 10px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.incident-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.incident-detail-main,
.incident-detail-side {
    height: 100%;
}

    .incident-detail-side p {
        color: #4a4f55;
        line-height: 1.55;
    }

    .incident-detail-side button {
        width: 100%;
        margin-top: 12px;
    }

.incident-detail-attendance {
    margin-top: 24px;
}

@media (max-width: 1150px) {
    .admin-incidents-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .admin-incident-header {
        grid-template-columns: 46px 1fr 180px 100px;
    }

    .admin-incident-description {
        grid-column: 2 / -1;
    }

    .admin-incident-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .admin-incidents-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-incidents-summary,
    .admin-incidents-toolbar,
    .admin-incident-detail-grid,
    .incident-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-incident-header {
        grid-template-columns: 46px 1fr;
    }

    .admin-incident-type,
    .admin-incident-date,
    .admin-incident-description,
    .admin-incident-expand {
        grid-column: 2;
    }

    .admin-incident-description {
        white-space: normal;
    }

    .admin-incident-actions {
        flex-direction: column;
    }

        .admin-incident-actions button {
            width: 100%;
        }

    .incident-detail-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

.reports-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.reports-export-button {
    min-width: 190px;
    padding: 15px 22px;
    color: #001e4d;
    background: #f7f8fa;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

    .reports-export-button:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .reports-export-button:disabled {
        cursor: not-allowed;
        opacity: .55;
    }

.reports-filter-card {
    margin-bottom: 24px;
    padding: 24px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
}

.reports-filter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

    .reports-filter-header h2 {
        margin: 0;
        color: #001e4d;
    }

    .reports-filter-header p {
        margin: 6px 0 0;
        color: #6b7280;
    }

.reports-period-chip {
    padding: 9px 14px;
    color: #001e4d;
    background: #eef1f5;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.reports-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(130px, .6fr) minmax(160px, .7fr) auto;
    gap: 16px;
    align-items: end;
}

.reports-field label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.reports-field select {
    width: 100%;
    padding: 13px 14px;
    color: #001e4d;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 14px;
    font: inherit;
}

    .reports-field select:focus {
        outline: none;
        background: #ffffff;
        border-color: #001e4d;
        box-shadow: 0 0 0 3px rgba(0, 30, 77, .10);
    }

.reports-field > span {
    display: block;
    margin-top: 7px;
    color: #6b7280;
    font-size: 11px;
}

.reports-search-button {
    padding: 14px 20px;
    color: #ffffff;
    background: #001e4d;
    border: none;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

    .reports-search-button:hover:not(:disabled) {
        background: #001535;
    }

    .reports-search-button:disabled {
        cursor: not-allowed;
        opacity: .65;
    }

.reports-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.reports-summary-card {
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(10, 15, 24, .06);
}

    .reports-summary-card > span {
        display: block;
        color: #4a4f55;
        font-size: 13px;
    }

    .reports-summary-card strong {
        display: block;
        margin-top: 9px;
        color: #001e4d;
        font-size: 24px;
    }

    .reports-summary-card small {
        display: block;
        margin-top: 5px;
        color: #8b929b;
        font-size: 11px;
    }

.reports-summary-warning {
    border-bottom: 4px solid #f59e0b;
}

.reports-summary-danger {
    border-bottom: 4px solid #ef4444;
}

.reports-preview-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(10, 15, 24, .08);
}

.reports-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-bottom: 1px solid #e5e7eb;
}

    .reports-preview-header h2 {
        margin: 0;
        color: #001e4d;
    }

    .reports-preview-header p {
        margin: 6px 0 0;
        color: #6b7280;
    }

    .reports-preview-header > span {
        padding: 8px 12px;
        color: #4a4f55;
        background: #f7f8fa;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
    }

.reports-table-container {
    overflow-x: auto;
    padding: 18px;
}

.reports-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

    .reports-table th {
        padding: 0 14px 10px;
        color: #6b7280;
        font-size: 11px;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
    }

    .reports-table td {
        padding: 14px;
        color: #374151;
        background: #f7f8fa;
        font-size: 13px;
    }

    .reports-table tbody tr td:first-child {
        border-radius: 14px 0 0 14px;
    }

    .reports-table tbody tr td:last-child {
        border-radius: 0 14px 14px 0;
    }

    .reports-table tbody tr:hover td {
        background: #eef1f5;
    }

    .reports-table tfoot td {
        color: #ffffff;
        background: #001e4d;
        font-weight: 900;
    }

        .reports-table tfoot td:first-child {
            border-radius: 14px 0 0 14px;
        }

        .reports-table tfoot td:last-child {
            border-radius: 0 14px 14px 0;
        }

.reports-employee-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.reports-employee-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 13px;
    font-size: 12px;
    font-weight: 900;
}

.reports-employee-cell strong {
    display: block;
    color: #001e4d;
}

.reports-employee-cell div span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
}

.reports-value-ok,
.reports-value-warning,
.reports-value-danger {
    display: inline-flex;
    min-width: 37px;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.reports-value-ok {
    color: #166534;
    background: #dcfce7;
}

.reports-value-warning {
    color: #92400e;
    background: #fef3c7;
}

.reports-value-danger {
    color: #991b1b;
    background: #fee2e2;
}

.reports-empty-state {
    padding: 55px 25px;
    text-align: center;
}

.reports-empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    color: #166534;
    background: #dcfce7;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 900;
}

.reports-empty-state h3 {
    margin: 0;
    color: #001e4d;
}

.reports-empty-state p {
    margin: 8px 0 0;
    color: #6b7280;
}

@media (max-width: 1450px) {
    .reports-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1050px) {
    .reports-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reports-field-employee {
        grid-column: 1 / -1;
    }

    .reports-search-button {
        width: 100%;
    }
}

@media (max-width: 800px) {
    .reports-admin-hero,
    .reports-filter-header,
    .reports-preview-header {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-export-button {
        width: 100%;
    }

    .reports-filter-grid,
    .reports-summary-grid {
        grid-template-columns: 1fr;
    }

    .reports-field-employee {
        grid-column: auto;
    }
}

/* =========================================================
   DASHBOARD DE ADMINISTRACIÓN
   ========================================================= */

.admin-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.admin-dashboard-user {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 230px;
    padding: 13px 17px;
    color: #001e4d;
    background: #f7f8fa;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .14);
}

.admin-dashboard-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 15px;
    font-size: 14px;
    font-weight: 900;
}

.admin-dashboard-user span {
    display: block;
    color: #6b7280;
    font-size: 11px;
}

.admin-dashboard-user strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #001e4d;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-loading,
.admin-dashboard-retry {
    margin-top: 24px;
}

.admin-dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-dashboard-summary-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background: #ffffff;
    border-bottom: 4px solid #001e4d;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .admin-dashboard-summary-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 36px rgba(10, 15, 24, .10);
    }

.admin-dashboard-card-warning {
    border-bottom-color: #f59e0b;
}

.admin-dashboard-card-purple {
    border-bottom-color: #8b5cf6;
}

.admin-dashboard-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

    .admin-dashboard-summary-top > span {
        color: #4a4f55;
        font-size: 13px;
    }

.admin-dashboard-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-icon-blue {
    color: #1e40af;
    background: #dbeafe;
}

.dashboard-icon-green {
    color: #166534;
    background: #dcfce7;
}

.dashboard-icon-yellow {
    color: #92400e;
    background: #fef3c7;
}

.dashboard-icon-purple {
    color: #6b21a8;
    background: #f3e8ff;
}

.admin-dashboard-summary-card > strong {
    display: block;
    margin-top: 8px;
    color: #001e4d;
    font-size: 29px;
}

.admin-dashboard-summary-card > small {
    display: block;
    min-height: 31px;
    margin-top: 5px;
    color: #8b929b;
    font-size: 11px;
    line-height: 1.4;
}

.admin-dashboard-summary-card > button {
    margin-top: 16px;
    padding: 0;
    color: #001e4d;
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

    .admin-dashboard-summary-card > button:hover {
        text-decoration: underline;
    }

.admin-dashboard-month-card {
    margin-bottom: 24px;
    padding: 27px;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 12px 34px rgba(10, 15, 24, .08);
}

.admin-dashboard-month-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-dashboard-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-dashboard-month-header h2 {
    margin: 0;
    color: #001e4d;
    font-size: 25px;
}

.admin-dashboard-month-header p {
    margin: 6px 0 0;
    color: #6b7280;
}

.admin-dashboard-month-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-dashboard-period-chip {
    padding: 9px 14px;
    color: #001e4d;
    background: #eef1f5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap;
}

.admin-dashboard-primary-action {
    padding: 13px 18px;
    color: #ffffff;
    background: #001e4d;
    border: none;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

    .admin-dashboard-primary-action:hover {
        background: #001535;
    }

.admin-dashboard-month-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 16px;
}

.admin-dashboard-metric {
    padding: 19px;
    background: #f7f8fa;
    border-radius: 18px;
    border-left: 4px solid #001e4d;
}

.admin-dashboard-metric-warning {
    border-left-color: #f59e0b;
}

.admin-dashboard-metric-danger {
    border-left-color: #ef4444;
}

.admin-dashboard-metric span {
    display: block;
    color: #4a4f55;
    font-size: 12px;
}

.admin-dashboard-metric strong {
    display: block;
    margin-top: 9px;
    color: #001e4d;
    font-size: 23px;
}

.admin-dashboard-metric small {
    display: block;
    margin-top: 5px;
    color: #8b929b;
    font-size: 11px;
}

.admin-dashboard-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(310px, .7fr);
    gap: 24px;
    align-items: start;
}

.admin-dashboard-actions-card,
.admin-dashboard-status-card {
    padding: 26px;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 12px 34px rgba(10, 15, 24, .08);
}

.admin-dashboard-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 21px;
}

    .admin-dashboard-section-header h2 {
        margin: 0;
        color: #001e4d;
        font-size: 21px;
    }

    .admin-dashboard-section-header p {
        margin: 6px 0 0;
        color: #6b7280;
        font-size: 13px;
    }

.admin-dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

    .admin-dashboard-actions-grid button {
        display: grid;
        grid-template-columns: 46px 1fr auto;
        gap: 13px;
        align-items: center;
        padding: 16px;
        color: #001e4d;
        background: #f7f8fa;
        border: 1px solid transparent;
        border-radius: 17px;
        text-align: left;
        cursor: pointer;
        transition: background .16s ease, border-color .16s ease, transform .16s ease;
    }

        .admin-dashboard-actions-grid button:hover {
            background: #eef1f5;
            border-color: #d6d8da;
            transform: translateY(-1px);
        }

.admin-dashboard-action-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #001e4d;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 900;
}

.admin-dashboard-actions-grid strong {
    display: block;
    color: #001e4d;
    font-size: 13px;
}

.admin-dashboard-actions-grid small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
}

.admin-dashboard-action-arrow {
    color: #001e4d;
    font-size: 18px;
    font-weight: 900;
}

.admin-dashboard-status-ok {
    padding: 7px 11px;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.admin-dashboard-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .admin-dashboard-status-list > div {
        display: grid;
        grid-template-columns: 12px 1fr;
        gap: 12px;
        align-items: start;
        padding: 13px;
        background: #f7f8fa;
        border-radius: 15px;
    }

.admin-dashboard-status-dot {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 50%;
}

.status-dot-green {
    background: #22c55e;
}

.status-dot-yellow {
    background: #f59e0b;
}

.status-dot-red {
    background: #ef4444;
}

.admin-dashboard-status-list strong {
    display: block;
    color: #001e4d;
    font-size: 13px;
}

.admin-dashboard-status-list small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.4;
}

.admin-dashboard-refresh-button {
    width: 100%;
    margin-top: 18px;
    padding: 13px 16px;
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

    .admin-dashboard-refresh-button:hover:not(:disabled) {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
    }

    .admin-dashboard-refresh-button:disabled {
        cursor: not-allowed;
        opacity: .6;
    }

@media (max-width: 1350px) {
    .admin-dashboard-summary-grid,
    .admin-dashboard-month-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-dashboard-lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .admin-dashboard-hero,
    .admin-dashboard-month-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-dashboard-user {
        width: 100%;
    }

    .admin-dashboard-month-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-dashboard-summary-grid,
    .admin-dashboard-month-grid,
    .admin-dashboard-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CONFIGURACIÓN - PANEL PRINCIPAL
   ========================================================= */

.configuration-hero,
.configuration-company-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.configuration-hero-badge {
    min-width: 210px;
    padding: 14px 18px;
    color: #001e4d;
    background: #f7f8fa;
    border-radius: 17px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .14);
}

    .configuration-hero-badge span {
        display: block;
        color: #6b7280;
        font-size: 11px;
    }

    .configuration-hero-badge strong {
        display: block;
        margin-top: 5px;
        font-size: 14px;
    }

.configuration-intro-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 26px;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 12px 34px rgba(10, 15, 24, .07);
}

.configuration-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.configuration-intro-card h2 {
    margin: 0;
    color: #001e4d;
    font-size: 24px;
}

.configuration-intro-card p {
    max-width: 760px;
    margin: 7px 0 0;
    color: #6b7280;
    line-height: 1.5;
}

.configuration-intro-icon {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 21px;
    font-size: 14px;
    font-weight: 900;
}

.configuration-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.configuration-module-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 23px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-bottom: 4px solid #d6d8da;
    border-radius: 23px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-bottom-color .18s ease;
}

    .configuration-module-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 38px rgba(10, 15, 24, .11);
        border-bottom-color: #001e4d;
    }
.configuration-module-icon,
.configuration-section-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #001e4d;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 900;
}

.configuration-icon-blue {
    color: #1e40af;
    background: #dbeafe;
}

.configuration-icon-green {
    color: #166534;
    background: #dcfce7;
}

.configuration-icon-yellow {
    color: #92400e;
    background: #fef3c7;
}

.configuration-icon-red {
    color: #991b1b;
    background: #fee2e2;
}

.configuration-icon-purple {
    color: #6b21a8;
    background: #f3e8ff;
}

.configuration-icon-gray {
    color: #374151;
    background: #e5e7eb;
}

.configuration-module-content {
    margin-top: 20px;
}

    .configuration-module-content > span {
        color: #6b7280;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .configuration-module-content h3 {
        margin: 7px 0 0;
        color: #001e4d;
        font-size: 20px;
    }

    .configuration-module-content p {
        margin: 9px 0 0;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.55;
    }

.configuration-module-card > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 13px 15px;
    color: #001e4d;
    background: #f7f8fa;
    border: none;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

    .configuration-module-card > button:hover {
        color: #ffffff;
        background: #001e4d;
    }

    .configuration-module-card > button span {
        font-size: 18px;
    }

.configuration-help-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 21px 24px;
    background: #dbeafe;
    border-radius: 21px;
}

.configuration-help-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    color: #1e40af;
    background: #ffffff;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 900;
}

.configuration-help-card h3 {
    margin: 0;
    color: #1e3a8a;
    font-size: 15px;
}

.configuration-help-card p {
    margin: 5px 0 0;
    color: #1e40af;
    font-size: 13px;
}

/* =========================================================
   CONFIGURACIÓN - EMPRESA
   ========================================================= */

.configuration-company-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.configuration-company-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.configuration-company-card {
    padding: 27px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
}

.configuration-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 23px;
}

    .configuration-section-header h2 {
        margin: 0;
        color: #001e4d;
        font-size: 20px;
    }

    .configuration-section-header p {
        margin: 4px 0 0;
        color: #6b7280;
        font-size: 13px;
    }

.configuration-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
}

.configuration-field-full {
    grid-column: 1 / -1;
}

.configuration-field label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.configuration-field input,
.configuration-field select,
.configuration-field textarea {
    width: 100%;
    padding: 14px 15px;
    color: #001e4d;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 14px;
    font: inherit;
}

    .configuration-field input:focus,
    .configuration-field select:focus,
    .configuration-field textarea:focus {
        outline: none;
        background: #ffffff;
        border-color: #001e4d;
        box-shadow: 0 0 0 3px rgba(0, 30, 77, .10);
    }

.configuration-field > span {
    display: block;
    margin-top: 7px;
    color: #6b7280;
    font-size: 11px;
}

.configuration-color-field {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 10px;
}

    .configuration-color-field input[type="color"] {
        height: 49px;
        padding: 4px;
        cursor: pointer;
    }

.configuration-company-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 17px 0;
    background: linear-gradient( to top, #f7f8fa 74%, rgba(247, 248, 250, 0) );
}

    .configuration-company-actions button {
        min-width: 170px;
        padding: 14px 20px;
        border-radius: 14px;
        font-weight: 900;
        cursor: pointer;
    }

        .configuration-company-actions button:disabled {
            cursor: not-allowed;
            opacity: .65;
        }

.configuration-cancel-button {
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
}

.configuration-save-button {
    color: #ffffff;
    background: #001e4d;
    border: 1px solid #001e4d;
}

    .configuration-save-button:hover:not(:disabled) {
        background: #001535;
    }

.configuration-company-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.configuration-preview-card,
.configuration-info-card {
    padding: 24px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
}

.configuration-preview-card {
    text-align: center;
}

.configuration-preview-label {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.configuration-preview-logo {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin: 18px auto 15px;
    color: #ffffff;
    border-radius: 26px;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(0, 30, 77, .20);
}

.configuration-preview-card h2 {
    margin: 0;
    color: #001e4d;
    font-size: 20px;
}

.configuration-preview-cif {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

.configuration-preview-divider {
    height: 1px;
    margin: 21px 0;
    background: #e5e7eb;
}

.configuration-preview-card dl {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    text-align: left;
}

    .configuration-preview-card dl div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

.configuration-preview-card dt {
    color: #6b7280;
    font-size: 11px;
}

.configuration-preview-card dd {
    overflow: hidden;
    margin: 0;
    color: #001e4d;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
}

.configuration-info-card h3 {
    margin: 0;
    color: #001e4d;
}

.configuration-info-card p {
    margin: 9px 0 17px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.configuration-info-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    color: #166534;
    background: #dcfce7;
    border-radius: 14px;
    font-size: 11px;
}

    .configuration-info-status span {
        width: 9px;
        height: 9px;
        flex: 0 0 9px;
        background: #22c55e;
        border-radius: 50%;
    }

@media (max-width: 1200px) {
    .configuration-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .configuration-company-layout {
        grid-template-columns: 1fr;
    }

    .configuration-company-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .configuration-hero,
    .configuration-company-hero,
    .configuration-intro-card {
        align-items: stretch;
        flex-direction: column;
    }

    .configuration-modules-grid,
    .configuration-form-grid,
    .configuration-company-sidebar {
        grid-template-columns: 1fr;
    }

    .configuration-field-full {
        grid-column: auto;
    }

    .configuration-company-actions {
        flex-direction: column-reverse;
    }

        .configuration-company-actions button {
            width: 100%;
        }
}

/* =========================================================
   CONFIGURACIÓN - CALENDARIOS Y HORARIOS
   ========================================================= */

.calendar-config-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.calendar-config-loading {
    margin-top: 24px;
}

.calendar-config-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

    .calendar-config-summary article {
        padding: 19px 20px;
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 10px 28px rgba(10, 15, 24, .06);
    }

    .calendar-config-summary span {
        display: block;
        color: #4a4f55;
        font-size: 12px;
    }

    .calendar-config-summary strong {
        display: block;
        margin-top: 8px;
        color: #001e4d;
        font-size: 25px;
    }

    .calendar-config-summary small {
        display: block;
        margin-top: 5px;
        color: #8b929b;
        font-size: 11px;
    }

.calendar-summary-text {
    overflow: hidden;
    font-size: 18px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-config-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
    margin-bottom: 24px;
}

.calendar-config-module {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 17px;
    min-height: 255px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-bottom: 4px solid #d6d8da;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .calendar-config-module:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 38px rgba(10, 15, 24, .11);
    }

.calendar-module-primary {
    border-bottom-color: #001e4d;
}

.calendar-module-wide {
    grid-column: 1 / -1;
}

.calendar-module-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #001e4d;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 900;
}

.calendar-icon-blue {
    color: #1e40af;
    background: #dbeafe;
}

.calendar-icon-green {
    color: #166534;
    background: #dcfce7;
}

.calendar-icon-yellow {
    color: #92400e;
    background: #fef3c7;
}

.calendar-icon-red {
    color: #991b1b;
    background: #fee2e2;
}

.calendar-module-body > span {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.calendar-module-body h2 {
    margin: 7px 0 0;
    color: #001e4d;
    font-size: 20px;
}

.calendar-module-body p {
    margin: 9px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.calendar-module-meta {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 18px;
}

    .calendar-module-meta strong {
        color: #001e4d;
        font-size: 22px;
    }

    .calendar-module-meta span {
        color: #8b929b;
        font-size: 11px;
    }

.calendar-config-module > button {
    grid-column: 1 / -1;
    align-self: end;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
    padding: 13px 16px;
    color: #001e4d;
    background: #f7f8fa;
    border: none;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

    .calendar-config-module > button:hover {
        color: #ffffff;
        background: #001e4d;
    }

    .calendar-config-module > button span {
        font-size: 18px;
    }

.calendar-config-current {
    padding: 26px;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 12px 34px rgba(10, 15, 24, .08);
}

.calendar-current-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

    .calendar-current-header h2 {
        margin: 0;
        color: #001e4d;
    }

    .calendar-current-header p {
        margin: 6px 0 0;
        color: #6b7280;
    }

.calendar-refresh-button {
    align-self: center;
    padding: 12px 17px;
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
    border-radius: 13px;
    font-weight: 900;
    cursor: pointer;
}

    .calendar-refresh-button:hover {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
    }

.calendar-current-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-current-item {
    display: grid;
    grid-template-columns: 48px minmax(220px, 1fr) 140px 110px auto;
    gap: 15px;
    align-items: center;
    padding: 16px;
    background: #f7f8fa;
    border-radius: 17px;
}

.calendar-current-badge {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 14px;
    font-size: 12px;
    font-weight: 900;
}

.calendar-current-info > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-current-info strong {
    color: #001e4d;
}

.calendar-current-info p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 12px;
}

.calendar-default-chip,
.calendar-inactive-chip {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.calendar-default-chip {
    color: #166534;
    background: #dcfce7;
}

.calendar-inactive-chip {
    color: #991b1b;
    background: #fee2e2;
}

.calendar-current-stat span {
    display: block;
    color: #6b7280;
    font-size: 10px;
}

.calendar-current-stat strong {
    display: block;
    margin-top: 4px;
    color: #001e4d;
    font-size: 14px;
}

.calendar-current-item > button {
    padding: 10px 14px;
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

    .calendar-current-item > button:hover {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
    }

@media (max-width: 1250px) {
    .calendar-config-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .calendar-current-item {
        grid-template-columns: 48px 1fr 130px auto;
    }

    .calendar-current-stat:nth-of-type(2) {
        display: none;
    }
}

@media (max-width: 850px) {
    .calendar-config-hero,
    .calendar-current-header {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-config-summary,
    .calendar-config-modules {
        grid-template-columns: 1fr;
    }

    .calendar-module-wide {
        grid-column: auto;
    }

    .calendar-current-item {
        grid-template-columns: 48px 1fr;
    }

        .calendar-current-stat,
        .calendar-current-item > button {
            grid-column: 2;
        }

        .calendar-current-item > button {
            width: 100%;
        }
}

/* =========================================================
   CALENDARIOS LABORALES
   ========================================================= */

.calendar-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 22px 24px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .06);
}

    .calendar-list-toolbar h2 {
        margin: 4px 0 0;
        color: #001e4d;
        font-size: 22px;
    }

.calendar-list-summary {
    display: flex;
    gap: 14px;
}

    .calendar-list-summary > span {
        min-width: 150px;
        padding: 12px 16px;
        color: #6b7280;
        background: #f7f8fa;
        border-radius: 14px;
        font-size: 11px;
    }

    .calendar-list-summary strong {
        display: block;
        margin-top: 4px;
        overflow: hidden;
        color: #001e4d;
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.calendar-empty-card {
    padding: 50px 25px;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .06);
}

.calendar-empty-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    color: #ffffff;
    background: #001e4d;
    border-radius: 20px;
    font-weight: 900;
}

.calendar-empty-card h2 {
    margin: 0;
    color: #001e4d;
}

.calendar-empty-card p {
    max-width: 460px;
    margin: 10px auto 22px;
    color: #6b7280;
    line-height: 1.6;
}

.calendar-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.calendar-list-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(10, 15, 24, .07);
}

.calendar-list-card-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.calendar-list-card-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 900;
}

.calendar-list-card-title {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

    .calendar-list-card-title > div {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .calendar-list-card-title h2 {
        width: 100%;
        margin: 0;
        color: #001e4d;
        font-size: 20px;
    }

.calendar-code-chip {
    flex: 0 0 auto;
    padding: 6px 9px;
    color: #4a4f55;
    background: #f1f3f5;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 900;
}

.calendar-list-description {
    min-height: 42px;
    margin: 18px 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.calendar-list-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

    .calendar-list-stats > div {
        padding: 13px;
        background: #f7f8fa;
        border-radius: 14px;
    }

    .calendar-list-stats span {
        display: block;
        color: #8b929b;
        font-size: 10px;
    }

    .calendar-list-stats strong {
        display: block;
        margin-top: 4px;
        color: #001e4d;
        font-size: 17px;
    }

.calendar-list-properties {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 18px;
}

    .calendar-list-properties span {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        color: #6b7280;
        background: #fbfbfc;
        border: 1px solid #eef0f2;
        border-radius: 12px;
        font-size: 10px;
    }

    .calendar-list-properties strong {
        color: #001e4d;
    }

.calendar-list-card-actions {
    display: flex;
    gap: 10px;
}

.calendar-card-secondary,
.calendar-card-primary {
    flex: 1;
    padding: 12px 15px;
    border-radius: 13px;
    font-weight: 900;
    cursor: pointer;
}

.calendar-card-secondary {
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
}

    .calendar-card-secondary:hover {
        background: #f7f8fa;
    }

.calendar-card-primary {
    color: #ffffff;
    background: #001e4d;
    border: 1px solid #001e4d;
}

    .calendar-card-primary:hover {
        background: #001535;
    }

.calendar-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 25px;
    background: rgba(10, 15, 24, .58);
    backdrop-filter: blur(4px);
}

.calendar-modal {
    width: min(900px, 100%);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .28);
}

.calendar-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

    .calendar-modal-header h2 {
        margin: 5px 0 0;
        color: #001e4d;
    }

    .calendar-modal-header p {
        margin: 7px 0 0;
        color: #6b7280;
    }

.calendar-modal-close {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #4a4f55;
    background: #f7f8fa;
    border: none;
    border-radius: 13px;
    font-size: 25px;
    cursor: pointer;
}

    .calendar-modal-close:hover {
        color: #ffffff;
        background: #001e4d;
    }

.calendar-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.calendar-form-full {
    grid-column: 1 / -1;
}

.calendar-form-field label {
    display: block;
    margin-bottom: 7px;
    color: #001e4d;
    font-size: 12px;
    font-weight: 800;
}

.calendar-form-field input,
.calendar-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    color: #0a0f18;
    background: #ffffff;
    border: 1px solid #d6d8da;
    border-radius: 12px;
    outline: none;
}

.calendar-form-field textarea {
    min-height: 95px;
    resize: vertical;
}

    .calendar-form-field input:focus,
    .calendar-form-field textarea:focus {
        border-color: #001e4d;
        box-shadow: 0 0 0 3px rgba(0, 30, 77, .08);
    }

.calendar-form-field small {
    display: block;
    margin-top: 5px;
    color: #8b929b;
    font-size: 10px;
}

.calendar-form-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 15px 16px;
    background: #f7f8fa;
    border-radius: 15px;
}

    .calendar-form-toggle strong {
        display: block;
        color: #001e4d;
        font-size: 12px;
    }

    .calendar-form-toggle span {
        display: block;
        margin-top: 4px;
        color: #6b7280;
        font-size: 10px;
    }

    .calendar-form-toggle input {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

.calendar-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf0f3;
}

@media (max-width: 950px) {
    .calendar-list-grid {
        grid-template-columns: 1fr;
    }

    .calendar-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-list-summary {
        width: 100%;
    }

        .calendar-list-summary > span {
            flex: 1;
            min-width: 0;
        }
}

@media (max-width: 650px) {
    .calendar-page-actions,
    .calendar-list-card-actions,
    .calendar-modal-actions {
        flex-direction: column;
    }

    .calendar-form-grid,
    .calendar-list-stats,
    .calendar-list-properties {
        grid-template-columns: 1fr;
    }

    .calendar-form-full {
        grid-column: auto;
    }

    .calendar-list-card-title {
        flex-direction: column;
    }

    .calendar-code-chip {
        align-self: flex-start;
    }
}

/* =========================================================
   HORARIO SEMANAL
   ========================================================= */

.weekly-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

    .weekly-summary article {
        padding: 18px 20px;
        background: #ffffff;
        border-radius: 19px;
        box-shadow: 0 10px 28px rgba(10, 15, 24, .06);
    }

    .weekly-summary span {
        display: block;
        color: #6b7280;
        font-size: 11px;
    }

    .weekly-summary strong {
        display: block;
        margin-top: 7px;
        color: #001e4d;
        font-size: 24px;
    }

.weekly-days {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.weekly-day-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 23px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .065);
}

.weekly-day-off {
    background: #fbfbfc;
}

.weekly-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 23px;
    border-bottom: 1px solid #edf0f3;
}

    .weekly-day-header > div > span {
        color: #8b929b;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .weekly-day-header h2 {
        margin: 4px 0 0;
        color: #001e4d;
        font-size: 20px;
    }

.weekly-working-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #001e4d;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

    .weekly-working-toggle input {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

.weekly-day-objective {
    display: grid;
    grid-template-columns: 140px 120px auto;
    gap: 12px;
    align-items: center;
    padding: 18px 23px;
    background: #f9fafb;
    border-bottom: 1px solid #edf0f3;
}

    .weekly-day-objective label {
        color: #001e4d;
        font-size: 11px;
        font-weight: 800;
    }

    .weekly-day-objective input {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 11px;
        border: 1px solid #d6d8da;
        border-radius: 11px;
    }

    .weekly-day-objective span {
        color: #6b7280;
        font-size: 11px;
    }

.weekly-day-off-content {
    padding: 32px 23px;
    text-align: center;
}

    .weekly-day-off-content strong {
        display: block;
        color: #4a4f55;
    }

    .weekly-day-off-content p {
        margin: 7px 0 0;
        color: #8b929b;
        font-size: 12px;
    }

.weekly-tramos {
    padding: 20px 23px 10px;
}

.weekly-empty-tramos {
    padding: 25px;
    text-align: center;
    color: #8b929b;
    background: #f7f8fa;
    border-radius: 15px;
    font-size: 12px;
}

.weekly-tramo-row {
    display: grid;
    grid-template-columns: 38px 130px 30px 130px 100px minmax(170px, 1fr) 38px;
    gap: 10px;
    align-items: end;
    padding: 14px;
    margin-bottom: 10px;
    background: #f7f8fa;
    border-radius: 16px;
}

.weekly-tramo-order {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    align-self: center;
    color: #ffffff;
    background: #001e4d;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
}

.weekly-tramo-field label,
.weekly-tramo-description label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 800;
}

.weekly-tramo-field input,
.weekly-tramo-description input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #d6d8da;
    border-radius: 11px;
    background: #ffffff;
}

.weekly-tramo-arrow {
    align-self: center;
    padding-bottom: 8px;
    text-align: center;
    color: #8b929b;
    font-size: 20px;
}

.weekly-pause-option {
    display: flex;
    align-items: center;
    gap: 7px;
    align-self: center;
    padding-bottom: 8px;
    color: #4a4f55;
    font-size: 11px;
    font-weight: 700;
}

    .weekly-pause-option input {
        width: 17px;
        height: 17px;
    }

.weekly-delete-tramo {
    width: 34px;
    height: 34px;
    align-self: center;
    color: #991b1b;
    background: #fee2e2;
    border: none;
    border-radius: 11px;
    font-size: 20px;
    cursor: pointer;
}

    .weekly-delete-tramo:hover {
        color: #ffffff;
        background: #b91c1c;
    }

.weekly-add-tramo {
    margin: 0 23px;
    padding: 11px 15px;
    color: #001e4d;
    background: #ffffff;
    border: 1px dashed #a7a9ac;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

    .weekly-add-tramo:hover {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
    }

.weekly-day-observations {
    padding: 18px 23px;
}

    .weekly-day-observations label {
        display: block;
        margin-bottom: 7px;
        color: #001e4d;
        font-size: 11px;
        font-weight: 800;
    }

    .weekly-day-observations textarea {
        width: 100%;
        min-height: 72px;
        box-sizing: border-box;
        padding: 11px 12px;
        border: 1px solid #d6d8da;
        border-radius: 12px;
        resize: vertical;
    }

.weekly-day-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 23px;
    background: #f9fafb;
    border-top: 1px solid #edf0f3;
}

    .weekly-day-footer span {
        color: #6b7280;
        font-size: 11px;
    }

@media (max-width: 1100px) {
    .weekly-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .weekly-tramo-row {
        grid-template-columns: 38px 1fr 30px 1fr 100px 38px;
    }

    .weekly-tramo-description {
        grid-column: 2 / -1;
    }
}

@media (max-width: 720px) {
    .weekly-summary {
        grid-template-columns: 1fr;
    }

    .weekly-day-header,
    .weekly-day-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .weekly-day-objective {
        grid-template-columns: 1fr;
    }

    .weekly-tramo-row {
        grid-template-columns: 38px 1fr;
    }

    .weekly-tramo-arrow {
        display: none;
    }

    .weekly-tramo-field,
    .weekly-pause-option,
    .weekly-tramo-description,
    .weekly-delete-tramo {
        grid-column: 2;
    }

    .weekly-delete-tramo {
        width: 100%;
    }
}
/* =========================================================
   FESTIVOS
   ========================================================= */

.holiday-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    padding: 20px 22px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .06);
}

.holiday-filter-field {
    min-width: 180px;
}

    .holiday-filter-field label {
        display: block;
        margin-bottom: 7px;
        color: #001e4d;
        font-size: 11px;
        font-weight: 800;
    }

    .holiday-filter-field select,
    .calendar-form-field select {
        width: 100%;
        box-sizing: border-box;
        padding: 11px 12px;
        color: #0a0f18;
        background: #ffffff;
        border: 1px solid #d6d8da;
        border-radius: 12px;
        outline: none;
    }

.holiday-toolbar-summary {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

    .holiday-toolbar-summary span {
        min-width: 110px;
        padding: 11px 14px;
        color: #6b7280;
        background: #f7f8fa;
        border-radius: 13px;
        font-size: 10px;
    }

    .holiday-toolbar-summary strong {
        display: block;
        margin-top: 4px;
        color: #001e4d;
        font-size: 18px;
    }

.holiday-empty {
    padding: 50px 25px;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .06);
}

    .holiday-empty h2 {
        margin: 0;
        color: #001e4d;
    }

    .holiday-empty p {
        margin: 8px 0 20px;
        color: #6b7280;
    }

.holiday-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.holiday-card {
    display: grid;
    grid-template-columns: 85px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 21px;
    box-shadow: 0 8px 25px rgba(10, 15, 24, .06);
}

.holiday-card-inactive {
    opacity: .64;
}

.holiday-date {
    width: 70px;
    height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
    border-radius: 17px;
}

    .holiday-date strong {
        color: #001e4d;
        font-size: 25px;
        line-height: 1;
    }

    .holiday-date span {
        margin-top: 3px;
        color: #4a4f55;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .holiday-date small {
        margin-top: 2px;
        color: #8b929b;
        font-size: 9px;
    }

.holiday-info-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    .holiday-info-title h2 {
        margin: 0;
        color: #001e4d;
        font-size: 18px;
    }

.holiday-info > p {
    margin: 7px 0 10px;
    color: #6b7280;
    font-size: 12px;
}

.holiday-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

    .holiday-meta span {
        color: #8b929b;
        font-size: 10px;
    }

    .holiday-meta strong {
        margin-left: 5px;
        color: #4a4f55;
    }

.holiday-type-chip {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.holiday-type-national {
    color: #1e40af;
    background: #dbeafe;
}

.holiday-type-regional {
    color: #6b21a8;
    background: #f3e8ff;
}

.holiday-type-local {
    color: #92400e;
    background: #fef3c7;
}

.holiday-type-company {
    color: #166534;
    background: #dcfce7;
}

.holiday-actions {
    display: flex;
    gap: 8px;
}

    .holiday-actions button {
        padding: 9px 11px;
        border-radius: 11px;
        font-size: 10px;
        font-weight: 900;
        cursor: pointer;
    }

.holiday-action-edit {
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
}

.holiday-action-enable {
    color: #166534;
    background: #dcfce7;
    border: none;
}

.holiday-action-disable {
    color: #92400e;
    background: #fef3c7;
    border: none;
}

.holiday-action-delete {
    color: #991b1b;
    background: #fee2e2;
    border: none;
}

.holiday-modal {
    width: min(760px, 100%);
}

.holiday-type-section > label {
    display: block;
    margin-bottom: 8px;
    color: #001e4d;
    font-size: 12px;
    font-weight: 800;
}

.holiday-type-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.holiday-type-button {
    padding: 12px 10px;
    color: #4a4f55;
    background: #f7f8fa;
    border: 1px solid #edf0f3;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

    .holiday-type-button.active {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
    }

.holiday-confirm-modal {
    width: min(440px, 100%);
    padding: 28px;
    text-align: center;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .28);
}

.holiday-confirm-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 17px;
    font-size: 22px;
    font-weight: 900;
}

.holiday-confirm-modal h2 {
    margin: 0;
    color: #001e4d;
}

.holiday-confirm-modal p {
    color: #6b7280;
    line-height: 1.6;
}

.holiday-confirm-delete {
    padding: 12px 17px;
    color: #ffffff;
    background: #b91c1c;
    border: none;
    border-radius: 13px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 900px) {
    .holiday-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .holiday-toolbar-summary {
        margin-left: 0;
    }

    .holiday-card {
        grid-template-columns: 75px 1fr;
    }

    .holiday-actions {
        grid-column: 2;
        flex-wrap: wrap;
    }
}

@media (max-width: 650px) {
    .holiday-card {
        grid-template-columns: 1fr;
    }

    .holiday-date,
    .holiday-actions {
        grid-column: auto;
    }

    .holiday-date {
        width: 100%;
    }

    .holiday-actions {
        flex-direction: column;
    }

    .holiday-type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .holiday-toolbar-summary {
        flex-direction: column;
    }
}

/* =========================================================
   EXCEPCIONES DE CALENDARIO
   ========================================================= */

.exception-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    padding: 20px 22px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .06);
}

.exception-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.exception-card {
    display: grid;
    grid-template-columns: 85px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 21px;
    box-shadow: 0 8px 25px rgba(10, 15, 24, .06);
}

.exception-info {
    min-width: 0;
}

.exception-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    .exception-title h2 {
        margin: 0;
        color: #001e4d;
        font-size: 18px;
    }

.exception-info > p {
    margin: 7px 0 10px;
    color: #6b7280;
    font-size: 12px;
}

.exception-chip {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.exception-chip-work {
    color: #1e40af;
    background: #dbeafe;
}

.exception-chip-off {
    color: #991b1b;
    background: #fee2e2;
}

.exception-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

    .exception-meta span {
        color: #8b929b;
        font-size: 10px;
    }

    .exception-meta strong {
        margin-left: 5px;
        color: #4a4f55;
    }

.exception-modal {
    width: min(820px, 100%);
}

.exception-tramos-section {
    padding: 18px;
    background: #f7f8fa;
    border-radius: 18px;
}

.exception-tramos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

    .exception-tramos-header h3 {
        margin: 4px 0 0;
        color: #001e4d;
        font-size: 17px;
    }

.exception-tramo-row {
    display: grid;
    grid-template-columns: 38px minmax(120px, 1fr) 30px minmax(120px, 1fr) 38px;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
    padding: 13px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 15px;
}

@media (max-width: 900px) {

    .exception-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .exception-card {
        grid-template-columns: 75px 1fr;
    }

        .exception-card .holiday-actions {
            grid-column: 2;
        }
}

@media (max-width: 650px) {

    .exception-card {
        grid-template-columns: 1fr;
    }

        .exception-card .holiday-date,
        .exception-card .holiday-actions {
            grid-column: auto;
        }

        .exception-card .holiday-date {
            width: 100%;
        }

    .exception-tramos-header {
        align-items: stretch;
        flex-direction: column;
    }

    .exception-tramo-row {
        grid-template-columns: 38px 1fr;
    }

        .exception-tramo-row .weekly-tramo-arrow {
            display: none;
        }

        .exception-tramo-row .weekly-tramo-field,
        .exception-tramo-row .weekly-delete-tramo {
            grid-column: 2;
        }

        .exception-tramo-row .weekly-delete-tramo {
            width: 100%;
        }
}

/* =========================================================
   ASIGNACIONES DE CALENDARIOS
   ========================================================= */

.assignment-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    padding: 20px 22px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .06);
}

.assignment-filter-check {
    display: flex;
    align-items: center;
    min-height: 42px;
}

    .assignment-filter-check label {
        display: flex;
        align-items: center;
        gap: 9px;
        color: #001e4d;
        font-size: 11px;
        font-weight: 800;
        cursor: pointer;
    }

    .assignment-filter-check input {
        width: 17px;
        height: 17px;
    }

.assignment-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.assignment-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 21px;
    box-shadow: 0 8px 25px rgba(10, 15, 24, .06);
}

.assignment-current {
    border-left: 4px solid #001e4d;
}

.assignment-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient( 135deg, #001e4d, #001535 );
    border-radius: 15px;
    font-size: 12px;
    font-weight: 900;
}

.assignment-info {
    min-width: 0;
}

.assignment-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

    .assignment-title h2 {
        margin: 0;
        color: #001e4d;
        font-size: 18px;
    }

.assignment-info > p {
    margin: 6px 0 10px;
    color: #6b7280;
    font-size: 11px;
}

.assignment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

    .assignment-meta span {
        color: #8b929b;
        font-size: 10px;
    }

    .assignment-meta strong {
        margin-left: 5px;
        color: #4a4f55;
    }

.assignment-current-chip {
    display: inline-flex;
    padding: 5px 9px;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.assignment-modal {
    width: min(720px, 100%);
}

@media (max-width: 900px) {

    .assignment-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .assignment-card {
        grid-template-columns: 52px 1fr;
    }

        .assignment-card .holiday-actions {
            grid-column: 2;
        }
}

@media (max-width: 650px) {

    .assignment-card {
        grid-template-columns: 1fr;
    }

        .assignment-avatar,
        .assignment-card .holiday-actions {
            grid-column: auto;
        }

    .assignment-avatar {
        width: 100%;
    }
}

/* =========================================================
   HORARIO SEMANAL - MEJORAS
   ========================================================= */

.weekly-day-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.weekly-copy-button {
    padding: 9px 13px;
    color: #001e4d;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

    .weekly-copy-button:hover:not(:disabled) {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
    }

    .weekly-copy-button:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.weekly-day-calculated {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 23px;
    background: #f9fafb;
    border-bottom: 1px solid #edf0f3;
}

    .weekly-day-calculated > div {
        padding: 12px 14px;
        background: #ffffff;
        border: 1px solid #edf0f3;
        border-radius: 13px;
    }

    .weekly-day-calculated span {
        display: block;
        color: #8b929b;
        font-size: 10px;
    }

    .weekly-day-calculated strong {
        display: block;
        margin-top: 5px;
        color: #001e4d;
        font-size: 16px;
    }

.weekly-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 16px 20px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 17px;
}

    .weekly-warning strong {
        display: block;
        font-size: 12px;
    }

    .weekly-warning span {
        display: block;
        margin-top: 4px;
        font-size: 10px;
    }

.weekly-warning-difference {
    flex: 0 0 auto;
    margin-top: 0 !important;
    padding: 8px 11px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 10px;
    font-size: 13px !important;
    font-weight: 900;
}

.weekly-copy-modal {
    width: min(620px, 100%);
}

.weekly-copy-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.weekly-copy-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f7f8fa;
    border: 1px solid #edf0f3;
    border-radius: 14px;
    cursor: pointer;
}

    .weekly-copy-option:hover {
        border-color: #a7a9ac;
    }

    .weekly-copy-option input {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        cursor: pointer;
    }

    .weekly-copy-option strong {
        display: block;
        color: #001e4d;
        font-size: 12px;
    }

    .weekly-copy-option span {
        display: block;
        margin-top: 4px;
        color: #6b7280;
        font-size: 9px;
    }

.weekly-copy-note {
    margin-top: 18px;
    padding: 13px 15px;
    color: #6b7280;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 13px;
    font-size: 10px;
    line-height: 1.5;
}

    .weekly-copy-note strong {
        color: #001e4d;
    }

@media (max-width: 750px) {

    .weekly-day-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .weekly-day-calculated {
        grid-template-columns: 1fr;
    }

    .weekly-warning {
        align-items: stretch;
        flex-direction: column;
    }

    .weekly-warning-difference {
        align-self: flex-start;
    }

    .weekly-copy-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   TARJETAS CONFIGURACIÓN CALENDARIO - HOVER
   ========================================================= */

.calendar-config-module {
    position: relative;
    border-bottom: 4px solid transparent !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .calendar-config-module:hover {
        transform: translateY(-3px);
        border-bottom-color: #001E4D !important;
        box-shadow: 0 12px 28px rgba(0, 30, 77, 0.10);
    }

/* =========================================================
   INFORMES - ALINEACIÓN DE FILTROS
   ========================================================= */

.reports-filter-grid-aligned {
    align-items: end;
}

    .reports-filter-grid-aligned .reports-field {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

        .reports-filter-grid-aligned .reports-field label {
            margin-bottom: 8px;
        }

        .reports-filter-grid-aligned .reports-field select {
            height: 46px;
            box-sizing: border-box;
        }

.reports-filter-button-wrapper {
    display: flex;
    align-items: flex-end;
}

    .reports-filter-button-wrapper .reports-search-button {
        height: 46px;
        margin: 0;
        white-space: nowrap;
    }

.reports-filter-help {
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
}

/* =========================================================
   INFORMES - ACCIONES SUPERIORES
   ========================================================= */

.reports-export-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

    .reports-export-actions .reports-export-button {
        min-width: 245px;
    }


/* =========================================================
   INFORMES - MODAL EXPORTACIÓN POR PERIODO
   ========================================================= */

.reports-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(10, 15, 24, 0.62);
    backdrop-filter: blur(4px);
}

.reports-period-modal {
    width: min(720px, 100%);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 27px;
    box-shadow: 0 32px 90px rgba(10, 15, 24, 0.32);
}

.reports-period-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

    .reports-period-modal-header h2 {
        margin: 6px 0 8px;
        color: #001e4d;
        font-size: 25px;
    }

    .reports-period-modal-header p {
        margin: 0;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.5;
    }

.reports-modal-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    color: #4a4f55;
    background: #f7f8fa;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
}

    .reports-modal-close:hover:not(:disabled) {
        color: #001e4d;
        background: #edf0f3;
    }

.reports-period-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .reports-period-form .reports-field {
        display: flex;
        flex-direction: column;
    }

        .reports-period-form .reports-field label {
            margin-bottom: 8px;
            color: #001e4d;
            font-size: 12px;
            font-weight: 800;
        }

        .reports-period-form .reports-field select,
        .reports-period-form .reports-field input {
            width: 100%;
            height: 48px;
            padding: 0 14px;
            border: 1px solid #d6d8da;
            border-radius: 12px;
            color: #001e4d;
            background: #ffffff;
            font-size: 13px;
            box-sizing: border-box;
        }

            .reports-period-form .reports-field select:focus,
            .reports-period-form .reports-field input:focus {
                outline: none;
                border-color: #001e4d;
                box-shadow: 0 0 0 3px rgba(0, 30, 77, 0.08);
            }

        .reports-period-form .reports-field small {
            margin-top: 7px;
            color: #8b929b;
            font-size: 10px;
        }

.reports-period-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reports-period-summary {
    padding: 16px 18px;
    border: 1px solid #edf0f3;
    border-radius: 15px;
    background: #f7f8fa;
}

    .reports-period-summary span {
        display: block;
        color: #6b7280;
        font-size: 10px;
    }

    .reports-period-summary strong {
        display: block;
        margin-top: 5px;
        color: #001e4d;
        font-size: 17px;
    }

    .reports-period-summary small {
        display: block;
        margin-top: 4px;
        color: #8b929b;
        font-size: 10px;
    }

.reports-period-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 28px;
    padding-top: 21px;
    border-top: 1px solid #edf0f3;
}

    .reports-period-modal-actions button {
        min-width: 160px;
    }


@media (max-width: 800px) {

    .reports-export-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .reports-export-actions .reports-export-button {
            width: 100%;
            min-width: 0;
        }

    .reports-period-dates {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .reports-modal-backdrop {
        padding: 14px;
    }

    .reports-period-modal {
        padding: 22px;
    }

    .reports-period-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .reports-period-modal-actions button {
            width: 100%;
        }
}

/* =========================================================
   CONFIGURACIÓN - PARÁMETROS DE FICHAJE
   ========================================================= */

.parameters-loading-card,
.parameters-card,
.parameters-summary-card,
.parameters-info-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, 0.06);
}

.parameters-loading-card {
    padding: 45px;
}

.parameters-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    margin-top: 22px;
}

.parameters-main-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.parameters-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* =========================================================
   TARJETAS PRINCIPALES
   ========================================================= */

.parameters-card {
    padding: 28px;
}

.parameters-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

    .parameters-card-header h2 {
        margin: 6px 0 8px;
        color: #001e4d;
        font-size: 23px;
    }

    .parameters-card-header p {
        margin: 0;
        color: #707784;
        font-size: 13px;
        line-height: 1.5;
    }

.parameters-eyebrow {
    display: block;
    color: #687384;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.parameters-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #dce9ff;
    color: #18479a;
    font-size: 12px;
    font-weight: 800;
}

.parameters-card-icon-green {
    background: #d8f8e5;
    color: #167342;
}

.parameters-card-icon-yellow {
    background: #fff1bd;
    color: #9c6500;
}


/* =========================================================
   CAMPOS NUMÉRICOS
   ========================================================= */

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.parameters-field {
    display: flex;
    flex-direction: column;
}

    .parameters-field label {
        margin-bottom: 8px;
        color: #001e4d;
        font-size: 12px;
        font-weight: 800;
    }

    .parameters-field input {
        width: 100%;
        height: 48px;
        padding: 0 14px;
        box-sizing: border-box;
        border: 1px solid #d6d8da;
        border-radius: 12px;
        background: #ffffff;
        color: #001e4d;
        font-size: 14px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .parameters-field input:focus {
            outline: none;
            border-color: #001e4d;
            box-shadow: 0 0 0 3px rgba(0, 30, 77, 0.08);
        }

    .parameters-field small {
        margin-top: 7px;
        color: #8b929b;
        font-size: 10px;
        line-height: 1.4;
    }


/* =========================================================
   OPCIONES / CHECKBOX
   ========================================================= */

.parameters-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parameters-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 17px 18px;
    border: 1px solid #edf0f3;
    border-radius: 15px;
    background: #f8f9fb;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

    .parameters-toggle-row:hover {
        border-color: #d6d8da;
        background: #f5f7fa;
    }

    .parameters-toggle-row > div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .parameters-toggle-row strong {
        color: #001e4d;
        font-size: 13px;
    }

    .parameters-toggle-row span {
        color: #767d88;
        font-size: 11px;
        line-height: 1.4;
    }

    .parameters-toggle-row input[type="checkbox"] {
        width: 19px;
        height: 19px;
        flex: 0 0 auto;
        accent-color: #001e4d;
        cursor: pointer;
    }

.parameters-toggle-disabled {
    opacity: 0.5;
    cursor: default;
}

    .parameters-toggle-disabled:hover {
        border-color: #edf0f3;
        background: #f8f9fb;
    }


/* =========================================================
   COLUMNA LATERAL - RESUMEN
   ========================================================= */

.parameters-summary-card {
    padding: 24px;
}

    .parameters-summary-card h3 {
        margin: 7px 0 22px;
        color: #001e4d;
        font-size: 20px;
    }

.parameters-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f3;
}

    .parameters-summary-item:last-child {
        border-bottom: 0;
    }

    .parameters-summary-item span {
        color: #767d88;
        font-size: 11px;
    }

    .parameters-summary-item strong {
        color: #001e4d;
        font-size: 12px;
        text-align: right;
    }


/* =========================================================
   COLUMNA LATERAL - INFORMACIÓN
   ========================================================= */

.parameters-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
}

.parameters-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #dce9ff;
    color: #001e4d;
    font-weight: 800;
}

.parameters-info-card h3 {
    margin: 0 0 8px;
    color: #001e4d;
    font-size: 15px;
}

.parameters-info-card p {
    margin: 0 0 8px;
    color: #767d88;
    font-size: 11px;
    line-height: 1.5;
}

    .parameters-info-card p:last-child {
        margin-bottom: 0;
    }


/* =========================================================
   BOTONES INFERIORES
   ========================================================= */

.parameters-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(10, 15, 24, 0.06);
}

.parameters-save-button {
    min-width: 210px;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: #001e4d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .parameters-save-button:hover:not(:disabled) {
        background: #001535;
        box-shadow: 0 8px 20px rgba(0, 30, 77, 0.18);
    }

    .parameters-save-button:active:not(:disabled) {
        transform: translateY(1px);
    }

    .parameters-save-button:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .parameters-layout {
        grid-template-columns: 1fr;
    }

    .parameters-side-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .parameters-grid {
        grid-template-columns: 1fr;
    }

    .parameters-side-column {
        grid-template-columns: 1fr;
    }

    .parameters-card {
        padding: 22px;
    }

    .parameters-card-header {
        flex-direction: column-reverse;
    }

    .parameters-toggle-row {
        align-items: flex-start;
    }

    .parameters-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .parameters-actions button,
        .parameters-save-button {
            width: 100%;
        }
}

/* ============================================================
   LOGIN AINEDER
   ============================================================ */

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow: hidden;
    background: radial-gradient( circle at top left, rgba(30, 64, 175, 0.16), transparent 36% ), linear-gradient( 145deg, #001535 0%, #001e4d 55%, #001535 100% );
}

.login-background-shape {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
}

.login-background-shape-one {
    width: 420px;
    height: 420px;
    top: -170px;
    right: -90px;
    background: rgba(214, 216, 218, 0.06);
}

.login-background-shape-two {
    width: 320px;
    height: 320px;
    bottom: -150px;
    left: -80px;
    background: rgba(167, 169, 172, 0.06);
}

.login-card-modern {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    padding: 38px;
    border-radius: 28px;
    border: 1px solid rgba(214, 216, 218, 0.16);
    background: rgba(10, 15, 24, 0.94);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
}

.login-brand-block {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
}

.login-brand-text {
    min-width: 0;
}

.login-brand-eyebrow,
.login-form-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #a7a9ac;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-brand-text h1 {
    margin: 0;
    color: #f7f8fa;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.login-brand-text p {
    margin: 8px 0 0;
    color: #a7a9ac;
    font-size: 13px;
    line-height: 1.5;
}

.login-form-header {
    margin-bottom: 26px;
}

    .login-form-header h2 {
        margin: 0;
        color: #f7f8fa;
        font-size: 24px;
    }

    .login-form-header p {
        margin: 8px 0 0;
        color: #a7a9ac;
        font-size: 14px;
    }

.login-form-grid {
    display: grid;
    gap: 20px;
}

.login-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .login-form-field label {
        color: #f7f8fa;
        font-size: 13px;
        font-weight: 700;
    }

.login-input-wrapper {
    display: flex;
    align-items: center;
    height: 52px;
    overflow: hidden;
    border: 1px solid rgba(214, 216, 218, 0.16);
    border-radius: 14px;
    background: #f7f8fa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .login-input-wrapper:focus-within {
        border-color: #001e4d;
        box-shadow: 0 0 0 4px rgba(0, 30, 77, 0.16);
        transform: translateY(-1px);
    }

.login-input-prefix {
    min-width: 54px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #001e4d;
    font-size: 12px;
    font-weight: 900;
    border-right: 1px solid #d6d8da;
}

.login-input-modern {
    width: 100%;
    height: 100%;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0a0f18;
    font-size: 14px;
}

    .login-input-modern::placeholder {
        color: #8b9097;
    }

    .login-input-modern:disabled {
        cursor: not-allowed;
        opacity: 0.65;
    }

.login-field-help {
    color: #7e838a;
    font-size: 11px;
}

.login-error-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #fecaca;
    font-size: 13px;
}

.login-error-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.22);
    font-weight: 900;
}

.login-button-modern {
    width: 100%;
    min-height: 54px;
    margin-top: 28px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 14px;
    background: #f7f8fa;
    color: #001e4d;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .login-button-modern:hover:not(:disabled) {
        transform: translateY(-2px);
        background: #ffffff;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    }

    .login-button-modern:disabled {
        cursor: wait;
        opacity: 0.72;
    }

.login-button-arrow {
    font-size: 18px;
    line-height: 1;
}

.login-button-spinner {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid rgba(0, 30, 77, 0.22);
    border-top-color: #001e4d;
    animation: login-spin 0.8s linear infinite;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: #6f747b;
    font-size: 11px;
}

.login-footer-dot {
    color: #4a4f55;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {

    .login-page {
        align-items: flex-start;
        padding: 28px 16px;
    }

    .login-card-modern {
        margin-top: 30px;
        padding: 28px 22px;
        border-radius: 22px;
    }

    .login-brand-block {
        align-items: flex-start;
    }

    .login-brand-icon {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
        border-radius: 15px;
        font-size: 23px;
    }

    .login-brand-text h1 {
        font-size: 25px;
    }
}

.login-brand-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: #001e4d;
}

.login-brand-logo {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    object-fit: contain;
    position: static !important;
    display: block;
}

/* =========================================================
   SIDEBAR MODERNO AINEDER
   ========================================================= */

.app-sidebar {
    width: 280px;
    min-width: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    color: #f7f8fa;
    background: linear-gradient( 180deg, #001e4d 0%, #001535 100% );
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 14px 0 35px rgba(10, 15, 24, 0.08);
}

/* =========================================================
   MARCA
   ========================================================= */

.sidebar-brand-modern {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 8px 22px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(247, 248, 250, 0.10);
}

.sidebar-brand-logo-wrapper {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.sidebar-brand-logo {
    width: 38px;
    height: 38px;
    display: block;
    object-fit: contain;
}

.sidebar-brand-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .sidebar-brand-info strong {
        display: block;
        color: #f7f8fa;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 0.04em;
    }

    .sidebar-brand-info span {
        display: block;
        width: 100%;
        margin-top: 4px;
        color: #a7a9ac;
        font-size: 12px;
        text-align: center;
    }

/* =========================================================
   SECCIONES
   ========================================================= */

.sidebar-section {
    margin-top: 14px;
}

.sidebar-section-secondary {
    margin-top: 28px;
}

.sidebar-section-title {
    display: block;
    padding: 0 12px;
    margin-bottom: 10px;
    color: #7f8ca3;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.sidebar-navigation {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sidebar-nav-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 4px;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 4px 8px 4px 6px;
    color: #d6d8da;
    text-decoration: none;
    border-radius: 15px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .sidebar-nav-item:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(2px);
    }

    .sidebar-nav-item.active {
        color: #001e4d;
        background: #f7f8fa;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    }

.sidebar-nav-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

    .sidebar-nav-icon svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

.sidebar-nav-item:hover .sidebar-nav-icon {
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-nav-item.active .sidebar-nav-icon {
    color: #f7f8fa;
    background: #001e4d;
}

.sidebar-nav-text {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav-active-indicator {
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background: transparent;
}

.sidebar-nav-item.active
.sidebar-nav-active-indicator {
    background: #001e4d;
}

/* =========================================================
   FOOTER
   ========================================================= */

.sidebar-footer {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(247, 248, 250, 0.10);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001e4d;
    background: #f7f8fa;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 900;
}

.sidebar-user-info {
    min-width: 0;
}

    .sidebar-user-info strong {
        display: block;
        overflow: hidden;
        color: #f7f8fa;
        font-size: 13px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-user-info span {
        display: block;
        margin-top: 3px;
        color: #a7a9ac;
        font-size: 11px;
    }

.sidebar-logout-button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 14px;
    color: #d6d8da;
    background: transparent;
    border: 1px solid rgba(247, 248, 250, 0.18);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .sidebar-logout-button:hover {
        color: #ffffff;
        background: rgba(220, 38, 38, 0.16);
        border-color: rgba(248, 113, 113, 0.32);
        transform: translateY(-1px);
    }

.sidebar-logout-icon {
    font-size: 16px;
    line-height: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .app-sidebar {
        width: 236px;
        min-width: 236px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .sidebar-brand-logo-wrapper {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .sidebar-brand-logo {
        width: 34px;
        height: 34px;
    }

    .sidebar-nav-item {
        grid-template-columns: 38px minmax(0, 1fr) 4px;
    }

    .sidebar-nav-icon {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 760px) {

    .app-sidebar {
        width: 82px;
        min-width: 82px;
        padding: 18px 10px;
    }

    .sidebar-brand-modern {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar-brand-info,
    .sidebar-section-title,
    .sidebar-nav-text,
    .sidebar-user-info,
    .sidebar-logout-button span:last-child {
        display: none;
    }

    .sidebar-navigation {
        align-items: center;
    }

    .sidebar-nav-item {
        width: 52px;
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 5px;
    }

    .sidebar-nav-icon {
        width: 42px;
        height: 42px;
    }

    .sidebar-nav-active-indicator {
        display: none;
    }

    .sidebar-user {
        justify-content: center;
        padding: 7px;
    }

    .sidebar-logout-button {
        width: 52px;
        margin: 0 auto;
        padding: 0;
    }
}

/* =========================================================
   LOGOTIPO DE TEXTO DEL SIDEBAR
   ========================================================= */

.sidebar-brand-wordmark {
    display: block;
    width: 200px;
    height: auto;
    object-fit: contain;
    object-position: center;
}
/* Ocultamos SOFTWARE porque a este tamaño
   puede quedar demasiado pequeño si la imagen lo incluye */

/* =========================================================
   MARCA COMBINADA DEL SIDEBAR
   ========================================================= */

.sidebar-brand-modern.sidebar-brand-combined {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px 20px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(247, 248, 250, 0.10);
}

.sidebar-brand-combined-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.sidebar-brand-role {
    display: block;
    width: 100%;
    margin-top: 2px;
    color: #d6d8da;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* =========================================================
   CABECERA LOGIN CON LOGO COMBINADO
   ========================================================= */

.login-brand-block.login-brand-block-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 34px;
    text-align: center;
}

.login-brand-combined-logo {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.login-brand-eyebrow.login-brand-eyebrow-large {
    display: block;
    margin: 4px 0 0;
    color: #d6d8da;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-align: center;
}

.login-brand-description {
    max-width: 380px;
    margin: 0;
    color: #a7a9ac;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 640px) {

    .login-brand-combined-logo {
        width: 260px;
    }

    .login-brand-eyebrow.login-brand-eyebrow-large {
        font-size: 12px;
    }
}

/* ============================================================
   CONFIGURACIÓN - ACCESO Y SESIONES
   ============================================================ */

.security-page-header {
    margin-bottom: 28px;
}

.security-page-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.security-back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4a4f55;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .security-back-button:hover {
        color: #001e4d;
    }

    .security-back-button span {
        font-size: 20px;
    }

.security-page-title {
    max-width: 760px;
}

.security-page-eyebrow,
.security-setting-category,
.security-summary-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #1d64b5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.security-page-title h1 {
    margin: 0;
    color: #001e4d;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.security-page-title p {
    margin: 10px 0 0;
    color: #68717d;
    font-size: 15px;
    line-height: 1.7;
}


/* GRID */

.security-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}


/* TARJETAS */

.security-setting-card {
    padding: 26px;
    border: 1px solid #e4e8ee;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(10, 15, 24, 0.05);
}

.security-setting-card-wide {
    grid-column: 1 / -1;
}

.security-setting-card-header {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #edf0f4;
}

.security-setting-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #edf5ff;
    color: #001e4d;
    font-size: 20px;
    font-weight: 800;
}

.security-setting-card-header h2 {
    margin: 0;
    color: #001e4d;
    font-size: 20px;
    font-weight: 800;
}

.security-setting-card-header p {
    margin: 7px 0 0;
    color: #737c88;
    font-size: 14px;
    line-height: 1.6;
}


/* CAMPOS */

.security-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

    .security-field label {
        color: #25344a;
        font-size: 14px;
        font-weight: 700;
    }

    .security-field small {
        color: #7c8591;
        font-size: 12px;
        line-height: 1.5;
    }

.security-number-input {
    display: flex;
    overflow: hidden;
    min-height: 48px;
    border: 1px solid #dce2e9;
    border-radius: 12px;
    background: #f9fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .security-number-input:focus-within {
        border-color: #1d64b5;
        box-shadow: 0 0 0 3px rgba(29, 100, 181, 0.1);
    }

    .security-number-input input {
        flex: 1;
        min-width: 0;
        padding: 0 15px;
        border: 0;
        outline: none;
        background: transparent;
        color: #001e4d;
        font-size: 15px;
        font-weight: 700;
    }

    .security-number-input span {
        display: flex;
        align-items: center;
        padding: 0 16px;
        border-left: 1px solid #e2e6eb;
        background: #f1f4f7;
        color: #66717e;
        font-size: 13px;
        font-weight: 600;
    }

.security-fields-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}


/* SWITCH */

.security-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 24px;
    padding: 18px;
    border-radius: 14px;
    background: #f7f9fc;
    cursor: pointer;
}

.security-switch-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .security-switch-content strong {
        color: #25344a;
        font-size: 14px;
    }

    .security-switch-content span {
        color: #7b8490;
        font-size: 12px;
        line-height: 1.5;
    }

.security-switch {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 26px;
}

    .security-switch input {
        width: 0;
        height: 0;
        opacity: 0;
    }

.security-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: #cbd2db;
    transition: 0.2s ease;
}

    .security-switch-slider::before {
        content: "";
        position: absolute;
        top: 4px;
        left: 4px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
        transition: 0.2s ease;
    }

.security-switch input:checked + .security-switch-slider {
    background: #1d64b5;
}

    .security-switch input:checked + .security-switch-slider::before {
        transform: translateX(22px);
    }


/* RESUMEN */

.security-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 22px;
    padding: 23px 26px;
    border: 1px solid #dce7f4;
    border-radius: 18px;
    background: #f7faff;
}

    .security-summary-card h3 {
        margin: 0;
        color: #001e4d;
        font-size: 18px;
    }

.security-summary-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.security-summary-item {
    min-width: 130px;
    padding: 12px 15px;
    border: 1px solid #e0e8f1;
    border-radius: 12px;
    background: #ffffff;
}

    .security-summary-item span {
        display: block;
        margin-bottom: 4px;
        color: #7b8490;
        font-size: 11px;
    }

    .security-summary-item strong {
        color: #001e4d;
        font-size: 13px;
    }


/* ACCIONES */

.security-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.security-button-primary,
.security-button-secondary {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.security-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #001e4d;
    background: #001e4d;
    color: #ffffff;
}

    .security-button-primary:hover:not(:disabled) {
        background: #002c70;
        transform: translateY(-1px);
    }

.security-button-secondary {
    border: 1px solid #d8dee7;
    background: #ffffff;
    color: #354154;
}

    .security-button-secondary:hover:not(:disabled) {
        border-color: #aeb9c7;
        background: #f8f9fb;
    }

    .security-button-primary:disabled,
    .security-button-secondary:disabled {
        cursor: not-allowed;
        opacity: 0.65;
    }


/* MENSAJES */

.security-message {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 15px 18px;
    border-radius: 13px;
}

    .security-message > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .security-message strong {
        font-size: 14px;
    }

    .security-message span {
        font-size: 13px;
    }

.security-message-error {
    border: 1px solid #f0c7c7;
    background: #fff4f4;
    color: #a72d2d;
}

.security-message-success {
    border: 1px solid #bfe4cf;
    background: #f1fbf5;
    color: #247347;
}

.security-message-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 900;
}


/* CARGA */

.security-loading-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #e4e8ee;
    border-radius: 18px;
    background: #ffffff;
    color: #001e4d;
}

    .security-loading-card span {
        color: #78818c;
        font-size: 13px;
    }

.security-spinner,
.security-button-spinner {
    border-radius: 50%;
    animation: security-spin 0.8s linear infinite;
}

.security-spinner {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
    border: 3px solid #dce5ef;
    border-top-color: #001e4d;
}

.security-button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
}

@keyframes security-spin {
    to {
        transform: rotate(360deg);
    }
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .security-settings-grid,
    .security-fields-two-columns {
        grid-template-columns: 1fr;
    }

    .security-setting-card-wide {
        grid-column: auto;
    }

    .security-summary-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {

    .security-setting-card {
        padding: 20px;
    }

    .security-setting-card-header {
        flex-direction: column;
    }

    .security-page-title h1 {
        font-size: 28px;
    }

    .security-switch-row {
        align-items: flex-start;
    }

    .security-actions {
        flex-direction: column-reverse;
    }

    .security-button-primary,
    .security-button-secondary {
        width: 100%;
    }
}

.security-header-back-button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 14px;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .security-header-back-button:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.50);
        transform: translateY(-1px);
    }

/* =========================================================
   CONFIGURACIÓN - CENTROS DE TRABAJO
   ========================================================= */

/* ---------------------------------------------------------
   BOTONES GENERALES DEL MÓDULO
   --------------------------------------------------------- */

.configuration-button-primary,
.configuration-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 13px 19px;
    border-radius: 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.configuration-button-primary {
    color: #f7f8fa;
    background: #001e4d;
    border: 1px solid #001e4d;
    box-shadow: 0 10px 24px rgba(0, 30, 77, .18);
}

    .configuration-button-primary:hover:not(:disabled) {
        background: #001535;
        border-color: #001535;
        box-shadow: 0 13px 28px rgba(0, 21, 53, .24);
        transform: translateY(-1px);
    }

.configuration-button-secondary {
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
}

    .configuration-button-secondary:hover:not(:disabled) {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
        transform: translateY(-1px);
    }

    .configuration-button-primary:disabled,
    .configuration-button-secondary:disabled {
        cursor: not-allowed;
        opacity: .62;
        transform: none;
        box-shadow: none;
    }

.configuration-back-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 0 0 15px;
    padding: 0;
    color: #d6d8da;
    background: transparent;
    border: none;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

    .configuration-back-button:hover:not(:disabled) {
        color: #ffffff;
    }

    .configuration-back-button span {
        font-size: 17px;
    }

    .configuration-back-button:disabled {
        cursor: not-allowed;
        opacity: .55;
    }

/* ---------------------------------------------------------
   RESUMEN SUPERIOR
   --------------------------------------------------------- */

.work-centers-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.work-centers-summary-card {
    position: relative;
    overflow: hidden;
    padding: 23px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
}

    .work-centers-summary-card::after {
        content: "";
        position: absolute;
        top: -32px;
        right: -32px;
        width: 86px;
        height: 86px;
        background: rgba(0, 30, 77, .055);
        border-radius: 50%;
    }

.work-centers-summary-label {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.work-centers-summary-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 10px;
    color: #001e4d;
    font-size: 29px;
    line-height: 1;
}

.work-centers-summary-card p {
    position: relative;
    z-index: 1;
    margin: 9px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

/* ---------------------------------------------------------
   PANEL PRINCIPAL
   --------------------------------------------------------- */

.work-centers-panel {
    overflow: hidden;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 27px;
    box-shadow: 0 12px 34px rgba(10, 15, 24, .08);
}

.work-centers-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 27px 28px 23px;
    border-bottom: 1px solid #edf0f3;
}

    .work-centers-panel-header h2 {
        margin: 6px 0 0;
        color: #001e4d;
        font-size: 23px;
    }

    .work-centers-panel-header p {
        margin: 7px 0 0;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.5;
    }

.work-centers-button-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #001e4d;
    background: #f7f8fa;
    border-radius: 7px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.work-centers-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 205px auto;
    gap: 14px;
    align-items: end;
    padding: 18px 28px;
    background: #f7f8fa;
    border-bottom: 1px solid #edf0f3;
}

.work-centers-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 13px;
    background: #ffffff;
    border: 1px solid #d6d8da;
    border-radius: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

    .work-centers-search:focus-within {
        border-color: #001e4d;
        box-shadow: 0 0 0 3px rgba(0, 30, 77, .10);
    }

    .work-centers-search > span {
        flex: 0 0 auto;
        color: #6b7280;
        font-size: 20px;
    }

    .work-centers-search input {
        width: 100%;
        min-width: 0;
        padding: 13px 0;
        color: #001e4d;
        background: transparent;
        border: none;
        outline: none;
        font: inherit;
    }

        .work-centers-search input::placeholder {
            color: #9ca3af;
        }

.work-centers-search-clear {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 0;
    color: #6b7280;
    background: #f1f3f5;
    border: none;
    border-radius: 9px;
    font-size: 18px;
    cursor: pointer;
}

    .work-centers-search-clear:hover:not(:disabled) {
        color: #ffffff;
        background: #001e4d;
    }

.work-centers-filter label {
    display: block;
    margin-bottom: 7px;
    color: #4a4f55;
    font-size: 12px;
    font-weight: 800;
}

.work-centers-filter select {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
    border-radius: 14px;
    font: inherit;
}

    .work-centers-filter select:focus {
        outline: none;
        border-color: #001e4d;
        box-shadow: 0 0 0 3px rgba(0, 30, 77, .10);
    }

/* ---------------------------------------------------------
   TABLA
   --------------------------------------------------------- */

.work-centers-table-wrapper {
    overflow-x: auto;
    padding: 7px 18px 18px;
}

.work-centers-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

    .work-centers-table thead th {
        padding: 5px 13px;
        color: #6b7280;
        font-size: 11px;
        font-weight: 900;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: .035em;
    }

    .work-centers-table tbody td {
        padding: 15px 13px;
        color: #4a4f55;
        background: #f7f8fa;
        border-top: 1px solid transparent;
        border-bottom: 1px solid transparent;
        vertical-align: middle;
    }

        .work-centers-table tbody td:first-child {
            border-left: 1px solid transparent;
            border-radius: 16px 0 0 16px;
        }

        .work-centers-table tbody td:last-child {
            border-right: 1px solid transparent;
            border-radius: 0 16px 16px 0;
        }

    .work-centers-table tbody tr {
        transition: transform .18s ease, box-shadow .18s ease;
    }

        .work-centers-table tbody tr:hover td {
            background: #ffffff;
            border-color: #dfe3e8;
        }

        .work-centers-table tbody tr:hover {
            filter: drop-shadow(0 8px 12px rgba(10, 15, 24, .06));
        }

.work-centers-actions-column {
    width: 112px;
    text-align: right !important;
}

.work-centers-code {
    display: inline-flex;
    padding: 7px 10px;
    color: #001e4d;
    background: #dbeafe;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .025em;
}

.work-centers-name strong,
.work-centers-location strong {
    display: block;
    overflow: hidden;
    color: #001e4d;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-centers-name span,
.work-centers-location span {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-centers-geo-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

    .work-centers-geo-status.configured {
        color: #166534;
        background: #dcfce7;
    }

    .work-centers-geo-status.pending {
        color: #92400e;
        background: #fef3c7;
    }

.work-centers-geo-detail {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 11px;
}

.work-centers-status {
    display: inline-flex;
    justify-content: center;
    min-width: 72px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

    .work-centers-status.active {
        color: #166534;
        background: #dcfce7;
    }

    .work-centers-status.inactive {
        color: #991b1b;
        background: #fee2e2;
    }

.work-centers-actions {
    text-align: right;
}

.work-centers-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

    .work-centers-edit-button:hover {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
    }

.work-centers-panel-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 28px 20px;
    color: #6b7280;
    font-size: 12px;
    border-top: 1px solid #edf0f3;
}

    .work-centers-panel-footer strong {
        color: #001e4d;
    }

/* ---------------------------------------------------------
   CARGA Y ESTADO VACÍO
   --------------------------------------------------------- */

.work-centers-loading,
.work-centers-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    padding: 42px 25px;
    text-align: center;
}

    .work-centers-loading strong,
    .work-centers-empty h2,
    .work-centers-empty h3 {
        margin: 16px 0 0;
        color: #001e4d;
    }

    .work-centers-loading p,
    .work-centers-empty p {
        max-width: 520px;
        margin: 8px auto 20px;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.55;
    }

.work-centers-empty-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #001e4d, #001535);
    border-radius: 22px;
    font-size: 19px;
    font-weight: 900;
    box-shadow: 0 13px 27px rgba(0, 30, 77, .20);
}

.configuration-page-loading,
.configuration-page-empty {
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 26px;
    box-shadow: 0 12px 34px rgba(10, 15, 24, .08);
}

/* ---------------------------------------------------------
   FORMULARIO DEL COMPONENTE
   --------------------------------------------------------- */

.centro-trabajo-form {
    width: 100%;
}

    .centro-trabajo-form .configuration-form-card {
        margin-bottom: 22px;
        padding: 27px;
        background: #ffffff;
        border: 1px solid #edf0f3;
        border-radius: 25px;
        box-shadow: 0 10px 30px rgba(10, 15, 24, .07);
    }

    .centro-trabajo-form .configuration-form-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 22px;
        margin-bottom: 24px;
    }

    .centro-trabajo-form .configuration-form-eyebrow {
        display: block;
        margin-bottom: 6px;
        color: #6b7280;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .centro-trabajo-form .configuration-form-header h2 {
        margin: 0;
        color: #001e4d;
        font-size: 21px;
    }

    .centro-trabajo-form .configuration-form-header p {
        max-width: 690px;
        margin: 6px 0 0;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.5;
    }

    .centro-trabajo-form .configuration-form-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        display: grid;
        place-items: center;
        color: #f7f8fa;
        background: linear-gradient(135deg, #001e4d, #001535);
        border-radius: 15px;
        font-size: 11px;
        font-weight: 900;
        box-shadow: 0 9px 20px rgba(0, 30, 77, .17);
    }

    /*
   Esta regla es más específica que la existente
   .configuration-form-grid del app.css.
*/
    .centro-trabajo-form .configuration-form-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 19px;
    }

    .centro-trabajo-form .configuration-form-field {
        min-width: 0;
    }

    .centro-trabajo-form .configuration-form-field-wide {
        grid-column: span 2;
    }

    .centro-trabajo-form .configuration-form-field-full {
        grid-column: 1 / -1;
    }

    .centro-trabajo-form .configuration-form-field label {
        display: block;
        margin-bottom: 8px;
        color: #374151;
        font-size: 13px;
        font-weight: 800;
    }

.required-mark {
    color: #dc2626;
}

.centro-trabajo-form .configuration-form-control {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    color: #001e4d;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 14px;
    font: inherit;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .centro-trabajo-form .configuration-form-control:focus {
        outline: none;
        background: #ffffff;
        border-color: #001e4d;
        box-shadow: 0 0 0 3px rgba(0, 30, 77, .10);
    }

    .centro-trabajo-form .configuration-form-control:disabled {
        color: #6b7280;
        background: #eef0f2;
        cursor: not-allowed;
    }

.centro-trabajo-form .configuration-form-help {
    display: block;
    margin-top: 7px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.4;
}

.centro-trabajo-form .configuration-form-input-suffix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
}

    .centro-trabajo-form .configuration-form-input-suffix .configuration-form-control {
        border-radius: 14px 0 0 14px;
    }

    .centro-trabajo-form .configuration-form-input-suffix > span {
        display: flex;
        align-items: center;
        padding: 0 14px;
        color: #4a4f55;
        background: #e9ecef;
        border: 1px solid #d6d8da;
        border-left: none;
        border-radius: 0 14px 14px 0;
        font-size: 12px;
        font-weight: 800;
    }

.centro-trabajo-form .validation-message {
    display: block;
    margin-top: 7px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
}

.centro-trabajo-form .form-validation-summary {
    margin-bottom: 20px;
    padding: 15px 18px;
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 15px;
    font-size: 13px;
}

    .centro-trabajo-form .form-validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }

/* ---------------------------------------------------------
   AVISOS Y MENSAJES
   --------------------------------------------------------- */

.configuration-form-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding: 14px 16px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.45;
}

    .configuration-form-warning strong {
        white-space: nowrap;
    }

.configuration-form-message {
    margin-bottom: 22px;
    padding: 15px 18px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.configuration-form-message-error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.configuration-form-message-success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

/* ---------------------------------------------------------
   INTERRUPTOR ACTIVO
   --------------------------------------------------------- */

.configuration-form-switch-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    background: #f7f8fa;
    border: 1px solid #d6d8da;
    border-radius: 17px;
    cursor: pointer;
}

.configuration-form-switch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.configuration-form-switch {
    position: relative;
    width: 54px;
    height: 30px;
    flex: 0 0 54px;
    background: #a7a9ac;
    border-radius: 999px;
    transition: background .2s ease;
}

    .configuration-form-switch::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 24px;
        height: 24px;
        background: #ffffff;
        border-radius: 50%;
        box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
        transition: transform .2s ease;
    }

.configuration-form-switch-input:checked + .configuration-form-switch {
    background: #22c55e;
}

    .configuration-form-switch-input:checked + .configuration-form-switch::before {
        transform: translateX(24px);
    }

.configuration-form-switch-input:focus-visible + .configuration-form-switch {
    box-shadow: 0 0 0 3px rgba(0, 30, 77, .16);
}

.configuration-form-switch-input:disabled + .configuration-form-switch {
    cursor: not-allowed;
    opacity: .55;
}

.configuration-form-switch-content strong {
    display: block;
    color: #001e4d;
    font-size: 14px;
}

.configuration-form-switch-content small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
}

/* ---------------------------------------------------------
   ACCIONES DEL FORMULARIO
   --------------------------------------------------------- */

.configuration-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 0;
    background: linear-gradient( to top, #f7f8fa 74%, rgba(247, 248, 250, 0) );
}

    .configuration-form-actions button {
        min-width: 165px;
    }

.configuration-button-spinner {
    width: 18px;
    height: 18px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, .38);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: configuration-spinner .75s linear infinite;
}

.work-centers-loading > .configuration-button-spinner {
    width: 31px;
    height: 31px;
    color: #001e4d;
    border-color: rgba(0, 30, 77, .18);
    border-top-color: #001e4d;
}

@keyframes configuration-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {
    .work-centers-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-centers-toolbar {
        grid-template-columns: minmax(0, 1fr) 190px;
    }

        .work-centers-toolbar > .configuration-button-secondary {
            grid-column: 1 / -1;
            width: 100%;
        }

    .centro-trabajo-form .configuration-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .centro-trabajo-form .configuration-form-field-wide {
        grid-column: span 1;
    }
}

@media (max-width: 800px) {
    .work-centers-summary-grid {
        grid-template-columns: 1fr;
    }

    .work-centers-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

        .work-centers-panel-header .configuration-button-primary {
            width: 100%;
        }

    .work-centers-toolbar {
        grid-template-columns: 1fr;
    }

        .work-centers-toolbar > .configuration-button-secondary {
            grid-column: auto;
        }

    .work-centers-table-wrapper {
        overflow: visible;
        padding: 14px;
    }

    .work-centers-table {
        min-width: 0;
        border-spacing: 0;
    }

        .work-centers-table thead {
            display: none;
        }

        .work-centers-table,
        .work-centers-table tbody,
        .work-centers-table tr,
        .work-centers-table td {
            display: block;
            width: 100%;
        }

            .work-centers-table tbody {
                display: flex;
                flex-direction: column;
                gap: 14px;
            }

                .work-centers-table tbody tr {
                    overflow: hidden;
                    background: #f7f8fa;
                    border: 1px solid #e3e7ec;
                    border-radius: 18px;
                }

                .work-centers-table tbody td,
                .work-centers-table tbody td:first-child,
                .work-centers-table tbody td:last-child {
                    display: grid;
                    grid-template-columns: 135px minmax(0, 1fr);
                    gap: 13px;
                    align-items: center;
                    padding: 12px 15px;
                    background: transparent;
                    border: none;
                    border-bottom: 1px solid #e5e7eb;
                    border-radius: 0;
                    text-align: left;
                }

                    .work-centers-table tbody td:last-child {
                        border-bottom: none;
                    }

                    .work-centers-table tbody td::before {
                        content: attr(data-label);
                        color: #6b7280;
                        font-size: 10px;
                        font-weight: 900;
                        text-transform: uppercase;
                    }

    .work-centers-actions {
        text-align: left;
    }

    .work-centers-edit-button {
        width: fit-content;
    }

    .work-centers-panel-footer {
        justify-content: flex-start;
    }

    .centro-trabajo-form .configuration-form-header {
        flex-direction: column;
    }

    .centro-trabajo-form .configuration-form-grid {
        grid-template-columns: 1fr;
    }

    .centro-trabajo-form .configuration-form-field-wide,
    .centro-trabajo-form .configuration-form-field-full {
        grid-column: auto;
    }

    .configuration-form-actions {
        flex-direction: column-reverse;
    }

        .configuration-form-actions button {
            width: 100%;
            min-width: 0;
        }

    .configuration-form-warning {
        flex-direction: column;
    }

        .configuration-form-warning strong {
            white-space: normal;
        }
}

@media (max-width: 560px) {
    .employee-main {
        padding: 20px 15px;
    }

    .work-centers-panel-header,
    .work-centers-toolbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .work-centers-table tbody td,
    .work-centers-table tbody td:first-child,
    .work-centers-table tbody td:last-child {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .centro-trabajo-form .configuration-form-card {
        padding: 21px 18px;
    }

    .configuration-form-switch-row {
        align-items: flex-start;
    }
}

/* =========================================================
   CONFIGURACIÓN - EMPRESA: MEJORAS FINALES
   ========================================================= */

.configuration-required {
    margin-left: 3px;
    color: #dc2626;
    font-weight: 900;
}

.configuration-company-loading {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    text-align: center;
}

    .configuration-company-loading .configuration-button-spinner {
        width: 30px;
        height: 30px;
        color: #001e4d;
        border-color: rgba(0, 30, 77, .18);
        border-top-color: #001e4d;
    }

    .configuration-company-loading strong {
        display: block;
        margin-top: 16px;
        color: #001e4d;
        font-size: 16px;
    }

    .configuration-company-loading p {
        margin: 7px 0 0;
        color: #6b7280;
        font-size: 13px;
    }

.configuration-preview-image-container {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin: 18px auto 16px;
    padding: 9px;
    overflow: hidden;
    border-radius: 27px;
    box-shadow: 0 14px 28px rgba(0, 30, 77, .22);
}

.configuration-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, .94);
    border-radius: 19px;
}

.configuration-company-actions .configuration-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.configuration-company-card input:disabled,
.configuration-company-card select:disabled,
.configuration-company-card textarea:disabled {
    cursor: not-allowed;
    opacity: .7;
}

.configuration-preview-card dd {
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .configuration-preview-image-container {
        width: 82px;
        height: 82px;
    }
}
/* =========================================================
   AINEDER ADMIN
   CLIENTES / EMPRESAS
   ========================================================= */


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.aineder-clients-section {
    margin-top: 22px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 30, 77, 0.06);
    border-radius: 26px;
    box-shadow: 0 14px 45px rgba(10, 15, 24, 0.055);
}


/* =========================================================
   CABECERA
   ========================================================= */

.aineder-clients-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}


    .aineder-clients-header h2 {
        margin: 4px 0 5px;
        color: #001e4d;
        font-size: 23px;
        font-weight: 800;
        letter-spacing: -0.4px;
    }


    .aineder-clients-header p {
        margin: 0;
        max-width: 650px;
        color: #737b87;
        font-size: 13px;
        line-height: 1.5;
    }


.aineder-clients-eyebrow {
    color: #7183a0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}


.aineder-clients-count {
    min-width: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: #f7f8fa;
    border: 1px solid #e8eaed;
    border-radius: 16px;
}


    .aineder-clients-count strong {
        color: #001e4d;
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }


    .aineder-clients-count span {
        margin-top: 4px;
        color: #858d98;
        font-size: 10px;
        font-weight: 600;
    }


/* =========================================================
   LISTADO
   ========================================================= */

.aineder-client-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}


/* =========================================================
   TARJETA
   ========================================================= */

.aineder-client-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(440px, 1.6fr) 145px;
    align-items: center;
    gap: 28px;
    min-height: 112px;
    padding: 20px 20px 20px 24px;
    overflow: hidden;
    background: linear-gradient( 125deg, #ffffff 0%, #fbfcfe 70%, #f7f9fc 100% );
    border: 1px solid #e8ebef;
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}


    .aineder-client-card:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 30, 77, 0.16);
        box-shadow: 0 12px 30px rgba(0, 30, 77, 0.08);
    }


/* pequeña línea corporativa izquierda */

.aineder-client-accent {
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    background: linear-gradient( 180deg, #001e4d, #245b98 );
    border-radius: 0 5px 5px 0;
}


/* =========================================================
   EMPRESA
   ========================================================= */

.aineder-client-company {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}


.aineder-client-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient( 145deg, #001535, #00356d );
    border-radius: 17px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.6px;
    box-shadow: 0 9px 22px rgba(0, 30, 77, 0.19);
}


.aineder-client-company-info {
    min-width: 0;
}


.aineder-client-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 8px;
}


    .aineder-client-title h3 {
        margin: 0;
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #001e4d;
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -0.2px;
    }


/* =========================================================
   METADATOS
   ========================================================= */

.aineder-client-company-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #8a929d;
    font-size: 11px;
}


    .aineder-client-company-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }


    .aineder-client-company-meta small {
        color: #9ba2ab;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.05em;
    }


    .aineder-client-company-meta strong {
        color: #555d68;
        font-size: 11px;
        font-weight: 700;
    }


.aineder-client-meta-divider {
    width: 1px;
    height: 13px;
    background: #d9dde2;
}


/* =========================================================
   ESTADO
   ========================================================= */

.aineder-client-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    color: #606975;
    background: #f0f2f4;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.aineder-client-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}


.aineder-client-status.is-active {
    color: #157347;
    background: #ddf7e8;
}


.aineder-client-status.is-trial {
    color: #8a6500;
    background: #fff3cd;
}


.aineder-client-status.is-suspended {
    color: #a35b00;
    background: #ffe8c7;
}


.aineder-client-status.is-inactive {
    color: #7a3535;
    background: #fbe1e1;
}


/* =========================================================
   MÉTRICAS
   ========================================================= */

.aineder-client-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
}


.aineder-client-stat {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f7f8fa;
    border: 1px solid #eceef1;
    border-radius: 14px;
}


.aineder-client-stat-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(10, 15, 24, 0.04);
}


.aineder-client-stat > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.aineder-client-stat span {
    color: #838b96;
    font-size: 9px;
    font-weight: 700;
}


.aineder-client-stat strong {
    color: #001e4d;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}


.aineder-client-stat-revenue {
    background: linear-gradient( 145deg, rgba(0, 30, 77, 0.065), rgba(0, 30, 77, 0.025) );
    border-color: rgba(0, 30, 77, 0.10);
}


    .aineder-client-stat-revenue
    .aineder-client-stat-icon {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
    }


    .aineder-client-stat-revenue strong {
        font-size: 16px;
    }


/* =========================================================
   ACCIÓN
   ========================================================= */

.aineder-client-action {
    display: flex;
    justify-content: flex-end;
}


.aineder-client-detail-button {
    width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d9dde3;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(10, 15, 24, 0.035);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}


    .aineder-client-detail-button:hover {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
        box-shadow: 0 8px 20px rgba(0, 30, 77, 0.17);
        transform: translateY(-1px);
    }


.aineder-client-detail-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}


.aineder-client-detail-button:hover
.aineder-client-detail-arrow {
    transform: translateX(3px);
}


/* =========================================================
   VACÍO / CARGANDO
   ========================================================= */

.aineder-client-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: #7d8590;
    background: #f9fafb;
    border: 1px dashed #d8dde3;
    border-radius: 18px;
}


.aineder-client-empty-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #ffffff;
    background: #001e4d;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 900;
}


.aineder-client-empty strong {
    margin-bottom: 4px;
    color: #001e4d;
    font-size: 14px;
}


.aineder-client-empty span {
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1300px) {

    .aineder-client-card {
        grid-template-columns: minmax(270px, 1fr) minmax(400px, 1.5fr);
    }


    .aineder-client-action {
        grid-column: 1 / -1;
    }


    .aineder-client-detail-button {
        width: auto;
        min-width: 150px;
    }
}


@media (max-width: 950px) {

    .aineder-client-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .aineder-client-action {
        grid-column: auto;
    }
}


@media (max-width: 680px) {

    .aineder-clients-section {
        padding: 20px;
    }


    .aineder-clients-header {
        align-items: flex-start;
    }


    .aineder-clients-count {
        display: none;
    }


    .aineder-client-card {
        padding: 18px;
    }


    .aineder-client-stats {
        grid-template-columns: 1fr;
    }


    .aineder-client-detail-button {
        width: 100%;
    }
}

/* =========================================================
   AINEDER ADMIN - DETALLE DE EMPRESA
   ========================================================= */

.aineder-company-detail-loading {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 26px;
    box-shadow: 0 14px 40px rgba(10, 15, 24, 0.05);
}


/* =========================================================
   HERO
   ========================================================= */

.aineder-company-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 30px;
    color: #ffffff;
    background: linear-gradient( 125deg, #001535 0%, #001e4d 60%, #00346c 100% );
    border-radius: 28px;
    box-shadow: 0 16px 35px rgba(0, 21, 53, 0.16);
}


.aineder-company-detail-hero-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.aineder-company-back-link {
    width: fit-content;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}


    .aineder-company-back-link:hover {
        color: #ffffff;
    }


.aineder-company-detail-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}


.aineder-company-detail-logo {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001e4d;
    background: #ffffff;
    border-radius: 19px;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


.aineder-company-detail-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}


    .aineder-company-detail-title-row h1 {
        margin: 0;
        color: #ffffff;
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }


.aineder-company-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
}


    .aineder-company-detail-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }


    .aineder-company-detail-meta small {
        font-size: 9px;
        font-weight: 800;
    }


    .aineder-company-detail-meta strong {
        color: #ffffff;
    }


.aineder-company-detail-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.22);
}


.aineder-company-detail-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.aineder-company-primary-button,
.aineder-company-secondary-button {
    padding: 12px 17px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}


.aineder-company-primary-button {
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #ffffff;
}


.aineder-company-secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
}


/* =========================================================
   KPIS
   ========================================================= */

.aineder-company-detail-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 22px;
}


.aineder-company-detail-kpi {
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px;
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(10, 15, 24, 0.045);
}


.aineder-company-detail-kpi-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001e4d;
    background: #f4f6f8;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 900;
}


.aineder-company-detail-kpi > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.aineder-company-detail-kpi span {
    color: #858d98;
    font-size: 10px;
    font-weight: 700;
}


.aineder-company-detail-kpi strong {
    color: #001e4d;
    font-size: 21px;
    font-weight: 800;
}


.aineder-company-detail-kpi small {
    color: #9aa1aa;
    font-size: 9px;
}


.aineder-company-detail-kpi-main {
    color: #ffffff;
    background: linear-gradient( 135deg, #001535, #002c60 );
    border-color: transparent;
}


    .aineder-company-detail-kpi-main
    .aineder-company-detail-kpi-icon {
        color: #001e4d;
        background: #ffffff;
    }


    .aineder-company-detail-kpi-main span,
    .aineder-company-detail-kpi-main small {
        color: rgba(255, 255, 255, 0.68);
    }


    .aineder-company-detail-kpi-main strong {
        color: #ffffff;
    }


/* =========================================================
   LAYOUT
   ========================================================= */

.aineder-company-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
    margin-top: 22px;
}


.aineder-company-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================================
   TARJETAS PRINCIPALES
   ========================================================= */

.aineder-company-detail-card,
.aineder-company-side-card {
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(10, 15, 24, 0.045);
}


.aineder-company-detail-card {
    padding: 24px;
}


.aineder-company-detail-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f2;
}


    .aineder-company-detail-card-header span,
    .aineder-company-side-eyebrow {
        color: #7183a0;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.12em;
    }


    .aineder-company-detail-card-header h2 {
        margin: 4px 0 4px;
        color: #001e4d;
        font-size: 19px;
        font-weight: 800;
    }


    .aineder-company-detail-card-header p {
        margin: 0;
        color: #818995;
        font-size: 11px;
    }


.aineder-company-detail-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #001e4d;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   DATOS EMPRESA
   ========================================================= */

.aineder-company-detail-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    padding-top: 20px;
}


.aineder-company-detail-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 15px;
    background: #f8f9fb;
    border: 1px solid #eef0f2;
    border-radius: 14px;
}


    .aineder-company-detail-data span {
        color: #8b929c;
        font-size: 9px;
        font-weight: 700;
    }


    .aineder-company-detail-data strong {
        color: #001e4d;
        font-size: 12px;
        font-weight: 800;
    }


/* =========================================================
   CÁLCULO COMERCIAL
   ========================================================= */

.aineder-commercial-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 9px;
    padding-top: 20px;
}


.aineder-commercial-item {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 15px;
    text-align: center;
    background: #f8f9fb;
    border: 1px solid #eceff2;
    border-radius: 15px;
}


    .aineder-commercial-item span {
        color: #858d97;
        font-size: 9px;
    }


    .aineder-commercial-item strong {
        color: #001e4d;
        font-size: 17px;
        font-weight: 800;
    }


    .aineder-commercial-item small {
        color: #a0a6ae;
        font-size: 8px;
    }


.aineder-commercial-symbol {
    color: #9aa2ac;
    font-size: 17px;
    font-weight: 500;
}


.aineder-commercial-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 18px 20px;
    color: #ffffff;
    background: linear-gradient( 130deg, #001535, #002d62 );
    border-radius: 16px;
}


    .aineder-commercial-result span {
        font-size: 10px;
        font-weight: 800;
    }


    .aineder-commercial-result p {
        margin: 3px 0 0;
        color: rgba(255, 255, 255, 0.64);
        font-size: 9px;
    }


    .aineder-commercial-result > strong {
        font-size: 25px;
        font-weight: 800;
    }


/* =========================================================
   SIDEBAR
   ========================================================= */

.aineder-company-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.aineder-company-side-card {
    padding: 20px;
}


.aineder-company-side-status {
    margin: 14px 0 17px;
}


.aineder-company-side-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
    border-top: 1px solid #eef0f2;
}


    .aineder-company-side-row span {
        color: #838b96;
        font-size: 10px;
    }


    .aineder-company-side-row strong {
        color: #001e4d;
        font-size: 11px;
    }


    .aineder-company-side-row
    .is-positive {
        color: #16804f;
    }


    .aineder-company-side-row
    .is-negative {
        color: #a94444;
    }


/* =========================================================
   VALOR CLIENTE
   ========================================================= */

.aineder-company-side-revenue {
    background: linear-gradient( 145deg, #ffffff, #f5f8fc );
}


.aineder-company-side-revenue-main {
    margin: 14px 0 16px;
    padding: 17px;
    color: #ffffff;
    background: #001e4d;
    border-radius: 15px;
}


    .aineder-company-side-revenue-main span {
        display: block;
        margin-bottom: 4px;
        color: rgba(255, 255, 255, 0.68);
        font-size: 9px;
    }


    .aineder-company-side-revenue-main strong {
        font-size: 24px;
        font-weight: 800;
    }


/* =========================================================
   ACCIONES
   ========================================================= */

.aineder-company-side-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 11px 12px;
    color: #001e4d;
    background: #f7f8fa;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}


    .aineder-company-side-action:hover {
        color: #ffffff;
        background: #001e4d;
        border-color: #001e4d;
        transform: translateY(-1px);
    }


.aineder-company-back-button {
    margin-top: 15px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .aineder-company-detail-kpis {
        grid-template-columns: repeat(2, 1fr);
    }


    .aineder-company-detail-layout {
        grid-template-columns: 1fr;
    }


    .aineder-company-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 850px) {

    .aineder-company-detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }


    .aineder-company-detail-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .aineder-commercial-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .aineder-commercial-symbol {
        display: none;
    }


    .aineder-company-detail-sidebar {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .aineder-company-detail-kpis,
    .aineder-company-detail-data-grid,
    .aineder-commercial-grid {
        grid-template-columns: 1fr;
    }


    .aineder-company-detail-title-row h1 {
        font-size: 22px;
    }


    .aineder-company-detail-logo {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
    }


    .aineder-company-detail-hero-actions {
        width: 100%;
    }


    .aineder-company-primary-button,
    .aineder-company-secondary-button {
        flex: 1;
    }


    .aineder-commercial-result {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   AINEDER ADMIN - EDITAR EMPRESA
   ========================================================= */

.aineder-edit-company-loading {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 26px;
}


/* =========================================================
   HERO
   ========================================================= */

.aineder-edit-company-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px 30px;
    color: #ffffff;
    background: linear-gradient( 125deg, #001535 0%, #001e4d 65%, #00346c 100% );
    border-radius: 28px;
    box-shadow: 0 16px 35px rgba(0, 21, 53, 0.15);
}


.aineder-edit-company-hero-content {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 17px;
}


.aineder-edit-company-avatar {
    width: 61px;
    height: 61px;
    flex: 0 0 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001e4d;
    background: #ffffff;
    border-radius: 17px;
    font-size: 16px;
    font-weight: 900;
}


.aineder-edit-company-eyebrow {
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}


.aineder-edit-company-hero h1 {
    margin: 3px 0 5px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}


.aineder-edit-company-meta {
    display: flex;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.aineder-edit-company-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    margin-top: 22px;
}


.aineder-edit-company-main,
.aineder-edit-company-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.aineder-edit-company-card,
.aineder-edit-preview,
.aineder-edit-revenue-card,
.aineder-edit-warning-card {
    background: #ffffff;
    border: 1px solid #e7eaee;
    border-radius: 22px;
    box-shadow: 0 8px 26px rgba(10, 15, 24, 0.045);
}


.aineder-edit-company-card {
    padding: 24px;
}


.aineder-edit-company-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f2;
}


.aineder-edit-company-section-number {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #001e4d;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 900;
}


.aineder-edit-company-card-header span {
    color: #7183a0;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}


.aineder-edit-company-card-header h2 {
    margin: 3px 0 3px;
    color: #001e4d;
    font-size: 17px;
    font-weight: 800;
}


.aineder-edit-company-card-header p {
    margin: 0;
    color: #858d97;
    font-size: 10px;
}


/* =========================================================
   FORM
   ========================================================= */

.aineder-edit-company-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
    padding-top: 21px;
}


.aineder-edit-money-input {
    position: relative;
}


    .aineder-edit-money-input input {
        padding-right: 46px;
    }


    .aineder-edit-money-input > span {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #001e4d;
        font-size: 11px;
        font-weight: 800;
    }


.aineder-edit-company-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 20px;
    padding: 17px;
    background: #f7f8fa;
    border: 1px solid #e9ebee;
    border-radius: 15px;
}


    .aineder-edit-company-switch-row > div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }


    .aineder-edit-company-switch-row strong {
        color: #001e4d;
        font-size: 11px;
    }


    .aineder-edit-company-switch-row span {
        color: #858d97;
        font-size: 9px;
    }


/* =========================================================
   CÁLCULO
   ========================================================= */

.aineder-edit-calculation {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding-top: 21px;
}


    .aineder-edit-calculation > div {
        min-height: 83px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        text-align: center;
        background: #f7f8fa;
        border: 1px solid #e9ecf0;
        border-radius: 14px;
    }


    .aineder-edit-calculation span {
        color: #858d97;
        font-size: 9px;
    }


    .aineder-edit-calculation strong {
        color: #001e4d;
        font-size: 17px;
        font-weight: 800;
    }


.aineder-edit-calculation-symbol {
    color: #9ba2ab !important;
    font-size: 17px !important;
}


.aineder-edit-calculation-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 18px 20px;
    color: #ffffff;
    background: linear-gradient( 130deg, #001535, #002f66 );
    border-radius: 16px;
}


    .aineder-edit-calculation-result > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }


    .aineder-edit-calculation-result span {
        font-size: 10px;
        font-weight: 800;
    }


    .aineder-edit-calculation-result small {
        color: rgba(255, 255, 255, 0.60);
        font-size: 9px;
    }


    .aineder-edit-calculation-result > strong {
        font-size: 24px;
        font-weight: 800;
    }


/* =========================================================
   PREVIEW
   ========================================================= */

.aineder-edit-preview {
    padding: 22px;
    text-align: center;
}


.aineder-edit-preview-eyebrow {
    display: block;
    margin-bottom: 17px;
    color: #7183a0;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}


.aineder-edit-preview-avatar {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #ffffff;
    background: #001e4d;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 30, 77, 0.17);
}


.aineder-edit-preview h2 {
    margin: 0 0 3px;
    color: #001e4d;
    font-size: 16px;
    font-weight: 800;
}


.aineder-edit-preview-nif {
    color: #8b929c;
    font-size: 10px;
}


.aineder-edit-preview-status {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}


.aineder-edit-preview-divider {
    height: 1px;
    margin: 18px 0 8px;
    background: #edf0f2;
}


.aineder-edit-preview dl {
    margin: 0;
}


    .aineder-edit-preview dl > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid #f0f1f3;
    }


        .aineder-edit-preview dl > div:last-child {
            border-bottom: none;
        }


.aineder-edit-preview dt {
    color: #858d97;
    font-size: 9px;
}


.aineder-edit-preview dd {
    margin: 0;
    color: #001e4d;
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   REVENUE
   ========================================================= */

.aineder-edit-revenue-card {
    padding: 20px;
}


    .aineder-edit-revenue-card > span,
    .aineder-edit-warning-card > strong {
        color: #7183a0;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.10em;
    }


    .aineder-edit-revenue-card > div:first-of-type {
        margin-top: 13px;
        padding: 17px;
        color: #ffffff;
        background: #001e4d;
        border-radius: 15px;
    }


    .aineder-edit-revenue-card small {
        display: block;
        margin-bottom: 3px;
        color: rgba(255, 255, 255, 0.65);
        font-size: 9px;
    }


    .aineder-edit-revenue-card > div:first-of-type strong {
        font-size: 23px;
    }


.aineder-edit-revenue-annual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #edf0f2;
}


    .aineder-edit-revenue-annual span {
        color: #858d97;
        font-size: 9px;
    }


    .aineder-edit-revenue-annual strong {
        color: #001e4d;
        font-size: 11px;
    }


/* =========================================================
   AVISO
   ========================================================= */

.aineder-edit-warning-card {
    padding: 19px;
    background: linear-gradient( 145deg, #ffffff, #fafbfc );
}


    .aineder-edit-warning-card p {
        margin: 7px 0 0;
        color: #858d97;
        font-size: 9px;
        line-height: 1.55;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.aineder-edit-company-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 18px 21px;
    background: #ffffff;
    border: 1px solid #e7eaee;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(10, 15, 24, 0.045);
}


    .aineder-edit-company-footer > div:first-child {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }


        .aineder-edit-company-footer > div:first-child span {
            color: #001e4d;
            font-size: 10px;
            font-weight: 800;
        }


        .aineder-edit-company-footer > div:first-child small {
            color: #9299a2;
            font-size: 9px;
        }


    .aineder-edit-company-footer > div:last-child {
        display: flex;
        gap: 9px;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1150px) {

    .aineder-edit-company-layout {
        grid-template-columns: 1fr;
    }


    .aineder-edit-company-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 800px) {

    .aineder-edit-company-grid {
        grid-template-columns: 1fr;
    }


    .aineder-edit-calculation {
        grid-template-columns: repeat(2, 1fr);
    }


    .aineder-edit-calculation-symbol {
        display: none;
    }


    .aineder-edit-company-sidebar {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .aineder-edit-company-hero {
        align-items: flex-start;
        flex-direction: column;
    }


    .aineder-edit-company-footer {
        align-items: stretch;
        flex-direction: column;
    }


        .aineder-edit-company-footer > div:last-child {
            width: 100%;
        }


        .aineder-edit-company-footer
        .employee-form-cancel-button,
        .aineder-edit-company-footer
        .employee-form-save-button {
            flex: 1;
        }


    .aineder-edit-calculation {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   AINEDER ADMIN - BOTONES EDITAR EMPRESA
   ========================================================= */

.aineder-edit-company-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}


/* =========================================================
   CANCELAR
   ========================================================= */

.aineder-edit-cancel-button {
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 17px;
    color: #001e4d;
    background: #ffffff;
    border: 1px solid #d6d8da;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}


    .aineder-edit-cancel-button:hover:not(:disabled) {
        color: #001535;
        background: #f7f8fa;
        border-color: #a7a9ac;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(10, 15, 24, 0.08);
    }


/* =========================================================
   GUARDAR
   ========================================================= */

.aineder-edit-save-button {
    min-width: 165px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    color: #ffffff;
    background: linear-gradient( 135deg, #001e4d, #00346c );
    border: 1px solid #001e4d;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(0, 30, 77, 0.18);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}


    .aineder-edit-save-button:hover:not(:disabled) {
        background: linear-gradient( 135deg, #001535, #002b5f );
        border-color: #001535;
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(0, 30, 77, 0.24);
    }


.aineder-edit-save-arrow {
    font-size: 15px;
    transition: transform 0.2s ease;
}


.aineder-edit-save-button:hover:not(:disabled)
.aineder-edit-save-arrow {
    transform: translateX(3px);
}


/* =========================================================
   DISABLED
   ========================================================= */

.aineder-edit-cancel-button:disabled,
.aineder-edit-save-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* =========================================================
   SPINNER
   ========================================================= */

.aineder-edit-save-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: aineder-edit-spin 0.7s linear infinite;
}


@keyframes aineder-edit-spin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   AINEDER ADMIN - TARIFAS
   ========================================================= */

.aineder-tariffs-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 32px;
    color: #ffffff;
    background: linear-gradient( 125deg, #001535 0%, #001e4d 65%, #00346c 100% );
    border-radius: 28px;
    box-shadow: 0 16px 35px rgba(0, 21, 53, 0.15);
}


.aineder-tariffs-hero-eyebrow {
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}


.aineder-tariffs-hero h1 {
    margin: 5px 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
}


.aineder-tariffs-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}


/* RESUMEN */

.aineder-tariffs-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 22px;
}


    .aineder-tariffs-summary article {
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 19px 21px;
        background: #ffffff;
        border: 1px solid #e8ebef;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(10, 15, 24, 0.045);
    }


        .aineder-tariffs-summary article > span {
            color: #818995;
            font-size: 10px;
            font-weight: 700;
        }


        .aineder-tariffs-summary article > strong {
            margin: 5px 0 2px;
            color: #001e4d;
            font-size: 22px;
            font-weight: 800;
        }


        .aineder-tariffs-summary article > small {
            color: #9ba2ab;
            font-size: 9px;
        }


.aineder-tariffs-summary-main {
    background: linear-gradient( 135deg, #001535, #002e64 ) !important;
    border-color: transparent !important;
}


    .aineder-tariffs-summary-main span,
    .aineder-tariffs-summary-main small {
        color: rgba(255, 255, 255, 0.68) !important;
    }


    .aineder-tariffs-summary-main strong {
        color: #ffffff !important;
    }


/* PANEL */

.aineder-tariffs-panel {
    margin-top: 22px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 26px;
    box-shadow: 0 12px 35px rgba(10, 15, 24, 0.05);
}


.aineder-tariffs-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}


    .aineder-tariffs-panel-header > div:first-child > span {
        color: #7183a0;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.13em;
    }


    .aineder-tariffs-panel-header h2 {
        margin: 4px 0;
        color: #001e4d;
        font-size: 21px;
        font-weight: 800;
    }


    .aineder-tariffs-panel-header p {
        margin: 0;
        color: #818995;
        font-size: 10px;
    }


.aineder-tariffs-panel-count {
    min-width: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: #f7f8fa;
    border: 1px solid #e5e8ec;
    border-radius: 15px;
}


    .aineder-tariffs-panel-count strong {
        color: #001e4d;
        font-size: 20px;
    }


    .aineder-tariffs-panel-count span {
        color: #8b929c;
        font-size: 9px;
    }


/* GRID */

.aineder-tariffs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    gap: 16px;
}


/* TARIFA */

.aineder-tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 20px;
    background: linear-gradient( 145deg, #ffffff, #fbfcfd );
    border: 1px solid #e7eaee;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(10, 15, 24, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}


    .aineder-tariff-card:hover {
        transform: translateY(-3px);
        border-color: rgba(0, 30, 77, 0.16);
        box-shadow: 0 14px 30px rgba(0, 30, 77, 0.08);
    }


    .aineder-tariff-card.is-inactive {
        opacity: 0.62;
    }


.aineder-tariff-featured {
    position: absolute;
    top: -9px;
    right: 16px;
    padding: 5px 10px;
    color: #ffffff;
    background: #001e4d;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.08em;
}


/* HEADER */

.aineder-tariff-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 11px;
    align-items: center;
}


.aineder-tariff-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #001e4d;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
}


.aineder-tariff-code {
    color: #8c949f;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
}


.aineder-tariff-header h3 {
    margin: 2px 0 0;
    color: #001e4d;
    font-size: 15px;
    font-weight: 800;
}


/* PRECIO */

.aineder-tariff-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 22px;
}


    .aineder-tariff-price strong {
        color: #001e4d;
        font-size: 28px;
        font-weight: 800;
    }


    .aineder-tariff-price span {
        color: #939aa4;
        font-size: 9px;
    }


/* EMPLEADOS */

.aineder-tariff-employees {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 7px;
    color: #858d97;
    font-size: 9px;
}


    .aineder-tariff-employees strong {
        color: #001e4d;
        font-size: 11px;
    }


.aineder-tariff-divider {
    height: 1px;
    margin: 18px 0;
    background: #edf0f2;
}


/* FEATURES */

.aineder-tariff-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}


    .aineder-tariff-features > div {
        display: flex;
        align-items: center;
        gap: 8px;
    }


    .aineder-tariff-features strong {
        color: #505965;
        font-size: 9px;
        font-weight: 700;
    }


.aineder-tariff-feature-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 900;
}


    .aineder-tariff-feature-icon.is-enabled {
        color: #157347;
        background: #ddf7e8;
    }


    .aineder-tariff-feature-icon.is-disabled {
        color: #9299a2;
        background: #f0f2f4;
    }


/* FOOTER */

.aineder-tariff-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #edf0f2;
}


    .aineder-tariff-footer > div {
        display: flex;
        flex-direction: column;
    }


        .aineder-tariff-footer > div strong {
            color: #001e4d;
            font-size: 14px;
        }


        .aineder-tariff-footer > div span {
            color: #939aa4;
            font-size: 8px;
        }


    .aineder-tariff-footer button {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 11px;
        color: #001e4d;
        background: #ffffff;
        border: 1px solid #dce0e5;
        border-radius: 10px;
        font-size: 9px;
        font-weight: 800;
        cursor: pointer;
        transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }


        .aineder-tariff-footer button:hover {
            color: #ffffff;
            background: #001e4d;
            border-color: #001e4d;
        }


/* RESPONSIVE */

@media (max-width: 1300px) {

    .aineder-tariffs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 850px) {

    .aineder-tariffs-summary {
        grid-template-columns: repeat(2, 1fr);
    }


    .aineder-tariffs-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 600px) {

    .aineder-tariffs-grid,
    .aineder-tariffs-summary {
        grid-template-columns: 1fr;
    }


    .aineder-tariffs-panel {
        padding: 20px;
    }


    .aineder-tariffs-panel-count {
        display: none;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

    .aineder-edit-company-footer-actions {
        width: 100%;
    }


    .aineder-edit-cancel-button,
    .aineder-edit-save-button {
        flex: 1;
    }
}

/* =========================================================
   AINEDER ADMIN - PLAN EN EMPRESA
   ========================================================= */

.aineder-plan-selected {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 14px;
    padding: 17px;
    background: linear-gradient( 135deg, rgba(0, 30, 77, 0.055), rgba(0, 52, 108, 0.025) );
    border: 1px solid rgba(0, 30, 77, 0.11);
    border-radius: 16px;
}


    .aineder-plan-selected > div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }


    .aineder-plan-selected span {
        color: #7d8794;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 0.07em;
    }


    .aineder-plan-selected strong {
        color: #001e4d;
        font-size: 15px;
        font-weight: 800;
    }


    .aineder-plan-selected small {
        color: #969da7;
        font-size: 8px;
    }


.aineder-plan-usage {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    background: #f7f8fa;
    border: 1px solid #e5e8eb;
    border-radius: 13px;
}


    .aineder-plan-usage strong {
        color: #001e4d;
    }


    .aineder-plan-usage span {
        color: #858d97;
        font-size: 9px;
    }


    .aineder-plan-usage.is-ok {
        background: #f0fbf5;
        border-color: #d4f0df;
    }


    .aineder-plan-usage.is-over {
        background: #fff3f3;
        border-color: #f3cccc;
    }


        .aineder-plan-usage.is-over strong {
            color: #b42323;
        }


@media (max-width: 700px) {

    .aineder-plan-selected {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   AINEDER ADMIN - PLAN EN NUEVA / EDITAR EMPRESA
   ========================================================= */

.aineder-plan-selected {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) minmax(130px, 1fr) minmax(130px, 1fr);
    gap: 14px;
    padding: 17px 18px;
    background: linear-gradient( 135deg, rgba(0, 30, 77, 0.055), rgba(0, 52, 108, 0.025) );
    border: 1px solid rgba(0, 30, 77, 0.11);
    border-radius: 16px;
}


    .aineder-plan-selected > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
    }


    .aineder-plan-selected span {
        color: #758196;
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.08em;
    }


    .aineder-plan-selected strong {
        color: #001e4d;
        font-size: 15px;
        font-weight: 800;
    }


    .aineder-plan-selected small {
        color: #969da7;
        font-size: 8px;
    }


.aineder-new-company-observations {
    margin-top: 20px;
}


    .aineder-new-company-observations textarea {
        width: 100%;
        min-height: 110px;
        padding: 14px 15px;
        color: #001e4d;
        background: #f7f8fa;
        border: 1px solid #d6d8da;
        border-radius: 14px;
        font: inherit;
        resize: vertical;
        box-sizing: border-box;
    }


        .aineder-new-company-observations textarea:focus {
            outline: none;
            background: #ffffff;
            border-color: #001e4d;
            box-shadow: 0 0 0 3px rgba(0, 30, 77, 0.10);
        }


@media (max-width: 700px) {

    .aineder-plan-selected {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   AINEDER ADMIN - FACTURACIÓN
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.aineder-billing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 29px 32px;
    color: #ffffff;
    background: linear-gradient( 125deg, #001535 0%, #001e4d 64%, #00346c 100% );
    border-radius: 28px;
    box-shadow: 0 16px 36px rgba(0, 21, 53, 0.15);
}


.aineder-billing-hero-eyebrow {
    color: rgba(255, 255, 255, 0.60);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}


.aineder-billing-hero h1 {
    margin: 5px 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
}


.aineder-billing-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 11px;
}


.aineder-billing-hero-total {
    min-width: 210px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 16px 19px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 17px;
}


    .aineder-billing-hero-total > span {
        color: rgba(255, 255, 255, 0.60);
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.10em;
    }


    .aineder-billing-hero-total > strong {
        margin: 4px 0;
        color: #ffffff;
        font-size: 25px;
        font-weight: 800;
    }


    .aineder-billing-hero-total > small {
        color: rgba(255, 255, 255, 0.62);
        font-size: 8px;
    }


/* =========================================================
   RESUMEN
   ========================================================= */

.aineder-billing-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 22px;
}


.aineder-billing-summary-card {
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 19px;
    background: #ffffff;
    border: 1px solid #e7eaee;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(10, 15, 24, 0.045);
}


.aineder-billing-summary-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001e4d;
    background: #f3f5f8;
    border: 1px solid #e7eaee;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 900;
}


.aineder-billing-summary-card > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}


.aineder-billing-summary-card span {
    color: #818995;
    font-size: 9px;
    font-weight: 700;
}


.aineder-billing-summary-card strong {
    margin: 3px 0 1px;
    color: #001e4d;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}


.aineder-billing-summary-card small {
    color: #999fa8;
    font-size: 8px;
}


.aineder-billing-summary-card-main {
    color: #ffffff;
    background: linear-gradient( 135deg, #001535, #002e64 );
    border-color: transparent;
}


    .aineder-billing-summary-card-main
    .aineder-billing-summary-icon {
        color: #001e4d;
        background: #ffffff;
        border-color: #ffffff;
    }


    .aineder-billing-summary-card-main span,
    .aineder-billing-summary-card-main small {
        color: rgba(255, 255, 255, 0.65);
    }


    .aineder-billing-summary-card-main strong {
        color: #ffffff;
    }


/* =========================================================
   DESGLOSE
   ========================================================= */

.aineder-billing-breakdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 18px;
    padding: 20px 23px;
    background: #ffffff;
    border: 1px solid #e7eaee;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(10, 15, 24, 0.04);
}


.aineder-billing-breakdown-title {
    min-width: 200px;
}


    .aineder-billing-breakdown-title > span {
        color: #7183a0;
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.12em;
    }


    .aineder-billing-breakdown-title h2 {
        margin: 3px 0 0;
        color: #001e4d;
        font-size: 15px;
        font-weight: 800;
    }


.aineder-billing-breakdown-items {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1.15fr;
    align-items: center;
    gap: 10px;
}


    .aineder-billing-breakdown-items > div {
        min-height: 56px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 9px 12px;
        background: #f7f8fa;
        border: 1px solid #e9ebee;
        border-radius: 12px;
    }


        .aineder-billing-breakdown-items > div span {
            color: #858d97;
            font-size: 8px;
        }


        .aineder-billing-breakdown-items > div strong {
            margin-top: 2px;
            color: #001e4d;
            font-size: 14px;
            font-weight: 800;
        }


.aineder-billing-breakdown-symbol {
    color: #a1a7af;
    font-size: 14px;
}


.aineder-billing-breakdown-total {
    color: #ffffff !important;
    background: #001e4d !important;
    border-color: #001e4d !important;
}


    .aineder-billing-breakdown-total span {
        color: rgba(255, 255, 255, 0.65) !important;
    }


    .aineder-billing-breakdown-total strong {
        color: #ffffff !important;
        font-size: 16px !important;
    }


/* =========================================================
   TOOLBAR
   ========================================================= */

.aineder-billing-toolbar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 190px 170px auto;
    gap: 11px;
    margin-top: 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 19px;
    box-shadow: 0 7px 22px rgba(10, 15, 24, 0.035);
}


.aineder-billing-search {
    position: relative;
}


    .aineder-billing-search > span {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #001e4d;
        font-size: 14px;
    }


    .aineder-billing-search input,
    .aineder-billing-toolbar select {
        width: 100%;
        height: 47px;
        padding: 0 14px;
        color: #001e4d;
        background: #f8f9fb;
        border: 1px solid #dce0e5;
        border-radius: 13px;
        font-size: 10px;
        box-sizing: border-box;
    }


    .aineder-billing-search input {
        padding-left: 40px;
    }


        .aineder-billing-search input:focus,
        .aineder-billing-toolbar select:focus {
            outline: none;
            background: #ffffff;
            border-color: #001e4d;
            box-shadow: 0 0 0 3px rgba(0, 30, 77, 0.07);
        }


.aineder-billing-toolbar > button {
    min-width: 105px;
    padding: 0 17px;
    color: #ffffff;
    background: #001e4d;
    border: 1px solid #001e4d;
    border-radius: 13px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}


    .aineder-billing-toolbar > button:hover:not(:disabled) {
        background: #001535;
        transform: translateY(-1px);
        box-shadow: 0 7px 17px rgba(0, 30, 77, 0.17);
    }


/* =========================================================
   PANEL
   ========================================================= */

.aineder-billing-panel {
    margin-top: 18px;
    padding: 27px;
    background: #ffffff;
    border: 1px solid #e7eaee;
    border-radius: 25px;
    box-shadow: 0 12px 35px rgba(10, 15, 24, 0.045);
}


.aineder-billing-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}


    .aineder-billing-panel-header > div:first-child > span {
        color: #7183a0;
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.13em;
    }


    .aineder-billing-panel-header h2 {
        margin: 4px 0;
        color: #001e4d;
        font-size: 20px;
        font-weight: 800;
    }


    .aineder-billing-panel-header p {
        margin: 0;
        color: #818995;
        font-size: 10px;
    }


.aineder-billing-panel-count {
    min-width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 11px 15px;
    background: #f7f8fa;
    border: 1px solid #e5e8ec;
    border-radius: 14px;
}


    .aineder-billing-panel-count strong {
        color: #001e4d;
        font-size: 18px;
    }


    .aineder-billing-panel-count span {
        color: #8c949e;
        font-size: 8px;
    }


/* =========================================================
   LISTADO CLIENTES
   ========================================================= */

.aineder-billing-client-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.aineder-billing-client-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) minmax(120px, 0.55fr) minmax(300px, 1.3fr) minmax(135px, 0.6fr) 115px;
    align-items: center;
    gap: 19px;
    min-height: 105px;
    padding: 17px 18px 17px 22px;
    overflow: hidden;
    background: linear-gradient( 125deg, #ffffff, #fafbfd );
    border: 1px solid #e8ebef;
    border-radius: 17px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}


    .aineder-billing-client-card:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 30, 77, 0.15);
        box-shadow: 0 10px 25px rgba(0, 30, 77, 0.065);
    }


    .aineder-billing-client-card.is-not-billable {
        opacity: 0.65;
    }


.aineder-billing-client-accent {
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    background: linear-gradient( 180deg, #001e4d, #245b98 );
    border-radius: 0 4px 4px 0;
}


.aineder-billing-client-card.is-not-billable
.aineder-billing-client-accent {
    background: #a7a9ac;
}


/* CLIENTE */

.aineder-billing-client-company {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}


.aineder-billing-client-avatar {
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient( 145deg, #001535, #00346c );
    border-radius: 14px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 7px 17px rgba(0, 30, 77, 0.15);
}


.aineder-billing-client-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}


    .aineder-billing-client-title h3 {
        margin: 0;
        color: #001e4d;
        font-size: 13px;
        font-weight: 800;
    }


.aineder-billing-client-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: #9097a1;
    font-size: 8px;
}


/* PLAN */

.aineder-billing-plan {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}


    .aineder-billing-plan > span,
    .aineder-billing-client-total > span {
        color: #7c8798;
        font-size: 7px;
        font-weight: 900;
        letter-spacing: 0.08em;
    }


    .aineder-billing-plan > strong {
        color: #001e4d;
        font-size: 12px;
        font-weight: 800;
    }


    .aineder-billing-plan > small {
        color: #9299a2;
        font-size: 8px;
    }


/* CÁLCULO */

.aineder-billing-calculation {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 6px;
}


    .aineder-billing-calculation > div {
        min-height: 52px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 7px 9px;
        background: #f7f8fa;
        border: 1px solid #e9ebee;
        border-radius: 10px;
    }


        .aineder-billing-calculation > div span {
            color: #8a929c;
            font-size: 7px;
        }


        .aineder-billing-calculation > div strong {
            margin-top: 1px;
            color: #001e4d;
            font-size: 10px;
            font-weight: 800;
        }


.aineder-billing-operation {
    color: #a0a6ae;
    font-size: 11px;
}


/* TOTAL */

.aineder-billing-client-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


    .aineder-billing-client-total > strong {
        color: #001e4d;
        font-size: 18px;
        font-weight: 800;
    }


    .aineder-billing-client-total > small {
        color: #9299a2;
        font-size: 7px;
    }


/* ACCIÓN */

.aineder-billing-client-action {
    display: flex;
    justify-content: flex-end;
}


    .aineder-billing-client-action button {
        width: 110px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 11px;
        color: #001e4d;
        background: #ffffff;
        border: 1px solid #dce0e5;
        border-radius: 11px;
        font-size: 8px;
        font-weight: 800;
        cursor: pointer;
        transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }


        .aineder-billing-client-action
        button:hover {
            color: #ffffff;
            background: #001e4d;
            border-color: #001e4d;
            transform: translateY(-1px);
        }


/* =========================================================
   TOTAL INFERIOR
   ========================================================= */

.aineder-billing-total-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 18px;
    padding: 20px 23px;
    color: #ffffff;
    background: linear-gradient( 125deg, #001535, #002e64 );
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 30, 77, 0.13);
}


    .aineder-billing-total-footer > div:first-child > span {
        color: rgba(255, 255, 255, 0.62);
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.10em;
    }


    .aineder-billing-total-footer p {
        margin: 3px 0 0;
        color: rgba(255, 255, 255, 0.62);
        font-size: 9px;
    }


    .aineder-billing-total-footer > div:last-child {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }


        .aineder-billing-total-footer > div:last-child span {
            color: rgba(255, 255, 255, 0.64);
            font-size: 8px;
        }


        .aineder-billing-total-footer > div:last-child strong {
            color: #ffffff;
            font-size: 25px;
            font-weight: 800;
        }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1350px) {

    .aineder-billing-client-card {
        grid-template-columns: minmax(220px, 1fr) 120px minmax(280px, 1.2fr) 125px;
    }


    .aineder-billing-client-action {
        grid-column: 1 / -1;
    }


        .aineder-billing-client-action button {
            width: auto;
            min-width: 130px;
        }
}


@media (max-width: 1100px) {

    .aineder-billing-summary {
        grid-template-columns: repeat(2, 1fr);
    }


    .aineder-billing-breakdown {
        align-items: flex-start;
        flex-direction: column;
    }


    .aineder-billing-breakdown-items {
        width: 100%;
    }


    .aineder-billing-toolbar {
        grid-template-columns: 1fr 1fr;
    }


    .aineder-billing-client-card {
        grid-template-columns: 1fr 1fr;
    }


    .aineder-billing-calculation {
        grid-column: 1 / -1;
    }
}


@media (max-width: 720px) {

    .aineder-billing-hero {
        align-items: flex-start;
        flex-direction: column;
    }


    .aineder-billing-hero-total {
        width: 100%;
        align-items: flex-start;
        box-sizing: border-box;
    }


    .aineder-billing-summary,
    .aineder-billing-toolbar {
        grid-template-columns: 1fr;
    }


    .aineder-billing-breakdown-items {
        grid-template-columns: 1fr;
    }


    .aineder-billing-breakdown-symbol {
        display: none;
    }


    .aineder-billing-client-card {
        grid-template-columns: 1fr;
    }


    .aineder-billing-calculation {
        grid-column: auto;
    }


    .aineder-billing-panel {
        padding: 20px;
    }


    .aineder-billing-panel-count {
        display: none;
    }


    .aineder-billing-client-action button {
        width: 100%;
    }


    .aineder-billing-total-footer {
        align-items: flex-start;
        flex-direction: column;
    }


        .aineder-billing-total-footer > div:last-child {
            align-items: flex-start;
        }
}

/* =========================================================
   AINEDER ADMIN - SISTEMA
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.aineder-system-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 29px 32px;
    color: #ffffff;
    background: linear-gradient( 125deg, #001535 0%, #001e4d 64%, #00346c 100% );
    border-radius: 28px;
    box-shadow: 0 16px 36px rgba(0, 21, 53, 0.15);
}


.aineder-system-hero-eyebrow {
    color: rgba(255, 255, 255, 0.60);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
}


.aineder-system-hero h1 {
    margin: 5px 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
}


.aineder-system-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 11px;
}


/* =========================================================
   ESTADO GENERAL
   ========================================================= */

.aineder-system-general-status {
    min-width: 205px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 17px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
}


.aineder-system-status-indicator {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
}


.aineder-system-general-status.is-ok
.aineder-system-status-indicator {
    background: #26c26a;
    box-shadow: 0 0 0 5px rgba(38, 194, 106, 0.15);
}


.aineder-system-general-status.is-warning
.aineder-system-status-indicator {
    background: #f0a128;
    box-shadow: 0 0 0 5px rgba(240, 161, 40, 0.15);
}


.aineder-system-general-status.is-error
.aineder-system-status-indicator {
    background: #e65353;
    box-shadow: 0 0 0 5px rgba(230, 83, 83, 0.15);
}


.aineder-system-general-status > div {
    display: flex;
    flex-direction: column;
}


.aineder-system-general-status span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.10em;
}


.aineder-system-general-status strong {
    margin-top: 2px;
    color: #ffffff;
    font-size: 12px;
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.aineder-system-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}


.aineder-system-service-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 94px;
    padding: 17px 20px;
    background: #ffffff;
    border: 1px solid #e7eaee;
    border-radius: 19px;
    box-shadow: 0 8px 25px rgba(10, 15, 24, 0.045);
}


.aineder-system-service-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001e4d;
    background: #f3f5f8;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 900;
}


.aineder-system-service-card > div:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
}


    .aineder-system-service-card > div:nth-child(2) > span {
        color: #7e8793;
        font-size: 8px;
        font-weight: 700;
    }


    .aineder-system-service-card > div:nth-child(2) > strong {
        margin: 2px 0;
        color: #001e4d;
        font-size: 13px;
        font-weight: 800;
    }


    .aineder-system-service-card > div:nth-child(2) > small {
        color: #969da6;
        font-size: 8px;
    }


.aineder-system-service-dot {
    position: absolute;
    right: 17px;
    top: 17px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}


.aineder-system-service-card.is-ok
.aineder-system-service-dot {
    background: #24bc66;
    box-shadow: 0 0 0 4px rgba(36, 188, 102, 0.10);
}


.aineder-system-service-card.is-error
.aineder-system-service-dot {
    background: #df5151;
    box-shadow: 0 0 0 4px rgba(223, 81, 81, 0.10);
}


/* =========================================================
   LAYOUT
   ========================================================= */

.aineder-system-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 19px;
    margin-top: 20px;
}


.aineder-system-main,
.aineder-system-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* =========================================================
   TARJETAS GENERALES
   ========================================================= */

.aineder-system-card,
.aineder-system-health-card,
.aineder-system-tools-card,
.aineder-system-check-card {
    background: #ffffff;
    border: 1px solid #e7eaee;
    border-radius: 22px;
    box-shadow: 0 8px 27px rgba(10, 15, 24, 0.04);
}


.aineder-system-card {
    padding: 23px;
}


.aineder-system-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f2;
}


    .aineder-system-card-header > div:first-child > span {
        color: #7183a0;
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.12em;
    }


    .aineder-system-card-header h2 {
        margin: 4px 0;
        color: #001e4d;
        font-size: 17px;
        font-weight: 800;
    }


    .aineder-system-card-header p {
        margin: 0;
        color: #858d97;
        font-size: 9px;
    }


.aineder-system-card-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #001e4d;
    border-radius: 11px;
    font-size: 8px;
    font-weight: 900;
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.aineder-system-information-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 18px;
}


    .aineder-system-information-grid > div {
        min-height: 62px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 12px 14px;
        background: #f7f8fa;
        border: 1px solid #e9ebee;
        border-radius: 13px;
    }


    .aineder-system-information-grid span {
        color: #8a929c;
        font-size: 8px;
    }


    .aineder-system-information-grid strong {
        margin-top: 3px;
        color: #001e4d;
        font-size: 11px;
        font-weight: 800;
    }


/* =========================================================
   MÉTRICAS
   ========================================================= */

.aineder-system-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 18px;
}


    .aineder-system-metrics > div {
        min-height: 79px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 13px 15px;
        background: linear-gradient( 145deg, #fafbfd, #f6f8fa );
        border: 1px solid #e9ebef;
        border-radius: 14px;
    }


    .aineder-system-metrics span {
        color: #818995;
        font-size: 8px;
    }


    .aineder-system-metrics strong {
        margin: 3px 0 1px;
        color: #001e4d;
        font-size: 20px;
        font-weight: 800;
    }


    .aineder-system-metrics small {
        color: #9a9fa7;
        font-size: 7px;
    }


/* =========================================================
   DIAGNÓSTICOS
   ========================================================= */

.aineder-system-diagnostics {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
}


.aineder-system-diagnostic {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 59px;
    padding: 11px 13px;
    border-radius: 13px;
}


    .aineder-system-diagnostic.is-ok {
        background: #f4fbf7;
        border: 1px solid #dcefe4;
    }


    .aineder-system-diagnostic.is-warning {
        background: #fff9ef;
        border: 1px solid #f1e2bd;
    }


.aineder-system-diagnostic-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 900;
}


.aineder-system-diagnostic.is-ok
.aineder-system-diagnostic-icon {
    color: #177445;
    background: #ddf3e6;
}


.aineder-system-diagnostic.is-warning
.aineder-system-diagnostic-icon {
    color: #9b6812;
    background: #f8e7bd;
}


.aineder-system-diagnostic > div:nth-child(2) {
    display: flex;
    flex-direction: column;
}


    .aineder-system-diagnostic > div:nth-child(2) strong {
        color: #001e4d;
        font-size: 9px;
    }


    .aineder-system-diagnostic > div:nth-child(2) span {
        margin-top: 2px;
        color: #7f8791;
        font-size: 8px;
    }


.aineder-system-diagnostic-state {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 900;
}


.aineder-system-diagnostic.is-ok
.aineder-system-diagnostic-state {
    color: #167444;
    background: #ddf3e6;
}


.aineder-system-diagnostic.is-warning
.aineder-system-diagnostic-state {
    color: #96620f;
    background: #f7e6bc;
}


/* =========================================================
   SALUD
   ========================================================= */

.aineder-system-health-card {
    padding: 20px;
}


.aineder-system-sidebar-eyebrow {
    color: #7183a0;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.11em;
}


.aineder-system-health-score {
    margin-top: 15px;
}


    .aineder-system-health-score strong {
        display: block;
        color: #001e4d;
        font-size: 31px;
        line-height: 1;
        font-weight: 800;
    }


    .aineder-system-health-score span {
        color: #8b929c;
        font-size: 8px;
    }


.aineder-system-health-bar {
    height: 8px;
    margin-top: 13px;
    overflow: hidden;
    background: #edf0f3;
    border-radius: 999px;
}


    .aineder-system-health-bar > div {
        height: 100%;
        background: linear-gradient( 90deg, #001e4d, #176bca );
        border-radius: 999px;
        transition: width 0.4s ease;
    }


.aineder-system-health-list {
    margin-top: 16px;
}


    .aineder-system-health-list > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px solid #eef0f2;
    }


        .aineder-system-health-list > div:last-child {
            border-bottom: none;
        }


    .aineder-system-health-list span {
        color: #828a95;
        font-size: 8px;
    }


    .aineder-system-health-list strong {
        font-size: 8px;
    }


        .aineder-system-health-list
        strong.is-ok {
            color: #16824a;
        }


        .aineder-system-health-list
        strong.is-warning {
            color: #a66b0a;
        }


        .aineder-system-health-list
        strong.is-error {
            color: #b62c2c;
        }


/* =========================================================
   HERRAMIENTAS
   ========================================================= */

.aineder-system-tools-card {
    padding: 20px;
}


    .aineder-system-tools-card h3 {
        margin: 5px 0;
        color: #001e4d;
        font-size: 15px;
    }


    .aineder-system-tools-card > p {
        margin: 0 0 16px;
        color: #858d97;
        font-size: 8px;
        line-height: 1.5;
    }


.aineder-system-tool-primary,
.aineder-system-tool-button {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    padding: 11px;
    text-align: left;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}


.aineder-system-tool-primary {
    color: #ffffff;
    background: #001e4d;
    border: 1px solid #001e4d;
}


.aineder-system-tool-button {
    color: #001e4d;
    background: #f8f9fb;
    border: 1px solid #e1e4e8;
}


    .aineder-system-tool-primary:hover:not(:disabled),
    .aineder-system-tool-button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 7px 17px rgba(0, 30, 77, 0.09);
    }


    .aineder-system-tool-button:hover {
        background: #ffffff;
        border-color: rgba(0, 30, 77, 0.20);
    }


    .aineder-system-tool-primary > span:first-child,
    .aineder-system-tool-button > span:first-child {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 8px;
        font-weight: 900;
    }


.aineder-system-tool-primary > span:first-child {
    color: #001e4d;
    background: #ffffff;
}


.aineder-system-tool-button > span:first-child {
    color: #001e4d;
    background: #eef1f5;
}


.aineder-system-tool-primary > div,
.aineder-system-tool-button > div {
    display: flex;
    flex-direction: column;
}


.aineder-system-tool-primary strong,
.aineder-system-tool-button strong {
    font-size: 8px;
}


.aineder-system-tool-primary small {
    color: rgba(255, 255, 255, 0.60);
    font-size: 7px;
}


.aineder-system-tool-button small {
    color: #9097a1;
    font-size: 7px;
}


/* =========================================================
   ÚLTIMA COMPROBACIÓN
   ========================================================= */

.aineder-system-check-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px;
}


.aineder-system-check-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #167444;
    background: #e0f5e8;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
}


.aineder-system-check-card > div:last-child {
    display: flex;
    flex-direction: column;
}


.aineder-system-check-card strong {
    color: #001e4d;
    font-size: 8px;
}


.aineder-system-check-card span {
    margin-top: 2px;
    color: #9097a1;
    font-size: 7px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1150px) {

    .aineder-system-layout {
        grid-template-columns: 1fr;
    }


    .aineder-system-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}


@media (max-width: 850px) {

    .aineder-system-services {
        grid-template-columns: 1fr;
    }


    .aineder-system-information-grid,
    .aineder-system-metrics {
        grid-template-columns: repeat(2, 1fr);
    }


    .aineder-system-sidebar {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .aineder-system-hero {
        align-items: flex-start;
        flex-direction: column;
    }


    .aineder-system-general-status {
        width: 100%;
        box-sizing: border-box;
    }


    .aineder-system-information-grid,
    .aineder-system-metrics {
        grid-template-columns: 1fr;
    }


    .aineder-system-diagnostic {
        grid-template-columns: auto 1fr;
    }


    .aineder-system-diagnostic-state {
        grid-column: 2;
        justify-self: flex-start;
    }
}