
/* ===== THEME ===== */
:root {
    --sb-w: 74px;
    --stroke: rgba(255,255,255,.10);
    --bg-0: #070d18;
    --bg-1: #0b1220;
    --bg-2: #0a0f1a;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --hover-bg: rgba(255,255,255,.06);
    --hover-stroke: rgba(255,255,255,.14);
    --hover-icon: #ffffff;
    --active-bg: rgba(255,255,255,.07);
    --active-stroke: rgba(255,255,255,.16);
    --brand: #0ea5e9;
    --brand-shadow: rgba(14,165,233,.25);
    --top-h: 70px;
}

.theme-light {
    --stroke: rgba(15,23,42,.12);
    --bg-0: #f1f5f9;
    --bg-1: #ffffff;
    --bg-2: #f8fafc;
    --text: #0f172a;
    --muted: #475569;
    --hover-bg: rgba(2,6,23,.04);
    --hover-stroke: rgba(2,6,23,.10);
    --hover-icon: #0f172a;
    --active-bg: rgba(2,6,23,.05);
    --active-stroke: rgba(2,6,23,.12);
    --brand: #2563eb;
    --brand-shadow: rgba(37,99,235,.20);
}

html, body {
    height: 100%;
    margin: 0;
    overscroll-behavior: none !important;
    overscroll-behavior-x: none !important;
    overscroll-behavior-y: none !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html {
    overflow: hidden; /* evita scroll doble del root */
}

body {
    background: var(--bg-0);
    overflow-y: auto !important; /* si tu contenido scrollea en body */
    -webkit-overflow-scrolling: auto !important;
}


/* ===== LAYOUT ===== */
.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar-pos {
    width: var(--sb-w);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
    border-right: 1px solid var(--stroke);
    flex: 0 0 var(--sb-w);
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 15;
}

.brand-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 25px var(--brand-shadow);
}

.side-item {
    height: 62px;
    border-radius: 16px;
    background: transparent;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border: 1px solid transparent;
    position: relative;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

    .side-item i {
        font-size: 1.15rem;
        line-height: 1;
        color: color-mix(in srgb, var(--text) 70%, transparent);
        transition: color .15s ease;
    }

    .side-item span {
        font-size: .68rem;
        color: var(--muted);
        transition: color .15s ease;
    }

    .side-item:hover {
        background: var(--hover-bg);
        border-color: var(--hover-stroke);
        transform: translateY(-1px);
    }

        .side-item:hover i {
            color: var(--hover-icon);
        }

        .side-item:hover span {
            color: color-mix(in srgb, var(--text) 85%, transparent);
        }

.nav-pills .nav-link.active.side-item {
    background: var(--active-bg);
    border-color: var(--active-stroke);
}

    .nav-pills .nav-link.active.side-item i {
        color: var(--hover-icon);
    }

    .nav-pills .nav-link.active.side-item span {
        color: color-mix(in srgb, var(--text) 90%, transparent);
    }

.side-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: .62rem;
    border-radius: 999px;
    padding: .22rem .42rem;
}

.side-sep {
    border: 0;
    height: 1px;
    background: color-mix(in srgb, var(--stroke) 80%, transparent);
    margin: .25rem .6rem;
}

.main-area {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--top-h);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-0));
    border-bottom: 1px solid var(--stroke);
    color: var(--text);
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-title {
    font-size: 1.12rem;
    font-weight: 800;
}

.topbar-sub {
    font-size: .82rem;
    color: var(--muted);
    margin-top: 2px;
}

.topbar-search {
    width: 280px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-1) 70%, transparent);
    color: var(--muted);
}

    .topbar-search .form-control {
        background: transparent;
        border: 0;
        color: var(--text);
        padding: 0;
        box-shadow: none;
    }

.topbar-pill {
    padding: 7px 12px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem;
    background: color-mix(in srgb, var(--bg-1) 70%, transparent);
}

.topbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: color-mix(in srgb, var(--bg-1) 70%, transparent);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-dot {
    position: absolute;
    top: -7px;
    right: -7px;
    border-radius: 999px;
    padding: .25rem .4rem;
    font-size: .65rem;
}

.topbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand) 25%, transparent);
    border: 1px solid var(--stroke);
    font-weight: 900;
}

.content-area {
    flex: 1 1 auto;
    min-height: 0;
    background: radial-gradient(1200px 600px at 40% 20%, color-mix(in srgb, var(--text) 6%, transparent), transparent 60%);
}

/* ===== TABLET OK ===== */
@media (max-width: 991.98px) {
    :root {
        --sb-w: 86px;
        --top-h: 66px;
    }

    .topbar-search {
        width: 220px;
    }

    .topbar-sub {
        display: none;
    }

    .side-item {
        height: 66px;
        border-radius: 18px;
    }
}

/* =========================================================
     MOBILE: HAMBURGER OFFCANVAS (solo móvil)
     - Sidebar se oculta
     - Botón hamburguesa aparece en topbar
     ========================================================= */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 575.98px) {
    .sidebar-pos {
        display: none !important;
    }

    .mobile-menu-btn {
        display: inline-flex;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        border: 1px solid var(--stroke);
        background: color-mix(in srgb, var(--bg-1) 70%, transparent);
        color: var(--text);
        align-items: center;
        justify-content: center;
    }

    .topbar {
        gap: 10px;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .topbar-title {
        font-size: 1rem;
    }

    .topbar-sub {
        display: none;
    }

    .topbar-search {
        width: 160px;
    }

    .topbar-pill {
        display: none;
    }
}

/* Offcanvas theme */
.offcanvas-pos {
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
    color: var(--text);
    border-right: 1px solid var(--stroke);
}

    .offcanvas-pos .offcanvas-header {
        border-bottom: 1px solid var(--stroke);
    }

    /* Ajuste: en offcanvas el menú en columna normal */
    .offcanvas-pos .side-item {
        width: 100%;
        height: 56px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 14px;
    }

        .offcanvas-pos .side-item span {
            font-size: .88rem;
        }

    .offcanvas-pos .side-badge {
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
    }

@media (prefers-reduced-motion: reduce) {
    .side-item {
        transition: none;
    }

        .side-item:hover {
            transform: none;
        }
}



.mobile-menu-btn {
    display: none;
}

.hide-on-mobile {
    display: flex;
}

@media (max-width: 575.98px) {
    .hide-on-mobile {
        display: none !important;
    }
    /* quita buscar en móvil */
    .mobile-menu-btn {
        display: inline-flex;
    }
    /* muestra hamburguesa */
    .sidebar-pos {
        display: none !important;
    }
    /* oculta sidebar lateral en móvil */
}

/* si querés que el offcanvas use tu look */
.offcanvas-pos {
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
    color: var(--text);
    border-right: 1px solid var(--stroke);
}

    .offcanvas-pos .offcanvas-header {
        border-bottom: 1px solid var(--stroke);
    }

    .offcanvas-pos .side-item {
        width: 100%;
        height: 56px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 14px;
    }

        .offcanvas-pos .side-item span {
            font-size: .9rem;
        }

    .offcanvas-pos .side-badge {
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
    }



/* Curvatura estilo Windows 11 (menos ovalada) */
.side-item {
    border-radius: 14px !important;
}

/* Simetría perfecta del hover (mismo padding/alto/anchos) */
.sidebar-pos .nav-item {
    width: 100%;
}

.sidebar-pos .side-item {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px !important;
}

    /* Alineación del icono: mismo “caja” para todos */
    .sidebar-pos .side-item i {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Evita micro-desplazamientos por fuente */
    .sidebar-pos .side-item span {
        line-height: 1.1;
        text-align: center;
    }

/* IMPORTANTE: no tocamos position fixed/sticky para no romper responsive */
/* (Si antes agregaste sidebar fixed y margin-left, BORRALO) */


/* Sidebar fijo (no se mueve con el scroll) */
.sidebar-pos {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1020;
}

/* Compensa el espacio del sidebar en PC/Tablet */
.main-area {
    margin-left: var(--sb-w);
}

/* En móvil NO afecta (porque ocultas .sidebar-pos y usas offcanvas) */
@media (max-width: 575.98px) {
    .main-area {
        margin-left: 0;
    }
}




/* Scrollbar ultra discreto GLOBAL */
* {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: transparent transparent;
}

    /* Chrome/Edge/Safari */
    *::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    *::-webkit-scrollbar-track {
        background: transparent;
    }

    *::-webkit-scrollbar-thumb {
        background: transparent; /* invisible por defecto */
        border-radius: 999px;
    }

    /* Solo aparece un poquito al hover */
    *:hover {
        scrollbar-color: rgba(255,255,255,.14) transparent; /* Firefox */
    }

        *:hover::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,.14);
        }

            *:hover::-webkit-scrollbar-thumb:hover {
                background: rgba(255,255,255,.22);
            }




/* Tablet en vertical: ocultar buscador */
@media (max-width: 991.98px) and (orientation: portrait) {
    .topbar-search {
        display: none !important;
    }
}




/* ===========================
   NOTIFICACIONES (CSS completo)
   =========================== */

/* Quitar flecha del dropdown */
/*.no-caret.dropdown-toggle::after {
    display: none !important;
}*/

/* Dropdown dark */
/*.notif-menu {
    background: var(--bg-1);
    border: 1px solid var(--stroke);
    color: var(--text);
}

    .notif-menu .border-bottom,
    .notif-menu .border-top {
        border-color: var(--stroke) !important;
    }

.notif-clearall {
    color: var(--muted);
}

    .notif-clearall:hover {
        color: var(--text);
    }*/

/* Centrar dropdown en móvil (simétrico) */
/*@media (max-width: 575.98px) {
    .notif-menu-center-mobile {
        left: 5% !important;
        right:5%!important;
        padding-top:5%!important;
        transform: translateX(-74%) !important;
        margin-top: 40px!important;
    }
}*/

/* Lista con scroll */
/*.notif-list {
    max-height: 320px;
    overflow: auto;
}*/

/* Swipe container */
/*.notif-swipe {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid color-mix(in srgb, var(--stroke) 75%, transparent);
}*/

/* Botón borrar detrás */
/*.notif-delete {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 72px;
    border: 0;
    background: rgba(239,68,68,.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}*/

/* Reservar espacio para "hoy/5m/1h" */
/*.notif-item {
    padding-right: 92px !important;*/ /* 72px + margen */
    /*background: transparent;
    user-select: none;
    touch-action: pan-y;
    transition: transform .18s ease, background .15s ease;
}

    .notif-item:hover {
        background: color-mix(in srgb, var(--text) 6%, transparent);
    }*/

/* Icon */
/*.notif-icon {
    width: 36px;
    height: 36px;
    background: rgba(14,165,233,.15);
    flex: 0 0 auto;
}*/




/* Modal dark */
.modal-dark {
    background: var(--bg-1);
    color: var(--text);
    border: 1px solid var(--stroke);
}

    .modal-dark .modal-header,
    .modal-dark .modal-footer {
        background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
        border-color: var(--stroke) !important;
    }

    .modal-dark .modal-body {
        background: var(--bg-1);
    }








/* Header/footer más delgados */
/*.modal-header-slim {
    padding: .55rem .85rem !important;
    border-color: var(--stroke) !important;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
}

.modal-footer-slim {
    padding: .6rem .85rem !important;
    border-color: var(--stroke) !important;
    background: var(--bg-1);
}*/

/* Iconito del título */
/*.modal-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand) 18%, transparent);
    border: 1px solid var(--stroke);
    color: var(--text);
}*/

/* Botones icon (trash / close) */
/*.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: color-mix(in srgb, var(--bg-1) 70%, transparent);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .btn-icon:hover {
        background: color-mix(in srgb, var(--text) 6%, transparent);
    }*/

/* Scroll del modal: usa el mismo look delgado global */
/*.notif-list-modal {
    max-height: calc(100vh - 180px);
    overflow: auto;
}*/

/* Responsive: en móvil más ancho útil */
/*@media (max-width: 575.98px) {
    .modal-dialog {
        margin: .75rem !important;
    }

    .notif-list-modal {
        max-height: calc(100vh - 170px);
    }
}*/



/* SOLO agrega/ajusta estas reglas (y quitá cualquier overflow/height en el UL) */
.sidebar-pos {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sb-w);
    height: 100vh;
    overflow: hidden; /* el scroll será interno */
}

/* espacio scrolleable */
.sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0; /* CLAVE */
    overflow-y: auto; /* VERTICAL */
    overflow-x: hidden;
    padding-right: 6px; /* que el scrollbar no tape hover */
}

/* para que el contenido no quede debajo del sidebar fijo */
.main-area {
    margin-left: var(--sb-w);
}

@media (max-width: 575.98px) {
    .main-area {
        margin-left: 0;
    }
    /* móvil usa offcanvas */
}




select,
.form-select {
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
    direction: ltr;
}













/*PRUEBAS*/
/* ===== PMX Dark v3 (Bootstrap 5.1 friendly) ===== */

/* responsive helper */
.w-md-auto {
    width: 100% !important;
}

@media (min-width:768px) {
    .w-md-auto {
        width: auto !important;
    }
}

/* contenedor */
.pmx-surface {
    background: linear-gradient(180deg,#0f172a 0%, #111827 100%);
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(2,6,23,.45);
}

    /* header */
    .pmx-surface .fw-semibold {
        color: #e2e8f0;
    }

    .pmx-surface .text-muted {
        color: rgba(226,232,240,.70) !important;
    }

/* lista */
.pmx-orders {
    display: grid;
    gap: 10px;
}

/* cards */
.pmx-ordercard {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(2,6,23,.35);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
    backdrop-filter: blur(10px);
}

    .pmx-ordercard:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 46px rgba(2,6,23,.48);
        border-color: rgba(148,163,184,.26);
        background: rgba(255,255,255,.08);
    }

    .pmx-ordercard:active {
        transform: translateY(-1px);
    }

/* avatar */
.pmx-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 950;
    color: #e2e8f0;
    background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(34,197,94,.16));
    border: 1px solid rgba(148,163,184,.20);
    flex: 0 0 auto;
}

/* textos */
.pmx-otitle {
    font-weight: 950;
    color: #f1f5f9;
    line-height: 1.15;
    letter-spacing: -.2px;
}

.pmx-ometa {
    font-size: 12px;
    color: rgba(226,232,240,.70);
    margin-top: 3px;
}

.pmx-oline {
    font-size: 12px;
    color: rgba(226,232,240,.78);
    margin-top: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .pmx-oline .k {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        border-radius: 999px;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(148,163,184,.14);
    }

    .pmx-oline i {
        opacity: .9;
    }

/* lado derecho */
.pmx-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

/* status pill */
.pmx-status {
    font-size: 12px;
    font-weight: 950;
    padding: 7px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
    box-shadow: 0 10px 20px rgba(2,6,23,.28);
    backdrop-filter: blur(10px);
}

    .pmx-status .dot {
        width: 9px;
        height: 9px;
        border-radius: 999px;
        background: #94a3b8;
    }

    /* estados */
    .pmx-status.pendiente {
        background: rgba(245,158,11,.18);
        border-color: rgba(245,158,11,.22);
        color: #fde68a;
    }

        .pmx-status.pendiente .dot {
            background: #f59e0b;
        }

    .pmx-status.preparando {
        background: rgba(59,130,246,.18);
        border-color: rgba(59,130,246,.22);
        color: #bfdbfe;
    }

        .pmx-status.preparando .dot {
            background: #3b82f6;
        }

    .pmx-status.listo {
        background: rgba(34,197,94,.18);
        border-color: rgba(34,197,94,.22);
        color: #bbf7d0;
    }

        .pmx-status.listo .dot {
            background: #22c55e;
        }

/* botones mini (no blancos) */
.pmx-mini {
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    color: #e2e8f0;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
    box-shadow: 0 10px 22px rgba(2,6,23,.30);
    backdrop-filter: blur(8px);
}

    .pmx-mini:hover {
        background: rgba(255,255,255,.10);
        border-color: rgba(148,163,184,.30);
        box-shadow: 0 14px 30px rgba(2,6,23,.40);
        transform: translateY(-1px);
    }

    .pmx-mini:active {
        transform: translateY(0);
    }

/* chips */
.pmx-chip {
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 12px;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
    box-shadow: 0 8px 18px rgba(2,6,23,.22);
    backdrop-filter: blur(8px);
}

    .pmx-chip:hover {
        background: rgba(255,255,255,.10);
        border-color: rgba(99,102,241,.35);
        transform: translateY(-1px);
    }

    .pmx-chip.active {
        background: linear-gradient(135deg,#6366f1,#22c55e);
        border-color: transparent;
        color: #0b1220;
        box-shadow: 0 18px 34px rgba(2,6,23,.45);
    }

/* hint vacío */
#OrdenesEmptyHint {
    border: 1px dashed rgba(148,163,184,.22);
    background: rgba(255,255,255,.05);
    color: rgba(226,232,240,.75);
    border-radius: 14px;
    padding: 10px 12px;
}



/* ===== BOTÓN NUEVA ORDEN (Liquid / Premium) ===== */
.pmx-orderbtn {
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    padding: 10px 14px;
    font-weight: 950;
    background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 18px 44px rgba(2,6,23,.48);
    backdrop-filter: blur(12px) saturate(1.3);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, filter .14s ease;
    white-space: nowrap;
}

    .pmx-orderbtn:hover {
        transform: translateY(-2px);
        border-color: rgba(255,255,255,.30);
        box-shadow: 0 24px 60px rgba(2,6,23,.58);
        filter: brightness(1.06);
    }

    .pmx-orderbtn:active {
        transform: translateY(-1px);
    }

    .pmx-orderbtn .ico {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, rgba(99,102,241,.28), rgba(34,197,94,.18));
        border: 1px solid rgba(255,255,255,.18);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
    }

    .pmx-orderbtn .pill {
        font-size: 12px;
        font-weight: 950;
        padding: 3px 10px;
        border-radius: 999px;
        background: rgba(255,255,255,.10);
        border: 1px solid rgba(255,255,255,.16);
        color: rgba(226,232,240,.92);
    }

/* ===== MODAL LIQUID GLASS (ModalMesaAcciones) ===== */
/* ===== MODAL Mesa Acciones (Liquid Glass PRO, diferente) ===== */
#ModalMesaAcciones .modal-dialog {
    max-width: 980px;
}

/* backdrop (oscuro + blur) */
#ModalMesaAcciones.modal.show {
    background: rgba(2,6,23,.55);
    backdrop-filter: blur(14px) saturate(1.2);
}

/* marco exterior con “halo” */
#ModalMesaAcciones .modal-content {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(180deg, rgba(17,24,39,.92), rgba(2,6,23,.86));
    box-shadow: 0 38px 110px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08);
    overflow: hidden;
}

    /* halo superior y borde de luz (se siente “glass” sin verse raro) */
    #ModalMesaAcciones .modal-content::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 420px at 18% 10%, rgba(99,102,241,.22), transparent 60%), radial-gradient(700px 380px at 85% 0%, rgba(34,197,94,.16), transparent 55%), radial-gradient(700px 520px at 50% 115%, rgba(245,158,11,.10), transparent 60%);
        pointer-events: none;
        opacity: .95;
    }

    #ModalMesaAcciones .modal-content::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 22px;
        border: 1px solid rgba(255,255,255,.08);
        pointer-events: none;
    }

/* header (limpio, sin franjas feas) */
#ModalMesaAcciones .modal-header {
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    padding: 14px 16px;
}

#ModalMesaAcciones .modal-title {
    color: #f8fafc;
    font-weight: 950;
    letter-spacing: -.2px;
}

#ModalMesaAcciones .btn-close {
    filter: invert(1);
    opacity: .70;
}

    #ModalMesaAcciones .btn-close:hover {
        opacity: 1;
    }

/* body */
#ModalMesaAcciones .modal-body {
    position: relative;
    background: transparent;
    color: rgba(226,232,240,.92);
}

/* footer */
#ModalMesaAcciones .modal-footer {
    position: relative;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
}

/* Cards internas (si usas .pmx-surface dentro del modal) */
#ModalMesaAcciones .pmx-surface {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

/* botones dentro del modal */
#ModalMesaAcciones .btn,
#ModalMesaAcciones button {
    border-radius: 14px;
}

#ModalMesaAcciones .btn-primary {
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(135deg,#6366f1,#22c55e);
    color: #0b1220;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(0,0,0,.35);
}

    #ModalMesaAcciones .btn-primary:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

#ModalMesaAcciones .btn-outline-secondary {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.05);
    color: #e2e8f0;
}

    #ModalMesaAcciones .btn-outline-secondary:hover {
        background: rgba(255,255,255,.08);
    }

/* inputs */
#ModalMesaAcciones .form-control,
#ModalMesaAcciones .form-select {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: #e2e8f0;
}

    #ModalMesaAcciones .form-control::placeholder {
        color: rgba(226,232,240,.55);
    }

    #ModalMesaAcciones .form-control:focus,
    #ModalMesaAcciones .form-select:focus {
        border-color: rgba(99,102,241,.45);
        box-shadow: 0 0 0 .25rem rgba(99,102,241,.18);
        background: rgba(255,255,255,.07);
    }