/* Minification failed. Returning unminified contents.
(196,34): run-time error CSS1039: Token not allowed after unary operator: '-scrim-opacity'
(199,30): run-time error CSS1039: Token not allowed after unary operator: '-duration-normal'
(200,19): run-time error CSS1039: Token not allowed after unary operator: '-z-bottomsheet-scrim'
(210,34): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(211,35): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(212,22): run-time error CSS1039: Token not allowed after unary operator: '-shadow-lg'
(213,19): run-time error CSS1039: Token not allowed after unary operator: '-z-bottomsheet'
(214,32): run-time error CSS1039: Token not allowed after unary operator: '-duration-normal'
(215,36): run-time error CSS1039: Token not allowed after unary operator: '-safe-bottom'
(268,31): run-time error CSS1039: Token not allowed after unary operator: '-safe-bottom'
(483,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(484,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(485,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(486,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(487,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(488,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(489,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(495,18): run-time error CSS1039: Token not allowed after unary operator: '-alert-offset-bottom'
(500,24): run-time error CSS1039: Token not allowed after unary operator: '-safe-bottom-right'
(504,23): run-time error CSS1039: Token not allowed after unary operator: '-safe-bottom-left'
(511,47): run-time error CSS1039: Token not allowed after unary operator: '-safe-bottom-right'
(511,79): run-time error CSS1039: Token not allowed after unary operator: '-app-left-anchor'
(511,109): run-time error CSS1039: Token not allowed after unary operator: '-app-left-gutter'
(540,31): run-time error CSS1039: Token not allowed after unary operator: '-fab-offset-bottom'
(673,18): run-time error CSS1039: Token not allowed after unary operator: '-fab-offset-bottom'
(734,18): run-time error CSS1039: Token not allowed after unary operator: '-fab-offset-bottom'
(810,22): run-time error CSS1039: Token not allowed after unary operator: '-fab-offset-bottom'
(983,18): run-time error CSS1039: Token not allowed after unary operator: '-alert-offset-bottom'
(984,21): run-time error CSS1039: Token not allowed after unary operator: '-app-left-anchor'
(984,51): run-time error CSS1039: Token not allowed after unary operator: '-app-left-gutter'
(1090,22): run-time error CSS1039: Token not allowed after unary operator: '-floating-alert-card-max-height'
(1096,26): run-time error CSS1039: Token not allowed after unary operator: '-floating-alert-card-max-height'
(1102,26): run-time error CSS1039: Token not allowed after unary operator: '-floating-alert-card-max-height'
(1108,26): run-time error CSS1039: Token not allowed after unary operator: '-floating-alert-card-max-height'
(1114,26): run-time error CSS1039: Token not allowed after unary operator: '-floating-alert-card-max-height'
 */

/* #region Flex Utilities */

.c-flex-align-items-center {
    display: flex !important;
    align-items: center !important;
}

.c-flex-align-items-start {
    display: flex !important;
    align-items: flex-start !important;
}

.c-flex-direction-column {
    display: flex !important;
    flex-direction: column !important;
}

.c-flex-direction-row {
    display: flex !important;
    flex-direction: row !important;
}

.c-flex-direction-row-end {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
}

/* #endregion */

/* #region Common Utilities */

.aTitulos {
    color: #101010;
    text-decoration: none;
}

.label-normal {
    font-size: small !important;
    font-weight: normal !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.label-signo {
    font-size: small !important;
    text-align: left !important;
    font-weight: normal !important;
    padding-top: 5px !important;
    padding-left: 0px !important;
}

.b-r-s {
    border-right: 1px solid #dddddd !important;
}

.f-w-n {
    font-weight: normal !important;
}

.v-a-m {
    vertical-align: middle !important;
}

.m-l-0 {
    margin-left: 0px !important;
}

.m-t-0 {
    margin-top: 0px !important;
}

.m-t-7 {
    margin-top: 7px !important;
}

.m-t-10 {
    margin-top: 10px !important;
}

.p-t-0 {
    padding-top: 0 !important;
}

.p-t-5 {
    padding-top: 5px !important;
}

.p-t-10 {
    padding-top: 10px !important;
}

.p-t-25 {
    padding-top: 25px !important;
}

.p-l-5 {
    padding-left: 5px !important;
}

.p-l-0 {
    padding-left: 0px !important;
}

.p-l-15 {
    padding-left: 15px !important;
}

.p-r-0 {
    padding-right: 0px !important;
}

.t-a-l {
    text-align: left !important;
}

.check-box {
    margin-left: 0px !important;
}

.center {
    text-align: center;
}

.m-b-5 {
    margin-bottom: 5px !important;
}

.font-z-13 {
    font-size: 13px !important
}

fieldset.scheduler-border {
    border: 1px groove #ddd !important;
    padding: 0px 10px 0px 10px !important;
    margin: 0 0 1.5em 0 !important;
    -webkit-box-shadow: 0px 0px 0px 0px #000;
    box-shadow: 0px 0px 0px 0px #000;
}

legend.scheduler-border {
    font-size: 1em !important;
    font-weight: bold !important;
    text-align: left !important;
    width: auto;
    padding: 0 10px;
    border-bottom: none;
}

/* #endregion */

/* #region Button Utilities */
.btn-graphic {
    border: 2px solid black !important;
    background-color: white !important;
    border-color: #2196F3 !important;
    color: dodgerblue !important;
    cursor: pointer !important;
}

    .btn-graphic:hover {
        background: #2196F3 !important;
        color: white !important;
    }
/* #endregion */

/* #region Padding Utilities */

.c-pl-5 {
    padding-left: 5px !important;
}

.c-pl-0 {
    padding-left: 0 !important;
}
/* #endregion */

/* #region Additional Padding Utilities */
.p-t-15 {
    padding-top: 15px !important;
}

.p-b-10 {
    padding-bottom: 10px !important;
}

.p-b-20 {
    padding-bottom: 20px !important;
}

/* --- Bottom Sheet (DEBUG MVP) --------------------------------------------- */
.fab-bottomsheet-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0, var(--scrim-opacity, 0.32));
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal, 200ms) ease;
    z-index: var(--z-bottomsheet-scrim, 1090);
}

.fab-bottomsheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    background: #fff;
    border-top-left-radius: var(--radius-lg, 12px);
    border-top-right-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-lg, 0 12px 24px rgba(0,0,0,.18));
    z-index: var(--z-bottomsheet, 1100);
    transition: transform var(--duration-normal, 200ms) ease;
    padding-bottom: max(16px, var(--safe-bottom, 0px));
}

.fab-bottomsheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.fab-bottomsheet__content {
    padding: 8px 8px 16px;
    max-height: 50vh;
    overflow: auto;
}

body.fab-bottomsheet-open .fab-bottomsheet {
    transform: translateY(0);
}

body.fab-bottomsheet-open .fab-bottomsheet-scrim {
    opacity: 1;
    pointer-events: auto;
}
/* Lock background scroll while sheet is open */
body.fab-bottomsheet-open {
    overflow: hidden;
}

    /* While bottom sheet is open, keep FAB out of the way (no overlap/no traps) */
    body.fab-bottomsheet-open #appSectionsFABContainer {
        pointer-events: none !important;
        opacity: 0 !important;
        z-index: 0 !important;
    }

    body.fab-bottomsheet-open #fabMinimized {
        display: none !important;
    }

/* Debug outlines were only for diagnostics; ensure none appear */
#appSectionsFABContainer {
    outline: none !important;
}

#appSectionChangeFloatingAlertComponent {
    outline: none !important;
}

/* Reserva de espacio para contenido respecto a elementos flotantes (safe area broker) */
#MainContainerRenderBody {
    /* Reserva mínima basada en safe area real (footer/overlays) + margen UX 12px */
    padding-bottom: calc(var(--safe-bottom, 0px) + 12px);
}

.p-l-10 {
    padding-left: 10px !important;
}

.p-l-20 {
    padding-left: 20px !important;
}

.p-l-25 {
    padding-left: 25px !important;
}

.p-l-30 {
    padding-left: 30px !important;
}

.p-l-40 {
    padding-left: 40px !important;
}

.p-r-5 {
    padding-right: 5px !important;
}

.p-r-20 {
    padding-right: 20px !important;
}

.p-r-115 {
    padding-right: 115px !important;
}

.padding-right {
    padding-right: 1.5em;
}
/* #endregion */

/* #region Margin Utilities */

.c-mb-15 {
    margin-bottom: 15px !important;
}

.c-mb-20 {
    margin-bottom: 20px !important;
}

.c-mt-5 {
    margin-top: 5px !important;
}

.c-mt-10 {
    margin-top: 10px !important;
}

.c-mt-15 {
    margin-top: 15px !important;
}

.c-mt-20 {
    margin-top: 20px !important;
}


.c-ml-5 {
    margin-left: 50px !important;
}

/* #endregion */

/* #region Additional Margin Utilities */
.m-b-0 {
    margin-bottom: 0px !important;
}

.m-b--5 {
    margin-top: -5px !important;
}

.m-r-0 {
    margin-right: 0px !important;
}

.m-l-5 {
    margin-left: 0 !important;
}

.m-l--40 {
    margin-left: -40px !important;
}

.m-l--80 {
    margin-left: -80px !important;
}

.m-l--100 {
    margin-left: -100px !important;
}

.m-l-40 {
    margin-left: 40px !important;
}

.m-l-27 {
    margin-left: 50px !important;
}

.m-t-30 {
    margin-top: 30px !important;
}
/* #endregion */

/* #region Animation Utilities */


@keyframes highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(49,112,143,0.7);
    }

    70% {
        box-shadow: 0 0 8px 4px rgba(49,112,143,0.7);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(49,112,143,0.7);
    }
}

.highlight-anim {
    animation-name: highlight;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 2;
    border-color: #31708f !important;
}

/* #endregion */

/* #region Tooltip Utilities */

.tooltip-inner {
    background-color: #3c8dbc; /* Azul Bootstrap (#31708f;), cámbialo por tu azul corporativo si lo prefieres */
    color: #fff; /* Texto blanco */
    font-size: 14px; /* Opcional: tamaño de fuente */
    border: 1px solid #245269; /* Opcional: borde azul más oscuro */
}

.tooltip.top .tooltip-arrow {
    border-top-color: #31708f;
}

.tooltip.right .tooltip-arrow {
    border-right-color: #31708f;
}

.tooltip.left .tooltip-arrow {
    border-left-color: #31708f;
}

.tooltip.bottom .tooltip-arrow {
    border-bottom-color: #31708f;
}

/* #endregion */

/* #region FAB Utilities */

.fab-notas-adicionales {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #007bff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    line-height: 56px;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.leyenda-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding: 10px 0 10px 0;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* #endregion */

/* #region Text Utilities */

.t-a-c {
    text-align: center !important;
}

.t-a-r {
    text-align: right !important;
}

.text-color-red {
    color: red !important;
}

/* Responsive layout tokens (defaults) */
:root {
    --viewport-w: 0px;
    --viewport-h: 0px;
    --viewport-dpr: 1;
    --viewport-bp: md;
    --fab-height: 0px;
    --fab-offset-bottom: 24px;
    --alert-offset-bottom: 32px;
}

/* Place floating alert above FAB using computed safe area */
#appSectionChangeFloatingAlertComponent.floating-alert-container,
.floating-alert-container#appSectionChangeFloatingAlertComponent {
    bottom: var(--alert-offset-bottom, 32px) !important;
}

/* Safe-area utilities (horizontal avoidance). Keep elements out of each other based on broker vars. */
.safearea-avoid-right {
    margin-right: var(--safe-bottom-right, 0px);
}

.safearea-avoid-left {
    margin-left: var(--safe-bottom-left, 0px);
}

/* For fixed left-anchored components (like floating alert), constrain width so it never overlaps FAB on the right. */
#appSectionChangeFloatingAlertComponent.floating-alert-container,
.floating-alert-container#appSectionChangeFloatingAlertComponent {
    /* Max between min width and available viewport minus right safe-area and left anchor+gutter */
    max-width: clamp(220px, calc(100vw - var(--safe-bottom-right, 0px) - var(--app-left-anchor, 0px) - var(--app-left-gutter, 12px) - 24px), 420px);
}

/* FAB compact mode: reduce density and hide secondary button labels */
#appSectionsFABContainer.fab--compact {
    padding: 6px 8px;
}

    #appSectionsFABContainer.fab--compact .btn-sticky-secondary-action {
        padding: 6px 8px;
        font-size: 0; /* hide text without changing DOM */
        line-height: 1;
    }

        #appSectionsFABContainer.fab--compact .btn-sticky-secondary-action i,
        #appSectionsFABContainer.fab--compact .btn-sticky-secondary-action .glyphicon,
        #appSectionsFABContainer.fab--compact .btn-sticky-secondary-action .fa,
        #appSectionsFABContainer.fab--compact .btn-sticky-secondary-action .caret {
            font-size: 14px;
        }

@media (max-width: 575.98px) {
    #appSectionsFABContainer.fab--compact #btnStickySaveButton #btnStickySaveButtonLabel {
        display: none;
    }
}

/* Avoid content being covered by FAB */
#MainContainerRenderBody {
    padding-bottom: calc(var(--fab-offset-bottom, 24px) + 16px);
}

/* FAB overflow triggers: responsive visibilidad y safety */
/* Por defecto: mostrar desktop, ocultar mobile */
#appSectionsFABContainer .fab-overflow-desktop {
    display: inline-block;
}

#appSectionsFABContainer #fabOverflowMobile {
    display: none;
}

/* En xs/sm: ocultar dropup (desktop) y mostrar trigger mobile limpio */
@media (max-width: 991.98px) {
    #appSectionsFABContainer .fab-overflow-desktop {
        display: none !important;
    }

    #appSectionsFABContainer #fabOverflowMobile {
        display: inline-flex !important;
    }
    /* Safety: asegúrate que el menú dropdown no se muestre en mobile */
    #appSectionsFABContainer .fab-overflow-desktop .dropdown-menu {
        display: none !important;
    }
}

/* #region Dev: Viewport Overlay (DEBUG only loaded) */
.dev-viewport-overlay {
    position: fixed;
    z-index: 2147483000; /* below devtools overlays, above app UI */
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
    font: 12px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    background: rgba(17, 17, 17, 0.75);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: none;
    pointer-events: none; /* non-interactive */
}
/* #endregion */

/* #endregion */

/* #region Font Utilities */

.f-w-b {
    font-weight: bold !important;
}

/* #endregion */

/* #region Border Utilities */

.b-s {
    border: 1px solid #dddddd !important;
}

/* #endregion */

/* #region Border Utilities (Additional) */
.b-b-s {
    border-bottom: 1px solid #dddddd !important;
}

.b-t-0 {
    border-top: 0px hidden #dddddd !important;
}

.fieldset-border {
    border: 1px solid #ccc;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}
/* #endregion */

/* #region Float & Width Utilities */
.w-1 {
    width: 1px !important;
}

.f-l {
    float: left !important;
}
/* #endregion */

/* #region Label & Legend Utilities */
.label-normal-rg {
    font-size: small !important;
    font-weight: normal !important;
    padding-left: 0px !important;
    padding-right: 10px !important;
}

.label-ms {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-sizing: unset !important;
    -moz-box-sizing: unset !important;
    box-sizing: unset !important;
    font-weight: normal !important;
    display: unset !important;
}

.legend-ms {
    border: none;
    font-size: unset !important;
    width: unset !important;
    margin: unset !important;
    font-weight: bold;
}
/* #endregion */

/* #region App State Module */

.tab-disabled {
    pointer-events: none;
    color: #aaa !important;
}

.tab-main-highlight {
    font-weight: bold;
    border-bottom: 2px solid #007bff;
}


.sticky-action-container {
    position: fixed;
    bottom: var(--fab-offset-bottom, 50px);
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 16px 16px 16px 10px;
    min-width: 220px;
    position: fixed;
}

.action-group {
    display: flex;
    gap: 6px;
    margin-right: 8px;
    border-right: 1px solid #eee;
    padding-right: 8px;
}

    .action-group:last-child {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
    }

.btn-sticky-primary-action {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 16px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    min-width: 44px;
}

.btn-sticky-secondary-action {
    padding: 12px 16px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 44px;
}

    .btn-sticky-secondary-action i {
        font-size: 18px;
    }


/* removed: .btn-hide-fab (administrative action moved to overflow menu) */

.fab-minimized {
    position: fixed;
    bottom: var(--fab-offset-bottom, 50px);
    right: 30px;
    z-index: 10000;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #eee;
    transition: box-shadow 0.2s;
}

    .fab-minimized:focus {
        outline: 2px solid #007bff;
    }

    .fab-minimized i {
        font-size: 24px;
        color: #007bff;
    }

.fab-hidden {
    display: none !important;
}
/* Mejor práctica UX: resalta el acceso directo activo en el menú de secciones */
#shortcut-hc-options li.section-menu-active > a {
    background: #337ab7; /* Bootstrap 3 primary */
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border-left: none !important;
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
    transition: background 0.2s, color 0.2s;
}

/* Mapea aria-current a estilo visual (accesibilidad): asegura highlight aunque no haya clase */
/* Comentario: algunos flujos establecen aria-current="page" o "true"; damos soporte a ambos */
#shortcut-hc-options li > a[aria-current="page"],
#shortcut-hc-options li > a[aria-current="true"] {
    background: #337ab7; /* mismo color que el activo */
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Subsections menu (dropup) active state */
#shortcut-hc-subsections .dropdown-menu li > a.active,
#shortcut-hc-subsections .dropdown-menu li > a[aria-current="true"] {
    background: #337ab7; /* same as your primary */
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Map JS' aria-current to your existing visual language */
#shortcut-hc-subsections .dropdown-menu li > a[aria-current="true"] {
    background: #337ab7;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
}

/* Responsive: oculta el contenedor en pantallas pequeñas */
@media (max-width: 768px) {
    .sticky-action-container {
        flex-direction: column;
        right: 10px;
        bottom: var(--fab-offset-bottom, 10px);
        gap: 6px;
    }

    .btn-sticky-secondary-action, .btn-sticky-primary-action {
        width: 100%;
        min-width: unset;
    }
}

/* no extra right-side slot needed after moving 'Ocultar' to overflow */

/* #endregion */

/* #region Floating Alert */

.floating-alert-minimize-btn[title]:hover,
.floating-alert-minimize-btn[title]:focus {
    /* Oculta el title nativo solo cuando el mouse está sobre el botón */
    pointer-events: auto;
}

    /* Hack visual para ocultar el title nativo en navegadores modernos solo cuando el custom tooltip está visible */
    .floating-alert-minimize-btn[title]:hover::after,
    .floating-alert-minimize-btn[title]:focus::after {
        content: none !important;
    }

.floating-alert-minimize-btn,
.floating-alert-minimize-btn-fullwidth {
    /* ...existing code... */
    position: relative;
    overflow: visible; /* Permite que el tooltip custom sobresalga */
    z-index: 20; /* Asegura que el botón y tooltip estén sobre la alerta */
}

    .floating-alert-minimize-btn:hover,
    .floating-alert-minimize-btn:focus,
    .floating-alert-minimize-btn-fullwidth:hover,
    .floating-alert-minimize-btn-fullwidth:focus {
        background: #FFF3E0 !important; /* Fondo suave Material */
        color: #FF6F00 !important; /* Ícono más intenso */
        box-shadow: 0 4px 12px rgba(255, 224, 102, 0.18);
        outline: none;
        transition: background 0.2s cubic-bezier(.4,0,.2,1), color 0.2s cubic-bezier(.4,0,.2,1), box-shadow 0.2s cubic-bezier(.4,0,.2,1);
    }

    .floating-alert-minimize-btn .material-icons,
    .floating-alert-minimize-btn-fullwidth .material-icons {
        transition: color 0.2s cubic-bezier(.4,0,.2,1);
    }

    .floating-alert-minimize-btn:hover .material-icons,
    .floating-alert-minimize-btn:focus .material-icons,
    .floating-alert-minimize-btn-fullwidth:hover .material-icons,
    .floating-alert-minimize-btn-fullwidth:focus .material-icons {
        color: #FF6F00 !important;
    }

    .floating-alert-minimize-btn.floating-alert-minimize-btn-top {
        position: absolute;
        top: 2px;
        right: 4px;
        z-index: 21; /* Por encima del contenedor de alerta */
        background: none;
        border: none;
        color: #b8860b !important;
        font-size: 16px !important;
        padding: 2px 6px !important;
        min-width: 28px;
        min-height: 28px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        overflow: visible; /* Permite tooltip custom */
    }

        .floating-alert-minimize-btn.floating-alert-minimize-btn-top i {
            font-size: 18px !important;
        }

        .floating-alert-minimize-btn.floating-alert-minimize-btn-top:hover,
        .floating-alert-minimize-btn.floating-alert-minimize-btn-top:focus {
            color: #d39e00 !important;
            background: #fffbe6;
            border-radius: 50%;
        }

    .floating-alert-minimize-btn i {
        font-size: 22px !important;
    }

    .floating-alert-minimize-btn span {
        font-size: 16px !important;
        font-weight: bold;
        margin-left: 2px;
        color: #b8860b !important;
    }

.floating-alert-minimized.floating-alert-pulse {
    animation: floating-alert-pulse 1.2s infinite;
}

.floating-alert-minimize-btn-fullwidth {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: 8px; /* opcional, para mantener la estética*/
}



.floating-alert-minimize-btn:hover,
.floating-alert-minimize-btn:focus {
    color: #d39e00;
}

.floating-alert-content {
    padding: 16px 16px 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}






/* --- Floating Alert Material Design Adaptado ---*/

/* --- Animación Material para links de alerta flotante ---*/

.pending-section-link {
    position: relative;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s cubic-bezier(.4,0,.2,1);
}

    .pending-section-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 2px;
        background: #1976d2;
        transform: scaleX(0);
        transition: transform 0.2s cubic-bezier(.4,0,.2,1);
        border-radius: 1px;
    }

    .pending-section-link:hover,
    .pending-section-link:focus {
        color: #0d47a1;
        outline: none;
    }

        .pending-section-link:hover::after,
        .pending-section-link:focus::after {
            transform: scaleX(1);
        }
/* Layout hook: the JS service sets left dynamically; ensure the element stays fixed and doesn’t animate left unexpectedly */
.floating-alert-container {
    position: fixed !important;
    /* Unificar con el token global. IMPORTANTE: no fijar un valor absoluto aquí */
    bottom: var(--alert-offset-bottom, 32px) !important;
    left: calc(var(--app-left-anchor, 0px) + var(--app-left-gutter, 12px)) !important;
    z-index: 1060 !important;
    /* width is further constrained above when the element is the pending sections alert */
    max-width: 340px;
    min-width: 220px;
    width: 100%;
    pointer-events: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s, max-height 0.2s;
    font-size: 14px;
    background: transparent !important;
    /* Importante: sin fondo por defecto*/
    border: none;
    padding: 0;
    overflow: visible;
}

.floating-alert-visible {
    opacity: 1;
    background: #FFF8E1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Header: garantizar 1 línea de título y acciones rígidas a la derecha */
#appSectionChangeFloatingAlertComponent .panel-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
}

    #appSectionChangeFloatingAlertComponent .panel-heading .floating-alert-title {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #appSectionChangeFloatingAlertComponent .panel-heading .floating-alert-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
    /* Evitar solapamiento: cuando el botón minimizar vive dentro del header, que no sea absoluto */
    #appSectionChangeFloatingAlertComponent .panel-heading .floating-alert-minimize-btn-top {
        position: static;
        top: auto;
        right: auto;
        margin-left: 4px;
    }
/* Estados de condensación del botón "Ver todas" */
#appSectionChangeFloatingAlertComponent .floating-alert-see-all-btn {
    transition: all .15s ease;
}

#appSectionChangeFloatingAlertComponent.floating-alert--condensed .floating-alert-see-all-btn {
    font-size: 10px !important;
    padding: 1px 4px !important;
}

#appSectionChangeFloatingAlertComponent.floating-alert--iconOnly .floating-alert-see-all-btn {
    font-size: 0 !important;
    padding: 2px 6px !important;
}

    #appSectionChangeFloatingAlertComponent.floating-alert--iconOnly .floating-alert-see-all-btn::before {
        content: '\e8ef'; /* material-icons: list */
        font-family: 'Material Icons';
        font-size: 18px;
        line-height: 1;
        vertical-align: middle;
    }
/* Ocultar botón cuando no hay scroll real */
#appSectionChangeFloatingAlertComponent[data-has-scroll="false"] .floating-alert-see-all-btn {
    display: none !important;
}

/* Cover-on-modal: evita parpadeo al abrir/cerrar modales/overlays, sin cambiar posición */
#appSectionChangeFloatingAlertComponent[data-covered="true"] {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 140ms ease;
}

/* Botón "Ver todas" en floating alert - más pequeño y sin traslape */
.floating-alert-see-all-btn {
    font-size: 10px !important;
    padding: 1px 4px !important;
    min-width: auto !important;
    white-space: nowrap;
    margin-left: 8px !important;
    margin-right: 4px !important;
    height: 20px !important;
    line-height: 18px !important;
}

/* Limpieza: removido pseudo-elemento de debug para no afectar la UI */

/* Adaptive max-height for the floating alert card to avoid covering content */
/* Preferimos CSS var calculada en runtime; fallback por breakpoint si la var no existe */
/* Para md (992-1199px) usamos 20vh como fallback muy restrictivo para forzar scroll */
#appSectionChangeFloatingAlertComponent .panel-body {
    max-height: var(--floating-alert-card-max-height, 26vh);
    overflow: auto;
}

@media (max-width: 575.98px) {
    #appSectionChangeFloatingAlertComponent .panel-body {
        max-height: var(--floating-alert-card-max-height, 22vh);
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    #appSectionChangeFloatingAlertComponent .panel-body {
        max-height: var(--floating-alert-card-max-height, 24vh);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    #appSectionChangeFloatingAlertComponent .panel-body {
        max-height: var(--floating-alert-card-max-height, 20vh);
    }
}

@media (min-width: 1200px) {
    #appSectionChangeFloatingAlertComponent .panel-body {
        max-height: var(--floating-alert-card-max-height, 30vh);
    }
}

.floating-alert-minimized {
    opacity: 0.95;
    background: transparent !important;
    /*Sin fondo ni borde en minimizado*/
    box-shadow: none !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    max-height: none !important;
    height: auto !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible !important;
}

.floating-alert-minimize-btn,
.floating-alert-minimize-btn-fullwidth {
    background: #FFF8E1;
    border: 1px solid #FFA000;
    border-radius: 24px;
    color: #FFA000;
    font-size: 18px;
    font-weight: bold;
    min-width: 48px;
    min-height: 32px;
    padding: 0 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: 'Roboto', 'Arial', sans-serif;
    letter-spacing: 0.01em;
}

.floating-alert-minimize-btn-top {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #FFA000;
    font-size: 18px;
    z-index: 2;
    font-family: 'Roboto', 'Arial', sans-serif;
}

.floating-alert-pulse {
    animation: floating-alert-pulse 1.2s infinite;
}

@keyframes floating-alert-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 224, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 12px 6px rgba(255, 224, 102, 0.7);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 224, 102, 0.7);
    }
}










/* #endregion */

/* #region FAB Speed Dial (small screens) */

/* Container enters dial mode */
#appSectionsFABContainer.fab--mode-dial {
    padding: 8px 10px;
    min-width: 0;
}

/* Hide proxied secondary buttons when they were moved into the dial */
#appSectionsFABContainer .fab-hidden-sm-proxy {
    display: none !important;
}

/* Dial container */
#appSectionsFABContainer .fab-dial {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    display: none;
}
/*TODO: scl Eliminar logica de .fab-dial*/

/* Dial trigger (uses overflow mobile or fallback) */
#appSectionsFABContainer .fab-dial__trigger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* List of actions (collapsed by default) */
#appSectionsFABContainer .fab-dial__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 8px;
}

#appSectionsFABContainer .fab-dial.is-open .fab-dial__list {
    display: flex;
}

/* Action item */
#appSectionsFABContainer .fab-dial__item {
    display: block;
}

#appSectionsFABContainer .fab-dial__action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

    #appSectionsFABContainer .fab-dial__action i,
    #appSectionsFABContainer .fab-dial__action .glyphicon,
    #appSectionsFABContainer .fab-dial__action .fa {
        font-size: 18px;
    }

@media (max-width: 1366px) {
    /* Ensure mobile overflow trigger is visible as dial trigger */
    #appSectionsFABContainer.fab--mode-dial #fabOverflowMobile {
        display: none !important;
    }
    /* Shrink primary label */
    #appSectionsFABContainer.fab--mode-dial #btnStickySaveButton #btnStickySaveButtonLabel {
        display: none;
    }
}

/* #endregion */

/* #region FAB Compact (laptop width/short height) */
#appSectionsFABContainer.fab--compact {
    padding: 6px 8px;
}

    #appSectionsFABContainer.fab--compact .btn-sticky-secondary-action {
        padding: 6px 8px;
        font-size: 0;
        line-height: 1;
    }

        #appSectionsFABContainer.fab--compact .btn-sticky-secondary-action i,
        #appSectionsFABContainer.fab--compact .btn-sticky-secondary-action .glyphicon,
        #appSectionsFABContainer.fab--compact .btn-sticky-secondary-action .fa {
            font-size: 14px;
        }

    #appSectionsFABContainer.fab--compact #btnStickySaveButton #btnStickySaveButtonLabel {
        display: none;
    }
    /* hide any leftover dial in compact */
    #appSectionsFABContainer.fab--compact .fab-dial {
        display: none !important;
    }
    /* hides overflow mobile trigger in compact mode */
    #appSectionsFABContainer.fab--compact #fabOverflowMobile {
        display: none !important;
    }

/* CSS-first compact fallback for initial paint before JS resolves policy */
@media (min-width: 1200px) and (max-height: 719px) {
    #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) {
        padding: 6px 8px;
    }

        #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) .btn-sticky-secondary-action {
            padding: 6px 8px;
            font-size: 0;
            line-height: 1;
        }

            #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) .btn-sticky-secondary-action i,
            #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) .btn-sticky-secondary-action .glyphicon,
            #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) .btn-sticky-secondary-action .fa {
                font-size: 14px;
            }

        #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) #btnStickySaveButton #btnStickySaveButtonLabel {
            display: none;
        }

        #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) .fab-dial {
            display: none !important;
        }
}

@media (min-width: 1366px) and (max-width: 1599.98px) and (min-height: 720px) {
    #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) {
        padding: 6px 8px;
    }

        #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) .btn-sticky-secondary-action {
            padding: 6px 8px;
            font-size: 0;
            line-height: 1;
        }

            #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) .btn-sticky-secondary-action i,
            #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) .btn-sticky-secondary-action .glyphicon,
            #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) .btn-sticky-secondary-action .fa {
                font-size: 14px;
            }

        #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) #btnStickySaveButton #btnStickySaveButtonLabel {
            display: none;
        }

        #appSectionsFABContainer:not(.fab--mode-dial):not(.fab--full) .fab-dial {
            display: none !important;
        }
}

/* Ensure full mode can override fallback */
#appSectionsFABContainer.fab--full #btnStickySaveButton #btnStickySaveButtonLabel {
    display: inline;
}

/* #endregion */

/* #region Custom BS Tooltip */

/* Tooltip base - posición por defecto ARRIBA */
.custom-bs-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #3c8dbc;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

    .custom-bs-tooltip::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -8px;
        transform: translateX(-50%);
        border-width: 8px 8px 0 8px;
        border-style: solid;
        border-color: #3c8dbc transparent transparent transparent;
    }

/* Tooltip posición ABAJO */
.custom-bs-tooltip--bottom {
    top: auto;
    bottom: auto;
    margin-top: 45px;
}

    .custom-bs-tooltip--bottom::after {
        top: -8px;
        bottom: auto;
        border-width: 0 8px 8px 8px;
        border-color: transparent transparent #3c8dbc transparent;
    }

/* Tooltip posición IZQUIERDA */
.custom-bs-tooltip--left {
    top: 50%;
    left: auto;
    right: 100%;
    margin-right: 12px;
    transform: translateY(-50%);
}

    .custom-bs-tooltip--left::after {
        content: "";
        position: absolute;
        top: 50%;
        left: auto;
        right: -8px;
        bottom: auto;
        transform: translateY(-50%);
        border-width: 8px 0 8px 8px;
        border-style: solid;
        border-color: transparent transparent transparent #3c8dbc;
    }

/* Tooltip posición DERECHA */
.custom-bs-tooltip--right {
    top: 50%;
    left: 100%;
    right: auto;
    margin-left: 12px;
    transform: translateY(-50%);
}

    .custom-bs-tooltip--right::after {
        content: "";
        position: absolute;
        top: 50%;
        left: -8px;
        right: auto;
        bottom: auto;
        transform: translateY(-50%);
        border-width: 8px 8px 8px 0;
        border-style: solid;
        border-color: transparent #3c8dbc transparent transparent;
    }

/* #endregion */

/* #region Globals*/

/* Estilos globales para deshabilitar componentes flotantes de forma accesible y profesional */
/* ACTUALIZADO (2025-10-16): Ocultar completamente en lugar de semi-transparente */
/* Razón: Cuando hay overlay abierto, los componentes flotantes deben desaparecer completamente */
/* para evitar confusión visual y mantener foco en el contenido del overlay */
/* ESPECIFICIDAD CORREGIDA (2025-10-16): Selectores compuestos específicos para FAB y Alert */
/* Ganan sobre .sticky-action-container (display: flex) y .fab-minimized (display: flex) */
/* Especificidad: 0-2-0 (dos clases) supera reglas con display: flex de especificidad 0-1-0 */
/* CACHE BUST: v2025-10-16-20:30 - FIX SHORTCUTS MODAL */
.sticky-action-container.floating-ui-disabled,
.fab-minimized.floating-ui-disabled,
.floating-alert-container.floating-ui-disabled {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    /* Triple aplicación para máxima compatibilidad cross-browser */
}

/* Regla adicional con mayor especificidad por si hay conflicto */
body .sticky-action-container.floating-ui-disabled,
body .fab-minimized.floating-ui-disabled {
    display: none !important;
}

.td-radio-interactive,
.td-radio-interactive input[type="radio"] {
    cursor: pointer;
    transition: background-color 0.2s;
}

    .td-radio-interactive:hover {
        background-color: #e6f7ff;
    }

.invisible-init {
    visibility: hidden !important;
}

.invisible-element {
    visibility: hidden !important;
}

/*#endregion*/

/* ============================
   Overlays: hide FAB while open
   - Oculta el FAB y su icono minimizado cuando existan overlays estándar.
   - Cobertura: Bootstrap (.modal-open), SweetAlert2 (.swal2-shown), jQuery UI (.ui-dialog-open),
     y nuestro bottom sheet propio (.fab-bottomsheet-open).
   - Justificación UX: priorizar foco en el modal y evitar colisiones visuales.
   - Nota: El manager JS también controla visibilidad; este CSS actúa como red de seguridad universal.
   ============================ */
body.modal-open #appSectionsFABContainer,
body.modal-open #fabMinimized,
body.swal2-shown #appSectionsFABContainer,
body.swal2-shown #fabMinimized,
body.ui-dialog-open #appSectionsFABContainer,
body.ui-dialog-open #fabMinimized,
body.fab-bottomsheet-open #appSectionsFABContainer,
body.fab-bottomsheet-open #fabMinimized {
    display: none !important;
}

/**
 * Shortcuts Overlay Styles — estilos profesionales para modal grid de accesos directos
 * 
 * Diseño visual moderno y responsive para desktop (no mobile).
 * Compatible con breakpoints estándar (sm, md, lg, xl, xxl).
 * 
 * Características:
 * - Modal centrada con backdrop blur
 * - Grid auto-ajustable (repeat(auto-fill, minmax(...)))
 * - Animaciones suaves (slide-in, hover effects)
 * - Focus states para accesibilidad
 * - Safe area consideration
 * - Z-index coordinado con sistema global
 * 
 * @author scl
 * @date 2025-10-15
 */

/* ==========================================================================
   Base Overlay Structure
   ========================================================================== */

.shortcuts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Por encima de la mayoría de componentes, revisar tokens si existe AppUITokens */
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.shortcuts-overlay.is-open {
    display: flex;
    pointer-events: auto;
}

/* ==========================================================================
   Backdrop
   ========================================================================== */

.shortcuts-overlay__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Safari support */
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.shortcuts-overlay.is-open .shortcuts-overlay__backdrop {
    opacity: 1;
}

/* ==========================================================================
   Container (Modal Card)
   ========================================================================== */

.shortcuts-overlay__container {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 80vh;
    width: 900px; /* Óptimo para desktop */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.shortcuts-overlay.is-open .shortcuts-overlay__container {
    transform: scale(1);
    opacity: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.shortcuts-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    flex-shrink: 0;
}

.shortcuts-overlay__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.shortcuts-overlay__close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1;
}

.shortcuts-overlay__close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.shortcuts-overlay__close:focus {
    outline: 2px solid #3c8dbc;
    outline-offset: 2px;
}

/* ==========================================================================
   Body (Scrollable Container)
   ========================================================================== */

.shortcuts-overlay__body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Scrollbar styling (WebKit browsers) */
.shortcuts-overlay__body::-webkit-scrollbar {
    width: 8px;
}

.shortcuts-overlay__body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.shortcuts-overlay__body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.shortcuts-overlay__body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==========================================================================
   Grid Structure
   ========================================================================== */

.shortcuts-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.shortcuts-grid__empty {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 20px;
}

/* Section (Category Group) */
.shortcuts-grid__section {
    margin-bottom: 16px;
}

.shortcuts-grid__section:last-child {
    margin-bottom: 0;
}

.shortcuts-grid__category-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

/* Items Grid */
.shortcuts-grid__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

/* ==========================================================================
   Grid Items (Action Buttons)
   ========================================================================== */

.shortcuts-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease-out;
    text-align: center;
    min-height: 100px;
    position: relative;
}

.shortcuts-grid__item:hover {
    background: #f5f5f5;
    border-color: #3c8dbc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.shortcuts-grid__item:focus {
    outline: 2px solid #3c8dbc;
    outline-offset: 2px;
}

.shortcuts-grid__item:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shortcuts-grid__item i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #3c8dbc;
    transition: color 0.2s;
}

.shortcuts-grid__item:hover i {
    color: #2e6c91;
}

.shortcuts-grid__item-label {
    font-size: 12px;
    line-height: 1.3;
    color: #333;
    display: block;
    word-break: break-word;
}

/* ==========================================================================
   Responsive Adjustments (Desktop Only)
   ========================================================================== */

/* Large desktop (xl) - más columnas */
@media (min-width: 1200px) {
    .shortcuts-grid__items {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Laptop (lg) */
@media (min-width: 992px) and (max-width: 1199px) {
    .shortcuts-overlay__container {
        width: 800px;
    }
    
    .shortcuts-grid__items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Tablet landscape / small laptop (md) */
@media (min-width: 768px) and (max-width: 991px) {
    .shortcuts-overlay__container {
        width: 700px;
        max-width: 95vw;
    }
    
    .shortcuts-grid__items {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .shortcuts-grid__item {
        padding: 14px 10px;
        min-height: 90px;
    }
}

/* Small screens (sm) - todavía desktop, no mobile */
@media (min-width: 576px) and (max-width: 767px) {
    .shortcuts-overlay__container {
        width: 90vw;
        max-height: 85vh;
    }
    
    .shortcuts-grid__items {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
    
    .shortcuts-grid__item {
        padding: 12px 8px;
        min-height: 85px;
    }
    
    .shortcuts-grid__item i {
        font-size: 20px;
    }
    
    .shortcuts-overlay__body {
        padding: 16px;
    }
}

/* ==========================================================================
   Body Lock (Prevent Background Scroll)
   ========================================================================== */

body.shortcuts-overlay-open {
    overflow: hidden;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes slideInScale {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Animation can be applied via JS or kept simple with transitions above */

/* ==========================================================================
   Print Styles (Hide Modal)
   ========================================================================== */

@media print {
    .shortcuts-overlay {
        display: none !important;
    }
}

/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */

@media (prefers-contrast: high) {
    .shortcuts-overlay__backdrop {
        background: rgba(0, 0, 0, 0.85);
    }
    
    .shortcuts-grid__item {
        border-width: 2px;
    }
    
    .shortcuts-grid__item:focus {
        outline-width: 3px;
    }
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .shortcuts-overlay__container,
    .shortcuts-overlay__backdrop,
    .shortcuts-grid__item,
    .shortcuts-overlay__close {
        transition: none;
    }
}

