:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
}

/* ===========================
   Base
   =========================== */

body.che-worker-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #FFF;
    color: #0f172a;
}


/* Tipografía global */
body.che-worker-page {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Encabezados */
h1, h2, h3, h4 {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
h4 { font-weight: 600; }

/* Párrafos */
p {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    color: #111827;
}


/* Titulares y texto */
/* h1,
h2 {
    font-family: Cardo;
}

p {
    font-family: sans-serif;
} */

/* ===========================
   Layout principal
   =========================== */

.che-worker-main {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
}

.che-worker-content {
    margin-top: 70px;       /* altura del header */
    margin-left: 70px;      /* ancho aproximado de la sidebar */
    padding: 1.25rem 1rem;
    width: auto;
    min-height: calc(100vh - 70px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #f9fafb;
}

/* Vista de partes (si la usas) */
.che-worker-page.che-worker-partes-view .che-worker-main {
    max-width: 1100px;
    padding: 1rem;
}

.che-worker-page.che-worker-partes-view .che-worker-content {
    background: #f9fafb;
}

/* Responsive móvil */
@media (max-width: 768px) {
    .che-worker-main {
        grid-template-columns: 1fr;
    }

    .che-worker-content {
        margin-left: 0;
        padding: 1rem 0.9rem 1.25rem;
    }
}

/* ===========================
   Header
   =========================== */

.che-worker-header-inner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: linear-gradient(135deg, #3d5061 0%, #556b7f 40%, #2c3e50 100%);
    box-shadow: 0 1px 10px rgba(15, 23, 42, 0.35);
    padding: 0.6rem 0.9rem;
    color: #fff;
    /* display: grid;
    grid-template-columns: 0.1fr 0.2fr 0.6fr 0.8fr; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seccion-izquierda {
    display: flex;
    align-items: center;
    width: 100px;
    gap: 1rem;
}

/* Usuario en header */

.che-worker-user {
    display: flex;
    align-items: center;
    gap: 5px;
    /* max-width: 360px; */
}

/* móviles pequeños */
@media (max-width: 400px) {
    .che-worker-user {
        transform: scale(0.7);
        margin-left: -8px;
        margin-right: -25px;
    }

    .che-notification-icon{
        font-size: 15px !important;
        width: 15px !important;
        height: 15px !important;
    }

    .che-notification-btn{
        padding: 7px 10px !important;
    }

    .che-notification-icon img.emoji{
        margin: 0 !important;
        vertical-align: 0 !important;
    }
}

/* móviles medianos */
@media (min-width: 401px) and (max-width: 480px) {
    .che-worker-user {
        transform: scale(0.8);
        margin-left: -5px;
    }
}

/* tablets y arriba */
@media (min-width: 481px) {
    .che-worker-user {
        transform: scale(1);
        margin-left: 0;
    }
}

.che-worker-user img {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    object-fit: cover;
}

.che-worker-user-info {
    display: flex;
    flex-direction: column;
}

.che-worker-name {
    font-weight: 600;
}

.che-worker-email {
    font-size: 0.85rem;
}

/* Logo y Marca */

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Botón hamburguesa */

.che-worker-menu-toggle {
    margin-right: 1rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.che-worker-menu-toggle:hover {
    text-shadow: 0 0 3px #ffffff;
}

/* ===========================
   Sidebar
   =========================== */

.che-worker-sidebar {
    position: fixed;
    top: 65px; /* justo debajo del header */
    left: 0;
    width: 200px;
    max-height: calc(100dvh - 75px);
    height: calc(100dvh - 65px);
    background: #3d5061;
    backdrop-filter: blur(14px);
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0.45rem;
    box-sizing: border-box;
    z-index: 25;
    box-shadow:
        1px 0 1px rgba(15, 23, 42, 0.65),
        0 0 0 1px rgba(15, 23, 42, 0.7) inset;
    transform: translateX(0);
    transition: transform 0.25s ease-in-out;
}

@supports (height: 100dvh) {
  .che-worker-sidebar {
    max-height: calc(100dvh - 65px);
  }
}

/* Sidebar colapsado */

.che-worker-page.che-sidebar-collapsed .che-worker-sidebar {
    transform: translateX(-100%);
    pointer-events: none;
}

/* Menú vertical */

.che-worker-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.che-worker-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    list-style: none;
    margin-top: 30px;
    padding: 0;
}

.che-worker-menu .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    padding: 0.45rem 0.2rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: rgba(226, 232, 240, 0.85);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
    font-size: 11px;
}

.che-worker-menu .menu-btn .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.che-worker-menu .menu-btn:hover {
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 60%);
    color: #e5e7eb;
    transform: translateY(-1px);
}

.che-worker-menu li.is-active .menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border-left: 3px solid #4caf50;
    color: #f9fafb;
    /* box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.9) inset; */
}

/* Footer sidebar (logout) */

.che-worker-sidebar-footer {
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.che-btn-logout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    padding: 0.45rem 0.2rem;
    border-radius: 999px;
    background: transparent;
    color: rgba(248, 250, 252, 0.8);
    text-decoration: none;
    font-size: 10px;
    transition: all 0.2s ease;
}

.che-btn-logout:hover {
    background: linear-gradient(135deg, #f97373 0%, #ef4444 50%, #b91c1c 100%);
    color: #fff;
}

.che-btn-logout .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* ===========================
   Secciones genéricas
   =========================== */

.che-worker-section {
    padding: 0.1rem 1rem;
    backdrop-filter: blur(16px);
    color: black;
}

/* .che-worker-section h2 {
    font-family: Cardo;
    font-size: 1.7rem;
    letter-spacing: 0.03em;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: black;
} */

/* Títulos generales dentro de main */

.che-worker-main h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ===========================
   Avatar / Editar perfil
   =========================== */

.che-profile-avatar-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.che-profile-avatar-upload {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 20px;
}

.che-profile-avatar-trigger {
    padding: 4px 10px;
    border-radius: 4px;
    background: #546E7A;
    color: #f9fafb;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.che-profile-avatar-trigger:hover {
    background: rgba(84, 110, 122, 0.6);
}

.che-profile-avatar-filename {
    font-size: 0.8rem;
    color: #9ca3af;
}

.che-profile-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 14px;
}

/* .che-profile-pass {
    background: #F9F8FA;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    height: 24px;
    padding: 0 10px 0 10px;
} */

.che-profile-pass {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 2.3rem 0.55rem 0.75rem; /* derecha grande para el icono */
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background-color: #f9fafb;
    font-size: 0.95rem;
}

/* Contenedor input + ojo */
.che-pass-wrapper {
    position: relative;
    width: 100%;
}

/* Botón ojo */
.che-pass-toggle {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #9ca3af;
}

.che-pass-toggle:hover {
    color: #6b7280;
}

.che-field-cambio {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.che-profile-block {
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 20px; 
}

.che-profile-block h3{
    margin: 0;
    padding-bottom: 10px;
}

.che-profile-block2 {
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.che-profile-block2 h3{
    margin: 0;
    padding-bottom: 20px;
}

.che-profile-avatar {
    display: flex;
    justify-content: center;
}

.che-profile-avatar img {
    border-radius: 20%;
}

/* ===========================
   Botones genéricos
   =========================== */

.all-btn {
    padding: 5px;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.primary {
    background-color: #2D8A56;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.primary:hover {
    background: rgba(84, 110, 122, 0.6);
}

/* ===========================
   Parte / Control de jornada
   =========================== */

#che-timer {
    font-weight: 600;
    font-size: 1.2rem;
}

#che-status-text {
    color: black;
}

#che-pause-reason {
    width: 80%;
}

.che-part-field,
.che-part-field-2 {
    margin: 1rem 0;
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 20px;
}

.che-part-field label,
.che-part-field-2 label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: black;
}

.che-part-field input[type="text"] {
    width: 95%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #64748b;
    font-size: 0.95rem;
    background: #ECF0F3;
    color: black;
}


.che-part-field-2 input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #64748b;
    font-size: 0.95rem;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

/* Botones del parte */

.che-part-buttons {
    display: flex;
    justify-content: space-around;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.che-part-buttons .button {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Start / Stop / Manual */

#che-stop-btn {
    background-color: #D32F2F;
    transition: background-color 0.2s ease;
    color: #FFF;
}

#che-stop-btn:hover {
    background-color: rgba(185, 28, 28, 0.6);
}

#che-start-btn {
    background-color: #2D8A56;
    transition: background-color 0.2s ease;
}

#che-start-btn:hover {
    background-color: rgba(36, 178, 150, 0.6);
}

#che-create-manual-btn {
    color: #FFF;
    background-color: #546E7A;
    transition: background-color 0.2s ease;
}

#che-create-manual-btn:hover {
    background-color: rgba(84, 110, 122, 0.6);
}

.che-part-buttons .button-primary,
.che-part-buttons .button.button-primary {
    background: var(--secondary-color);
    color: #ffffff;
}

.che-part-buttons .button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Mensajes */

#che-message {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* .che-part-panel {
    position: relative;
} */

/* Loader global para iniciar/finalizar parte */
.che-part-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9800;
}

.che-part-loader.is-active {
    display: flex;
}

.che-part-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
}

.che-part-loader-box {
    position: relative;
    z-index: 9810;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.85rem 1.4rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #111827;
}

/* Aviso parte */

.che-parte-warning {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #000000;
    background: rgba(251, 191, 36, 0.08);
    border-left: 3px solid #fb3d24;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

.che-parte-toast {
    margin-top: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    background: #ecfdf3;
    border: 1px solid #22c55e;
    color: #14532d;
    font-size: 0.9rem;
    display: none;
}

.che-parte-toast--visible {
    display: block;
}

/* Dropzone archivos */

/* .che-dropzone {
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    background: #ECF0F3;
    color: black;
    border: 1px solid #64748b;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    margin-bottom: 0.5rem;
} */


.che-dropzone.is-dragover {
    border-color: #3b82f6;
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 1px #3b82f6 inset;
}

.che-files-list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
}

.che-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 2px 0;
    color: black;
}

.che-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.che-file-remove {
    border: none;
    background: transparent;
    color: #fca5a5;
    cursor: pointer;
    font-size: 14px;
}

/* ===========================
   Listados de partes (admin / cards)
   =========================== */

.che-admin-partes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 20px;
    font-family: sans-serif;
}

.che-admin-partes-table thead {
    color: white;
    background-color: black;
}

.che-admin-partes-table thead th {
    border: 1px solid white;
}

.che-admin-partes-table tr:not(:first-child) th,
.che-admin-partes-table tr:not(:first-child) td {
    border-top: 1px solid black;
}

.che-admin-partes-table td,
.che-admin-partes-table th {
    text-align: center;
}

/* Tarjetas de partes */

.che-worker-partes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.che-parte-card {
    border: 1px solid #1f2933;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: radial-gradient(circle at top, rgba(30, 64, 175, 0.18), rgba(15, 23, 42, 0.95));
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.75),
        0 0 0 1px rgba(15, 23, 42, 0.9) inset;
    font-size: 14px;
    color: #e5e7eb;
}

.che-parte-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.che-parte-card__id {
    color: #e5e7eb;
}

.che-parte-card__estado-validacion {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #f1f1f1;
    text-transform: capitalize;
}

.che-parte-card__estado-validacion--validado {
    background: #d4edda;
    color: #155724;
}

.che-parte-card__estado-validacion--rechazado {
    background: #f8d7da;
    color: #721c24;
}

.che-parte-card__body p {
    margin: 0 0 0.25rem;
}

.che-parte-card--empty {
    text-align: center;
    padding: 1rem;
    background: #fafafa;
    border-radius: 4px;
}

/* ===========================
   Vacaciones
   =========================== */

.che-vacaciones-range {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    /* margin-bottom: 1rem; */
}

.che-vacaciones-range input[type="date"] {
    padding: 4px 6px;
}

.che-vacaciones-fondofecha {
    background: #F9F8FA;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.che-vacaciones-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.che-vacaciones-form{
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 20px;
}

.che-vacaciones-form h3{
    margin: 0;
    padding-bottom: 20px;
}

.che-vacaciones-rangoiniciofin{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.che-vacaciones-iniciodiv{
    display: grid;
    grid-template-columns: 0.5fr 1fr;
}

.che-vacaciones-findiv{
    display: grid;
    grid-template-columns: 0.5fr 1fr;
}

.che-boton-vacaciones{
    display : grid;
    grid-template-columns: 0.5fr 1fr;
}

.che-boton-vacaciones button{
    grid-column: 2;
}

.che-vacacion-card {
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 14px;
    color: black;
}

.che-vacacion-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.che-vacacion-card__estado {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: capitalize;
    background: #f1f1f1;
    color: #111827;
}

.che-vacacion-card__estado--aprobado {
    background: #d4edda;
    color: #155724;
}

.che-vacacion-card__estado--rechazado {
    background: #f8d7da;
    color: #721c24;
}

.che-vacacion-card--empty {
    text-align: center;
    padding: 1rem;
    background: #fafafa;
    border-radius: 4px;
}

/* ===========================
   Modal parte manual + timepicker
   =========================== */

.che-manual-modal {
    position: fixed;
    inset: 0;
    z-index: 9800;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.che-manual-modal--open {
    display: flex;
}

.che-manual-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.che-manual-modal__dialog {
    position: relative;
    z-index: 9810;
    width: 92%;
    max-width: 420px;
    max-height: 90vh;
    background: #0b1220;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

/* Overlay de resultado en modal parte manual */
.che-manual-modal__result {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9920; /* por encima del contenido, debajo solo del loader si lo hubiera */
}

.che-manual-modal__result.is-active {
    display: flex;
}

.che-manual-modal__result-box {
    background: #ecfdf3;
    border-radius: 10px;
    padding: 0.85rem 1.4rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
    font-size: 0.9rem;
    color: #14532d;
    border: 1px solid #22c55e;
}

.che-manual-modal__result-box.is-error {
    border: 1px solid #ef4444;     /* rojo en error */
    background: #fef2f2;
    color: #991b1b;
    width: 85%;
}

.che-manual-modal__result-box p {
    margin: 0;
}

/* Overlay de carga en modal parte manual */
.che-manual-modal__loader {
    position: absolute;
    inset: 0;
    display: none;                /* Se activa con .is-active */
    align-items: center;
    justify-content: center;
    z-index: 9900;                /* Por encima del contenido del modal */
}

.che-manual-modal__loader.is-active {
    display: flex;
}

.che-manual-modal__loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.che-manual-modal__loader-box {
    position: relative;
    z-index: 9910;
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.4);
}

.che-manual-modal__loader-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #111827;
}

/* Spinner circular */
.che-spinner {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.4);
    border-top-color: #2D8A56;
    animation: che-spin 0.8s linear infinite;
}

@keyframes che-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cabecera */

.che-manual-modal__header {
    padding: 0.75rem 1.1rem;
    background: linear-gradient(135deg, #3d5061 0%, #556b7f 40%, #2c3e50 100%);
    color: #e5f0ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.che-manual-modal__title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #FFF;
}

.che-manual-modal__close {
    border: none;
    background: transparent;
    color: #e5f0ff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

/* Cuerpo */

.che-manual-modal__body {
    padding: 1.1rem;
    overflow-y: auto;
    color: #e5e7eb;
    background-color: #FFF;
}

.che-manual-form-section {
    display: block;
}

.che-manual-form-section__subtitle {
    font-size: 0.76rem;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

/* Campos */

.che-manual-form-group {
    margin-bottom: 0.85rem;
}

.che-manual-form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.86rem;
    color: black;
}

.che-manual-form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid #64748b;
    font-size: 0.95rem;
    background: #ECF0F3;
    color: black;
}

.che-manual-form-input:focus {
    outline: none;
    border-color: #38bdf8;
}

.che-manual-form-input-file {
    width: 100%;
    font-size: 0.85rem;
    color: #111827;
}

.che-manual-form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Pie */

.che-manual-modal__footer {
    padding: 0.75rem 1.1rem;
    border-top: 1px solid #1e293b;
    background: #dddddd;
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
}

.che-manual-btn {
    padding: 0.4rem 0.95rem;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
}

.che-manual-btn--secondary {
    background: #FFF;
    border-color: #4b5563;
    color: black;
}

.che-manual-btn--primary {
    background: #546E7A;
    color: #ffffff;
}

/* Timepicker */

.che-manual-timepicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.4rem 0.2rem;
    position: relative;
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-radius: 10px;
}

.che-manual-timepicker__col {
    position: relative;
    width: 64px;
    height: 140px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    text-align: center;
    scroll-snap-type: y mandatory;
}

.che-manual-timepicker__col::-webkit-scrollbar {
    display: none;
}

.che-manual-timepicker__item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #6b7280;
    scroll-snap-align: center;
}

.che-manual-timepicker__item--spacer {
    height: 50px;
}

.che-manual-timepicker__item--active {
    color: black;
    font-weight: 600;
}

.che-manual-timepicker__separator {
    color: black;
    font-size: 1.5rem;
    padding: 0 0.15rem;
}

/* línea indicadora central */
.che-manual-timepicker::before {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    pointer-events: none;
}

/* Mejora en móvil modal */

@media (max-width: 480px) {
    .che-manual-modal__dialog {
        width: 96%;
        border-radius: 10px;
    }
}


/* ================================
   BOTÓN CERRAR SESIÓN EN SIDEBAR
================================ */
.che-sidebar-logout {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.che-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.che-logout-btn:hover {
    background: #c82333;
    color: #fff;
}

.che-logout-btn .logout-icon {
    font-size: 1.1rem;
}

/* Forzar estilo uniforme a los date inputs de vacaciones */
.che-vacaciones-fondofecha {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background-color: #F9F8FA;
    font-size: 0.95rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
}

/* Icono de calendario más discreto en navegadores WebKit (Chrome, Safari, móviles) */
.che-vacaciones-fondofecha::-webkit-calendar-picker-indicator {
    color: transparent;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E")
        no-repeat center;
    opacity: 0.7;
}

/* Quitar borde azul intenso en iOS/Android al foco */
/* .che-vacaciones-fondofecha:focus {
    outline: none;
    border-color: #2D8A56;
    box-shadow: 0 0 0 1px rgba(45, 138, 86, 0.25);
} */

/* ===========================
   Notificaciones (vista tabla)
   =========================== */

.che-notificaciones-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.che-filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: #ffffff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 14px;
}

.che-filter-btn:hover {
    border-color: #999;
}

.che-filter-btn.active {
    border-color: #3498db;
    background: #3498db;
    color: #ffffff;
}

.che-notificaciones-empty {
    padding: 40px;
    text-align: center;
    color: #999;
}

.che-notificaciones-empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.che-notificaciones-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.che-notificaciones-table thead th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
    color: #333;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
}

.che-notificaciones-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.che-notification-row {
    transition: background 0.2s ease;
    cursor: pointer;
}

.che-notification-row[data-read="0"] {
    background: #fffbf0;
}

.che-notification-row[data-read="1"] {
    background: #f9f9f9;
}

.che-notification-row:hover {
    background: #f0f0f0 !important;
}

.che-notif-title {
    font-weight: 600;
    color: #333;
}

.che-notif-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.che-notif-message {
    color: #666;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.che-notif-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

.che-notif-status {
    text-align: center;
}

.che-notif-status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.che-notif-status-pill.is-read {
    background: #e8f5e9;
    color: #2e7d32;
}

.che-notif-status-pill.is-unread {
    background: #fff3cd;
    color: #856404;
}

/** Seccion Notificaciones - cartas**/

/* Contenedor general */
.che-notificaciones-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card */
.che-notificacion-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e3e3e3;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.che-notificacion-card:hover {
    background: #fafafa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* Header */
.che-notificacion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.che-notificacion-title {
    font-weight: 600;
    font-size: 14px;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Punto azul no leída */
.che-notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0073aa;
    display: inline-block;
}

/* Estado (pill) */
.che-notificacion-status {
    font-size: 12px;
}

.che-notif-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.che-notif-status-pill.is-unread {
    background: #fff7e6;
    color: #a86a00;
    border: 1px solid #ffdd99;
}

.che-notif-status-pill.is-read {
    background: #e6f7e6;
    color: #1b6e1b;
    border: 1px solid #b8e6b8;
}

/* Mensaje */
.che-notificacion-message {
    font-size: 13px;
    color: #555555;
    margin-bottom: 6px;
}

/* Footer */
.che-notificacion-footer {
    display: flex;
    justify-content: flex-start;
    font-size: 12px;
    color: #888888;
}

.che-notificacion-date {
    display: inline-flex;
    align-items: center;
}


@media (max-width: 768px) {
    .che-notificaciones-table {
        font-size: 12px;
    }

    .che-notificaciones-table thead th,
    .che-notificaciones-table tbody td {
        padding: 8px;
    }

    .che-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}


@media (max-width: 580px) {
    .che-notification-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        max-width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
        margin-top: 0;
    }
}

.che-notifications-container {
    max-height: calc(480px - 160px);
    overflow-y: auto;
}

.che-notification-dropdown-header h4{
    color: #ffffff;
}