/******************************* SAGYC POS — modulos.css ******************************/
/* Colores de marca: lib/modulos_init.php (--color-boton-enfasis, etc.) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700&display=swap');

:root {
    --sagyc-radius-sm: 8px;
    --sagyc-radius-md: 12px;
    --sagyc-radius-lg: 16px;
    --sagyc-radius-xl: 20px;
    --sagyc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sagyc-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --sagyc-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --sagyc-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --sagyc-duration: 0.28s;
    /* Micro-interacciones: rápidas, solo hover/active */
    --sagyc-micro: 0.12s;
    --sagyc-micro-fast: 0.08s;
    --sagyc-micro-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --sagyc-surface: rgba(255, 255, 255, 0.55);
    --sagyc-surface-muted: rgba(255, 255, 255, 0.38);
    --sagyc-border: var(--glass-border-muted);
    --sagyc-text: #1f2937;
    --sagyc-text-muted: #6b7280;
    --sidenav-icon-shadow: 0 2px 6px rgba(22, 28, 45, 0.08), 0 1px 2px rgba(22, 28, 45, 0.06);
    --sidenav-icon-shadow-hover: 0 6px 14px rgba(22, 28, 45, 0.12);
}

@media (prefers-reduced-motion: reduce) {

    .btn,
    .btn-text,
    .card,
    .card-header,
    .tabla_v .cell,
    .main.sagyc-page-enter {
        transition: none !important;
        animation: none !important;
    }

    .btn:hover,
    .btn-text:hover,
    .btn::before,
    .btn-text::before {
        animation: none !important;
    }

    .btn:hover,
    .btn-text:hover {
        transform: none !important;
    }
}

/* ── Fondo difuso — imagen del body con blur decorativo ── */
.sagyc-backdrop {
    position: fixed;
    inset: -64px;
    z-index: -2;
    pointer-events: none;
    background-image: var(--sagyc-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(48px) saturate(1.45) brightness(1.05);
    transform: scale(1.1);
    opacity: 1;
}

.sagyc-backdrop-tint {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 248, 250, 0.08) 50%, rgba(240, 245, 255, 0.12) 100%),
        radial-gradient(ellipse at 15% 8%, rgba(159, 34, 65, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 88% 92%, rgba(52, 120, 180, 0.04) 0%, transparent 45%);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

/* Utilidad: superficie sólida (antes glass) */
.sagyc-glass {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: transparent;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow: hidden;
    position: relative;
    color: var(--sagyc-text);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.grid-container {
    display: grid;
    grid-template-columns: 230px 1fr;
    grid-template-rows: 50px 1fr;
    grid-template-areas:
        "header header"
        "sidenav main";
    height: 100vh;
    overflow: hidden;
    background: transparent;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(159, 34, 65, 0.22);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(159, 34, 65, 0.35);
}

/* Contenedor de vista previa / impresión (inyectado por JS) */
.previax {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.98);
    overflow: auto;
    padding: 16px;
}

.previax:not(:empty) {
    display: block;
}

.trabajo {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--sagyc-panel-border);
    border-radius: var(--sagyc-radius-lg);
    box-shadow: var(--sagyc-panel-shadow);
    padding: 20px 22px !important;
    margin: 4px 0 16px;
}

.container-fluid {
    padding: 0 !important;
}


.colored-toast.swal2-icon-success {
    background-color: #25262b !important;
    color: white;
}

/*************************************** Barra de titulo global */
.header {
    grid-area: header;
    display: flex;
    align-items: center;
    background: var(--sidebar-bg-color);
    border-bottom: 1px solid var(--glass-border-muted);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), var(--sagyc-shadow-sm);
    backdrop-filter: none;
}

.container-tabla {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 0 0;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    padding-left: 0;
    height: 100%;
}

.logo_principal {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo_principal img {
    height: 36px !important;
    width: auto !important;
    object-fit: contain !important;
}

#sidebarToggle,
.btn-sidebar-toggle {
    font-size: 1.5rem;
    width: 65px;
    height: 100%;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #333 !important;
}

#sidebarToggle:hover,
.btn-sidebar-toggle:hover {
    background: var(--color-boton-hover) !important;
}

#sidebarToggle::before,
.btn-sidebar-toggle::before,
#sidebarToggle::after,
.btn-sidebar-toggle::after {
    display: none;
}

.center-container {
    display: flex;
    justify-content: center;
    text-align: center;
    flex: 2;
}

.right-container {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    padding-right: 15px;
}

.header-actions {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
}

.center-container .sucursal-info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--sagyc-text-muted);
    letter-spacing: 0.02em;
}

.header-actions a,
.header-actions .header-logout-btn {
    color: var(--sagyc-text);
    font-size: 17px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition:
        background-color var(--sagyc-micro) var(--sagyc-micro-ease),
        color var(--sagyc-micro) var(--sagyc-micro-ease),
        transform var(--sagyc-micro) var(--sagyc-micro-ease);
}

.header-actions .header-logout-btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.header-actions a:hover,
.header-actions .header-logout-btn:hover {
    background: var(--color-boton-hover);
    color: var(--color-boton-enfasis);
    transform: translateY(-1px);
    opacity: 1;
}

.header-notif-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-notif-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 0.6rem;
    min-width: 1.1rem;
    padding: 0.2em 0.45em;
    line-height: 1;
}

/* FIN DE BARRA DE TITULO GLOBAL */

/* SIDENAV */
.sidebar {
    grid-area: sidenav;
    background: var(--sidebar-bg-color);
    border-right: 1px solid var(--glass-border-muted);
    overflow-y: auto;
    height: 100%;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.sidebar-brand {
    padding: 12px 10px 8px;
    border-bottom: 1px solid var(--glass-border-muted);
    margin-bottom: 2px;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--sagyc-text);
    border-radius: var(--sagyc-radius-md);
    transition: background var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) ease,
        transform var(--sagyc-micro) var(--sagyc-micro-ease);
}

.sidebar-brand-link:hover {
    background: var(--color-boton-hover);
    box-shadow: var(--sagyc-shadow-sm);
    transform: translateY(-1px);
}

.sidebar-brand-link.nav-active {
    background: var(--color-boton-hover);
    box-shadow: var(--sagyc-shadow-sm);
}

.sidebar-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: var(--sidenav-icon-shadow);
    flex-shrink: 0;
}

.sidebar-brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.nav_list {
    list-style: none;
    padding: 4px 6px 8px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav_list li {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.nav_list li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 8px;
    text-decoration: none;
    color: #333;
    border-radius: 10px;
    transition: background var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) ease,
        transform var(--sagyc-micro) var(--sagyc-micro-ease);
    position: relative;
}

.nav_list li a:hover {
    background: var(--color-boton-hover);
    transform: translateY(-1px);
    box-shadow: var(--sagyc-shadow-sm);
}

.nav_list li a.nav-active {
    background: var(--sagyc-accent-soft);
    box-shadow: var(--sagyc-shadow-sm);
}

.nav_list li a.nav-active::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 58%;
    background: var(--color-boton-enfasis);
    border-radius: 0 3px 3px 0;
    transition: height var(--sagyc-micro) var(--sagyc-micro-ease);
}

.nav_list li a:hover::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 40%;
    background: rgba(159, 34, 65, 0.35);
    border-radius: 0 3px 3px 0;
}

.nav_list li a.nav-active:hover::before {
    height: 58%;
    background: var(--color-boton-enfasis);
}

.nav_list li a:active {
    transform: translateY(0);
}

.nav_list li a > i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--sidenav-icon-shadow);
    color: var(--menu-icon-level1);
    font-weight: 900;
    transition: transform var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) ease,
        color var(--sagyc-micro) ease;
}

.nav_list li a:hover > i {
    transform: translateY(-2px);
    box-shadow: var(--sidenav-icon-shadow-hover);
    color: var(--color-boton-enfasis);
}

.nav_list li a.nav-active > i {
    box-shadow: var(--sidenav-icon-shadow-hover);
    color: var(--color-boton-enfasis);
}

.nav_list li a.nav-active .links_name {
    font-weight: 600;
    color: #1a1a2e;
}

.nav_list li a .links_name {
    font-size: 13px;
    line-height: 1.25;
    display: block;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color var(--sagyc-micro) ease, font-weight var(--sagyc-micro) ease;
}

.nav_list li a:hover .links_name {
    font-weight: 600;
    color: #1a1a2e;
}

.nav_list hr {
    margin: 3px 8px;
    border: none;
    border-top: 1.5px solid rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

/* ------------------------------------------------------------- */
/* SUBMENUS MULTINIVEL (CHECKBOX HACK CSS)                       */
/* ------------------------------------------------------------- */

.has-submenu .submenu-toggle {
    display: none;
}

.has-submenu .submenu-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 10px;
    transition: background var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) ease,
        transform var(--sagyc-micro) var(--sagyc-micro-ease);
    color: #333;
}

.has-submenu .submenu-label .menu-item-content {
    display: flex;
    align-items: center;
}

.has-submenu .submenu-label .menu-item-content > i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--sidenav-icon-shadow);
    color: var(--menu-icon-level1);
    font-weight: 900;
    transition: transform var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) ease,
        color var(--sagyc-micro) ease;
}

.has-submenu .submenu-label .menu-item-content .links_name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.has-submenu .submenu-label .caret {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #666;
}

.has-submenu .submenu-label:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: var(--sagyc-shadow-sm);
}

.has-submenu .submenu-label:hover .menu-item-content > i {
    transform: translateY(-2px);
    box-shadow: var(--sidenav-icon-shadow-hover);
    color: var(--color-boton-enfasis);
}

.has-submenu.nav-section-active > .submenu-label {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: var(--sagyc-shadow-sm);
}

.has-submenu.nav-section-active > .submenu-label .menu-item-content > i {
    box-shadow: var(--sidenav-icon-shadow-hover);
    color: var(--color-boton-enfasis);
}

.has-submenu .submenu li a.nav-active {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: var(--sagyc-shadow-sm);
}

.has-submenu .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 0 8px 8px;
}

.has-submenu .submenu li a {
    padding: 2px 8px 2px 18px;
    font-size: 12px;
    color: #555;
    background: transparent;
}

.has-submenu .submenu li a > i {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--sidenav-icon-shadow);
    color: var(--menu-icon-level2);
    transition: transform var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) ease,
        color var(--sagyc-micro) ease;
}

.has-submenu .submenu li a:hover > i {
    transform: translateY(-2px);
    box-shadow: var(--sidenav-icon-shadow-hover);
    color: var(--color-boton-enfasis);
}

.has-submenu .submenu li a:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.03);
    box-shadow: none;
    /* Submenu items keep it minimal */
    transform: translateX(4px);
    /* Pushes the menu item to the right slightly on hover */
}

/* Expansion state */
.has-submenu .submenu-toggle:checked~.submenu {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
    margin-bottom: 2px;
}

.has-submenu .submenu-toggle:checked~.submenu-label .caret {
    transform: rotate(180deg);
}

/* ------------------------------------------------------------- */
/* ESTADO COLAPSADO ESCRITORIO (MINI SIDEBAR)                    */
/* ------------------------------------------------------------- */
@media (min-width: 769px) {
    body.sidebar-mini .grid-container {
        grid-template-columns: 72px 1fr;
    }

    body.sidebar-mini .sidebar-brand {
        padding: 10px 6px;
    }

    body.sidebar-mini .sidebar-brand-text {
        display: none !important;
    }

    body.sidebar-mini .sidebar-brand-link {
        justify-content: center;
        padding: 8px 4px;
    }

    /* Hide the text and extra elements with high specificity */
    body.sidebar-mini .nav_list li a .links_name,
    body.sidebar-mini .has-submenu .submenu-label .links_name,
    body.sidebar-mini .has-submenu .submenu li a .links_name,
    body.sidebar-mini .has-submenu .submenu-label .caret,
    body.sidebar-mini .sidebar .badge {
        display: none !important;
    }

    /* Center icons in the nav anchor tags */
    body.sidebar-mini .nav_list li a {
        justify-content: center;
        padding: 4px 0;
    }

    body.sidebar-mini .nav_list li a > i {
        margin-right: 0;
    }

    /* Center icons in the submenu labels */
    body.sidebar-mini .has-submenu .submenu-label {
        justify-content: center;
        padding: 4px 0;
    }

    body.sidebar-mini .has-submenu .submenu-label .menu-item-content > i {
        margin-right: 0;
    }

    /* Center and format submenu items when collapsed */
    body.sidebar-mini .has-submenu .submenu li a {
        padding: 4px 0;
        justify-content: center;
    }

    body.sidebar-mini .has-submenu .submenu li a > i {
        margin-right: 0;
    }
}

/* ------------------------------------------------------------- */
/* RESPONSIVIDAD (MÓVIL)                                         */
/* ------------------------------------------------------------- */
@media (max-width: 768px) {
    .grid-container {
        display: block;
        height: 100vh;
        width: 100%;
        overflow: hidden;
    }

    .main {
        height: calc(100vh - 50px);
        width: 100%;
        overflow-y: auto;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 50px;
        width: 280px;
        height: calc(100vh - 50px);
        transition: left 0.3s ease;
        box-shadow: var(--glass-shadow);
        border-right: 1px solid var(--glass-border);
        z-index: 999;
    }

    body.sidebar-mini .sidebar {
        left: 0;
    }

    .center-container span {
        display: none;
    }
}

/*           BARRAS DE NAVEGACION   */
.barra {
    background: var(--sagyc-panel-bg) !important;
    border: 1px solid var(--sagyc-panel-border) !important;
    border-radius: var(--sagyc-radius-md);
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 12px;
    box-shadow: var(--sagyc-panel-shadow);
}

/* CONTENEDOR PRINCIPAL */
.main {
    grid-area: main;
    overflow-y: auto;
    padding: 18px 20px 24px;
    background: var(--sagyc-surface-muted);
    border-left: 1px solid var(--glass-border-muted);
}

.main.sagyc-page-enter {
    animation: sagyc-page-fade 0.22s var(--sagyc-micro-ease) both;
}

#contenido,
#trabajo {
    min-height: 100%;
}

/*** BOTONES DE ACCION ***/

.btnventa {
    width: 70px !important;
    height: 50px !important;
}

.btnventa i {
    font-size: 20px !important;
    color: #095181 !important;
}


.btnventa:hover i {
    transition: all .1s ease;
    font-size: 25px !important;
    color: #095181 !important;
}

.btnventa:hover small {
    display: none;
    transition: all .5s ease;
}

.btnventa small span.shortcut-key {
    display: block;
    font-size: 8px;
    color: #888888;
    font-weight: normal;
    margin-top: -1px;
}

/******************************************BOTONES DE ACCION ******************************************/

/* Destello y pulso — muy rápidos, solo hover/click */
@keyframes sagyc-btn-shine {
    0% {
        left: -70%;
        opacity: 0;
    }

    15% {
        opacity: 0.85;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

@keyframes sagyc-btn-ring {
    0% {
        box-shadow: var(--glass-shadow), 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 0 rgba(159, 34, 65, 0.32);
    }

    100% {
        box-shadow: var(--glass-shadow), 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 5px rgba(159, 34, 65, 0);
    }
}

@keyframes sagyc-btn-pop {
    0% {
        transform: translateY(-1px) scale(1);
    }

    45% {
        transform: translateY(0) scale(0.95);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Botones base - reemplazando los estilos de Bootstrap */
.btn {
    position: relative;
    border: 1px solid var(--color-boton-borde) !important;
    border-radius: var(--sagyc-radius-sm);
    font-weight: 500;
    transition:
        transform var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) var(--sagyc-micro-ease),
        background-color var(--sagyc-micro) var(--sagyc-micro-ease),
        border-color var(--sagyc-micro) var(--sagyc-micro-ease),
        color var(--sagyc-micro) var(--sagyc-micro-ease),
        filter var(--sagyc-micro) var(--sagyc-micro-ease);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: var(--color-boton) !important;
    color: #2c3e50 !important;
    box-shadow: var(--sagyc-shadow-sm), 0 1px 2px rgba(0, 0, 0, 0.04);
    isolation: isolate;
}

.btn>* {
    position: relative;
    z-index: 1;
}

/* Destello al pasar el mouse */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg,
            transparent 0%,
            rgba(255, 255, 255, 0.55) 48%,
            transparent 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.btn:hover::before {
    animation: sagyc-btn-shine 0.32s ease-out;
}

/* Botones pequeños (para tablas) */
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 35px;
    min-height: 35px;
    border-width: 1px !important;
}

/* Botones con texto (más grandes) */
.btn-with-text {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 80px;
    min-height: 36px;
    flex-direction: column;
}

/* Efectos hover para ambos tipos */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow), 0 5px 14px rgba(159, 34, 65, 0.14);
    color: var(--color-boton-enfasis) !important;
    background-color: var(--color-boton-hover) !important;
    border-color: var(--color-boton-enfasis) !important;
}

.btn:active {
    animation: sagyc-btn-pop 0.18s var(--sagyc-micro-ease), sagyc-btn-ring 0.22s ease-out;
    transition-duration: var(--sagyc-micro-fast);
}

/* Barra inferior al hover */
.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-boton-enfasis);
    transition: width var(--sagyc-micro) var(--sagyc-micro-ease);
}

.btn:hover::after {
    width: 55%;
}

.btn i {
    transition: transform var(--sagyc-micro) var(--sagyc-micro-ease);
}

.btn:hover i {
    transform: scale(1.08) translateY(-1px);
}

.btn:focus-visible,
.nav_list li a:focus-visible,
.dashboard-card:focus-visible,
.card-overview:focus-visible {
    outline: 2px solid var(--color-boton-enfasis);
    outline-offset: 2px;
}

/* Texto pequeño en botones grandes */
.btn small {
    font-size: 10px;
    color: #4c4c4c;
    display: block;
    line-height: 1.2;
    transition: color var(--sagyc-micro) var(--sagyc-micro-ease);
}

.btn:hover small {
    color: var(--color-boton-enfasis);
    font-weight: 500;
}
/* Footer de modal: icono arriba, etiqueta <small> abajo (ESTANDAR) */
.modal-footer .btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 42px;
    line-height: 1.15;
}

.modal-footer .btn br {
    display: none;
}

.modal-footer .btn > i,
.modal-footer .btn > .fa,
.modal-footer .btn > .fas,
.modal-footer .btn > .far,
.modal-footer .btn > .fab {
    margin: 0 !important;
    line-height: 1;
}

.modal-footer .btn small {
    display: block;
    margin: 0;
    line-height: 1.1;
}

/* Versión alternativa para botones de acciones importantes */
.btn-primary-action {
    background-color: var(--color-boton-enfasis) !important;
    color: white !important;
    border-color: rgba(159, 34, 65, 0.85) !important;
}

.btn-primary-action:hover {
    background-color: var(--color-boton-enfasis) !important;
    border-color: var(--color-boton-enfasis) !important;
    filter: brightness(1.05);
}

.btn-primary-action::before {
    background: linear-gradient(100deg,
            transparent 0%,
            rgba(255, 255, 255, 0.28) 48%,
            transparent 100%);
}

.btn-primary-action:active {
    animation: sagyc-btn-pop 0.18s var(--sagyc-micro-ease), sagyc-btn-ring 0.22s ease-out;
}

.btn-primary-action::after {
    background: white;
}

.btn-primary-action small {
    color: rgba(255, 255, 255, 0.8);
}

.btn-primary-action:hover small {
    color: white;
}

/* Botones de texto (modales, barras de acción) */
.btn-text {
    background: var(--color-boton) !important;
    border: 1px solid var(--color-boton-borde) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    color: var(--color-boton-enfasis) !important;
    min-width: auto;
    min-height: auto;
    padding: 6px 12px !important;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform var(--sagyc-micro) var(--sagyc-micro-ease),
        background-color var(--sagyc-micro) var(--sagyc-micro-ease),
        border-color var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) var(--sagyc-micro-ease);
}

.btn-text>* {
    position: relative;
    z-index: 1;
}

.btn-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg,
            transparent 0%,
            rgba(255, 255, 255, 0.45) 48%,
            transparent 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.btn-text:hover::before {
    animation: sagyc-btn-shine 0.32s ease-out;
}

.btn-text::after {
    display: none;
}

.btn-text:hover {
    background: var(--color-boton-hover) !important;
    transform: translateY(-1px);
    color: var(--color-boton-enfasis) !important;
    border-color: var(--color-boton-enfasis) !important;
    box-shadow: 0 4px 12px rgba(159, 34, 65, 0.1) !important;
}

.btn-text:active {
    animation: sagyc-btn-pop 0.18s var(--sagyc-micro-ease), sagyc-btn-ring 0.22s ease-out;
    transition-duration: var(--sagyc-micro-fast);
}

.btn-text i {
    color: inherit !important;
}


/*------------------------------------------------------ FIN DE BOTONES DE ACCION ------------------------------------------------------ */



/* Cards Bootstrap — panel elevado */
.card {
    background: var(--sagyc-panel-bg) !important;
    border: 1px solid var(--sagyc-panel-border) !important;
    border-radius: var(--sagyc-radius-lg) !important;
    box-shadow: var(--sagyc-panel-shadow) !important;
    overflow: hidden;
    transition:
        box-shadow var(--sagyc-micro) var(--sagyc-micro-ease),
        transform var(--sagyc-micro) var(--sagyc-micro-ease);
}

.card:hover {
    box-shadow: 0 4px 16px rgba(159, 34, 65, 0.1), 0 12px 36px rgba(30, 20, 28, 0.08) !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid var(--sagyc-panel-border) !important;
    padding: 16px 20px !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--color-boton-enfasis) !important;
    transition: border-color var(--sagyc-micro) var(--sagyc-micro-ease);
}


.modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: var(--sagyc-radius-xl) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15) !important;
}

/* Apertura modal — sutil */
.modal.fade .modal-dialog {
    transform: scale(0.98) translateY(4px);
    opacity: 0;
    transition: transform 0.18s var(--sagyc-micro-ease), opacity 0.18s ease !important;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1 !important;
}

.modal.fade .modal-content,
.modal.show .modal-content {
    transition: none !important;
}

.modal-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 15px 20px !important;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--color-boton-enfasis) !important;
}

.modal {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal.fade {
    transition: opacity 0.18s ease !important;
}

.modal.fade:not(.show) {
    opacity: 0;
}

.modal-backdrop {
    background-color: rgba(28, 22, 30, 0.28) !important;
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.modal-backdrop.fade {
    transition: none !important;
}

/* ── Modales MILA (#myModal lg, #myModallg xl, #myModalfs fullscreen)
      Header y footer fijos; solo el body hace scroll. Solo CSS. ── */

#myModal .modal-dialog,
#myModallg .modal-dialog {
    max-height: calc(100dvh - 1.5rem);
    margin: 0.75rem auto;
}

#myModal .modal-dialog.modal-dialog-centered,
#myModallg .modal-dialog.modal-dialog-centered {
    min-height: 0;
    height: auto;
    align-items: stretch;
}

#myModalfs .modal-dialog {
    height: 100%;
    max-height: 100dvh;
    margin: 0;
}

#myModal .modal-content,
#myModallg .modal-content,
#myModalfs .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 1.5rem);
    overflow: hidden;
}

#myModalfs .modal-content {
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0 !important;
}

/* Estructura directa: header + body + footer */
#myModal .modal-content:not(:has(> form)) > .modal-header,
#myModallg .modal-content:not(:has(> form)) > .modal-header,
#myModalfs .modal-content:not(:has(> form)) > .modal-header,
#myModal .modal-content:not(:has(> form)) > .modal-footer,
#myModallg .modal-content:not(:has(> form)) > .modal-footer,
#myModalfs .modal-content:not(:has(> form)) > .modal-footer {
    flex-shrink: 0;
}

#myModal .modal-content:not(:has(> form)) > .modal-header,
#myModallg .modal-content:not(:has(> form)) > .modal-header,
#myModalfs .modal-content:not(:has(> form)) > .modal-header {
    background: #ffffff !important;
    z-index: 2;
}

#myModal .modal-content:not(:has(> form)) > .modal-footer,
#myModallg .modal-content:not(:has(> form)) > .modal-footer,
#myModalfs .modal-content:not(:has(> form)) > .modal-footer {
    background: #fafbfc !important;
    z-index: 2;
}

#myModal .modal-content:not(:has(> form)) > .modal-body,
#myModallg .modal-content:not(:has(> form)) > .modal-body,
#myModalfs .modal-content:not(:has(> form)) > .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* <form> envuelve header/body/footer: scroll único, header/footer sticky */
#myModal .modal-content > form,
#myModallg .modal-content > form,
#myModalfs .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#myModal .modal-content > form > .modal-header,
#myModallg .modal-content > form > .modal-header,
#myModalfs .modal-content > form > .modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
    flex-shrink: 0;
    background: #ffffff !important;
    border-bottom: 1px solid var(--sagyc-panel-border) !important;
}

#myModal .modal-content > form > .modal-footer,
#myModallg .modal-content > form > .modal-footer,
#myModalfs .modal-content > form > .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    flex-shrink: 0;
    background: #fafbfc !important;
    border-top: 1px solid var(--sagyc-panel-border) !important;
}

#myModal .modal-content > form > .modal-body,
#myModallg .modal-content > form > .modal-body,
#myModalfs .modal-content > form > .modal-body {
    flex-shrink: 0;
    overflow: visible;
}

/* Tablas anchas dentro del body del modal */
#myModal .modal-body .tabla_v,
#myModallg .modal-body .tabla_v,
#myModalfs .modal-body .tabla_v {
    margin-bottom: 0;
}

/*------------------------------------------------------ TABLA ------------------------------------------------------ */
.container {
    padding-bottom: 40px;
    /* Para asegurar que la última fila no quede cortada */
}


.clase_titulo {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-boton-enfasis);
    background: var(--sagyc-panel-bg);
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: var(--sagyc-radius-md);
    border: 1px solid var(--sagyc-panel-border);
    border-left: 4px solid var(--color-boton-enfasis);
    margin-top: 8px;
    margin-bottom: 12px;
    box-shadow: var(--sagyc-shadow-sm);
    text-align: left;
}

.clase_filtro {
    color: var(--sagyc-text-muted);
    background: var(--sagyc-panel-bg);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 14px;
    margin: 0 0 10px;
    border-radius: var(--sagyc-radius-sm);
    border: 1px solid var(--sagyc-panel-border);
    box-shadow: var(--sagyc-shadow-sm);
}

.tabla_v {
    display: table;
    font-family: 'Inter', 'Open Sans', Helvetica, Arial, sans-serif;
    width: 100%;
    border-spacing: 0;
    border: 1px solid var(--sagyc-panel-border);
    border-radius: var(--sagyc-radius-md);
    overflow: visible;
    background: var(--sagyc-panel-bg);
    padding: 12px 14px 16px;
    box-shadow: var(--sagyc-panel-shadow);
}

/* Menú Opciones: asegurar z-index en la tabla */
.tabla_v .dropdown-menu {
    z-index: 1060;
}

.tabla_v .header-row {
    margin-top: 6px;
    display: table-row;
    font-weight: 600;
    text-align: center;
    font-variant-caps: small-caps;
    background-color: var(--sagyc-table-header);
    border-left: 0;
}

.tabla_v .header-row .cell {
    background-color: var(--sagyc-table-header);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--sagyc-panel-border);
    text-align: center;
    vertical-align: middle;
    color: var(--sagyc-text);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding-top: 10px;
    padding-bottom: 10px;
}

.tabla_v .header-row>div:first-child {
    border-left: 0;
}

.tabla_v .body-row {
    display: table-row;
    background-color: var(--sagyc-panel-bg);
}

.tabla_v .body-row:nth-child(even) .cell {
    background-color: var(--sagyc-table-zebra);
}

.tabla_v .body-row:hover .cell:first-child {
    box-shadow: inset 3px 0 0 var(--color-boton-enfasis);
}

.tabla_v .cell {
    display: table-cell;
    vertical-align: top;
    border-bottom: 1px solid rgba(159, 34, 65, 0.08);
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.875rem;
    background-color: var(--sagyc-panel-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
        background-color var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) var(--sagyc-micro-ease);
}

.tabla_v .body-row:hover .cell {
    background-color: var(--sagyc-accent-soft);
}

.tabla_v .footer-row {
    display: table-row;
    font-weight: bold;
    font-size: 16px;
    background-color: #fff;
}

.tabla_v .footer-row .cell {
    background-color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    vertical-align: top;
}

@media (max-width: 768px) {
    .tabla_v .header-row {
        display: grid;
        background-color: #fff;
        margin-bottom: 10px;
        border: 1px solid var(--color-boton-borde, #dee2e6);
    }

    .tabla_v .header-row .cell {
        background-color: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tabla_v .body-row {
        display: grid;
        padding: 5px;
        margin-bottom: 3px;
        border: 1px solid var(--color-boton-borde, #dee2e6);
        border-radius: 5px;
        background-color: #fff;
    }

    .tabla_v .body-row .cell {
        background-color: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .tabla_v .body-row .cell {
        display: flex;
        flex-direction: row;
        /* Mantiene el título a la izquierda */
        align-items: flex-start;
        flex-wrap: wrap;
        /* <--- CLAVE: Permite que el contenido baje si no cabe */
        height: auto;
        padding: 5px;
        border-bottom: 1px solid var(--color-boton-borde, #dee2e6);
    }

    /* Forzamos a que todo lo que NO sea el ::before (el título) 
       se comporte como un bloque y use el espacio restante */
    .tabla_v .body-row .cell>* {
        display: block;
        width: 100%;
        /* Obliga a ocupar el ancho después del título */
        flex-basis: calc(100% - 110px);
        /* 100% menos el ancho del título */
        word-break: break-word;
        /* Evita que textos largos como la CURP se salgan */
    }

    .tabla_v .body-row div[data-titulo] {
        display: flex;
    }

    .tabla_v .body-row div[data-titulo]::before {
        content: attr(data-titulo) ':';
        width: 100px;
        min-width: 100px;
        /* Evita que el título se encoja */
        flex-shrink: 0;
        text-align: left;
        font-weight: bold;
        font-variant-caps: small-caps;
        margin-right: 10px;
    }

    .tabla_v .footer-row {
        display: grid;
        padding: 5px;
        margin-bottom: 3px;
        border: 1px solid silver;
        border-radius: 5px;
    }
}


/*********************flotante autocomplete*/
.flotante {
    border: 1px solid silver;
    padding: 13px;
    position: absolute;
    width: 600px;
    height: 100px;
    z-index: 50;
    background-color: white;
    overflow: auto;
    display: block;
    visibility: hidden;
    pointer-events: none;
    box-shadow: var(--sagyc-shadow-md);
    border-radius: var(--sagyc-radius-sm);
}

.flotante2 {
    border: 1px solid silver;
    padding: 5px !important;
    position: fixed;
    width: 500px;
    z-index: 50;
    background-color: white;
    overflow: auto;
    display: none;
    box-shadow: var(--sagyc-shadow-md);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: 12px;
}

.flotante2:hover {
    display: block;
}

.buscadiv:focus+.flotante2 {
    display: block;
}


.buscadivx:focus+.flotante,
.flotante:focus-within,
.flotante:hover {
    display: block;
    visibility: visible;
    pointer-events: auto;
}

.flotante [xapp="autocompletar"] {
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 6px 4px;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
}

.flotante [xapp="autocompletar"]:hover {
    background: rgba(159, 34, 65, 0.08);
}


/*----------------------------- PAGINACION -----------------------------------*/
.pag_sagyc {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 16px auto 8px;
    padding: 12px 0 4px;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid var(--sagyc-panel-border);
}

.pag_sagyc .paginas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.pag_sagyc a {
    background-color: var(--color-boton);
    border: 1px solid var(--color-boton-borde) !important;
    color: var(--sagyc-text);
    text-decoration: none;
    text-align: center;
    padding: 8px 10px;
    min-width: 36px;
    border-radius: var(--sagyc-radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    transition:
        background-color var(--sagyc-micro) var(--sagyc-micro-ease),
        border-color var(--sagyc-micro) var(--sagyc-micro-ease),
        color var(--sagyc-micro) var(--sagyc-micro-ease),
        transform var(--sagyc-micro) var(--sagyc-micro-ease);
}

.pag_sagyc a.active {
    background-color: var(--color-boton-enfasis);
    border: 1px solid var(--color-boton-enfasis) !important;
    color: #fff;
    font-weight: 600;
}

.pag_sagyc a:hover:not(.active) {
    background-color: var(--color-boton-hover);
    border-color: var(--color-boton-enfasis) !important;
    color: var(--color-boton-enfasis);
    transform: translateY(-1px);
}

.pag_sagyc .pag-select {
    margin-left: 8px;
    padding: 7px 10px;
    border: 1px solid var(--sagyc-panel-border);
    border-radius: var(--sagyc-radius-sm);
    background-color: #fff;
    font-size: 0.78rem;
    color: var(--sagyc-text);
}

.pag_sagyc .pag-info {
    text-align: center;
    width: 100%;
    font-size: 0.75rem;
    margin-top: 8px;
    color: var(--sagyc-text-muted);
    letter-spacing: 0.02em;
}


/*----------------------------- FIN DE PAGINACION -----------------------------------*/
/*----------------------------- CSS VENTA -----------------------------------*/

/**********************venta**********************/
.pagex {
    display: grid;
    gap: 2px;
    grid-template-columns: 75% 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "head head"
        "nav datos";
    height: calc(100vh - 130px);
}

.pagex .busca {
    border: 1px solid var(--glass-border-muted);
    padding: 10px;
    grid-area: head;
    background: #ffffff;
    border-radius: var(--sagyc-radius-sm);
    box-shadow: var(--sagyc-shadow-sm);
}

.pagex .producto {
    border: 1px solid var(--glass-border-muted);
    background: #ffffff;
    border-radius: var(--sagyc-radius-sm);
    box-shadow: var(--sagyc-shadow-sm);
    overflow: hidden;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 3px;
    padding-bottom: 3px;
    display: flex;
    flex-direction: column;
    margin-right: 5px;
    grid-area: nav;
    height: 100%;
}

.pagex .datos {
    border: 1px solid var(--glass-border-muted);
    padding: 10px;
    grid-area: datos;
    background: #ffffff;
    border-radius: var(--sagyc-radius-sm);
    box-shadow: var(--sagyc-shadow-sm);
}

.pagex .total {
    margin: 10px;
    padding: 10px;
    flex: 0 0 auto;
    max-height: 45%;
    overflow-y: auto;
}

/***************tabla venta ************************/
.tabla_venta {
    font-family: 'Roboto', sans-serif;
    overflow-y: auto;
    padding: 15px;
    flex: 1 1 auto;
}

.tabla_venta>.header-row {
    background-color: rgba(179, 203, 230, 0.55);
    font-weight: bold;
    text-align: center;
}

.tabla_venta>.titulo-row {
    background-color: #fff4dc;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    font-weight: bold;
}

.tabla_venta>.body-row {
    border-bottom: .5px solid #c2c2c2;
    padding: 5px;
    min-height: auto !important;
}

.tabla_venta>.body-row:hover {
    background-color: rgba(156, 210, 210, 0.4);
    /*linear-gradient(135deg, #a0bfd4, #84b9cc);*/
    -webkit-box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.75);
}


/*----------------------------- CONTROLES INPUIT -----------------------------------*/
/*estilos input, text area y select*/
.input {
    border: 2px solid #4A9DEC;
    height: 2.5em;
    padding-left: 0.8em;
    outline: none;
    overflow: hidden;
    background-color: white;
    border-radius: 10px;
    transition: all 0.5s;
}

.input:hover,
.input:focus {
    border: 2px solid var(--color-boton-enfasis);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
    background-color: white;
}

.input,
select:not(.form-select) {
    border: 1px solid transparent;
    height: 2.5em;
    padding-left: 0.8em;
    outline: none;
    overflow: hidden;
    background-color: #F3F3F3;
    border-radius: 10px;
    transition: all 0.5s;
}

textarea {
    height: 5em;
    /* Doble de la altura de los input */
}

.input:hover,
.input:focus,
textarea:hover,
textarea:focus,
select:not(.form-select):hover,
select:not(.form-select):focus {
    border: 2px solid var(--color-boton-enfasis);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
    background-color: white;
}

/*fin de estilos imput*/


.card input:not([type="checkbox"]):not([type="radio"]):not(.form-control-plaintext),
select:not(.form-select) {
    border: 1px solid var(--sagyc-panel-border) !important;
    height: 2.5em;
    padding-left: 0.8em;
    outline: none;
    overflow: hidden;
    background-color: white;
    border-radius: var(--sagyc-radius-sm);
    transition:
        border-color var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) var(--sagyc-micro-ease);
}

.card input:not([type="checkbox"]):not([type="radio"]):not(.form-control-plaintext):hover,
.card input:not([type="checkbox"]):not([type="radio"]):not(.form-control-plaintext):focus,
select:not(.form-select):hover,
select:not(.form-select):focus {
    border: 2px solid var(--color-boton-enfasis) !important;
    box-shadow: 0 0 0 3px var(--color-focus-ring);
    background-color: white;
}

.form-control-plaintext {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--color-boton-borde, #dee2e6) !important;
    border-radius: 10 !important;
    box-shadow: none !important;
    outline: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: 2.2em !important;
    min-height: auto !important;
}

.form-control-plaintext:hover,
.form-control-plaintext:focus,
.form-control-plaintext:focus-visible,
.form-control-plaintext:active {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--color-boton-borde, #dee2e6) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* CARD DE ACCESO DIRECTO */
.main-overview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.card-overview {
    background: #ffffff;
    border-radius: var(--sagyc-radius-md);
    box-shadow: var(--sagyc-shadow-sm);
    transition: all var(--sagyc-duration) var(--sagyc-ease);
    cursor: pointer;
    border: 1px solid var(--color-boton-borde);
    overflow: hidden;
    width: 150px;
    height: 160px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

.card-overview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(159, 34, 65, 0.12);
    border-color: rgba(159, 34, 65, 0.28);
}

/* Efecto de "flotar" sutil */
.card-overview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(159, 34, 65, 0.12);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-overview:hover::after {
    opacity: 1;
}

.tools {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.card-overview:hover .tools {
    background-color: var(--sagyc-accent-soft);
}

.circle {
    padding: 0 5px;
    transition: transform 0.3s ease;
}

.card-overview:hover .circle {
    transform: translateY(-1px);
}

.box {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.box:hover {
    transform: scale(1.3);
}

.red {
    background-color: #ff605c;
}

.yellow {
    background-color: #ffbd44;
}

.green {
    background-color: #00ca4e;
}

.card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.card-overview:hover .card__content {
    transform: translateY(-2px);
}

.card__content i {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #3498db;
    transition: all 0.3s ease;
}

.card-overview:hover .card__content i {
    transform: scale(1.1);
    color: #1d6fa5;
}

.card__content span {
    font-size: .875rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.card-overview:hover .card__content span {
    color: #2c3e50;
}

/* Efecto de pulsación al hacer clic */
.card-overview:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .main-overview {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-overview {
        justify-content: center;
    }
}


/***************** NAV BAR ******************/
/* Estilos generales para la barra de navegación */
/* Versión compacta del navbar */
/* Navbar compacto doble línea */
.barra.navbar {
    background: var(--sidebar-bg-color) !important;
    border: 1px solid var(--glass-border-muted) !important;
    box-shadow: var(--sagyc-shadow-sm);
    padding: 0.25rem 0.5rem;
    min-height: 50px;
    position: relative;
    z-index: 1030;
}

.navbar-brand {
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    margin-right: 0.3rem;
}

/* Estructura compacta de dos líneas */
.navbar-nav {
    gap: 1px;
    align-items: center;
}

.nav-item {
    margin: 0 1px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem !important;
    color: #444 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
    line-height: 1.1;
}

.nav-link i {
    font-size: 1.2em;
    margin-bottom: 1px;
}

.nav-link small {
    font-size: 0.7em;
    display: block;
    font-weight: 400;
    transition: all 0.2s ease;
}

/* Efectos hover compactos */
.nav-link:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #000 !important;
}

.nav-link:hover i {
    transform: scale(1.08);
}

.nav-link:hover small {
    font-weight: 500;
}

/* Barra inferior sutil al hover */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1.2px;
    background: rgba(0, 0, 0, 0.1);
    transition: width 0.2s ease;
    margin-top: 2px;
}


/* Versión móvil */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 0.3rem;
    }

    .nav-link {
        padding: 0.4rem 0.5rem !important;
    }

    .navbar-nav {
        gap: 3px;
    }
}

/******************************** DASHBOARD ********************************/
.executive-dashboard {
    padding: 20px !important;
    min-height: 100%;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.welcome-box {
    text-align: center;
    margin: 8px 0 28px;
    color: var(--sagyc-text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.welcome-box::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: 10px auto 0;
    background: var(--color-boton-enfasis);
    border-radius: 2px;
    opacity: 0.45;
}

.dashboard-main-cards {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.dashboard-group-card {
    background: var(--sagyc-panel-bg);
    border-radius: var(--sagyc-radius-lg);
    box-shadow: var(--sagyc-panel-shadow);
    padding: 24px 24px 18px;
    min-width: 320px;
    flex: 1;
    border: 1px solid var(--sagyc-panel-border);
    transition:
        box-shadow var(--sagyc-micro) var(--sagyc-micro-ease),
        transform var(--sagyc-micro) var(--sagyc-micro-ease);
}

.dashboard-group-card:hover {
    box-shadow: 0 4px 16px rgba(var(--sagyc-accent-rgb), 0.08), 0 14px 40px rgba(30, 20, 28, 0.08);
}

.dashboard-group-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sagyc-text);
    margin-bottom: 16px;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.dashboard-group-card h4 > i {
    color: var(--color-boton-enfasis);
    font-size: 1rem;
}

.card-hover-accent {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    margin-top: 6px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: var(--sagyc-radius-md);
    box-shadow: var(--sagyc-shadow-sm);
    padding: 22px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.22s var(--sagyc-ease), transform 0.22s var(--sagyc-ease),
        border-color 0.22s ease;
    border: 1px solid var(--glass-border-muted);
}

.dashboard-card:hover,
.card-hover-accent:hover {
    box-shadow: 0 8px 22px rgba(var(--sagyc-accent-rgb), 0.14);
    transform: translateY(-3px);
    border-color: rgba(var(--sagyc-accent-rgb), 0.25);
}

.dashboard-card-icon-wrap {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--sidenav-icon-shadow);
    margin-bottom: 12px;
    color: var(--color-boton-enfasis);
    font-size: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover .dashboard-card-icon-wrap {
    transform: translateY(-3px);
    box-shadow: var(--sidenav-icon-shadow-hover);
}

.dashboard-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sagyc-text);
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.dashboard-card .dash-desc {
    margin-top: 6px;
    color: var(--sagyc-text-muted);
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.2;
}

.dashboard-card--wide {
    grid-column: 1 / span 2;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.dashboard-card--wide .dashboard-card-icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
}

.dashboard-card--wide .dashboard-card-title {
    text-align: left;
    flex: 1;
}

.dashboard-card--wide .dash-desc {
    position: absolute;
    right: 14px;
    bottom: 10px;
    margin-top: 0;
    text-align: right;
}

.dashboard-secondary-section {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 18px;
    margin-top: 8px;
}

.dashboard-chart-container {
    background: #ffffff;
    border-radius: var(--sagyc-radius-lg);
    box-shadow: var(--sagyc-shadow-sm);
    padding: 16px 18px;
    min-height: 280px;
    border: 1px solid var(--glass-border-muted);
}

.executive-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.executive-chart-header h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.chart-period-selector .btn-period {
    border: 0;
    background: rgba(159, 34, 65, 0.08);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-left: 6px;
    color: var(--sagyc-text);
    transition: background 0.15s ease, color 0.15s ease;
}

.chart-period-selector .btn-period.active {
    background: var(--color-boton-enfasis);
    color: #fff;
}

.dashboard-quick-access {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quick-access-card {
    background: #ffffff;
    border-radius: var(--sagyc-radius-md);
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: var(--sagyc-shadow-sm);
    cursor: pointer;
    border: 1px solid var(--glass-border-muted);
    transition: box-shadow 0.22s var(--sagyc-ease), transform 0.22s var(--sagyc-ease);
    font-weight: 500;
    font-size: 0.92rem;
}

.quick-access-card > i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--sidenav-icon-shadow);
    color: var(--color-boton-enfasis);
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-access-card:hover {
    box-shadow: 0 8px 20px rgba(159, 34, 65, 0.12);
    transform: translateY(-2px);
}

.quick-access-card:hover > i {
    transform: translateY(-2px);
    box-shadow: var(--sidenav-icon-shadow-hover);
}

@media (max-width: 992px) {
    .dashboard-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-main-cards {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: stretch !important;
    }

    .dashboard-group-card {
        min-width: 0 !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .dashboard-card-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
    }
}

@media (max-width: 860px) {
    .dashboard-secondary-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-card-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .dashboard-card {
        padding: 18px 12px 14px !important;
    }

    .dashboard-card-icon-wrap {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .dashboard-card-title {
        font-size: 0.9rem !important;
    }

    .dashboard-card--wide {
        grid-column: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 18px 12px 14px !important;
        gap: 10px !important;
    }

    .dashboard-card--wide .dashboard-card-title {
        text-align: center;
    }

    .dashboard-card--wide .dash-desc {
        position: static;
        text-align: center;
    }

    .dashboard-group-card {
        padding: 12px 10px !important;
    }
}

/* Equipos — cards con lista compacta de integrantes */
.equipo-cards-grid {
    --equipo-card-gap: 0.45rem;
}

.equipo-card {
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.equipo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: var(--surface-2, #f8fafc);
}

.equipo-card-title {
    font-size: 0.92rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.equipo-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--equipo-card-gap);
    padding: 0.65rem 0.75rem 0.75rem;
}

.equipo-card-desc {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--text-muted, #64748b);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.equipo-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.equipo-card-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.2rem 0.35rem;
    font-size: 0.72rem;
}

.equipo-card-actions .btn small {
    font-size: 0.72rem;
}

.equipo-integrantes-wrap {
    margin-top: 0.15rem;
    padding-top: 0.45rem;
    border-top: 1px dashed var(--border-color, #e2e8f0);
}

.equipo-integrantes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 9.5rem;
    overflow-y: auto;
}

.equipo-integrante-item {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.18rem 0;
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--text-color, #334155);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.equipo-integrante-item:last-child {
    border-bottom: none;
}

.equipo-integrante-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 0.62rem;
    color: var(--primary, #2563eb);
    opacity: 0.75;
}

.equipo-integrante-nombre {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.equipo-sin-integrantes {
    margin: 0;
    font-size: 0.72rem;
    font-style: italic;
    color: var(--text-muted, #94a3b8);
    text-align: center;
}


/*********************************PANTALLA CATEGORIAS DE VENTA*********************************/
.sagyc_productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    padding: 5px;
}

/* Contenedor de cada item */
.body-row {
    position: relative;
    min-height: 100px;
}

/* Tarjeta de producto */
.sagyc_item {
    position: relative;
    border: none;
    border-radius: var(--sagyc-radius-sm);
    height: 100px;
    width: 100%;
    padding: 0;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s var(--sagyc-ease), box-shadow 0.22s ease;
    box-shadow: var(--sagyc-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Overlay mejorado para contraste */
.sagyc_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* Texto del producto - versión mejorada */
.sagyc_item span {
    position: relative;
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 6px 4px;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 1;
    line-height: 1.2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    margin-top: auto;
}

/* Cantidad de producto - diseño mejorado */
.sagyc_item .cantidad {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-boton-enfasis);
    border-radius: 12px;
    padding: 2px 6px;
    margin: 4px;
    align-self: flex-end;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(var(--sagyc-accent-rgb), 0.3);
}

/* Botón de agregar */
.btn-agregar {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background-color: rgba(159, 34, 65, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 12px;
}

/* Efectos hover mejorados */
.sagyc_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sagyc_item:hover::before {
    opacity: 0.9;
}

.sagyc_item:hover span {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.btn-agregar:hover {
    background-color: rgba(58, 86, 212, 0.9);
    transform: scale(1.1);
}

/* Efecto activo/presionado */
.sagyc_item:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Mensaje cuando no hay productos */
.sagyc_productos>p {
    grid-column: 1 / -1;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    padding: 20px;
}

/*------------------------------calendario-------------------------------*/
/*******************calendario*******/
.calendar_com {
    width: 100%;
    overflow: auto;
    background: rgba(173, 187, 187, 0.4);
    border-radius: 18px;
}

.container-calendario {
    /*se creo esta clase para que el calendario aparezca bien con sus controles superiores y la barra principal no se superponga*/
    margin-top: 50px;
    /* Ajusta este valor según sea necesario para evitar la superposición */
    margin-left: 50px;
}

.month_com {
    display: table;
    width: 100%;
    font-size: 14px;
    padding: 10px;
}

.week_com {
    display: table-row;
}

.weekname_com {
    display: table-row;
    text-align: center;
    font-weight: bold;
    font-size: larger;
    border-radius: 10px;
    background-color: #d4eaf7;
}

.weekname_com .day_com {
    height: 25px;
}

.day_com {
    display: table-cell;
    border-bottom: .5px solid #e3e5e4;
    border-right: .5px solid #e3e5e4;
    padding: 5px;
    padding: 5px;
    height: 75px;
    min-width: 50px;
    /*border-radius: 10px;*/
}

.hoy_com {
    background-color: #a2c7db;
}

.nday_com {
    text-align: center;
    font-size: smaller;
    font-weight: bold;
    color: #000;
    background-color: #ffffff78;
    width: 100%;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 4px;
    margin-bottom: 5px;
    border-radius: 5px;
}

.calendar {
    width: 100%;
    overflow: auto;
    background: rgba(141, 132, 127, 0.5);

}

.month {
    display: table;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    width: 100%;
    font-size: 14px;
    padding: 10px;
}

.week {
    display: table-row;
}

.weekname {
    display: table-row;
    text-align: center;
    font-weight: bold;
    font-size: larger;
    border-radius: 10px;
    background-color: rgba(173, 187, 187, 0.4);
}

.weekname .day {
    height: 25px;
}

.day {
    display: table-cell;
    border-bottom: .5px solid #e3e5e4;
    border-right: .5px solid #e3e5e4;
    padding: 5px;
    padding: 5px;
    height: 75px;
    min-width: 100px;
    border-radius: 21px;
}

.hoy {
    background-color: #c4cbb7;
}

.nday {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #000;
}

.nday2 {
    text-align: center;
    font-size: smaller;
    font-weight: bold;
    color: #000;
    background-color: white;
    width: 20px;
}

.day:hover {
    background-color: #e7f1f5;
}

.salidax {
    background-color: #ffffff;
    border: 1px solid #3b7891;
    border-radius: 5px;
    padding: 3px;
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.12);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.12);
    box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.12);
    width: auto;
    max-width: 200px;
    overflow: hidden;
    margin: 0px auto;
    margin-bottom: 2px;
    font-size: 11px;
}

.salidax:hover {
    cursor: pointer;
    color: #ffffff;
    background-color: #2294c2 !important;
}

/*A continuacion se definen los colores blanco (solo se añade borde) y el cafe exclusivamente para los indicadores de colores que aparecen en el calendario*/
.bg-white {
    border: 1px solid #1e1e1f;
}

.bg-brown {
    background-color: #8B4513;
    color: white;
}

/* Versión para pantallas más grandes — grid de productos venta */
@media (min-width: 768px) {
    .sagyc_productos {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .sagyc_item {
        height: 110px;
    }

    .sagyc_item span {
        font-size: 12px;
        padding: 8px 4px;
    }

    .btn-agregar {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .sagyc_item .cantidad {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Devoluciones / reintegros en lista de pedidos */
.fila-reintegro .cell {
    background-color: #fff5f5 !important;
    color: #6c757d !important;
}

.fila-reintegro .cell:first-child {
    box-shadow: inset 3px 0 0 #dc3545;
}

.fila-reintegro .col-12 {
    font-style: italic;
}

/* Notificaciones — vista tipo correo */
.notif-correo {
    background: #ffffff;
    border: 1px solid var(--glass-border-muted);
    border-radius: 12px;
    overflow: hidden;
}

.notif-correo-toolbar {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #f8f9fb;
}

.notif-correo-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    font-size: 1rem;
}

.notif-correo-meta {
    padding: 0.85rem 1.1rem 0.35rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.notif-correo-fila {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.35rem 0;
    min-height: 2rem;
}

.notif-correo-fila.notif-correo-asunto {
    padding-top: 0.65rem;
    margin-top: 0.25rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.notif-correo-etq {
    flex: 0 0 4.5rem;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.notif-correo-val {
    flex: 1;
    min-width: 0;
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.45;
}

.notif-correo-para .badge {
    font-weight: 500;
}

.notif-correo-cuerpo {
    padding: 1.25rem 1.1rem 1.5rem;
    background: #fff;
    color: #212529;
    font-size: 0.98rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 120px;
}

.notif-correo-compose {
    margin-top: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--glass-border-muted) !important;
    border-radius: 12px;
}

.notif-correo-compose .notif-correo-input-asunto {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    padding-left: 0;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: none;
}

.notif-correo-compose .notif-correo-input-asunto:focus {
    box-shadow: none;
    border-bottom-color: var(--resaltado, #9f2241);
}

.notif-correo-textarea {
    min-height: 220px;
    border-color: rgba(0, 0, 0, 0.08);
    resize: vertical;
}

@keyframes sagyc-page-fade {
    from {
        opacity: 0.55;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bootstrap form controls — acento vino */
.form-control {
    border-color: var(--sagyc-panel-border) !important;
    border-radius: var(--sagyc-radius-sm) !important;
    transition:
        border-color var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) var(--sagyc-micro-ease);
}

.form-control:focus {
    border-color: var(--color-boton-enfasis) !important;
    box-shadow: 0 0 0 3px var(--color-focus-ring) !important;
}

/* Bootstrap form-select con flecha SVG asegurada */
.form-select,
select.form-select {
    display: block;
    width: 100%;
    padding: 0.45rem 2.25rem 0.45rem 0.75rem !important;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    border: 1px solid var(--sagyc-panel-border) !important;
    border-radius: var(--sagyc-radius-sm) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    transition:
        border-color var(--sagyc-micro) var(--sagyc-micro-ease),
        box-shadow var(--sagyc-micro) var(--sagyc-micro-ease);
}

.form-select:hover {
    border-color: var(--color-boton-enfasis) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.form-select:focus {
    border-color: var(--color-boton-enfasis) !important;
    box-shadow: 0 0 0 3px var(--color-focus-ring) !important;
    outline: 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.form-select-sm {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 2rem !important;
    font-size: 0.875rem !important;
    background-position: right 0.5rem center !important;
    background-size: 12px 10px !important;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sagyc-text-muted);
    margin-bottom: 0.35rem;
}

.form-control-plaintext {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.18) !important;
    border-radius: var(--sagyc-radius-sm, 6px);
    padding: 6px 12px !important;
    color: #495057;
    transition: none !important;
}

.form-control-plaintext:hover,
.form-control-plaintext:focus {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.18) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ══════════════════════════════════════════════════════════════
   Opción A — pulido UI (fase 2)
   ══════════════════════════════════════════════════════════════ */

/* Listas cargadas directo en main (sin .trabajo) */
.main > .container-fluid:not(.executive-dashboard) {
    background: var(--sagyc-panel-bg);
    border: 1px solid var(--sagyc-panel-border);
    border-radius: var(--sagyc-radius-lg);
    box-shadow: var(--sagyc-panel-shadow);
    padding: 20px 22px;
    margin-bottom: 8px;
}

.main > .container-fluid.executive-dashboard {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.trabajo > .container-fluid {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 !important;
    margin: 0;
}

/* Módulo: barra + panel de trabajo */
header + .trabajo,
header + #trabajo {
    margin-top: 12px;
}

.barra .form-control,
.barra .form-control:focus {
    border-radius: var(--sagyc-radius-sm) !important;
    border-color: var(--sagyc-panel-border) !important;
    box-shadow: none !important;
    font-size: 0.88rem;
    min-height: 36px;
}

.barra .form-control:focus {
    border-color: var(--color-boton-enfasis) !important;
    box-shadow: 0 0 0 3px var(--color-focus-ring) !important;
}

.barra .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--sagyc-text) !important;
    letter-spacing: 0.02em;
}

/* Estado vacío en tablas */
.tabla_v .body-row.sagyc-empty-row {
    display: block;
}

.tabla_v .body-row.sagyc-empty-row .cell.sagyc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 2.75rem 1.5rem;
    text-align: center;
    border-bottom: none;
    background: var(--sagyc-table-zebra) !important;
}

.sagyc-empty-icon {
    font-size: 2rem;
    color: rgba(159, 34, 65, 0.35);
    line-height: 1;
}

.sagyc-empty-text {
    font-size: 0.92rem;
    color: var(--sagyc-text-muted);
    font-weight: 500;
    max-width: 28rem;
    line-height: 1.45;
}

/* Estados vacíos — cards y listas */
.sagyc-card-empty,
.sagyc-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 2.75rem 1.5rem;
    background: var(--sagyc-table-zebra);
    border: 1px dashed var(--sagyc-panel-border);
    border-radius: var(--sagyc-radius-md);
}

.sagyc-list-empty {
    border: none;
    border-radius: 0;
    background: transparent;
}

.sagyc-empty-detail {
    font-size: 0.82rem;
    color: var(--sagyc-text-muted);
    max-width: 24rem;
    line-height: 1.45;
}

.sagyc-empty-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.sagyc-empty-icon-inline {
    font-size: 0.9rem;
    color: rgba(159, 34, 65, 0.35);
}

/* Secciones en formularios largos */
.sagyc-form-seccion {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.sagyc-form-seccion-icon {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--color-boton-enfasis);
}

.sagyc-form-seccion + .row,
.sagyc-form-seccion + .row.g-2 {
    margin-bottom: 0.25rem;
}

/* Fondos — vista previa */
.sagyc-fondo-preview-frame {
    min-height: 180px;
    border-radius: var(--sagyc-radius-md);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--sagyc-panel-border);
    position: relative;
    overflow: hidden;
}

.sagyc-fondo-preview-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(28, 22, 30, 0.25) 100%);
    pointer-events: none;
}

.sagyc-fondo-preview-caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    color: var(--sagyc-text-muted);
    border: 1px solid var(--sagyc-panel-border);
}

/* Loader — acento de marca */
#cargando_div.loader.is-active {
    background-color: rgba(28, 22, 30, 0.35) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#cargando_div.loader-border.is-active:after {
    background-color: var(--color-boton-enfasis);
}

/* Alertas Bootstrap */
.alert {
    border-radius: var(--sagyc-radius-md);
    border: 1px solid transparent;
    font-size: 0.9rem;
    box-shadow: var(--sagyc-shadow-sm);
}

.alert-danger {
    background: #fff5f5;
    border-color: rgba(220, 53, 69, 0.2);
    color: #842029;
}

.alert-success {
    background: #f0fdf4;
    border-color: rgba(25, 135, 84, 0.2);
    color: #0f5132;
}

.alert-warning {
    background: #fffbeb;
    border-color: rgba(255, 193, 7, 0.35);
    color: #664d03;
}

.alert-info {
    background: #f8f9fb;
    border-color: var(--sagyc-panel-border);
    color: var(--sagyc-text);
}

/* Badges */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge.bg-danger {
    background-color: var(--color-boton-enfasis) !important;
}

/* Búsquedas flotantes */
.flotante,
.flotante2 {
    border: 1px solid var(--sagyc-panel-border) !important;
    border-radius: var(--sagyc-radius-md) !important;
    box-shadow: var(--sagyc-panel-shadow) !important;
    background-color: var(--sagyc-panel-bg) !important;
}

/* Modal footer */
.modal-footer {
    border-top: 1px solid var(--sagyc-panel-border) !important;
    padding: 12px 20px !important;
    background: #fafbfc;
}

.modal-body {
    padding: 20px 22px !important;
}

/* SweetAlert por encima del header / sidebar */
.swal2-container {
    z-index: 10000 !important;
}

/* SweetAlert alineado */
.swal2-popup {
    border-radius: var(--sagyc-radius-lg) !important;
    border: 1px solid var(--sagyc-panel-border) !important;
    box-shadow: var(--sagyc-panel-shadow) !important;
    font-family: 'Inter', sans-serif !important;
}

.swal2-styled.swal2-confirm {
    background-color: var(--color-boton-enfasis) !important;
    border-radius: var(--sagyc-radius-sm) !important;
}

/* Historial académico: separación entre grupos */
.historial-grupo-card {
    margin-bottom: 3rem;
    border: 1px solid var(--sagyc-panel-border, #dee2e6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.historial-grupo-card:not(:last-child) {
    margin-bottom: 3.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-boton-enfasis, #0d6efd);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* ------------------------------------------------------------------ */
/* Fase 0 — utilidades (reemplazan style="" repetidos en UI)          */
/* ------------------------------------------------------------------ */

/* Listas densas: antes style="font-size:13px" en .tabla_v */
.tabla_v.tabla_v-sm,
.tabla_v-sm {
    font-size: 13px;
}

/* Modal con listado largo (buscar materias, etc.) */
.modal-body-scroll {
    max-height: 400px;
    overflow: auto;
}

/* Select de filtro compacto en barras de búsqueda */
.filtro-select-w {
    max-width: 180px;
}

/* Contenedor con scroll vertical acotado */
.scroll-max-420 {
    max-height: 420px;
}

/* Miniatura de foto en formularios */
.img-thumb-h150 {
    max-height: 150px;
    width: auto;
}

/* Tabla con scroll en paneles/modales de pase */
.tabla_v-scroll-400 {
    max-height: 400px;
    overflow-y: auto;
}

.tabla_v-scroll-420 {
    max-height: 420px;
    overflow-y: auto;
}

/* Columna estrecha de acciones (-) */
.cell-acciones-sm {
    width: 40px;
}

/* Lista aún más compacta */
.tabla_v-xs {
    font-size: 12px;
}

/* ------------------------------------------------------------------ */
/* Limpieza CSS UI — clases por dominio (sin PDF)                       */
/* ------------------------------------------------------------------ */

/* Formulario alumno solo lectura */
.form-control-plaintext.sin-borde,
select.form-control-plaintext.sin-borde {
    border: none !important;
}

/* Filas con baja / alerta */
.body-row.fila-baja,
.body-row.fila-alerta {
    background-color: #ffe6e6;
}

/* Sábana de calificaciones */
.sabana-label-sm {
    font-size: 0.8rem;
}

.sabana-input-peso {
    max-width: 70px;
}

.sabana-crit-nombre {
    font-size: 0.6rem;
    color: #555;
}

.sabana-crit-val {
    font-size: 0.6em;
}

.sabana-alumno-meta {
    line-height: 1.2;
    padding: 4px 0;
}

.sabana-curp {
    font-size: 11px;
    color: #666;
}

.sabana-input-nota {
    text-align: right;
}

.sabana-input-nota-sm {
    text-align: right;
    width: 70px;
}

.sabana-btn-np {
    font-size: 0.8rem;
    min-width: 46px;
}

.sabana-btn-np.is-off {
    opacity: 0.6;
}

.cell-valign-mid {
    vertical-align: middle;
}

/* Cards lista calificar */
.card-materia-top {
    border-top: 5px solid #4e73df !important;
    overflow: hidden;
}

.badge-xs {
    font-size: 0.75rem;
}

.icon-sq-24 {
    width: 24px;
    height: 24px;
}

.z-2 {
    z-index: 2;
}

/* Asistencias / orientación */
.scroll-x {
    width: 100%;
    overflow-x: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Lista de asistencia: editar + alumno fijos al scroll horizontal */
.tabla_v.asistencia-freeze {
    --as-col1: 6.25rem;
}

.tabla_v.asistencia-freeze .header-row > .cell:nth-child(-n + 2),
.tabla_v.asistencia-freeze .body-row > .cell:nth-child(-n + 2) {
    position: sticky;
    z-index: 2;
}

.tabla_v.asistencia-freeze .header-row > .cell:nth-child(1),
.tabla_v.asistencia-freeze .body-row > .cell:nth-child(1) {
    left: 0;
    width: var(--as-col1);
    min-width: var(--as-col1);
    max-width: var(--as-col1);
}

.tabla_v.asistencia-freeze .header-row > .cell:nth-child(2),
.tabla_v.asistencia-freeze .body-row > .cell:nth-child(2) {
    left: var(--as-col1);
    min-width: 14rem;
    box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.22);
}

@media (max-width: 768px) {
    .tabla_v.asistencia-freeze .header-row > .cell:nth-child(-n + 2),
    .tabla_v.asistencia-freeze .body-row > .cell:nth-child(-n + 2) {
        position: static;
        left: auto;
        width: auto;
        min-width: 0;
        max-width: none;
        box-shadow: none;
    }
}

.tabla_v-min-content {
    font-size: 13px;
    min-width: max-content;
}

.icon-op-30 {
    opacity: 0.3;
}

.icon-op-80 {
    opacity: 0.8;
}

.cell-bg-retardo {
    background-color: #ffc107;
}

.cell-bg-justificada {
    background-color: #17a2b8;
}

.pct-global {
    font-size: 1.1em;
}

.cell-w-50 {
    width: 50px;
}

.cell-w-100 {
    width: 100px;
}

.cell-w-10p {
    width: 10%;
}

.tabla_v-plain {
    font-size: 13px;
    border: none;
}

.texto-11 {
    font-size: 11px;
}

.filtro-lg {
    font-size: 1.2rem;
}

.alert-sm-text {
    font-size: 0.9em;
}

.btn-h-38 {
    height: 38px;
}

.textarea-h-120 {
    height: 120px;
}

.textarea-h-140 {
    height: 140px;
}

.cell-span-full {
    grid-column: span 5;
    width: 100%;
}

.icon-stat-lg {
    font-size: 3rem;
}

.badge-xs2 {
    font-size: 0.65rem;
    vertical-align: middle;
}

.badge-xxs {
    font-size: 0.6rem;
    vertical-align: middle;
}

.list-item-borrador {
    border-left: 4px solid #ffc107;
}

.img-avatar-120 {
    width: 120px !important;
    margin: auto;
}

.input-w-80 {
    max-width: 80px;
}

.td-truncate-300 {
    max-width: 300px;
}

.mt-8 {
    margin-top: 8px;
}

/* Swatch de tema / fondos admin */
.tema-card {
    border-width: 2px;
}

.tema-swatch {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--tema-swatch, #ccc);
}

.fondo-preview-thumb {
    height: 120px;
    object-fit: cover;
    cursor: pointer;
}

.fondo-card-title {
    font-size: 0.8rem;
}

.fondo-hero-preview {
    background-image: var(--fondo-preview-url);
    background-size: cover;
    background-position: center;
}

.card-adjunto-600 {
    max-width: 600px !important;
    height: 600px;
}

.img-adjunto-600 {
    width: 600px !important;
    height: 600px;
}

.inscripcion-foto {
    float: right;
    margin-top: 10px;
    margin-right: 10px;
    width: 200px;
    height: 150px;
}

.body-bg-cover {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-image: var(--body-bg-image);
}

/* Cards docente — lista materias */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-icon-bg {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 6rem;
    opacity: 0.05;
    color: #000;
    pointer-events: none;
    z-index: 0;
}

/* Catálogos — dash */
.catalog-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.catalog-card .icon-wrapper {
    width: 65px;
    height: 65px;
    transition: transform 0.3s ease;
}

.catalog-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Formato solicitud examen / curso intersemestral */
.formato-solicitud {
    max-width: 920px;
    margin: 0 auto 1.25rem;
    padding: 1.5rem 1.6rem 1.2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.formato-solicitud-titulo {
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 1.4rem;
    font-size: 1.05rem;
}

.formato-solicitud-nombres,
.formato-solicitud-meta,
.formato-solicitud-tels {
    display: grid;
    gap: 0.85rem 1.1rem;
    margin-bottom: 1.15rem;
}

.formato-solicitud-nombres {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.formato-solicitud-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.formato-solicitud-tels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.1rem;
    margin-bottom: 0;
}

.formato-solicitud-linea {
    border: 0;
    border-bottom: 1px solid #222;
    border-radius: 0;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.formato-solicitud-linea:focus {
    box-shadow: none;
    border-bottom-color: var(--color-boton-enfasis, #222);
}

.formato-solicitud-label,
.formato-solicitud-k {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
    color: #444;
}

.formato-solicitud-k {
    margin-top: 0;
    margin-bottom: 0.15rem;
}

.formato-solicitud-v {
    display: block;
    border-bottom: 1px solid #222;
    min-height: 1.7rem;
    padding-top: 0.2rem;
}

.formato-solicitud-tabla {
    border-top: 1px solid #222;
}

.formato-solicitud-thead,
.formato-solicitud-trow {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 0.5rem;
    align-items: end;
}

.formato-solicitud-thead {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.45rem 0.2rem 0.35rem;
    border-bottom: 1px solid #222;
}

.formato-solicitud-trow {
    min-height: 2.15rem;
    padding: 0.25rem 0.2rem 0.15rem;
    border-bottom: 1px solid #222;
}

.formato-solicitud-vacia {
    min-height: 2.35rem;
}

@media (max-width: 768px) {
    .formato-solicitud-nombres,
    .formato-solicitud-meta,
    .formato-solicitud-tels {
        grid-template-columns: 1fr;
    }
}

.tabla-tutorias tr.tutoria-separa > td {
    height: 0.55rem;
    padding: 0;
    background: #d5dee8;
    border-left-color: transparent;
    border-right-color: transparent;
}

.tabla-tutorias.table-hover > tbody > tr.tutoria-separa:hover > td {
    background: #d5dee8;
}

.tabla-tutorias tr.tutoria-corte > td {
    background: #e7f0f8;
    color: #1f2937;
    font-weight: 400;
    font-size: 0.78rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.tabla-tutorias tr.tutoria-corte strong {
    font-weight: 700;
}

.tabla-tutorias.table-hover > tbody > tr.tutoria-corte:hover > td {
    background: #e7f0f8;
}

.tabla-tutorias tr.tutoria-grupo > td {
    background-color: #f4f8fc;
}

.tabla-tutorias.table-hover > tbody > tr.tutoria-grupo:hover > td {
    background-color: #e8f1f8;
}

.tabla-tutorias tr.tutoria-grupo > td:first-child {
    box-shadow: inset 3px 0 0 #5b87b0;
}

.tabla-tutorias tr.tutoria-individual > td:first-child {
    box-shadow: inset 3px 0 0 #b7c0ca;
}

.tabla-tutorias tr.tutoria-actividad > td {
    background-color: #fbf6ee;
}

.tabla-tutorias.table-hover > tbody > tr.tutoria-actividad:hover > td {
    background-color: #f6efe3;
}

.tabla-tutorias tr.tutoria-actividad > td:first-child {
    box-shadow: inset 3px 0 0 #c4a36a;
}

.tutoria-texto {
    white-space: pre-wrap;
    word-break: break-word;
}