/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    /* Ancho máximo de contenido centrado */
    --content-max: 980px;
    /* 920–1100px suele ir bien */
}

html, body {
    overscroll-behavior-y: none;
    min-height: 100%;
    overflow-x: hidden;
}


/* Estilos generales */
body {
    background-color: #1E305C;
    color: #333;
    text-align: center;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Header con logo centrado y hamburguesa a la izquierda */
header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    text-align: center;
    padding: 10px 0;
    background-color: #1E305C;
    z-index: 1000;
}

header img {
    max-width: 200px;
    height: auto;
}

#userAvatar {
    position: absolute;
    right: 12px;
    top: 14px;
    width: 38px;
    height: 38px;       
    border-radius: 50%;
    background-color: #1E305C;
    color: #ffffff;
    border: 2px solid #FF5A2F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


#hamburgerBtn {
    position: absolute;
    left: 8px;
    top: 3px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #1E305C;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .15s ease, background .15s ease;
    z-index: 1000;
}

/* En desktop, muévelo para que “caiga” sobre el borde izquierdo del contenido centrado */
@media (min-width: 992px) {
    #hamburgerBtn {
        left: calc((100vw - var(--content-max)) / 2 + 12px);
        /*             margen izquierdo del contenedor  padding interno */
    }
}

@media (min-width: 992px) {
    #userAvatar {
        right: calc((100vw - var(--content-max)) / 2 + 12px);
    }
}

#hamburgerBtn:hover {
    background: #1E305C;
    transform: scale(1.05);
}

#hamburgerBtn i {
    font-size: 2.4rem;
    line-height: 1;
}

/* === SIDE MENU DEFINITIVO (174 fixed) === */
:root {
    --content-max: 980px;
    /* ancho base del contenido centrado */
}

/* Estado base: cerrado */
#sideMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 286px;
    height: 100dvh;
    background: #102243;
    color: #fff;
    z-index: 1200;
    padding: 10px 8px 8px;
    box-shadow: 2px 0 18px rgba(0, 0, 0, .4);

    transform: translateX(-100%);
    transition: transform .25s ease-in-out, opacity .25s ease-in-out;
    opacity: 0.98;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}   


/* ABIERTO: solo cambiamos el transform */
#sideMenuBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

#sideMenuBackdrop.show {
    opacity: 1;
    pointer-events: auto;
}

#sideMenu.open {
    transform: translateX(0);
}


/* ===== Desktop: entra desde arriba ===== */
@media (min-width: 992px) {
    :root {
        --gutter: calc((100vw - var(--content-max)) / 2);
    }

    #sideMenu {
        left: var(--gutter);
        top: 0;
        width: 320px;
        height: calc(100vh - 8px);
        max-height: calc(100vh - 8px);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .28);

        transform: translateY(-110%);
        transform-origin: top left;
        overflow-y: hidden;
        display: flex;
        flex-direction: column;
    }

    #sideMenu.open {
        transform: translateY(0);
    }

    #sideMenu[aria-hidden="true"] {
        transform: translateY(-110%);
    }

    .sideMenu-list {
        flex: 1 1 auto;
        overflow-y: auto;
        padding-right: 4px;
    }
}


@media (min-width: 992px) {
    #sideMenu {
        backdrop-filter: blur(2px);
    }
}

@media (min-width: 992px) {
    .sideMenu-item {
        padding: 10px 10px;
        margin-bottom: 7px;
        font-size: 0.95rem;
        min-height: 46px;
    }

    .sideMenu-header {
        padding: 5px 3px 8px;
        margin-bottom: 8px;
    }
}

.sideMenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 2px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 8px;
    flex: 0 0 auto;
}

.sideMenu-header span {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .2px;
}

#closeMenuBtn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 8px;
    padding: 6px;
}

#closeMenuBtn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sideMenu-list {
    list-style: none;
    margin-top: 4px;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: none;
}

.sideMenu-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sideMenu-list li {
    margin: 0;
    padding: 0;
}

.sideMenu-item {
    width: 100%;
    text-align: left;
    background: #1B3464;
    border: none;
    color: #fff;
    padding: 10px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s ease, transform .1s ease;
    font-size: 0.94rem;
    line-height: 1.2;
    min-height: 48px;
}

.sideMenu-item i {
    font-size: 1rem;
    flex: 0 0 18px;
}

.sideMenu-item:hover {
    background: #254279;
    transform: translateX(2px);
}

/* Estado deshabilitado para items del menú lateral */
.sideMenu-item.is-disabled,
.sideMenu-item:disabled {
    background: #3a4a73 !important;
    /* más apagado que #1B3464 */
    color: #cbd5e1 !important;
    /* texto gris-azulado */
    cursor: not-allowed !important;
    pointer-events: none !important;
    /* no recibe clic */
    transform: none !important;
    /* sin efecto hover */
    opacity: 0.7;
}

.sideMenu-item.is-disabled i,
.sideMenu-item:disabled i {
    opacity: 0.85;
}


#supportShotWrap {
    max-height: 60vh;
    overflow-y: auto;
}

#supportShotPreview {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
}

.cm-dialog {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cm-body {
    overflow-y: auto;
}

/* Contenido principal */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 8px 16px 0;
    min-height: 0;        /* 🔥 CRÍTICO */
    overflow: visible;    /* 🔥 CRÍTICO */
}

main .container {
    background-color: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
    width: 100%;
    max-width: 500px;
    margin-top: 0;
}

#main-view > p {
    display: none !important;
}

#main-view {
    padding-top: 4px;
    margin-top: 0;
    min-height: 0;
    overflow-y: auto;
}

h1,
h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #004a99;
}

#mainLabel {
    font-size: 1.5rem;
    color: #FF4032;
    font-weight: 500;
}

#versionLabel {
    color:  black;
    /*  #1E305C; #FF4032*/
    font-size: 1.0rem;
    opacity: 0.90;
}

/* Input de código */
#code-container {
    margin-bottom: 12px;
    font-size: 0.8rem;
}

#codeInput {
    width: 70%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #004a99;
    border-radius: 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}

#loginBtn {
    width: 70%;
    max-width: 300px;
}

#codeInput::placeholder {
    text-transform: none;
}

#code-container button {
    padding: 12px 25px;
    font-size: 1.1rem;
    background-color: #004a99;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

#code-container button:hover {
    background-color: #0066cc;
}

/* Selected shift info */
#selected-shift-info {
    font-size: 1rem;
    color: #333;
    margin-top: 0;
}

#selected-shift-info .mb-3 {
    margin: 0 !important;
}

#shiftDatetime {
    color: #004a99;
    font-weight: 600;
}

/* Acciones */
#action-container {
    margin-top: 6px;
    margin-bottom: 6px;
}

#action-container button {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    margin: 14px 0;
}

#action-container button:hover {
    opacity: 0.9;
}

@media (max-height: 660px) {
    #action-container button {
        font-size: 1.3rem;
        padding: 16px;
    }
}

/* Colores de botones */
.btn-checkin {
    background-color: #28a745;
    color: #fff;
    border-radius: 12px;
    opacity: 0.9;
}

.btn-checkout {
    background-color: #dc3545;
    color: #fff;
    border-radius: 12px;
    opacity: 0.9;

}

.btn-report-checkout {
    /* background: linear-gradient(90deg, #2563eb, #16a34a); */
    background: #dc3545;
    color: #fff;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0.96;
}


.btn-break {
    background-color: #ffc107;
    color: #000 !important;
    border-radius: 12px;
    padding: 14px;
    font-size: 1.3rem;
    opacity: 0.9;
}

.btn-break i {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

@media (max-height: 660px) {
    .btn-break {
        font-size: 1.1rem;
        padding: 12px;
    }
}

/* Timers */
#timers {
    margin-top: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

@media (max-height: 660px) {
    #timers {
        font-size: 16px;
        padding: 8px 24px;
    }
}

#break-timer {
    color: #dc3545;
}

#shift-timer {
    color: #000;
}

/* Modal cámara */
#camera-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    /* el JS lo pone en display:flex cuando lo crea */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#camera-modal video,
#camera-modal img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
    background-color: black;
    margin-bottom: 20px;
    object-fit: cover;
    touch-action: none;
}

video::-webkit-media-controls,
video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    -webkit-appearance: none !important;
}

#camera-modal button {
    margin: 6px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease-in-out;
}

#camera-modal button:hover {
    background-color: #e0e0e0;
}

#camera-modal .btn-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    margin-top: 16px;
}

#camera-modal .btn-row .btn {
    flex: 0 1 auto;
    white-space: nowrap;
    padding: 10px 16px;
    line-height: 1.2;
    border-radius: 10px;
    min-width: 120px;
    font-size: clamp(13px, 2.6vw, 16px);
}

#camera-modal .btn-row .btn i,
#camera-modal .btn-row .btn .icon {
    display: inline-block;
    margin-right: 8px;
    vertical-align: -1px;
    font-size: 1em;
}

@media (max-width: 420px) {
    #camera-modal .btn-row {
        gap: 10px;
    }

    #camera-modal .btn-row .btn {
        min-width: 108px;
        padding: 9px 14px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    #camera-modal .btn-row {
        gap: 8px;
    }

    #camera-modal .btn-row .btn {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 12.5px;
    }
}

@media (max-width: 340px) {
    #camera-modal .btn-row {
        gap: 6px;
    }

    #camera-modal .btn-row .btn {
        min-width: 90px;
        padding: 7px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #camera-modal button {
        font-size: 18px;
        padding: 12px 24px;
    }
}

/* Toast / showMessage */
#responseMessage {
    margin-top: 12px;
    width: 100%;
}

#responseMessage .alert {
    margin: 0;
    border-radius: 8px;
    font-weight: lighter;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== CLOSE BUTTONS ===== */
/* Look común para TODOS los botones de cierre */
.close-btn {
    color: #1E305C;
    /* color por defecto */
}

.close-btn:hover {
    background: rgba(30, 48, 92, 0.08);
}

.close-btn:focus-visible {
    outline: 2px solid #9ec5fe;
    outline-offset: 2px;
}

/* mantener el “empuje” visual del header-close también al hacer click */
.close-btn:active {
    transform: translate(10px, -10px) scale(0.98);
}

/* Modificador: rojo (úsalo donde quieras) */
.close-btn.is-red {
    color: #dc2626;
}

.close-btn.is-red:hover {
    background: rgba(220, 38, 38, 0.08);
}

.close-btn.is-red:focus-visible {
    outline: 2px solid #fecaca;
    outline-offset: 2px;
}


/* ===== Scheduler header con botón Close (X círculo) ===== */
.scheduler-header,
.reports-header,
.payroll-header,
#reimb-view .reimb-header,
.live-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e7eef8;
    margin-bottom: 10px;
    padding: 10px 0 6px 0;
}


/* Botón X: más arriba y más a la derecha, con buen área táctil */
.header-close {
    position: absolute;
    right: 0;
    /* ancla a borde derecho interno */
    top: 0;
    /* ancla a borde superior interno */
    width: 44px;
    /* área táctil recomendada */
    height: 44px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: #1E305C;
    border-radius: 12px;
    cursor: pointer;

    /* empuja visualmente aún más arriba/derecha sin perder el área táctil */
    transform: translate(10px, -10px);
    line-height: 0;
    /* fix Safari/iPhone 8: evita que “baje” por baseline */
}

.header-close i {
    font-size: 1.45rem;
    display: block;
    /* junto con line-height:0, fija el alto del ícono */
}

.header-close:hover {
    background: rgba(30, 48, 92, 0.08);
}

.header-close:active {
    transform: translate(10px, -10px) scale(0.98);
}

.header-close:focus-visible {
    outline: 2px solid #9ec5fe;
    outline-offset: 2px;
}



.scheduler-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.scheduler-card {
    text-align: left;
    border: 2px solid #e7eef8;
    border-radius: 14px;
    padding: 12px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform .08s ease, box-shadow .2s ease;
}

.scheduler-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.scheduler-card .row1 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
    color: #1E305C;
    font-weight: 600;
}

.scheduler-card .row2 {
    color: #004a99;
    font-weight: 600;
    margin-bottom: 2px;
}

.scheduler-card .row3 {
    color: #2b2b2b;
    opacity: .9;
}

.scheduler-empty {
    padding: 16px;
    color: #666;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 10px;
    margin-top: 12px;
}

/* ===== CONTACT MODAL ===== */

/* ===== CONTACT MODAL (FULL, reemplaza tu bloque del modal) ===== */
#contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    /* se muestra con .show */
    align-items: center;
    justify-content: center;
}

#contact-modal.show {
    display: flex;
}

#contact-modal .cm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

#contact-modal .cm-dialog {
    position: relative;
    width: min(92vw, 480px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
    padding: 14px 16px;
    z-index: 1;
    text-align: left;
}

/* Header centrado con espacio reservado para el botón (derecha) */
#contact-modal .cm-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-right: 72px;
    /* más espacio para el botón */
    overflow: visible;
    /* por si el botón se “sale” un poquito */
    /* espacio para el botón X */
}

#contact-modal .cm-header h4 {
    margin: 0;
    color: #004a99;
    font-weight: 600;
}

/* Botón Close del modal: X en círculo rojo */
#contact-modal .modal-close {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 44px;
    height: 44px;
    /* área táctil óptima */
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    border-radius: 12px;
    line-height: 0;
    /* evita “bajar” del ícono en iOS */
    transform: translate(12px, -12px);
    /* lo empuja visualmente hacia afuera (↑ y →) */
    z-index: 2;
}

#contact-modal .modal-close i {
    font-size: 1.4rem;
    display: block;
}

/* Color y estados (usa tus clases .close-btn + .is-red) */
#contact-modal .modal-close.close-btn.is-red {
    color: #dc2626;
}

#contact-modal .modal-close.close-btn.is-red:hover {
    background: rgba(220, 38, 38, 0.08);
}

#contact-modal .modal-close.close-btn.is-red:focus-visible {
    outline: 2px solid #fecaca;
    outline-offset: 2px;
}

/* Evita el “salto” de translate heredado */
#contact-modal .modal-close:active {
    transform: translate(12px, -12px) scale(0.98);
}

/* Cuerpo del modal */
#contact-modal .cm-body p {
    margin: 0 0 10px 0;
    color: #24324B;
    line-height: 1.45;
}

/* soporte para inert (deshabilita puntero y foco) */
[inert] {
    pointer-events: none;
}

[inert] * {
    pointer-events: none !important;
}

/* ===== WHATSAPP LINK ===== */
.wa-link {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wa-link:hover {
    text-decoration: underline;
}

.wa-link .bi-whatsapp {
    font-size: 1.1em;
    line-height: 1;
}

/* ===== SUPPORT MODAL IMPROVEMENTS ===== */

#contact-modal .cm-dialog {
    width: min(92vw, 520px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
}

#contact-modal .cm-header h4 {
    font-size: 1.45rem;
    font-weight: 700;
}

#contact-modal .cm-body {
    overflow-y: auto;
}

#contact-modal .cm-body p {
    font-size: 1.08rem;
    line-height: 1.55;
    color: #24324B;
    margin: 0 0 12px 0;
}

.support-wa-row {
    margin: 10px 0 14px 0;
}

.support-wa-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: 1.02rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.support-identity-wrap {
    margin: 12px 0 14px 0;
    padding: 12px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #f8fbff;
}

.support-identity-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1E305C;
    margin-bottom: 10px;
}

.support-identity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.support-identity-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.support-identity-actions .btn {
    flex: 1;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 600;
}

.support-privacy-note {
    font-size: 0.95rem !important;
    line-height: 1.45;
    color: #5b6475 !important;
    margin-top: 8px;
}

#supportShotWrap {
    max-height: 60vh;
    overflow-y: auto;
}

#supportShotPreview {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
}

/* ===== NEXT PAYROLL ===== */

/* ===== NEXT PAYROLL: Shift Date + Time en 1 sola columna ===== */
.payroll-table td.payroll-dt {
    white-space: normal;
    /* permite 2 líneas dentro de la celda */
    line-height: 1.15;
    min-width: 120px;
    /* ajusta si quieres más/menos */
}

.payroll-table td.payroll-dt .dt-date {
    font-weight: 600;
    color: #2b2b2b;
}

.payroll-table td.payroll-dt .dt-time {
    margin-top: 2px;
    font-weight: 600;
    color: #1E305C;
}


.payroll-empty {
    padding: 16px;
    color: #666;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 10px;
    margin-top: 12px;
}

.payroll-table-wrap {
    position: relative;
    /* scrolling ancestor para sticky */
    margin-top: 8px;
    border: 2px solid #e7eef8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: auto;
    /* barra horizontal si no cabe */
}

/* Tabla */
.payroll-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px;
    /* fuerza scroll horizontal si es necesario */
}

.payroll-table thead th {
    position: sticky;
    top: 0;
    background: #e9f1fb;
    color: #1E305C;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #d6e4f7;
    z-index: 3;
}

/* TH de Total: fijo arriba y pegado a la derecha */
.payroll-table thead th:last-child {
    position: sticky;
    top: 0;
    right: 0;
    z-index: 5;
    /* sobre las celdas del body */
    background: #e9f1fb;
    border-left: 1px solid #d6e4f7;
    min-width: 96px;
    /* ancho estable para $ */
}

.payroll-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef3fb;
    font-size: 0.95rem;
    background: #fff;
}

.payroll-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

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

/* Alineaciones y comportamiento de texto */
.payroll-table th,
.payroll-table td {
    white-space: nowrap;
    /* evita cortes en números/horas */
}

.payroll-table th.event,
.payroll-table td.event {
    white-space: normal;
    /* el Event puede ocupar dos líneas */
    max-width: 260px;
    /* limitar ancho del Event */
}

.payroll-table td.event {
    text-align: left;
    padding-left: 12px;
    /* un pelín de aire visual */
}

.payroll-table th.num,
.payroll-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.payroll-table td.num.center {
    text-align: center;
}

/* Columna TOTAL siempre visible (pegada a la derecha) en el body */
.payroll-table tbody td:last-child {
    position: sticky;
    right: 0;
    z-index: 4;
    /* debajo del header */
    background: #fff;
    border-left: 1px solid #eef3fb;
}

.payroll-table tbody tr:nth-child(even) td:last-child {
    background: #f8fbff;
}



/* ===== LAST PAYROLL (cards como Scheduler) ===== */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e7eef8;

    display: flex;
    align-items: center;
    justify-content: center;
    /* título centrado */
    margin-bottom: 10px;

    /* espacio para el botón X a la derecha */
    padding: 10px 72px 6px 10px;
    overflow: visible;
}

.lp-title {
    margin: 0;
    color: #004a99;
    line-height: 1.2;
}

.lp-empty {
    padding: 16px;
    color: #666;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 10px;
    margin-top: 12px;
}

/* contenedor de las cards (reutiliza .scheduler-list) */
#last-list {
    max-height: 65vh;
    overflow-y: auto;
}

/* Ajustes específicos para las filas internas de las tarjetas SOLO en Last Payroll */
#last-list .scheduler-card .row3 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    color: #1E305C;
    margin-top: 6px;
}

#last-list .scheduler-card .row3 i {
    margin-right: 4px;
}

#last-list .scheduler-card .row4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e7eef8;
    color: #1E305C;
}

#last-list .scheduler-card .row4 i {
    margin-right: 6px;
}

#last-list .scheduler-card .row4 strong {
    font-size: 1.05rem;
}

/* === Mini color-coding para Last Payroll === */
#last-list .scheduler-card .row3 .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
}

#last-list .scheduler-card .row3 .chip i {
    margin-right: 2px;
}

/* Chips por tipo */
#last-list .chip--hrs {
    background: #eef3fb;
    color: #1E305C;
}

#last-list .chip--rate {
    background: #e7fff6;
    color: #0a7f66;
}

/* teal suave */
#last-list .chip--reimb {
    background: #e8f4ff;
    color: #0b6efb;
}

/* azul */
#last-list .chip--reimb-zero {
    background: #f3f4f6;
    color: #7a8699;
}

/* apagado */

/* Barra Total con acento a la izquierda */
#last-list .total-bar {
    border-top: 1px dashed #e7eef8;
    margin-top: 8px;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid transparent;
    border-radius: 8px;
    padding-left: 10px;
}

/* Intensidades por monto total */
#last-list .total--hi {
    background: rgba(40, 167, 69, .08);
    color: #2e7d32;
    border-left-color: #2e7d32;
}

/* ≥ 200 */
#last-list .total--med {
    background: #fff7e6;
    color: #b26a00;
    border-left-color: #b26a00;
}

/* 100–199.99 */
#last-list .total--low {
    background: #f2f4f7;
    color: #334155;
    border-left-color: #94a3b8;
}

/* < 100 */



/* ===== Menú: badge rojo para "Reportes" ===== */
.badge-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(16, 34, 67, 0.4);
}



/* ===== REPORTS  ===== */

#backToMainFromReports {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.reports-empty {
    padding: 16px;
    color: #666;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 10px;
    margin-top: 12px;
}

#reports-list {
    max-height: 65vh;
    overflow-y: auto;
}

/* Chips (reutilizamos el estilo del Scheduler y añadimos tipos de Reporte) */
#reports-list .scheduler-card .row3 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    color: #1E305C;
    margin-top: 6px;
}

#reports-list .scheduler-card .row3 .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
}

#reports-list .scheduler-card .row3 .chip i {
    margin-right: 2px;
}

/* Tipos de chips */
.chip--status {
    background: #fff4e5;
    color: #b26a00;
}

/* pending */
.chip--urgent {
    background: #fde2e2;
    color: #b91c1c;
}

/* overdue */
.chip--location {
    background: #eef3fb;
    color: #1E305C;
}

.chip--id {
    background: #f3f4f6;
    color: #475569;
}

/* Fila inferior con “Due/Created” */
#reports-list .scheduler-card .row4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e7eef8;
    color: #1E305C;
}

#reports-list .scheduler-card .row4 i {
    margin-right: 6px;
}

/* Estado deshabilitado del menú (por compatibilidad con el helper) */
.sideMenu-item.is-disabled,
.sideMenu-item:disabled {
    background: #3a4a73 !important;
    color: #cbd5e1 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    opacity: .7;
}

.sideMenu-item.is-disabled i,
.sideMenu-item:disabled i {
    opacity: .85;
}


/* ===== REPORT CAPTURE (Wizard) ===== */

/* ===== REPORT CAPTURE HEADER — same scheme as Scheduler / Payroll ===== */

.rc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e7eef8;
    margin-bottom: 10px;
    padding: 10px 0 8px 0;
}

.rc-header .header-close-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 4px;
}

.rc-header .header-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.rc-subtitle-row {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 2px;
    padding: 0 10px;
}

.rc-title,
#rcTitle {
    margin: 0;
    color: #004a99;
    line-height: 1.2;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-subtitle,
#rcSubtitle {
    margin: 0;
    color: #5b6b82;
    font-size: 0.95rem;
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#rcCloseBtn.section-close-red {
    position: static;
}

@media (max-width: 576px) {
    .rc-title,
    #rcTitle {
        font-size: 1.15rem;
    }

    .rc-subtitle,
    #rcSubtitle {
        font-size: 0.88rem;
    }
}

.rc-label.is-required .rc-req,
.rc-checklabel.is-required .rc-req {
    color: #dc3545;
    /* rojo Bootstrap-ish */
    margin-left: 4px;
    font-weight: 600;
}

.rc-steps {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    /* antes ~8px */
    padding: 0 4px;
    /* antes 6px */
    overflow-x: auto;
    /* si son muchas, que deslicen horizontal */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (max-width: 480px) {
    .rc-steps {
        gap: 3px;
        margin-bottom: 4px;
        padding: 0 2px;
    }

    .rc-step {
        padding: 2px 7px;
        font-size: .78rem;
    }
}

.rc-step {
    padding: 3px 8px;
    /* antes 6px 10px */
    border-radius: 999px;
    font-weight: 600;
    font-size: .82rem;
    /* antes .92rem */
    line-height: 1.0;
    /* más apretado */
    background: #eef3fb;
    color: #1E305C;
    border: 1px solid #d6e4f7;
}

.rc-step.is-active {
    background: #1E305C;
    color: #fff;
    border-color: #1E305C;
}

.rc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rc-section {
    display: none;
}

.rc-section.is-active {
    display: block;
}

.rc-group {
    margin-bottom: 10px;
}

.rc-label {
    display: block;
    font-weight: 600;
    color: #1E305C;
    margin-bottom: 6px;
}

/* Solo cuando un label lleva acciones (como Translate) */
.rc-label--row {
    display: flex;
    /* mantiene tu tipografía/color/margen */
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    /* conserva el spacing original */
}

/* ==== Spacing fino para los 3 botones del SUMMARY ==== */
/* 1) Separación general del label y sus “chips” (status, etc.) */
.rc-label--row {
    gap: 6px;
    /* <— ajusta si quieres más/menos separación global */
}

/* 2) Separación específica entre los botones */
.rc-label--row .rc-trans-btn:first-of-type {
    margin-left: 8px;
    /* espacio entre el texto "EVENT SUMMARY" y el primer botón */
}

.rc-label--row .rc-trans-btn+.rc-trans-btn {
    margin-left: 4px;
    /* espacio entre botones (2º y 3º) */
}

/* (opcional) Cuando se apilen en móviles, reduce el gap */
@media (max-width: 420px) {
    .rc-label--row {
        gap: 4px;
    }

    .rc-label--row .rc-trans-btn:first-of-type {
        margin-left: 6px;
    }

    .rc-label--row .rc-trans-btn+.rc-trans-btn {
        margin-left: 3px;
    }
}


/* Botón pequeñito junto al label */
.rc-trans-btn {
    padding: 6px 10px;
}

/* Translate button — refuerzo visual (funciona con o sin Bootstrap) */
.rc-label .rc-trans-btn.btn-outline-success {
    border: 2px solid #22c55e;
    /* verde outline */
    color: #16a34a;
    /* texto verde */
    background: #fff;
}

.rc-label .rc-trans-btn.btn-outline-success:hover {
    background: #22c55e;
    color: #fff;
}

.rc-label .rc-trans-btn.btn-outline-success:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.rc-label .rc-trans-btn:focus-visible {
    outline: 2px solid #bbf7d0;
    /* anillo de enfoque verde claro */
    outline-offset: 2px;
}

/* Botón de borrar (estilo uniforme) */
.rc-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
}

/* Opcional: pequeño hover para diferenciar */
.rc-clear-btn:hover {
    opacity: .95;
}

/* Asegura fila para label con acciones */
.rc-label.rc-label--row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    /* Clear puede ir a la derecha con margin-left:auto cuando se necesite */
}


.rc-help {
    font-size: .9rem;
    color: #6b7280;
    margin-top: 4px;
}

.rc-input,
.rc-textarea,
.rc-select {
    width: 100%;
    border: 2px solid #e7eef8;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 1rem;
    background: #fff;
}

.rc-textarea {
    min-height: 96px;
    resize: vertical;
}

.rc-input:focus,
.rc-textarea:focus,
.rc-select:focus {
    outline: none;
    border-color: #9ec5fe;
    box-shadow: 0 0 0 3px rgba(158, 197, 254, .35);
}

.rc-error {
    color: #b91c1c;
    font-weight: 600;
    margin-top: 6px;
}

.rc-invalid .rc-input,
.rc-invalid .rc-textarea,
.rc-invalid .rc-select {
    border-color: #fca5a5;
    box-shadow: 0 0 0 3px rgba(252, 165, 165, .35);
}

.rc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rc-chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    background: #eaf2ff;
    color: #1E305C;
    border: 1px solid #cfe0fb;
    user-select: none;
}

.rc-chip.is-on {
    background: #1E305C;
    color: #fff;
    border-color: #1E305C;
}

.rc-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rc-thumb {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e7eef8;
    background: #f6f9ff;
    display: grid;
    place-items: center;
}

.rc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.rc-footer {
    position: sticky;
    bottom: 0;
    z-index: 15;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 24%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 6px 6px;
}

.rc-footer .spacer {
    flex: 1;
}

/* compact móvil: campos en una columna, ya es así por defecto */
@media (min-width: 720px) {
    .rc-two {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}


/* === Editor de tablas del Reporte === */
.rc-table-wrap {
    border: 2px solid #e7eef8;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
}

.rc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.rc-table thead th {
    position: sticky;
    top: 0;
    background: #e9f1fb;
    color: #1E305C;
    font-weight: 600;
    font-size: .95rem;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #d6e4f7;
}

.rc-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #eef3fb;
}

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

.rc-table input.rc-input {
    width: 100%;
}

.rc-table .rc-delrow {
    padding: 6px 10px;
}

.rc-grandtotal {
    text-align: right;
    font-weight: 600;
    color: #1E305C;
    margin-top: 8px;
}


/* ===== REIMBURSEMENTS (v169 estándar) ===== */

#reimb-view {
    position: relative;
}

/* Reimbursements — acciones del archivo */
.rc-file-actions {
    display: flex;
    gap: 8px;
}

/* Two fields side-by-side: keep 2 cols at all widths */
.rc-row.two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.rc-row.two-cols .rc-group {
    margin-bottom: 10px;
}

/* Compact tweaks for small screens but still 2 cols */
@media (max-width: 560px) {
    .rc-row.two-cols {
        gap: 8px;
    }

    .rc-row.two-cols .rc-label {
        font-size: 0.92rem;
    }

    .rc-row.two-cols .rc-input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

#reimb-view .rc-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 24%);
    padding: 12px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    gap: 12px;
    align-items: center;
}


/* Submit status banner: ocupa toda la fila encima de los botones */
#reimb-view #reimbSubmitStatusBanner {
    margin: 12px 0;
}


/* Oculta el spacer usado antes para alinear a la derecha */
#reimb-view .rc-footer .spacer {
    display: none !important;
}

/* Botones llenan su celda */
#reimb-view .rc-footer .btn {
    flex: 1;
    width: auto;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 10px;
}

/* Banners de Reimbursements (File / Submit) */
#reimb-view .reimb-banner {
    border-radius: 10px;
    font-weight: 600;
}

/* ===== RC MODAL (reusable) ===== */
.rc-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
}

.rc-modal.show {
    display: block;
}

.rcm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.rcm-dialog {
    position: relative;
    z-index: 1;
    margin: 6vh auto 4vh auto;
    width: min(96vw, 560px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
    display: flex;
    flex-direction: column;
}

.rcm-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 64px 8px 12px;
    border-bottom: 1px solid #e7eef8;
}

.rcm-header h4 {
    margin: 0;
    color: #004a99;
    font-weight: 600;
}

.rcm-header .modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    transform: translate(10px, -10px);
    border: none;
    background: transparent;
    border-radius: 12px;
}

.rcm-body {
    padding: 12px;
    max-height: 60vh;
    overflow: auto;
}

.rcm-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px 12px;
    border-top: 1px solid #e7eef8;
}



.rc-btn-trash {
    color: #dc3545;
    /* rojo Bootstrap danger */
    padding: 2px 6px;
}

.rc-btn-trash:hover {
    color: #a71d2a;
    text-decoration: none;
}

.rc-btn-trash i {
    font-size: 1rem;
}


/* ================================
   SALES & INVENTORY — unified look
   (pegar al final de style179.css)
   ================================ */

/* --- Diálogo de modal (mismo ancho/espaciado) --- */
#sales-modal .rcm-dialog,
#inventory-modal .rcm-dialog {
    width: min(560px, 96vw);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(10, 30, 70, .20);
}

/* --- Header del modal --- */
#sales-modal .rcm-header,
#inventory-modal .rcm-header {
    background: linear-gradient(180deg, #f6f8ff 0%, #eef2fb 100%);
    border-bottom: 1px solid #dbe3f0;
    padding: 14px 16px;
}

#sales-modal .rcm-header h4,
#inventory-modal .rcm-header h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: .4px;
    color: #1E305C;
    /* azul GLP */
}

/* --- Acciones arriba de la tabla (Parse / Add row) --- */
#sales-modal .rcm-body .rc-actions,
#inventory-modal .rcm-body .rc-actions {
    display: flex;
    gap: 8px;
    margin: 8px 0 10px 0;
    flex-wrap: wrap;
}

#sales-modal .rcm-body .rc-actions .btn,
#inventory-modal .rcm-body .rc-actions .btn {
    height: 34px;
    padding: 6px 10px;
    border-radius: 10px;
}

/* --- Tabla base unificada --- */
#sales-modal .rc-table,
#inventory-modal .rc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e6eaf3;
    border-radius: 12px;
    overflow: hidden;
    font-size: .95rem;
    table-layout: fixed;
    /* consistente con anchos */
}

#sales-modal .rc-table thead th,
#inventory-modal .rc-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #f4f7ff 0%, #e9effc 100%);
    color: #1E305C;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid #dbe3f0;
    border-right: 1px solid #e9eef5;
}

#sales-modal .rc-table thead th:last-child,
#inventory-modal .rc-table thead th:last-child {
    border-right: none;
}

#sales-modal .rc-table tbody td,
#inventory-modal .rc-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f3fa;
    border-right: 1px solid #f3f6fd;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sales-modal .rc-table tbody tr:nth-child(even),
#inventory-modal .rc-table tbody tr:nth-child(even) {
    background: #fafbff;
}

#sales-modal .rc-table tbody td:last-child,
#inventory-modal .rc-table tbody td:last-child {
    border-right: none;
}

/* --- Anchos y alineaciones por columna --- */
#sales-modal .rc-table .col-product,
#inventory-modal .rc-table .col-product {
    width: 56%;
}

#sales-modal .rc-table .col-qty,
#inventory-modal .rc-table .col-qty {
    width: 20%;
    text-align: center;
}

#sales-modal .rc-table .col-total {
    width: 18%;
    text-align: right;
}

#sales-modal .rc-table .col-actions,
#inventory-modal .rc-table .col-actions {
    width: 6%;
    text-align: center;
    white-space: nowrap;
}

/* --- Inputs de edición (mismo look para ambos modales) --- */
#sales-modal .rc-table .sales-input,
#inventory-modal .rc-table .sales-input {
    width: 100%;
    height: 34px;
    padding: 6px 10px;
    border: 1px solid #cfd9ea;
    border-radius: 10px;
    background: #fff;
    outline: none;
    box-shadow: inset 0 1px 1px rgba(10, 30, 70, .04);
    font-size: .95rem;
}

#sales-modal .rc-table .col-qty .sales-input,
#inventory-modal .rc-table .col-qty .sales-input,
#sales-modal .rc-table .col-total .sales-input {
    text-align: center;
}

#sales-modal .rc-table .sales-input:focus,
#inventory-modal .rc-table .sales-input:focus {
    border-color: #5b7cff;
    box-shadow: 0 0 0 3px rgba(91, 124, 255, .15);
}

/* --- Botón borrar fila --- */
#sales-modal .rc-table .rc-delrow,
#inventory-modal .rc-table .rc-delrow {
    border: none;
    background: transparent;
    color: #b5bfd3;
    padding: 4px;
    border-radius: 8px;
}

#sales-modal .rc-table .rc-delrow:hover,
#inventory-modal .rc-table .rc-delrow:hover {
    color: #ff4d4f;
    background: #fff1f0;
}

/* --- Footer del modal (botones del mismo tamaño y centrados) --- */
#sales-modal .rcm-footer,
#inventory-modal .rcm-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #e8ecf6;
    padding-top: 12px;
}

#sales-modal .rcm-footer .btn,
#inventory-modal .rcm-footer .btn {
    min-width: 140px;
    /* mismo ancho visual */
    height: 40px;
    border-radius: 12px;
    font-weight: 600;
}

/* --- Responsive tweaks --- */
@media (max-width: 480px) {

    #sales-modal .rcm-dialog,
    #inventory-modal .rcm-dialog {
        width: 94vw;
    }

    #sales-modal .rc-table .col-product,
    #inventory-modal .rc-table .col-product {
        width: 60%;
    }

    #sales-modal .rc-table .col-qty,
    #inventory-modal .rc-table .col-qty {
        width: 24%;
    }

    #sales-modal .rc-table .col-actions,
    #inventory-modal .rc-table .col-actions {
        width: 16%;
    }
}

/* ================================
   Column widths per modal
   ================================ */

/* SALES: Product + Qty + Amount + Actions = 100% */
#sales-modal .rc-table .col-product {
    width: 56%;
}

#sales-modal .rc-table .col-qty {
    width: 16%;
    text-align: center;
}

#sales-modal .rc-table .col-total {
    width: 22%;
    text-align: right;
}

#sales-modal .rc-table .col-actions {
    width: 6%;
    text-align: center;
}

/* INVENTORY: Product + Units + Actions = 100% */
#inventory-modal .rc-table .col-product {
    width: 74%;
}

#inventory-modal .rc-table .col-qty {
    width: 20%;
    text-align: center;
}

#inventory-modal .rc-table .col-actions {
    width: 6%;
    text-align: center;
}

/* Inputs alignment (mantiene coherencia) */
#sales-modal .rc-table .col-total .sales-input {
    text-align: right;
}

#sales-modal .rc-table .col-qty .sales-input,
#inventory-modal .rc-table .col-qty .sales-input {
    text-align: center;
}

/* Mobile tweaks */
@media (max-width: 480px) {

    /* SALES */
    #sales-modal .rc-table .col-product {
        width: 54%;
    }

    #sales-modal .rc-table .col-qty {
        width: 18%;
    }

    #sales-modal .rc-table .col-total {
        width: 22%;
    }

    #sales-modal .rc-table .col-actions {
        width: 6%;
    }

    /* INVENTORY */
    #inventory-modal .rc-table .col-product {
        width: 72%;
    }

    #inventory-modal .rc-table .col-qty {
        width: 22%;
    }

    #inventory-modal .rc-table .col-actions {
        width: 6%;
    }
}

/* =========================================================
   SALES MODAL — asegurar columna Actions visible (trash)
   Modal: #sales-modal | Table: #salesModalTable
   ========================================================= */

#sales-modal .rc-table-wrap {
    overflow-x: hidden;
}

/* evita scroll horizontal raro */
#salesModalTable {
    table-layout: fixed;
    width: 100%;
}

/* Ajuste de anchos por columna (usa tus clases) */
#salesModalTable th.col-product,
#salesModalTable td.col-product {
    width: 58%;
}

#salesModalTable th.col-qty,
#salesModalTable td.col-qty {
    width: 14%;
}

#salesModalTable th.col-amount,
#salesModalTable td.col-amount {
    width: 20%;
}

#salesModalTable th.col-actions,
#salesModalTable td.col-actions {
    width: 8%;
    min-width: 38px;
    /* <-- reserva espacio para el ícono */
    text-align: center !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

/* Compacta celdas e inputs en móvil */
@media (max-width: 576px) {

    #salesModalTable th,
    #salesModalTable td {
        padding: 6px 6px !important;
        vertical-align: middle;
    }

    #salesModalTable input.form-control,
    #salesModalTable input.form-control-sm {
        padding: 6px 8px !important;
        height: 34px !important;
        font-size: 13px !important;
    }
}

/* Botón trash: tamaño fijo (no se corta) */
#sales-modal .rc-btn-trash,
#sales-modal .rcRowDel,
#sales-modal .rcDelSalesRow,
#sales-modal .rcRowTrash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    line-height: 1;
}

/* Ícono un poquito más grande */
#sales-modal .rc-btn-trash i,
#sales-modal .rcRowDel i,
#sales-modal .rcDelSalesRow i,
#sales-modal .rcRowTrash i {
    font-size: 1.05rem;
}

/* SALES modal — trash SIEMPRE rojo */
#sales-modal .rc-btn-trash,
#sales-modal .rcRowDel,
#sales-modal .rcDelSalesRow,
#sales-modal .rcRowTrash {
    color: #dc3545 !important;
    /* rojo danger */
}

#sales-modal .rc-btn-trash i,
#sales-modal .rcRowDel i,
#sales-modal .rcDelSalesRow i,
#sales-modal .rcRowTrash i {
    color: #dc3545 !important;
}

#sales-modal .rc-btn-trash:hover,
#sales-modal .rcRowDel:hover,
#sales-modal .rcDelSalesRow:hover,
#sales-modal .rcRowTrash:hover {
    color: #a71d2a !important;
    /* rojo más oscuro hover */
}

#sales-modal .rc-btn-trash:hover i,
#sales-modal .rcRowDel:hover i,
#sales-modal .rcDelSalesRow:hover i,
#sales-modal .rcRowTrash:hover i {
    color: #a71d2a !important;
}

/* SALES modal — delete button (rc-delrow) rojo */
#sales-modal .rc-delrow {
    color: #dc3545 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#sales-modal .rc-delrow i {
    color: #dc3545 !important;
    font-size: 1.05rem;
}

#sales-modal .rc-delrow:hover,
#sales-modal .rc-delrow:focus {
    color: #a71d2a !important;
}

#sales-modal .rc-delrow:hover i,
#sales-modal .rc-delrow:focus i {
    color: #a71d2a !important;
}

/* =========================================================
   SALES modal — ajuste fino para que el trash SIEMPRE quepa
   ========================================================= */

#salesModalTable th.col-actions,
#salesModalTable td.col-actions {
    width: 9% !important;
    /* antes 8% */
    min-width: 42px !important;
    white-space: nowrap;
    padding-left: 2px !important;
    padding-right: 2px !important;
    text-align: center !important;
}

/* Botón delete un poquito más compacto */
#sales-modal .rc-delrow {
    width: 30px !important;
    /* antes 34 */
    height: 30px !important;
    padding: 0 !important;
}

/* Ícono apenas más chico */
#sales-modal .rc-delrow i {
    font-size: 1rem !important;
}


/* ===== Reimbursements: dual status banners (file + submit) ===== */
.reimb-banner {
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#reimbFileStatusBanner {
    font-size: 0.95rem;
}

#reimbSubmitStatusBanner {
    font-size: 0.95rem;
}

/* Reimbursements: submit banner dentro del footer, ancho completo arriba de los botones */
#reimb-view #reimbSubmitStatusBanner {
    grid-column: 1 / -1;
    margin-bottom: 0;
}


/* === No Break modal: custom blue radio buttons === */

#noBreakModal .form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    margin: 0;
    cursor: pointer;
}

/* ocultamos el radio nativo */
#noBreakModal .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* radio visual */
#noBreakModal .form-check-label {
    position: relative;
    padding-left: 28px;
    text-align: left;
    line-height: 1.35;
    font-weight: 600;
    color: #212529;
    cursor: pointer;
}

/* círculo externo (no seleccionado) */
#noBreakModal .form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #9ec5ff;
    /* azul claro */
    background: #fff;
    transition: all 0.2s ease;
}

/* círculo interno (seleccionado) */
#noBreakModal .form-check-label::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d6efd;
    /* azul Bootstrap */
    transform: scale(0);
    transition: transform 0.2s ease;
}

/* estado seleccionado */
#noBreakModal .form-check-input:checked+.form-check-label::before {
    border-color: #0d6efd;
}

#noBreakModal .form-check-input:checked+.form-check-label::after {
    transform: scale(1);
}

/* hover */
#noBreakModal .form-check:hover .form-check-label {
    color: #0d6efd;
}

/* === No Break modal: legal disclaimer === */
#noBreakModal .no-break-disclaimer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    /* separador suave */
    font-size: 0.75rem;
    /* pequeño pero legible */
    color: #6c757d;
    /* gris Bootstrap */
    line-height: 1.3;
    text-align: left;
}

/* =========================
   Live Supervisor (v203)
   ========================= */

.rc-live-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.rc-live-title {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: .2px;
}

.rc-live-body {
    padding: 12px 12px 90px 12px;
    /* aire por si tienes footer sticky */
}

.rc-live-loading {
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    font-weight: 600;
    color: #444;
}

.rc-live-empty {
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px dashed rgba(0, 0, 0, .18);
    color: #666;
    text-align: center;
}

.rc-live-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rc-live-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.rc-live-info {
    flex: 1 1 auto;
    min-width: 0;
}

.rc-live-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.15;
    color: #1f2a37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-live-meta,
.rc-live-meta2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: #667085;
    margin-top: 4px;
}

.rc-dot {
    opacity: .6;
}

.rc-live-states {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

/* botón base de estado */
.rc-btn-state {
    width: 86px;
    min-height: 64px;
    border-radius: 14px !important;
    font-weight: 600;
    line-height: 1.05;
    padding: 8px 8px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    background: #f6f7f9;
    color: #8a8f98;
}

.rc-btn-state .rc-time {
    display: block;
    font-weight: 600;
    font-size: 12px;
    margin-top: 4px;
}

/* IN/OUT DONE (verde sobrio) */
.rc-btn-in-done,
.rc-btn-out-done {
    background: rgba(16, 185, 129, .14) !important;
    /* green soft */
    border: 1px solid rgba(16, 185, 129, .35) !important;
    color: #0f5132 !important;
}

/* vacío */
.rc-btn-empty {
    background: #f6f7f9 !important;
    color: #8a8f98 !important;
}

/* BREAK box (no clickable) */
.rc-break-box {
    width: 92px;
    min-height: 64px;
    border-radius: 14px;
    padding: 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #f6f7f9;
}

.rc-break-label {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .4px;
    color: #6b7280;
}

.rc-break-time {
    margin-top: 6px;
    font-weight: 600;
    font-size: 12px;
    color: #111827;
}

.rc-break-empty {
    opacity: .55;
}

.rc-break-done {
    background: rgba(59, 130, 246, .14);
    /* blue soft */
    border: 1px solid rgba(59, 130, 246, .35);
}

.rc-break-on {
    background: rgba(59, 130, 246, .22);
    border: 1px solid rgba(59, 130, 246, .55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .10);
}

/* Modal photo */
.rc-photo-modal {
    border-radius: 18px;
    overflow: hidden;
}

.rc-photo-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* Responsive */
@media (max-width: 420px) {
    .rc-live-row {
        flex-direction: column;
    }

    .rc-live-states {
        justify-content: space-between;
    }

    .rc-btn-state,
    .rc-break-box {
        width: 32%;
    }
}

/* ===== LIVE SUPERVISOR header: mismo look que Scheduler/Payroll/Reports ===== */

.live-title {
    margin: 0;
    color: #004a99;
    line-height: 1.2;
    letter-spacing: .3px;
    font-weight: 600;
}

.rc-live-body {
    padding: 12px 0 90px 0;
}

.rc-live-event {
    margin-top: 2px;
    font-weight: 600;
    font-size: 12.5px;
    color: #1f2a37;
    opacity: .85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#liveSupervisorView .ls-filters {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 6px 0 12px 0;
}

#liveSupervisorView .ls-filter {
    min-width: 160px;
    flex: 1 1 200px;
}

#liveSupervisorView .ls-filter label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #335b8a;
    margin: 0 0 4px 2px;
}

#liveSupervisorView .ls-clear {
    height: 31px;
}

#checkHistoryView .live-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Live Supervisor Shift Signals Modal ===== */

.ls-shift-link {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #004a99;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ls-shift-link:hover {
    color: #0d6efd;
}

.ls-signals-modal {
    border-radius: 18px;
    overflow: hidden;
}

.ls-signals-meta {
    margin-top: 4px;
    font-size: 0.92rem;
    color: #5b6577;
    line-height: 1.35;
}

.ls-signals-section {
    border: 1px solid #e7eef8;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ls-signals-section-title {
    font-weight: 600;
    color: #1E305C;
    margin-bottom: 12px;
    text-align: left;
}


/* ===== Shift Signals modal polish ===== */

/* HEADER DEL MODAL */

.ls-modal-header {
    padding: 18px 18px 12px 18px;
    border-bottom: 1px solid #e6edf6;
}

/* botón close bonito */

.ls-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background-color: #eef3f9;
    background-size: 12px;

    border: 1px solid #d7e4f3;

    opacity: 1;

    transition: all .15s ease;
}

/* hover */

.ls-close-btn:hover {
    background-color: #e3edf8;
    transform: scale(1.05);
}

/* móvil */

@media (max-width:576px) {

    .ls-close-btn {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

}

/* ===== CLOSE BUTTON (GLOBAL STYLE PROJECT) ===== */

.modal-close-red {
    position: absolute;
    right: 16px;
    top: 14px;

    width: 32px;
    height: 32px;

    border-radius: 50%;
    border: 2px solid #FF4032;

    background: white;
    color: #FF4032;

    font-size: 16px;
    font-weight: 600;

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

    cursor: pointer;

    transition: all .15s ease;
}

.modal-close-red:hover {
    background: #FF4032;
    color: white;
}

/* ===== SHIFT FLAGS SUMMARY ===== */

.shiftFlags-summary {
    text-align: center;
    padding: 10px 16px 14px 16px;
    line-height: 1.25;
}

.shiftFlags-summary div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(13px, 2.6vw, 16px);
    font-weight: 600;
    color: #1E305C;
}


#lsSignalsModal .modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .18);
    overflow: hidden;
}


#lsSignalsModal .btn-close {
    transform: scale(.95);
    opacity: .8;
}

#lsSignalsModal .btn-close:hover {
    opacity: 1;
}

#lsSignalsModal .modal-body {
    padding: 16px 16px 10px 16px;
    background: #fbfdff;
}

#lsSignalsModal .modal-footer {
    border-top: 1px solid #e7eef8;
    padding: 14px 16px 16px 16px;
    background: #ffffff;
}

/* top info card */
.ls-signals-meta {
    margin-top: 10px;
}

.ls-meta-card {
    border: 1px solid #dbe8f7;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    box-shadow: 0 6px 18px rgba(0, 74, 153, .06);
    padding: 14px 14px 12px 14px;
}

.ls-meta-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ls-meta-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.ls-meta-kicker {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #5d7fa8;
    margin-bottom: 4px;
}

.ls-meta-shift-name {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    color: #1e305c;
    word-break: break-word;
}

.ls-meta-pk-badge {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 74, 153, .08);
    border: 1px solid rgba(0, 74, 153, .14);
    color: #004a99;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ls-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ls-meta-item {
    border: 1px solid #e6eef8;
    border-radius: 14px;
    background: #ffffff;
    padding: 10px 12px;
    min-width: 0;
}

.ls-meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .65px;
    color: #6b85a5;
    margin-bottom: 4px;
}

.ls-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #21324d;
    line-height: 1.25;
    word-break: break-word;
}

/* sections */
.ls-signals-section {
    border: 1px solid #e3ecf8;
    border-radius: 18px;
    padding: 14px 14px 10px 14px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 5px 15px rgba(15, 23, 42, .04);
}

.ls-signals-section-title {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 74, 153, .08);
    color: #004a99;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .2px;
    margin-bottom: 12px;
}


/* ===== SHIFT FLAGS SECTION CHIPS ===== */

#lsSignalsModal .section-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 28px;
    min-width: 210px;
    min-height: 44px;

    border-radius: 999px;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1;

    text-align: center;
    margin: 0 auto 14px auto;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* CHECK IN */
#lsSignalsModal .section-chip.checkin {
    background: #28a745;
    color: #fff;
    opacity: 70%;
}

/* CHECK OUT */
#lsSignalsModal .section-chip.checkout {
    background: #dc3545;
    color: #fff;
    opacity: 70%;
}

/* BREAKS */
#lsSignalsModal .section-chip.breaks {
    background: #ffc107;
    color: black;
    opacity: 70%;
}

/* REPORTS */
#lsSignalsModal .section-chip.reports {
    background: blue;
    color: #fff;
    opacity: 70%;
}

/* footer buttons */
#lsSignalsModal .modal-footer .btn {
    min-width: 110px;
    border-radius: 12px;
    font-weight: 600;
    padding: 10px 16px;
}

/* mobile */
@media (max-width: 576px) {


    #lsSignalsModal .modal-body {
        padding: 14px 12px 8px 12px;
    }

    #lsSignalsModal .modal-footer {
        padding: 12px;
    }

    .ls-meta-top {
        flex-direction: column;
        align-items: stretch;
    }

    .ls-meta-pk-badge {
        align-self: flex-start;
    }

    .ls-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Shift Flags header fix v219 ===== */



#lsSignalsModal .ls-signals-header-main {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

#lsSignalsModal .ls-signals-close {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    padding: 0;
    opacity: 1;
    z-index: 5;
}

#lsSignalsModal .ls-signals-close:hover {
    opacity: 1;
}

@media (max-width: 576px) {

    #lsSignalsModal .ls-signals-close {
        top: 10px;
        right: 10px;
    }
}


#lsSignalsModal .ls-signals-meta {
    margin-top: 10px;
}

#lsSignalsModal .ls-shift-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #d9e6f5;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

#lsSignalsModal .ls-shift-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

#lsSignalsModal .ls-shift-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

#lsSignalsModal .ls-shift-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #6d88a8;
    margin-bottom: 4px;
}

#lsSignalsModal .ls-shift-title {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    color: #1f3763;
    word-break: break-word;
}

#lsSignalsModal .ls-shift-pk {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf3ff;
    border: 1px solid #cfe0f5;
    color: #0a4ea3;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

#lsSignalsModal .ls-shift-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#lsSignalsModal .ls-shift-info-box {
    background: #ffffff;
    border: 1px solid #dfeaf6;
    border-radius: 14px;
    padding: 10px 12px;
}

#lsSignalsModal .ls-shift-info-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #7a93b0;
    margin-bottom: 4px;
}

#lsSignalsModal .ls-shift-info-value {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    color: #243b63;
    word-break: break-word;
}

@media (max-width: 576px) {
    #lsSignalsModal .ls-shift-card {
        padding: 12px;
        border-radius: 16px;
    }

    #lsSignalsModal .ls-shift-card-top {
        flex-direction: column;
        align-items: stretch;
    }

    #lsSignalsModal .ls-shift-pk {
        align-self: flex-start;
    }

    #lsSignalsModal .ls-shift-info-grid {
        grid-template-columns: 1fr;
    }

    #lsSignalsModal .ls-shift-title {
        font-size: 14px;
    }

    #lsSignalsModal .ls-shift-info-value {
        font-size: 13px;
    }
}


/* =========================================
   SHIFT FLAGS MODAL — FIX WIDTH + SPACING
   v260
   ========================================= */

#lsSignalsModal .modal-dialog {
    width: min(96vw, 680px);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

#lsSignalsModal .modal-content.ls-signals-modal {
    width: 100%;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .18);
    overflow: hidden;
}

#lsSignalsModal .modal-body {
    padding: 16px 16px 10px 16px;
    background: #fbfdff;
}

#lsSignalsModal #lsSignalsForm {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#lsSignalsModal .ls-signals-section {
    border: 1px solid #e7eef8;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
}

#lsSignalsModal .section-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    min-width: 220px;
    min-height: 44px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1;
    text-align: center;
    margin: 0 auto 14px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* filas: texto y control más cerca, sin empujarlos a los extremos */
#lsSignalsModal .ls-toggle-row,
#lsSignalsModal .ls-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #eef3fb;
}

#lsSignalsModal .ls-toggle-row:first-of-type,
#lsSignalsModal .ls-input-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

#lsSignalsModal .ls-toggle-row span,
#lsSignalsModal .ls-input-row label {
    min-width: 0;
    margin: 0;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
    color: #2d3748;
    white-space: normal;
    overflow-wrap: break-word;
}

#lsSignalsModal .ls-input-row input.form-control {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    text-align: center;
    font-weight: 600;
    color: #1E305C;
    border: 1px solid #d6e4f7;
    border-radius: 14px;
    box-shadow: none;
}

#lsSignalsModal .ls-switch {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 48px;
    flex: 0 0 auto;
}

#lsSignalsModal .ls-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#lsSignalsModal .ls-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #ced8e5;
    border-radius: 999px;
    transition: .22s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

#lsSignalsModal .ls-slider::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    left: 4px;
    top: 8px;
    border-radius: 50%;
    background: #fff;
    transition: .22s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

#lsSignalsModal .ls-switch input:checked+.ls-slider {
    background: darkblue;
}

#lsSignalsModal .ls-switch input:checked+.ls-slider::before {
    transform: translateX(50px);
}

/* summary superior */
#lsSignalsModal .shiftFlags-summary {
    text-align: center;
    padding: 10px 18px 14px 18px;
    line-height: 1.22;
}

#lsSignalsModal .shiftFlags-summary div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 600;
    color: #1E305C;
}

/* close button */
#lsSignalsModal .modal-header {
    position: relative;
    border-bottom: 1px solid #e7eef8;
    padding: 16px 56px 14px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

#lsSignalsModal .modal-title {
    margin: 0;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.1;
    color: #004a99;
    letter-spacing: .2px;
}

#lsSignalsModal .modal-close-red {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #FF4032;
    background: #fff;
    color: #FF4032;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    transition: all .15s ease;
}

#lsSignalsModal .modal-close-red:hover {
    background: #FF4032;
    color: #fff;
}

#lsSignalsModal .modal-footer {
    border-top: 1px solid #e7eef8;
    padding: 14px 16px 16px 16px;
    background: #ffffff;
}

#lsSignalsModal .modal-footer .btn {
    min-width: 120px;
    border-radius: 12px;
    font-weight: 600;
    padding: 10px 16px;
}

/* desktop: no lo dejes más ancho que tu app visual */
@media (min-width: 992px) {
    #lsSignalsModal .modal-dialog {
        width: min(92vw, 640px);
        max-width: 640px;
    }
}

/* mobile */
@media (max-width: 576px) {
    #lsSignalsModal .modal-dialog {
        width: min(96vw, 96vw);
        max-width: 96vw;
        margin: 10px auto;
    }

    #lsSignalsModal .modal-header {
        padding: 14px 52px 12px 14px;
    }

    #lsSignalsModal .modal-title {
        font-size: 20px;
    }

    #lsSignalsModal .modal-close-red {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    #lsSignalsModal .shiftFlags-summary {
        padding: 10px 12px 12px 12px;
    }

    #lsSignalsModal .ls-signals-section {
        padding: 12px;
    }

    #lsSignalsModal .section-chip {
        min-width: 190px;
        font-size: 15px;
        padding: 11px 18px;
    }

    #lsSignalsModal .ls-toggle-row,
    #lsSignalsModal .ls-input-row {
        grid-template-columns: 1fr auto;
        column-gap: 10px;
        padding: 11px 0;
    }

    #lsSignalsModal .ls-toggle-row span,
    #lsSignalsModal .ls-input-row label {
        font-size: 13px;
        line-height: 1.2;
    }

    #lsSignalsModal .ls-switch {
        width: 74px;
        height: 40px;
    }

    #lsSignalsModal .ls-slider::before {
        width: 26px;
        height: 26px;
        top: 7px;
    }

    #lsSignalsModal .ls-switch input:checked+.ls-slider::before {
        transform: translateX(34px);
    }

    #lsSignalsModal .ls-input-row input.form-control {
        width: 92px;
        min-width: 92px;
        max-width: 92px;
    }
}

/* ===== GLOBAL SUBMIT BUTTON ===== */
.btn-submit-glp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #28a745 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;

    font-weight: 600 !important;
    letter-spacing: 0;
    text-shadow: none !important;

    min-height: 44px;
    padding: 12px 18px;

    box-shadow: none !important;
}

.btn-submit-glp:hover,
.btn-submit-glp:focus {
    background: #23913d !important;
    color: #fff !important;
}

.btn-submit-glp i {
    font-size: 1rem;
    line-height: 1;
}

#grp_eventSummary .rc-label {
    display: flex;
    justify-content: center;
    /* centra todo el bloque */
    align-items: center;
    /* alinea vertical */
    gap: 8px;
    /* espacio entre texto e íconos */
    text-align: center;
}

/* Textareas de Summary en Report Capture */
#fld_urgentIssues {
    min-height: 100px !important;
    height: 100px !important;
    resize: vertical;
}

#fld_eventSummary {
    min-height: 300px !important;
    height: 300px !important;
    resize: vertical;
}

/* NEW MODAL SHIFT FLAGS

/* =========================================
   SHIFT FLAGS — FINAL WIDTH FIX v260
   ========================================= */

#lsSignalsModal .modal-dialog {
    width: 100%;
    max-width: 500px !important;
    margin: 1.75rem auto;
}

#lsSignalsModal .modal-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .18);
}

#lsSignalsModal .modal-body {
    padding: 14px 14px 10px 14px;
    background: #fbfdff;
}

#lsSignalsModal .ls-signals-section {
    border: 1px solid #e3ecf8;
    border-radius: 18px;
    padding: 12px 14px 10px 14px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 5px 15px rgba(15, 23, 42, .04);
}

#lsSignalsModal .ls-toggle-row,
#lsSignalsModal .ls-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 11px 0;
    border-top: 1px solid #edf3fb;
}

#lsSignalsModal .ls-toggle-row:first-of-type,
#lsSignalsModal .ls-input-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

#lsSignalsModal .ls-toggle-row span,
#lsSignalsModal .ls-input-row label {
    margin: 0;
    min-width: 0;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    color: #24364f;
    white-space: normal;
    overflow-wrap: break-word;
}

#lsSignalsModal .ls-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    flex: 0 0 auto;
}

#lsSignalsModal .ls-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#lsSignalsModal .ls-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #ced8e5;
    border-radius: 999px;
    transition: .22s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

#lsSignalsModal .ls-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    background: #fff;
    transition: .22s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

#lsSignalsModal .ls-switch input:checked+.ls-slider {
    background: darkblue;
}

#lsSignalsModal .ls-switch input:checked+.ls-slider::before {
    transform: translateX(26px);
}

#lsSignalsModal .ls-input-row input.form-control {
    width: 96px;
    max-width: 96px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #d7e4f3;
    text-align: center;
    font-weight: 600;
    color: #1e305c;
    box-shadow: none;
}

#lsSignalsModal .section-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 42px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    margin: 0 auto 14px auto;
}

@media (max-width: 576px) {
    #lsSignalsModal .modal-dialog {
        max-width: 96vw !important;
        margin: 10px auto;
    }

    #lsSignalsModal .modal-content {
        max-width: 96vw;
    }

    #lsSignalsModal .ls-toggle-row span,
    #lsSignalsModal .ls-input-row label {
        font-size: 12.5px;
    }

    #lsSignalsModal .ls-switch {
        width: 52px;
        height: 28px;
    }

    #lsSignalsModal .ls-slider::before {
        width: 20px;
        height: 20px;
    }

    #lsSignalsModal .ls-switch input:checked+.ls-slider::before {
        transform: translateX(24px);
    }

    #lsSignalsModal .ls-input-row input.form-control {
        width: 88px;
        max-width: 88px;
    }
}

/* ============================
   RC FOOTER — iPhone Safari FIX
   (evita Next "partido")
   ============================ */

/* 1) Layout estable en iOS: usar GRID en vez de flex */
.rc-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    /* Back | Next */
    gap: 12px;
    width: 100%;
    align-items: center;
    overflow: visible !important;
    /* evita clipping */
}

/* 2) Botones siempre ocupan su celda completa */
.rc-footer>button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
    box-sizing: border-box;
}

/* 3) Cuando rcSubmit aparece, que ocupe toda la fila */
#rcSubmit {
    grid-column: 1 / -1;
    /* full width */
}

/* 4) Si rcSubmit está hidden por inline style display:none, no afecta.
      Pero cuando lo muestres, que el layout sea consistente */
#rcSubmit[style*="display:none"] {
    display: none !important;
}

/* 5) Hardening extra para Safari iOS */
@supports (-webkit-touch-callout: none) {
    .rc-footer {
        min-width: 0;
    }

    .rc-footer>button {
        min-width: 0;
    }
}

/* =========================================
   SHIFT FLAGS HEADER — v262
   prueba 1 + prueba 2
   ========================================= */

#lsSignalsModal .modal-header.ls-signals-header {
    display: block;
    padding: 10px 18px 14px 18px;
    border-bottom: 1px solid #e7eef8;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

#lsSignalsModal .ls-signals-close-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 4px;
}

#lsSignalsModal .ls-signals-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

#lsSignalsModal .modal-title {
    margin: 0;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.1;
    color: #004a99;
    letter-spacing: .2px;
    text-align: center;
}

/* close SOLO para este modal */
#lsSignalsModal .modal-close-red.ls-signals-close-btn {
    position: static;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: #FF4032;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

#lsSignalsModal .modal-close-red.ls-signals-close-btn i {
    font-size: 26px;
    /* mismo tamaño que el resto del proyecto */
    line-height: 1;
}

@media (max-width: 576px) {
    #lsSignalsModal .modal-header.ls-signals-header {
        padding: 10px 14px 12px 14px;
    }

    #lsSignalsModal .ls-signals-close-row {
        margin-bottom: 2px;
    }

    #lsSignalsModal .modal-title {
        font-size: 20px;
    }

    #lsSignalsModal .modal-close-red.ls-signals-close-btn i {
        font-size: 24px;
    }
}

.rc-photo-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.rc-photo-status--info {
    background: #e8f1ff;
    color: #0b4ea2;
    border-color: #bfd6ff;
}

.rc-photo-status--ok {
    background: #e9f8ee;
    color: #166534;
    border-color: #b7e4c7;
}

.rc-photo-status--warn {
    background: #fff7e6;
    color: #b26a00;
    border-color: #ffe0a3;
}

.rc-photo-status--err {
    background: #fdecec;
    color: #b91c1c;
    border-color: #f5b5b5;
}

#reports-list .scheduler-card .row4 .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    flex-shrink: 0;
}

.report-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #5c6b80;
    font-weight: 500;
}

.header-close-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 4px;
}

.header-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.section-close-red {
    position: static;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: #FF4032;
    padding: 0;
    margin: 0;
    box-shadow: none;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.section-close-red i {
    font-size: 26px;
    line-height: 1;
}

.section-close-red:hover {
    background: transparent;
    color: #d9362b;
}

.section-close-red:focus-visible {
    outline: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .section-close-red i {
        font-size: 24px;
    }
}

/* =========================
   TRAINING VIDEOS
========================= */

.training-videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.training-video-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e3e7ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.training-video-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.training-video-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #eef4ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.training-video-texts {
    min-width: 0;
    flex: 1 1 auto;
}

.training-video-title-btn {
    display: inline-block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    text-decoration: none;
}

.training-video-title-btn:hover {
    text-decoration: underline;
}

.training-video-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

.training-video-open-btn {
    white-space: nowrap;
    min-width: 92px;
    border-radius: 12px;
}

/* =========================
   TRAINING PLAYER
========================= */
/* =========================
   TRAINING PLAYER
========================= */

.training-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;

    background: linear-gradient(
        180deg,
        rgba(30, 48, 92, 0.92) 0%,
        rgba(30, 48, 92, 0.96) 40%,
        rgba(20, 32, 60, 0.98) 100%
    );
}

.training-player-card {
    width: min(1100px, 100%);
    height: min(96dvh, 820px);
    max-height: 96dvh;
    background: #1E305C;
    border: 4px solid #1E305C;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.training-player-header {
    flex: 0 0 auto;
    background: #ffffff;
    border: 3px solid #1E305C;
    border-radius: 14px 14px 0 0;
    padding: 8px 12px 6px 12px;
    margin: 0;
}

.training-player-header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 28px;
    margin-bottom: 2px;
}

.training-player-header-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.training-player-title {
    margin: 0;
    color: #004a99;
    line-height: 1.2;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-player-body {
    flex: 1 1 auto;
    min-height: 0;
    background: #1E305C;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.training-video-el {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    background: #000;
    display: block;
    object-fit: contain;
    border-left: 3px solid #1E305C;
    border-right: 3px solid #1E305C;
}

.training-video-el::-webkit-media-controls {
    display: none !important;
}

.training-video-el::-webkit-media-controls-enclosure {
    display: none !important;
}

.training-video-el::-webkit-media-controls-panel {
    display: none !important;
}

.training-video-el::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

.training-video-el::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.training-player-controls {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border: 3px solid #1E305C;
    border-radius: 0 0 14px 14px;
    margin: 0;
}

.training-player-control-btn {
    min-width: 130px;
    border-radius: 12px;
    border-width: 2px;
}

#toggleTrainingVideoBtn {
    border: 2px solid #1E305C;
}

#replayTrainingVideoBtn {
    border: 2px solid #1E305C;
    color: #1E305C;
    background: #ffffff;
}

#replayTrainingVideoBtn:hover {
    background: #eef3fb;
    color: #1E305C;
}

@media (max-width: 768px) {
    .training-player-overlay {
        padding: 4px;
        align-items: stretch;
        justify-content: stretch;
    }

    .training-player-card {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border-width: 4px;
    }

    .training-player-header {
        padding:
            calc(6px + env(safe-area-inset-top, 0px))
            10px
            6px
            10px;
        border-radius: 0;
    }

    .training-player-title {
        font-size: 0.95rem;
    }

    .training-player-controls {
        padding:
            10px
            10px
            calc(10px + env(safe-area-inset-bottom, 0px))
            10px;
        border-radius: 0;
    }

    .training-player-control-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

.rc-photo-status {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    text-align: left;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.rc-photo-status-summary {
    font-weight: 700;
    margin-bottom: 6px;
}

.rc-photo-rejected-wrap strong {
    display: block;
    margin-bottom: 6px;
}

.rc-photo-rejected-list {
    margin: 0;
    padding-left: 18px;
}

.rc-photo-rejected-list li {
    margin-bottom: 8px;
}

.rc-photo-rejected-list li:last-child {
    margin-bottom: 0;
}

.rc-photo-rejected-name {
    font-weight: 600;
}

.rc-photo-rejected-reason {
    display: inline-block;
    margin-top: 2px;
    opacity: 0.95;
    font-size: 13px;
}

/* =========================================
   ANDROID SCROLL FIX
   mantener overscroll-behavior-y: none
   pero dar scroll interno a vistas largas
   ========================================= */

main {
    min-height: 0;
}

main .container {
    min-height: 0;
}

/* NEXT PAYROLL */
#payroll-view {
    min-height: 0;
}

#payroll-list {
    max-height: 65vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* REIMBURSEMENTS */
#reimb-view {
    min-height: 0;
}

#reimb-view .reimb-wrap {
    border: 2px solid #e7eef8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 12px;
    border-top: 0;

    max-height: 70dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding-bottom: 12px;
}

@media (max-width: 576px) {
    #reimb-view .reimb-wrap {
        max-height: 72dvh;
    }
}

#reimb-view,
#reimbForm {
    min-width: 0;
}

#reimbForm {
    padding-bottom: 90px;
}

#reimb-view .rc-form,
#reimb-view .rc-group,
#reimb-view .rc-row.two-cols {
    min-width: 0;
}

#reimb-view .rc-input,
#reimb-view .rc-textarea,
#reimb-view .rc-select {
    max-width: 100%;
}

#reimb-view #reimbReceiptPreview,
#reimb-view .rc-gallery {
    overflow-x: hidden;
}

#reimb-view .rc-thumb {
    flex: 0 0 auto;
}


/* ===== REIMBURSEMENTS — iPhone fix for DATE field ===== */
#grp_reimbAmount,
#grp_reimbDate {
    min-width: 0;
}

#reimbAmount,
#reimbDate {
    width: 100%;
    min-width: 0;
    height: 46px;
    box-sizing: border-box;
}

#reimbDate {
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.2;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* LIVE SUPERVISOR + TIMEKEEPING HISTORY */
#liveSupervisorView,
#checkHistoryView {
    min-height: 0;
}

.rc-live-body,
#liveSupBody,
#historyBody {
    max-height: 65vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* listas internas por si crecen mucho */
#liveSupList,
#historyList {
    min-height: 0;
}

/* evita que un hijo flex/grid impida el scroll en Android */
.rc-live-body > * {
    min-height: 0;
}

/* =========================
   REIMBURSEMENT APPROVAL
   ========================= */

#reimbursementApprovalView {
    min-height: 0;
}



#reimbursementApprovalView .section-body {
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 14px 90px;
    max-height: 70dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    min-height: 0;
}

#reimbursementApprovalListWrap,
#reimbursementApprovalList {
    min-height: 0;
}

.pending-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ra-pending-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #d9e2f0;
    border-radius: 16px;
    padding: 14px 14px 12px;
    box-shadow: 0 4px 14px rgba(30, 48, 92, 0.06);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
}

.ra-pending-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(30, 48, 92, 0.10);
}

.ra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.ra-row + .ra-row {
    margin-top: 8px;
}

.ra-name {
    font-size: 18px;
    font-weight: 800;
    color: #1e305c;
    line-height: 1.2;
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ra-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ra-status-pending {
    background: #e7f0ff;
    color: #1e4fbf;
}

.ra-status-sent {
    background: #fff3cd;
    color: #8a6d00;
}

.ra-left,
.ra-right {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #334155;
}

.ra-left strong,
.ra-right strong,
.ra-desc strong,
.ra-days strong {
    color: #1e305c;
    font-weight: 700;
}

.ra-left {
    flex: 1 1 auto;
}

.ra-right {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: right;
}

.ra-desc {
    font-size: 14px;
    line-height: 1.4;
    color: #334155;
    margin-top: 8px;
    word-break: break-word;
}

.ra-days {
    font-size: 14px;
    line-height: 1.35;
    color: #334155;
    white-space: nowrap;
    text-align: right;
    flex: 0 0 auto;
}

.empty-state {
    text-align: center;
    padding: 28px 16px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    font-weight: 600;
}

.reimb-approval-card {
    background: #ffffff;
    border: 1px solid #d9e2f0;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(30, 48, 92, 0.06);
}

.reimb-approval-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 14px;
}

.reimb-approval-grid .full-width {
    grid-column: 1 / -1;
}

.receipt-preview-box {
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 10px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.receipt-preview-box img {
    max-width: 100%;
    max-height: 380px;
    border-radius: 10px;
    object-fit: contain;
}

.receipt-preview-box a {
    font-weight: 700;
    color: #1e305c;
    text-decoration: none;
}

.ra-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.local-status-banner {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: none;
}

.local-status-banner.ok {
    background: #e8f7ec;
    color: #146c2e;
    border: 1px solid #b7e1c1;
}

.local-status-banner.err {
    background: #fdecec;
    color: #a61b1b;
    border: 1px solid #f5baba;
}

.local-status-banner.warn {
    background: #fff6df;
    color: #8a6400;
    border: 1px solid #f4d58d;
}

@media (max-width: 768px) {
    #reimbursementApprovalView .section-body {
        max-height: 72dvh;
        padding: 8px 10px 90px;
    }

    .reimb-approval-grid {
        grid-template-columns: 1fr;
    }

    .ra-actions {
        justify-content: stretch;
    }

    .ra-actions .btn {
        width: 100%;
    }

    .ra-row {
        align-items: flex-start;
    }

    .ra-name {
        white-space: normal;
    }

    .ra-right,
    .ra-days {
        text-align: right;
    }
}

.ra-detail-header {
    margin-bottom: 12px;
}

#reimbursementApprovalDetailWrap {
    display: none;
}

#reimbursementApprovalDetailWrap .reimb-approval-card {
    margin-top: 0;
}

#reimbursementApprovalDetailHeader {
    display: none;
}

/* =========================================
   REIMBURSEMENT APPROVAL CARDS — v377 tune
   ========================================= */

.ra-pending-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #d9e2f0;
    border-radius: 16px;
    padding: 14px 14px 12px;
    box-shadow: 0 4px 14px rgba(30, 48, 92, 0.06);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
}

.ra-pending-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(30, 48, 92, 0.10);
}

.ra-line1,
.ra-line2,
.ra-line3,
.ra-line4,
.ra-line5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.ra-line2,
.ra-line3,
.ra-line4,
.ra-line5 {
    margin-top: 7px;
}

.ra-line1 {
    margin-bottom: 1px;
}

.ra-name {
    font-size: 17px;
    font-weight: 600;
    color: #1e305c;
    line-height: 1.2;
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ra-date-amount {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
    color: #31456f;
    font-size: 14px;
}

.ra-date-label,
.ra-submitted-label {
    font-weight: 600;
    color: #1e305c;
    flex: 0 0 auto;
}

.ra-date-value,
.ra-submitted-date {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ra-amount {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    color: #1e305c;
    white-space: nowrap;
}

.ra-expense-type {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 600;
    color: #1e305c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ra-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    flex: 0 0 auto;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ra-status-pending {
    background: #e7f0ff;
    color: #1e4fbf;
}

.ra-status-sent {
    background: #efe4b8;
    color: #9a7800;
}

.ra-desc-single {
    width: 100%;
    font-size: 14px;
    color: #3d4d6c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ra-submitted-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 13px;
    color: #5b6b82;
}

.ra-days {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: #1e305c;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .ra-name {
        font-size: 16px;
    }

    .ra-date-amount,
    .ra-expense-type,
    .ra-desc-single,
    .ra-submitted-wrap {
        font-size: 13px;
    }

    .ra-amount,
    .ra-days {
        font-size: 13px;
    }

    .ra-status {
        max-width: 118px;
        font-size: 10px;
        padding: 4px 9px;
    }
}

/* =========================================
   REIMBURSEMENT RECEIPT PREVIEW + ZOOM
   ========================================= */

.receipt-preview-box {
    position: relative;
    min-height: 120px;
}

.ra-receipt-thumb-wrap {
    position: relative;
    width: 100%;
    max-width: 220px;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fbff;
}

.ra-receipt-thumb {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
}

.ra-receipt-zoom-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(30, 48, 92, 0.88);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.ra-receipt-zoom-btn i {
    font-size: 1rem;
    line-height: 1;
}

.ra-receipt-zoom-btn:hover {
    background: rgba(30, 48, 92, 1);
}

.ra-receipt-file-fallback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #f8fbff;
    color: #1E305C;
    font-weight: 600;
}

.ra-receipt-file-fallback i {
    font-size: 1.1rem;
}

/* Full-screen zoom */
.ra-receipt-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.ra-receipt-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.ra-receipt-zoom-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ra-receipt-zoom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    border-radius: 12px;
    display: grid;
    place-items: center;
    z-index: 2;
}

.ra-receipt-zoom-close i {
    font-size: 1.7rem;
    display: block;
}

.ra-receipt-zoom-body {
    flex: 1;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 24px;
    overflow: auto;
    box-sizing: border-box;
}

.ra-receipt-zoom-body {
    position: relative;
    cursor: zoom-in;
}

.ra-receipt-magnifier {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 170px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.28),
        0 0 0 1.5px rgba(30, 48, 92, 0.45) inset;
    background-color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.12s ease, transform 0.12s ease;
    overflow: hidden;
}

.ra-receipt-magnifier.is-visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 991.98px), (hover: none), (pointer: coarse) {
    .ra-receipt-magnifier {
        display: none !important;
    }

    .ra-receipt-zoom-body {
        cursor: default;
    }
}

.ra-receipt-zoom-body img {
    display: block;
    max-width: min(96vw, 1600px);
    max-height: calc(100vh - 110px);
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    margin: auto;
}

@media (max-width: 768px) {
    .ra-receipt-zoom-body {
        padding: 60px 12px 20px;
    }

    .ra-receipt-zoom-body img {
        max-width: 100%;
        max-height: calc(100vh - 90px);
    }
}

@media (max-width: 480px) {
    .ra-receipt-thumb-wrap {
        max-width: 180px;
    }

    .ra-receipt-zoom-btn {
        width: 36px;
        height: 36px;
    }

    .ra-receipt-zoom-close {
        top: 8px;
        right: 8px;
    }

    .ra-receipt-zoom-close i {
        font-size: 1.6rem;
    }
}



.reimbursement-badge-pill {
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
    margin-left: auto;
}

/* =========================
   REIMBURSEMENTS SUBMENU
   ========================= */

.sideMenu-item--with-caret {
    justify-content: flex-start;
}

.sideMenu-item--with-caret .menu-caret {
    margin-left: auto;
    transition: transform 0.18s ease;
}

.sideMenu-item--with-caret.is-open .menu-caret {
    transform: rotate(180deg);
}

.sideMenu-submenu {
    margin: -2px 0 8px 0;
    padding: 2px 0 2px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sideMenu-subitem {
    width: 100%;
    text-align: left;
    background: #27406f;
    border: none;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    line-height: 1.2;
    min-height: 44px;
    transition: background .15s ease, transform .1s ease;
}

.sideMenu-subitem:hover {
    background: #315188;
    transform: translateX(2px);
}

.sideMenu-subitem i {
    font-size: 0.95rem;
    flex: 0 0 18px;
}

/* =========================
   MY REIMBURSEMENTS
   ========================= */

#myReimbursementsView {
    min-height: 0;
}

#myReimbursementsView .section-body {
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 14px 90px;
    max-height: 70dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    min-height: 0;
}

#myReimbursementsListWrap,
#myReimbursementsList {
    min-height: 0;
}

#myReimbursementsDetailWrap {
    display: none;
}

#myReimbursementsDetailWrap .reimb-approval-card {
    margin-top: 0;
}

#myReimbursementsDetailHeader {
    display: none;
}

#myReimbursementsView .form-control[readonly],
#myReimbursementsView textarea[readonly] {
    background-color: #f8fafc;
    color: #334155;
    opacity: 1;
}

@media (max-width: 768px) {
    #myReimbursementsView .section-body {
        max-height: 72dvh;
        padding: 8px 10px 90px;
    }
}

/* =========================
   MY REIMBURSEMENTS STATUS
   ========================= */

.ra-status {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
}

/* Pending */
.ra-status-pending {
    background: #fff7cc;
    color: #a16207;
}

/* Sent to Manager */
.ra-status-sent {
    background: #e0ecff;
    color: #1d4ed8;
}

/* Approved */
.ra-status-approved {
    background: #dcfce7;
    color: #15803d;
}

/* Rejected */
.ra-status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

/* ===== MENU WIDTH / SUBMENU TUNING v387 ===== */

@media (min-width: 992px) {
    #sideMenu {
        width: 334px;
    }
}

.sideMenu-item {
    padding: 10px 9px;
    gap: 7px;
}

.sideMenu-submenu {
    margin: -2px 0 8px 0;
    padding: 2px 0 2px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sideMenu-subitem {
    width: 100%;
    text-align: left;
    background: #27406f;
    border: none;
    color: #fff;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.91rem;
    line-height: 1.15;
    min-height: 44px;
    transition: background .15s ease, transform .1s ease;
}

.sideMenu-subitem i {
    font-size: 0.95rem;
    flex: 0 0 16px;
}

.sideMenu-subitem span {
    flex: 1 1 auto;
    min-width: 0;
}

@media (min-width: 381px) {
    #menuReimbRequest span,
    #menuMyReimbursements span {
        white-space: nowrap;
    }
}

/* =========================================
   REIMBURSEMENT FILE TOGGLE v389
   ========================================= */

#reimbAddFileBlock {
    display: block;
}

#reimbFileActions {
    display: none;
    justify-content: flex-start;
    align-items: center;
}

#reimbReceiptPreview {
    min-height: 0;
}

#reimbDate.is-readonly-by-ocr {
    background-color: #f3f4f6;
    color: #475569;
    cursor: not-allowed;
}

/* ===== Reimbursement Approval card: ID on top right v399===== */

.ra-line1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ra-line1 .ra-name {
    min-width: 0;
    flex: 1 1 auto;
}

.ra-line1 .ra-reimb-id {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5b6b82;
    white-space: nowrap;
}

/* ===== MY REIMBURSEMENTS: promoter + id on same line ===== */

.my-reimb-line1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.my-reimb-line1 .ra-name {
    min-width: 0;
    flex: 1 1 auto;
}

.my-reimb-id {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5b6b82;
    white-space: nowrap;
}


/* ================================
   SYSTEM ADMIN / CHECK IN PARAMS - v415 compact
   ================================ */

.admin-scroll-view {
    display: none;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
    padding-bottom: 16px;
}

.admin-wrap {
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 15;
    background: #fff;
}

/* ===== Admin menu: one row per option ===== */
.admin-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.admin-menu-row {
    width: 100%;
    border: 2px solid #e7eef8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .2s ease;
}

.admin-menu-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.admin-menu-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-menu-row-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: #eef4ff;
    color: #1E305C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.admin-menu-row-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-menu-row-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #1E305C;
    line-height: 1.15;
}

.admin-menu-row-subtitle {
    font-size: 0.81rem;
    color: #64748b;
    line-height: 1.2;
    margin-top: 2px;
}

.admin-menu-row-arrow {
    color: #1E305C;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

/* ===== Status ===== */
.admin-status {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.90rem;
    font-weight: 600;
    line-height: 1.2;
}

.admin-status.ok {
    background: #eaf8ef;
    color: #1f7a39;
    border: 1px solid #b9e2c3;
}

.admin-status.err {
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #f4c7c7;
}

.admin-status.warn {
    background: #fff8e8;
    color: #9a6700;
    border: 1px solid #f2d38a;
}

/* ===== Param cards ===== */
.admin-section-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.admin-param-card {
    background: #ffffff;
    border: 1px solid #d8e2f0;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(30, 48, 92, 0.05);
    overflow: hidden;
}

.admin-param-card-header {
    padding: 10px 14px;
    background: linear-gradient(180deg, #f7faff 0%, #f1f6ff 100%);
    border-bottom: 1px solid #e5edf8;
}

.admin-param-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E305C;
    line-height: 1.1;
}

.admin-subblock-title {
    padding: 10px 14px 6px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1E305C;
    background: #fbfdff;
}

.admin-param-list {
    padding: 0 14px 12px 14px;
}

.admin-param-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #edf2fa;
    margin: 0;
    width: 100%;
}

.admin-param-row:last-child {
    border-bottom: none;
}

.admin-param-row-label {
    font-size: 0.90rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
}

.admin-param-row-input {
    align-items: center;
}

.admin-inline-input {
    display: flex;
    align-items: center;
    border: 1px solid #d7e2f1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    min-height: 38px;
    min-width: 140px;
    max-width: 170px;
    flex: 0 0 auto;
}

.admin-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 8px 10px;
    font-size: 0.90rem;
    color: #1e293b;
    background: transparent;
    box-shadow: none;
    text-align: right;
}

.admin-input:focus {
    outline: none;
    box-shadow: none;
}

.admin-input-unit {
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fbff;
    border-left: 1px solid #e6edf7;
    white-space: nowrap;
    min-height: 38px;
    display: flex;
    align-items: center;
}

/* ===== Slider switch ===== */
.admin-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex: 0 0 auto;
}

.admin-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.admin-switch-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-color: #cbd5e1;
    transition: .2s ease;
    border-radius: 999px;
}

.admin-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: .2s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.admin-switch input:checked + .admin-switch-slider {
    background-color: #1E305C;
}

.admin-switch input:checked + .admin-switch-slider:before {
    transform: translateX(20px);
}

.admin-switch input:focus + .admin-switch-slider {
    box-shadow: 0 0 0 3px rgba(158, 197, 254, .35);
}

/* ===== Footer actions ===== */
.admin-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 6px;
}

.admin-btn {
    min-width: 150px;
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 14px;
}

/* Mobile */
@media (max-width: 767.98px) {
    .admin-scroll-view {
        max-height: calc(100dvh - 108px);
        padding-bottom: 22px;
    }

    .admin-menu-row {
        padding: 12px;
    }

    .admin-menu-row-title {
        font-size: 0.93rem;
    }

    .admin-menu-row-subtitle {
        font-size: 0.79rem;
    }

    .admin-param-row {
        min-height: 46px;
        gap: 10px;
    }

    .admin-param-row-label {
        font-size: 0.86rem;
    }

    .admin-inline-input {
        min-width: 126px;
        max-width: 146px;
    }

    .admin-footer-actions {
        flex-direction: column;
    }

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

/* ===== Reimbursement Params specific ===== */

.admin-inline-input-text {
    min-width: 170px;
    max-width: 220px;
}

.admin-inline-input-select {
    min-width: 170px;
    max-width: 220px;
}

.admin-input-text {
    text-align: left;
}

.admin-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .admin-inline-input-text,
    .admin-inline-input-select {
        min-width: 150px;
        max-width: 180px;
    }
}
.admin-users-table-wrap {
    overflow-x: auto;
    padding: 0;
}

.admin-users-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fff;
}

.admin-users-table thead th {
    position: sticky;
    top: 0;
    background: #eef4ff;
    color: #1E305C;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: left;
    padding: 10px 10px;
    border-bottom: 1px solid #dbe6f5;
    white-space: nowrap;
    z-index: 2;
}

.admin-users-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid #edf2fa;
    font-size: 0.88rem;
    color: #334155;
    vertical-align: middle;
}

.admin-users-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.admin-users-table .admin-inline-input {
    min-width: 90px;
    max-width: 110px;
}

.admin-users-table .admin-switch {
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .admin-users-table {
        min-width: 660px;
    }

    .admin-users-table thead th,
    .admin-users-table tbody td {
        font-size: 0.82rem;
        padding: 8px 8px;
    }
}

/* ===== USERS ADMIN - list + detail (no horizontal scroll) ===== */

.admin-footer-actions-top {
    padding-top: 0;
    padding-bottom: 10px;
    justify-content: flex-start;
}

.admin-users-list {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-user-row {
    width: 100%;
    border: 1px solid #e6edf7;
    border-radius: 14px;
    background: #fbfdff;
    padding: 12px 14px;
    text-align: left;
    transition: transform .08s ease, box-shadow .2s ease;
}

.admin-user-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(30, 48, 92, 0.08);
}

.admin-user-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.admin-user-code {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: .3px;
}

.admin-user-market {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1E305C;
    text-align: right;
}

.admin-user-name-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: left;
    color: #004a99;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.admin-user-name-btn:hover {
    text-decoration: underline;
}

.admin-inline-input-wide {
    min-width: 180px;
    max-width: 260px;
}

@media (max-width: 767.98px) {
    .admin-user-row {
        padding: 11px 12px;
    }

    .admin-user-name-btn {
        font-size: 0.92rem;
    }

    .admin-user-code,
    .admin-user-market {
        font-size: 0.78rem;
    }

    .admin-inline-input-wide {
        min-width: 150px;
        max-width: 190px;
    }
}

/* =========================================================
   Live Supervisor Signals Modal — SysAdmin style (v425)
   ========================================================= */

#lsSignalsModal .modal-dialog.ls-signals-dialog {
    max-width: 760px;
    width: min(96vw, 760px);
    margin: 1rem auto;
}

#lsSignalsModal .modal-content.ls-signals-modal {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

#lsSignalsModal .ls-signals-shell {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    background: #fff;
}

#lsSignalsModal .ls-signals-topbar {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    border-bottom: 1px solid #e7eef8;
    margin-bottom: 0;
    padding-bottom: 8px;
}

#lsSignalsModal .ls-signals-summary {
    margin: 12px 14px 0 14px;
    text-align: center;
    background: #f8fbff;
    color: #1E305C;
    border: 1px solid #dce7f5;
    font-weight: 600;
    line-height: 1.3;
}

#lsSignalsModal .ls-signals-summary #sfLine1 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E305C;
}

#lsSignalsModal .ls-signals-summary #sfLine2,
#lsSignalsModal .ls-signals-summary #sfLine3 {
    font-size: 0.84rem;
    color: #5b6577;
    margin-top: 2px;
}

#lsSignalsModal .ls-signals-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px 8px 14px;
    -webkit-overflow-scrolling: touch;
}

#lsSignalsModal .ls-admin-card {
    margin-bottom: 12px;
}

#lsSignalsModal .admin-param-row-label {
    padding-right: 8px;
}

#lsSignalsModal .admin-inline-input {
    min-width: 100px;
    max-width: 110px;
}

#lsSignalsModal .admin-input[readonly] {
    background: #f8fbff;
    color: #1E305C;
    opacity: 1;
}

#lsSignalsModal .ls-signals-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 22%);
    padding: 12px 14px 14px 14px;
    margin-top: 0;
}

#lsSignalsModal .ls-signals-footer .admin-btn {
    min-width: 150px;
}

@media (max-width: 767.98px) {
    #lsSignalsModal .modal-dialog.ls-signals-dialog {
        width: min(96vw, 96vw);
        margin: .75rem auto;
    }

    #lsSignalsModal .ls-signals-summary {
        margin: 10px 12px 0 12px;
    }

    #lsSignalsModal .ls-signals-body {
        padding: 10px 12px 8px 12px;
    }

    #lsSignalsModal .ls-signals-footer {
        padding: 12px;
    }

    #lsSignalsModal .ls-signals-footer .admin-btn {
        width: 100%;
    }
}

/* Ocultar look viejo del modal */
#lsSignalsModal .ls-signals-header,
#lsSignalsModal .shiftFlags-summary.old-style,
#lsSignalsModal .section-chip {
    all: unset;
}

/* =========================================
   TRAINING VIDEOS — same scroll pattern as
   Reimbursement Approval / My Reimbursements v426
   ========================================= */

#training-videos-view {
    min-height: 0;
}

#training-videos-view .training-section-body {
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 14px 90px;
    max-height: 70dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    min-height: 0;
}

#trainingVideosList {
    min-height: 0;
}

@media (max-width: 768px) {
    #training-videos-view .training-section-body {
        max-height: 72dvh;
        padding: 8px 10px 90px;
    }
}


/* =========================================
   TRAINING VIDEOS — visual upgrade
   ========================================= */

.training-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #f4f6fb;
    border: 1px solid #e2e8f3;
}

/* LEFT: icon + duration */
.training-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.training-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #e7edf7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-icon i {
    font-size: 1.4rem;
    color: #1E305C;
}

.training-duration {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7a90;
    font-weight: 600;
}

/* CENTER: title */
.training-info {
    flex: 1 1 auto;
    min-width: 0;
}



/* RIGHT: button */
.training-open-btn {
    flex: 0 0 auto;
    background: linear-gradient(180deg, #2f6ee6, #1d5ed8);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

.training-open-btn:hover {
    opacity: 0.9;
}

/* =========================================
   TRAINING VIDEOS — v428 layout fix
   ========================================= */

.training-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 14px;
    border: 1px solid #e3e7ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.training-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    min-width: 72px;
}

.training-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #eef4ff;
    color: #1E305C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-icon i {
    font-size: 1.45rem;
    line-height: 1;
}

.training-duration {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    min-height: 14px;
}

.training-info {
    min-width: 0;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.training-title-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    text-decoration: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
}

.training-title-btn:hover {
    text-decoration: underline;
}

.training-open-btn {
    white-space: nowrap;
    min-width: 84px;
    border-radius: 12px;
    font-weight: 600;
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 520px) {
    .training-item {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 14px 12px;
    }

    .training-icon-wrap {
        width: 64px;
        min-width: 64px;
    }

    .training-icon {
        width: 50px;
        height: 50px;
    }

    .training-icon i {
        font-size: 1.3rem;
    }

    .training-title-btn {
        font-size: 14px;
        line-height: 1.3;
    }

    .training-open-btn {
        min-width: 74px;
        padding-left: 14px;
        padding-right: 14px;
    }
}

#contact-modal .cm-header {
    display: block;
    padding: 10px 0 6px 0;
    border-bottom: 1px solid #e7eef8;
}

/* fila botón */
#contact-modal .header-close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

/* fila título */
#contact-modal .header-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.scheduler-header .header-title-row h4,
.reports-header .header-title-row h4,
.payroll-header .header-title-row h4,
#reimb-view .header-title-row h5,
.live-header .header-title-row h4,
#contact-modal .header-title-row h4,
.rc-header .header-title-row h4,
.training-header .header-title-row h4,
.admin-header .header-title-row h4 {
    margin: 0;
    color: #004a99;
    line-height: 1.2;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
}

/* =========================================================
   LIVE COMPACT VIEW
   ========================================================= */

#liveCompactView {
    min-height: 0;
}

#liveCompactBody {
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 8px 0 90px 0;
}

#liveCompactList {
    min-height: 0;
}

.lc-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px 30px 58px;
    align-items: stretch;
    gap: 3px;
    min-height: 82px;
}

.lc-info {
    min-width: 0;
    background: #ffffff;
    border: 2px solid #63d7ea;
    border-radius: 7px;
    padding: 7px 6px;
    text-align: center;
    overflow: hidden;
}

.lc-promoter {
    color: #0b1b70;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-event {
    display: block;
    width: 100%;
    color: #9aa0a8 !important;
    font-size: 0.86rem;
    font-weight: 400 !important;
    line-height: 1.05;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-meta,
.lc-date {
    color: #a7a7a7;
    font-size: 0.86rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-action {
    border: none;
    border-radius: 7px;
    font-size: 0.82rem;
    line-height: 1.05;
    font-weight: 500;
    text-align: center;
    padding: 4px 2px;
}

.lc-action span {
    display: block;
    font-size: 0.82rem;
    line-height: 1.05;
}

.lc-done {
    background: rgba(16, 185, 129, .14) !important;
    border: 1px solid rgba(16, 185, 129, .35) !important;
    color: #0f5132 !important;
}

.lc-empty {
    background: #e8eef7;
    color: #9aa0a8;
}

.lc-break {
    background: #f3f6fb;
    color: #5b6577;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}


.lc-break-on {
    background: rgba(59, 130, 246, .22);
    border: 1px solid rgba(59, 130, 246, .55);
}

@media (max-width: 390px) {
    .lc-row {
        grid-template-columns: minmax(0, 1fr) 54px 26px 54px;
    }

    .lc-promoter {
        font-size: 0.92rem;
    }

    .lc-event,
    .lc-meta,
    .lc-date {
        font-size: 0.78rem;
    }

    .lc-action,
    .lc-action span {
        font-size: 0.74rem;
    }
}

.ra-status-checked {
    background: #dcfce7;
    color: #15803d;
}

/*/////////////////////////////////////*/

.rc-photo-rejected-wrap {
    margin-top: 8px;
    text-align: left;
}

.rc-photo-rejected-list {
    padding-left: 18px;
    margin-top: 6px;
}

.rc-photo-rejected-list li {
    margin-bottom: 8px;
    line-height: 1.25;
    word-break: break-word;
}

.rc-photo-rejected-name {
    display: block;
    font-weight: 700;
}

.rc-photo-rejected-reason {
    display: block;
    font-size: 0.88rem;
    opacity: 0.85;
}

/* =========================================================
   LIVE SUPERVISOR FULL VIEW — compact/blue polish
   ========================================================= */

#liveSupervisorView .ls-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 6px;
    align-items: stretch;
    padding: 4px 0 8px 0;
    margin: 0;
}

#liveSupervisorView .ls-filter {
    min-width: 0;
    flex: unset;
}

#liveSupervisorView .ls-filter label {
    display: none !important;
}

#liveSupervisorView .ls-filter select {
    height: 38px;
    border: 2px solid #63d7ea;
    border-radius: 8px;
    background-color: #fbfeff;
    color: #0b1b70;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: none;
}

#liveSupervisorView .ls-filter select:focus {
    border-color: #37bfd8;
    box-shadow: 0 0 0 3px rgba(99, 215, 234, 0.18);
}

#liveSupervisorView .ls-clear {
    height: 38px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 0.86rem;
    font-weight: 600;
    border: 2px solid #d7e4f3;
    color: #1E305C;
    background: #fff;
}

#liveSupervisorView .rc-live-grid {
    gap: 5px;
}

#liveSupervisorView .rc-live-row {
    border: 2px solid #63d7ea;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: none;
    padding: 7px 6px;
    gap: 6px;
}

#liveSupervisorView .rc-live-info {
    background: #fbfeff;
    border: 1px solid rgba(99, 215, 234, 0.45);
    border-radius: 8px;
    padding: 7px 8px;
}

#liveSupervisorView .rc-live-name {
    color: #0b1b70;
    font-size: 1rem;
    font-weight: 600;
}

#liveSupervisorView .rc-live-event {
    margin-top: 2px;
    opacity: 1;
}

#liveSupervisorView .rc-live-event .ls-shift-link {
    color: #6f7784 !important;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
}

#liveSupervisorView .rc-live-meta,
#liveSupervisorView .rc-live-meta2 {
    color: #8f98a6;
    font-size: 0.82rem;
    line-height: 1.1;
    margin-top: 3px;
}

#liveSupervisorView .rc-btn-state,
#liveSupervisorView .rc-break-box {
    border-radius: 8px !important;
    min-height: 64px;
}

@media (max-width: 420px) {
    #liveSupervisorView .ls-filters {
        grid-template-columns: 1fr 1fr;
    }

    #liveSupervisorView .ls-clear {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.sideMenu-yellow{
    color:#FFD54A !important;
}

.sideMenu-yellow i{
    color:#FFD54A !important;
}

#fld_salesFreeText{
    min-height: 300px !important;
    height: 300px !important;
    resize: vertical;
}

/* ===== Reimbursement Approval comments / reason boxes ===== */

#raSentToManagerCommentsViewWrap,
#raCheckedCommentsViewWrap,
#raSentToManagerCommentsWrap,
#raCheckedCommentsWrap,
#raRejectReasonWrap {
    background: #f8fbff;
    border: 2px solid #e7eef8;
    border-radius: 14px;
    padding: 12px;
    margin-top: 8px;
}

#raSentToManagerCommentsViewWrap .form-label,
#raCheckedCommentsViewWrap .form-label,
#raSentToManagerCommentsWrap .form-label,
#raCheckedCommentsWrap .form-label,
#raRejectReasonWrap .form-label {
    color: #1E305C;
    font-weight: 600;
    margin-bottom: 6px;
}

#ra_sentToManagerCommentsView,
#ra_checkedCommentsView,
#ra_sentToManagerComments,
#ra_checkedComments,
#ra_rejectionReason {
    border: 2px solid #dbe7f6;
    border-radius: 12px;
    resize: vertical;
    min-height: 92px;
    font-size: 0.95rem;
    line-height: 1.35;
    background: #ffffff;
}

#ra_sentToManagerCommentsView[readonly],
#ra_checkedCommentsView[readonly] {
    background: #eef5ff;
    color: #24324B;
    cursor: default;
}

#raSentToManagerCommentsViewWrap {
    border-left: 5px solid #0d6efd;
}

#raCheckedCommentsViewWrap {
    border-left: 5px solid #198754;
}

#raSentToManagerCommentsWrap {
    border-left: 5px solid #ffc107;
}

#raCheckedCommentsWrap {
    border-left: 5px solid #198754;
}

#raRejectReasonWrap {
    border-left: 5px solid #dc3545;
}


.my-reimb-action-line {
    width: 100%;
    max-width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 14px 0;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.my-reimb-action-line--approved {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.my-reimb-action-line--rejected {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.my-reimb-action-line--sent,
.my-reimb-action-line--checked {
    background: #fff7cc;
    color: #a16207;
    border: 1px solid #fde68a;
}


/* ================= FORGOT CODE LOGIN ================= */

.forgot-code-wrap {
    margin-top: 8px;
    margin-bottom: 4px;
    text-align: center;
}

#code-container .forgot-code-btn {
    background: transparent !important;
    border: none !important;
    color: #1E305C !important;
    padding: 4px 8px !important;
    font-size: 0.92rem !important;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    border-radius: 8px;
}

#code-container .forgot-code-btn:hover {
    color: #FF4032 !important;
    background: rgba(30, 48, 92, 0.06) !important;
}

.forgot-code-modal {
    position: fixed;
    inset: 0;
    z-index: 1450;
    display: none;
    align-items: center;
    justify-content: center;
}

.forgot-code-modal.show {
    display: flex;
}

.forgot-code-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.forgot-code-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 460px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    padding: 16px;
    text-align: left;
}

.forgot-code-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 54px 12px 54px;
    border-bottom: 1px solid #e7eef8;
    margin-bottom: 12px;
}

.forgot-code-header h4 {
    margin: 0;
    color: #004a99;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.forgot-code-header .modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    border-radius: 12px;
    line-height: 0;
    transform: translate(10px, -10px);
}

.forgot-code-header .modal-close i {
    font-size: 1.4rem;
}

.forgot-code-body {
    padding: 4px 0 0 0;
}

.forgot-code-help {
    margin: 0 0 12px 0;
    color: #24324B;
    font-size: 0.98rem;
    line-height: 1.35;
    text-align: center;
}

.forgot-code-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
}

.forgot-code-status--ok {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.forgot-code-status--err {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.forgot-code-status--info {
    background: #e8f4ff;
    color: #1E305C;
    border: 1px solid #bfdbfe;
}

.forgot-code-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.forgot-code-footer .btn {
    min-height: 44px;
    border-radius: 10px;
    font-weight: 600;
}

@media (max-width: 380px) {
    .forgot-code-header h4 {
        font-size: 1.08rem;
    }

    .forgot-code-footer {
        gap: 8px;
    }

    .forgot-code-footer .btn {
        font-size: 0.9rem;
        padding-left: 8px;
        padding-right: 8px;
    }
}

.reimb-total-box {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 10px;
    align-items: center;
    background: #eef3fb;
    border: 1px solid #d6e4f7;
    border-radius: 12px;
    padding: 10px;
    margin: 8px 0 12px;
    color: #1E305C;
    font-weight: 700;
}

.reimb-total-box input {
    text-align: right;
    font-weight: 700;
    background: #fff;
}

.reimb-receipts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reimb-empty-list {
    padding: 12px;
    color: #6b7280;
    background: #fafafa;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    text-align: center;
}

.reimb-receipt-card {
    border: 2px solid #e7eef8;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    text-align: left;
}

.reimb-receipt-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #1E305C;
}

.reimb-receipt-file {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reimb-receipt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.reimb-receipt-field {
    margin-bottom: 8px;
}

.reimb-receipt-card label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1E305C;
    margin-bottom: 4px;
}

.reimb-receipt-card .rc-textarea {
    min-height: 64px;
}

.reimb-receipt-card.is-processing {
    opacity: 0.65;
    pointer-events: none;
}