/* SGV - Sistema de Gestion de Vigilancia
   Identidad corporativa - PAKINT Seguridad Ltda. */

:root {
    --sgv-primary: #0B315F;
    --sgv-primary-dark: #071F3D;
    --sgv-primary-light: #174A83;
    --sgv-gold: #D9A900;
    --sgv-gold-light: #F2C94C;
    --sgv-gold-dark: #A97D00;
    --sgv-black: #111827;
    --sgv-white: #FFFFFF;
    --sgv-bg: #F4F6F8;
    --sgv-surface: #FFFFFF;
    --sgv-border: #DCE2E8;
    --sgv-text: #1F2937;
    --sgv-text-secondary: #667085;
    --sgv-muted: #98A2B3;
    --sgv-success: #16805C;
    --sgv-success-bg: #EAF7F1;
    --sgv-warning: #A66A00;
    --sgv-warning-bg: #FFF6D8;
    --sgv-danger: #B42318;
    --sgv-danger-bg: #FDECEC;
    --sgv-info: #175CD3;
    --sgv-info-bg: #EEF4FF;
    --sgv-radius-sm: 6px;
    --sgv-radius-md: 10px;
    --sgv-radius-lg: 14px;
    --sgv-shadow-sm: 0 1px 3px rgba(16, 24, 40, .08);
    --sgv-shadow-md: 0 6px 18px rgba(16, 24, 40, .10);
    --sgv-transition: .18s ease;
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: var(--sgv-bg);
    color: var(--sgv-text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

img {
    max-width: 100%;
}

a {
    color: var(--sgv-primary);
    text-decoration: none;
    transition: color var(--sgv-transition);
}

a:hover {
    color: var(--sgv-primary-light);
}

.sgv-logo {
    display: block;
    width: auto;
    max-height: 58px;
    object-fit: contain;
}

.sgv-logo-sm {
    max-height: 42px;
}

.sgv-logo-lg {
    max-height: 82px;
}

.sgv-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

.sgv-card {
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-md);
    box-shadow: var(--sgv-shadow-sm);
}

.sgv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--sgv-border);
}

.sgv-card-body {
    padding: 20px;
}

.sgv-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--sgv-border);
    background: #FAFBFC;
}


.sgv-subtitle {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

.sgv-section-title {
    margin: 0 0 14px;
    color: var(--sgv-primary-dark);
    font-size: 17px;
    font-weight: 700;
}

.sgv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: var(--sgv-radius-sm);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all var(--sgv-transition);
}

.sgv-btn:hover {
    transform: translateY(-1px);
}

.sgv-btn-primary {
    background: var(--sgv-primary);
    color: var(--sgv-white);
}

.sgv-btn-primary:hover {
    background: var(--sgv-primary-dark);
    color: var(--sgv-white);
}

.sgv-btn-gold {
    background: var(--sgv-gold);
    color: var(--sgv-black);
}

.sgv-btn-gold:hover {
    background: var(--sgv-gold-dark);
    color: var(--sgv-white);
}

.sgv-btn-secondary {
    background: var(--sgv-white);
    border-color: var(--sgv-border);
    color: var(--sgv-text);
}

.sgv-btn-secondary:hover {
    border-color: var(--sgv-primary);
    color: var(--sgv-primary);
}

.sgv-btn-danger {
    background: var(--sgv-danger);
    color: var(--sgv-white);
}

.sgv-btn-success {
    background: var(--sgv-success);
    color: var(--sgv-white);
}

.sgv-form-group {
    margin-bottom: 16px;
}

.sgv-label {
    display: block;
    margin-bottom: 6px;
    color: var(--sgv-text);
    font-weight: 600;
}

.sgv-input,
.sgv-select,
.sgv-textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-sm);
    background: var(--sgv-white);
    color: var(--sgv-text);
    font: inherit;
    outline: none;
}

.sgv-textarea {
    min-height: 100px;
    resize: vertical;
}

.sgv-input:focus,
.sgv-select:focus,
.sgv-textarea:focus {
    border-color: var(--sgv-primary);
    box-shadow: 0 0 0 3px rgba(11, 49, 95, .12);
}

.sgv-help {
    display: block;
    margin-top: 5px;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}

.sgv-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.sgv-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--sgv-white);
}

.sgv-table th {
    padding: 12px 14px;
    background: var(--sgv-primary);
    color: var(--sgv-white);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}

.sgv-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--sgv-border);
    vertical-align: middle;
}

.sgv-table tbody tr:hover {
    background: #F8FAFC;
}

.sgv-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.sgv-badge-primary {
    background: #EAF1F8;
    color: var(--sgv-primary);
}

.sgv-badge-gold {
    background: var(--sgv-warning-bg);
    color: var(--sgv-warning);
}

.sgv-badge-success {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}

.sgv-badge-warning {
    background: var(--sgv-warning-bg);
    color: var(--sgv-warning);
}

.sgv-badge-danger {
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
}

.sgv-badge-info {
    background: var(--sgv-info-bg);
    color: var(--sgv-info);
}

.sgv-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--sgv-radius-sm);
    font-weight: 500;
}

.sgv-alert-success {
    background: var(--sgv-success-bg);
    border-color: #B7E3D0;
    color: var(--sgv-success);
}

.sgv-alert-warning {
    background: var(--sgv-warning-bg);
    border-color: #F0D88A;
    color: var(--sgv-warning);
}

.sgv-alert-danger {
    background: var(--sgv-danger-bg);
    border-color: #F4B5B0;
    color: var(--sgv-danger);
}

.sgv-alert-info {
    background: var(--sgv-info-bg);
    border-color: #B8CCF5;
    color: var(--sgv-info);
}

.sgv-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

/* =========================================================
   SGV — TÍTULO PRINCIPAL Y ENCABEZADO DE PÁGINA
   Base única
   ========================================================= */

.sgv-title {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h1) !important;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.sgv-page-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.sgv-page-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #EAF1F8;
    font-size: 26px;
    line-height: 1;
}

.sgv-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sgv-stat {
    padding: 18px;
    background: var(--sgv-white);
    border: 1px solid var(--sgv-border);
    border-left: 4px solid var(--sgv-primary);
    border-radius: var(--sgv-radius-md);
    box-shadow: var(--sgv-shadow-sm);
}

.sgv-stat-label {
    color: var(--sgv-text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sgv-stat-value {
    margin-top: 4px;
    color: var(--sgv-primary-dark);
    font-size: 28px;
    font-weight: 800;
}

.sgv-stat-gold {
    border-left-color: var(--sgv-gold);
}

.sgv-text-primary {
    color: var(--sgv-primary);
}

.sgv-text-gold {
    color: var(--sgv-gold-dark);
}

.sgv-text-muted {
    color: var(--sgv-text-secondary);
}

.sgv-bg-primary {
    background: var(--sgv-primary);
    color: var(--sgv-white);
}

.sgv-bg-gold {
    background: var(--sgv-gold);
    color: var(--sgv-black);
}

.sgv-flex {
    display: flex;
}

.sgv-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sgv-flex-wrap {
    flex-wrap: wrap;
}

.sgv-gap-8 {
    gap: 8px;
}

.sgv-gap-12 {
    gap: 12px;
}

.sgv-gap-16 {
    gap: 16px;
}

@media (max-width: 768px) {
    .sgv-page {
        padding: 16px;
    }

    .sgv-page-header {
        flex-direction: column;
    }

    .sgv-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sgv-page-actions {
        width: 100%;
    }

    .sgv-btn {
        width: 100%;
    }
}

/* =========================================================
   DASHBOARD SGV
========================================================= */

.dashboard-section {
    margin-bottom: 24px;
}

.dashboard-section-title {
    margin-bottom: 12px;
    color: var(--sgv-primary-dark);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-stat-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 9px;
    background: #EAF1F8;
    font-size: 19px;
}

.dashboard-stat-icon-gold {
    background: var(--sgv-warning-bg);
}

.dashboard-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-document-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--sgv-white);
    border: 1px solid var(--sgv-border);
    border-left: 4px solid;
    border-radius: var(--sgv-radius-md);
    box-shadow: var(--sgv-shadow-sm);
}

.dashboard-document-danger {
    border-left-color: var(--sgv-danger);
}

.dashboard-document-warning {
    border-left-color: var(--sgv-gold);
}

.dashboard-document-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
    font-size: 21px;
    font-weight: 800;
}

.dashboard-document-warning .dashboard-document-icon {
    background: var(--sgv-warning-bg);
    color: var(--sgv-warning);
}

.dashboard-document-label {
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.dashboard-document-value {
    margin-top: 1px;
    color: var(--sgv-primary-dark);
    font-size: 27px;
    font-weight: 800;
}

.dashboard-document-description {
    margin-top: 2px;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}

.dashboard-table-card {
    margin-bottom: 20px;
    overflow: hidden;
}

.dashboard-card-description {
    margin: 3px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

.dashboard-document-number {
    display: block;
    margin-top: 2px;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}

.dashboard-action-btn {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.dashboard-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 1px dashed var(--sgv-border);
    border-radius: var(--sgv-radius-sm);
    background: #FAFBFC;
}

.dashboard-empty-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
    font-weight: 800;
}

.dashboard-empty strong {
    color: var(--sgv-text);
}

.dashboard-empty span {
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

.dashboard-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-module {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-md);
    background: var(--sgv-white);
    transition: all var(--sgv-transition);
}

.dashboard-module:hover {
    border-color: var(--sgv-primary);
    box-shadow: var(--sgv-shadow-sm);
    transform: translateY(-2px);
}

.dashboard-module>span {
    font-size: 22px;
    margin-bottom: 4px;
}

.dashboard-module strong {
    color: var(--sgv-primary-dark);
    font-size: 14px;
}

.dashboard-module small {
    color: var(--sgv-text-secondary);
    font-size: 12px;
}

.dashboard-module-featured {
    border-color: var(--sgv-gold);
    background: #FFFCF1;
}

.dashboard-module-featured strong {
    color: var(--sgv-gold-dark);
}


/* =========================================================
   RESPONSIVE - DASHBOARD
========================================================= */

@media (max-width: 1000px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {


    .dashboard-document-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-empty {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   MÓDULO PERSONAL
========================================================= */

.personal-filter-card {
    margin-bottom: 20px;
}

.personal-filter-description {
    margin: 3px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

.personal-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px auto;
    align-items: end;
    gap: 16px;
}

.personal-filter-field {
    min-width: 0;
}

.personal-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.personal-table-card {
    overflow: hidden;
}

.personal-table-body {
    padding: 0;
}

.personal-table {
    margin: 0;
}

.personal-table th:last-child,
.personal-table td:last-child {
    white-space: nowrap;
}

.personal-name {
    display: block;
    color: var(--sgv-primary-dark);
}

.personal-secondary {
    display: block;
    margin-top: 2px;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}

.personal-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.personal-status-activo {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}

.personal-status-incapacitado {
    background: var(--sgv-warning-bg);
    color: var(--sgv-warning);
}

.personal-status-vacaciones {
    background: var(--sgv-info-bg);
    color: var(--sgv-info);
}

.personal-status-suspendido {
    background: #F3E8FF;
    color: #7E22CE;
}

.personal-status-retirado {
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
}

.personal-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.personal-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 5px 10px;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-sm);
    background: var(--sgv-white);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--sgv-transition);
}

.personal-action-view {
    color: var(--sgv-primary);
}

.personal-action-view:hover {
    border-color: var(--sgv-primary);
    background: #EEF3F8;
    color: var(--sgv-primary-dark);
}

.personal-action-edit {
    color: var(--sgv-text-secondary);
}

.personal-action-edit:hover {
    border-color: var(--sgv-gold);
    background: #FFFCF1;
    color: var(--sgv-gold-dark);
}

.personal-empty-cell {
    padding: 24px !important;
}

.personal-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 90px;
    color: var(--sgv-text);
}

.personal-empty-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EAF1F8;
    font-size: 18px;
}


/* =========================================================
   RESPONSIVE - PERSONAL
========================================================= */

@media (max-width: 1000px) {

    .personal-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .personal-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {

    .personal-filter-form {
        grid-template-columns: 1fr;
    }

    .personal-filter-actions {
        grid-column: auto;
        width: 100%;
    }

    .personal-filter-actions .sgv-btn {
        flex: 1;
    }

    .personal-table {
        min-width: 850px;
    }
}

@media (max-width: 520px) {

    .personal-empty {
        align-items: flex-start;
        flex-direction: column;
        text-align: center;
    }

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

    .personal-actions a {
        width: 100%;
    }
}

/* =========================================================
   FORMULARIO DE PERSONAL
========================================================= */

.employee-form {
    width: 100%;
}

.employee-form-card {
    margin-bottom: 20px;
    overflow: hidden;
}

.employee-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-section-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #EAF1F8;
    font-size: 19px;
}

.employee-section-icon-gold {
    background: var(--sgv-warning-bg);
}

.employee-section-description {
    margin: 3px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

.employee-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 2px;
}

.employee-form-grid-small {
    max-width: 850px;
}

.employee-span-2 {
    grid-column: 1 / -1;
}

.employee-form .sgv-form-group {
    margin-bottom: 14px;
}

.employee-form .sgv-label {
    font-size: 13px;
}

.employee-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
    padding: 18px 0 8px;
}

.employee-form-errors {
    margin: 8px 0 0 20px;
    padding: 0;
}


/* =========================================================
   RESPONSIVE - FORMULARIO DE PERSONAL
========================================================= */

@media (max-width: 750px) {

    .employee-form-grid {
        grid-template-columns: 1fr;
    }

    .employee-span-2 {
        grid-column: auto;
    }

    .employee-form-grid-small {
        max-width: none;
    }

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

    .employee-form-actions .sgv-btn {
        width: 100%;
    }
}

/* =========================================================
   FICHA DE DETALLE DEL EMPLEADO
   ========================================================= */

.employee-detail {
    width: 100%;
}

/* ENCABEZADO */

.employee-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.employee-detail-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.employee-avatar {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sgv-primary);
    color: var(--sgv-white);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .5px;
    border: 3px solid #E5EBF2;
}

.employee-detail-heading h1 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 25px;
    line-height: 1.2;
}

.employee-detail-heading p {
    margin: 5px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

.employee-heading-separator {
    margin: 0 5px;
    color: var(--sgv-muted);
}

.employee-detail-kicker {
    margin-bottom: 4px;
    color: var(--sgv-gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.employee-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


/* ESTADO */

.employee-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: var(--sgv-white);
    border: 1px solid var(--sgv-border);
    border-left: 4px solid var(--sgv-gold);
    border-radius: var(--sgv-radius);
    box-shadow: var(--sgv-shadow-sm);
}

.employee-status-label {
    display: block;
    margin-bottom: 6px;
    color: var(--sgv-text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.employee-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.employee-status-active {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}

.employee-status-warning {
    background: var(--sgv-warning-bg);
    color: var(--sgv-warning);
}

.employee-status-info {
    background: var(--sgv-info-bg);
    color: var(--sgv-info);
}

.employee-status-purple {
    background: #F3E8FF;
    color: #7E22CE;
}

.employee-status-danger {
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
}

.employee-status-neutral {
    background: #EEF1F4;
    color: var(--sgv-text-secondary);
}

.employee-status-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.employee-status-meta span {
    color: var(--sgv-text-secondary);
    font-size: 11px;
}

.employee-status-meta strong {
    color: var(--sgv-text);
    font-size: 13px;
}


/* TARJETAS PRINCIPALES */

.employee-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.employee-detail-card {
    min-width: 0;
}

.employee-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.employee-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #EAF1F8;
    font-size: 18px;
}

.employee-card-icon-gold {
    background: var(--sgv-warning-bg);
}

.employee-card-heading h2 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 16px;
}

.employee-card-heading p {
    margin: 3px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}


/* INFORMACIÓN */

.employee-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 16px;
}

.employee-info-item {
    min-width: 0;
}

.employee-info-item span {
    display: block;
    margin-bottom: 4px;
    color: var(--sgv-text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.employee-info-item strong {
    display: block;
    color: var(--sgv-text);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.employee-info-span-2 {
    grid-column: 1 / -1;
}


/* DOCUMENTOS */

.employee-documents-card {
    margin-top: 20px;
    overflow: hidden;
}

.employee-document-upload {
    padding: 18px;
    margin-bottom: 24px;
    background: #F8FAFC;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius);
}

.employee-document-upload-title {
    margin-bottom: 15px;
    color: var(--sgv-primary-dark);
    font-size: 14px;
    font-weight: 800;
}

.employee-document-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 2px;
}

.employee-form-help {
    display: block;
    margin-top: 5px;
    color: var(--sgv-text-secondary);
    font-size: 11px;
}

.employee-document-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.employee-document-list {
    border-top: 1px solid var(--sgv-border);
    padding-top: 20px;
}

.employee-document-list-title {
    margin-bottom: 14px;
    color: var(--sgv-primary-dark);
    font-size: 15px;
    font-weight: 800;
}

.employee-document-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.employee-document-table {
    width: 100%;
    min-width: 850px;
    margin: 0;
}

.employee-document-table th {
    white-space: nowrap;
}

.employee-document-table td {
    vertical-align: middle;
}

.employee-document-table td strong {
    color: var(--sgv-primary-dark);
}

.employee-document-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 5px 10px;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-sm);
    background: var(--sgv-white);
    color: var(--sgv-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--sgv-transition);
}

.employee-document-view:hover {
    border-color: var(--sgv-primary);
    background: #EEF3F8;
    color: var(--sgv-primary-dark);
}

.employee-document-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 90px;
    padding: 16px;
    border: 1px dashed var(--sgv-border);
    border-radius: var(--sgv-radius);
    background: #FAFBFC;
}

.employee-document-empty-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EAF1F8;
    font-size: 18px;
}

.employee-document-empty strong {
    display: block;
    color: var(--sgv-text);
    font-size: 13px;
}

.employee-document-empty p {
    margin: 3px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .employee-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-detail-actions {
        width: 100%;
    }

    .employee-detail-actions .sgv-btn {
        flex: 1;
    }

    .employee-detail-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .employee-detail-heading {
        align-items: flex-start;
    }

    .employee-detail-heading h1 {
        font-size: 21px;
    }

    .employee-avatar {
        width: 50px;
        height: 50px;
    }

    .employee-status-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-status-meta {
        align-items: flex-start;
    }

    .employee-info-grid {
        grid-template-columns: 1fr;
    }

    .employee-info-span-2 {
        grid-column: auto;
    }

    .employee-document-form-grid {
        grid-template-columns: 1fr;
    }

    .employee-document-form-actions {
        justify-content: stretch;
    }

    .employee-document-form-actions .sgv-btn {
        width: 100%;
    }
}


@media (max-width: 520px) {

    .employee-detail-actions {
        flex-direction: column;
    }

    .employee-detail-actions .sgv-btn {
        width: 100%;
    }

    .employee-document-empty {
        align-items: flex-start;
        flex-direction: column;
        text-align: center;
    }
}

/* AJUSTE VISUAL DE TARJETAS DE FICHA DE EMPLEADO */

.employee-detail-grid {
    align-items: start;
}

.employee-detail-card {
    padding: 18px;
}

.employee-card-heading {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sgv-border);
}

.employee-info-grid {
    column-gap: 28px;
    row-gap: 14px;
}

.employee-info-item span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .25px;
}

.employee-info-item strong {
    font-size: 12.5px;
    font-weight: 700;
}

.employee-detail-card {
    min-height: 0;
}

.employee-detail-card .employee-card-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
}

/* =========================================================
   DOCUMENTOS DEL EMPLEADO - AJUSTE VISUAL
   ========================================================= */

.employee-documents-card {
    margin-top: 20px;
    overflow: hidden;
}

.employee-document-upload {
    margin-top: 4px;
    padding: 20px;
    background: #F8FAFC;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius);
}

.employee-document-upload-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--sgv-primary-dark);
    font-size: 14px;
    font-weight: 800;
}

.employee-document-upload-title::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--sgv-gold);
    color: var(--sgv-primary-dark);
    font-size: 15px;
    font-weight: 900;
}

.employee-document-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 2px;
}

.employee-document-form-grid .sgv-form-group {
    margin-bottom: 14px;
}

.employee-document-form-grid textarea {
    min-height: 80px;
    resize: vertical;
}

.employee-form-help {
    display: block;
    margin-top: 5px;
    color: var(--sgv-text-secondary);
    font-size: 11px;
}

.employee-document-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.employee-document-list {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sgv-border);
}

.employee-document-list-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: var(--sgv-primary-dark);
    font-size: 15px;
    font-weight: 800;
}

.employee-document-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius);
}

.employee-document-table {
    width: 100%;
    min-width: 850px;
    margin: 0;
}

.employee-document-table th {
    background: #F4F6F8;
    color: var(--sgv-primary-dark);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.employee-document-table td {
    vertical-align: middle;
    font-size: 12px;
}

.employee-document-table tbody tr:hover {
    background: #FAFBFC;
}

.employee-document-table td:first-child strong {
    color: var(--sgv-primary-dark);
    font-weight: 700;
}

.employee-document-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 5px 11px;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-sm);
    background: var(--sgv-white);
    color: var(--sgv-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--sgv-transition);
}

.employee-document-view:hover {
    border-color: var(--sgv-primary);
    background: #EEF3F8;
    color: var(--sgv-primary-dark);
}

.employee-document-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 90px;
    padding: 18px;
    border: 1px dashed var(--sgv-border);
    border-radius: var(--sgv-radius);
    background: #FAFBFC;
}

.employee-document-empty-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    font-size: 18px;
}

.employee-document-empty strong {
    display: block;
    color: var(--sgv-text);
    font-size: 13px;
}

.employee-document-empty p {
    margin: 3px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .employee-document-form-grid {
        grid-template-columns: 1fr;
    }

    .employee-document-form-actions {
        justify-content: stretch;
    }

    .employee-document-form-actions .sgv-btn {
        width: 100%;
    }

    .employee-document-upload {
        padding: 15px;
    }
}

.employee-document-form-actions .sgv-btn {
    width: auto;
    min-width: 190px;
}

/* =========================================================
   FORMULARIO DE PROGRAMACIÓN
   ========================================================= */

.programacion-page-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.programacion-page-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;
    background: #EAF1F8;

    font-size: 22px;
}

.programacion-form-card {
    margin-bottom: 20px;
    overflow: hidden;
}

.programacion-form-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 24px;
    padding-bottom: 16px;

    border-bottom: 1px solid var(--sgv-border);
}

.programacion-section-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    background: var(--sgv-warning-bg);

    font-size: 18px;
}

.programacion-form-heading h2 {
    margin: 0;

    color: var(--sgv-primary-dark);

    font-size: 17px;
    line-height: 1.3;
}

.programacion-form-heading p {
    margin: 4px 0 0;

    color: var(--sgv-text-secondary);

    font-size: 12px;
}

.programacion-form {
    width: 100%;
}

.programacion-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 22px;
    row-gap: 2px;
}

.programacion-form .sgv-form-group {
    margin-bottom: 16px;
}

.programacion-form .sgv-label {
    display: block;

    margin-bottom: 6px;

    color: var(--sgv-primary-dark);

    font-size: 12px;
    font-weight: 700;
}

.programacion-form .sgv-input {
    width: 100%;
    min-height: 42px;

    box-sizing: border-box;

    padding: 9px 12px;

    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-sm);

    background: var(--sgv-white);
    color: var(--sgv-text);

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color var(--sgv-transition),
        box-shadow var(--sgv-transition),
        background var(--sgv-transition);
}

.programacion-form .sgv-input:focus {
    outline: none;

    border-color: var(--sgv-primary);

    box-shadow:
        0 0 0 3px rgba(11, 49, 95, 0.08);
}

.programacion-form select.sgv-input {
    cursor: pointer;
}

.programacion-form textarea.sgv-input {
    min-height: 100px;

    resize: vertical;
}

.programacion-field-full {
    grid-column: 1 / -1;
}

.programacion-field-help {
    display: block;

    margin-top: 5px;

    color: var(--sgv-text-secondary);

    font-size: 11px;
}

.programacion-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 8px;
    padding-top: 18px;

    border-top: 1px solid var(--sgv-border);
}

.programacion-form-actions .sgv-btn {
    width: 180px;
    min-width: 180px;
    height: 42px;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   ERRORES DE VALIDACIÓN
   --------------------------------------------------------- */

.programacion-form-card+.alert {
    margin-bottom: 20px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 750px) {

    .programacion-form-grid {
        grid-template-columns: 1fr;
    }

    .programacion-field-full {
        grid-column: auto;
    }

    .programacion-page-heading {
        align-items: flex-start;
    }

    .programacion-page-icon {
        width: 42px;
        height: 42px;

        font-size: 19px;
    }

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

    .programacion-form-actions .sgv-btn {
        width: 100%;
        min-width: 0;
    }
}
/* =========================================================
   PERIODO DE PROGRAMACIÓN
   ========================================================= */

.programacion-period-card {
    margin-bottom: 20px;
    overflow: hidden;
}

.programacion-period-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;
}

.programacion-period-heading h2 {
    margin: 0;

    color: var(--sgv-primary-dark);

    font-size: 17px;
    line-height: 1.3;
}

.programacion-period-heading p {
    margin: 4px 0 0;

    color: var(--sgv-text-secondary);

    font-size: 12px;
}

.programacion-period-form {
    width: 100%;
}

.programacion-period-fields {
    display: grid;

    grid-template-columns:
        minmax(220px, 320px)
        minmax(160px, 220px);

    gap: 20px;

    align-items: end;
}

.programacion-period-form .sgv-form-group {
    margin-bottom: 0;
}

.programacion-period-form .sgv-label {
    display: block;

    margin-bottom: 6px;

    color: var(--sgv-primary-dark);

    font-size: 12px;
    font-weight: 700;
}

.programacion-period-form .sgv-input {
    width: 100%;
    min-height: 42px;

    box-sizing: border-box;

    padding: 9px 12px;

    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-sm);

    background: var(--sgv-white);
    color: var(--sgv-text);

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color var(--sgv-transition),
        box-shadow var(--sgv-transition);
}

.programacion-period-form .sgv-input:focus {
    outline: none;

    border-color: var(--sgv-primary);

    box-shadow:
        0 0 0 3px rgba(11, 49, 95, 0.08);
}

.programacion-period-actions {
    display: flex;

    justify-content: flex-start;

    margin-top: 18px;
}

.programacion-period-actions .sgv-btn {
    width: 220px;
    min-width: 220px;
    height: 42px;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .programacion-period-fields {
        grid-template-columns: 1fr;
    }

    .programacion-period-actions .sgv-btn {
        width: 100%;
        min-width: 0;
    }

}
/* =========================================================
   ESTADOS DE PROGRAMACIÓN
   ========================================================= */

.programacion-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 25px;
    padding: 4px 10px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
    letter-spacing: .2px;
}

.programacion-status-programado {
    background: var(--sgv-info-bg);
    color: var(--sgv-info);
}

.programacion-status-cumplido {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}

.programacion-status-ausente {
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
}

.programacion-status-reemplazado {
    background: var(--sgv-warning-bg);
    color: var(--sgv-warning);
}

.programacion-status-cancelado {
    background: #F3E8FF;
    color: #7E22CE;
}

.programacion-status-neutral {
    background: #EEF1F4;
    color: var(--sgv-text-secondary);
}
/* BOTÓN VER PROGRAMACIÓN */

.programacion-action-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 58px;
    min-height: 31px;

    padding: 5px 11px;

    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-sm);

    background: var(--sgv-white);
    color: var(--sgv-primary);

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition:
        border-color var(--sgv-transition),
        background var(--sgv-transition),
        color var(--sgv-transition);
}

.programacion-action-view:hover {
    border-color: var(--sgv-primary);
    background: #EEF3F8;
    color: var(--sgv-primary-dark);
}
/* =========================================================
   PROGRAMACIÓN MENSUAL
   ========================================================= */

.programacion-mensual-page {
    width: 100%;
    max-width: 100%;
}


/* ---------------------------------------------------------
   ENCABEZADO
   --------------------------------------------------------- */

.programacion-mensual-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.programacion-mensual-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* ---------------------------------------------------------
   FILTROS
   --------------------------------------------------------- */

.programacion-mensual-filter-card {
    margin-bottom: 20px;
}

.programacion-mensual-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--sgv-border);
}

.programacion-mensual-section-heading h2 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 17px;
    line-height: 1.3;
}

.programacion-mensual-section-heading p {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}

.programacion-mensual-filter-form {
    display: grid;
    grid-template-columns:
        minmax(150px, 1fr)
        minmax(120px, 0.8fr)
        minmax(220px, 1.5fr)
        minmax(220px, 1.5fr)
        auto;
    gap: 16px;
    align-items: end;
}

.programacion-mensual-filter-form .sgv-form-group {
    margin-bottom: 0;
}

.programacion-mensual-filter-action {
    display: flex;
    align-items: flex-end;
}

.programacion-mensual-filter-action .sgv-btn {
    min-width: 130px;
    height: 42px;
}


/* ---------------------------------------------------------
   PERIODO
   --------------------------------------------------------- */

.programacion-mensual-period-card {
    margin-bottom: 20px;
    overflow: hidden;
}

.programacion-mensual-period {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: var(--sgv-bg);
}

.programacion-mensual-period-label {
    display: block;
    margin-bottom: 4px;
    color: var(--sgv-text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.programacion-mensual-period h2 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 22px;
    line-height: 1.3;
}

.programacion-mensual-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.programacion-month-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 36px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-sm);
    background: var(--sgv-white);
    color: var(--sgv-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition:
        border-color var(--sgv-transition),
        background var(--sgv-transition),
        color var(--sgv-transition);
}

.programacion-month-nav:hover {
    border-color: var(--sgv-primary);
    background: #EEF3F8;
    color: var(--sgv-primary-dark);
}

.programacion-month-nav-current {
    background: var(--sgv-primary);
    border-color: var(--sgv-primary);
    color: var(--sgv-white);
}

.programacion-month-nav-current:hover {
    background: var(--sgv-primary-dark);
    border-color: var(--sgv-primary-dark);
    color: var(--sgv-white);
}


/* ---------------------------------------------------------
   RESUMEN
   --------------------------------------------------------- */

.programacion-mensual-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.programacion-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius);
    background: var(--sgv-white);
    box-shadow: var(--sgv-shadow-sm);
}

.programacion-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    background: #EEF3F8;
    font-size: 18px;
}

.programacion-summary-card span {
    display: block;
    margin-bottom: 4px;
    color: var(--sgv-text-secondary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.programacion-summary-card strong {
    display: block;
    color: var(--sgv-primary-dark);
    font-size: 22px;
    line-height: 1.1;
}


/* ---------------------------------------------------------
   CALENDARIO
   --------------------------------------------------------- */

.programacion-mensual-calendar-card {
    overflow: hidden;
}

.programacion-mensual-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.programacion-mensual-table {
    width: 100%;
    min-width: 1250px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--sgv-white);
}

.programacion-mensual-table th,
.programacion-mensual-table td {
    padding: 8px;
    border-right: 1px solid var(--sgv-border);
    border-bottom: 1px solid var(--sgv-border);
    vertical-align: top;
}


/* ---------------------------------------------------------
   ENCABEZADO DE DÍAS
   --------------------------------------------------------- */

.programacion-mensual-table thead th {
    height: 58px;
    box-sizing: border-box;
    background: #EEF2F6;
    color: var(--sgv-primary-dark);
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 5;
}

.programacion-day-header {
    min-width: 72px;
}

.programacion-day-number {
    display: block;
    color: var(--sgv-primary-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.programacion-day-name {
    display: block;
    margin-top: 3px;
    color: var(--sgv-text-secondary);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.programacion-day-weekend {
    background: #F8F5F1 !important;
}

.programacion-day-today {
    box-shadow: inset 0 3px 0 var(--sgv-gold);
}


/* ---------------------------------------------------------
   COLUMNAS FIJAS
   --------------------------------------------------------- */

.programacion-sticky-employee,
.programacion-sticky-post {
    position: sticky;
    background: var(--sgv-white);
}

.programacion-sticky-employee {
    left: 0;
    width: 220px;
    min-width: 220px;
    z-index: 6;
}

.programacion-sticky-post {
    left: 220px;
    width: 165px;
    min-width: 165px;
    z-index: 6;
}

.programacion-mensual-table thead .programacion-sticky-employee,
.programacion-mensual-table thead .programacion-sticky-post {
    background: #E7EDF4;
    z-index: 8;
}


/* ---------------------------------------------------------
   EMPLEADO
   --------------------------------------------------------- */

.programacion-person-name {
    color: var(--sgv-primary-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.programacion-person-role {
    margin-top: 4px;
    color: var(--sgv-text-secondary);
    font-size: 10px;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   PUESTO
   --------------------------------------------------------- */

.programacion-post-name {
    color: var(--sgv-primary);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.programacion-post-city {
    margin-top: 4px;
    color: var(--sgv-text-secondary);
    font-size: 10px;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   CELDAS
   --------------------------------------------------------- */

.programacion-calendar-cell {
    min-width: 72px;
    height: 72px;
    background: var(--sgv-white);
}

.programacion-cell-weekend {
    background: #FCFAF8 !important;
}

.programacion-cell-today {
    background: #FFFDF4 !important;
    box-shadow: inset 0 2px 0 var(--sgv-gold);
}

.programacion-no-shift {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sgv-muted);
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}


/* ---------------------------------------------------------
   TURNO
   --------------------------------------------------------- */

.programacion-shift {
    display: block;
    width: 100%;
    min-height: 61px;
    padding: 7px 6px;
    box-sizing: border-box;
    margin: 0 0 5px;
    border: 1px solid var(--sgv-border);
    border-radius: 7px;
    background: var(--sgv-white);
    text-align: left;
    cursor: pointer;
    transition:
        transform var(--sgv-transition),
        box-shadow var(--sgv-transition),
        border-color var(--sgv-transition);
}

.programacion-shift:last-child {
    margin-bottom: 0;
}

.programacion-shift:hover {
    transform: translateY(-1px);
    box-shadow: var(--sgv-shadow-sm);
    border-color: var(--sgv-primary-light);
}

.programacion-shift-name {
    display: block;
    color: var(--sgv-primary-dark);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.programacion-shift-time {
    display: block;
    margin-top: 4px;
    color: var(--sgv-text-secondary);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
}

.programacion-shift-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    margin-top: 5px;
    padding: 2px 6px;
    box-sizing: border-box;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .2px;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   ESTADOS
   --------------------------------------------------------- */

.prog-estado-programado {
    background: var(--sgv-info-bg);
    border-color: #D6E4FF;
}

.prog-estado-programado .programacion-shift-status {
    background: var(--sgv-info-bg);
    color: var(--sgv-info);
}


.prog-estado-cumplido {
    background: var(--sgv-success-bg);
    border-color: #C9EBDD;
}

.prog-estado-cumplido .programacion-shift-status {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}


.prog-estado-ausente {
    background: var(--sgv-danger-bg);
    border-color: #F3C9C5;
}

.prog-estado-ausente .programacion-shift-status {
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
}


.prog-estado-reemplazado {
    background: var(--sgv-warning-bg);
    border-color: #F0D99A;
}

.prog-estado-reemplazado .programacion-shift-status {
    background: var(--sgv-warning-bg);
    color: var(--sgv-warning);
}


.prog-estado-cancelado {
    background: #F3E8FF;
    border-color: #E4C9FF;
}

.prog-estado-cancelado .programacion-shift-status {
    background: #F3E8FF;
    color: #7E22CE;
}


.prog-estado-default {
    background: #F3F4F6;
    border-color: var(--sgv-border);
}

.prog-estado-default .programacion-shift-status {
    background: #EEF1F4;
    color: var(--sgv-text-secondary);
}


/* ---------------------------------------------------------
   LEYENDA
   --------------------------------------------------------- */

.programacion-mensual-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-top: 1px solid var(--sgv-border);
    background: var(--sgv-bg);
}

.programacion-legend {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    box-sizing: border-box;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2px;
}

.programacion-legend-programado {
    background: var(--sgv-info-bg);
    color: var(--sgv-info);
}

.programacion-legend-cumplido {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}

.programacion-legend-ausente {
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
}

.programacion-legend-reemplazado {
    background: var(--sgv-warning-bg);
    color: var(--sgv-warning);
}

.programacion-legend-cancelado {
    background: #F3E8FF;
    color: #7E22CE;
}

.programacion-legend-sin {
    background: #EEF1F4;
    color: var(--sgv-text-secondary);
}


/* ---------------------------------------------------------
   ESTADO VACÍO
   --------------------------------------------------------- */

.programacion-mensual-empty {
    padding: 55px 25px;
    text-align: center;
}

.programacion-mensual-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: #EEF3F8;
    font-size: 24px;
}

.programacion-mensual-empty strong {
    display: block;
    margin-bottom: 6px;
    color: var(--sgv-primary-dark);
    font-size: 17px;
}

.programacion-mensual-empty p {
    margin: 0;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .programacion-mensual-filter-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .programacion-mensual-filter-action {
        align-items: stretch;
    }

    .programacion-mensual-filter-action .sgv-btn {
        width: 100%;
    }

    .programacion-mensual-summary {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 800px) {

    .programacion-mensual-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .programacion-mensual-actions {
        width: 100%;
    }

    .programacion-mensual-actions .sgv-btn {
        flex: 1;
    }

    .programacion-mensual-period {
        flex-direction: column;
        align-items: flex-start;
    }

    .programacion-mensual-navigation {
        width: 100%;
    }

    .programacion-month-nav {
        flex: 1;
    }

    .programacion-mensual-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .programacion-mensual-filter-form {
        grid-template-columns: 1fr;
    }

    .programacion-mensual-summary {
        grid-template-columns: 1fr;
    }

    .programacion-mensual-actions {
        flex-direction: column;
    }

    .programacion-mensual-actions .sgv-btn {
        width: 100%;
        flex: none;
    }

    .programacion-mensual-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .programacion-month-nav {
        width: 100%;
    }

}
/* =========================================================
   AJUSTE TIPOGRÁFICO - PROGRAMACIÓN MENSUAL
   Apariencia más profesional y ligera
   ========================================================= */

/* Encabezados de las columnas */
.programacion-mensual-table thead th {
    font-weight: 600;
}

.programacion-day-number {
    font-weight: 700;
}

.programacion-day-name {
    font-weight: 500;
    letter-spacing: .3px;
}


/* Información del empleado */
.programacion-person-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--sgv-primary-dark);
    line-height: 1.35;
}

.programacion-person-role {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 400;
    color: var(--sgv-text-secondary);
    line-height: 1.35;
}


/* Información del puesto */
.programacion-post-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--sgv-primary);
    line-height: 1.35;
}

.programacion-post-city {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 400;
    color: var(--sgv-text-secondary);
    line-height: 1.35;
}


/* Celdas sin programación */
.programacion-no-shift {
    font-size: 9px;
    font-weight: 500;
    color: var(--sgv-muted);
    letter-spacing: .1px;
}


/* Información del turno */
.programacion-shift-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--sgv-primary-dark);
    line-height: 1.3;
}

.programacion-shift-time {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 400;
    color: var(--sgv-text-secondary);
    line-height: 1.3;
}


/* Estado del turno */
.programacion-shift-status {
    font-size: 7px;
    font-weight: 700;
}


/* Leyenda */
.programacion-legend {
    font-size: 9px;
    font-weight: 600;
}


/* Encabezados fijos */
.programacion-sticky-employee,
.programacion-sticky-post {
    font-weight: 400;
}


/* Mejor separación visual entre empleado y puesto */
.programacion-sticky-employee {
    padding-left: 10px;
    padding-right: 14px;
}

.programacion-sticky-post {
    padding-left: 14px;
    padding-right: 12px;
}


/* Mejor lectura de las filas */
.programacion-mensual-table tbody tr {
    transition: background-color .15s ease;
}

.programacion-mensual-table tbody tr:hover td {
    background: #F8FAFC;
}

.programacion-mensual-table tbody tr:hover
.programacion-sticky-employee,
.programacion-mensual-table tbody tr:hover
.programacion-sticky-post {
    background: #F8FAFC;
}
/* =========================================================
   PROGRAMACIÓN MENSUAL - LECTURA DE TURNOS
   ========================================================= */

.programacion-shift {
    padding: 8px 7px;
    border-radius: 6px;
}

.programacion-shift-name {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
}

.programacion-shift-time {
    margin-top: 5px;
    font-size: 9px;
    font-weight: 400;
    color: var(--sgv-text-secondary);
    line-height: 1.2;
}

.programacion-shift-status {
    margin-top: 6px;
    min-height: 17px;
    padding: 2px 6px;
    font-size: 7px;
    font-weight: 700;
}
/* =========================================================
   PROGRAMACIÓN MENSUAL - VISTA COMPACTA
   ========================================================= */

.programacion-mensual-table th,
.programacion-mensual-table td {
    padding: 6px 7px;
}

/* Encabezado de días */
.programacion-mensual-table thead th {
    height: 48px;
    padding: 5px 6px;
}

.programacion-day-number {
    font-size: 14px;
    line-height: 1.1;
}

.programacion-day-name {
    margin-top: 2px;
    font-size: 8px;
    line-height: 1.1;
}

/* Columnas de empleado y puesto */
.programacion-person-name {
    font-size: 11px;
    line-height: 1.2;
}

.programacion-person-role {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.2;
}

.programacion-post-name {
    font-size: 10px;
    line-height: 1.2;
}

.programacion-post-city {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.2;
}

/* Celdas de cada día */
.programacion-calendar-cell {
    min-width: 68px;
    height: 58px;
    padding: 5px 6px !important;
}

/* Sin turno */
.programacion-no-shift {
    min-height: 42px;
    font-size: 8px;
}

/* Turno */
.programacion-shift {
    min-height: 48px;
    padding: 5px;
    border-radius: 5px;
}

.programacion-shift-name {
    font-size: 9px;
    line-height: 1.15;
}

.programacion-shift-time {
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.1;
}

.programacion-shift-status {
    min-height: 15px;
    margin-top: 4px;
    padding: 1px 5px;
    font-size: 6.5px;
}

/* Columnas fijas un poco más compactas */
.programacion-sticky-employee {
    width: 205px;
    min-width: 205px;
}

.programacion-sticky-post {
    left: 205px;
    width: 150px;
    min-width: 150px;
}
/* =========================================================
   PROGRAMACIÓN MENSUAL - REDUCCIÓN DE ALTURA DE FILAS
   ========================================================= */

.programacion-mensual-table tbody tr {
    height: 70px;
}

.programacion-mensual-table tbody td {
    height: 70px;
    padding-top: 5px;
    padding-bottom: 5px;
    vertical-align: middle;
}

.programacion-calendar-cell {
    height: 48px;
    min-height: 48px;
    padding: 4px 5px !important;
}

.programacion-no-shift {
    min-height: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.programacion-person-name,
.programacion-person-role,
.programacion-post-name,
.programacion-post-city {
    line-height: 1.15;
}

.programacion-person-role,
.programacion-post-city {
    margin-top: 2px;
}
/* =========================================================
/* SIN TURNO */
.programacion-no-shift {
    font-size: 8px;
    font-weight: 500;
}

/* Información del empleado */
.programacion-person-name {
    font-size: 11px;
    font-weight: 600;
}

.programacion-person-role {
    font-size: 9px;
    font-weight: 400;
}

/* Información del puesto */
.programacion-post-name {
    font-size: 10px;
    font-weight: 600;
}

.programacion-post-city {
    font-size: 9px;
    font-weight: 400;
}
/* =========================================================
/* =========================================================
/* SIN TURNO */
.programacion-no-shift {
    font-size: 9px;
    font-weight: 500;
}

/* EMPLEADO */
.programacion-person-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.programacion-person-role {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 400;
}

/* PUESTO */
.programacion-post-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

.programacion-post-city {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 400;
}
/* =========================================================
/* Nombre del turno */
.programacion-shift-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

/* Horario */
.programacion-shift-time {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--sgv-text-secondary);
    white-space: nowrap;
}

/* Estado */
.programacion-shift-status {
    min-height: 20px;
    margin-top: 5px;
    padding: 3px 8px;
    font-size: 8px;
    font-weight: 700;
}

/* SIN TURNO */
.programacion-no-shift {
    font-size: 10px;
    font-weight: 500;
}

/* Empleado */
.programacion-person-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.programacion-person-role {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 400;
}

/* Puesto */
.programacion-post-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.programacion-post-city {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 400;
}
/* =========================================================
/* Nombre del turno */
.programacion-shift-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

/* Horario */
.programacion-shift-time {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--sgv-text-secondary);
    white-space: nowrap;
}

/* Estado */
.programacion-shift-status {
    min-height: 21px;
    margin-top: 6px;
    padding: 3px 9px;
    font-size: 9px;
    font-weight: 700;
}

/* SIN TURNO */
.programacion-no-shift {
    font-size: 11px;
    font-weight: 500;
}

/* Empleado */
.programacion-person-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.programacion-person-role {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 400;
}

/* Puesto */
.programacion-post-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.programacion-post-city {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 400;
}
/* =========================================================
   PROGRAMACIÓN DEL PUESTO
   Tarjeta de identificación compacta
   ========================================================= */

.programacion-mensual-page .programacion-period-card {
    padding: 18px 24px;
    margin-bottom: 16px;
}

.programacion-mensual-page .programacion-period-card .programacion-period-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.programacion-mensual-page .programacion-period-card .programacion-section-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
}

.programacion-mensual-page .programacion-period-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--sgv-primary);
}

.programacion-mensual-page .programacion-period-card p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.3;
    color: var(--sgv-text-secondary);
}

.programacion-mensual-page .programacion-period-card p + p {
    margin-top: 3px;
}

.programacion-mensual-page .programacion-period-card p strong {
    display: inline;
    font-size: 14px !important;
    line-height: 1.3;
    font-weight: 600;
    color: var(--sgv-primary);
}
/* =========================================================
   PROGRAMACIÓN DEL PUESTO
   Periodo compacto
   ========================================================= */

.programacion-mensual-page .programacion-mensual-period-card {
    padding: 14px 24px;
    margin-bottom: 16px;
}

.programacion-mensual-page .programacion-mensual-period {
    min-height: 68px;
    padding: 12px 18px;
    box-sizing: border-box;
}

.programacion-mensual-page .programacion-mensual-period-label {
    font-size: 11px;
    line-height: 1.2;
}

.programacion-mensual-page .programacion-mensual-period h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.15;
}

.programacion-mensual-page .programacion-month-nav {
    min-height: 38px;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    font-size: 13px;
}
/* =========================================================
   PROGRAMACIÓN DEL PUESTO
   Identificación del puesto — versión compacta
   ========================================================= */

.programacion-mensual-page .programacion-period-card {
    padding: 12px 20px;
    margin-bottom: 14px;
}

.programacion-mensual-page .programacion-period-card .programacion-period-heading {
    min-height: 52px;
    gap: 12px;
}

.programacion-mensual-page .programacion-period-card .programacion-section-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 9px;
    font-size: 18px;
}

.programacion-mensual-page .programacion-period-card h2 {
    font-size: 19px;
    line-height: 1.15;
}

.programacion-mensual-page .programacion-period-card p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
}

.programacion-mensual-page .programacion-period-card p + p {
    margin-top: 1px;
}

.programacion-mensual-page .programacion-period-card p strong {
    font-size: 13px !important;
}
/* =========================================================
   PROGRAMACIÓN DEL PUESTO
   Celdas de turnos — diseño compacto
   ========================================================= */

.programacion-mensual-page .programacion-shift {
    width: 100%;
    min-height: 82px;
    padding: 8px 7px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid var(--sgv-border);
    border-radius: 7px;
    background: var(--sgv-white);
    text-align: left;
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
}

.programacion-mensual-page .programacion-shift:hover {
    box-shadow: 0 3px 8px rgba(11, 49, 95, .10);
    transform: translateY(-1px);
}

.programacion-mensual-page .programacion-shift-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--sgv-primary);
}

.programacion-mensual-page .programacion-shift-time {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--sgv-text-secondary);
    white-space: nowrap;
}

.programacion-mensual-page .programacion-shift-status {
    min-height: 19px;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.programacion-mensual-page .programacion-no-shift {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--sgv-muted);
    white-space: nowrap;
}
/* =========================================================
   PROGRAMACIÓN DEL PUESTO
   Resaltar turnos programados
   ========================================================= */

.programacion-mensual-page .programacion-shift {
    background: #DCE9F8;
    border: 1px solid #8FB1D9;
    box-shadow: 0 2px 5px rgba(11, 49, 95, .12);
}

.programacion-mensual-page .programacion-shift:hover {
    background: #C9DCF1;
    border-color: var(--sgv-primary-light);
    box-shadow: 0 4px 10px rgba(11, 49, 95, .18);
}

.programacion-mensual-page .programacion-shift-name {
    color: var(--sgv-primary-dark);
}

.programacion-mensual-page .programacion-shift-time {
    color: #405A78;
}
/* =========================================================
   TARJETA PROGRAMACIÓN — EFECTO INTERACTIVO
   ========================================================= */

.puesto-seccion-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.puesto-seccion-link:hover {
    transform: translateY(-3px);
    background: #F8FAFC;
    border-color: var(--sgv-primary-light);
    box-shadow: 0 8px 18px rgba(11, 49, 95, .12);
}

.puesto-seccion-link:hover strong {
    color: var(--sgv-primary);
}

.puesto-seccion-link:active {
    transform: translateY(-1px);
}
/* =========================================================
   NOVEDADES — ESTADOS
   ========================================================= */

.novedad-estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.novedad-estado-abierta {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
    border: 1px solid #F2B8B5;
}

.novedad-estado-gestion {
    color: var(--sgv-warning);
    background: var(--sgv-warning-bg);
    border: 1px solid #E8CC72;
}

.novedad-estado-cerrada {
    color: var(--sgv-success);
    background: var(--sgv-success-bg);
    border: 1px solid #A8DCC7;
}

.novedad-estado-default {
    color: var(--sgv-text-secondary);
    background: var(--sgv-bg);
    border: 1px solid var(--sgv-border);
}
/* =========================================================
   NOVEDADES — PRIORIDADES
   ========================================================= */

.novedad-prioridad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.novedad-prioridad-baja {
    color: var(--sgv-info);
    background: var(--sgv-info-bg);
    border: 1px solid #B8CDF2;
}

.novedad-prioridad-media {
    color: var(--sgv-warning);
    background: var(--sgv-warning-bg);
    border: 1px solid #E8CC72;
}

.novedad-prioridad-alta {
    color: #B54708;
    background: #FFF1E8;
    border: 1px solid #F3C4A0;
}

.novedad-prioridad-critica {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
    border: 1px solid #F2B8B5;
}

.novedad-prioridad-default {
    color: var(--sgv-text-secondary);
    background: var(--sgv-bg);
    border: 1px solid var(--sgv-border);
}
/* =========================================================
   NOVEDADES — BOTÓN VER
   ========================================================= */

.novedad-btn-ver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 7px 12px;
    border: 1px solid var(--sgv-primary-light);
    border-radius: 7px;
    background: var(--sgv-white);
    color: var(--sgv-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.novedad-btn-ver:hover {
    background: var(--sgv-primary);
    color: var(--sgv-white);
    border-color: var(--sgv-primary);
    box-shadow: 0 4px 10px rgba(11, 49, 95, .16);
    transform: translateY(-1px);
}

.novedad-btn-ver:active {
    transform: translateY(0);
}
/* =========================================================
   NOVEDADES — ALINEACIÓN DE LA TABLA
   ========================================================= */

.programacion-mensual-table th,
.programacion-mensual-table td {
    text-align: center;
    vertical-align: middle;
}
/* =========================================================
   SGV — NOVEDADES DEL PUESTO
   Vista compacta y profesional
   ========================================================= */

.novedades-page {
    width: 100%;
}

/* ---------------------------------------------------------
   ENCABEZADO
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-heading {
    margin-bottom: 24px;
}

.novedades-page .programacion-page-heading {
    gap: 14px;
}

.novedades-page .programacion-page-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

.novedades-page .programacion-page-heading h1 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.15;
}

.novedades-page .programacion-page-heading p {
    margin: 0;
    font-size: 14px;
}

/* ---------------------------------------------------------
   IDENTIFICACIÓN DEL PUESTO
   --------------------------------------------------------- */

.novedades-page .programacion-period-card {
    padding: 18px 22px;
    margin-bottom: 18px;
}

.novedades-page .programacion-period-heading {
    gap: 14px;
}

.novedades-page .programacion-period-heading h2 {
    margin: 0 0 4px;
    font-size: 21px;
    line-height: 1.2;
}

.novedades-page .programacion-period-heading p {
    margin: 2px 0;
    font-size: 13px;
}

/* ---------------------------------------------------------
   ENCABEZADO DEL MÓDULO
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-filter-card {
    padding: 16px 20px;
    margin-bottom: 14px;
}

.novedades-page .programacion-mensual-section-heading {
    gap: 12px;
}

.novedades-page .programacion-mensual-section-heading h2 {
    margin: 0 0 4px;
    font-size: 19px;
}

.novedades-page .programacion-mensual-section-heading p {
    margin: 0;
    font-size: 13px;
}

/* ---------------------------------------------------------
   BOTÓN REGISTRAR
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-filter-action {
    margin-top: 12px;
}

.novedades-page .sgv-btn-primary {
    padding: 9px 15px;
    font-size: 13px;
}

/* ---------------------------------------------------------
   CONTENEDOR DE TABLA
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-calendar-card {
    padding: 16px;
    margin-bottom: 20px;
}

.novedades-page .programacion-mensual-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* ---------------------------------------------------------
   TABLA
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
}

/* Encabezados */

.novedades-page .programacion-mensual-table th {
    padding: 10px 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* Celdas */

.novedades-page .programacion-mensual-table td {
    padding: 10px 7px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ---------------------------------------------------------
   ANCHO DE COLUMNAS
   Total = 100%
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table th:nth-child(1),
.novedades-page .programacion-mensual-table td:nth-child(1) {
    width: 13%;
}

.novedades-page .programacion-mensual-table th:nth-child(2),
.novedades-page .programacion-mensual-table td:nth-child(2) {
    width: 10%;
}

.novedades-page .programacion-mensual-table th:nth-child(3),
.novedades-page .programacion-mensual-table td:nth-child(3) {
    width: 10%;
}

.novedades-page .programacion-mensual-table th:nth-child(4),
.novedades-page .programacion-mensual-table td:nth-child(4) {
    width: 23%;
}

.novedades-page .programacion-mensual-table th:nth-child(5),
.novedades-page .programacion-mensual-table td:nth-child(5) {
    width: 24%;
}

.novedades-page .programacion-mensual-table th:nth-child(6),
.novedades-page .programacion-mensual-table td:nth-child(6) {
    width: 11%;
}

.novedades-page .programacion-mensual-table th:nth-child(7),
.novedades-page .programacion-mensual-table td:nth-child(7) {
    width: 9%;
}

/* ---------------------------------------------------------
   FECHA
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table td:nth-child(1) {
    white-space: nowrap;
    font-size: 12.5px;
}

/* ---------------------------------------------------------
   DESCRIPCIÓN
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table td:nth-child(4) {
    font-weight: 500;
}

/* ---------------------------------------------------------
   REPORTADO POR
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table td:nth-child(5) {
    font-size: 12.5px;
}

/* ---------------------------------------------------------
   ACCIÓN
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table th:last-child,
.novedades-page .programacion-mensual-table td:last-child {
    text-align: center;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   BOTÓN VER
   --------------------------------------------------------- */

.novedades-page .novedad-btn-ver {
    min-width: 54px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* ---------------------------------------------------------
   ESTADOS
   --------------------------------------------------------- */

.novedades-page .novedad-estado {
    padding: 5px 9px;
    font-size: 11.5px;
}

/* ---------------------------------------------------------
   PRIORIDADES
   --------------------------------------------------------- */

.novedades-page .novedad-prioridad {
    padding: 5px 9px;
    font-size: 11.5px;
}

/* ---------------------------------------------------------
   FILAS
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table tbody tr {
    transition:
        background-color 0.15s ease;
}

.novedades-page .programacion-mensual-table tbody tr:hover {
    background: #F8FAFC;
}

/* ---------------------------------------------------------
   ESPACIADO GENERAL
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-calendar-card {
    overflow: hidden;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .novedades-page .programacion-page-heading h1 {
        font-size: 25px;
    }

    .novedades-page .programacion-mensual-table th,
    .novedades-page .programacion-mensual-table td {
        padding: 8px 5px;
        font-size: 12px;
    }

    .novedades-page .programacion-mensual-table td:nth-child(1),
    .novedades-page .programacion-mensual-table td:nth-child(5) {
        font-size: 11.5px;
    }

    .novedades-page .novedad-btn-ver {
        min-width: 48px;
        padding: 5px 8px;
    }
}
/* =========================================================
   SGV — MÓDULO NOVEDADES
   Diseño definitivo
   ========================================================= */

.novedades-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* =========================================================
   ENCABEZADO PRINCIPAL
   ========================================================= */

.novedades-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.novedades-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.novedades-header-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #EEF4FB;
    font-size: 28px;
}

.novedades-header h1 {
    margin: 0 0 5px;
    color: var(--sgv-primary-dark);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
}

.novedades-header p {
    margin: 0;
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

.novedades-header-actions {
    flex-shrink: 0;
}

/* =========================================================
   MENSAJES
   ========================================================= */

.novedades-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.novedades-alert-success {
    color: var(--sgv-success);
    background: var(--sgv-success-bg);
    border: 1px solid #A8DCC7;
}

.novedades-alert-error {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
    border: 1px solid #F2B8B5;
}

/* =========================================================
   CONTEXTO DEL PUESTO
   ========================================================= */

.novedades-context-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    margin-bottom: 18px;
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(11, 49, 95, .06);
}

.novedades-context-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #FFF6D8;
    font-size: 23px;
}

.novedades-context-content {
    min-width: 0;
}

.novedades-context-content h2 {
    margin: 0 0 5px;
    color: var(--sgv-primary);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
}

.novedades-context-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.novedades-context-details strong {
    color: var(--sgv-primary);
}

/* =========================================================
   MÓDULO PRINCIPAL
   ========================================================= */

.novedades-module {
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(11, 49, 95, .06);
    overflow: hidden;
}

/* =========================================================
   CABECERA DEL MÓDULO
   ========================================================= */

.novedades-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--sgv-border);
    background: #FAFBFC;
}

.novedades-module-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.novedades-module-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #FFF6D8;
    font-size: 20px;
}

.novedades-module-title h2 {
    margin: 0 0 3px;
    color: var(--sgv-primary-dark);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.novedades-module-title p {
    margin: 0;
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

.novedades-module-action {
    flex-shrink: 0;
}

.novedades-module-action .sgv-btn {
    white-space: nowrap;
}

/* =========================================================
   TABLA
   ========================================================= */

.novedades-table-container {
    width: 100%;
    overflow: hidden;
}

.novedades-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Encabezado */

.novedades-table thead th {
    padding: 11px 9px;
    color: var(--sgv-primary-dark);
    background: #EEF3F8;
    border-bottom: 1px solid var(--sgv-border);
    border-right: 1px solid var(--sgv-border);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
}

.novedades-table thead th:last-child {
    border-right: none;
}

/* Celdas */

.novedades-table tbody td {
    padding: 11px 9px;
    color: var(--sgv-text);
    background: var(--sgv-white);
    border-bottom: 1px solid var(--sgv-border);
    border-right: 1px solid var(--sgv-border);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: break-word;
}

.novedades-table tbody td:last-child {
    border-right: none;
}

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

.novedades-table tbody tr {
    transition: background-color .15s ease;
}

.novedades-table tbody tr:hover td {
    background: #F8FAFC;
}

/* =========================================================
   ANCHO DE COLUMNAS
   ========================================================= */

.novedades-table th:nth-child(1),
.novedades-table td:nth-child(1) {
    width: 13%;
}

.novedades-table th:nth-child(2),
.novedades-table td:nth-child(2) {
    width: 10%;
}

.novedades-table th:nth-child(3),
.novedades-table td:nth-child(3) {
    width: 11%;
}

.novedades-table th:nth-child(4),
.novedades-table td:nth-child(4) {
    width: 22%;
}

.novedades-table th:nth-child(5),
.novedades-table td:nth-child(5) {
    width: 23%;
}

.novedades-table th:nth-child(6),
.novedades-table td:nth-child(6) {
    width: 11%;
}

.novedades-table th:nth-child(7),
.novedades-table td:nth-child(7) {
    width: 10%;
}

/* =========================================================
   FECHA
   ========================================================= */

.novedades-col-fecha {
    white-space: nowrap;
}

.novedades-date,
.novedades-time {
    display: inline;
    margin: 0;
    color: var(--sgv-text);
    font-size: 15px;
    font-weight: 400;
}

/* =========================================================
   TIPO
   ========================================================= */

.novedades-type {
    font-weight: 600;
    color: var(--sgv-primary);
    font-size: 12.5px;
}

/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.novedades-col-descripcion {
    font-weight: 500;
}

/* =========================================================
   REPORTADO POR
   ========================================================= */

.novedades-col-reportado {
    font-size: 12.5px !important;
}

/* =========================================================
   PRIORIDADES
   ========================================================= */

.novedades-page .novedad-prioridad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.novedades-page .novedad-prioridad-baja {
    color: var(--sgv-info);
    background: var(--sgv-info-bg);
    border: 1px solid #B8CDF2;
}

.novedades-page .novedad-prioridad-media {
    color: var(--sgv-warning);
    background: var(--sgv-warning-bg);
    border: 1px solid #E8CC72;
}

.novedades-page .novedad-prioridad-alta {
    color: #B54708;
    background: #FFF1E8;
    border: 1px solid #F3C4A0;
}

.novedades-page .novedad-prioridad-critica {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
    border: 1px solid #F2B8B5;
}

.novedades-page .novedad-prioridad-default {
    color: var(--sgv-text-secondary);
    background: var(--sgv-bg);
    border: 1px solid var(--sgv-border);
}

/* =========================================================
   ESTADOS
   ========================================================= */

.novedades-page .novedad-estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.novedades-page .novedad-estado-abierta {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
    border: 1px solid #F2B8B5;
}

.novedades-page .novedad-estado-gestion {
    color: var(--sgv-warning);
    background: var(--sgv-warning-bg);
    border: 1px solid #E8CC72;
}

.novedades-page .novedad-estado-cerrada {
    color: var(--sgv-success);
    background: var(--sgv-success-bg);
    border: 1px solid #A8DCC7;
}

.novedades-page .novedad-estado-default {
    color: var(--sgv-text-secondary);
    background: var(--sgv-bg);
    border: 1px solid var(--sgv-border);
}

/* =========================================================
   BOTÓN VER
   ========================================================= */

.novedades-page .novedad-btn-ver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 11px;
    border: 1px solid var(--sgv-primary-light);
    border-radius: 6px;
    background: var(--sgv-white);
    color: var(--sgv-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color .15s ease,
        color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.novedades-page .novedad-btn-ver:hover {
    background: var(--sgv-primary);
    color: var(--sgv-white);
    border-color: var(--sgv-primary);
    box-shadow: 0 3px 8px rgba(11, 49, 95, .15);
}

/* =========================================================
   SIN NOVEDADES
   ========================================================= */

.novedades-empty {
    padding: 45px 25px;
    text-align: center;
}

.novedades-empty-icon {
    margin-bottom: 10px;
    font-size: 30px;
}

.novedades-empty h3 {
    margin: 0 0 6px;
    color: var(--sgv-primary-dark);
    font-size: 18px;
}

.novedades-empty p {
    margin: 0 0 18px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .novedades-header {
        align-items: flex-start;
    }

    .novedades-header h1 {
        font-size: 26px;
    }

    .novedades-module-header {
        align-items: flex-start;
    }

    .novedades-table {
        table-layout: auto;
    }

    .novedades-table th,
    .novedades-table td {
        font-size: 12px;
        padding: 8px 6px;
    }
}
/* =========================================================
/* Novedades — peso normal para datos principales */

.novedades-col-fecha,
.novedades-col-tipo,
.novedades-col-descripcion {
    font-weight: 400;
}

.novedades-col-fecha .novedades-date,
.novedades-col-fecha .novedades-time,
.novedades-col-tipo .novedades-type {
    font-weight: 400;
}
.novedades-col-fecha .novedades-date,
.novedades-col-fecha .novedades-time {
    display: inline;
    margin: 0;
    color: var(--sgv-text);
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35;
}

/* =========================================================
   SGV — BASE MAESTRA DE DISEÑO
   Tipografía, colores y elementos comunes
   ========================================================= */

:root {
    --sgv-font-body: 15px;
    --sgv-font-small: 13px;
    --sgv-font-h1: 28px;
    --sgv-font-h2: 21px;
    --sgv-font-h3: 18px;
    --sgv-font-table: 14px;
}

/* TIPOGRAFÍA GENERAL */
body {
    font-size: var(--sgv-font-body);
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--sgv-primary-dark);
    font-family: inherit;
}

h1 {
    margin: 0 0 8px;
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h1);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    margin: 0 0 6px;
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h2);
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    margin: 0 0 5px;
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h3);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin: 0 0 10px;
    color: var(--sgv-text);
    font-size: var(--sgv-font-body);
    line-height: 1.5;
}

small {
    font-size: var(--sgv-font-small);
    line-height: 1.4;
}

/* TÍTULOS SGV EXISTENTES */
.sgv-subtitle {
    font-size: var(--sgv-font-body);
    color: var(--sgv-text-secondary);
}

.sgv-section-title {
    font-size: var(--sgv-font-h2);
    font-weight: 700;
}

/* ENCABEZADO DE PÁGINA */
.programacion-page-heading h1,
.employee-detail-heading h1 {
    font-size: var(--sgv-font-h1);
    color: var(--sgv-primary-dark);
    font-weight: 700;
}

.programacion-page-heading p,
.employee-detail-heading p {
    color: var(--sgv-text-secondary);
    font-size: var(--sgv-font-body);
}

/* ENCABEZADOS DE SECCIÓN */
.sgv-section-header,
.programacion-form-heading,
.programacion-period-heading,
.employee-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sgv-section-header h3,
.programacion-form-heading h2,
.programacion-period-heading h2,
.employee-card-heading h2 {
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h2);
    font-weight: 700;
    line-height: 1.3;
}

.sgv-section-header p,
.programacion-form-heading p,
.programacion-period-heading p,
.employee-card-heading p {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: var(--sgv-font-small);
    font-weight: 400;
}

/* ICONOS DE SECCIÓN */
.sgv-section-icon,
.programacion-section-icon,
.employee-section-icon,
.employee-card-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #EAF1F8;
    font-size: 19px;
}

/* FORMULARIOS */
.sgv-label {
    font-size: var(--sgv-font-body);
    font-weight: 700;
    color: var(--sgv-text);
}

.sgv-input,
.sgv-select,
.sgv-textarea {
    font-size: var(--sgv-font-body);
}

.sgv-help,
.programacion-field-help,
.employee-form-help {
    color: var(--sgv-text-secondary);
    font-size: var(--sgv-font-small);
}

/* TABLAS */
.sgv-table th {
    font-size: var(--sgv-font-table);
}

.sgv-table td {
    font-size: var(--sgv-font-table);
}

/* CONTEXTO DE PUESTO */
.sgv-context-information h2 {
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h2);
    font-weight: 700;
}

.sgv-context-details {
    font-size: var(--sgv-font-body);
}

.sgv-context-details span,
.sgv-context-details strong {
    font-size: var(--sgv-font-body);
}

.sgv-context-details strong {
    color: var(--sgv-text);
    font-weight: 600;
}

/* BOTONES */
.sgv-btn {
    font-size: var(--sgv-font-small);
}

/* TABLAS DE NOVEDADES */
.novedades-table thead th {
    font-size: var(--sgv-font-table);
}

.novedades-table tbody td {
    font-size: var(--sgv-font-table);
}

.novedades-col-fecha,
.novedades-col-tipo,
.novedades-col-descripcion {
    font-weight: 400;
}

.novedades-col-fecha .novedades-date,
.novedades-col-fecha .novedades-time,
.novedades-col-tipo .novedades-type {
    font-size: var(--sgv-font-table);
    font-weight: 400;
}

.novedades-col-fecha .novedades-date,
.novedades-col-fecha .novedades-time {
    display: inline;
    margin: 0;
    color: var(--sgv-text);
    line-height: 1.35;
}

/* =========================================================
   SGV — BASE MAESTRA DE LEGIBILIDAD
   Escala visual única para reducir fatiga visual
   ========================================================= */

:root {
    --sgv-font-body: 16px;
    --sgv-font-small: 14px;
    --sgv-font-h1: 30px;
    --sgv-font-h2: 22px;
    --sgv-font-h3: 19px;
    --sgv-font-table: 15px;
}

/* TEXTO GENERAL */
body {
    font-size: var(--sgv-font-body);
    line-height: 1.55;
}

p {
    font-size: var(--sgv-font-body);
    line-height: 1.55;
}

small {
    font-size: var(--sgv-font-small);
}

/* TÍTULOS */
h1 {
    font-size: var(--sgv-font-h1) !important;
    line-height: 1.2;
}

h2,
.sgv-section-title {
    font-size: var(--sgv-font-h2) !important;
    line-height: 1.3;
}

h3 {
    font-size: var(--sgv-font-h3) !important;
    line-height: 1.3;
}

/* ENCABEZADOS DE PÁGINA */
.programacion-page-heading h1,
.employee-detail-heading h1 {
    font-size: var(--sgv-font-h1) !important;
}

.programacion-page-heading p,
.employee-detail-heading p {
    font-size: var(--sgv-font-body) !important;
}

/* ENCABEZADOS DE SECCIÓN */
.sgv-section-header h3,
.programacion-form-heading h2,
.programacion-period-heading h2,
.employee-card-heading h2 {
    font-size: var(--sgv-font-h2) !important;
}

.sgv-section-header p,
.programacion-form-heading p,
.programacion-period-heading p,
.employee-card-heading p {
    font-size: var(--sgv-font-small) !important;
}

/* ETIQUETAS Y CAMPOS */
.sgv-label {
    font-size: var(--sgv-font-body) !important;
}

.sgv-input,
.sgv-select,
.sgv-textarea {
    font-size: var(--sgv-font-body) !important;
    min-height: 44px;
}

.sgv-help,
.programacion-field-help,
.employee-form-help {
    font-size: var(--sgv-font-small) !important;
}

/* TABLAS */
.sgv-table th,
.sgv-table td,
.novedades-table thead th,
.novedades-table tbody td {
    font-size: var(--sgv-font-table) !important;
}

/* FILTROS Y FORMULARIOS DE PROGRAMACIÓN */
.programacion-form .sgv-label,
.programacion-period-form .sgv-label {
    font-size: var(--sgv-font-body) !important;
}

.programacion-form .sgv-input,
.programacion-period-form .sgv-input {
    font-size: var(--sgv-font-body) !important;
    min-height: 44px;
}

/* DASHBOARD */
.dashboard-section-title {
    font-size: 16px !important;
}

.dashboard-card-description,
.dashboard-document-label,
.dashboard-document-description,
.dashboard-module small {
    font-size: 14px !important;
}

.dashboard-module strong {
    font-size: 15px !important;
}

/* CONTEXTO DEL PUESTO */
.sgv-context-information h2 {
    font-size: var(--sgv-font-h2) !important;
}

.sgv-context-details,
.sgv-context-details span,
.sgv-context-details strong {
    font-size: var(--sgv-font-body) !important;
}

/* BOTONES */
.sgv-btn {
    font-size: 15px !important;
    min-height: 44px;
}

/* DATOS PRINCIPALES DE NOVEDADES */
.novedades-col-fecha .novedades-date,
.novedades-col-fecha .novedades-time,
.novedades-col-tipo .novedades-type {
    font-size: var(--sgv-font-table) !important;
}

/* MÓVIL */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1,
    .sgv-title {
        font-size: 26px !important;
    }

    h2,
    .sgv-section-title {
        font-size: 20px !important;
    }
}

/* =========================================================
   CLIENTES — FORMULARIO NUEVO / EDITAR
   Distribución compacta y consistente
   ========================================================= */

.cliente-form-card .sgv-card-body {
    padding-top: 22px;
}

.cliente-form-grid {
    display: grid;
    grid-template-columns: 180px minmax(280px, 1.4fr) minmax(210px, 1fr);
    gap: 18px 24px;
    max-width: 1080px;
    align-items: end;
}

.cliente-form-grid .sgv-form-group {
    min-width: 0;
    margin: 0;
}

.cliente-field-nit {
    max-width: 220px;
}

.cliente-field-telefono {
    max-width: 240px;
}

.cliente-field-estado {
    max-width: 220px;
}

.cliente-form-full {
    grid-column: auto;
}

.cliente-field-direccion {
    grid-column: 1 / 3;
    min-width: 0;
}

.cliente-form-grid .sgv-input,
.cliente-form-grid .sgv-select {
    width: 100%;
    box-sizing: border-box;
}

.cliente-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    max-width: 1080px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--sgv-border);
}

.cliente-form-actions .sgv-btn {
    width: auto;
    min-width: 120px;
    flex: 0 0 auto;
}

@media (max-width: 900px) {

    .cliente-form-grid {
        grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr);
        max-width: none;
    }

    .cliente-field-contacto,
    .cliente-field-email,
    .cliente-field-ciudad,
    .cliente-field-estado,
    .cliente-field-direccion {
        max-width: none;
    }

    .cliente-field-direccion {
        grid-column: 1 / 2;
    }
}

@media (max-width: 600px) {

    .cliente-form-grid {
        grid-template-columns: 1fr;
    }

    .cliente-form-full {
        grid-column: auto;
    }

    .cliente-field-direccion {
        grid-column: auto;
    }

    .cliente-field-nit,
    .cliente-field-telefono,
    .cliente-field-estado {
        max-width: none;
    }

    .cliente-form-actions {
        justify-content: flex-end;
        flex-direction: row;
        align-items: center;
    }

    .cliente-form-actions .sgv-btn {
        width: auto;
        min-width: 120px;
    }
}


/* Ajuste final: botones de acciones del formulario de cliente */
.cliente-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.cliente-form-actions .sgv-btn {
    width: 185px;
    min-width: 185px;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 185px;
}

/* =========================================================
   FICHA DEL CLIENTE
   Estructura visual alineada con las fichas de Personal
   ========================================================= */

.cliente-ficha-header {
    align-items: center;
}

.cliente-ficha-label {
    margin-bottom: 5px;
    color: var(--sgv-gold-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
}

.cliente-ficha-icon {
    background: #EAF1F8;
    color: var(--sgv-primary);
}

.cliente-ficha-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 20px 24px;
    border: 1px solid var(--sgv-border);
    border-left: 4px solid var(--sgv-gold);
    background: var(--sgv-surface);
    box-shadow: 0 2px 7px rgba(11, 49, 95, .07);
}

.cliente-ficha-status-label {
    margin-bottom: 8px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.cliente-ficha-status-action {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cliente-ficha-status-text {
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

.cliente-ficha-status-text strong {
    color: var(--sgv-primary-dark);
}

.cliente-ficha-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 24px;
    margin-top: 24px;
}

.cliente-ficha-card {
    min-width: 0;
    overflow: hidden;
}

.cliente-ficha-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cliente-ficha-section-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    font-size: 22px;
    line-height: 1;
}

.cliente-ficha-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cliente-section-description {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 15px;
    line-height: 1.45;
}

.cliente-ficha-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 22px;
    margin: 0;
}

.cliente-ficha-details > div {
    min-width: 0;
}

.cliente-ficha-details dt {
    margin: 0 0 7px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.cliente-ficha-details dd {
    margin: 0;
    color: var(--sgv-black);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cliente-ficha-detail-full {
    grid-column: 1 / -1;
}

.cliente-contratos-card {
    margin-top: 24px;
}

.cliente-contratos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cliente-contratos-table th,
.cliente-contratos-table td {
    vertical-align: middle;
}

.cliente-contrato-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--sgv-info-bg);
    color: var(--sgv-primary);
    font-size: 13px;
    font-weight: 700;
}

.cliente-ficha-empty {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: var(--sgv-text-secondary);
}

.cliente-ficha-empty strong {
    color: var(--sgv-primary-dark);
    font-size: 16px;
}

.cliente-ficha-empty-icon {
    margin-bottom: 4px;
    font-size: 28px;
}

@media (max-width: 900px) {

    .cliente-ficha-grid {
        grid-template-columns: 1fr;
    }

    .cliente-ficha-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .cliente-ficha-status-action {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {

    .cliente-ficha-header {
        align-items: flex-start;
    }

    .cliente-ficha-status-action {
        flex-direction: column;
        align-items: flex-start;
    }

    .cliente-ficha-details {
        grid-template-columns: 1fr;
    }

    .cliente-ficha-detail-full {
        grid-column: auto;
    }

    .cliente-contratos-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cliente-contratos-header .sgv-btn {
        width: 100%;
    }
}


/* =========================================================
   CORRECCIÓN FINAL — FICHA DEL CLIENTE
   Evita que estilos generales de tarjetas alteren la ficha.
   ========================================================= */

.cliente-ficha-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100%;
}

.cliente-ficha-section-header > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.cliente-ficha-section-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    min-width: 0;
}

.cliente-ficha-status-action {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
    flex-wrap: wrap;
}

.cliente-ficha-status-action .sgv-btn {
    width: auto !important;
    min-width: 150px;
    flex: 0 0 auto;
}

.cliente-ficha-details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 34px !important;
    row-gap: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cliente-ficha-details > div {
    display: block !important;
    min-width: 0;
}

.cliente-ficha-details dt {
    display: block !important;
    margin: 0 0 7px !important;
}

.cliente-ficha-details dd {
    display: block !important;
    margin: 0 !important;
}

.cliente-ficha-detail-full {
    grid-column: 1 / -1 !important;
}

.cliente-ficha-card .sgv-card-header {
    justify-content: flex-start !important;
}

.cliente-contratos-header {
    justify-content: space-between !important;
}

.cliente-contratos-header .sgv-btn {
    width: auto !important;
    flex: 0 0 auto;
}

@media (max-width: 900px) {

    .cliente-ficha-details {
        grid-template-columns: 1fr !important;
    }

    .cliente-ficha-detail-full {
        grid-column: auto !important;
    }

    .cliente-ficha-status-action {
        justify-content: flex-start !important;
    }
}

/* =========================================================
   CONTRATOS — FORMULARIO Y FICHA
   ========================================================= */

.contrato-form-card .sgv-card-body {
    padding-top: 22px;
}

.contrato-section-description {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 15px;
    line-height: 1.45;
}

.contrato-form-grid {
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(180px, .9fr) minmax(210px, 1fr);
    gap: 18px 24px;
    max-width: 1080px;
    align-items: end;
}

.contrato-form-grid .sgv-form-group {
    min-width: 0;
    margin: 0;
}

.contrato-field-numero {
    grid-column: 1 / 2;
}

.contrato-field-estado {
    grid-column: 2 / 3;
    max-width: 230px;
}

.contrato-field-fecha {
    max-width: 220px;
}

.contrato-field-valor {
    max-width: 280px;
}

.contrato-field-objeto {
    grid-column: 1 / -1;
}

.contrato-form-grid .sgv-input,
.contrato-form-grid .sgv-select,
.contrato-form-grid .sgv-textarea {
    width: 100%;
    box-sizing: border-box;
}

.contrato-form-grid .sgv-textarea {
    min-height: 130px;
    resize: vertical;
}

.contrato-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    max-width: 1080px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--sgv-border);
}

.contrato-form-actions .sgv-btn {
    width: 185px;
    min-width: 185px;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 185px;
}

/* -------------------------
   FICHA DEL CONTRATO
   ------------------------- */

.contrato-ficha-label {
    margin-bottom: 5px;
    color: var(--sgv-gold-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
}

.contrato-ficha-icon {
    background: #EAF1F8;
    color: var(--sgv-primary);
}

.contrato-ficha-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 20px 24px;
    border: 1px solid var(--sgv-border);
    border-left: 4px solid var(--sgv-gold);
    background: var(--sgv-surface);
    box-shadow: 0 2px 7px rgba(11, 49, 95, .07);
}

.contrato-ficha-status-label {
    margin-bottom: 8px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.contrato-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
    font-size: 13px;
    font-weight: 800;
}

.contrato-ficha-client-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.contrato-ficha-client-summary span {
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

.contrato-ficha-client-summary strong {
    color: var(--sgv-primary-dark);
    font-size: 15px;
}

.contrato-ficha-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 24px;
    margin-top: 24px;
}

.contrato-ficha-card {
    min-width: 0;
    overflow: hidden;
}

.contrato-ficha-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100%;
}

.contrato-ficha-section-header > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.contrato-ficha-section-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    font-size: 22px;
}

.contrato-ficha-details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 22px;
    margin: 0;
    padding: 0;
}

.contrato-ficha-details > div {
    min-width: 0;
}

.contrato-ficha-details dt {
    margin: 0 0 7px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.contrato-ficha-details dd {
    margin: 0;
    color: var(--sgv-black);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.contrato-ficha-detail-full {
    grid-column: 1 / -1;
}

.contrato-ficha-details-single {
    grid-template-columns: 1fr;
}

.contrato-resumen-card {
    margin-top: 24px;
}

.contrato-resumen-text,
.contrato-resumen-muted {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.contrato-resumen-muted {
    margin-top: 10px;
    color: var(--sgv-text-secondary);
}

@media (max-width: 900px) {

    .contrato-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .contrato-field-numero,
    .contrato-field-estado,
    .contrato-field-fecha,
    .contrato-field-valor {
        max-width: none;
    }

    .contrato-ficha-grid {
        grid-template-columns: 1fr;
    }

    .contrato-ficha-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .contrato-ficha-client-summary {
        text-align: left;
    }
}

@media (max-width: 600px) {

    .contrato-form-grid {
        grid-template-columns: 1fr;
    }

    .contrato-field-numero,
    .contrato-field-estado,
    .contrato-field-fecha,
    .contrato-field-valor,
    .contrato-field-objeto {
        grid-column: auto;
        max-width: none;
    }

    .contrato-form-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .contrato-form-actions .sgv-btn {
        width: auto;
        min-width: 150px;
        flex: 0 0 150px;
    }

    .contrato-ficha-details {
        grid-template-columns: 1fr;
    }

    .contrato-ficha-detail-full {
        grid-column: auto;
    }
}

/* =========================================================
   PUESTOS DE SERVICIO — ESTRUCTURA VISUAL SGV
   ========================================================= */

.puestos-list-page,
.puestos-form-page,
.puestos-ficha-page {
    width: 100%;
}

.puesto-section-description {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 15px;
    line-height: 1.45;
}

/* LISTADO */
.puestos-list-card {
    margin-top: 22px;
}

.puestos-table th,
.puestos-table td {
    vertical-align: middle;
}

.puesto-table-link {
    color: var(--sgv-primary);
    font-weight: 700;
    text-decoration: none;
}

.puesto-table-link:hover {
    color: var(--sgv-primary-dark);
    text-decoration: underline;
}

.puesto-table-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.puesto-table-status.activo {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}

.puesto-table-status.inactivo {
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
}

.puesto-empty-state {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: var(--sgv-text-secondary);
}

.puesto-empty-state strong {
    color: var(--sgv-primary-dark);
    font-size: 16px;
}

.puesto-empty-icon {
    font-size: 30px;
}

/* FORMULARIO */
.puesto-form-card {
    margin-top: 22px;
}

.puesto-form-section + .puesto-form-section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--sgv-border);
}

.puesto-form-section .sgv-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.puesto-form-section .sgv-section-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    font-size: 21px;
}

.puesto-form-grid {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) minmax(210px, 1fr);
    gap: 18px 24px;
    max-width: 1080px;
    align-items: end;
}

.puesto-form-grid .sgv-form-group {
    min-width: 0;
    margin: 0;
}

.puesto-field-nombre {
    grid-column: 1 / 3;
}

.puesto-field-direccion {
    grid-column: 1 / -1;
}

.puesto-operativo-form-grid {
    grid-template-columns: minmax(160px, .8fr) minmax(160px, .8fr) minmax(220px, 1fr);
}

.puesto-field-supervisor {
    grid-column: 1 / 3;
}

.puesto-field-estado {
    max-width: 220px;
}

.puesto-form-grid .sgv-input,
.puesto-form-grid .sgv-select {
    width: 100%;
    box-sizing: border-box;
}

.puesto-form-grid small {
    display: block;
    margin-top: 6px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.puesto-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    max-width: 1080px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--sgv-border);
}

.puesto-form-actions .sgv-btn {
    width: 185px;
    min-width: 185px;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 185px;
}

/* FICHA */
.puestos-ficha-page .puesto-ficha-label {
    margin-bottom: 5px;
    color: var(--sgv-gold-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
}

.puestos-ficha-page .puesto-header {
    display: none;
}

.puestos-ficha-page .puesto-card {
    margin-top: 24px;
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(11, 49, 95, .06);
    overflow: hidden;
}

.puestos-ficha-page .puesto-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--sgv-border);
    background: #F8FAFC;
}

.puestos-ficha-page .puesto-card-header h2 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 19px;
}

.puestos-ficha-page .puesto-card-body {
    padding: 22px;
}

.puestos-ficha-page .puesto-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px;
    background: var(--sgv-primary-dark);
    color: var(--sgv-white);
}

.puestos-ficha-page .puesto-principal h2 {
    margin: 0 0 5px;
    color: var(--sgv-white);
    font-size: 24px;
}

.puestos-ficha-page .puesto-principal p {
    margin: 0;
    color: rgba(255,255,255,.85);
    font-size: 14px;
}

.puestos-ficha-page .estado {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.puestos-ficha-page .estado.activo {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}

.puestos-ficha-page .estado.inactivo {
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
}

.puestos-ficha-page .estado-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.puestos-ficha-page .puesto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.puestos-ficha-page .puesto-dato {
    padding: 15px;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    background: var(--sgv-white);
}

.puestos-ficha-page .puesto-dato-label {
    display: block;
    margin-bottom: 6px;
    color: var(--sgv-text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.puestos-ficha-page .puesto-dato-valor {
    display: block;
    color: var(--sgv-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.puestos-ficha-page .puesto-dato-valor.normal {
    font-weight: 500;
}

.puestos-ficha-page .puesto-operacion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.puestos-ficha-page .puesto-operacion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    background: var(--sgv-white);
}

.puestos-ficha-page .puesto-icono {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    color: var(--sgv-primary);
    font-size: 20px;
    font-weight: 800;
}

.puestos-ficha-page .puesto-operacion-item small {
    display: block;
    margin-bottom: 3px;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}

.puestos-ficha-page .puesto-operacion-item strong {
    display: block;
    color: var(--sgv-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.puestos-ficha-page .puesto-secciones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.puestos-ficha-page .puesto-seccion-futura {
    padding: 18px;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    background: #F8FAFC;
}

.puestos-ficha-page .puesto-seccion-futura strong {
    display: block;
    margin-bottom: 5px;
    color: var(--sgv-primary-dark);
}

.puestos-ficha-page .puesto-seccion-futura span {
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.puestos-ficha-page .puesto-seccion-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.puestos-ficha-page .puesto-seccion-link:hover {
    transform: translateY(-3px);
    background: #F8FAFC;
    border-color: var(--sgv-primary-light);
    box-shadow: 0 8px 18px rgba(11, 49, 95, .12);
}

.puestos-ficha-page .puesto-seccion-link:hover strong {
    color: var(--sgv-primary);
}

@media (max-width: 900px) {

    .puesto-form-grid,
    .puesto-operativo-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .puesto-field-nombre,
    .puesto-field-direccion,
    .puesto-field-supervisor {
        grid-column: 1 / -1;
    }

    .puesto-field-estado {
        max-width: none;
    }

    .puestos-ficha-page .puesto-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .puestos-ficha-page .puesto-secciones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .puesto-form-grid,
    .puesto-operativo-form-grid,
    .puestos-ficha-page .puesto-grid,
    .puestos-ficha-page .puesto-operacion,
    .puestos-ficha-page .puesto-secciones {
        grid-template-columns: 1fr;
    }

    .puesto-field-nombre,
    .puesto-field-direccion,
    .puesto-field-supervisor {
        grid-column: auto;
    }

    .puestos-ficha-page .puesto-principal {
        flex-direction: column;
        align-items: flex-start;
    }

    .puesto-form-actions {
        flex-wrap: wrap;
    }

    .puesto-form-actions .sgv-btn {
        width: auto;
        min-width: 150px;
        flex: 0 0 150px;
    }
}

/* =========================================================
   AJUSTE FINAL — FORMULARIO NUEVO / EDITAR PUESTO
   Campos compactos y botones uniformes
   ========================================================= */

.puesto-form-grid {
    grid-template-columns:
        minmax(220px, 1.2fr)
        minmax(180px, .9fr)
        minmax(180px, .8fr) !important;
    gap: 18px 24px !important;
    max-width: 1120px !important;
}

/* Cliente y contrato en la misma fila */
.puesto-field-cliente {
    grid-column: 1 / 3 !important;
}

.puesto-field-contrato {
    grid-column: 3 / 4 !important;
}

/* Nombre ocupa más espacio; ciudad queda compacta */
.puesto-field-nombre {
    grid-column: 1 / 3 !important;
}

.puesto-field-ciudad {
    grid-column: 3 / 4 !important;
}

/* Dirección completa */
.puesto-field-direccion {
    grid-column: 1 / -1 !important;
}

/* Formulario operativo */
.puesto-operativo-form-grid {
    grid-template-columns:
        minmax(150px, .7fr)
        minmax(150px, .7fr)
        minmax(220px, 1fr) !important;
    max-width: 1120px !important;
}

/* Supervisor ocupa dos columnas */
.puesto-field-supervisor {
    grid-column: 1 / 3 !important;
}

/* Estado compacto */
.puesto-field-estado {
    grid-column: 3 / 4 !important;
    max-width: 220px !important;
}

/* Campos de texto: evitar anchos visualmente exagerados */
.puesto-form-grid .sgv-input,
.puesto-form-grid .sgv-select {
    min-width: 0;
}

/* Botones: exactamente iguales */
.puesto-form-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
}

.puesto-form-actions .sgv-btn {
    width: 185px !important;
    min-width: 185px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex: 0 0 185px !important;
}

@media (max-width: 900px) {

    .puesto-form-grid,
    .puesto-operativo-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: none !important;
    }

    .puesto-field-cliente,
    .puesto-field-contrato,
    .puesto-field-nombre,
    .puesto-field-ciudad,
    .puesto-field-supervisor,
    .puesto-field-estado {
        grid-column: auto !important;
        max-width: none !important;
    }

    .puesto-field-direccion {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 650px) {

    .puesto-form-grid,
    .puesto-operativo-form-grid {
        grid-template-columns: 1fr !important;
    }

    .puesto-field-cliente,
    .puesto-field-contrato,
    .puesto-field-nombre,
    .puesto-field-ciudad,
    .puesto-field-direccion,
    .puesto-field-supervisor,
    .puesto-field-estado {
        grid-column: auto !important;
        max-width: none !important;
    }

    .puesto-form-actions {
        flex-wrap: wrap !important;
    }

    .puesto-form-actions .sgv-btn {
        width: 150px !important;
        min-width: 150px !important;
        flex: 0 0 150px !important;
    }
}


/* =========================================================
   AJUSTE — ESTADO EN FORMULARIO DE PUESTO
   Alineación superior con Supervisor responsable
   ========================================================= */

.puesto-operativo-form-grid {
    align-items: start !important;
}

.puesto-field-supervisor,
.puesto-field-estado {
    align-self: start !important;
}

.puesto-field-estado {
    padding-top: 0 !important;
}

.puesto-field-estado .sgv-select {
    width: 100%;
    max-width: 220px;
}


/* =========================================================
   AJUSTE — PROPORCIÓN CAMPOS INFORMACIÓN GENERAL PUESTO
   Más espacio para Contrato y Ciudad
   ========================================================= */

.puesto-form-grid {
    grid-template-columns:
        minmax(200px, 1.05fr)
        minmax(170px, .85fr)
        minmax(190px, .90fr) !important;
}

/* Cliente ocupa las dos primeras columnas */
.puesto-field-cliente {
    grid-column: 1 / 3 !important;
}

/* Contrato utiliza la tercera columna */
.puesto-field-contrato {
    grid-column: 3 / 4 !important;
}

/* Nombre del puesto ocupa las dos primeras columnas */
.puesto-field-nombre {
    grid-column: 1 / 3 !important;
}

/* Ciudad queda con una columna más amplia */
.puesto-field-ciudad {
    grid-column: 3 / 4 !important;
}


/* =========================================================
   PUESTOS — PROPORCIÓN INFORMACIÓN GENERAL
   Cliente/Nombre más compactos | Contrato/Ciudad más amplios
   ========================================================= */

.puesto-form-grid {
    grid-template-columns:
        minmax(0, 65fr)
        minmax(0, 35fr) !important;
}

/* Cliente y Nombre del puesto: 65% */
.puesto-field-cliente,
.puesto-field-nombre {
    grid-column: 1 / 2 !important;
}

/* Contrato y Ciudad: 35% */
.puesto-field-contrato,
.puesto-field-ciudad {
    grid-column: 2 / 3 !important;
}

/* En la sección operativa se conserva su distribución independiente */
.puesto-operativo-form-grid {
    grid-template-columns:
        minmax(150px, .7fr)
        minmax(150px, .7fr)
        minmax(220px, 1fr) !important;
}

@media (max-width: 900px) {

    .puesto-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .puesto-field-cliente,
    .puesto-field-contrato,
    .puesto-field-nombre,
    .puesto-field-ciudad {
        grid-column: auto !important;
    }
}

@media (max-width: 650px) {

    .puesto-form-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   PUESTOS — CABECERA PRINCIPAL DE LA FICHA
   Fondo claro en lugar del azul oscuro
   ========================================================= */

.puestos-ficha-page .puesto-principal {
    background: #F8FAFC !important;
    color: var(--sgv-primary-dark) !important;
    border: 1px solid var(--sgv-border);
    border-left: 5px solid var(--sgv-gold);
    box-shadow: 0 3px 12px rgba(11, 49, 95, .06);
}

.puestos-ficha-page .puesto-principal h2 {
    color: var(--sgv-primary-dark) !important;
}

.puestos-ficha-page .puesto-principal p {
    color: var(--sgv-text-secondary) !important;
}


/* =========================================================
   PUESTOS — BLOQUE OPERATIVO SIN REPETIR EL NOMBRE
   ========================================================= */

.puestos-ficha-page .puesto-principal-label {
    margin-bottom: 6px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.puestos-ficha-page .puesto-principal-service {
    margin: 0;
    color: var(--sgv-primary-dark) !important;
    font-size: 17px;
    font-weight: 700;
}


/* =========================================================
   PERSONAL ASIGNADO — ESTRUCTURA VISUAL SGV
   ========================================================= */

.puesto-personal-page,
.puesto-personal-form-page {
    width: 100%;
}

.puesto-personal-section-description {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 15px;
    line-height: 1.45;
}

/* FORMULARIO */

.puesto-personal-form-card {
    margin-top: 22px;
}

.puesto-personal-form-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.55fr)
        minmax(190px, .8fr)
        minmax(190px, .8fr)
        minmax(170px, .7fr);
    gap: 20px 24px;
    align-items: start;
    max-width: 1120px;
}

.puesto-personal-form-grid .sgv-form-group {
    min-width: 0;
    margin: 0;
}

.puesto-personal-field-empleado {
    grid-column: 1 / 3;
}

.puesto-personal-field-observaciones {
    grid-column: 1 / -1;
}

.puesto-personal-form-grid .sgv-input,
.puesto-personal-form-grid .sgv-select,
.puesto-personal-form-grid .sgv-textarea {
    width: 100%;
    box-sizing: border-box;
}

.puesto-personal-form-grid .sgv-textarea {
    min-height: 120px;
    resize: vertical;
}

.puesto-personal-form-grid small {
    display: block;
    margin-top: 6px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.puesto-personal-help-warning {
    color: var(--sgv-warning) !important;
}

.puesto-personal-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    max-width: 1120px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--sgv-border);
}

.puesto-personal-form-actions .sgv-btn {
    width: 185px;
    min-width: 185px;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 185px;
}

.puesto-personal-alert {
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid #F2C078;
    border-radius: 10px;
    background: var(--sgv-warning-bg);
    color: #8A4B00;
}

.puesto-personal-alert-title {
    margin-bottom: 8px;
    color: #8A4B00;
    font-size: 17px;
    font-weight: 800;
}

.puesto-personal-alert-text {
    color: #7A4A10;
    font-size: 15px;
    line-height: 1.6;
}

.puesto-personal-alert-text strong {
    font-weight: 800;
}

/* PUESTO CUBIERTO */

.puesto-cubierto-card {
    margin-top: 22px;
    border-left: 5px solid var(--sgv-success);
}

.puesto-cubierto-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--sgv-border);
}

.puesto-cubierto-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--sgv-success-bg);
    font-size: 22px;
}

.puesto-cubierto-header h2 {
    margin: 0;
}

.puesto-cubierto-header p {
    margin: 5px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 15px;
}

.puesto-cubierto-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 22px 24px;
}

.puesto-cubierto-dato {
    padding: 16px;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    background: #F8FAFC;
}

.puesto-cubierto-dato span,
.puesto-cubierto-total span {
    display: block;
    margin-bottom: 6px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.puesto-cubierto-dato strong {
    color: var(--sgv-text);
    font-size: 20px;
    font-weight: 400;
}

.puesto-cubierto-total {
    margin: 0 24px;
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--sgv-success-bg);
    text-align: center;
}

.puesto-cubierto-total span {
    margin-bottom: 3px;
}

.puesto-cubierto-total strong {
    color: var(--sgv-success);
    font-size: 20px;
    font-weight: 400;
}

.puesto-cubierto-message {
    margin: 18px 24px 24px;
    color: var(--sgv-text-secondary);
    font-size: 15px;
}

/* LISTADO */

.puesto-cobertura-card,
.puesto-personal-list-card {
    margin-top: 22px;
}

.cobertura-resumen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.cobertura-card {
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    background: #F8FAFC;
}

.cobertura-label {
    display: block;
    margin-bottom: 8px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.cobertura-card strong {
    display: block;
    color: var(--sgv-text);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}

.cobertura-barra {
    width: 100%;
    height: 10px;
    margin: 12px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--sgv-border);
}

.cobertura-progreso {
    height: 100%;
    border-radius: 999px;
    background: var(--sgv-success);
}

.cobertura-progreso.pendiente {
    background: var(--sgv-gold);
}

.cobertura-estado {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.cobertura-completa {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}

.cobertura-pendiente {
    background: var(--sgv-warning-bg);
    color: var(--sgv-warning);
}

.cobertura-tabla th,
.cobertura-tabla td {
    vertical-align: middle;
}

.cobertura-ok {
    color: var(--sgv-success);
    font-weight: 700;
}

.cobertura-falta {
    color: var(--sgv-warning);
    font-weight: 700;
}

.puesto-personal-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.puesto-personal-empty-icon {
    margin-bottom: 4px;
    font-size: 30px;
}

.puesto-personal-empty h3 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 18px;
}

.puesto-personal-empty p {
    margin: 0 0 12px;
    color: var(--sgv-text-secondary);
}

.puesto-finalizar-form {
    margin: 0;
}

.sgv-btn-small {
    width: auto !important;
    min-width: 100px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    flex: 0 0 auto !important;
    font-size: 13px !important;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .puesto-personal-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .puesto-personal-field-empleado,
    .puesto-personal-field-observaciones {
        grid-column: 1 / -1;
    }

    .puesto-cubierto-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cobertura-resumen {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .puesto-personal-form-grid,
    .puesto-cubierto-grid {
        grid-template-columns: 1fr;
    }

    .puesto-personal-field-empleado,
    .puesto-personal-field-observaciones {
        grid-column: auto;
    }

    .puesto-personal-form-actions {
        flex-wrap: wrap;
    }

    .puesto-personal-form-actions .sgv-btn {
        width: 150px;
        min-width: 150px;
        flex: 0 0 150px;
    }
}

/* =========================================================
   PROGRAMACIÓN DEL PUESTO
   Tarjeta de identificación compacta
   ========================================================= */

.programacion-mensual-page .programacion-period-card {
    padding: 18px 24px;
    margin-bottom: 16px;
}

.programacion-mensual-page .programacion-period-card .programacion-period-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.programacion-mensual-page .programacion-period-card .programacion-section-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
}

.programacion-mensual-page .programacion-period-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--sgv-primary);
}

.programacion-mensual-page .programacion-period-card p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.3;
    color: var(--sgv-text-secondary);
}

.programacion-mensual-page .programacion-period-card p + p {
    margin-top: 3px;
}

.programacion-mensual-page .programacion-period-card p strong {
    display: inline;
    font-size: 14px !important;
    line-height: 1.3;
    font-weight: 600;
    color: var(--sgv-primary);
}
/* =========================================================
   PROGRAMACIÓN DEL PUESTO
   Periodo compacto
   ========================================================= */

.programacion-mensual-page .programacion-mensual-period-card {
    padding: 14px 24px;
    margin-bottom: 16px;
}

.programacion-mensual-page .programacion-mensual-period {
    min-height: 68px;
    padding: 12px 18px;
    box-sizing: border-box;
}

.programacion-mensual-page .programacion-mensual-period-label {
    font-size: 11px;
    line-height: 1.2;
}

.programacion-mensual-page .programacion-mensual-period h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.15;
}

.programacion-mensual-page .programacion-month-nav {
    min-height: 38px;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    font-size: 13px;
}
/* =========================================================
   PROGRAMACIÓN DEL PUESTO
   Identificación del puesto — versión compacta
   ========================================================= */

.programacion-mensual-page .programacion-period-card {
    padding: 12px 20px;
    margin-bottom: 14px;
}

.programacion-mensual-page .programacion-period-card .programacion-period-heading {
    min-height: 52px;
    gap: 12px;
}

.programacion-mensual-page .programacion-period-card .programacion-section-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 9px;
    font-size: 18px;
}

.programacion-mensual-page .programacion-period-card h2 {
    font-size: 19px;
    line-height: 1.15;
}

.programacion-mensual-page .programacion-period-card p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
}

.programacion-mensual-page .programacion-period-card p + p {
    margin-top: 1px;
}

.programacion-mensual-page .programacion-period-card p strong {
    font-size: 13px !important;
}
/* =========================================================
   PROGRAMACIÓN DEL PUESTO
   Celdas de turnos — diseño compacto
   ========================================================= */

.programacion-mensual-page .programacion-shift {
    width: 100%;
    min-height: 82px;
    padding: 8px 7px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid var(--sgv-border);
    border-radius: 7px;
    background: var(--sgv-white);
    text-align: left;
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
}

.programacion-mensual-page .programacion-shift:hover {
    box-shadow: 0 3px 8px rgba(11, 49, 95, .10);
    transform: translateY(-1px);
}

.programacion-mensual-page .programacion-shift-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--sgv-primary);
}

.programacion-mensual-page .programacion-shift-time {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--sgv-text-secondary);
    white-space: nowrap;
}

.programacion-mensual-page .programacion-shift-status {
    min-height: 19px;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.programacion-mensual-page .programacion-no-shift {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--sgv-muted);
    white-space: nowrap;
}
/* =========================================================
   PROGRAMACIÓN DEL PUESTO
   Resaltar turnos programados
   ========================================================= */

.programacion-mensual-page .programacion-shift {
    background: #DCE9F8;
    border: 1px solid #8FB1D9;
    box-shadow: 0 2px 5px rgba(11, 49, 95, .12);
}

.programacion-mensual-page .programacion-shift:hover {
    background: #C9DCF1;
    border-color: var(--sgv-primary-light);
    box-shadow: 0 4px 10px rgba(11, 49, 95, .18);
}

.programacion-mensual-page .programacion-shift-name {
    color: var(--sgv-primary-dark);
}

.programacion-mensual-page .programacion-shift-time {
    color: #405A78;
}
/* =========================================================
   TARJETA PROGRAMACIÓN — EFECTO INTERACTIVO
   ========================================================= */

.puesto-seccion-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.puesto-seccion-link:hover {
    transform: translateY(-3px);
    background: #F8FAFC;
    border-color: var(--sgv-primary-light);
    box-shadow: 0 8px 18px rgba(11, 49, 95, .12);
}

.puesto-seccion-link:hover strong {
    color: var(--sgv-primary);
}

.puesto-seccion-link:active {
    transform: translateY(-1px);
}
/* =========================================================
   NOVEDADES — ESTADOS
   ========================================================= */

.novedad-estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.novedad-estado-abierta {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
    border: 1px solid #F2B8B5;
}

.novedad-estado-gestion {
    color: var(--sgv-warning);
    background: var(--sgv-warning-bg);
    border: 1px solid #E8CC72;
}

.novedad-estado-cerrada {
    color: var(--sgv-success);
    background: var(--sgv-success-bg);
    border: 1px solid #A8DCC7;
}

.novedad-estado-default {
    color: var(--sgv-text-secondary);
    background: var(--sgv-bg);
    border: 1px solid var(--sgv-border);
}
/* =========================================================
   NOVEDADES — PRIORIDADES
   ========================================================= */

.novedad-prioridad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.novedad-prioridad-baja {
    color: var(--sgv-info);
    background: var(--sgv-info-bg);
    border: 1px solid #B8CDF2;
}

.novedad-prioridad-media {
    color: var(--sgv-warning);
    background: var(--sgv-warning-bg);
    border: 1px solid #E8CC72;
}

.novedad-prioridad-alta {
    color: #B54708;
    background: #FFF1E8;
    border: 1px solid #F3C4A0;
}

.novedad-prioridad-critica {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
    border: 1px solid #F2B8B5;
}

.novedad-prioridad-default {
    color: var(--sgv-text-secondary);
    background: var(--sgv-bg);
    border: 1px solid var(--sgv-border);
}
/* =========================================================
   NOVEDADES — BOTÓN VER
   ========================================================= */

.novedad-btn-ver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 7px 12px;
    border: 1px solid var(--sgv-primary-light);
    border-radius: 7px;
    background: var(--sgv-white);
    color: var(--sgv-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.novedad-btn-ver:hover {
    background: var(--sgv-primary);
    color: var(--sgv-white);
    border-color: var(--sgv-primary);
    box-shadow: 0 4px 10px rgba(11, 49, 95, .16);
    transform: translateY(-1px);
}

.novedad-btn-ver:active {
    transform: translateY(0);
}
/* =========================================================
   NOVEDADES — ALINEACIÓN DE LA TABLA
   ========================================================= */

.programacion-mensual-table th,
.programacion-mensual-table td {
    text-align: center;
    vertical-align: middle;
}
/* =========================================================
   SGV — NOVEDADES DEL PUESTO
   Vista compacta y profesional
   ========================================================= */

.novedades-page {
    width: 100%;
}

/* ---------------------------------------------------------
   ENCABEZADO
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-heading {
    margin-bottom: 24px;
}

.novedades-page .programacion-page-heading {
    gap: 14px;
}

.novedades-page .programacion-page-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

.novedades-page .programacion-page-heading h1 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.15;
}

.novedades-page .programacion-page-heading p {
    margin: 0;
    font-size: 14px;
}

/* ---------------------------------------------------------
   IDENTIFICACIÓN DEL PUESTO
   --------------------------------------------------------- */

.novedades-page .programacion-period-card {
    padding: 18px 22px;
    margin-bottom: 18px;
}

.novedades-page .programacion-period-heading {
    gap: 14px;
}

.novedades-page .programacion-period-heading h2 {
    margin: 0 0 4px;
    font-size: 21px;
    line-height: 1.2;
}

.novedades-page .programacion-period-heading p {
    margin: 2px 0;
    font-size: 13px;
}

/* ---------------------------------------------------------
   ENCABEZADO DEL MÓDULO
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-filter-card {
    padding: 16px 20px;
    margin-bottom: 14px;
}

.novedades-page .programacion-mensual-section-heading {
    gap: 12px;
}

.novedades-page .programacion-mensual-section-heading h2 {
    margin: 0 0 4px;
    font-size: 19px;
}

.novedades-page .programacion-mensual-section-heading p {
    margin: 0;
    font-size: 13px;
}

/* ---------------------------------------------------------
   BOTÓN REGISTRAR
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-filter-action {
    margin-top: 12px;
}

.novedades-page .sgv-btn-primary {
    padding: 9px 15px;
    font-size: 13px;
}

/* ---------------------------------------------------------
   CONTENEDOR DE TABLA
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-calendar-card {
    padding: 16px;
    margin-bottom: 20px;
}

.novedades-page .programacion-mensual-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* ---------------------------------------------------------
   TABLA
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
}

/* Encabezados */

.novedades-page .programacion-mensual-table th {
    padding: 10px 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* Celdas */

.novedades-page .programacion-mensual-table td {
    padding: 10px 7px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ---------------------------------------------------------
   ANCHO DE COLUMNAS
   Total = 100%
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table th:nth-child(1),
.novedades-page .programacion-mensual-table td:nth-child(1) {
    width: 13%;
}

.novedades-page .programacion-mensual-table th:nth-child(2),
.novedades-page .programacion-mensual-table td:nth-child(2) {
    width: 10%;
}

.novedades-page .programacion-mensual-table th:nth-child(3),
.novedades-page .programacion-mensual-table td:nth-child(3) {
    width: 10%;
}

.novedades-page .programacion-mensual-table th:nth-child(4),
.novedades-page .programacion-mensual-table td:nth-child(4) {
    width: 23%;
}

.novedades-page .programacion-mensual-table th:nth-child(5),
.novedades-page .programacion-mensual-table td:nth-child(5) {
    width: 24%;
}

.novedades-page .programacion-mensual-table th:nth-child(6),
.novedades-page .programacion-mensual-table td:nth-child(6) {
    width: 11%;
}

.novedades-page .programacion-mensual-table th:nth-child(7),
.novedades-page .programacion-mensual-table td:nth-child(7) {
    width: 9%;
}

/* ---------------------------------------------------------
   FECHA
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table td:nth-child(1) {
    white-space: nowrap;
    font-size: 12.5px;
}

/* ---------------------------------------------------------
   DESCRIPCIÓN
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table td:nth-child(4) {
    font-weight: 500;
}

/* ---------------------------------------------------------
   REPORTADO POR
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table td:nth-child(5) {
    font-size: 12.5px;
}

/* ---------------------------------------------------------
   ACCIÓN
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table th:last-child,
.novedades-page .programacion-mensual-table td:last-child {
    text-align: center;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   BOTÓN VER
   --------------------------------------------------------- */

.novedades-page .novedad-btn-ver {
    min-width: 54px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* ---------------------------------------------------------
   ESTADOS
   --------------------------------------------------------- */

.novedades-page .novedad-estado {
    padding: 5px 9px;
    font-size: 11.5px;
}

/* ---------------------------------------------------------
   PRIORIDADES
   --------------------------------------------------------- */

.novedades-page .novedad-prioridad {
    padding: 5px 9px;
    font-size: 11.5px;
}

/* ---------------------------------------------------------
   FILAS
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-table tbody tr {
    transition:
        background-color 0.15s ease;
}

.novedades-page .programacion-mensual-table tbody tr:hover {
    background: #F8FAFC;
}

/* ---------------------------------------------------------
   ESPACIADO GENERAL
   --------------------------------------------------------- */

.novedades-page .programacion-mensual-calendar-card {
    overflow: hidden;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .novedades-page .programacion-page-heading h1 {
        font-size: 25px;
    }

    .novedades-page .programacion-mensual-table th,
    .novedades-page .programacion-mensual-table td {
        padding: 8px 5px;
        font-size: 12px;
    }

    .novedades-page .programacion-mensual-table td:nth-child(1),
    .novedades-page .programacion-mensual-table td:nth-child(5) {
        font-size: 11.5px;
    }

    .novedades-page .novedad-btn-ver {
        min-width: 48px;
        padding: 5px 8px;
    }
}
/* =========================================================
   SGV — MÓDULO NOVEDADES
   Diseño definitivo
   ========================================================= */

.novedades-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* =========================================================
   ENCABEZADO PRINCIPAL
   ========================================================= */

.novedades-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.novedades-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.novedades-header-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #EEF4FB;
    font-size: 28px;
}

.novedades-header h1 {
    margin: 0 0 5px;
    color: var(--sgv-primary-dark);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
}

.novedades-header p {
    margin: 0;
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

.novedades-header-actions {
    flex-shrink: 0;
}

/* =========================================================
   MENSAJES
   ========================================================= */

.novedades-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.novedades-alert-success {
    color: var(--sgv-success);
    background: var(--sgv-success-bg);
    border: 1px solid #A8DCC7;
}

.novedades-alert-error {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
    border: 1px solid #F2B8B5;
}

/* =========================================================
   CONTEXTO DEL PUESTO
   ========================================================= */

.novedades-context-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    margin-bottom: 18px;
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(11, 49, 95, .06);
}

.novedades-context-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #FFF6D8;
    font-size: 23px;
}

.novedades-context-content {
    min-width: 0;
}

.novedades-context-content h2 {
    margin: 0 0 5px;
    color: var(--sgv-primary);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
}

.novedades-context-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.novedades-context-details strong {
    color: var(--sgv-primary);
}

/* =========================================================
   MÓDULO PRINCIPAL
   ========================================================= */

.novedades-module {
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(11, 49, 95, .06);
    overflow: hidden;
}

/* =========================================================
   CABECERA DEL MÓDULO
   ========================================================= */

.novedades-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--sgv-border);
    background: #FAFBFC;
}

.novedades-module-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.novedades-module-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #FFF6D8;
    font-size: 20px;
}

.novedades-module-title h2 {
    margin: 0 0 3px;
    color: var(--sgv-primary-dark);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.novedades-module-title p {
    margin: 0;
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

.novedades-module-action {
    flex-shrink: 0;
}

.novedades-module-action .sgv-btn {
    white-space: nowrap;
}

/* =========================================================
   TABLA
   ========================================================= */

.novedades-table-container {
    width: 100%;
    overflow: hidden;
}

.novedades-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Encabezado */

.novedades-table thead th {
    padding: 11px 9px;
    color: var(--sgv-primary-dark);
    background: #EEF3F8;
    border-bottom: 1px solid var(--sgv-border);
    border-right: 1px solid var(--sgv-border);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
}

.novedades-table thead th:last-child {
    border-right: none;
}

/* Celdas */

.novedades-table tbody td {
    padding: 11px 9px;
    color: var(--sgv-text);
    background: var(--sgv-white);
    border-bottom: 1px solid var(--sgv-border);
    border-right: 1px solid var(--sgv-border);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: break-word;
}

.novedades-table tbody td:last-child {
    border-right: none;
}

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

.novedades-table tbody tr {
    transition: background-color .15s ease;
}

.novedades-table tbody tr:hover td {
    background: #F8FAFC;
}

/* =========================================================
   ANCHO DE COLUMNAS
   ========================================================= */

.novedades-table th:nth-child(1),
.novedades-table td:nth-child(1) {
    width: 13%;
}

.novedades-table th:nth-child(2),
.novedades-table td:nth-child(2) {
    width: 10%;
}

.novedades-table th:nth-child(3),
.novedades-table td:nth-child(3) {
    width: 11%;
}

.novedades-table th:nth-child(4),
.novedades-table td:nth-child(4) {
    width: 22%;
}

.novedades-table th:nth-child(5),
.novedades-table td:nth-child(5) {
    width: 23%;
}

.novedades-table th:nth-child(6),
.novedades-table td:nth-child(6) {
    width: 11%;
}

.novedades-table th:nth-child(7),
.novedades-table td:nth-child(7) {
    width: 10%;
}

/* =========================================================
   FECHA
   ========================================================= */

.novedades-col-fecha {
    white-space: nowrap;
}

.novedades-date,
.novedades-time {
    display: inline;
    margin: 0;
    color: var(--sgv-text);
    font-size: 15px;
    font-weight: 400;
}

/* =========================================================
   TIPO
   ========================================================= */

.novedades-type {
    font-weight: 600;
    color: var(--sgv-primary);
    font-size: 12.5px;
}

/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.novedades-col-descripcion {
    font-weight: 500;
}

/* =========================================================
   REPORTADO POR
   ========================================================= */

.novedades-col-reportado {
    font-size: 12.5px !important;
}

/* =========================================================
   PRIORIDADES
   ========================================================= */

.novedades-page .novedad-prioridad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.novedades-page .novedad-prioridad-baja {
    color: var(--sgv-info);
    background: var(--sgv-info-bg);
    border: 1px solid #B8CDF2;
}

.novedades-page .novedad-prioridad-media {
    color: var(--sgv-warning);
    background: var(--sgv-warning-bg);
    border: 1px solid #E8CC72;
}

.novedades-page .novedad-prioridad-alta {
    color: #B54708;
    background: #FFF1E8;
    border: 1px solid #F3C4A0;
}

.novedades-page .novedad-prioridad-critica {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
    border: 1px solid #F2B8B5;
}

.novedades-page .novedad-prioridad-default {
    color: var(--sgv-text-secondary);
    background: var(--sgv-bg);
    border: 1px solid var(--sgv-border);
}

/* =========================================================
   ESTADOS
   ========================================================= */

.novedades-page .novedad-estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.novedades-page .novedad-estado-abierta {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
    border: 1px solid #F2B8B5;
}

.novedades-page .novedad-estado-gestion {
    color: var(--sgv-warning);
    background: var(--sgv-warning-bg);
    border: 1px solid #E8CC72;
}

.novedades-page .novedad-estado-cerrada {
    color: var(--sgv-success);
    background: var(--sgv-success-bg);
    border: 1px solid #A8DCC7;
}

.novedades-page .novedad-estado-default {
    color: var(--sgv-text-secondary);
    background: var(--sgv-bg);
    border: 1px solid var(--sgv-border);
}

/* =========================================================
   BOTÓN VER
   ========================================================= */

.novedades-page .novedad-btn-ver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 11px;
    border: 1px solid var(--sgv-primary-light);
    border-radius: 6px;
    background: var(--sgv-white);
    color: var(--sgv-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color .15s ease,
        color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.novedades-page .novedad-btn-ver:hover {
    background: var(--sgv-primary);
    color: var(--sgv-white);
    border-color: var(--sgv-primary);
    box-shadow: 0 3px 8px rgba(11, 49, 95, .15);
}

/* =========================================================
   SIN NOVEDADES
   ========================================================= */

.novedades-empty {
    padding: 45px 25px;
    text-align: center;
}

.novedades-empty-icon {
    margin-bottom: 10px;
    font-size: 30px;
}

.novedades-empty h3 {
    margin: 0 0 6px;
    color: var(--sgv-primary-dark);
    font-size: 18px;
}

.novedades-empty p {
    margin: 0 0 18px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .novedades-header {
        align-items: flex-start;
    }

    .novedades-header h1 {
        font-size: 26px;
    }

    .novedades-module-header {
        align-items: flex-start;
    }

    .novedades-table {
        table-layout: auto;
    }

    .novedades-table th,
    .novedades-table td {
        font-size: 12px;
        padding: 8px 6px;
    }
}
/* =========================================================
/* Novedades — peso normal para datos principales */

.novedades-col-fecha,
.novedades-col-tipo,
.novedades-col-descripcion {
    font-weight: 400;
}

.novedades-col-fecha .novedades-date,
.novedades-col-fecha .novedades-time,
.novedades-col-tipo .novedades-type {
    font-weight: 400;
}
.novedades-col-fecha .novedades-date,
.novedades-col-fecha .novedades-time {
    display: inline;
    margin: 0;
    color: var(--sgv-text);
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.35;
}

/* =========================================================
   SGV — BASE MAESTRA DE DISEÑO
   Tipografía, colores y elementos comunes
   ========================================================= */

:root {
    --sgv-font-body: 15px;
    --sgv-font-small: 13px;
    --sgv-font-h1: 28px;
    --sgv-font-h2: 21px;
    --sgv-font-h3: 18px;
    --sgv-font-table: 14px;
}

/* TIPOGRAFÍA GENERAL */
body {
    font-size: var(--sgv-font-body);
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--sgv-primary-dark);
    font-family: inherit;
}

h1 {
    margin: 0 0 8px;
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h1);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    margin: 0 0 6px;
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h2);
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    margin: 0 0 5px;
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h3);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin: 0 0 10px;
    color: var(--sgv-text);
    font-size: var(--sgv-font-body);
    line-height: 1.5;
}

small {
    font-size: var(--sgv-font-small);
    line-height: 1.4;
}

/* TÍTULOS SGV EXISTENTES */
.sgv-subtitle {
    font-size: var(--sgv-font-body);
    color: var(--sgv-text-secondary);
}

.sgv-section-title {
    font-size: var(--sgv-font-h2);
    font-weight: 700;
}

/* ENCABEZADO DE PÁGINA */
.programacion-page-heading h1,
.employee-detail-heading h1 {
    font-size: var(--sgv-font-h1);
    color: var(--sgv-primary-dark);
    font-weight: 700;
}

.programacion-page-heading p,
.employee-detail-heading p {
    color: var(--sgv-text-secondary);
    font-size: var(--sgv-font-body);
}

/* ENCABEZADOS DE SECCIÓN */
.sgv-section-header,
.programacion-form-heading,
.programacion-period-heading,
.employee-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sgv-section-header h3,
.programacion-form-heading h2,
.programacion-period-heading h2,
.employee-card-heading h2 {
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h2);
    font-weight: 700;
    line-height: 1.3;
}

.sgv-section-header p,
.programacion-form-heading p,
.programacion-period-heading p,
.employee-card-heading p {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: var(--sgv-font-small);
    font-weight: 400;
}

/* ICONOS DE SECCIÓN */
.sgv-section-icon,
.programacion-section-icon,
.employee-section-icon,
.employee-card-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #EAF1F8;
    font-size: 19px;
}

/* FORMULARIOS */
.sgv-label {
    font-size: var(--sgv-font-body);
    font-weight: 700;
    color: var(--sgv-text);
}

.sgv-input,
.sgv-select,
.sgv-textarea {
    font-size: var(--sgv-font-body);
}

.sgv-help,
.programacion-field-help,
.employee-form-help {
    color: var(--sgv-text-secondary);
    font-size: var(--sgv-font-small);
}

/* TABLAS */
.sgv-table th {
    font-size: var(--sgv-font-table);
}

.sgv-table td {
    font-size: var(--sgv-font-table);
}

/* CONTEXTO DE PUESTO */
.sgv-context-information h2 {
    color: var(--sgv-primary-dark);
    font-size: var(--sgv-font-h2);
    font-weight: 700;
}

.sgv-context-details {
    font-size: var(--sgv-font-body);
}

.sgv-context-details span,
.sgv-context-details strong {
    font-size: var(--sgv-font-body);
}

.sgv-context-details strong {
    color: var(--sgv-text);
    font-weight: 600;
}

/* BOTONES */
.sgv-btn {
    font-size: var(--sgv-font-small);
}

/* TABLAS DE NOVEDADES */
.novedades-table thead th {
    font-size: var(--sgv-font-table);
}

.novedades-table tbody td {
    font-size: var(--sgv-font-table);
}

.novedades-col-fecha,
.novedades-col-tipo,
.novedades-col-descripcion {
    font-weight: 400;
}

.novedades-col-fecha .novedades-date,
.novedades-col-fecha .novedades-time,
.novedades-col-tipo .novedades-type {
    font-size: var(--sgv-font-table);
    font-weight: 400;
}

.novedades-col-fecha .novedades-date,
.novedades-col-fecha .novedades-time {
    display: inline;
    margin: 0;
    color: var(--sgv-text);
    line-height: 1.35;
}

/* =========================================================
   SGV — BASE MAESTRA DE LEGIBILIDAD
   Escala visual única para reducir fatiga visual
   ========================================================= */

:root {
    --sgv-font-body: 16px;
    --sgv-font-small: 14px;
    --sgv-font-h1: 30px;
    --sgv-font-h2: 22px;
    --sgv-font-h3: 19px;
    --sgv-font-table: 15px;
}

/* TEXTO GENERAL */
body {
    font-size: var(--sgv-font-body);
    line-height: 1.55;
}

p {
    font-size: var(--sgv-font-body);
    line-height: 1.55;
}

small {
    font-size: var(--sgv-font-small);
}

/* TÍTULOS */
h1 {
    font-size: var(--sgv-font-h1) !important;
    line-height: 1.2;
}

h2,
.sgv-section-title {
    font-size: var(--sgv-font-h2) !important;
    line-height: 1.3;
}

h3 {
    font-size: var(--sgv-font-h3) !important;
    line-height: 1.3;
}

/* ENCABEZADOS DE PÁGINA */
.programacion-page-heading h1,
.employee-detail-heading h1 {
    font-size: var(--sgv-font-h1) !important;
}

.programacion-page-heading p,
.employee-detail-heading p {
    font-size: var(--sgv-font-body) !important;
}

/* ENCABEZADOS DE SECCIÓN */
.sgv-section-header h3,
.programacion-form-heading h2,
.programacion-period-heading h2,
.employee-card-heading h2 {
    font-size: var(--sgv-font-h2) !important;
}

.sgv-section-header p,
.programacion-form-heading p,
.programacion-period-heading p,
.employee-card-heading p {
    font-size: var(--sgv-font-small) !important;
}

/* ETIQUETAS Y CAMPOS */
.sgv-label {
    font-size: var(--sgv-font-body) !important;
}

.sgv-input,
.sgv-select,
.sgv-textarea {
    font-size: var(--sgv-font-body) !important;
    min-height: 44px;
}

.sgv-help,
.programacion-field-help,
.employee-form-help {
    font-size: var(--sgv-font-small) !important;
}

/* TABLAS */
.sgv-table th,
.sgv-table td,
.novedades-table thead th,
.novedades-table tbody td {
    font-size: var(--sgv-font-table) !important;
}

/* FILTROS Y FORMULARIOS DE PROGRAMACIÓN */
.programacion-form .sgv-label,
.programacion-period-form .sgv-label {
    font-size: var(--sgv-font-body) !important;
}

.programacion-form .sgv-input,
.programacion-period-form .sgv-input {
    font-size: var(--sgv-font-body) !important;
    min-height: 44px;
}

/* DASHBOARD */
.dashboard-section-title {
    font-size: 16px !important;
}

.dashboard-card-description,
.dashboard-document-label,
.dashboard-document-description,
.dashboard-module small {
    font-size: 14px !important;
}

.dashboard-module strong {
    font-size: 15px !important;
}

/* CONTEXTO DEL PUESTO */
.sgv-context-information h2 {
    font-size: var(--sgv-font-h2) !important;
}

.sgv-context-details,
.sgv-context-details span,
.sgv-context-details strong {
    font-size: var(--sgv-font-body) !important;
}

/* BOTONES */
.sgv-btn {
    font-size: 15px !important;
    min-height: 44px;
}

/* DATOS PRINCIPALES DE NOVEDADES */
.novedades-col-fecha .novedades-date,
.novedades-col-fecha .novedades-time,
.novedades-col-tipo .novedades-type {
    font-size: var(--sgv-font-table) !important;
}

/* MÓVIL */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1,
    .sgv-title {
        font-size: 26px !important;
    }

    h2,
    .sgv-section-title {
        font-size: 20px !important;
    }
}

/* =========================================================
   CLIENTES — FORMULARIO NUEVO / EDITAR
   Distribución compacta y consistente
   ========================================================= */

.cliente-form-card .sgv-card-body {
    padding-top: 22px;
}

.cliente-form-grid {
    display: grid;
    grid-template-columns: 180px minmax(280px, 1.4fr) minmax(210px, 1fr);
    gap: 18px 24px;
    max-width: 1080px;
    align-items: end;
}

.cliente-form-grid .sgv-form-group {
    min-width: 0;
    margin: 0;
}

.cliente-field-nit {
    max-width: 220px;
}

.cliente-field-telefono {
    max-width: 240px;
}

.cliente-field-estado {
    max-width: 220px;
}

.cliente-form-full {
    grid-column: auto;
}

.cliente-field-direccion {
    grid-column: 1 / 3;
    min-width: 0;
}

.cliente-form-grid .sgv-input,
.cliente-form-grid .sgv-select {
    width: 100%;
    box-sizing: border-box;
}

.cliente-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    max-width: 1080px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--sgv-border);
}

.cliente-form-actions .sgv-btn {
    width: auto;
    min-width: 120px;
    flex: 0 0 auto;
}

@media (max-width: 900px) {

    .cliente-form-grid {
        grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr);
        max-width: none;
    }

    .cliente-field-contacto,
    .cliente-field-email,
    .cliente-field-ciudad,
    .cliente-field-estado,
    .cliente-field-direccion {
        max-width: none;
    }

    .cliente-field-direccion {
        grid-column: 1 / 2;
    }
}

@media (max-width: 600px) {

    .cliente-form-grid {
        grid-template-columns: 1fr;
    }

    .cliente-form-full {
        grid-column: auto;
    }

    .cliente-field-direccion {
        grid-column: auto;
    }

    .cliente-field-nit,
    .cliente-field-telefono,
    .cliente-field-estado {
        max-width: none;
    }

    .cliente-form-actions {
        justify-content: flex-end;
        flex-direction: row;
        align-items: center;
    }

    .cliente-form-actions .sgv-btn {
        width: auto;
        min-width: 120px;
    }
}


/* Ajuste final: botones de acciones del formulario de cliente */
.cliente-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.cliente-form-actions .sgv-btn {
    width: 185px;
    min-width: 185px;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 185px;
}

/* =========================================================
   FICHA DEL CLIENTE
   Estructura visual alineada con las fichas de Personal
   ========================================================= */

.cliente-ficha-header {
    align-items: center;
}

.cliente-ficha-label {
    margin-bottom: 5px;
    color: var(--sgv-gold-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
}

.cliente-ficha-icon {
    background: #EAF1F8;
    color: var(--sgv-primary);
}

.cliente-ficha-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 20px 24px;
    border: 1px solid var(--sgv-border);
    border-left: 4px solid var(--sgv-gold);
    background: var(--sgv-surface);
    box-shadow: 0 2px 7px rgba(11, 49, 95, .07);
}

.cliente-ficha-status-label {
    margin-bottom: 8px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.cliente-ficha-status-action {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cliente-ficha-status-text {
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

.cliente-ficha-status-text strong {
    color: var(--sgv-primary-dark);
}

.cliente-ficha-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 24px;
    margin-top: 24px;
}

.cliente-ficha-card {
    min-width: 0;
    overflow: hidden;
}

.cliente-ficha-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cliente-ficha-section-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    font-size: 22px;
    line-height: 1;
}

.cliente-ficha-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cliente-section-description {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 15px;
    line-height: 1.45;
}

.cliente-ficha-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 22px;
    margin: 0;
}

.cliente-ficha-details > div {
    min-width: 0;
}

.cliente-ficha-details dt {
    margin: 0 0 7px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.cliente-ficha-details dd {
    margin: 0;
    color: var(--sgv-black);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cliente-ficha-detail-full {
    grid-column: 1 / -1;
}

.cliente-contratos-card {
    margin-top: 24px;
}

.cliente-contratos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cliente-contratos-table th,
.cliente-contratos-table td {
    vertical-align: middle;
}

.cliente-contrato-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--sgv-info-bg);
    color: var(--sgv-primary);
    font-size: 13px;
    font-weight: 700;
}

.cliente-ficha-empty {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: var(--sgv-text-secondary);
}

.cliente-ficha-empty strong {
    color: var(--sgv-primary-dark);
    font-size: 16px;
}

.cliente-ficha-empty-icon {
    margin-bottom: 4px;
    font-size: 28px;
}

@media (max-width: 900px) {

    .cliente-ficha-grid {
        grid-template-columns: 1fr;
    }

    .cliente-ficha-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .cliente-ficha-status-action {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {

    .cliente-ficha-header {
        align-items: flex-start;
    }

    .cliente-ficha-status-action {
        flex-direction: column;
        align-items: flex-start;
    }

    .cliente-ficha-details {
        grid-template-columns: 1fr;
    }

    .cliente-ficha-detail-full {
        grid-column: auto;
    }

    .cliente-contratos-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cliente-contratos-header .sgv-btn {
        width: 100%;
    }
}


/* =========================================================
   CORRECCIÓN FINAL — FICHA DEL CLIENTE
   Evita que estilos generales de tarjetas alteren la ficha.
   ========================================================= */

.cliente-ficha-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100%;
}

.cliente-ficha-section-header > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.cliente-ficha-section-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    min-width: 0;
}

.cliente-ficha-status-action {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
    flex-wrap: wrap;
}

.cliente-ficha-status-action .sgv-btn {
    width: auto !important;
    min-width: 150px;
    flex: 0 0 auto;
}

.cliente-ficha-details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 34px !important;
    row-gap: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cliente-ficha-details > div {
    display: block !important;
    min-width: 0;
}

.cliente-ficha-details dt {
    display: block !important;
    margin: 0 0 7px !important;
}

.cliente-ficha-details dd {
    display: block !important;
    margin: 0 !important;
}

.cliente-ficha-detail-full {
    grid-column: 1 / -1 !important;
}

.cliente-ficha-card .sgv-card-header {
    justify-content: flex-start !important;
}

.cliente-contratos-header {
    justify-content: space-between !important;
}

.cliente-contratos-header .sgv-btn {
    width: auto !important;
    flex: 0 0 auto;
}

@media (max-width: 900px) {

    .cliente-ficha-details {
        grid-template-columns: 1fr !important;
    }

    .cliente-ficha-detail-full {
        grid-column: auto !important;
    }

    .cliente-ficha-status-action {
        justify-content: flex-start !important;
    }
}

/* =========================================================
   CONTRATOS — FORMULARIO Y FICHA
   ========================================================= */

.contrato-form-card .sgv-card-body {
    padding-top: 22px;
}

.contrato-section-description {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 15px;
    line-height: 1.45;
}

.contrato-form-grid {
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(180px, .9fr) minmax(210px, 1fr);
    gap: 18px 24px;
    max-width: 1080px;
    align-items: end;
}

.contrato-form-grid .sgv-form-group {
    min-width: 0;
    margin: 0;
}

.contrato-field-numero {
    grid-column: 1 / 2;
}

.contrato-field-estado {
    grid-column: 2 / 3;
    max-width: 230px;
}

.contrato-field-fecha {
    max-width: 220px;
}

.contrato-field-valor {
    max-width: 280px;
}

.contrato-field-objeto {
    grid-column: 1 / -1;
}

.contrato-form-grid .sgv-input,
.contrato-form-grid .sgv-select,
.contrato-form-grid .sgv-textarea {
    width: 100%;
    box-sizing: border-box;
}

.contrato-form-grid .sgv-textarea {
    min-height: 130px;
    resize: vertical;
}

.contrato-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    max-width: 1080px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--sgv-border);
}

.contrato-form-actions .sgv-btn {
    width: 185px;
    min-width: 185px;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 185px;
}

/* -------------------------
   FICHA DEL CONTRATO
   ------------------------- */

.contrato-ficha-label {
    margin-bottom: 5px;
    color: var(--sgv-gold-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
}

.contrato-ficha-icon {
    background: #EAF1F8;
    color: var(--sgv-primary);
}

.contrato-ficha-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 20px 24px;
    border: 1px solid var(--sgv-border);
    border-left: 4px solid var(--sgv-gold);
    background: var(--sgv-surface);
    box-shadow: 0 2px 7px rgba(11, 49, 95, .07);
}

.contrato-ficha-status-label {
    margin-bottom: 8px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.contrato-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
    font-size: 13px;
    font-weight: 800;
}

.contrato-ficha-client-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.contrato-ficha-client-summary span {
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

.contrato-ficha-client-summary strong {
    color: var(--sgv-primary-dark);
    font-size: 15px;
}

.contrato-ficha-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 24px;
    margin-top: 24px;
}

.contrato-ficha-card {
    min-width: 0;
    overflow: hidden;
}

.contrato-ficha-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100%;
}

.contrato-ficha-section-header > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.contrato-ficha-section-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    font-size: 22px;
}

.contrato-ficha-details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 22px;
    margin: 0;
    padding: 0;
}

.contrato-ficha-details > div {
    min-width: 0;
}

.contrato-ficha-details dt {
    margin: 0 0 7px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.contrato-ficha-details dd {
    margin: 0;
    color: var(--sgv-black);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.contrato-ficha-detail-full {
    grid-column: 1 / -1;
}

.contrato-ficha-details-single {
    grid-template-columns: 1fr;
}

.contrato-resumen-card {
    margin-top: 24px;
}

.contrato-resumen-text,
.contrato-resumen-muted {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.contrato-resumen-muted {
    margin-top: 10px;
    color: var(--sgv-text-secondary);
}

@media (max-width: 900px) {

    .contrato-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .contrato-field-numero,
    .contrato-field-estado,
    .contrato-field-fecha,
    .contrato-field-valor {
        max-width: none;
    }

    .contrato-ficha-grid {
        grid-template-columns: 1fr;
    }

    .contrato-ficha-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .contrato-ficha-client-summary {
        text-align: left;
    }
}

@media (max-width: 600px) {

    .contrato-form-grid {
        grid-template-columns: 1fr;
    }

    .contrato-field-numero,
    .contrato-field-estado,
    .contrato-field-fecha,
    .contrato-field-valor,
    .contrato-field-objeto {
        grid-column: auto;
        max-width: none;
    }

    .contrato-form-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .contrato-form-actions .sgv-btn {
        width: auto;
        min-width: 150px;
        flex: 0 0 150px;
    }

    .contrato-ficha-details {
        grid-template-columns: 1fr;
    }

    .contrato-ficha-detail-full {
        grid-column: auto;
    }
}

/* =========================================================
   PUESTOS DE SERVICIO — ESTRUCTURA VISUAL SGV
   ========================================================= */

.puestos-list-page,
.puestos-form-page,
.puestos-ficha-page {
    width: 100%;
}

.puesto-section-description {
    margin: 4px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 15px;
    line-height: 1.45;
}

/* LISTADO */
.puestos-list-card {
    margin-top: 22px;
}

.puestos-table th,
.puestos-table td {
    vertical-align: middle;
}

.puesto-table-link {
    color: var(--sgv-primary);
    font-weight: 700;
    text-decoration: none;
}

.puesto-table-link:hover {
    color: var(--sgv-primary-dark);
    text-decoration: underline;
}

.puesto-table-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.puesto-table-status.activo {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}

.puesto-table-status.inactivo {
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
}

.puesto-empty-state {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: var(--sgv-text-secondary);
}

.puesto-empty-state strong {
    color: var(--sgv-primary-dark);
    font-size: 16px;
}

.puesto-empty-icon {
    font-size: 30px;
}

/* FORMULARIO */
.puesto-form-card {
    margin-top: 22px;
}

.puesto-form-section + .puesto-form-section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--sgv-border);
}

.puesto-form-section .sgv-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.puesto-form-section .sgv-section-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    font-size: 21px;
}

.puesto-form-grid {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) minmax(210px, 1fr);
    gap: 18px 24px;
    max-width: 1080px;
    align-items: end;
}

.puesto-form-grid .sgv-form-group {
    min-width: 0;
    margin: 0;
}

.puesto-field-nombre {
    grid-column: 1 / 3;
}

.puesto-field-direccion {
    grid-column: 1 / -1;
}

.puesto-operativo-form-grid {
    grid-template-columns: minmax(160px, .8fr) minmax(160px, .8fr) minmax(220px, 1fr);
}

.puesto-field-supervisor {
    grid-column: 1 / 3;
}

.puesto-field-estado {
    max-width: 220px;
}

.puesto-form-grid .sgv-input,
.puesto-form-grid .sgv-select {
    width: 100%;
    box-sizing: border-box;
}

.puesto-form-grid small {
    display: block;
    margin-top: 6px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.puesto-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    max-width: 1080px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--sgv-border);
}

.puesto-form-actions .sgv-btn {
    width: 185px;
    min-width: 185px;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 185px;
}

/* FICHA */
.puestos-ficha-page .puesto-ficha-label {
    margin-bottom: 5px;
    color: var(--sgv-gold-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
}

.puestos-ficha-page .puesto-header {
    display: none;
}

.puestos-ficha-page .puesto-card {
    margin-top: 24px;
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(11, 49, 95, .06);
    overflow: hidden;
}

.puestos-ficha-page .puesto-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--sgv-border);
    background: #F8FAFC;
}

.puestos-ficha-page .puesto-card-header h2 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 19px;
}

.puestos-ficha-page .puesto-card-body {
    padding: 22px;
}

.puestos-ficha-page .puesto-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px;
    background: var(--sgv-primary-dark);
    color: var(--sgv-white);
}

.puestos-ficha-page .puesto-principal h2 {
    margin: 0 0 5px;
    color: var(--sgv-white);
    font-size: 24px;
}

.puestos-ficha-page .puesto-principal p {
    margin: 0;
    color: rgba(255,255,255,.85);
    font-size: 14px;
}

.puestos-ficha-page .estado {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.puestos-ficha-page .estado.activo {
    background: var(--sgv-success-bg);
    color: var(--sgv-success);
}

.puestos-ficha-page .estado.inactivo {
    background: var(--sgv-danger-bg);
    color: var(--sgv-danger);
}

.puestos-ficha-page .estado-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.puestos-ficha-page .puesto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.puestos-ficha-page .puesto-dato {
    padding: 15px;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    background: var(--sgv-white);
}

.puestos-ficha-page .puesto-dato-label {
    display: block;
    margin-bottom: 6px;
    color: var(--sgv-text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.puestos-ficha-page .puesto-dato-valor {
    display: block;
    color: var(--sgv-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.puestos-ficha-page .puesto-dato-valor.normal {
    font-weight: 500;
}

.puestos-ficha-page .puesto-operacion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.puestos-ficha-page .puesto-operacion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    background: var(--sgv-white);
}

.puestos-ficha-page .puesto-icono {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    color: var(--sgv-primary);
    font-size: 20px;
    font-weight: 800;
}

.puestos-ficha-page .puesto-operacion-item small {
    display: block;
    margin-bottom: 3px;
    color: var(--sgv-text-secondary);
    font-size: 12px;
}

.puestos-ficha-page .puesto-operacion-item strong {
    display: block;
    color: var(--sgv-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.puestos-ficha-page .puesto-secciones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.puestos-ficha-page .puesto-seccion-futura {
    padding: 18px;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    background: #F8FAFC;
}

.puestos-ficha-page .puesto-seccion-futura strong {
    display: block;
    margin-bottom: 5px;
    color: var(--sgv-primary-dark);
}

.puestos-ficha-page .puesto-seccion-futura span {
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.puestos-ficha-page .puesto-seccion-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.puestos-ficha-page .puesto-seccion-link:hover {
    transform: translateY(-3px);
    background: #F8FAFC;
    border-color: var(--sgv-primary-light);
    box-shadow: 0 8px 18px rgba(11, 49, 95, .12);
}

.puestos-ficha-page .puesto-seccion-link:hover strong {
    color: var(--sgv-primary);
}

@media (max-width: 900px) {

    .puesto-form-grid,
    .puesto-operativo-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .puesto-field-nombre,
    .puesto-field-direccion,
    .puesto-field-supervisor {
        grid-column: 1 / -1;
    }

    .puesto-field-estado {
        max-width: none;
    }

    .puestos-ficha-page .puesto-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .puestos-ficha-page .puesto-secciones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .puesto-form-grid,
    .puesto-operativo-form-grid,
    .puestos-ficha-page .puesto-grid,
    .puestos-ficha-page .puesto-operacion,
    .puestos-ficha-page .puesto-secciones {
        grid-template-columns: 1fr;
    }

    .puesto-field-nombre,
    .puesto-field-direccion,
    .puesto-field-supervisor {
        grid-column: auto;
    }

    .puestos-ficha-page .puesto-principal {
        flex-direction: column;
        align-items: flex-start;
    }

    .puesto-form-actions {
        flex-wrap: wrap;
    }

    .puesto-form-actions .sgv-btn {
        width: auto;
        min-width: 150px;
        flex: 0 0 150px;
    }
}

/* =========================================================
   AJUSTE FINAL — FORMULARIO NUEVO / EDITAR PUESTO
   Campos compactos y botones uniformes
   ========================================================= */

.puesto-form-grid {
    grid-template-columns:
        minmax(220px, 1.2fr)
        minmax(180px, .9fr)
        minmax(180px, .8fr) !important;
    gap: 18px 24px !important;
    max-width: 1120px !important;
}

/* Cliente y contrato en la misma fila */
.puesto-field-cliente {
    grid-column: 1 / 3 !important;
}

.puesto-field-contrato {
    grid-column: 3 / 4 !important;
}

/* Nombre ocupa más espacio; ciudad queda compacta */
.puesto-field-nombre {
    grid-column: 1 / 3 !important;
}

.puesto-field-ciudad {
    grid-column: 3 / 4 !important;
}

/* Dirección completa */
.puesto-field-direccion {
    grid-column: 1 / -1 !important;
}

/* Formulario operativo */
.puesto-operativo-form-grid {
    grid-template-columns:
        minmax(150px, .7fr)
        minmax(150px, .7fr)
        minmax(220px, 1fr) !important;
    max-width: 1120px !important;
}

/* Supervisor ocupa dos columnas */
.puesto-field-supervisor {
    grid-column: 1 / 3 !important;
}

/* Estado compacto */
.puesto-field-estado {
    grid-column: 3 / 4 !important;
    max-width: 220px !important;
}

/* Campos de texto: evitar anchos visualmente exagerados */
.puesto-form-grid .sgv-input,
.puesto-form-grid .sgv-select {
    min-width: 0;
}

/* Botones: exactamente iguales */
.puesto-form-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
}

.puesto-form-actions .sgv-btn {
    width: 185px !important;
    min-width: 185px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex: 0 0 185px !important;
}

@media (max-width: 900px) {

    .puesto-form-grid,
    .puesto-operativo-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: none !important;
    }

    .puesto-field-cliente,
    .puesto-field-contrato,
    .puesto-field-nombre,
    .puesto-field-ciudad,
    .puesto-field-supervisor,
    .puesto-field-estado {
        grid-column: auto !important;
        max-width: none !important;
    }

    .puesto-field-direccion {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 650px) {

    .puesto-form-grid,
    .puesto-operativo-form-grid {
        grid-template-columns: 1fr !important;
    }

    .puesto-field-cliente,
    .puesto-field-contrato,
    .puesto-field-nombre,
    .puesto-field-ciudad,
    .puesto-field-direccion,
    .puesto-field-supervisor,
    .puesto-field-estado {
        grid-column: auto !important;
        max-width: none !important;
    }

    .puesto-form-actions {
        flex-wrap: wrap !important;
    }

    .puesto-form-actions .sgv-btn {
        width: 150px !important;
        min-width: 150px !important;
        flex: 0 0 150px !important;
    }
}


/* =========================================================
   AJUSTE — ESTADO EN FORMULARIO DE PUESTO
   Alineación superior con Supervisor responsable
   ========================================================= */

.puesto-operativo-form-grid {
    align-items: start !important;
}

.puesto-field-supervisor,
.puesto-field-estado {
    align-self: start !important;
}

.puesto-field-estado {
    padding-top: 0 !important;
}

.puesto-field-estado .sgv-select {
    width: 100%;
    max-width: 220px;
}


/* =========================================================
   AJUSTE — PROPORCIÓN CAMPOS INFORMACIÓN GENERAL PUESTO
   Más espacio para Contrato y Ciudad
   ========================================================= */

.puesto-form-grid {
    grid-template-columns:
        minmax(200px, 1.05fr)
        minmax(170px, .85fr)
        minmax(190px, .90fr) !important;
}

/* Cliente ocupa las dos primeras columnas */
.puesto-field-cliente {
    grid-column: 1 / 3 !important;
}

/* Contrato utiliza la tercera columna */
.puesto-field-contrato {
    grid-column: 3 / 4 !important;
}

/* Nombre del puesto ocupa las dos primeras columnas */
.puesto-field-nombre {
    grid-column: 1 / 3 !important;
}

/* Ciudad queda con una columna más amplia */
.puesto-field-ciudad {
    grid-column: 3 / 4 !important;
}


/* =========================================================
   PUESTOS — PROPORCIÓN INFORMACIÓN GENERAL
   Cliente/Nombre más compactos | Contrato/Ciudad más amplios
   ========================================================= */

.puesto-form-grid {
    grid-template-columns:
        minmax(0, 65fr)
        minmax(0, 35fr) !important;
}

/* Cliente y Nombre del puesto: 65% */
.puesto-field-cliente,
.puesto-field-nombre {
    grid-column: 1 / 2 !important;
}

/* Contrato y Ciudad: 35% */
.puesto-field-contrato,
.puesto-field-ciudad {
    grid-column: 2 / 3 !important;
}

/* En la sección operativa se conserva su distribución independiente */
.puesto-operativo-form-grid {
    grid-template-columns:
        minmax(150px, .7fr)
        minmax(150px, .7fr)
        minmax(220px, 1fr) !important;
}

@media (max-width: 900px) {

    .puesto-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .puesto-field-cliente,
    .puesto-field-contrato,
    .puesto-field-nombre,
    .puesto-field-ciudad {
        grid-column: auto !important;
    }
}

@media (max-width: 650px) {

    .puesto-form-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   PUESTOS — CABECERA PRINCIPAL DE LA FICHA
   Fondo claro en lugar del azul oscuro
   ========================================================= */

.puestos-ficha-page .puesto-principal {
    background: #F8FAFC !important;
    color: var(--sgv-primary-dark) !important;
    border: 1px solid var(--sgv-border);
    border-left: 5px solid var(--sgv-gold);
    box-shadow: 0 3px 12px rgba(11, 49, 95, .06);
}

.puestos-ficha-page .puesto-principal h2 {
    color: var(--sgv-primary-dark) !important;
}

.puestos-ficha-page .puesto-principal p {
    color: var(--sgv-text-secondary) !important;
}


/* =========================================================
   PUESTOS — BLOQUE OPERATIVO SIN REPETIR EL NOMBRE
   ========================================================= */

.puestos-ficha-page .puesto-principal-label {
    margin-bottom: 6px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.puestos-ficha-page .puesto-principal-service {
    margin: 0;
    color: var(--sgv-primary-dark) !important;
    font-size: 17px;
    font-weight: 700;
}


/* =========================================================
   PROGRAMACIÓN DEL PUESTO — ESTRUCTURA VISUAL UNIFICADA
   ========================================================= */

.programacion-mensual-page {
    width: 100%;
}

.programacion-mensual-page .sgv-page-header {
    margin-bottom: 22px;
}

.programacion-mensual-page .programacion-mensual-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.programacion-mensual-page .programacion-period-card,
.programacion-mensual-page .programacion-mensual-period-card,
.programacion-mensual-page .programacion-mensual-calendar-card {
    margin-top: 20px;
}

/* Identificación del puesto: label destacado, valores normales */
.programacion-mensual-page .programacion-period-heading p {
    margin: 5px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.programacion-mensual-page .programacion-period-heading h2 {
    margin: 0;
    color: var(--sgv-primary-dark);
}

.programacion-data-label {
    display: inline-block;
    margin-right: 5px;
    color: var(--sgv-text-secondary);
    font-weight: 700;
}

.programacion-data-value {
    color: var(--sgv-text);
    font-weight: 400;
}

/* Periodo */
.programacion-mensual-page .programacion-mensual-period {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.programacion-mensual-page .programacion-mensual-period-label {
    display: block;
    margin-bottom: 5px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
}

.programacion-mensual-page .programacion-mensual-period h2 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 24px;
}

.programacion-mensual-page .programacion-month-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Calendario */
.programacion-mensual-page .programacion-mensual-section-heading {
    margin-bottom: 18px;
}

.programacion-mensual-page .programacion-mensual-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
}

.programacion-mensual-page .programacion-mensual-table {
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.programacion-mensual-page .programacion-mensual-table th,
.programacion-mensual-page .programacion-mensual-table td {
    font-size: 14px;
}

.programacion-mensual-page .programacion-person-name {
    color: var(--sgv-text);
    font-weight: 400;
}

.programacion-mensual-page .programacion-person-role {
    color: var(--sgv-text-secondary);
    font-weight: 400;
}

/* Valores numéricos del resumen: normales, no bold */
.programacion-mensual-page .programacion-summary-card strong {
    color: var(--sgv-text);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
}

.programacion-mensual-page .programacion-summary-card span {
    color: var(--sgv-text-secondary);
    font-size: 14px;
    font-weight: 700;
}

/* Botones del encabezado y navegación */
.programacion-mensual-page .programacion-mensual-actions .sgv-btn,
.programacion-mensual-page .programacion-month-nav .sgv-btn {
    min-height: 44px;
}

/* Estado vacío */
.programacion-mensual-page .programacion-mensual-empty h3 {
    color: var(--sgv-primary-dark);
}

.programacion-mensual-page .programacion-mensual-empty p {
    color: var(--sgv-text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .programacion-mensual-page .programacion-mensual-period {
        align-items: flex-start;
        flex-direction: column;
    }

    .programacion-mensual-page .programacion-month-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 650px) {
    .programacion-mensual-page .programacion-mensual-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .programacion-mensual-page .programacion-month-nav .sgv-btn {
        flex: 1 1 auto;
    }
}


/* =========================================================
   CORRECCIÓN — NAVEGACIÓN DEL PERIODO
   El contenedor no debe verse como un botón adicional
   ========================================================= */

.programacion-mensual-page .programacion-month-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;

    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;

    box-sizing: border-box !important;
    text-decoration: none !important;
}

.programacion-mensual-page .programacion-month-nav .sgv-btn {
    position: relative;
    z-index: 1;
    margin: 0 !important;
}


/* =========================================================
   PROGRAMACIÓN — BOTONES DEL FORMULARIO NUEVA PROGRAMACIÓN
   Mismo tamaño, altura y alineación
   ========================================================= */

.programacion-form-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: 100%;
    margin-top: 24px !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--sgv-border);
    box-sizing: border-box;
}

.programacion-form-actions .sgv-btn,
.programacion-form-actions button,
.programacion-form-actions a {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 190px !important;
    line-height: 1.15 !important;
    text-align: center !important;
}

.programacion-form-actions .sgv-btn-primary,
.programacion-form-actions button[type="submit"] {
    white-space: normal !important;
}

@media (max-width: 600px) {
    .programacion-form-actions {
        flex-wrap: wrap !important;
    }

    .programacion-form-actions .sgv-btn,
    .programacion-form-actions button,
    .programacion-form-actions a {
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        flex: 0 0 150px !important;
    }
}


/* =========================================================
   NOVEDAD — FICHA DETALLE UNIFICADA
   ========================================================= */

.novedades-page .novedad-detalle-card {
    width: 100%;
    box-sizing: border-box;
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(11, 49, 95, .07);
    overflow: hidden;
}

.novedades-page .novedad-detalle-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--sgv-border);
}

.novedades-page .novedad-detalle-identificacion {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.novedades-page .novedad-detalle-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #EAF1F8;
    font-size: 27px;
}

.novedades-page .novedad-detalle-kicker {
    margin-bottom: 4px;
    color: var(--sgv-gold-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.novedades-page .novedad-detalle-top h2 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 24px;
    line-height: 1.2;
}

.novedades-page .novedad-detalle-top p {
    margin: 6px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 15px;
}

.novedades-page .novedad-detalle-estados {
    display: flex;
    align-items: stretch;
    gap: 28px;
    flex-shrink: 0;
}

.novedades-page .novedad-estado-item {
    min-width: 105px;
    padding-left: 22px;
    border-left: 1px solid var(--sgv-border);
}

.novedades-page .novedad-detalle-label {
    display: block;
    margin-bottom: 5px;
    color: var(--sgv-text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.novedades-page .novedad-detalle-value {
    display: block;
    color: var(--sgv-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

.novedades-page .novedad-detalle-section {
    padding: 26px 30px 28px;
}

.novedades-page .novedad-detalle-section + .novedad-detalle-section {
    border-top: 1px solid var(--sgv-border);
}

.novedades-page .novedad-detalle-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.novedades-page .novedad-detalle-section-heading .sgv-section-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    font-size: 21px;
}

.novedades-page .novedad-detalle-section-heading h3 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 20px;
    line-height: 1.2;
}

.novedades-page .novedad-detalle-section-heading p {
    margin: 5px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

.novedades-page .novedad-detalle-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 22px;
}

.novedades-page .novedad-detalle-field {
    min-width: 0;
}

.novedades-page .novedad-detalle-field-full {
    grid-column: 1 / -1;
}

.novedades-page .novedad-detalle-text {
    color: var(--sgv-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    white-space: normal;
}

.novedades-page .novedad-detalle-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 30px 24px;
    border-top: 1px solid var(--sgv-border);
    background: #FAFBFC;
}

.novedades-page .novedad-detalle-actions .sgv-btn {
    width: 190px;
    min-width: 190px;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

@media (max-width: 850px) {
    .novedades-page .novedad-detalle-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .novedades-page .novedad-detalle-estados {
        width: 100%;
    }

    .novedades-page .novedad-estado-item {
        flex: 1;
    }

    .novedades-page .novedad-detalle-info-grid {
        grid-template-columns: 1fr;
    }

    .novedades-page .novedad-detalle-field-full {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .novedades-page .novedad-detalle-top,
    .novedades-page .novedad-detalle-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .novedades-page .novedad-detalle-estados {
        flex-direction: column;
        gap: 10px;
    }

    .novedades-page .novedad-estado-item {
        padding-left: 0;
        padding-top: 10px;
        border-left: 0;
        border-top: 1px solid var(--sgv-border);
    }

    .novedades-page .novedad-detalle-actions {
        padding-left: 20px;
        padding-right: 20px;
        flex-wrap: wrap;
    }

    .novedades-page .novedad-detalle-actions .sgv-btn {
        width: 150px;
        min-width: 150px;
    }
}


/* =========================================================
   NOVEDADES — FORMULARIO UNIFICADO
   ========================================================= */

.novedades-page .novedad-form-context {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 22px;
    padding: 24px 28px;
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 15px;
    box-shadow: 0 4px 14px rgba(11, 49, 95, .06);
}

.novedades-page .novedad-form-context-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #EAF1F8;
    font-size: 23px;
}

.novedades-page .novedad-form-context-main {
    min-width: 0;
}

.novedades-page .novedad-form-context-main h2 {
    margin: 0 0 8px;
    color: var(--sgv-primary-dark);
    font-size: 23px;
    line-height: 1.2;
}

.novedades-page .novedad-form-context-data {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    color: var(--sgv-text);
    font-size: 15px;
}

.novedades-page .novedad-form-label {
    margin-right: 5px;
    color: var(--sgv-text-secondary);
    font-weight: 700;
}

.novedades-page .novedad-form-value {
    color: var(--sgv-text);
    font-weight: 400;
}

.novedades-page .novedad-form-card {
    width: 100%;
    box-sizing: border-box;
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 15px;
    box-shadow: 0 4px 14px rgba(11, 49, 95, .06);
    overflow: hidden;
}

.novedades-page .novedad-form-section {
    padding: 26px 28px 28px;
}

.novedades-page .novedad-form-section + .novedad-form-section {
    border-top: 1px solid var(--sgv-border);
}

.novedades-page .novedad-form-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.novedades-page .novedad-form-section-heading .sgv-section-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    font-size: 21px;
}

.novedades-page .novedad-form-section-heading h3 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 20px;
    line-height: 1.2;
}

.novedades-page .novedad-form-section-heading p {
    margin: 5px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

.novedades-page .novedad-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 20px;
}

.novedades-page .novedad-form-full {
    grid-column: 1 / -1;
}

.novedades-page .novedad-form-grid .sgv-form-group {
    min-width: 0;
}

.novedades-page .novedad-form-grid .sgv-input {
    width: 100%;
    box-sizing: border-box;
}

.novedades-page .novedad-form-textarea {
    min-height: 112px;
    resize: vertical;
}

.novedades-page .novedad-form-help {
    margin-top: 6px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.novedades-page .sgv-fecha-registro {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid var(--sgv-border);
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--sgv-text);
    font-size: 16px;
    font-weight: 400;
}

.novedades-page .novedad-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px 24px;
    border-top: 1px solid var(--sgv-border);
    background: #FAFBFC;
}

.novedades-page .novedad-form-actions .sgv-btn {
    width: 190px;
    min-width: 190px;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

@media (max-width: 850px) {
    .novedades-page .novedad-form-grid {
        grid-template-columns: 1fr;
    }

    .novedades-page .novedad-form-full {
        grid-column: auto;
    }

    .novedades-page .novedad-form-context-data {
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 600px) {
    .novedades-page .novedad-form-context,
    .novedades-page .novedad-form-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .novedades-page .novedad-form-actions {
        padding-left: 20px;
        padding-right: 20px;
        flex-wrap: wrap;
    }

    .novedades-page .novedad-form-actions .sgv-btn {
        width: 150px;
        min-width: 150px;
    }
}


/* =========================================================
   NOVEDADES — EDITAR — MISMO PATRÓN DE REGISTRAR
   ========================================================= */

/* El formulario de edición utiliza exactamente la misma
   estructura visual que Registrar novedad. */
.novedades-page .novedad-form-card {
    width: 100%;
    box-sizing: border-box;
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 15px;
    box-shadow: 0 4px 14px rgba(11, 49, 95, .06);
    overflow: hidden;
}

.novedades-page .novedad-form-context {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 22px;
    padding: 24px 28px;
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 15px;
    box-shadow: 0 4px 14px rgba(11, 49, 95, .06);
}

.novedades-page .novedad-form-context-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #EAF1F8;
    font-size: 23px;
}

.novedades-page .novedad-form-context-main {
    min-width: 0;
}

.novedades-page .novedad-form-context-main h2 {
    margin: 0 0 8px;
    color: var(--sgv-primary-dark);
    font-size: 23px;
    line-height: 1.2;
}

.novedades-page .novedad-form-context-data {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    color: var(--sgv-text);
    font-size: 15px;
}

.novedades-page .novedad-form-label {
    margin-right: 5px;
    color: var(--sgv-text-secondary);
    font-weight: 700;
}

.novedades-page .novedad-form-value {
    color: var(--sgv-text);
    font-weight: 400;
}

.novedades-page .novedad-form-section {
    padding: 26px 28px 28px;
}

.novedades-page .novedad-form-section + .novedad-form-section {
    border-top: 1px solid var(--sgv-border);
}

.novedades-page .novedad-form-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.novedades-page .novedad-form-section-heading .sgv-section-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EAF1F8;
    font-size: 21px;
}

.novedades-page .novedad-form-section-heading h3 {
    margin: 0;
    color: var(--sgv-primary-dark);
    font-size: 20px;
    line-height: 1.2;
}

.novedades-page .novedad-form-section-heading p {
    margin: 5px 0 0;
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

.novedades-page .novedad-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 20px;
}

.novedades-page .novedad-form-full {
    grid-column: 1 / -1;
}

.novedades-page .novedad-form-textarea {
    min-height: 112px;
    resize: vertical;
}

.novedades-page .novedad-form-help {
    margin-top: 6px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.novedades-page .novedad-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px 24px;
    border-top: 1px solid var(--sgv-border);
    background: #FAFBFC;
}

.novedades-page .novedad-form-actions .sgv-btn {
    width: 190px;
    min-width: 190px;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

@media (max-width: 850px) {
    .novedades-page .novedad-form-grid {
        grid-template-columns: 1fr;
    }

    .novedades-page .novedad-form-full {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .novedades-page .novedad-form-context,
    .novedades-page .novedad-form-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .novedades-page .novedad-form-actions {
        padding-left: 20px;
        padding-right: 20px;
        flex-wrap: wrap;
    }

    .novedades-page .novedad-form-actions .sgv-btn {
        width: 150px;
        min-width: 150px;
    }
}
/* =========================================================
   SGV — TURNOS
   Formulario unificado con el estándar de Novedades
   ========================================================= */

.turnos-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* ---------------------------------------------------------
   CONTEXTO
   --------------------------------------------------------- */

.turnos-page .turnos-context-card {
    padding: 18px 22px;
    margin-bottom: 18px;
}

.turnos-page .turnos-context-card .programacion-period-heading {
    gap: 14px;
}

.turnos-page .turnos-context-card .programacion-section-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    background: #EEF4FB;
    font-size: 21px;
}

.turnos-page .turnos-context-card h2 {
    margin: 0 0 4px;
    color: var(--sgv-primary-dark);
    font-size: 21px;
    line-height: 1.2;
}

.turnos-page .turnos-context-card p {
    margin: 0;
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

/* ---------------------------------------------------------
   FORMULARIO PRINCIPAL
   --------------------------------------------------------- */

.turnos-page .turnos-form-card {
    padding: 0;
    overflow: hidden;
}

.turnos-page .turnos-form-card > .programacion-form-heading {
    padding: 18px 22px;
    margin: 0;
    border-bottom: 1px solid var(--sgv-border);
    background: #FAFBFC;
}

.turnos-page .turnos-form-card > .programacion-form-heading h2 {
    margin: 0 0 4px;
    color: var(--sgv-primary-dark);
    font-size: 21px;
    line-height: 1.2;
}

.turnos-page .turnos-form-card > .programacion-form-heading p {
    margin: 0;
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

/* ---------------------------------------------------------
   SECCIÓN DE DATOS
   --------------------------------------------------------- */

.turnos-page .turnos-form-section {
    padding: 22px;
    margin: 0;
}

.turnos-page .turnos-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.turnos-page .turnos-form-field-full {
    grid-column: 1 / -1;
}

.turnos-page .turnos-form-grid .sgv-form-group {
    min-width: 0;
}

.turnos-page .turnos-form-grid .sgv-label {
    display: block;
    margin-bottom: 7px;
    color: var(--sgv-primary-dark);
    font-size: 15px;
    font-weight: 700;
}

.turnos-page .turnos-form-grid .sgv-input,
.turnos-page .turnos-form-grid .sgv-select {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
}

.turnos-page .turnos-form-grid small {
    display: block;
    margin-top: 6px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

/* ---------------------------------------------------------
   DURACIÓN
   --------------------------------------------------------- */

.turnos-page .turnos-hours-display {
    display: flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid var(--sgv-border);
    border-radius: 7px;
    background: #F8FAFC;
    color: var(--sgv-primary-dark);
    font-size: 15px;
    font-weight: 600;
}

/* ---------------------------------------------------------
   CONSIDERACIONES
   --------------------------------------------------------- */

.turnos-page .turnos-guidance-section {
    margin: 0 22px;
    padding: 18px 0;
    border-top: 1px solid var(--sgv-border);
}

.turnos-page .turnos-guidance-section .sgv-section-header {
    margin-bottom: 12px;
}

.turnos-page .turnos-guidance-section .sgv-section-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 9px;
    background: #EEF4FB;
    font-size: 18px;
}

.turnos-page .turnos-guidance-section h3 {
    margin: 0 0 3px;
    color: var(--sgv-primary-dark);
    font-size: 18px;
}

.turnos-page .turnos-guidance-section p {
    margin: 0;
    color: var(--sgv-text-secondary);
    font-size: 13px;
}

.turnos-page .turnos-guidance-list {
    margin: 0;
    padding: 0 0 0 21px;
    color: var(--sgv-text);
    font-size: 14px;
    line-height: 1.55;
}

.turnos-page .turnos-guidance-list li {
    margin-bottom: 5px;
}

.turnos-page .turnos-guidance-list li:last-child {
    margin-bottom: 0;
}

.turnos-page .turnos-guidance-list strong {
    color: var(--sgv-primary-dark);
}

/* ---------------------------------------------------------
   ACCIONES — MISMO PATRÓN DE NOVEDADES
   --------------------------------------------------------- */

.turnos-page .turnos-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px 24px;
    border-top: 1px solid var(--sgv-border);
    background: #FAFBFC;
}

.turnos-page .turnos-form-actions .sgv-btn {
    width: 190px;
    min-width: 190px;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .turnos-page .turnos-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .turnos-page .turnos-form-field-full {
        grid-column: auto;
    }
}

@media (max-width: 600px) {

    .turnos-page .turnos-context-card {
        padding: 16px;
    }

    .turnos-page .turnos-form-section {
        padding: 18px 16px;
    }

    .turnos-page .turnos-guidance-section {
        margin: 0 16px;
    }

    .turnos-page .turnos-form-actions {
        padding-left: 20px;
        padding-right: 20px;
        flex-wrap: wrap;
    }

    .turnos-page .turnos-form-actions .sgv-btn {
        width: 150px;
        min-width: 150px;
    }
}
/* =========================================================
   SGV — TURNOS — LISTADO
   Estándar visual de módulos principales
   ========================================================= */

.turnos-page .turnos-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.turnos-page .turnos-summary-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 82px;
    padding: 16px 18px;
    box-sizing: border-box;
    background: var(--sgv-surface);
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(11, 49, 95, .06);
}

.turnos-page .turnos-summary-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #EAF1F8;
    font-size: 19px;
}

.turnos-page .turnos-summary-label {
    display: block;
    margin-bottom: 4px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.2;
}

.turnos-page .turnos-summary-value {
    display: block;
    color: var(--sgv-primary-dark);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.turnos-page .turnos-list-card {
    padding: 0;
    overflow: hidden;
}

.turnos-page .turnos-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 19px 22px;
    border-bottom: 1px solid var(--sgv-border);
    background: #FAFBFC;
}

.turnos-page .turnos-list-heading h2 {
    margin: 0 0 4px;
    color: var(--sgv-primary-dark);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.turnos-page .turnos-list-heading p {
    margin: 0;
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

.turnos-page .turnos-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.turnos-page .turnos-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.turnos-page .turnos-table th {
    padding: 13px 18px;
    background: #F7F9FB;
    border-bottom: 1px solid var(--sgv-border);
    color: var(--sgv-primary-dark);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.turnos-page .turnos-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--sgv-border);
    color: var(--sgv-text);
    font-size: 15px;
    vertical-align: middle;
}

.turnos-page .turnos-table tbody tr:last-child td {
    border-bottom: 0;
}

.turnos-page .turnos-table tbody tr:hover {
    background: #FBFCFD;
}

.turnos-page .turnos-name-cell strong {
    color: var(--sgv-text);
    font-size: 15px;
    font-weight: 600;
}

.turnos-page .turnos-duration {
    color: var(--sgv-text);
    font-weight: 600;
}

.turnos-page .turnos-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.turnos-page .turnos-status.is-active {
    color: var(--sgv-success);
    background: var(--sgv-success-bg);
}

.turnos-page .turnos-status.is-inactive {
    color: var(--sgv-danger);
    background: var(--sgv-danger-bg);
}

.turnos-page .turnos-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 5px 12px;
    border: 1px solid var(--sgv-border);
    border-radius: 6px;
    background: var(--sgv-white);
    color: var(--sgv-primary-light);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.turnos-page .turnos-action:hover {
    background: #EEF4FB;
    border-color: #B8CBE0;
    color: var(--sgv-primary-dark);
}

.turnos-page .turnos-empty {
    padding: 32px 18px !important;
    color: var(--sgv-text-secondary) !important;
    text-align: center !important;
}

@media (max-width: 1100px) {
    .turnos-page .turnos-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .turnos-page .turnos-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .turnos-page .turnos-summary-card {
        min-height: 74px;
    }

    .turnos-page .turnos-list-heading {
        padding: 17px 16px;
    }
}


/* =========================================================
   PROGRAMACIÓN — PRESENTACIÓN V8
   Todo el estilo visual de programación se centraliza aquí.
   No agregar CSS inline en las vistas PHP.
   ========================================================= */

.programacion-generation-result{margin:18px 0;padding:18px 20px;border:1px solid #c9d8e8;border-radius:14px;background:#f7fbff;}
.programacion-generation-result-label{font-weight:800;color:#0b315f;font-size:13px;letter-spacing:.5px;margin-bottom:12px;}
.programacion-generation-kpis{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin-bottom:16px;}
.programacion-generation-kpi{padding:12px;border-radius:10px;background:#fff;border:1px solid #dce6ef;}
.programacion-generation-kpi.ok{background:#eef8f0;border-color:#c9e6cf;}
.programacion-generation-kpi.warn{background:#fff8e8;border-color:#f0dfaa;}
.programacion-generation-kpi.danger{background:#fff0f0;border-color:#efc8c8;}
.programacion-generation-kpi-number{display:block;font-size:22px;color:#0b315f;}
.programacion-generation-kpi-number.ok{color:#20743b;}
.programacion-generation-kpi-number.warn{color:#9a6a00;}
.programacion-generation-kpi-number.danger{color:#b42318;}
.programacion-generation-kpi-label{font-size:12px;color:#5f7185;}
.programacion-generation-block{margin-top:10px;}
.programacion-generation-block.conflict{margin-top:14px;}
.programacion-generation-title{font-size:24px !important;line-height:1.25;margin:0;}
.programacion-generation-title.warn{color:#8a6200;}
.programacion-generation-title.danger{color:#b42318;}
.programacion-generation-detail{margin-top:7px;color:#5f7185;line-height:1.7;}
.programacion-generation-conflicts{margin-top:8px;display:flex;flex-direction:column;gap:7px;}
.programacion-generation-notice{margin-top:15px;padding:11px 13px;border-radius:9px;font-weight:700;}
.programacion-generation-notice.success{background:#eaf6ed;color:#216b35;}
.programacion-generation-notice.danger{background:#fff0f0;color:#a61b1b;}
.programacion-preview-errors-list{margin:6px 0 0 18px;}

.programacion-result-card{margin:0 0 22px;padding:20px 22px;border:1px solid #c9d8e8;border-radius:14px;background:#f7fbff;box-shadow:0 4px 14px rgba(11,49,95,.05);}
.programacion-result-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.programacion-result-kpi-label{font-size:15px;color:#5f7185;}
.programacion-result-number{color:#0b315f;}
.programacion-result-number.ok{color:#20743b;}
.programacion-result-number.warn{color:#9a6a00;}
.programacion-result-number.danger{color:#b42318;}
.programacion-result-kpi.ok{background:#eef8f0;border-color:#c9e6cf;}
.programacion-result-kpi.warn{background:#fff8e8;border-color:#f0dfaa;}
.programacion-result-kpi.danger{background:#fff0f0;border-color:#efc8c8;}
.programacion-result-existing{margin-top:9px;padding:9px 11px;border-radius:10px;background:#fffaf0;border:1px solid #f0dfaa;}
.programacion-result-section-title{font-size:24px !important;line-height:1.25;margin:0;}
.programacion-result-section-title.warn{color:#8a6200;}
.programacion-result-detail{margin-top:6px;color:#5f7185;font-size:18px;line-height:1.55;}
.programacion-result-conflicts-block{margin-top:12px;}
.programacion-result-conflicts{margin-top:7px;display:flex;flex-direction:column;gap:7px;}
.programacion-result-conflict{padding:8px 10px;border-radius:8px;background:#fff;border:1px solid #efd0d0;color:#5f2020;font-size:18px;line-height:1.55;}
.programacion-result-summary{margin-top:9px;padding:9px 11px;border-radius:9px;background:#eef5fb;color:#31506d;font-size:16px;line-height:1.45;}
.programacion-month-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;}
.programacion-month-title{margin:0;}
.programacion-month-subtitle{margin:5px 0 0;}
.programacion-month-count{font-size:24px;}
.programacion-empty-state{padding:40px 20px;text-align:center;background:#f8f9fa;border-radius:8px;}
.programacion-empty-icon{font-size:40px;}

@media (max-width:900px){
 .programacion-generation-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
 .programacion-month-summary{align-items:flex-start;}
}
@media (max-width:600px){
 .programacion-generation-kpis{grid-template-columns:1fr;}
 .programacion-month-summary{flex-direction:column;}
}

/* =========================================================
   SGV — NAVEGACIÓN PRINCIPAL
   Corrección visual para header(1/2).php
   ========================================================= */

.sgv-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 8px 28px;
    background: var(--sgv-primary-dark);
    color: var(--sgv-white);
    border-bottom: 3px solid var(--sgv-gold);
    box-shadow: var(--sgv-shadow-md);
    position: relative;
    z-index: 1000;
}

.sgv-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    color: var(--sgv-white) !important;
    text-decoration: none !important;
}

.sgv-topbar-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    display: block;
    flex: 0 0 62px;
}

.sgv-topbar-brand-divider {
    width: 1px;
    height: 42px;
    background: rgba(255,255,255,.22);
    flex: 0 0 1px;
}

.sgv-topbar-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sgv-topbar-brand-title {
    color: var(--sgv-white);
    font-size: 17px;
    line-height: 1.15;
    font-weight: 700;
}

.sgv-topbar-brand-subtitle {
    margin-top: 4px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    line-height: 1.2;
}

.sgv-topbar-brand-company {
    margin-top: 2px;
    color: var(--sgv-gold-light);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.sgv-main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.sgv-nav-link,
.sgv-nav-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 11px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: var(--sgv-radius-sm) !important;
    background: transparent !important;
    color: var(--sgv-white) !important;
    font: inherit;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none !important;
}

.sgv-nav-link:hover,
.sgv-nav-trigger:hover,
.sgv-nav-group.is-active .sgv-nav-trigger,
.sgv-nav-link.is-active {
    background: rgba(255,255,255,.10) !important;
    color: var(--sgv-white) !important;
}

.sgv-nav-group {
    position: relative;
    flex: 0 0 auto;
}

.sgv-nav-trigger {
    appearance: none;
    -webkit-appearance: none;
}

.sgv-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.sgv-nav-chevron {
    margin-left: 1px;
    font-size: 9px;
    opacity: .85;
}

.sgv-nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 255px;
    min-width: 255px;
    padding: 7px;
    background: var(--sgv-white);
    border: 1px solid var(--sgv-border);
    border-top: 3px solid var(--sgv-gold);
    border-radius: var(--sgv-radius-sm);
    box-shadow: var(--sgv-shadow-md);
    z-index: 9999;
}

.sgv-nav-group.is-open > .sgv-nav-dropdown {
    display: block;
}

.sgv-nav-dropdown-title {
    padding: 9px 11px 7px;
    color: var(--sgv-primary-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.sgv-nav-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px !important;
    margin: 0 !important;
    border-radius: var(--sgv-radius-sm);
    background: transparent !important;
    color: var(--sgv-text) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none !important;
    box-shadow: none !important;
}

.sgv-nav-dropdown a:hover,
.sgv-nav-dropdown a.is-active {
    background: #EEF3F8 !important;
    color: var(--sgv-primary) !important;
}

.sgv-nav-dropdown a.is-featured {
    color: var(--sgv-primary) !important;
    font-weight: 700;
}

.sgv-nav-dropdown-icon {
    width: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.sgv-nav-divider {
    height: 1px;
    margin: 5px 2px;
    background: var(--sgv-border);
}

.sgv-nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 5px;
    padding: 5px 9px;
    color: var(--sgv-white);
    white-space: nowrap;
}

.sgv-nav-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    color: var(--sgv-gold-light);
    font-size: 10px;
}

.sgv-nav-user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.sgv-nav-user-name {
    color: var(--sgv-white);
    font-size: 11px;
    font-weight: 700;
}

.sgv-nav-user-company {
    margin-top: 2px;
    color: rgba(255,255,255,.60);
    font-size: 9px;
}

.sgv-nav-logout {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 11px !important;
    margin-left: 2px !important;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--sgv-radius-sm);
    background: rgba(180,35,24,.16) !important;
    color: var(--sgv-white) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.sgv-nav-logout:hover {
    background: rgba(180,35,24,.30) !important;
    color: var(--sgv-white) !important;
}

.sgv-nav-mobile-toggle,
.sgv-nav-mobile-panel {
    display: none;
}

/* Evita que estilos globales conviertan los grupos en barras */
.sgv-topbar .sgv-main-nav,
.sgv-topbar .sgv-nav-group,
.sgv-topbar .sgv-nav-user {
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 1200px) {
    .sgv-topbar {
        gap: 14px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .sgv-topbar-brand {
        min-width: 285px;
    }

    .sgv-topbar-brand-title {
        font-size: 15px;
    }

    .sgv-nav-link,
    .sgv-nav-trigger {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 12px !important;
    }

    .sgv-nav-user-copy {
        display: none;
    }
}

@media (max-width: 900px) {
    .sgv-topbar {
        flex-wrap: wrap;
    }

    .sgv-topbar-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .sgv-main-nav {
        display: none;
    }

    .sgv-nav-mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 7px;
        background: rgba(255,255,255,.10);
        color: var(--sgv-white);
        font-size: 20px;
        cursor: pointer;
    }
}

/* =========================================================
   PROGRAMACIÓN — GENERADOR Y PREVISUALIZACIÓN
   Estilos centralizados en sgv.css. Sin CSS inline en PHP.
   ========================================================= */

.programacion-generator-section {
    margin-top: 4px;
    padding: 22px 24px;
    border: 1px solid var(--sgv-border);
    border-radius: 12px;
    background: #F8FAFC;
}

.programacion-generator-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.programacion-generator-title > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 9px;
    background: #EAF1F8;
    font-size: 20px;
}

.programacion-generator-title strong {
    display: block;
    color: var(--sgv-primary-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.programacion-generator-title small {
    display: block;
    margin-top: 4px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.programacion-mode-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.programacion-mode-option {
    display: block;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.programacion-mode-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.programacion-mode-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
    padding: 15px 16px;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    background: var(--sgv-white);
    transition: border-color var(--sgv-transition), background var(--sgv-transition), box-shadow var(--sgv-transition);
}

.programacion-mode-box strong {
    color: var(--sgv-primary-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.programacion-mode-box small {
    margin-top: 5px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

.programacion-mode-option:hover .programacion-mode-box {
    border-color: #9EB5CE;
    background: #FBFCFE;
}

.programacion-mode-option > input:checked + .programacion-mode-box {
    border-color: var(--sgv-primary);
    background: #EEF4FA;
    box-shadow: 0 0 0 1px var(--sgv-primary);
}

.programacion-mode-option > input:focus-visible + .programacion-mode-box {
    outline: 3px solid rgba(11, 49, 95, .16);
    outline-offset: 2px;
}

.programacion-period-section {
    margin-top: 22px;
}

.programacion-period-panel {
    display: none;
}

.programacion-period-panel.active {
    display: block;
}

.programacion-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.programacion-field-help {
    display: block;
    margin-top: 5px;
    color: var(--sgv-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.programacion-readonly {
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--sgv-border);
    border-radius: var(--sgv-radius-sm);
    background: #F8FAFC;
    color: var(--sgv-text);
    font-size: 14px;
    line-height: 20px;
}

.programacion-quin-options {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 40px;
    color: var(--sgv-text);
    font-size: 14px;
}

.programacion-quin-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.programacion-specific-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.programacion-specific-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.programacion-specific-list:empty {
    display: none;
}

.programacion-specific-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--sgv-border);
    border-radius: 999px;
    background: #F8FAFC;
    color: var(--sgv-text);
    font-size: 13px;
    font-weight: 600;
}

.programacion-weekdays {
    display: none;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--sgv-border);
    border-radius: 10px;
    background: #F8FAFC;
}

.programacion-weekdays.active {
    display: block;
}

.programacion-weekdays-title {
    margin-bottom: 10px;
    color: var(--sgv-primary-dark);
    font-size: 14px;
    font-weight: 700;
}

.programacion-weekdays-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.programacion-weekdays-grid label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid var(--sgv-border);
    border-radius: 7px;
    background: var(--sgv-white);
    color: var(--sgv-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.programacion-live-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 20px 24px;
    border: 1px solid #B8CBE0;
    border-radius: 12px;
    background: #EEF4FA;
}

.programacion-live-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: var(--sgv-primary);
    color: var(--sgv-white);
    font-size: 25px;
    font-weight: 700;
}

.programacion-live-summary-main {
    min-width: 0;
}

.programacion-live-summary-label {
    display: block;
    margin-bottom: 3px;
    color: var(--sgv-text-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
}

.programacion-live-summary-main > strong {
    display: block;
    color: var(--sgv-primary-dark);
    font-size: 22px;
    line-height: 1.25;
}

.programacion-live-summary-main > small {
    display: block;
    margin-top: 4px;
    color: var(--sgv-text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.programacion-live-summary-main .programacion-summary-note {
    margin-top: 3px;
    color: var(--sgv-text-secondary);
    font-size: 14px;
}

.programacion-preview {
    margin-top: 22px;
    padding: 22px 24px;
    border: 1px solid #B8CBE0;
    border-radius: 14px;
    background: #F7FBFF;
    box-shadow: var(--sgv-shadow-sm);
}

.programacion-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.programacion-preview-head strong {
    display: block;
    margin-top: 3px;
    color: var(--sgv-primary-dark);
    font-size: 21px;
    line-height: 1.3;
}

.programacion-preview-head small {
    display: block;
    margin-top: 4px;
    color: var(--sgv-text-secondary);
    font-size: 14px;
    line-height: 1.45;
}

.programacion-preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 5px 13px;
    border: 1px solid #E6C96E;
    border-radius: 999px;
    background: #FFF8E1;
    color: #8A6200;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.programacion-preview-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.programacion-preview-kpi {
    min-height: 88px;
    padding: 15px 16px;
    border: 1px solid var(--sgv-border);
    border-radius: 11px;
    background: var(--sgv-white);
}

.programacion-preview-kpi.ok {
    background: #EEF8F0;
    border-color: #C9E6CF;
}

.programacion-preview-kpi.warn {
    background: #FFF8E8;
    border-color: #F0DFAA;
}

.programacion-preview-kpi.danger {
    background: #FFF0F0;
    border-color: #EFC8C8;
}

.programacion-preview-kpi strong {
    display: block;
    color: var(--sgv-primary-dark);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
}

.programacion-preview-kpi.ok strong {
    color: #20743B;
}

.programacion-preview-kpi.warn strong {
    color: #9A6A00;
}

.programacion-preview-kpi.danger strong {
    color: #B42318;
}

.programacion-preview-kpi span {
    display: block;
    margin-top: 5px;
    color: #5F7185;
    font-size: 14px;
    line-height: 1.35;
}

.programacion-preview-errors,
.programacion-preview-list,
.programacion-preview-success {
    margin-top: 14px;
    padding: 17px 19px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.55;
}

.programacion-preview-errors {
    border: 1px solid #EFC8C8;
    background: #FFF0F0;
    color: #8A2B2B;
}

.programacion-preview-list.warn {
    border: 1px solid #F0DFAA;
    background: #FFF8E8;
    color: #6F5600;
}

.programacion-preview-list.danger {
    border: 1px solid #EFC8C8;
    background: #FFF0F0;
    color: #7A2222;
}

.programacion-preview-success {
    border: 1px solid #C9E6CF;
    background: #EEF8F0;
    color: #216B35;
}

.programacion-preview-section-title {
    display: block;
    margin-bottom: 9px;
    color: var(--sgv-primary-dark);
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.programacion-preview-section-title.success {
    display: inline;
    color: #216B35;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.programacion-preview-detail {
    display: block;
    margin-top: 4px;
    color: #31506D;
    font-size: 17px;
    line-height: 1.55;
}

.programacion-preview-detail-title {
    display: inline;
    color: #B42318;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.programacion-preview-detail-text {
    color: #5F2020;
    font-size: 17px;
    line-height: 1.55;
}

.programacion-preview-item + .programacion-preview-item {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(180, 35, 24, .12);
}

.programacion-preview-errors-list {
    margin: 8px 0 0 22px;
    padding: 0;
    color: inherit;
    font-size: 16px;
    line-height: 1.55;
}

.programacion-preview-errors-list li + li {
    margin-top: 7px;
}

@media (max-width: 1050px) {
    .programacion-mode-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .programacion-preview-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .programacion-two-columns {
        grid-template-columns: 1fr;
    }

    .programacion-weekdays-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .programacion-generator-section,
    .programacion-live-summary,
    .programacion-preview {
        padding: 17px;
    }

    .programacion-mode-grid,
    .programacion-preview-kpis {
        grid-template-columns: 1fr;
    }

    .programacion-preview-head {
        flex-direction: column;
    }

    .programacion-specific-add {
        grid-template-columns: 1fr;
    }

    .programacion-weekdays-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .programacion-live-summary-main > small {
        font-size: 14px;
    }
}


/* =========================================================
   SGV — NUEVA PROGRAMACIÓN V2
   CORRECCIÓN QUIRÚRGICA DE LA BARRA HORIZONTAL
   Basado en el CSS ACTUAL sgv(3).css.
   No modifica estilos ni estructura del menú.
   ========================================================= */

/* La barra pertenece al documento cuando algún elemento
   se extiende unos píxeles fuera del viewport. En Nueva
   Programación se recorta SOLO el desbordamiento horizontal. */
body:has(.programacion-generator-section) {
    overflow-x: hidden !important;
}

/* Asegurar que el contenedor principal no genere ancho extra */
body:has(.programacion-generator-section) .sgv-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* El generador y sus bloques internos nunca deben superar
   el ancho disponible */
body:has(.programacion-generator-section) .programacion-generator-section,
body:has(.programacion-generator-section) .programacion-period-section,
body:has(.programacion-generator-section) .programacion-period-panel,
body:has(.programacion-generator-section) .programacion-weekdays,
body:has(.programacion-generator-section) .programacion-live-summary,
body:has(.programacion-generator-section) .programacion-preview {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Grillas y filas internas */
body:has(.programacion-generator-section) .programacion-mode-grid,
body:has(.programacion-generator-section) .programacion-two-columns,
body:has(.programacion-generator-section) .programacion-weekdays-grid,
body:has(.programacion-generator-section) .programacion-specific-add,
body:has(.programacion-generator-section) .programacion-preview-kpis {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Elementos flexibles */
body:has(.programacion-generator-section) .programacion-mode-option,
body:has(.programacion-generator-section) .programacion-mode-box,
body:has(.programacion-generator-section) .programacion-live-summary-main,
body:has(.programacion-generator-section) .programacion-preview-head,
body:has(.programacion-generator-section) .programacion-preview-kpi {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Campos */
body:has(.programacion-generator-section) .programacion-generator-section input,
body:has(.programacion-generator-section) .programacion-generator-section select,
body:has(.programacion-generator-section) .programacion-generator-section textarea,
body:has(.programacion-generator-section) .programacion-generator-section button {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Evitar que textos largos creen ancho adicional */
body:has(.programacion-generator-section) .programacion-generator-section,
body:has(.programacion-generator-section) .programacion-generator-section * {
    overflow-wrap: anywhere;
}

/* Las imágenes nunca pueden ampliar el documento */
body:has(.programacion-generator-section) img {
    max-width: 100%;
}



/* =========================================================
   SGV — MENÚ LATERAL VERTICAL (FASE 1)
   Solo presentación de la navegación de escritorio.
   Conserva la generación dinámica del menú y sus permisos.
   ========================================================= */
@media (min-width: 901px) {
    .sgv-topbar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 282px;
        height: 100vh;
        min-height: 100vh;
        padding: 18px 14px 14px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 18px;
        overflow-y: auto;
        overflow-x: visible;
        border-bottom: 0;
        border-right: 3px solid var(--sgv-gold);
        border-radius: 0;
        z-index: 10000;
    }

    .sgv-topbar-brand {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        padding: 4px 8px 17px;
        border-bottom: 1px solid rgba(255,255,255,.16);
    }

    .sgv-topbar .sgv-header-logos-unificados {
        width: 220px;
        max-width: 100%;
        height: 68px;
        object-position: left center;
        margin: 0;
    }

    .sgv-topbar-brand-divider {
        display: none;
    }

    .sgv-topbar-brand-copy {
        width: 100%;
    }

    .sgv-topbar-brand-title {
        font-size: 15px;
        line-height: 1.35;
    }

    .sgv-topbar-brand-subtitle {
        font-size: 11px;
    }

    .sgv-topbar-brand-company {
        font-size: 11px;
    }

    .sgv-topbar .sgv-main-nav {
        display: flex;
        flex: 1 0 auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 5px;
        width: 100%;
        min-width: 0;
    }

    .sgv-topbar .sgv-nav-link,
    .sgv-topbar .sgv-nav-trigger {
        display: flex !important;
        justify-content: flex-start;
        width: 100%;
        min-height: 43px;
        padding: 10px 12px !important;
        gap: 11px;
        white-space: normal;
        text-align: left;
        font-size: 13px !important;
    }

    .sgv-topbar .sgv-nav-icon {
        width: 20px;
        min-width: 20px;
        font-size: 15px;
    }

    .sgv-topbar .sgv-nav-chevron {
        margin-left: auto;
    }

    .sgv-topbar .sgv-nav-group {
        width: 100%;
        flex: 0 0 auto;
    }

    .sgv-topbar .sgv-nav-dropdown {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        margin: 3px 0 6px;
        padding: 6px;
        border-top: 0;
        border-left: 2px solid var(--sgv-gold);
        border-radius: 0 8px 8px 0;
        box-shadow: none;
        background: rgba(255,255,255,.97);
    }

    .sgv-topbar .sgv-nav-group.is-open > .sgv-nav-dropdown {
        display: block;
    }

    .sgv-topbar .sgv-nav-dropdown-title {
        padding: 8px 9px;
    }

    .sgv-topbar .sgv-nav-dropdown a {
        min-height: 36px;
        padding: 8px 9px !important;
        white-space: normal;
        font-size: 12px;
    }

    .sgv-topbar .sgv-nav-user {
        display: flex;
        align-items: center;
        width: 100%;
        margin: auto 0 0;
        padding: 12px 9px 5px;
        white-space: normal;
        border-top: 1px solid rgba(255,255,255,.16);
    }

    .sgv-topbar .sgv-nav-user-copy {
        display: flex;
        min-width: 0;
    }

    .sgv-topbar .sgv-nav-user-name {
        overflow-wrap: anywhere;
    }

    .sgv-topbar .sgv-nav-logout {
        display: flex !important;
        justify-content: flex-start;
        width: 100%;
        margin: 3px 0 0 !important;
        padding: 10px 12px !important;
    }

    .sgv-topbar .sgv-nav-mobile-toggle,
    .sgv-topbar .sgv-nav-mobile-panel {
        display: none !important;
    }

    .sgv-topbar ~ main.container {
        width: calc(100% - 282px);
        max-width: none;
        min-width: 0;
        margin: 0 0 0 282px;
        padding: 28px clamp(18px, 2.5vw, 38px);
    }
}

/* En tabletas y móviles se conserva el encabezado y el menú móvil existentes. */
@media (max-width: 900px) {
    .sgv-topbar ~ main.container {
        width: 100%;
        max-width: 1200px;
        margin: 24px auto;
        padding: 0 16px;
    }
}


/* =========================================================
   SGV — ENCABEZADO SUPERIOR COMPLETO + NAVEGACIÓN LATERAL
   Fase 2: identidad corporativa arriba; menú únicamente a la izquierda.
   ========================================================= */
@media (min-width: 901px) {
    .sgv-topbar {
        position: fixed;
        inset: 0 0 auto 0;
        width: 100%;
        height: 112px;
        min-height: 112px;
        padding: 12px 26px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        overflow: visible;
        border-right: 0;
        border-bottom: 3px solid var(--sgv-gold);
        background: var(--sgv-primary-dark);
        z-index: 10000;
    }

    .sgv-topbar-brand {
        width: 100%;
        min-width: 0;
        height: 100%;
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        padding: 0;
        border-bottom: 0;
    }

    .sgv-topbar .sgv-header-logos-unificados {
        width: 225px;
        height: 82px;
        max-width: 28vw;
        object-position: left center;
        margin: 0;
    }

    .sgv-topbar-brand-divider {
        display: block;
        width: 1px;
        height: 64px;
        flex: 0 0 1px;
        background: rgba(255,255,255,.28);
    }

    .sgv-topbar-brand-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        text-align: right;
        width: auto;
        min-width: 0;
        margin-left: auto;
        gap: 2px;
    }

    .sgv-topbar-brand-title {
        font-size: 19px;
        line-height: 1.25;
    }

    .sgv-topbar-brand-subtitle {
        font-size: 12px;
    }

    .sgv-topbar-brand-company {
        font-size: 12px;
    }

    .sgv-topbar .sgv-main-nav {
        position: fixed;
        top: 112px;
        bottom: 0;
        left: 0;
        width: 282px;
        height: auto;
        min-width: 0;
        padding: 18px 14px 14px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 5px;
        overflow-y: auto;
        overflow-x: hidden;
        border-right: 3px solid var(--sgv-gold);
        background: var(--sgv-primary-dark);
        z-index: 9999;
    }

    .sgv-topbar .sgv-nav-link,
    .sgv-topbar .sgv-nav-trigger {
        display: flex !important;
        justify-content: flex-start;
        width: 100%;
        min-height: 43px;
        padding: 10px 12px !important;
        gap: 11px;
        white-space: normal;
        text-align: left;
        font-size: 13px !important;
    }

    .sgv-topbar .sgv-nav-icon {
        width: 20px;
        min-width: 20px;
        font-size: 15px;
    }

    .sgv-topbar .sgv-nav-chevron { margin-left: auto; }
    .sgv-topbar .sgv-nav-group { width: 100%; flex: 0 0 auto; }

    .sgv-topbar .sgv-nav-dropdown {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        margin: 3px 0 6px;
        padding: 6px;
        border-top: 0;
        border-left: 2px solid var(--sgv-gold);
        border-radius: 0 8px 8px 0;
        box-shadow: none;
        background: rgba(255,255,255,.97);
    }

    .sgv-topbar .sgv-nav-group.is-open > .sgv-nav-dropdown { display: block; }
    .sgv-topbar .sgv-nav-dropdown-title { padding: 8px 9px; }
    .sgv-topbar .sgv-nav-dropdown a { min-height: 36px; padding: 8px 9px !important; white-space: normal; font-size: 12px; }

    .sgv-topbar .sgv-nav-user {
        display: flex;
        align-items: center;
        width: 100%;
        margin: auto 0 0;
        padding: 12px 9px 5px;
        white-space: normal;
        border-top: 1px solid rgba(255,255,255,.16);
    }

    .sgv-topbar .sgv-nav-user-copy { display: flex; min-width: 0; }
    .sgv-topbar .sgv-nav-user-name { overflow-wrap: anywhere; }
    .sgv-topbar .sgv-nav-logout { display: flex !important; justify-content: flex-start; width: 100%; margin: 3px 0 0 !important; padding: 10px 12px !important; }
    .sgv-topbar .sgv-nav-mobile-toggle,
    .sgv-topbar .sgv-nav-mobile-panel { display: none !important; }

    .sgv-topbar ~ main.container {
        width: calc(100% - 282px);
        max-width: none;
        min-width: 0;
        margin: 112px 0 0 282px;
        padding: 28px clamp(18px, 2.5vw, 38px);
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .sgv-topbar { padding-left: 18px; padding-right: 18px; }
    .sgv-topbar .sgv-header-logos-unificados { width: 190px; }
    .sgv-topbar-brand { gap: 14px; }
    .sgv-topbar-brand-title { font-size: 16px; }
}

@media (max-width: 900px) {
    .sgv-topbar {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 10px 14px;
        border-right: 0;
        border-bottom: 3px solid var(--sgv-gold);
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    .sgv-topbar-brand { width: calc(100% - 48px); flex-direction: row; align-items: center; gap: 10px; padding: 0; border: 0; }
    .sgv-topbar .sgv-header-logos-unificados { width: 115px; height: 54px; margin: 0; }
    .sgv-topbar-brand-divider { display: none; }
    .sgv-topbar-brand-copy { width: auto; }
    .sgv-topbar-brand-title { font-size: 13px; line-height: 1.25; }
    .sgv-topbar-brand-subtitle, .sgv-topbar-brand-company { font-size: 10px; }
    .sgv-topbar .sgv-nav-mobile-toggle { display: block; margin-left: auto; }
    .sgv-topbar ~ main.container { width: 100%; max-width: 1200px; margin: 24px auto; padding: 0 16px; }
}


/* =========================================================
   SGV — FASE 4: MARCA A LA IZQUIERDA Y CUENTA A LA DERECHA
   El menú lateral conserva únicamente opciones de navegación.
   ========================================================= */
@media (min-width: 901px) {
    .sgv-topbar {
        justify-content: flex-start;
        gap: 24px;
    }
    .sgv-topbar-brand {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        justify-content: flex-start;
        gap: 22px;
    }
    .sgv-topbar-brand-copy {
        align-items: flex-start;
        text-align: left;
        margin-left: 0;
        flex: 0 1 auto;
    }
    .sgv-topbar-brand-title { text-align: left; }
    .sgv-topbar-brand-subtitle,
    .sgv-topbar-brand-company { text-align: left; }
    .sgv-header-account {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 18px;
        flex: 0 0 auto;
        max-width: 330px;
        min-width: 220px;
        margin-left: auto;
        padding: 8px 0 8px 18px;
        color: #fff;
    }
    .sgv-header-account-user {
        display: flex;
        align-items: center;
        gap: 11px;
        min-width: 0;
    }
    .sgv-header-account-avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border: 1px solid rgba(255,255,255,.45);
        border-radius: 50%;
        color: #fff;
        font-size: 17px;
    }
    .sgv-header-account-copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.35;
    }
    .sgv-header-account-name {
        max-width: 180px;
        overflow-wrap: anywhere;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
    }
    .sgv-header-account-company { color: #F2C94C; font-size: 11px; }
    .sgv-header-account-divider {
        width: 1px;
        height: 42px;
        flex: 0 0 1px;
        background: rgba(255,255,255,.35);
    }
    .sgv-header-account-logout {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 42px;
        padding: 9px 15px;
        border: 1px solid var(--sgv-gold);
        border-radius: 7px;
        color: var(--sgv-gold-light);
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
        transition: background .18s ease, color .18s ease;
    }
    .sgv-header-account-logout:hover {
        background: var(--sgv-gold);
        color: var(--sgv-primary-dark);
    }
    .sgv-topbar .sgv-main-nav { padding-bottom: 16px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .sgv-topbar { gap: 14px; padding-left: 16px; padding-right: 16px; }
    .sgv-topbar .sgv-header-logos-unificados { width: 175px; }
    .sgv-topbar-brand { gap: 13px; }
    .sgv-topbar-brand-title { font-size: 15px; }
    .sgv-header-account { gap: 10px; min-width: 190px; padding-left: 8px; }
    .sgv-header-account-avatar { width: 34px; height: 34px; flex-basis: 34px; }
    .sgv-header-account-name { max-width: 125px; font-size: 11px; }
    .sgv-header-account-logout { padding: 8px 10px; }
}

@media (max-width: 900px) {
    .sgv-header-account { display: none !important; }
}

/* =========================================================
   AJUSTE FASE 5 - NOMBRE DE USUARIO EN UNA SOLA LÍNEA
   Mantiene el encabezado y el resto del diseño sin cambios.
   ========================================================= */
@media (min-width: 1181px) {
    .sgv-header-account {
        flex: 0 0 350px;
        width: 350px;
        max-width: 350px;
        min-width: 350px;
        gap: 12px;
    }

    .sgv-header-account-user {
        flex: 1 1 auto;
        min-width: 0;
    }

    .sgv-header-account-copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    .sgv-header-account-name {
        max-width: none;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }

    .sgv-header-account-logout {
        flex: 0 0 auto;
    }
}


/* FASE 6 - Ajuste fino del bloque de usuario */
@media (min-width: 1181px) {
    .sgv-header-account-name {
        font-size: 14px;
        line-height: 1.25;
    }
    .sgv-header-account-company {
        font-size: 12px;
    }
}


/* =========================================================
   AJUSTE LOCAL: BOTONES DE DOCUMENTOS DEL CONTRATO
   Solo afecta los botones dentro de #form-documentos-contrato.
   No modifica estilos globales ni botones de otros módulos.
   ========================================================= */
.contrato-resumen-card #form-documentos-contrato a.sgv-btn.sgv-btn-secondary {
    background: #E7F0FF;
    border-color: #C8DAF5;
    color: #2459A9;
}

.contrato-resumen-card #form-documentos-contrato a.sgv-btn.sgv-btn-secondary:hover {
    background: #D6E6FF;
    border-color: #8FB4EC;
    color: #193F7A;
}

.contrato-resumen-card #form-documentos-contrato button.js-actualizar-documento {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    background: #D9A900;
    border-color: #D9A900;
    color: #111827;
}

.contrato-resumen-card #form-documentos-contrato button.js-actualizar-documento:hover {
    background: #A97D00;
    border-color: #A97D00;
    color: #FFFFFF;
}

.contrato-resumen-card #form-documentos-contrato button.js-actualizar-documento:focus-visible,
.contrato-resumen-card #form-documentos-contrato a.sgv-btn.sgv-btn-secondary:focus-visible {
    outline: 3px solid rgba(36, 89, 169, .25);
    outline-offset: 2px;
}


/* =========================================================
   AJUSTE LOCAL: BOTONES DE DOCUMENTOS ADICIONALES DEL CONTRATO
   Solo afecta la sección "Otros documentos del contrato".
   ========================================================= */
.contrato-documentos-adicionales td a.sgv-btn.sgv-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 40px;
    box-sizing: border-box;
    background: #E7F0FF;
    border: 1px solid #C8DAF5;
    color: #2459A9;
    text-align: center;
    white-space: nowrap;
}

.contrato-documentos-adicionales td a.sgv-btn.sgv-btn-secondary:hover {
    background: #D6E6FF;
    border-color: #8FB4EC;
    color: #193F7A;
}

.contrato-documentos-adicionales td details > summary.sgv-btn.sgv-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    min-width: 128px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 15px;
    background: #D9A900;
    border: 1px solid #D9A900;
    border-radius: var(--sgv-radius-sm);
    color: #111827;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    list-style: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--sgv-transition);
}

.contrato-documentos-adicionales td details > summary.sgv-btn.sgv-btn-secondary::-webkit-details-marker {
    display: none;
}

.contrato-documentos-adicionales td details > summary.sgv-btn.sgv-btn-secondary:hover {
    background: #A97D00;
    border-color: #A97D00;
    color: #FFFFFF;
}

.contrato-documentos-adicionales td a.sgv-btn.sgv-btn-secondary:focus-visible,
.contrato-documentos-adicionales td details > summary.sgv-btn.sgv-btn-secondary:focus-visible {
    outline: 3px solid rgba(36, 89, 169, .25);
    outline-offset: 2px;
}
/* SGV - Checklist de debida diligencia al crear contrato.
   Estilos encapsulados: solo afectan esta sección del formulario de contratos. */
.contrato-verificacion-section {
   margin: 22px 0;
   padding: 20px;
   border: 1px solid #dce5ef;
   border-radius: 14px;
   background: #fff
}

.contrato-verificacion-heading {
   display: flex;
   align-items: center;
   gap: 13px;
   margin-bottom: 16px;
   padding: 0 0 14px;
   border-bottom: 1px solid #e3eaf2
}

.contrato-verificacion-heading-icon {
   display: flex;
   align-items: center;
   justify-content: center;
   flex: 0 0 48px;
   width: 48px;
   height: 48px;
   border-radius: 12px;
   background: #e7f0ff;
   color: #0b315f;
   font-size: 24px
}

.contrato-verificacion-heading h2 {
   margin: 0;
   color: #0b315f;
   font-size: 17px;
   line-height: 1.35;
   font-weight: 800
}

.contrato-verificacion-heading p {
   margin: 5px 0 0;
   color: #536782;
   font-size: 12px;
   line-height: 1.5
}

.contrato-verificacion-cards {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 12px;
   margin: 16px 0
}

.contrato-verificacion-item {
   display: flex;
   align-items: center;
   gap: 12px;
   min-height: 86px;
   padding: 13px;
   border: 1px solid #dfe7f1;
   border-radius: 12px;
   background: linear-gradient(135deg, #fff, #f9fbfe);
   box-shadow: 0 2px 5px rgba(16, 42, 76, .04);
   cursor: pointer;
   transition: border-color .15s, background .15s
}

.contrato-verificacion-item:hover {
   border-color: #ffc400;
   background: #fffdf5
}

.contrato-verificacion-item:has(input:checked) {
   border-color: #e7b400;
   background: #fff9df
}

.contrato-verificacion-icon {
   display: flex;
   align-items: center;
   justify-content: center;
   flex: 0 0 44px;
   width: 44px;
   height: 44px;
   border-radius: 11px;
   background: #e7f3ff;
   font-size: 22px
}

.contrato-verificacion-item:nth-child(3n + 2) .contrato-verificacion-icon {
   background: #e4f8e8
}

.contrato-verificacion-item:nth-child(3n) .contrato-verificacion-icon {
   background: #fff1d2
}

.contrato-verificacion-copy {
   display: flex;
   flex: 1;
   flex-direction: column;
   gap: 4px;
   min-width: 0;
   color: #102a4c
}

.contrato-verificacion-copy strong {
   font-size: 13px;
   line-height: 1.35
}

.contrato-verificacion-copy small {
   font-size: 11px;
   line-height: 1.4;
   color: #536782
}

.contrato-verificacion-item input[type="checkbox"] {
   flex: 0 0 19px;
   width: 19px;
   height: 19px;
   margin: 0;
   accent-color: #d9a900;
   cursor: pointer
}

.contrato-verificacion-observaciones {
   margin-top: 18px
}

.contrato-verificacion-note {
   margin: 8px 0 0;
   color: #667085;
   font-size: 11px;
   line-height: 1.5
}

@media(max-width:1000px) {
   .contrato-verificacion-cards {
      grid-template-columns: repeat(2, minmax(0, 1fr))
   }
}

@media(max-width:650px) {
   .contrato-verificacion-section {
      padding: 14px
   }

   .contrato-verificacion-cards {
      grid-template-columns: 1fr
   }

   .contrato-verificacion-item {
      min-height: 76px
   }
}
/* SGV: estilos adicionales SOLO para mostrar la verificación en la ficha del contrato. */
.contrato-verificacion-resumen {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

.contrato-verificacion-estado,
.contrato-verificacion-estado-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap
}

.contrato-verificacion-estado.is-complete,
.contrato-verificacion-estado-item.is-complete {
    background: #dcfce7;
    color: #166534
}

.contrato-verificacion-estado.is-pending,
.contrato-verificacion-estado-item.is-pending {
    background: #fff1c2;
    color: #8a4b00
}

.contrato-verificacion-conteo {
    font-size: 12px;
    color: #536782;
    font-weight: 600
}

.contrato-verificacion-ficha-cards .contrato-verificacion-ficha-item {
    cursor: default;
    min-height: 72px
}

.contrato-verificacion-ficha-cards .contrato-verificacion-ficha-item:hover {
    border-color: #dfe7f1;
    background: linear-gradient(135deg, #fff, #f9fbfe)
}

.contrato-verificacion-ficha-cards .contrato-verificacion-copy {
    margin-right: auto
}

.contrato-verificacion-auditoria {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #f7f9fc
}

.contrato-verificacion-auditoria>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0
}

.contrato-verificacion-auditoria-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
    font-weight: 700
}

.contrato-verificacion-auditoria strong {
    font-size: 13px;
    color: #102a4c;
    overflow-wrap: anywhere
}

.contrato-verificacion-observaciones-ficha {
    margin-top: 14px;
    padding: 14px;
    border-left: 4px solid #d9a900;
    border-radius: 6px;
    background: #fffaf0;
    color: #102a4c
}

.contrato-verificacion-observaciones-ficha>strong {
    display: block;
    margin-bottom: 7px
}

.contrato-verificacion-observaciones-ficha p {
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #536782;
    line-height: 1.6
}

@media(max-width:650px) {
    .contrato-verificacion-auditoria {
        grid-template-columns: 1fr
    }

    .contrato-verificacion-ficha-cards .contrato-verificacion-ficha-item {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .contrato-verificacion-ficha-cards .contrato-verificacion-estado-item {
        margin-left: 56px
    }
}
/* Ajuste exclusivo del botón + Nuevo contrato en la ficha del cliente */
.cliente-contratos-header .cliente-btn-nuevo-contrato {
    background-color: #F7C52B;
    border-color: #F7C52B;
    color: #0B2A4A;
}

.cliente-contratos-header .cliente-btn-nuevo-contrato:hover,
.cliente-contratos-header .cliente-btn-nuevo-contrato:focus {
    background-color: #E6B51F;
    border-color: #E6B51F;
    color: #0B2A4A;
}


/* =========================================================
   ENCABEZADO CORPORATIVO PAKINT — PRUEBA INICIAL: PERSONAL
   Modelo aprobado: panel azul, acento amarillo y acciones
   ========================================================= */
.sgv-page-header-banner {
    position: relative;
    isolation: isolate;
    min-height: 92px;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 12px 20px 12px 24px;
    overflow: hidden;
    border: 1px solid #D5E2F1;
    border-radius: 16px;
    background: linear-gradient(105deg, #FFFFFF 0%, #F1F6FC 48%, #DCEAF9 100%);
    box-shadow: 0 2px 8px rgba(11, 49, 95, .04);
}

.sgv-page-header-banner::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    width: 29%;
    background: #103B6B;
    clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}

.sgv-page-header-banner::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 28.1%;
    bottom: 0;
    width: 30px;
    background: #F2C328;
    transform: skewX(-20deg);
    transform-origin: bottom center;
    pointer-events: none;
}

.sgv-page-heading-banner {
    min-width: 0;
    align-items: center;
    gap: 14px;
    z-index: 1;
}

.sgv-page-icon-banner {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 14px;
    background: #E2ECF8;
    color: #103B6B;
    font-size: 23px;
}

.sgv-page-heading-copy {
    min-width: 0;
}

.sgv-page-header-banner .sgv-title {
    margin: 0;
    color: #0B315F;
    font-size: 27px !important;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.sgv-page-header-banner .sgv-subtitle {
    margin: 5px 0 0;
    color: #52677F;
    font-size: 13px;
    line-height: 1.4;
}

.sgv-page-actions-banner {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
    min-width: 220px;
    padding-left: 28px;
}

.sgv-page-header-banner .sgv-page-action-gold {
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #F2C328;
    border-radius: 10px;
    background: #F2C328;
    color: #0B315F;
    font-size: 15px !important;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    white-space: nowrap;
}

.sgv-page-header-banner .sgv-page-action-gold:hover,
.sgv-page-header-banner .sgv-page-action-gold:focus {
    border-color: #D9A900;
    background: #D9A900;
    color: #071F3D;
}

@media (max-width: 768px) {
    .sgv-page-header-banner {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .sgv-page-header-banner::before {
        top: auto;
        left: 0;
        width: 100%;
        height: 62px;
        clip-path: none;
    }

    .sgv-page-header-banner::after {
        top: auto;
        right: auto;
        left: 0;
        bottom: 62px;
        width: 100%;
        height: 5px;
        transform: none;
        clip-path: none;
    }

    .sgv-page-heading-banner {
        gap: 14px;
    }

    .sgv-page-icon-banner {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 21px;
    }

    .sgv-page-header-banner .sgv-title {
        font-size: 24px !important;
    }

    .sgv-page-header-banner .sgv-subtitle {
        font-size: 13px;
    }

    .sgv-page-actions-banner {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
        padding: 0;
    }

    .sgv-page-header-banner .sgv-page-action-gold {
        width: 100%;
    }
}


/* =========================================================
   PAKINT — BOTONES UNIFORMES EN LOS ENCABEZADOS DE TODAS LAS VISTAS
   Solo afecta las acciones dentro del encabezado corporativo.
   ========================================================= */
.sgv-page-header-banner .sgv-page-actions-banner .sgv-page-action-gold {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 18px !important;
    border: 1px solid #F2C328 !important;
    border-radius: 10px !important;
    background: #F2C328 !important;
    color: #0B315F !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12) !important;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.sgv-page-header-banner .sgv-page-actions-banner .sgv-page-action-gold:hover,
.sgv-page-header-banner .sgv-page-actions-banner .sgv-page-action-gold:focus-visible {
    border-color: #D9A900 !important;
    background: #D9A900 !important;
    color: #071F3D !important;
}
@media (max-width: 768px) {
    .sgv-page-header-banner .sgv-page-actions-banner .sgv-page-action-gold {
        width: 100% !important;
    }
}


/* =========================================================
   PAKINT — ALINEACIÓN UNIFORME DEL TÍTULO Y LA DESCRIPCIÓN
   En todos los encabezados corporativos, la descripción queda
   debajo del nombre del módulo, alineada con el texto.
   No modifica botones ni contenido de las vistas.
   ========================================================= */
.sgv-page-header-banner .sgv-page-heading-banner {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
}

.sgv-page-header-banner .sgv-page-heading-banner:has(> .sgv-page-icon-banner) {
    grid-template-columns: 56px minmax(0, 1fr);
}

.sgv-page-header-banner .sgv-page-heading-banner:not(:has(> .sgv-page-icon-banner)) {
    grid-template-columns: minmax(0, 1fr);
}

.sgv-page-header-banner .sgv-page-heading-banner > .sgv-page-icon-banner {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
}

.sgv-page-header-banner .sgv-page-heading-banner > div:not(.sgv-page-icon-banner) {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.sgv-page-header-banner .sgv-page-heading-banner > .sgv-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 !important;
}

.sgv-page-header-banner .sgv-page-heading-banner > .sgv-subtitle {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 4px 0 0 !important;
}

.sgv-page-header-banner .sgv-page-heading-banner:not(:has(> .sgv-page-icon-banner)) > .sgv-title,
.sgv-page-header-banner .sgv-page-heading-banner:not(:has(> .sgv-page-icon-banner)) > .sgv-subtitle {
    grid-column: 1;
}

@media (max-width: 768px) {
    .sgv-page-header-banner .sgv-page-heading-banner {
        grid-template-columns: 50px minmax(0, 1fr);
        column-gap: 12px;
    }
}


/* =========================================================
   PAKINT — ACCIONES DE TABLAS EN UNA SOLA LÍNEA
   Conserva el color amarillo corporativo aprobado.
   Este ajuste solo organiza los controles de la columna Acciones.
   ========================================================= */
table td:last-child:has(a, button, form, input[type="submit"]) {
    white-space: nowrap !important;
}

table td:last-child:has(a, button, form, input[type="submit"]) > div,
table td:last-child:has(a, button, form, input[type="submit"]) > form {
    display: inline-flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    vertical-align: middle !important;
    margin: 0 6px 0 0 !important;
}

table td:last-child:has(a, button, form, input[type="submit"]) :is(a, button, input[type="submit"]) {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 38px !important;
    padding: 8px 15px !important;
    margin: 0 6px 0 0 !important;
    border: 1px solid #F2C328 !important;
    border-radius: 8px !important;
    background: #F2C328 !important;
    color: #0B315F !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    cursor: pointer;
}

table td:last-child:has(a, button, form, input[type="submit"]) :is(a, button, input[type="submit"]):hover,
table td:last-child:has(a, button, form, input[type="submit"]) :is(a, button, input[type="submit"]):focus-visible {
    border-color: #D9A900 !important;
    background: #D9A900 !important;
    color: #071F3D !important;
}

/* =========================================================
   SGV — AJUSTE FINAL: FILTRO ESTADÍSTICAS Y BÚSQUEDA
   Solo afecta .ep-filter-grid y .sgv-form-actions dentro
   del formulario de certificados laborales.
   ========================================================= */

/* Estadísticas: limitar el ancho del selector y alinear
   el botón a su misma altura. */
.ep-filters .ep-filter-grid.ep-filter-grid-single {
    display: grid !important;
    grid-template-columns: minmax(220px, 320px) max-content !important;
    justify-content: start !important;
    align-items: end !important;
    column-gap: 12px !important;
}
.ep-filters .ep-filter-grid.ep-filter-grid-single > label {
    width: 100% !important;
    min-width: 0 !important;
    align-self: end !important;
}
.ep-filters .ep-filter-grid.ep-filter-grid-single > label > select {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
}
.ep-filters .ep-filter-grid.ep-filter-grid-single > button.ep-btn-primary {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    align-self: end !important;
    justify-self: start !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 18px !important;
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Certificados laborales: los botones Buscar y Limpiar
   ocupan una sola fila, compactos y alineados a la derecha. */
.sgv-form-grid > .sgv-form-actions {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
}
.sgv-form-grid > .sgv-form-actions > .sgv-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* En móvil, el filtro puede apilarse; el botón sigue compacto
   y conserva la altura del selector. */
@media (max-width: 760px) {
    .ep-filters .ep-filter-grid.ep-filter-grid-single {
        grid-template-columns: minmax(0, 1fr) max-content !important;
    }
    .sgv-form-grid > .sgv-form-actions {
        grid-column: 1 / -1 !important;
        justify-content: flex-end !important;
    }
}

/* Corrección final: centrar verticalmente Aplicar filtro
   respecto al control select en la vista Estadísticas del Personal.
   El label incluye su propio texto y separación; por eso el botón
   necesita compensar esa altura adicional. */
.ep-filters .ep-filter-grid.ep-filter-grid-single > button.ep-btn-primary {
    transform: translateY(-6px) !important;
}

/* =========================================================
   RETIROS - FORMULARIO CORPORATIVO
   Integrado en la hoja central SGV
========================================================= */
.retirement-form { width:100%; }
.retirement-form-card { overflow:hidden; }
.retirement-form-card > .sgv-card-header {
    background:#173B66;
    border-bottom:0;
    padding:18px 20px;
}
.retirement-form-card > .sgv-card-header .sgv-section-title {
    color:#fff;
    margin:0 0 4px;
    font-size:18px;
    font-weight:800;
}
.retirement-section-heading {
    display:flex;
    align-items:center;
    gap:13px;
}
.retirement-section-icon {
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    flex:0 0 46px;
    border-radius:12px;
    background:#E7EFF8;
    color:#123B68;
    font-size:19px;
}
.retirement-section-description {
    margin:0;
    color:#DCE7F4;
    font-size:13px;
}
.retirement-form-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    column-gap:20px;
    row-gap:2px;
}
.retirement-field-span-2 { grid-column:span 2; }
.retirement-field-span-3 { grid-column:1 / -1; }
.retirement-form .sgv-form-group { margin-bottom:14px; min-width:0; }
.retirement-form .sgv-label { font-size:13px; font-weight:700; }
.retirement-form .sgv-input,
.retirement-form .sgv-select,
.retirement-form .sgv-textarea {
    box-sizing:border-box;
    width:100%;
    min-height:42px;
    border:1px solid #D5DFEA;
    border-radius:6px;
    background:#fff;
    color:#18324F;
    font-size:14px;
}
.retirement-form .sgv-textarea { min-height:92px; }
.retirement-process-note {
    display:flex;
    align-items:flex-start;
    gap:9px;
    margin:8px 0 0;
    padding:12px 14px;
    border-left:4px solid #E3B51E;
    border-radius:7px;
    background:#FFF8E5;
    color:#755A13;
    font-size:13px;
}
.retirement-form-actions {
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
    gap:12px !important;
    width:100%;
    margin-top:22px;
    padding:18px 0 8px;
    border-top:1px solid #D8E0EA;
}
.retirement-form-actions .sgv-btn {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:175px;
    min-height:48px;
    padding:0 22px;
    flex:0 0 auto !important;
    box-sizing:border-box;
    text-align:center;
}

/* RETIROS - distribución definitiva del formulario y acciones */
.retirement-form .retirement-form-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 20px !important;
}
.retirement-form .retirement-form-grid > .sgv-form-group {
    grid-column: auto !important;
    min-width: 0 !important;
}
.retirement-form .retirement-form-grid > .retirement-field-span-3 {
    grid-column: 1 / -1 !important;
}
.retirement-form .retirement-form-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 22px !important;
    padding: 18px 0 8px !important;
    border-top: 1px solid #D8E0EA !important;
}
.retirement-form .retirement-form-actions > .sgv-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 175px !important;
    max-width: max-content !important;
    min-height: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}
@media (max-width: 1000px) {
    .retirement-form .retirement-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 640px) {
    .retirement-form .retirement-form-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .retirement-form .retirement-form-grid > .retirement-field-span-3 {
        grid-column: auto !important;
    }
    .retirement-form .retirement-form-actions {
        flex-wrap: wrap !important;
    }
    .retirement-form .retirement-form-actions > .sgv-btn {
        min-width: 0 !important;
    }
}


/* =========================================================
   PAKINT — FORMULARIO DE RETIROS: DISTRIBUCIÓN APROBADA
   Dos columnas para datos generales, tres para fechas,
   observaciones a una columna y acciones dentro de la tarjeta.
   ========================================================= */
.retirement-form-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.retirement-form-row {
    display: grid;
    gap: 20px;
    width: 100%;
}

.retirement-form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.retirement-form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.retirement-form-row-1 {
    grid-template-columns: minmax(0, 1fr);
}

.retirement-form-row .sgv-form-group {
    min-width: 0;
    margin-bottom: 14px;
}

.retirement-form-row .sgv-input,
.retirement-form-row .sgv-select,
.retirement-form-row .sgv-textarea {
    width: 100%;
    box-sizing: border-box;
}

.retirement-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #d9e2ec;
}

.retirement-form-actions .sgv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 130px;
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .retirement-form-row-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .retirement-form-row-2,
    .retirement-form-row-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .retirement-form-actions {
        justify-content: flex-end;
    }

    .retirement-form-actions .sgv-btn {
        width: auto !important;
    }
}


/* =========================================================
   RETIROS - AJUSTE DEFINITIVO DE DISTRIBUCIÓN
   Estructura solicitada:
   fila 1: empleado / tipo (2 columnas)
   fila 2: causal / detalle (2 columnas)
   fila 3: fechas (3 columnas)
   fila 4: observaciones (1 columna completa)
   ========================================================= */
.retirement-form .retirement-form-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 18px !important;
    width: 100% !important;
}
.retirement-form .retirement-form-grid > .retirement-form-row {
    display: grid !important;
    width: 100% !important;
    gap: 20px !important;
    align-items: start !important;
}
.retirement-form .retirement-form-grid > .retirement-form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.retirement-form .retirement-form-grid > .retirement-form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.retirement-form .retirement-form-grid > .retirement-form-row-1 {
    grid-template-columns: minmax(0, 1fr) !important;
}
.retirement-form .retirement-form-row > .sgv-form-group {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-column: auto !important;
}
.retirement-form .retirement-form-row-1 > .sgv-form-group,
.retirement-form .retirement-form-row-1 .sgv-textarea {
    width: 100% !important;
}
.retirement-form .retirement-form-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}
.retirement-form .retirement-form-actions > .sgv-btn {
    width: auto !important;
    flex: 0 0 auto !important;
}
@media (max-width: 900px) {
    .retirement-form .retirement-form-grid > .retirement-form-row-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 650px) {
    .retirement-form .retirement-form-grid > .retirement-form-row-2,
    .retirement-form .retirement-form-grid > .retirement-form-row-3 {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .retirement-form .retirement-form-actions {
        flex-wrap: wrap !important;
    }
}

/* =========================================================
   RETIROS — RESTAURAR DISTRIBUCIÓN DEL FORMULARIO NUEVO
   Prioridad alta para evitar que reglas generales del SGV
   conviertan las filas en una sola columna.
   ========================================================= */
.retirement-form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}
.retirement-form .retirement-form-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
}
.retirement-form .retirement-form-grid > .retirement-form-row {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: start !important;
    gap: 16px !important;
}
.retirement-form .retirement-form-grid > .retirement-form-row.retirement-form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.retirement-form .retirement-form-grid > .retirement-form-row.retirement-form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.retirement-form .retirement-form-grid > .retirement-form-row.retirement-form-row-1 {
    grid-template-columns: minmax(0, 1fr) !important;
}
.retirement-form .retirement-form-grid > .retirement-form-row > .sgv-form-group {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}
.retirement-form .retirement-form-grid > .retirement-form-row .sgv-input,
.retirement-form .retirement-form-grid > .retirement-form-row .sgv-select,
.retirement-form .retirement-form-grid > .retirement-form-row .sgv-textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.retirement-form .retirement-form-actions {
    display: flex !important;
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 18px !important;
    padding-top: 16px !important;
}
.retirement-form .retirement-form-actions > .sgv-btn {
    display: inline-flex !important;
    width: auto !important;
    min-width: 135px !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}
@media (max-width: 900px) {
    .retirement-form .retirement-form-grid > .retirement-form-row.retirement-form-row-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 650px) {
    .retirement-form .retirement-form-grid > .retirement-form-row.retirement-form-row-2,
    .retirement-form .retirement-form-grid > .retirement-form-row.retirement-form-row-3 {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .retirement-form .retirement-form-actions {
        flex-wrap: wrap !important;
    }
}   SGV — DETALLE DE SOLICITUD DE RETIRO

   Identidad corporativa PAKINT. Estilos centralizados.

   ========================================================= */

.retiro-show-page { color:#102f55; }

.retiro-show-hero{display:flex;align-items:center;gap:16px;min-height:86px;padding:15px 20px;margin-bottom:16px;border:1px solid #d5e2f2;border-radius:14px;background:linear-gradient(105deg,#fff 0%,#e8f1fc 68%,#123e6c 68%,#123e6c 100%);box-shadow:0 2px 8px rgba(13,43,76,.06)}

.retiro-show-hero-icon{display:flex;align-items:center;justify-content:center;flex:0 0 58px;width:58px;height:58px;border-radius:14px;background:#e0ebf8;color:#123e6c;font-size:27px}

.retiro-show-hero-copy{flex:1;min-width:0}.retiro-show-hero-copy h2{margin:0;color:#0b2c52;font-size:27px;font-weight:800}.retiro-show-hero-copy p{margin:2px 0 0;color:#55708f;font-size:13px}

.retiro-show-btn-back,.retiro-show-btn-approve{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto!important;min-width:0!important;flex:0 0 auto!important;padding:10px 18px!important;border:1px solid #e5b600!important;border-radius:9px!important;background:#f2c328!important;color:#092c52!important;font-weight:750!important;white-space:nowrap}

.retiro-show-statusbar{display:flex;align-items:center;gap:14px;padding:13px 18px;margin-bottom:16px;border:1px solid #efc43d;border-radius:12px;background:linear-gradient(100deg,#fff8df,#fff0b9)}

.retiro-show-status-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:11px;background:#f2c328;color:#123e6c;font-size:24px}.retiro-show-status-copy{flex:1}.retiro-show-status-copy h3{margin:0;color:#0b2c52;font-size:21px;font-weight:800}.retiro-show-status-copy p{margin:2px 0 0;color:#526a84;font-size:13px}.retiro-show-status-pill{display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border-radius:30px;font-size:13px;font-weight:750}.retiro-show-status-pill.warning{background:#ffe69a;color:#795500}.retiro-show-status-pill.success{background:#d8f2df;color:#176333}.retiro-show-status-pill.danger{background:#fde0df;color:#a12620}

.retiro-show-grid-two,.retiro-show-grid-dates-approval{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.retiro-show-grid-dates-approval{grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr)}

.retiro-show-card,.retiro-show-assets-card{overflow:hidden;margin-bottom:16px;border:1px solid #d4dfec;border-radius:12px;background:#fff;box-shadow:0 2px 7px rgba(13,43,76,.07)}

.retiro-show-card>header{display:flex;align-items:center;gap:11px;padding:11px 16px;background:#173b65;color:#fff}.retiro-show-card>header i{font-size:19px}.retiro-show-card>header h4{margin:0;font-size:16px;font-weight:750;color:#fff}.retiro-show-card-body{padding:14px 18px}

.retiro-show-data-row{display:grid;grid-template-columns:minmax(130px,.75fr) minmax(0,1.4fr);gap:12px;padding:7px 2px;border-bottom:1px solid #e3eaf2;font-size:13px}.retiro-show-data-row:last-child{border-bottom:0}.retiro-show-data-row span{color:#526a84;font-weight:600}.retiro-show-data-row strong{color:#102f55;font-weight:700}.retiro-show-data-row-detail{align-items:start;min-height:70px}.retiro-show-employee-state{display:inline-flex;padding:3px 10px;border-radius:20px;background:#d9f3e1;color:#176333}

.retiro-show-date-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.retiro-show-date-item{padding:12px;border:1px solid #d8e4f2;border-radius:9px;background:#f3f7fc}.retiro-show-date-item span{display:block;color:#536d8c;font-size:12px}.retiro-show-date-item span i{margin-right:5px;color:#3e70a7}.retiro-show-date-item strong{display:block;margin-top:7px;color:#102f55;font-size:16px}.retiro-show-date-item.effective{border-color:#f2d36c;background:#fff7dc}.retiro-show-date-item.effective span i{color:#b98500}

.retiro-show-approval-row{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #e4ebf3}.retiro-show-approval-row:last-of-type{border-bottom:0}.retiro-show-approval-number{display:flex;align-items:center;justify-content:center;flex:0 0 29px;width:29px;height:29px;border-radius:50%;background:#dce6f1;color:#173b65;font-weight:800}.retiro-show-approval-row.current .retiro-show-approval-number{background:#f2c328;color:#173b65}.retiro-show-approval-row.approved .retiro-show-approval-number{background:#d7f0df;color:#176333}.retiro-show-approval-row.rejected .retiro-show-approval-number{background:#fde0df;color:#a12620}.retiro-show-approval-info{flex:1;min-width:0}.retiro-show-approval-info strong{display:block;color:#102f55;font-size:13px}.retiro-show-approval-info small{display:block;color:#71849a;font-size:11px}.retiro-show-approval-state{padding:5px 10px;border-radius:20px;background:#e7eef7;color:#24486f;font-size:11px;font-weight:700;white-space:nowrap}.retiro-show-approval-row.current .retiro-show-approval-state{background:#ffe69a;color:#795500}.retiro-show-approval-row.approved .retiro-show-approval-state{background:#d8f2df;color:#176333}.retiro-show-approval-row.rejected .retiro-show-approval-state{background:#fde0df;color:#a12620}.retiro-show-approval-note{margin:0 0 6px 39px;padding:7px 10px;border-left:3px solid #f2c328;background:#fff9e7;color:#5d6570;font-size:12px}

.retiro-show-assets-card{border-color:#d5dfeb}.retiro-show-assets-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;background:linear-gradient(90deg,#ffefb3,#f8cf38)}.retiro-show-assets-title{display:flex;align-items:center;gap:12px}.retiro-show-assets-title>i{font-size:25px;color:#173b65}.retiro-show-assets-title h4{margin:0;color:#102f55;font-size:18px;font-weight:800}.retiro-show-assets-title p{margin:2px 0 0;color:#52627a;font-size:12px}.retiro-show-assets-summary{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.retiro-show-assets-summary span{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid rgba(20,50,80,.1);border-radius:20px;background:#fff;color:#173b65;font-size:12px;font-weight:750;white-space:nowrap}.retiro-show-assets-summary .returned{background:#e2f5e8;color:#176333}.retiro-show-assets-summary .pending{background:#fff8e5;color:#936500}.retiro-show-assets-body{padding:12px 14px}.retiro-show-assets-table{font-size:12px}.retiro-show-assets-table thead th{padding:10px 9px;border:0;background:#173b65;color:#fff;font-weight:750;white-space:nowrap}.retiro-show-assets-table thead th:first-child{border-radius:7px 0 0 7px}.retiro-show-assets-table thead th:last-child{border-radius:0 7px 7px 0}.retiro-show-assets-table tbody td{padding:8px 9px;border-color:#e0e8f1;color:#183654;vertical-align:middle}.retiro-show-assets-table tbody tr:nth-child(even){background:#f5f8fc}.retiro-show-assets-table td strong{font-weight:700}.retiro-show-assets-table td small{display:block;margin-top:3px;color:#74869a;font-size:11px}.retiro-show-area{display:inline-flex;align-items:center;gap:6px;font-weight:700;white-space:nowrap}.retiro-show-area i{color:#315f91}.retiro-show-item-pending{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:20px;background:#fff0c2;color:#805900;font-size:11px;font-weight:750;white-space:nowrap}.retiro-show-assets-empty{display:flex;align-items:center;gap:14px;padding:22px;color:#60758d}.retiro-show-assets-empty>i{font-size:30px;color:#8ca2bb}.retiro-show-assets-empty strong{color:#173b65}.retiro-show-assets-empty p{margin:3px 0 0;font-size:12px}.retiro-show-assets-footnote{margin-top:10px;padding:8px 10px;border-left:3px solid #f2c328;background:#fff9e7;color:#6a6a60;font-size:11px}.retiro-show-assets-footnote i{margin-right:5px;color:#a77b00}

.retiro-show-observation-text{padding:12px 14px;border:1px solid #d5e0ed;border-radius:8px;background:#f5f8fc;color:#183654;font-size:13px;min-height:48px}.retiro-show-decision-form label{display:block;margin-bottom:7px;color:#173b65;font-weight:700;font-size:13px}.retiro-show-decision-form label small{color:#7b8998;font-weight:400}.retiro-show-decision-form textarea{border-color:#cbd8e6;border-radius:8px}.retiro-show-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:14px}.retiro-show-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto!important;min-width:0!important;flex:0 0 auto!important;padding:9px 17px!important;border-radius:8px!important;font-weight:750!important;white-space:nowrap}.retiro-show-btn-reject{border:1px solid #d7a6a4!important;background:#fff!important;color:#a12620!important}.retiro-show-btn-approve{border:1px solid #e5b600!important;background:#f2c328!important;color:#092c52!important}.retiro-show-final-alert{padding:13px 16px;border:1px solid #a9d9b7;border-radius:9px;background:#eaf7ee;color:#176333;font-size:13px}.retiro-show-final-alert i{margin-right:7px}

@media(max-width:1050px){.retiro-show-grid-dates-approval{grid-template-columns:1fr}.retiro-show-assets-head{align-items:flex-start;flex-direction:column}.retiro-show-assets-summary{justify-content:flex-start}}

@media(max-width:760px){.retiro-show-hero{flex-wrap:wrap;background:#eaf2fc}.retiro-show-hero-copy h2{font-size:21px}.retiro-show-btn-back{margin-left:auto}.retiro-show-statusbar{flex-wrap:wrap}.retiro-show-status-pill{margin-left:60px}.retiro-show-grid-two{grid-template-columns:1fr}.retiro-show-date-grid{grid-template-columns:1fr}.retiro-show-data-row{grid-template-columns:1fr;gap:3px}.retiro-show-assets-summary{gap:5px}.retiro-show-actions{flex-wrap:wrap}.retiro-show-assets-table{min-width:850px}}



/* SGV · Retiro: estados de devolución y bloqueo de aprobación */

.retiro-show-item-status{display:inline-flex;align-items:center;gap:.4rem;padding:.42rem .78rem;border-radius:999px;font-size:.82rem;font-weight:700;white-space:nowrap}

.retiro-show-item-status.returned{background:#d9f3e3;color:#176b3a;border:1px solid #a9dfbd}

.retiro-show-item-status.pending{background:#fff0c2;color:#8a5a00;border:1px solid #f5d77c}

.retiro-show-item-status.review{background:#fde2e2;color:#a52222;border:1px solid #f2b8b8}

.retiro-show-return-meta{display:block;margin-top:.35rem;color:#526782;font-size:.76rem;line-height:1.35}

.retiro-show-block-alert{border-left:4px solid #e0ad00;background:#fff8e2;color:#725000;font-weight:600}

.retiro-show-btn-approve:disabled{opacity:.48;cursor:not-allowed;filter:grayscale(.25)}



/* =========================================================

   RETIROS | VERIFICACIÓN DE TALENTO HUMANO (RRHH)

   ========================================================= */

.retiro-rrhh-panel{overflow:hidden;margin:0 0 16px;border:1px solid #d4dfec;border-radius:12px;background:#fff;box-shadow:0 2px 7px rgba(13,43,76,.07);color:#102f55}

.retiro-rrhh-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;background:linear-gradient(100deg,#fff0b8,#f7cf3e)}

.retiro-rrhh-head>div:first-child{display:flex;align-items:center;gap:12px}.retiro-rrhh-head>div:first-child>i{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:11px;background:#fff;color:#173b65;font-size:23px}

.retiro-rrhh-head h4{margin:0;color:#102f55;font-size:18px;font-weight:800}.retiro-rrhh-head p{margin:3px 0 0;color:#526a84;font-size:12px}

.retiro-rrhh-progress{display:flex;align-items:center;gap:10px;padding:8px 13px;border:1px solid rgba(23,59,101,.12);border-radius:9px;background:#fff}.retiro-rrhh-progress strong{color:#173b65;font-size:23px;font-weight:850}.retiro-rrhh-progress span{color:#536b85;font-size:11px;font-weight:650}

.retiro-rrhh-progress-track{height:7px;background:#f0e5bd}.retiro-rrhh-progress-track span{display:block;height:100%;background:#198754;transition:width .2s ease}

.retiro-rrhh-body{padding:14px}.retiro-rrhh-group{overflow:hidden;margin-bottom:13px;border:1px solid #dbe4ef;border-radius:9px}.retiro-rrhh-group:last-child{margin-bottom:0}.retiro-rrhh-group>header{display:flex;align-items:center;gap:8px;padding:10px 13px;background:#173b65;color:#fff;font-size:13px;font-weight:750}.retiro-rrhh-group>header i{color:#f2c328;font-size:16px}

.retiro-rrhh-item{padding:12px 13px;border-bottom:1px solid #e6edf5}.retiro-rrhh-item:last-child{border-bottom:0}.retiro-rrhh-item:nth-child(even){background:#f7f9fc}.retiro-rrhh-item-title{display:flex;align-items:center;gap:8px;margin-bottom:9px}.retiro-rrhh-item-title strong{color:#173b65;font-size:12px}.retiro-rrhh-required,.retiro-rrhh-optional{padding:3px 8px;border-radius:20px;font-size:10px;font-weight:750}.retiro-rrhh-required{background:#fff0c2;color:#805900}.retiro-rrhh-optional{background:#e8eef5;color:#5a6d81}

.retiro-rrhh-fields{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(240px,1.5fr) minmax(220px,1fr);gap:10px;align-items:end}.retiro-rrhh-fields label{display:block;margin-bottom:5px;color:#526a84;font-size:11px;font-weight:700}.retiro-rrhh-fields .form-control,.retiro-rrhh-fields .form-select{min-height:38px;border-color:#ccd9e8;border-radius:7px;color:#173b65;font-size:12px}.retiro-rrhh-row-actions{display:flex;justify-content:flex-end;margin-top:9px}.retiro-rrhh-save{display:inline-flex;align-items:center;gap:7px;width:auto!important;min-width:0!important;padding:7px 13px!important;border:1px solid #e0b600!important;border-radius:7px!important;background:#f2c328!important;color:#102f55!important;font-size:11px;font-weight:750!important}.retiro-rrhh-audit{display:block;margin-top:7px;color:#6c8097;font-size:10px}.retiro-rrhh-file{margin-top:7px;color:#536b85;font-size:11px}.retiro-rrhh-file a{color:#174f83;font-weight:700;text-decoration:underline}.retiro-rrhh-readonly-row{display:flex;align-items:center;gap:10px;color:#526a84;font-size:11px}.retiro-rrhh-state{display:inline-flex;padding:5px 10px;border-radius:20px;font-size:10px;font-weight:800}.retiro-rrhh-state.ok{background:#d9f3e3;color:#176b3a}.retiro-rrhh-state.na{background:#e8eef5;color:#53677d}.retiro-rrhh-state.pending{background:#fff0c2;color:#8a5a00}.retiro-rrhh-readonly-note{margin-top:12px;padding:10px 12px;border-left:3px solid #9aaabd;background:#f2f5f8;color:#53677d;font-size:11px}.retiro-rrhh-foot{display:flex;align-items:center;gap:9px;padding:12px 16px;font-size:12px;font-weight:750}.retiro-rrhh-foot.ready{border-top:1px solid #a9dfbd;background:#eaf7ee;color:#176333}.retiro-rrhh-foot.blocked{border-top:1px solid #f0d47a;background:#fff8e2;color:#805900}

@media(max-width:1000px){.retiro-rrhh-fields{grid-template-columns:1fr 1fr}.retiro-rrhh-fields>div:last-child{grid-column:1/-1}}

@media(max-width:650px){.retiro-rrhh-head{align-items:flex-start;flex-direction:column}.retiro-rrhh-fields{grid-template-columns:1fr}.retiro-rrhh-fields>div:last-child{grid-column:auto}.retiro-rrhh-progress{align-self:stretch}}

.retiro-rrhh-history{margin-top:13px;border:1px solid #dbe4ef;border-radius:8px;background:#fff}.retiro-rrhh-history summary{padding:10px 12px;color:#173b65;font-size:12px;font-weight:750;cursor:pointer}.retiro-rrhh-history summary i{margin-right:6px;color:#b88900}.retiro-rrhh-history .table{font-size:11px}.retiro-rrhh-history .table thead th{background:#f1f5fa;color:#173b65;white-space:nowrap}.retiro-rrhh-history .table td{color:#526a84;vertical-align:middle}

.retiro-rrhh-legal-note{padding:10px 16px;border-top:1px solid #e5ebf2;background:#f7f9fc;color:#60758d;font-size:10px}.retiro-rrhh-legal-note i{margin-right:6px;color:#b88900}


/* =========================================================
   RETIROS — CHECKLIST RRHH EN TABLA COMPACTA
   Mantiene los controles y formularios existentes.
   ========================================================= */
.retiro-rrhh-compact-body { padding: 10px 12px; }
.retiro-rrhh-table-wrap { width: 100%; overflow-x: auto; }
.retiro-rrhh-compact-table {
    width: 100%;
    min-width: 920px;
    margin: 0;
    color: #183654;
    font-size: 12px;
    border-collapse: separate;
    border-spacing: 0;
}
.retiro-rrhh-compact-table thead th {
    padding: 9px 10px;
    border: 0;
    background: #f2c328;
    color: #173b65;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.retiro-rrhh-compact-table tbody td {
    padding: 7px 9px;
    border-bottom: 1px solid #e0e8f1;
    vertical-align: middle;
}
.retiro-rrhh-compact-table .rrhh-col-num { width: 42px; text-align: center; }
.retiro-rrhh-compact-table .rrhh-col-result { width: 125px; }
.retiro-rrhh-compact-table .rrhh-col-support { width: 170px; }
.retiro-rrhh-group-row th {
    padding: 8px 10px;
    background: #eaf1f8;
    color: #173b65;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
}
.retiro-rrhh-group-row th i { margin-right: 7px; color: #b88900; }
.retiro-rrhh-data-row:nth-child(even) { background: #fbfcfe; }
.rrhh-num-cell { text-align: center; color: #6b7f95; font-weight: 700; }
.rrhh-requirement-name { color: #173b65; font-size: 12px; font-weight: 700; line-height: 1.35; }
.retiro-rrhh-required, .retiro-rrhh-optional { display: inline-flex; margin-top: 4px; }
.rrhh-compact-controls {
    display: grid;
    grid-template-columns: minmax(115px, .7fr) minmax(180px, 1.3fr) minmax(180px, 1fr);
    align-items: center;
    gap: 7px;
}
.rrhh-compact-controls .form-control,
.rrhh-compact-controls .form-select {
    min-width: 0;
    min-height: 34px;
    padding: 5px 8px;
    border-color: #ccd9e8;
    border-radius: 6px;
    color: #173b65;
    font-size: 11px;
}
.rrhh-support-control small {
    display: block;
    margin-top: 3px;
    color: #71849a;
    font-size: 10px;
}
.retiro-rrhh-compact-form { min-width: 0; }
.retiro-rrhh-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    margin-top: 7px;
    padding: 6px 12px !important;
    border: 1px solid #e0b600 !important;
    border-radius: 7px !important;
    background: #f2c328 !important;
    color: #102f55 !important;
    font-size: 11px;
    font-weight: 750 !important;
}
.retiro-rrhh-file { overflow-wrap: anywhere; }
.retiro-rrhh-audit { display: block; margin-top: 5px; color: #71849a; font-size: 10px; }
.rrhh-observation-cell { min-width: 180px; overflow-wrap: anywhere; }
.rrhh-support-link { color: #174f83; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .rrhh-compact-controls { grid-template-columns: 1fr 1fr; }
    .rrhh-support-control { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
    .retiro-rrhh-head { align-items: flex-start; flex-direction: column; }
    .retiro-rrhh-progress { align-self: stretch; }
    .retiro-show-hero { flex-wrap: wrap; background: #eaf2fc; }
    .retiro-show-grid-two,
    .retiro-show-grid-dates-approval { grid-template-columns: 1fr; }
    .retiro-show-date-grid { grid-template-columns: 1fr; }
    .retiro-show-data-row { grid-template-columns: 1fr; gap: 3px; }
    .retiro-show-actions { flex-wrap: wrap; }
    .rrhh-compact-controls { grid-template-columns: 1fr; }
    .rrhh-support-control { grid-column: auto; }
}

/* AJUSTE PUNTUAL: campo Observaciones de la decisión en retiros */
.retiro-show-decision-form textarea {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 110px;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #cbd8e6;
    border-radius: 8px;
    background: #fff;
    color: #183654;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.retiro-show-decision-form textarea:focus {
    outline: none;
    border-color: #0B315F;
    box-shadow: 0 0 0 3px rgba(11, 49, 95, .12);
}


/* =========================================================
   CORRECCIÓN MENÚ MÓVIL
   Muestra el panel cuando el botón activa la clase is-open.
   No modifica navegación ni permisos; conserva el menú dinámico.
   ========================================================= */
@media (max-width: 900px) {
    .sgv-topbar {
        position: relative;
        overflow: visible;
        z-index: 10000;
    }

    .sgv-topbar .sgv-nav-mobile-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        max-height: calc(100dvh - 220px);
        overflow-y: auto;
        overscroll-behavior: contain;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 14px;
        background: var(--sgv-primary-dark, #082344);
        border-top: 1px solid rgba(255,255,255,.14);
        border-bottom: 3px solid var(--sgv-gold, #D9A900);
        box-shadow: 0 12px 24px rgba(0,0,0,.24);
        z-index: 10001;
    }

    .sgv-topbar .sgv-nav-mobile-panel.is-open {
        display: flex;
    }

    .sgv-topbar .sgv-mobile-link,
    .sgv-topbar .sgv-mobile-trigger,
    .sgv-topbar .sgv-mobile-logout {
        display: flex;
        align-items: center;
        gap: 11px;
        width: 100%;
        min-height: 46px;
        padding: 11px 13px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 8px;
        background: rgba(255,255,255,.07);
        color: #fff;
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
        box-sizing: border-box;
    }

    .sgv-topbar .sgv-mobile-link > span:first-child,
    .sgv-topbar .sgv-mobile-trigger > span:first-child {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        min-width: 22px;
        color: var(--sgv-gold, #D9A900);
    }

    .sgv-topbar .sgv-mobile-trigger > span:nth-child(2) {
        flex: 1 1 auto;
    }

    .sgv-topbar .sgv-mobile-link:hover,
    .sgv-topbar .sgv-mobile-trigger:hover,
    .sgv-topbar .sgv-mobile-link.is-active,
    .sgv-topbar .sgv-mobile-trigger.is-active {
        background: rgba(255,255,255,.16);
        border-color: var(--sgv-gold, #D9A900);
    }

    .sgv-topbar .sgv-mobile-submenu {
        display: none;
        flex-direction: column;
        gap: 3px;
        margin: 0 0 6px 22px;
        padding: 5px 0 5px 10px;
        border-left: 2px solid var(--sgv-gold, #D9A900);
    }

    .sgv-topbar .sgv-mobile-submenu.is-open {
        display: flex;
    }

    .sgv-topbar .sgv-mobile-submenu a {
        display: block;
        min-height: 40px;
        padding: 10px 12px;
        border-radius: 6px;
        color: rgba(255,255,255,.94);
        font-size: 13px;
        line-height: 1.35;
        text-decoration: none;
    }

    .sgv-topbar .sgv-mobile-submenu a:hover,
    .sgv-topbar .sgv-mobile-submenu a.is-active {
        background: rgba(255,255,255,.13);
        color: var(--sgv-gold, #F2C94C);
    }

    .sgv-topbar .sgv-mobile-logout {
        margin-top: 8px;
        border-color: rgba(255,255,255,.2);
        background: rgba(180,35,24,.22);
        color: #fff;
    }
}

/* SGV - Excepción específica para la última fecha del calendario mensual.
   Evita que la regla global de botones en la última columna convierta
   las tarjetas de turnos en botones amarillos horizontales. */
.programacion-mensual-page table.programacion-mensual-table td.programacion-last-day-cell:has(> button.programacion-shift) {
    white-space: normal !important;
    padding: .35rem .4rem !important;
    vertical-align: middle !important;
}
.programacion-mensual-page table.programacion-mensual-table td.programacion-last-day-cell:has(> button.programacion-shift) > button.programacion-shift {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 88px !important;
    height: auto !important;
    margin: 0 !important;
    padding: .4rem .5rem !important;
    gap: .2rem !important;
    white-space: normal !important;
    text-align: left !important;
    color: #102a43 !important;
    background: #eef4ff !important;
    border: 1px solid #cfe0ff !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.programacion-mensual-page table.programacion-mensual-table td.programacion-last-day-cell:has(> button.programacion-shift) > button.programacion-shift .programacion-shift-name,
.programacion-mensual-page table.programacion-mensual-table td.programacion-last-day-cell:has(> button.programacion-shift) > button.programacion-shift .programacion-shift-time,
.programacion-mensual-page table.programacion-mensual-table td.programacion-last-day-cell:has(> button.programacion-shift) > button.programacion-shift .programacion-shift-status {
    display: block !important;
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
}
.programacion-mensual-page table.programacion-mensual-table td.programacion-last-day-cell:has(> button.programacion-shift) > button.programacion-shift .programacion-shift-status {
    margin-top: .15rem !important;
    color: #1769e0 !important;
}
