/* ==========================================================================
   DataRetail Design System - Master Palette (Light & Dark Mode)
   100% Responsive - Cero textos grises - Badges nítidos y vibrantes
   ========================================================================== */

:root {
    /* Modo Claro (Default) */
    --retail-bg: #f8fafc;
    --retail-surface: #ffffff;
    --retail-surface-muted: #f1f5f9;
    --retail-border: #e2e8f0;
    --retail-border-focus: #3b82f6;

    /* Textos (Alto Contraste) */
    --retail-text-primary: #0f172a;
    --retail-text-secondary: #334155;
    --retail-text-muted: #64748b;

    /* Primario (Azul Real) */
    --retail-primary: #2563eb;
    --retail-primary-hover: #1d4ed8;
    --retail-primary-subtle: #eff6ff;
    --retail-primary-border: #bfdbfe;
    --retail-primary-text: #1d4ed8;

    /* Éxito (Esmeralda) */
    --retail-success: #059669;
    --retail-success-hover: #047857;
    --retail-success-subtle: #ecfdf5;
    --retail-success-border: #a7f3d0;
    --retail-success-text: #065f46;

    /* Advertencia / Pendiente (Ámbar) */
    --retail-warning: #d97706;
    --retail-warning-hover: #b45309;
    --retail-warning-subtle: #fef3c7;
    --retail-warning-border: #fde68a;
    --retail-warning-text: #92400e;

    /* Peligro / Cancelado (Rubí / Rojo) */
    --retail-danger: #dc2626;
    --retail-danger-hover: #b91c1c;
    --retail-danger-subtle: #fef2f2;
    --retail-danger-border: #fecdd3;
    --retail-danger-text: #991b1b;

    /* Información (Cian) */
    --retail-info: #0284c7;
    --retail-info-hover: #0369a1;
    --retail-info-subtle: #f0f9ff;
    --retail-info-border: #bae6fd;
    --retail-info-text: #075985;

    /* Púrpura (Operaciones / Especial) */
    --retail-purple: #7c3aed;
    --retail-purple-hover: #6d28d9;
    --retail-purple-subtle: #f5f3ff;
    --retail-purple-border: #ddd6fe;
    --retail-purple-text: #5b21b6;
}

/* Modo Oscuro (Tokens de contraste garantizados) */
[data-theme="dark"], body.dark-mode {
    --retail-bg: #0f172a;
    --retail-surface: #1e293b;
    --retail-surface-muted: #334155;
    --retail-border: #334155;
    --retail-border-focus: #60a5fa;

    /* Textos nítidos sobre fondo oscuro */
    --retail-text-primary: #f8fafc;
    --retail-text-secondary: #cbd5e1;
    --retail-text-muted: #94a3b8;

    /* Primario en Dark Mode */
    --retail-primary: #3b82f6;
    --retail-primary-hover: #60a5fa;
    --retail-primary-subtle: rgba(59, 130, 246, 0.15);
    --retail-primary-border: rgba(59, 130, 246, 0.35);
    --retail-primary-text: #93c5fd;

    /* Éxito en Dark Mode */
    --retail-success: #10b981;
    --retail-success-hover: #34d399;
    --retail-success-subtle: rgba(16, 185, 129, 0.15);
    --retail-success-border: rgba(16, 185, 129, 0.35);
    --retail-success-text: #6ee7b7;

    /* Advertencia en Dark Mode */
    --retail-warning: #f59e0b;
    --retail-warning-hover: #fbbf24;
    --retail-warning-subtle: rgba(245, 158, 11, 0.15);
    --retail-warning-border: rgba(245, 158, 11, 0.35);
    --retail-warning-text: #fcd34d;

    /* Peligro en Dark Mode */
    --retail-danger: #ef4444;
    --retail-danger-hover: #f87171;
    --retail-danger-subtle: rgba(239, 68, 68, 0.15);
    --retail-danger-border: rgba(239, 68, 68, 0.35);
    --retail-danger-text: #fca5a5;

    /* Info en Dark Mode */
    --retail-info: #38bdf8;
    --retail-info-hover: #7dd3fc;
    --retail-info-subtle: rgba(56, 189, 248, 0.15);
    --retail-info-border: rgba(56, 189, 248, 0.35);
    --retail-info-text: #7dd3fc;

    /* Púrpura en Dark Mode */
    --retail-purple: #a855f7;
    --retail-purple-hover: #c084fc;
    --retail-purple-subtle: rgba(168, 85, 247, 0.15);
    --retail-purple-border: rgba(168, 85, 247, 0.35);
    --retail-purple-text: #d8b4fe;
}

/* ==========================================================================
   DataRetail Elevated Buttons (Estilo SaaS Moderno y Ejecutivo)
   ========================================================================== */
.btn-dr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    border-radius: 50rem !important;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-dr:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-dr:active {
    transform: translateY(0);
}

.btn-dr:disabled,
.btn-dr.disabled,
.btn-dr.is-submitting {
    opacity: 0.85;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
}

.btn-dr.d-none,
.btn-dr[hidden] {
    display: none !important;
}

.btn-dr-md {
    padding: 0.58rem 1.35rem;
    font-size: 0.88rem;
}

.btn-dr-sm {
    padding: 0.4rem 0.95rem;
    font-size: 0.8rem;
    gap: 0.35rem;
}

.btn-dr-lg {
    padding: 0.72rem 1.65rem;
    font-size: 0.95rem;
}

.btn-dr-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-dr-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    color: #ffffff !important;
}

.btn-dr-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.32);
}

.btn-dr-success:hover {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%) !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45) !important;
    color: #ffffff !important;
}

.btn-dr-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.32);
}

.btn-dr-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45) !important;
    color: #ffffff !important;
}

.btn-dr-outline {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1.5px solid #bfdbfe !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.btn-dr-outline:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
}

.btn-dr-cancel {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1.5px solid #cbd5e1 !important;
}

.btn-dr-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.btn-dr .btn-icon-capsule {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease;
}

.btn-dr:hover .btn-icon-capsule {
    transform: scale(1.1);
}

.btn-dr-outline .btn-icon-capsule {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.btn-dr-outline:hover .btn-icon-capsule {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-dr-cancel .btn-icon-capsule {
    background: rgba(71, 85, 105, 0.1);
    color: #475569;
}

/* Botón PWA en Navbar (Ejecutivo, sutil y elegante) */
.btn-header-pwa {
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1) !important;
}

.btn-header-pwa:hover {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
}

/* ==========================================================================
   Badges Estandarizados (Sin gris sucio, legibles y pastillas modernas)
   ========================================================================== */
.badge-pill-dr {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-width: 1px;
    border-style: solid;
}

.badge-pill-dr.badge-primary {
    background-color: var(--retail-primary-subtle) !important;
    color: var(--retail-primary-text) !important;
    border-color: var(--retail-primary-border) !important;
}

.badge-pill-dr.badge-success {
    background-color: var(--retail-success-subtle) !important;
    color: var(--retail-success-text) !important;
    border-color: var(--retail-success-border) !important;
}

.badge-pill-dr.badge-warning {
    background-color: var(--retail-warning-subtle) !important;
    color: var(--retail-warning-text) !important;
    border-color: var(--retail-warning-border) !important;
}

.badge-pill-dr.badge-danger {
    background-color: var(--retail-danger-subtle) !important;
    color: var(--retail-danger-text) !important;
    border-color: var(--retail-danger-border) !important;
}

.badge-pill-dr.badge-info {
    background-color: var(--retail-info-subtle) !important;
    color: var(--retail-info-text) !important;
    border-color: var(--retail-info-border) !important;
}

.badge-pill-dr.badge-purple {
    background-color: var(--retail-purple-subtle) !important;
    color: var(--retail-purple-text) !important;
    border-color: var(--retail-purple-border) !important;
}

/* ==========================================================================
   Bordes Redondeados Obligatorios (Cero Elementos Cuadrados)
   ========================================================================== */
.card,
.dash-sa-card {
    border-radius: 20px !important;
}

.form-control,
.form-select {
    border-radius: 50rem !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

textarea.form-control {
    border-radius: 16px !important;
}

.form-control.pill,
.form-select.pill,
.form-control-pill {
    border-radius: 50rem !important;
}

.btn:not(.btn-square) {
    border-radius: 50rem !important;
}

.modal-content {
    border-radius: 20px !important;
    overflow: hidden !important;
}

.dropdown-menu {
    border-radius: 16px !important;
}

.table-rounded thead th:first-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

.table-rounded thead th:last-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* ==========================================================================
   Botones de Acción Estandarizados (Estilo Ejecutivo, Cero Grises)
   ========================================================================== */
.btn-action-dr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.42rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50rem !important;
    text-decoration: none;
    border-width: 1.5px !important;
    border-style: solid !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-action-dr:hover {
    transform: translateY(-1.5px);
}

.btn-action-primary {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

.btn-action-primary:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
}

.btn-action-danger {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fecdd3 !important;
}

.btn-action-danger:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28) !important;
}

.btn-action-success {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

.btn-action-success:hover {
    background-color: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28) !important;
}

.btn-action-icon {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}

/* ==========================================================================
   Botones de Acción en Tablas (Iconos Exclusivos, Cero Letras)
   ========================================================================== */
.btn-action-icon {
    width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 0.88rem !important;
    border-width: 1.5px !important;
    border-style: solid !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-action-icon:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   Estandarización de Botones en Modales y SweetAlert2 (Uniformes)
   ========================================================================== */
.btn-modal-cancel,
.swal2-cancel-dr {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 50rem !important;
    padding: 0.45rem 1.35rem !important;
    font-weight: 600 !important;
    font-size: 0.86rem !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.btn-modal-cancel:hover,
.swal2-cancel-dr:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.btn-modal-save,
.swal2-confirm-dr {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: 1.5px solid #2563eb !important;
    border-radius: 50rem !important;
    padding: 0.45rem 1.45rem !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-modal-save:hover,
.swal2-confirm-dr:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px);
}

.btn-modal-danger,
.swal2-danger-dr {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border: 1.5px solid #dc2626 !important;
    border-radius: 50rem !important;
    padding: 0.45rem 1.45rem !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-modal-danger:hover,
.swal2-danger-dr:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   KPI Cards Compactos y Ejecutivos (Sin gigantismo)
   ========================================================================== */
.card-kpi-compact {
    background-color: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-kpi-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

.card-kpi-compact .kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-kpi-compact .kpi-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 2px;
}

.card-kpi-compact .kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0;
}

/* ==========================================================================
   Modal por Fases (Stepper / Wizard) & Selector de Roles y Permisos
   ========================================================================== */
.stepper-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f7ff;
    border: 1.5px solid #dbeafe;
    border-radius: 50rem;
    padding: 0.35rem 0.5rem;
}

.step-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 1.15rem;
    border-radius: 50rem;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.step-item:hover {
    color: #1d4ed8;
}

.step-item.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.step-item.completed {
    background: #dbeafe;
    color: #1e40af;
}

.step-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.08);
}

.step-item.active .step-circle {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .stepper-nav {
        display: flex;
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
        gap: 0.25rem;
        padding: 0.25rem;
        overflow: hidden;
    }

    .step-item {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding: 0.4rem 0.55rem;
        font-size: 0.74rem;
        gap: 0.35rem;
    }

    .step-item > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .step-circle {
        width: 20px;
        height: 20px;
        font-size: 0.68rem;
        flex-shrink: 0;
    }

    .modal-footer .btn-modal-cancel,
    .modal-footer .btn-modal-save {
        padding: 0.52rem 0.85rem;
        font-size: 0.8rem;
    }
}

.card-role-option {
    border-radius: 18px !important;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    padding: 1rem 1.15rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.card-role-option:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.card-role-option.is-selected {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.16);
}

.card-tipo-item {
    border-radius: 20px !important;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.card-tipo-item:hover {
    border-color: #3b82f6 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
}

.card-tipo-item.is-selected {
    border-color: #2563eb !important;
    background: #f8fafc !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.16);
}

.modulo-permiso-card {
    border-radius: 18px !important;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.modulo-permiso-card:hover {
    border-color: #93c5fd;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.modulo-permiso-card.is-active {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   Tablas Ejecutivas de Alto Contraste (Cero Filas Grises Sucias / Cero Rayas)
   ========================================================================== */
.table {
    --bs-table-bg: #ffffff !important;
    --bs-table-striped-bg: #ffffff !important;
    --bs-table-accent-bg: #ffffff !important;
    border-color: #e2e8f0 !important;
}

.table tbody tr,
.table tbody tr td,
.table-hover tbody tr,
.table-hover tbody tr td {
    background-color: #ffffff !important;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9 !important;
}

.table tbody tr.odd,
.table tbody tr.odd td,
.table tbody tr.even,
.table tbody tr.even td {
    background-color: #ffffff !important;
}

.table-hover tbody tr:hover,
.table-hover tbody tr:hover td,
.table-hover tbody tr:hover > * {
    background-color: #f0f7ff !important;
}

/* ==========================================================================
   Badges Estandarizados de Identificación Fiscal / Cédula (DataRetail Standard)
   ========================================================================== */
.badge-identificacion {
    display: inline-flex;
    align-items: center;
    border-radius: 50rem !important;
    padding: 0.24rem 0.72rem;
    font-family: var(--bs-font-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace) !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.35px;
    border-width: 1.2px !important;
    border-style: solid !important;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.badge-identificacion:hover {
    transform: translateY(-1px);
}

.badge-identificacion.badge-ident-rif {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}

.badge-identificacion.badge-ident-cedula {
    background-color: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0369a1 !important;
}

.badge-identificacion.badge-ident-vacio {
    background-color: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

/* ==========================================================================
   Header User Dropdown Menu - DataRetail Executive Design System
   Estándares: Cero fondos grises, bordes redondeados (16-18px), alto contraste
   y micro-interacciones suaves tipo SaaS moderno.
   ========================================================================== */

/* Anulación global de fondos grises en cualquier dropdown del sistema */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
}

.dr-user-trigger {
    border-radius: 50rem !important;
    padding: 6px 14px 6px 8px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1.5px solid transparent !important;
    height: 48px !important;
}

.dr-user-trigger:hover,
.dr-user-trigger[aria-expanded="true"] {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.dr-user-trigger[aria-expanded="true"] .dr-chevron-icon {
    transform: rotate(180deg);
}

.dr-user-dropdown-menu {
    border-radius: 18px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 8px !important;
    min-width: 250px !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
    margin-top: 8px !important;
    animation: drDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transform-origin: top right;
}

@keyframes drDropdownFade {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dr-user-dropdown-header {
    padding: 10px 12px 10px 12px;
    border-bottom: 1.5px solid #f1f5f9;
    margin-bottom: 6px;
}

.dr-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1.5px solid transparent !important;
    cursor: pointer !important;
    background: transparent !important;
}

.dr-dropdown-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-size: 0.88rem;
}

/* Item: Mi Perfil */
.dr-dropdown-item-profile {
    color: #0f172a !important;
}

.dr-dropdown-item-profile .dr-dropdown-item-icon {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1.5px solid #bfdbfe;
}

.dr-dropdown-item-profile:hover,
.dr-dropdown-item-profile:focus {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
    transform: translateX(4px);
}

.dr-dropdown-item-profile:hover .dr-dropdown-item-icon,
.dr-dropdown-item-profile:focus .dr-dropdown-item-icon {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

/* Item: Cerrar Sesión */
.dr-dropdown-item-logout {
    color: #0f172a !important;
}

.dr-dropdown-item-logout .dr-dropdown-item-icon {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fecaca;
}

.dr-dropdown-item-logout:hover,
.dr-dropdown-item-logout:focus {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
    transform: translateX(4px);
}

.dr-dropdown-item-logout:hover .dr-dropdown-item-icon,
.dr-dropdown-item-logout:focus .dr-dropdown-item-icon {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.28);
}

.dr-dropdown-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 4px 0;
    border: 0;
}

/* ==========================================================================
   Sidebar Retráctil Inteligente con Hover Expand & Persistencia de Estado
   Estándares: Cero fondos grises, bordes curvados, sin parpadeos entre módulos.
   ========================================================================== */

#btnToggleSidebar:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
}

@keyframes drSidebarFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-6px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Modales & Backdrops - Garantía de Z-Index Superior a Cualquier Barra
   ========================================================================== */
.modal-backdrop {
    z-index: 1080 !important;
}

.modal {
    z-index: 1085 !important;
}

.swal2-container {
    z-index: 1100 !important;
}

body.modal-open #main-wrapper .topbar,
body.modal-open .topbar {
    z-index: 1005 !important;
}

body.modal-open #main-wrapper .topbar .top-navbar .navbar-header,
body.modal-open .topbar .top-navbar .navbar-header {
    z-index: 1006 !important;
}

body.modal-open #main-wrapper .left-sidebar,
body.modal-open #main-wrapper.dr-sidebar-collapsed .left-sidebar,
body.modal-open html.dr-sidebar-collapsed #main-wrapper .left-sidebar,
body.modal-open .left-sidebar {
    z-index: 990 !important;
    pointer-events: none !important;
}

@media (min-width: 992px) {
    /* 1. Transiciones base fluidas y prioridad de apilamiento Z-Index */
    .topbar {
        z-index: 1025 !important;
    }

    .topbar .top-navbar .navbar-header {
        z-index: 1026 !important;
        background-color: #ffffff !important;
        transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
    }

    .topbar .top-navbar .navbar-collapse {
        transition: margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .left-sidebar {
        z-index: 1010 !important;
        transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
    }

    .page-wrapper {
        transition: margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* 2. Estado Retraído / Colapsado (Modo Mini-Sidebar) */
    html.dr-sidebar-collapsed #main-wrapper .topbar .top-navbar .navbar-header,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header {
        width: 72px !important;
        background-color: #ffffff !important;
        border-right: 1.5px solid #e2e8f0 !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .topbar .top-navbar .navbar-header .navbar-brand,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header .navbar-brand {
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .topbar .top-navbar .navbar-header .navbar-brand a,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header .navbar-brand a {
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .topbar .top-navbar .navbar-header .navbar-brand img,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header .navbar-brand img {
        height: 38px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .topbar .top-navbar .navbar-header .navbar-brand .logo-brand-text,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header .navbar-brand .logo-brand-text,
    html.dr-sidebar-collapsed #main-wrapper .topbar .top-navbar .navbar-header .navbar-brand span,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header .navbar-brand span {
        display: none !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .topbar .top-navbar .navbar-collapse,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-collapse,
    html.dr-sidebar-collapsed #main-wrapper .page-wrapper,
    #main-wrapper.dr-sidebar-collapsed .page-wrapper {
        margin-left: 72px !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .left-sidebar,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar {
        width: 72px !important;
        overflow: visible !important;
        background-color: #ffffff !important;
        border-right: 1.5px solid #e2e8f0 !important;
        z-index: 1010 !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .left-sidebar .scroll-sidebar,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar .scroll-sidebar {
        overflow: visible !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .left-sidebar .nav-small-cap,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar .nav-small-cap {
        display: none !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .left-sidebar .list-divider,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar .list-divider {
        margin: 6px 14px !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .left-sidebar .sidebar-nav ul#sidebarnav,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar .sidebar-nav ul#sidebarnav {
        padding: 12px 8px !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .left-sidebar .sidebar-item,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar .sidebar-item {
        margin-bottom: 6px !important;
        width: 100% !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .left-sidebar .sidebar-link,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar .sidebar-link {
        padding: 11px 0 !important;
        justify-content: center !important;
        border-radius: 14px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .left-sidebar .sidebar-link i,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar .sidebar-link i {
        font-size: 1.22rem !important;
        margin: 0 !important;
        width: auto !important;
        display: inline-block !important;
    }

    html.dr-sidebar-collapsed #main-wrapper .left-sidebar .sidebar-link .hide-menu,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar .sidebar-link .hide-menu {
        display: none !important;
    }

    /* 3. Hover Expand Sincronizado (Header Logo + Sidebar se expanden juntos) */
    html.dr-sidebar-collapsed #main-wrapper:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header,
    html.dr-sidebar-collapsed #main-wrapper:has(.navbar-header:hover) .topbar .top-navbar .navbar-header,
    #main-wrapper.dr-sidebar-collapsed:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header,
    #main-wrapper.dr-sidebar-collapsed:has(.navbar-header:hover) .topbar .top-navbar .navbar-header,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .topbar .top-navbar .navbar-header,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header:hover {
        width: 260px !important;
        box-shadow: 6px 0 20px -4px rgba(15, 23, 42, 0.12) !important;
        background-color: #ffffff !important;
        z-index: 1026 !important;
    }

    html.dr-sidebar-collapsed #main-wrapper:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header .navbar-brand,
    html.dr-sidebar-collapsed #main-wrapper:has(.navbar-header:hover) .topbar .top-navbar .navbar-header .navbar-brand,
    #main-wrapper.dr-sidebar-collapsed:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header .navbar-brand,
    #main-wrapper.dr-sidebar-collapsed:has(.navbar-header:hover) .topbar .top-navbar .navbar-header .navbar-brand,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .topbar .top-navbar .navbar-header .navbar-brand,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header:hover .navbar-brand {
        justify-content: flex-start !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
    }

    html.dr-sidebar-collapsed #main-wrapper:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header .navbar-brand a,
    html.dr-sidebar-collapsed #main-wrapper:has(.navbar-header:hover) .topbar .top-navbar .navbar-header .navbar-brand a,
    #main-wrapper.dr-sidebar-collapsed:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header .navbar-brand a,
    #main-wrapper.dr-sidebar-collapsed:has(.navbar-header:hover) .topbar .top-navbar .navbar-header .navbar-brand a,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .topbar .top-navbar .navbar-header .navbar-brand a,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header:hover .navbar-brand a {
        justify-content: flex-start !important;
        width: auto !important;
        gap: 0.65rem !important;
        padding: 0 !important;
    }

    html.dr-sidebar-collapsed #main-wrapper:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header .navbar-brand img,
    html.dr-sidebar-collapsed #main-wrapper:has(.navbar-header:hover) .topbar .top-navbar .navbar-header .navbar-brand img,
    #main-wrapper.dr-sidebar-collapsed:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header .navbar-brand img,
    #main-wrapper.dr-sidebar-collapsed:has(.navbar-header:hover) .topbar .top-navbar .navbar-header .navbar-brand img,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .topbar .top-navbar .navbar-header .navbar-brand img,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header:hover .navbar-brand img {
        margin: 0 !important;
        height: 38px !important;
        width: auto !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
    }

    html.dr-sidebar-collapsed #main-wrapper:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header .navbar-brand .logo-brand-text,
    html.dr-sidebar-collapsed #main-wrapper:has(.navbar-header:hover) .topbar .top-navbar .navbar-header .navbar-brand .logo-brand-text,
    #main-wrapper.dr-sidebar-collapsed:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header .navbar-brand .logo-brand-text,
    #main-wrapper.dr-sidebar-collapsed:has(.navbar-header:hover) .topbar .top-navbar .navbar-header .navbar-brand .logo-brand-text,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .topbar .top-navbar .navbar-header .navbar-brand .logo-brand-text,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header:hover .navbar-brand .logo-brand-text,
    html.dr-sidebar-collapsed #main-wrapper:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header .navbar-brand span,
    html.dr-sidebar-collapsed #main-wrapper:has(.navbar-header:hover) .topbar .top-navbar .navbar-header .navbar-brand span,
    #main-wrapper.dr-sidebar-collapsed:has(.left-sidebar:hover) .topbar .top-navbar .navbar-header .navbar-brand span,
    #main-wrapper.dr-sidebar-collapsed:has(.navbar-header:hover) .topbar .top-navbar .navbar-header .navbar-brand span,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .topbar .top-navbar .navbar-header .navbar-brand span,
    #main-wrapper.dr-sidebar-collapsed .topbar .top-navbar .navbar-header:hover .navbar-brand span {
        display: inline !important;
        animation: drSidebarFadeIn 0.22s ease forwards !important;
        font-size: 1.35rem !important;
        white-space: nowrap !important;
        margin-left: 0 !important;
    }

    html.dr-sidebar-collapsed #main-wrapper:has(.topbar .navbar-header:hover) .left-sidebar,
    html.dr-sidebar-collapsed #main-wrapper .left-sidebar:hover,
    #main-wrapper.dr-sidebar-collapsed:has(.topbar .navbar-header:hover) .left-sidebar,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar:hover,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .left-sidebar {
        width: 260px !important;
        box-shadow: 10px 0 32px -4px rgba(15, 23, 42, 0.16) !important;
        z-index: 1024 !important;
        background-color: #ffffff !important;
    }

    html.dr-sidebar-collapsed #main-wrapper:has(.topbar .navbar-header:hover) .left-sidebar .nav-small-cap,
    html.dr-sidebar-collapsed #main-wrapper .left-sidebar:hover .nav-small-cap,
    #main-wrapper.dr-sidebar-collapsed:has(.topbar .navbar-header:hover) .left-sidebar .nav-small-cap,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar:hover .nav-small-cap,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .left-sidebar .nav-small-cap {
        display: block !important;
        padding: 12px 16px 4px 16px !important;
        animation: drSidebarFadeIn 0.22s ease forwards !important;
    }

    html.dr-sidebar-collapsed #main-wrapper:has(.topbar .navbar-header:hover) .left-sidebar .sidebar-link,
    html.dr-sidebar-collapsed #main-wrapper .left-sidebar:hover .sidebar-link,
    #main-wrapper.dr-sidebar-collapsed:has(.topbar .navbar-header:hover) .left-sidebar .sidebar-link,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar:hover .sidebar-link,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .left-sidebar .sidebar-link {
        padding: 10px 16px !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    html.dr-sidebar-collapsed #main-wrapper:has(.topbar .navbar-header:hover) .left-sidebar .sidebar-link i,
    html.dr-sidebar-collapsed #main-wrapper .left-sidebar:hover .sidebar-link i,
    #main-wrapper.dr-sidebar-collapsed:has(.topbar .navbar-header:hover) .left-sidebar .sidebar-link i,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar:hover .sidebar-link i,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .left-sidebar .sidebar-link i {
        margin-right: 12px !important;
        font-size: 1.08rem !important;
    }

    html.dr-sidebar-collapsed #main-wrapper:has(.topbar .navbar-header:hover) .left-sidebar .sidebar-link .hide-menu,
    html.dr-sidebar-collapsed #main-wrapper .left-sidebar:hover .sidebar-link .hide-menu,
    #main-wrapper.dr-sidebar-collapsed:has(.topbar .navbar-header:hover) .left-sidebar .sidebar-link .hide-menu,
    #main-wrapper.dr-sidebar-collapsed .left-sidebar:hover .sidebar-link .hide-menu,
    #main-wrapper.dr-sidebar-collapsed.dr-sidebar-hover-active .left-sidebar .sidebar-link .hide-menu {
        display: inline-block !important;
        animation: drSidebarFadeIn 0.22s ease forwards !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   TARJETA DE FILTROS EJECUTIVA (DataRetail Standards)
   ========================================================================== */
.card-filtros-dr {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-filtros-dr:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
}

/* Acento decorativo sutil superior */
.card-filtros-dr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    opacity: 0.95;
}

/* Cabecera de la tarjeta con separación amplia */
.card-filtros-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-bottom: 1.15rem;
    margin-bottom: 0.5rem;
    border-bottom: 1.5px dashed #e2e8f0;
}

.card-filtros-brand {
    display: flex;
    align-items: center;
    gap: 1rem !important;
}

.card-filtros-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
    margin-right: 0.85rem !important;
}

.card-filtros-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.card-filtros-subtitle {
    font-size: 0.79rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.4;
}

/* Badge de filtros activos con punto pulsante */
.badge-filtros-activos {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: 50rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.7rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
    animation: fadeInFiltrosBadge 0.2s ease-in-out;
}

.filtros-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #2563eb;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: pulseDotFiltro 1.8s infinite;
}

@keyframes pulseDotFiltro {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes fadeInFiltrosBadge {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botón Rojo Ejecutivo para Limpiar Filtros (Estándar DataRetail) */
.btn-filtro-limpiar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.42rem 1.05rem;
    border-radius: 50rem !important;
    border: 1.5px solid #fecaca !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.08);
}

.btn-filtro-limpiar .btn-icon-capsule {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn-filtro-limpiar:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
}

.btn-filtro-limpiar:hover .btn-icon-capsule {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: rotate(-180deg);
}

.btn-filtro-limpiar:active {
    transform: translateY(0);
}

/* Control Select Estandarizado de Filtros */
.filtro-control-wrapper {
    position: relative;
}

.filtro-control-label {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.filtro-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.7rem;
    margin-right: 0.45rem;
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.form-select-dr-filtro {
    height: 42px !important;
    border-radius: 50rem !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding-left: 1rem !important;
    padding-right: 2.25rem !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    cursor: pointer;
}

.form-select-dr-filtro:hover {
    border-color: #94a3b8 !important;
}

.form-select-dr-filtro:focus {
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.16) !important;
    outline: none !important;
}

/* ==========================================================================
   Cápsula de Selector de Prefijo (RIF, Cédula, Teléfono) DataRetail
   ========================================================================== */
.select-prefix-dr {
    height: 42px !important;
    border-radius: 50rem !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    padding-left: 0.85rem !important;
    padding-right: 1.75rem !important;
    background-position: right 0.65rem center !important;
    background-size: 12px 10px !important;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.select-prefix-dr:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.select-prefix-cedula {
    width: 74px !important;
    flex-shrink: 0 !important;
}

.select-prefix-rif {
    width: 86px !important;
    flex-shrink: 0 !important;
}

.select-prefix-phone {
    width: 98px !important;
    flex-shrink: 0 !important;
}

.dr-prefix-pill {
    position: relative;
    width: 64px;
    height: 42px;
    border-radius: 50rem !important;
    border: 1.5px solid #cbd5e1;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dr-prefix-pill:focus-within {
    border-color: #2563eb !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

.dr-prefix-select {
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none !important;
    background: transparent !important;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    text-align-last: center;
    padding: 0 16px 0 0 !important;
    outline: none !important;
    z-index: 2;
}

.dr-prefix-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: #2563eb;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   Transición Fluida de Fases en Modales (Animación de Abajo hacia Arriba)
   ========================================================================== */
@keyframes modalFaseEntrada {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-fase-animada {
    animation: modalFaseEntrada 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

/* Tarjetas Selectoras de Tipo (Fase 0) */
.card-tipo-item {
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.card-tipo-item:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   Select2 Estandarizado DataRetail (Single Pastilla + Multiple + Responsive)
   ========================================================================== */
.dr-select2-wrapper .select2-container,
.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Modo Single: Pastilla ejecutiva alineada a .form-select-dr-filtro */
.select2-container--default .select2-selection--single {
    min-height: 44px !important;
    height: 44px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 50rem !important;
    background-color: #ffffff !important;
    padding: 0 2.5rem 0 1rem !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #94a3b8 !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #64748b !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #dc2626 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    height: 22px !important;
    width: 22px !important;
    line-height: 20px !important;
    text-align: center !important;
    border-radius: 50rem !important;
    margin-right: 0.35rem !important;
    padding: 0 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 12px !important;
    width: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #475569 transparent transparent transparent !important;
    border-width: 5px 4.5px 0 4.5px !important;
    margin-left: -4px !important;
    margin-top: -2px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #2563eb transparent !important;
    border-width: 0 4.5px 5px 4.5px !important;
}

/* Modo Multiple: Contenedor curvado con cápsulas temáticas */
.select2-container .select2-selection--multiple {
    min-height: 44px;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 4px 10px !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease-in-out;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #eff6ff !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: 50rem !important;
    color: #1d4ed8 !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    padding: 3px 10px 3px 8px !important;
    margin: 3px 4px 3px 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #dc2626 !important;
    border: none !important;
    font-size: 0.9rem !important;
    margin-right: 5px !important;
    font-weight: bold !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #991b1b !important;
    background: transparent !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    color: #0f172a !important;
    font-size: 0.86rem !important;
    margin-top: 5px !important;
}

/* Dropdown y Buscador Interno DataRetail */
.select2-dropdown {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.14) !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    padding: 6px !important;
    z-index: 1065 !important;
}

.select2-search--dropdown {
    padding: 4px 4px 8px 4px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 50rem !important;
    padding: 7px 14px !important;
    font-size: 0.85rem !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}

.select2-results__options {
    max-height: 240px !important;
    padding-right: 2px !important;
}

.select2-container--default .select2-results__option {
    border-radius: 10px !important;
    padding: 8px 12px !important;
    margin: 2px 0 !important;
    font-size: 0.86rem !important;
    color: #1e293b !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option--selected {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

.select2-container--default .select2-results__option[aria-disabled="true"] {
    color: #94a3b8 !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    cursor: not-allowed !important;
}

/* ==========================================================================
   ESTÁNDAR SEMÁNTICO OFICIAL DATARETAIL PARA ELEMENTOS OPCIONALES
   ========================================================================== */
.dr-badge-opcional {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.dr-texto-opcional {
    color: #64748b !important;
    font-weight: 500 !important;
    font-size: 0.82rem !important;
    margin-left: 0.35rem;
}

.dr-texto-secundario {
    color: #475569 !important;
}

.dr-card-20 {
    border-radius: 20px !important;
}

/* ==========================================================================
   MODAL PRODUCTO & SELECT2 PERSONALIZADO (MIGRADO DESDE INVENTARIO)
   ========================================================================== */
#modalProducto .modal-body,
#cuerpo_modal_producto {
    min-height: 480px;
    transition: min-height 0.2s ease;
}

/* ==========================================================================
   DATATABLES MODERN EXECUTIVE THEME - DATARETAIL
   ========================================================================== */
.dataTables_wrapper {
    font-family: inherit;
    color: #334155;
}

/* --- FILA SUPERIOR: MOSTRAR REGISTROS & BUSCADOR --- */
.dataTables_wrapper > .row:first-child {
    margin-bottom: 1.25rem !important;
    align-items: center;
    row-gap: 0.75rem;
}

/* Mostrar registros (Length selector) */
.dataTables_wrapper .dataTables_length {
    display: flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 50rem !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 0.35rem 2rem 0.35rem 0.85rem !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    background-position: right 0.75rem center;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_length select:hover {
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: none;
}

/* Buscador (Filter input) */
.dataTables_wrapper .dataTables_filter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    width: 100%;
    max-width: 320px;
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 50rem !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.45rem 1rem 0.45rem 2.25rem !important;
    width: 100% !important;
    min-width: 220px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b82f6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 1rem 1rem;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_filter input:hover {
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
    outline: none;
}

/* --- TABLA: ENCABEZADOS Y CELDAS (SOLO BORDE REDONDO EN HEADER, CERO RAYADO) --- */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.25rem !important;
    border: none !important;
}

table.dataTable thead th:first-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

table.dataTable thead th:last-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

table.dataTable thead th {
    background-color: #f0f7ff !important;
    color: #0369a1 !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.85rem 1rem !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    vertical-align: middle !important;
}

table.dataTable tbody td {
    padding: 0.85rem 1rem !important;
    vertical-align: middle !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b;
    font-size: 0.875rem;
}

table.dataTable tbody tr {
    transition: background-color 0.15s ease-in-out;
}

table.dataTable tbody tr:hover td {
    background-color: #f0f9ff !important;
}

/* --- FILA INFERIOR: INFO & PAGINACIÓN --- */
.dataTables_wrapper > .row:last-child {
    margin-top: 0.75rem !important;
    align-items: center;
    row-gap: 0.75rem;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    padding-top: 0.25rem;
}

/* Paginación moderna tipo pastillas */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_paginate ul.pagination {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dataTables_wrapper .dataTables_paginate .page-item .page-link {
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #1e40af !important;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    margin: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.dataTables_wrapper .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

/* Página activa */
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-1px);
}

/* Botones deshabilitados (Anterior / Siguiente) */
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    background-color: #f8fafc !important;
    border-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.7;
}

/* Botones de Anterior y Siguiente */
.dataTables_wrapper .dataTables_paginate .page-item.previous .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.next .page-link {
    padding: 0 14px;
    font-weight: 600;
}

/* --- RESPONSIVE TABLE DETAILS (Subfilas en pantallas pequeñas) --- */
table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
}

table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
    border-bottom: none;
}

table.dataTable > tbody > tr.child ul.dtr-details > li .dtr-title {
    font-weight: 700;
    color: #64748b;
    font-size: 0.85rem;
}

table.dataTable > tbody > tr.child ul.dtr-details > li .dtr-data {
    text-align: right;
}

/* --- RESPONSIVE BREAKPOINTS (Mobile & Tablet) --- */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        justify-content: center !important;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter label {
        max-width: 100%;
    }

    .dataTables_wrapper .dataTables_info {
        text-align: center !important;
        margin-bottom: 8px !important;
        white-space: normal;
    }

    .dataTables_wrapper .dataTables_paginate {
        justify-content: center !important;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .dataTables_wrapper .dataTables_paginate ul.pagination {
        justify-content: center !important;
        gap: 4px;
    }

    .dataTables_wrapper .dataTables_paginate .page-item .page-link {
        padding: 0 8px;
        font-size: 0.8rem;
        min-width: 32px;
        height: 32px;
        border-radius: 6px !important;
    }
    
    .dataTables_wrapper .dataTables_paginate .page-item.previous .page-link,
    .dataTables_wrapper .dataTables_paginate .page-item.next .page-link {
        padding: 0 10px;
    }
}

/* ==========================================================================
   MÓDULO DE CONFIGURACIÓN DE EMPRESA Y ZONA DE PELIGRO
   ========================================================================== */

/* Navegación por pestañas tipo pastilla ejecutiva */
.nav-pills-configuracion {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50rem;
    padding: 6px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-pills-configuracion .nav-link {
    border-radius: 50rem !important;
    font-weight: 600;
    font-size: 0.88rem;
    color: #475569;
    padding: 9px 20px;
    transition: all 0.22s ease-in-out;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
}

.nav-pills-configuracion .nav-link i {
    font-size: 0.95rem;
}

.nav-pills-configuracion .nav-link:hover {
    color: #1e40af;
    background-color: #f1f5f9;
}

.nav-pills-configuracion .nav-link.active {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.nav-pills-configuracion .nav-link.link-danger-tab.active {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

/* Tarjeta principal contenedora de configuración */
.card-configuracion {
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.card-configuracion-header {
    padding: 24px 28px 18px;
    border-bottom: 1.5px solid #f1f5f9;
}

.card-configuracion-subtitulo {
    color: #475569;
    font-size: 0.88rem;
    margin-bottom: 0;
}

.card-configuracion-body {
    padding: 28px;
}

/* Avatar / Logo circular de la empresa */
.logo-uploader-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo-uploader-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-uploader-help {
    color: #475569;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.logo-preview-box {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 50%;
    border: 3px solid #2563eb;
    object-fit: cover;
    background-color: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-preview-box .logo-placeholder-icon {
    font-size: 2.5rem;
    color: #2563eb;
}

/* Switch interactivo personalizado DataRetail */
.policy-switch-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.form-switch-dr .form-check-input {
    width: 2.8em;
    height: 1.5em;
    cursor: pointer;
    border: 1.5px solid #cbd5e1;
    border-radius: 2em;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-switch-dr .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.form-switch-dr .form-check-label {
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    padding-left: 8px;
}

/* Alertas explicativas de alto contraste */
.alert-pos-dr {
    background-color: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    color: #1e40af;
    padding: 14px 18px;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Selector de Formato de Ticket */
.ticket-format-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: #ffffff;
    height: 100%;
}

.ticket-format-card:hover {
    border-color: #93c5fd;
    background-color: #eff6ff;
}

.ticket-format-card.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.ticket-format-card .ticket-icon {
    font-size: 1.8rem;
    color: #2563eb;
    margin-bottom: 8px;
}

.ticket-format-card .ticket-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.ticket-format-card .ticket-desc {
    font-size: 0.78rem;
    color: #64748b;
}

/* Zona de Peligro / Reset */
.card-danger-zone {
    background-color: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 20px;
    padding: 28px;
}

.danger-zone-icon-box {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 1.6rem;
}

/* Input monoespaciado grande para OTP */
.input-otp-dr {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.6rem !important;
    text-align: center !important;
    border-radius: 16px !important;
    border: 2px solid #cbd5e1 !important;
    padding: 12px 18px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease-in-out;
    max-width: 320px !important;
}

.input-otp-dr:focus {
    border-color: #dc2626 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15) !important;
    outline: none !important;
}

/* Modal de Reset / Peligro */
.modal-content-reset-dr {
    border-radius: 20px !important;
}

.modal-header-reset-dr {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
}

.modal-reset-header-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-footer-reset-dr {
    background-color: #ffffff;
    border-top: 1.5px solid #f1f5f9 !important;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.otp-destination-label {
    color: #475569;
    font-size: 0.82rem;
}

.otp-input-hint {
    color: #475569;
    font-size: 0.82rem;
}

.purge-progress-label {
    color: #475569;
    font-size: 0.84rem;
    font-weight: 600;
}

/* Tarjetas informativas de suscripción y soporte */
.plan-card-icon {
    font-size: 2.5rem;
}

.plan-card-label {
    color: #475569;
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.plan-card-footnote {
    color: #64748b;
    font-size: 0.82rem;
}

/* Tarjetas KPI de suscripción y vigencia */
.card-suscripcion-kpi {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-suscripcion-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

/* Tarjeta de soporte y asistencia */
.plan-soporte-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Tarjeta de destino OTP en modal */
.otp-info-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
}

.plan-soporte-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.plan-soporte-subtitulo {
    color: #475569;
    font-size: 0.85rem;
}

/* Zona de peligro y textos informativos de purga */
.purge-info-text {
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.5;
}

.purge-info-items {
    color: #334155;
    font-size: 0.85rem;
}

.purge-item-desc {
    color: #475569;
    font-size: 0.8rem;
}

.acceso-restringido-icon {
    font-size: 3rem;
}

.acceso-restringido-text {
    max-width: 500px;
    color: #475569;
    font-size: 0.92rem;
}

/* Checkboxes de purga dentro del modal */
.checkbox-purge-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    background: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkbox-purge-item:hover {
    border-color: #fca5a5;
    background: #fef2f2;
}

.checkbox-purge-item .form-check-input:checked ~ .form-check-label {
    color: #991b1b;
    font-weight: 600;
}

/* Barra de progreso visual en modal OTP */
.progress-dr-reset {
    height: 8px;
    border-radius: 50rem;
    background-color: #fee2e2;
    overflow: hidden;
}

.progress-dr-reset .progress-bar {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50rem;
}

/* Contador regresivo */
.otp-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 50rem;
    padding: 5px 14px;
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .nav-pills-configuracion {
        border-radius: 16px;
        width: 100%;
    }

    .nav-pills-configuracion .nav-link {
        width: 100%;
        justify-content: center;
    }

    .logo-uploader-container {
        flex-direction: column;
        text-align: center;
    }
}






/* ==========================================================================
   Panel de Ventas (POS) - Rediseño ejecutivo DataRetail
   Bimoneda · Viewport compacto en escritorio · Táctil en tablet/móvil
   ========================================================================== */

.pos-main-container {
    width: 100%;
    padding-bottom: 96px;
}

.pos-catalogo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---------- Cabecera del módulo (breadcrumb_acciones) ---------- */
.pos-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pos-rate-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 50rem;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
    font-size: 0.85rem;
    font-weight: 600;
}

.pos-rate-badge i {
    color: #059669;
}

.pos-rate-badge.pos-rate-badge-alert {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.pos-rate-badge.pos-rate-badge-alert i {
    color: #dc2626;
}

/* ---------- Búsqueda y pistoleo ---------- */
.pos-search-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 14px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pos-search-card:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.pos-search-wrap {
    position: relative;
}

.pos-search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #2563eb;
    pointer-events: none;
}

.pos-search-input {
    border: 1.5px solid #cbd5e1;
    border-radius: 50rem;
    padding: 11px 18px 11px 46px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pos-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background-color: #ffffff;
}

.pos-barcode-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 50rem;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.pos-barcode-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #059669;
    animation: posPulse 1.8s ease-in-out infinite;
}

@keyframes posPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.55); }
    50% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
}

.pos-btn-refresh {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pos-btn-refresh:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* ---------- Categorías ---------- */
.pos-categories-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
}

.pos-categories-nav::-webkit-scrollbar {
    height: 5px;
}

.pos-categories-nav::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.pos-cat-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50rem;
    background: #ffffff;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.pos-cat-pill:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.pos-cat-pill.active {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

/* ---------- Grid de productos ---------- */
.pos-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    grid-auto-rows: max-content !important;
    align-items: start !important;
    align-content: start !important;
    gap: 14px !important;
    overflow-y: auto !important;
    padding: 4px 6px 16px 2px !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pos-products-grid > .pos-grid-state {
    grid-column: 1 / -1;
}

.pos-products-grid::-webkit-scrollbar {
    width: 6px;
}

.pos-products-grid::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.pos-products-grid::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.pos-grid-state {
    text-align: center;
    padding: 48px 16px;
    color: #475569;
}

/* ---------- Tarjetas de Producto Estilo Shopify / Square ---------- */
.pos-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 172px;
    padding: 13px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.pos-product-card:hover {
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.pos-product-card:active {
    transform: scale(0.98);
}

.pos-product-card.agotado {
    opacity: 0.65;
    border-color: #fecaca;
    background: #fffafa;
    cursor: not-allowed;
}

.pos-product-card.agotado:hover {
    transform: none;
    box-shadow: none;
}

.pos-item-added {
    animation: posItemAddedAnim 0.25s ease-in-out;
}

@keyframes posItemAddedAnim {
    0% { transform: scale(1); }
    50% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

/* Avatares Temáticos de Categoría */
.pos-avatar-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pos-product-card:hover .pos-avatar-icon {
    transform: scale(1.06);
}

.pos-avatar-icon.cat-viveres {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.pos-avatar-icon.cat-bebidas {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.pos-avatar-icon.cat-golosinas {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.pos-avatar-icon.cat-lacteos {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}

.pos-avatar-icon.cat-limpieza {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

.pos-avatar-icon.cat-ferreteria {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.pos-avatar-icon.cat-servicios {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.pos-avatar-icon.cat-default {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.pos-card-body-info {
    margin: 6px 0;
}

.pos-prod-name {
    margin: 0 0 4px;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    word-break: break-word;
}

.pos-prod-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
}

.pos-card-footer-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1.5px dashed #e2e8f0;
}

.pos-price-usd {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    color: #047857;
}

.pos-price-bs {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1d4ed8;
    margin-top: 2px;
}

.pos-btn-quick-add {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: none;
    border-radius: 50rem;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.pos-btn-quick-add:hover:not(:disabled) {
    background: #1d4ed8;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.36);
}

.pos-btn-quick-add:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ---------- Chips semánticos (reemplazan bg-*-subtle) ---------- */
.pos-chip {
    border: 1.5px solid transparent;
    border-radius: 50rem;
    font-weight: 700;
}

.pos-chip-primary { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.pos-chip-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pos-chip-info    { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.pos-chip-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.pos-chip-danger  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* ---------- Panel del carrito ---------- */
.pos-cart-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.pos-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1.5px solid #e2e8f0;
}

.pos-cart-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
}

.pos-cart-title-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pos-count-badge {
    padding: 5px 14px;
    border-radius: 50rem;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.pos-cart-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pos-cart-body::-webkit-scrollbar {
    width: 5px;
}

.pos-cart-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.pos-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #334155;
}

.pos-cart-empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #2563eb;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-cart-empty-title {
    margin-bottom: 4px;
    font-weight: 800;
    color: #0f172a;
}

.pos-cart-item {
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    transition: border-color 0.15s ease;
}

.pos-cart-item:hover {
    border-color: #93c5fd;
}

.pos-cart-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.pos-cart-item-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.pos-cart-qty-ctrl {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 50rem;
    overflow: hidden;
}

.pos-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pos-qty-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

.pos-qty-input {
    width: 40px;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    -moz-appearance: textfield;
}

.pos-qty-input::-webkit-outer-spin-button,
.pos-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pos-qty-input:focus {
    outline: none;
    background: #eff6ff;
}

.pos-cart-item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1.5px dashed #e2e8f0;
}

.pos-cart-item-subtotal {
    font-size: 1rem;
    font-weight: 800;
    color: #047857;
    text-align: right;
}

.pos-cart-item-subtotal-bs {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1d4ed8;
    text-align: right;
}

.pos-btn-del-item {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1.5px solid #fecaca;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pos-btn-del-item:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

/* ---------- Totales y cobro ---------- */
.pos-cart-footer {
    padding: 14px 18px 16px;
    background: #ffffff;
    border-top: 1.5px solid #e2e8f0;
}

.pos-totales-table {
    width: 100%;
    margin-bottom: 10px;
}

.pos-totales-table td {
    padding: 3px 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.pos-totales-table td:last-child {
    text-align: right;
    font-weight: 800;
    color: #0f172a;
}

.pos-total-display-card {
    margin-bottom: 12px;
    padding: 12px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
}

.pos-total-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #dbeafe;
}

.pos-total-items {
    padding: 2px 10px;
    border-radius: 50rem;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 800;
}

.pos-total-display-usd {
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
}

.pos-total-display-bs {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    color: #bfdbfe;
}

.pos-btn-checkout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    border-radius: 50rem;
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.32);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pos-btn-checkout:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.42);
}

.pos-btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

#btnCobrarPOS,
#btnCobrarPOSMobile {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#btnCobrarPOS:hover:not(:disabled),
#btnCobrarPOSMobile:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

#btnCobrarPOS:disabled,
#btnCobrarPOSMobile:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-pos-vaciar {
    border: 1.5px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-pos-vaciar:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.pos-kbd {
    padding: 1px 8px;
    border-radius: 50rem;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
    font-weight: 800;
}

/* ---------- Móvil: barra flotante y bottom sheet ---------- */
.pos-mobile-bottom-bar {
    display: none;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 12px;
    height: 58px;
    z-index: 1040;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-radius: 50rem;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pos-mobile-bottom-bar:active {
    transform: scale(0.98);
}

.pos-mobile-count {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-mobile-total-usd {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.pos-mobile-total-bs {
    font-size: 0.74rem;
    font-weight: 600;
    color: #dbeafe;
}

.pos-offcanvas-cart {
    height: 85vh !important;
    max-height: 90vh !important;
    border: none !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.22) !important;
}

.pos-offcanvas-cart .offcanvas-header {
    padding: 14px 20px !important;
    background: #ffffff !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    border-radius: 24px 24px 0 0 !important;
    flex-shrink: 0 !important;
}

.pos-offcanvas-cart .btn-close {
    width: 36px !important;
    height: 36px !important;
    padding: 8px !important;
    border-radius: 50% !important;
}

.pos-offcanvas-body {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.pos-mobile-cart-items-container {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 14px 16px !important;
    -webkit-overflow-scrolling: touch;
}

.pos-mobile-cart-footer {
    flex-shrink: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08) !important;
    border-top: 1.5px solid #e2e8f0 !important;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
}

.pos-offcanvas-grabber {
    width: 44px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 50rem;
    background: #cbd5e1;
}

/* ---------- Escritorio / tablet horizontal: viewport compacto y CSS Grid ---------- */
@media (min-width: 992px) {
    /* Pantalla Desktop / Tablet: Cero scroll general del navegador */
    body.pos-viewport-locked {
        overflow: hidden !important;
    }

    body.pos-viewport-locked,
    body.pos-viewport-locked #main-wrapper {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    body.pos-viewport-locked .page-wrapper {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body.pos-viewport-locked .page-wrapper > .footer {
        display: none !important;
    }

    body.pos-viewport-locked .page-breadcrumb {
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }

    body.pos-viewport-locked .page-breadcrumb nav,
    body.pos-viewport-locked .page-breadcrumb .d-inline-flex:has(.fa-user) {
        display: none !important;
    }

    body.pos-viewport-locked .container-fluid {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .pos-main-container {
        display: grid !important;
        grid-template-columns: 1fr 390px !important;
        gap: 16px !important;
        height: calc(100vh - 145px) !important;
        max-height: calc(100vh - 145px) !important;
        overflow: hidden !important;
        padding: 4px 12px 8px !important;
    }

    /* Columna Izquierda: Catálogo */
    .pos-col-catalogo {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    /* Columna Derecha: Carrito SIEMPRE Visible y Fijo */
    .pos-col-carrito {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .pos-catalogo-wrapper {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
        gap: 10px !important;
        overflow: hidden !important;
    }

    .pos-search-card,
    .pos-categories-nav {
        flex-shrink: 0 !important;
    }

    .pos-products-grid {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    .pos-cart-panel {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .pos-cart-header {
        flex-shrink: 0 !important;
    }

    .pos-cart-body {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    .pos-cart-footer {
        flex-shrink: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .pos-mobile-bottom-bar {
        display: flex;
    }

    .pos-cart-panel-desktop {
        display: none;
    }
}

/* ==========================================================================
   Modal de cobro POS (pagos mixtos, cliente inteligente)
   ========================================================================== */
.pos-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.pos-modal-header {
    padding: 16px 24px;
    border: none;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
}

.pos-modal-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-modal-subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: #dbeafe;
}

.pos-modal-body {
    padding: 20px 24px;
    background: #f8fafc;
}

.pos-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #ffffff;
    border-top: 1.5px solid #e2e8f0;
    border-radius: 0 0 20px 20px;
}

.pos-step-card {
    margin-bottom: 14px;
    padding: 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
}

.pos-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f1f5f9;
}

.pos-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.pos-step-num {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pos-modal-label {
    margin-bottom: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.pos-modal-label i {
    color: #2563eb;
}

.pos-input-pill {
    height: 42px;
    padding: 0 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50rem;
    font-weight: 600;
    color: #0f172a;
}

.pos-input-pill:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pos-cliente-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    font-size: 0.86rem;
}

.pos-cliente-nuevo {
    margin-top: 4px;
    padding: 14px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
}

.pos-modal-condicion-switch {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 50rem;
}

.pos-modal-condicion-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 50rem;
    background: transparent;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.pos-modal-condicion-btn:hover {
    color: #0f172a;
}

.pos-modal-condicion-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1);
}

.pos-modal-condicion-btn.active.credito {
    background: #fef3c7;
    color: #92400e;
}

.pos-balance-summary-card {
    margin: 8px 0 16px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
}

.pos-balance-kpi-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pos-balance-label {
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #334155;
}

@media (min-width: 768px) {
    .border-end-md {
        border-right: 1.5px solid #e2e8f0;
    }
}

/* Stepper de Fases en Modal de Cobro */
.pos-stepper-bar {
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
}

.pos-step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.pos-step-indicator.active {
    color: #2563eb;
}

.pos-step-indicator.completed {
    color: #059669;
}

.pos-step-indicator-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pos-step-indicator.active .pos-step-indicator-num {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.pos-step-indicator.completed .pos-step-indicator-num {
    background: #059669;
    color: #ffffff;
}

.pos-step-connector {
    width: 44px;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.pos-step-connector.completed {
    background: #059669;
}

/* Barra resumen del cliente en Fase 2 */
.pos-client-summary-bar {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50rem;
}

/* Aviso Ejecutivo de Cliente Inactivo en el Modal del POS */
.dr-pos-alerta-inactivo {
    background: linear-gradient(135deg, #fffbeb 0%, #fef2f2 100%);
    border: 1.5px solid #fca5a5;
    border-radius: 16px;
    padding: 0.9rem 1.15rem;
    color: #991b1b;
}

.dr-pos-alerta-inactivo-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dr-pos-alerta-inactivo-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #991b1b;
}

.dr-pos-alerta-inactivo-motivo {
    font-size: 0.85rem;
    font-weight: 500;
    color: #7f1d1d;
    line-height: 1.45;
}

[data-theme="dark"] .dr-pos-alerta-inactivo,
body.dark-mode .dr-pos-alerta-inactivo {
    background: rgba(127, 29, 29, 0.25);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

[data-theme="dark"] .dr-pos-alerta-inactivo-title,
body.dark-mode .dr-pos-alerta-inactivo-title {
    color: #fecaca;
}

[data-theme="dark"] .dr-pos-alerta-inactivo-motivo,
body.dark-mode .dr-pos-alerta-inactivo-motivo {
    color: #fde68a;
}

.pos-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
}

/* Gatillo Cargar Más Productos (Grid 1000+ ítems) */
.pos-products-grid > #contenedorCargarMasPOS,
.pos-products-grid > .pos-load-more-wrap {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.pos-payment-methods-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.pos-pay-method-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50rem !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pos-pay-method-pill:hover {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.pos-pay-method-pill.active {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.pos-pay-method-pill.active i {
    color: #ffffff !important;
}

.pos-tabla-pagos {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.pos-tabla-pagos thead th {
    padding: 10px 14px;
    background: #f8fafc !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #334155 !important;
}

.pos-tabla-pagos thead th:first-child {
    border-radius: 12px 0 0 12px;
}

.pos-tabla-pagos thead th:last-child {
    border-radius: 0 12px 12px 0;
}

.pos-tabla-pagos tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    vertical-align: middle;
}

.pos-tabla-pagos tbody tr:last-child td {
    border-bottom: none;
}

.pos-btn-del-pago {
    width: 32px;
    height: 32px;
    border: 1.5px solid #fecaca !important;
    border-radius: 50rem !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    font-size: 0.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.pos-btn-del-pago:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25) !important;
}

@media (max-width: 575.98px) {
    .pos-modal-body,
    .pos-modal-footer,
    .pos-modal-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pos-modal-footer .btn {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Texto descriptivo de alto contraste */
.dr-text-desc {
    color: #475569 !important;
    font-weight: 600;
}

.pos-chip-warning-text {
    color: #92400e;
}

.pos-card-price-wrap {
    margin-top: 8px;
}
.pos-card-price-wrap .pos-card-price {
    margin-top: 0;
}

/* ==========================================================================
   Layout Standalone POS (Kiosco / Caja)
   ========================================================================== */
body.pos-standalone-body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    background: #f8fafc;
}

.pos-navbar {
    height: 60px;
    background: #ffffff;
    border-bottom: 1.5px solid #e2e8f0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    z-index: 1030;
}

.pos-navbar-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
}

.pos-rate-pill {
    height: 38px;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #047857;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

#header_tasa_contenedor {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

.pos-rate-pill:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.pos-shortcut-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 600;
}

.pos-shortcut-badge kbd {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.70rem;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pos-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.pos-btn-fullscreen {
    height: 36px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pos-btn-fullscreen:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.pos-layout-wrapper {
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    overflow: hidden;
    background: #f8fafc;
}

@media (min-width: 992px) {
    .pos-layout-wrapper .pos-main-container {
        height: 100% !important;
        max-height: 100% !important;
        padding: 10px 16px !important;
        grid-template-columns: 1fr 390px !important;
        gap: 16px !important;
        overflow: hidden !important;
    }
}

@media (max-width: 991.98px) {
    body.pos-standalone-body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
        max-width: 100vw;
    }

    .pos-layout-wrapper {
        height: auto;
        max-height: none;
        overflow: visible;
        padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px)) !important;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .pos-main-container {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 8px 12px calc(95px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden !important;
    }

    .pos-col-catalogo {
        width: 100% !important;
        padding-bottom: 0 !important;
    }

    .pos-catalogo-wrapper {
        width: 100% !important;
        gap: 12px !important;
    }

    .pos-navbar {
        height: auto;
        min-height: 56px;
        padding: 8px 12px;
        flex-wrap: nowrap;
        gap: 8px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .pos-mobile-bottom-bar {
        display: flex;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .pos-cart-panel-desktop {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .pos-navbar-brand-name {
        display: none !important;
    }

    /* Grid de 2 columnas táctil */
    .pos-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 6px !important;
        padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .pos-product-card {
        min-height: 160px;
        padding: 11px;
        border-radius: 16px;
    }

    .pos-product-card:active {
        transform: scale(0.97) !important;
    }

    .pos-prod-name {
        font-size: 0.88rem;
        min-height: 2.4em;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pos-price-usd {
        font-size: 1.1rem;
        font-weight: 800;
        color: #047857;
    }

    .pos-price-bs {
        font-size: 0.78rem;
        font-weight: 700;
        color: #1d4ed8;
    }

    .pos-avatar-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1.1rem;
    }

    /* Ítems del carrito táctiles */
    .pos-cart-item {
        padding: 12px 14px;
        border-radius: 14px;
        margin-bottom: 10px;
    }

    .pos-qty-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        font-size: 1.15rem !important;
        font-weight: 800 !important;
    }

    .pos-qty-input {
        width: 44px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        text-align: center !important;
    }

    .pos-btn-del-item {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 0.9rem !important;
        background: #fef2f2 !important;
        border-color: #fecaca !important;
        color: #dc2626 !important;
    }

    /* Modal de cobro en móvil y tablet pequeña */
    .pos-pay-method-pill {
        min-height: 42px !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
    }

    .pos-btn-del-pago {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        font-size: 0.95rem !important;
    }

    .pos-btn-confirmar-final {
        min-height: 50px !important;
        font-size: 1.05rem !important;
        width: 100% !important;
    }

    .pos-balance-kpi-col:not(:last-child) {
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px dashed #e2e8f0;
    }
}

@media (max-width: 575.98px) {
    .pos-navbar-brand-name {
        display: none !important;
    }

    .pos-rate-pill {
        height: 34px;
        padding: 0 8px !important;
        font-size: 0.78rem;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .pos-user-badge {
        padding: 5px 8px;
    }

    .pos-search-card {
        padding: 10px 12px;
        border-radius: 16px;
    }

    .pos-search-input {
        font-size: 16px !important;
        padding: 10px 14px 10px 42px;
        height: 46px;
    }

    .pos-search-icon {
        left: 14px;
    }

    /* Modal Fullscreen en móviles (< 576px) */
    .modal-fullscreen-sm-down .pos-modal-content {
        border-radius: 0 !important;
        height: 100% !important;
        max-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-fullscreen-sm-down .pos-modal-header,
    .modal-fullscreen-sm-down .pos-modal-footer {
        border-radius: 0 !important;
        flex-shrink: 0 !important;
    }

    .modal-fullscreen-sm-down .pos-modal-body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 16px 14px !important;
    }

    .pos-modal-header {
        padding: 14px 16px !important;
    }

    .pos-modal-header .btn-close {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 12px !important;
        background-size: 14px !important;
        opacity: 0.9 !important;
    }

    .pos-modal-header .modal-title {
        font-size: 1.05rem !important;
    }

    .pos-modal-subtitle {
        font-size: 0.75rem !important;
    }

    .pos-stepper-bar {
        padding: 10px 14px !important;
    }

    .pos-modal-footer {
        padding: 12px 14px 16px !important;
    }

    /* Inputs táctiles altos en modal (previene zoom de iOS Safari) */
    #modalCobroPOS .pos-input-pill,
    #modalCobroPOS .form-control,
    #modalCobroPOS .form-select,
    #modalCobroPOS .select-prefix-dr,
    #modalCobroPOS .select-prefix-rif,
    #modalCobroPOS .select-prefix-cedula {
        height: 48px !important;
        border-radius: 50rem !important;
        font-size: 16px !important;
    }

    #modalCobroPOS .input-group > .form-control,
    #modalCobroPOS .input-group > .form-select {
        height: 48px !important;
        font-size: 16px !important;
    }

    #btnContinuarCobro {
        min-height: 48px !important;
        font-size: 1rem !important;
    }

    #btnConfirmarCobroFinal {
        min-height: 50px !important;
        font-size: 1.05rem !important;
    }
}

@media (max-width: 380px) {
    .pos-navbar-brand-name {
        display: none !important;
    }
    .pos-rate-pill {
        padding: 0 6px !important;
        font-size: 0.74rem !important;
    }
}

/* ==========================================================================
   Módulo de Gestión de Facturas (Detalle Ejecutivo y Anulación)
   ========================================================================== */
.dr-factura-resumen-box {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.15rem;
}

.dr-factura-alerta-anulada {
    background-color: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 16px;
    padding: 0.95rem 1.15rem;
    color: #991b1b;
}

.dr-factura-totales-card {
    background-color: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 16px;
    padding: 1rem 1.15rem;
}

.dr-factura-anular-aviso {
    background-color: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    color: #991b1b;
}

.dr-factura-tabla-detalle thead th {
    background-color: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1.5px solid #cbd5e1;
}

.dr-factura-tabla-detalle tbody td {
    vertical-align: middle;
    color: #0f172a;
    font-size: 0.88rem;
    border-color: #e2e8f0;
}

.dr-factura-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dr-factura-items-scroll {
    max-height: 310px;
    overflow-y: auto;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
}

.dr-factura-items-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.dr-factura-tasa-box {
    background-color: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
}

.dr-factura-bs-pill {
    background-color: #ffffff;
    border: 1.5px solid #059669;
    border-radius: 50rem;
    padding: 0.45rem 0.9rem;
    color: #059669;
}

.dr-factura-pago-item {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
}

.dr-factura-pago-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
}

/* =========================================================================
 * MÓDULO CXC CENTRADO EN CLIENTE
 * ========================================================================= */
.dr-cxc-tabs {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50rem;
    padding: 0.35rem;
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.dr-cxc-tabs .nav-link {
    border-radius: 50rem;
    font-weight: 600;
    color: #334155;
    padding: 0.55rem 1.25rem;
    border: none;
    transition: all 0.2s ease;
}

.dr-cxc-tabs .nav-link.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.dr-cxc-deudor-card {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.25rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dr-cxc-deudor-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.dr-cxc-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1.5px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dr-cxc-btn-whatsapp {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.dr-cxc-btn-whatsapp:hover {
    background-color: #059669;
    color: #ffffff;
    border-color: #059669;
}

.dr-cxc-factura-item {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.dr-cxc-factura-item:hover {
    border-color: #93c5fd;
    background-color: #f8fbff;
}

.dr-cxc-factura-item.is-selected {
    border-color: #2563eb;
    background-color: #f8fbff;
}

.dr-cxc-resumen-cuadre {
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 1rem;
}

.dr-cxc-deudor-saldo-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 0.9rem 1rem;
}

.dr-cxc-deudor-monto-usd {
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc2626;
    line-height: 1.2;
}

.dr-cxc-moneda-banner {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
}

.dr-rec-resumen-encabezado {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 16px;
    padding: 0.75rem 1rem;
}

.dr-rec-cuadre-banner {
    border-radius: 16px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    padding: 1rem 1.15rem;
    transition: all 0.2s ease;
}

.dr-rec-cuadre-banner--neutro {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.dr-rec-cuadre-banner--valido {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.dr-rec-cuadre-banner--info {
    background: #eff6ff;
    border-color: #93c5fd;
}

.dr-rec-cuadre-banner--alerta {
    background: #fffbeb;
    border-color: #fcd34d;
}

.dr-rec-cuadre-banner--error {
    background: #fef2f2;
    border-color: #fca5a5;
}

.dr-rec-totales-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.dr-rec-cuadre-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    height: 100%;
}

[data-theme="dark"] .dr-rec-cuadre-item,
body.dark-mode .dr-rec-cuadre-item {
    background: rgba(15, 23, 42, 0.65);
    border-color: #334155;
}

.dr-rec-iva-controls select {
    min-width: 78px;
}

.dr-rec-iva-controls input {
    min-width: 68px;
}


/* ==========================================================================
   PANTALLAS DE ERROR HTTP EJECUTIVAS (errors/layout.blade.php)
   ========================================================================== */
html.dr-error-html {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #0f172a;
}

html.dr-error-html::-webkit-scrollbar {
    width: 8px;
}

html.dr-error-html::-webkit-scrollbar-track {
    background: #0f172a;
}

html.dr-error-html::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 50rem;
}

body.dr-error-body,
body.dr-error-body *,
body.dr-error-body *::before,
body.dr-error-body *::after {
    box-sizing: border-box;
}

body.dr-error-body::selection,
body.dr-error-body *::selection {
    background: #2563eb;
    color: #ffffff;
}

body.dr-error-body {
    --dr-err-accent: #60a5fa;
    --dr-err-accent-solid: #2563eb;
    --dr-err-rail-bg: linear-gradient(165deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
    --dr-err-badge-bg: rgba(37, 99, 235, 0.24);
    --dr-err-badge-color: #dbeafe;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background-color: #0f172a;
    background-image:
        radial-gradient(680px circle at 14% 18%, rgba(37, 99, 235, 0.24), transparent 60%),
        radial-gradient(560px circle at 88% 82%, rgba(30, 64, 175, 0.18), transparent 58%),
        linear-gradient(155deg, #0f172a 0%, #172554 55%, #0f172a 100%);
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dr-error-body.dr-err-theme-warning {
    --dr-err-accent: #fbbf24;
    --dr-err-accent-solid: #d97706;
    --dr-err-rail-bg: linear-gradient(165deg, #0f172a 0%, #1e293b 52%, #78350f 100%);
    --dr-err-badge-bg: rgba(245, 158, 11, 0.22);
    --dr-err-badge-color: #fef3c7;
}

body.dr-error-body.dr-err-theme-danger {
    --dr-err-accent: #f87171;
    --dr-err-accent-solid: #dc2626;
    --dr-err-rail-bg: linear-gradient(165deg, #0f172a 0%, #1e293b 52%, #7f1d1d 100%);
    --dr-err-badge-bg: rgba(239, 68, 68, 0.22);
    --dr-err-badge-color: #fee2e2;
}

body.dr-error-body.dr-err-theme-indigo {
    --dr-err-accent: #818cf8;
    --dr-err-accent-solid: #4f46e5;
    --dr-err-rail-bg: linear-gradient(165deg, #0f172a 0%, #1e1b4b 58%, #3730a3 100%);
    --dr-err-badge-bg: rgba(99, 102, 241, 0.24);
    --dr-err-badge-color: #e0e7ff;
}

body.dr-error-body.dr-err-theme-purple {
    --dr-err-accent: #c084fc;
    --dr-err-accent-solid: #7e22ce;
    --dr-err-rail-bg: linear-gradient(165deg, #0f172a 0%, #2e1065 58%, #581c87 100%);
    --dr-err-badge-bg: rgba(168, 85, 247, 0.24);
    --dr-err-badge-color: #f3e8ff;
}

body.dr-error-body.dr-err-theme-cyan {
    --dr-err-accent: #38bdf8;
    --dr-err-accent-solid: #0284c7;
    --dr-err-rail-bg: linear-gradient(165deg, #0f172a 0%, #0c4a6e 58%, #0369a1 100%);
    --dr-err-badge-bg: rgba(14, 165, 233, 0.24);
    --dr-err-badge-color: #e0f2fe;
}

.dr-error-canvas {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    width: 100%;
}

/* Consola Ejecutiva Dividida: única elevación por sombra sin borde fantasma */
.dr-error-shell {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    width: 100%;
    max-width: 880px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 56px -14px rgba(2, 6, 23, 0.68);
    overflow: hidden;
    animation: drCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Columna Izquierda: Telemetría e Identidad */
.dr-error-rail {
    background: var(--dr-err-rail-bg);
    color: #ffffff;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.dr-brand-header {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #ffffff;
}

.dr-brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.dr-brand-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.dr-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.dr-brand-name span {
    color: #93c5fd;
}

.dr-brand-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.55rem;
    border-radius: 50rem;
    background: rgba(255, 255, 255, 0.14);
    color: #e0f2fe;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.dr-error-telemetry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.5rem 0;
}

.dr-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: var(--dr-err-accent);
    box-shadow: 0 10px 24px -6px rgba(2, 6, 23, 0.35);
}

.dr-icon-circle i {
    font-size: 1.65rem;
    line-height: 1;
}

.dr-icon-circle svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
}

.dr-error-code-num {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.dr-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: var(--dr-err-badge-bg);
    color: var(--dr-err-badge-color);
}

.dr-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dr-err-accent);
    display: inline-block;
    flex-shrink: 0;
    animation: drStatusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes drStatusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.38;
        transform: scale(0.82);
    }
}

.dr-error-rail-footer {
    width: 100%;
}

.dr-error-session-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.42);
}

.dr-error-session-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dr-error-session-info {
    min-width: 0;
    flex: 1;
}

.dr-error-session-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dr-error-session-company {
    font-size: 0.73rem;
    font-weight: 500;
    color: #bfdbfe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.dr-error-rail-note {
    font-size: 0.76rem;
    font-weight: 600;
    color: #bfdbfe;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Columna Derecha: Panel de Diagnóstico y Recuperación */
.dr-error-panel {
    padding: 2.25rem 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.75rem;
    background: #ffffff;
    text-align: left;
}

.dr-error-panel-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dr-error-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.dr-error-desc {
    color: #334155;
    font-size: 0.96rem;
    line-height: 1.62;
    margin: 0 0 1.35rem;
    max-width: 60ch;
}

.dr-error-diagnostic {
    width: 100%;
    background: #f8fafc;
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    margin-bottom: 1.5rem;
}

.dr-error-diagnostic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dr-error-diagnostic-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e40af;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dr-error-diagnostic-path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    background: #e2e8f0;
    padding: 0.22rem 0.65rem;
    border-radius: 50rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dr-error-diagnostic-hint {
    margin: 0.55rem 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #334155;
}

.dr-actions-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
}

.dr-error-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 50rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
    border: 1.5px solid transparent;
    outline: none;
    line-height: 1.25;
    white-space: nowrap;
}

.dr-error-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.42);
}

.dr-error-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.dr-error-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-1.5px);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.dr-error-btn-extra {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8 !important;
}

.dr-error-btn-extra:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af !important;
    transform: translateY(-1px);
}

.dr-error-btn-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309 !important;
}

.dr-error-btn-warning:hover {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e !important;
    transform: translateY(-1px);
}

.dr-error-btn-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c !important;
}

.dr-error-btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b !important;
    transform: translateY(-1px);
}

.dr-error-btn-outline {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155 !important;
}

.dr-error-btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a !important;
    transform: translateY(-1px);
}

.dr-error-footer {
    padding-top: 1.15rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dr-error-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 600;
}

.dr-error-footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2563eb;
}

.dr-error-quicklinks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dr-error-quicklink {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 50rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dr-error-quicklink:hover {
    background: #dbeafe;
    color: #1e40af;
}

@media (max-width: 767.98px) {
    .dr-error-shell {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .dr-error-rail {
        padding: 1.35rem 1.5rem;
        gap: 1rem;
    }

    .dr-error-telemetry {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.85rem;
        margin: 0.25rem 0;
    }

    .dr-icon-circle {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .dr-error-code-num {
        font-size: 2.5rem;
    }

    .dr-error-panel {
        padding: 1.65rem 1.5rem 1.4rem;
    }
}

@media (max-width: 540px) {
    .dr-error-canvas {
        padding: 1rem 0.75rem;
    }

    .dr-error-rail {
        padding: 1.2rem 1.25rem;
    }

    .dr-error-panel {
        padding: 1.4rem 1.25rem 1.25rem;
    }

    .dr-error-title {
        font-size: 1.4rem;
    }

    .dr-error-desc {
        font-size: 0.9rem;
    }

    .dr-actions-container {
        flex-direction: column;
        align-items: stretch;
    }

    .dr-error-btn {
        width: 100%;
    }
}

/* ==========================================================================
   CENTRO DE CONTROL EJECUTIVO (Sistema/dashboard.blade.php)
   ========================================================================== */
.dr-dash-context-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 1rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
}

.dr-dash-context-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dr-dash-context-icon.is-role {
    background: #ecfdf5;
    color: #059669;
}

.dr-dash-context-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.dr-dash-context-value {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
}

.dr-dash-context-divider {
    width: 1.5px;
    height: 36px;
    background: #e2e8f0;
}

.dr-dash-tasa-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.05rem;
    border-radius: 50rem;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
    font-size: 0.85rem;
    font-weight: 600;
}

.dr-dash-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.015em;
}

.dr-dash-link-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 50rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dr-dash-link-pill:hover {
    background: #dbeafe;
    color: #1e40af;
    transform: translateY(-1px);
}

.dr-dash-panel {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.dr-dash-panel-head {
    padding: 1.1rem 1.35rem;
    border-bottom: 1.5px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dr-dash-panel-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dr-dash-panel-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.dr-dash-panel-sub {
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
}

.dr-dash-panel-body {
    padding: 1rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dr-dash-table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    border-bottom: 1.5px solid #e2e8f0;
}

.dr-dash-table tbody td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.86rem;
}

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

.dr-dash-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.95rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dr-dash-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.dr-dash-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.dr-dash-empty-box i {
    font-size: 1.65rem;
}

.dr-dash-module-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.dr-dash-module-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.14);
}

.dr-dash-module-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.dr-dash-module-icon.is-primary {
    background: #eff6ff;
    color: #2563eb;
}

.dr-dash-module-icon.is-success {
    background: #ecfdf5;
    color: #059669;
}

.dr-dash-module-icon.is-warning {
    background: #fffbeb;
    color: #d97706;
}

.dr-dash-module-icon.is-danger {
    background: #fef2f2;
    color: #dc2626;
}

.dr-dash-module-icon.is-info {
    background: #ecfeff;
    color: #0891b2;
}

.dr-dash-module-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dr-dash-module-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.dr-dash-module-desc {
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.35;
}

[data-theme="dark"] .dr-dash-context-bar,
[data-theme="dark"] .dr-dash-panel,
[data-theme="dark"] .dr-dash-module-card,
body.dark-mode .dr-dash-context-bar,
body.dark-mode .dr-dash-panel,
body.dark-mode .dr-dash-module-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .dr-dash-context-value,
[data-theme="dark"] .dr-dash-section-title,
[data-theme="dark"] .dr-dash-panel-title,
[data-theme="dark"] .dr-dash-module-name,
body.dark-mode .dr-dash-context-value,
body.dark-mode .dr-dash-section-title,
body.dark-mode .dr-dash-panel-title,
body.dark-mode .dr-dash-module-name {
    color: #f8fafc;
}

[data-theme="dark"] .dr-dash-list-item,
[data-theme="dark"] .dr-dash-empty-box,
[data-theme="dark"] .dr-dash-table thead th,
body.dark-mode .dr-dash-list-item,
body.dark-mode .dr-dash-empty-box,
body.dark-mode .dr-dash-table thead th {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

/* ==========================================================================
   CENTRO DE REPORTES Y ANALÍTICA (Sistema/pages/reportes/index.blade.php)
   ========================================================================== */
.dr-rep-chart-body {
    padding: 1.25rem 1.35rem 1.4rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 265px;
}

.dr-rep-barchart-wrap {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
    height: 230px;
}

.dr-rep-yaxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 26px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    text-align: right;
}

.dr-rep-bars-stage {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.65rem;
    height: 230px;
    padding: 0.5rem 0.5rem 0;
    border-bottom: 1.5px solid #e2e8f0;
    background-image: linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
    background-size: 100% 20%;
}

.dr-rep-bars-stage.is-compact {
    height: 195px;
}

.dr-rep-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
    height: 100%;
}

.dr-rep-bar-track {
    width: 100%;
    max-width: 38px;
    height: calc(100% - 26px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.dr-rep-bar-track.is-grouped {
    max-width: 48px;
    gap: 4px;
}

.dr-rep-bar-fill {
    width: 100%;
    border-radius: 10px 10px 4px 4px;
    transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
    position: relative;
    cursor: pointer;
}

.dr-rep-bar-fill.is-pair {
    width: 48%;
    border-radius: 7px 7px 3px 3px;
}

.dr-rep-bar-fill:hover {
    filter: brightness(1.08);
}

.dr-rep-bar-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.16rem 0.45rem;
    border-radius: 50rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.dr-rep-bar-col:hover .dr-rep-bar-tooltip {
    opacity: 1;
}

.dr-rep-bar-label {
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.dr-rep-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.dr-rep-donut-svg {
    width: 185px;
    height: 185px;
}

.dr-rep-donut-center-label {
    font-size: 10px;
    font-weight: 800;
    fill: #475569;
    letter-spacing: 0.06em;
}

.dr-rep-donut-center-val {
    font-size: 15px;
    font-weight: 800;
    fill: #0f172a;
}

.dr-rep-legend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dr-rep-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}

.dr-rep-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dr-rep-line-svg {
    width: 100%;
    height: 200px;
    overflow: visible;
}

.dr-rep-buyer-card {
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dr-rep-buyer-rank {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dr-rep-buyer-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.dr-rep-buyer-tickets {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50rem;
    background: #eff6ff;
    color: #2563eb;
    white-space: nowrap;
}

.dr-rep-buyer-progress {
    flex: 1;
    height: 6px;
    border-radius: 50rem;
    background: #e2e8f0;
    overflow: hidden;
}

.dr-rep-buyer-progress-bar {
    height: 100%;
    border-radius: 50rem;
    background: linear-gradient(90deg, #4f46e5 0%, #3b82f6 100%);
}

.dr-rep-buyer-amount {
    font-size: 0.78rem;
    font-weight: 800;
    color: #059669;
    white-space: nowrap;
}

.dr-rep-section-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.05rem;
    border-radius: 50rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.dr-rep-section-pill.is-primary {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #1e40af;
}

.dr-rep-section-pill.is-success {
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
}

.dr-rep-export-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.15rem;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dr-rep-export-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08);
}

.dr-rep-export-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dr-rep-export-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.dr-rep-export-icon.is-primary {
    background: #eff6ff;
    color: #2563eb;
}

.dr-rep-export-icon.is-success {
    background: #ecfdf5;
    color: #059669;
}

.dr-rep-export-icon.is-info {
    background: #ecfeff;
    color: #0891b2;
}

.dr-rep-export-icon.is-danger {
    background: #fef2f2;
    color: #dc2626;
}

.dr-rep-export-icon.is-warning {
    background: #fffbeb;
    color: #d97706;
}

.dr-rep-export-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
}

.dr-rep-export-sub {
    font-size: 0.76rem;
    font-weight: 500;
    color: #475569;
}

.dr-rep-export-note {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #475569;
}

.dr-rep-export-actions {
    padding-top: 0.25rem;
}

[data-theme="dark"] .dr-rep-export-card,
body.dark-mode .dr-rep-export-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .dr-rep-export-title,
[data-theme="dark"] .dr-rep-buyer-name,
body.dark-mode .dr-rep-export-title,
body.dark-mode .dr-rep-buyer-name {
    color: #f8fafc;
}

[data-theme="dark"] .dr-rep-buyer-card,
body.dark-mode .dr-rep-buyer-card {
    background: #0f172a;
    border-color: #334155;
}

/* ==========================================================================
   MOTOR DE IMPRESIÓN PDF EJECUTIVO Y TICKETS POS (80mm / 58mm / Carta)
   ========================================================================== */
body.dr-print-body,
body.dr-print-body *,
body.dr-print-body *::before,
body.dr-print-body *::after {
    box-sizing: border-box;
}

body.dr-print-body {
    margin: 0;
    padding: 76px 16px 32px;
    background: #e2e8f0;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.dr-print-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.28);
}

.dr-print-toolbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dr-print-toolbar-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    background: rgba(59, 130, 246, 0.24);
    color: #bfdbfe;
    font-size: 0.76rem;
    font-weight: 700;
}

.dr-print-toolbar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.dr-print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 1.05rem;
    border-radius: 50rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}

.dr-print-btn.is-primary {
    background: #2563eb;
    color: #ffffff;
}

.dr-print-btn.is-primary:hover {
    background: #1d4ed8;
}

.dr-print-btn.is-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.dr-print-btn.is-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hoja PDF Corporativa (Reportes) */
.dr-pdf-sheet {
    max-width: 1080px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.18);
}

.dr-pdf-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 2px solid #1e3a8a;
    margin-bottom: 1rem;
}

.dr-pdf-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.dr-pdf-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 4px;
}

.dr-pdf-company {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.2rem;
}

.dr-pdf-company-meta {
    font-size: 0.78rem;
    color: #334155;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dr-pdf-company-address {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 2px;
}

.dr-pdf-doc-meta {
    text-align: right;
}

.dr-pdf-doc-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dr-pdf-doc-sub {
    font-size: 0.8rem;
    color: #475569;
    margin-top: 2px;
}

.dr-pdf-doc-tags {
    font-size: 0.74rem;
    color: #334155;
    margin-top: 0.4rem;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dr-pdf-filter-bar {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    margin-bottom: 1.1rem;
}

.dr-pdf-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dr-pdf-kpi-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.7rem 0.95rem;
}

.dr-pdf-kpi-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 2px;
}

.dr-pdf-kpi-val {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.dr-pdf-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.dr-pdf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.dr-pdf-table thead th {
    background: #1e3a8a;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 0.6rem 0.7rem;
    border: 1px solid #1e3a8a;
}

.dr-pdf-table thead th.is-num,
.dr-pdf-table tbody td.is-num,
.dr-pdf-table tfoot td.is-num {
    text-align: right;
    white-space: nowrap;
}

.dr-pdf-table tbody td {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

.dr-pdf-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.dr-pdf-table tfoot td {
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 800;
    padding: 0.65rem 0.7rem;
    border-top: 2px solid #1e3a8a;
    border-bottom: 2px solid #1e3a8a;
}

.dr-pdf-empty {
    text-align: center;
    padding: 1.5rem !important;
    color: #475569;
}

.dr-pdf-footer {
    margin-top: 1.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    color: #475569;
}

/* ==========================================================================
   COMPROBANTE / TICKET POS (80mm, 58mm y Carta)
   ========================================================================== */
.dr-ticket-paper {
    margin: 0 auto;
    background: #ffffff;
    color: #0f172a;
    border-radius: 14px;
    box-shadow: 0 18px 42px -12px rgba(15, 23, 42, 0.22);
    font-variant-numeric: tabular-nums;
}

.dr-ticket-80mm {
    width: 80mm;
    max-width: 100%;
    padding: 14px 12px;
    font-size: 12px;
    line-height: 1.38;
}

.dr-ticket-58mm {
    width: 58mm;
    max-width: 100%;
    padding: 10px 8px;
    font-size: 10.5px;
    line-height: 1.32;
}

.dr-ticket-carta {
    width: 210mm;
    max-width: 100%;
    padding: 28px 32px;
    font-size: 13px;
    line-height: 1.45;
}

.dr-ticket-anulada-banner {
    background: #fef2f2;
    border: 2px dashed #dc2626;
    color: #b91c1c;
    text-align: center;
    font-weight: 800;
    padding: 6px 8px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.dr-ticket-anulada-sub {
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 2px;
}

.dr-ticket-header {
    text-align: center;
}

.dr-ticket-logo {
    max-height: 46px;
    max-width: 140px;
    object-fit: contain;
    margin-bottom: 6px;
}

.dr-ticket-carta .dr-ticket-logo {
    max-height: 64px;
}

.dr-ticket-company {
    font-size: 1.15em;
    font-weight: 800;
    text-transform: uppercase;
    color: #0f172a;
}

.dr-ticket-carta .dr-ticket-company {
    font-size: 1.45em;
}

.dr-ticket-meta {
    font-size: 0.9em;
    color: #334155;
}

.dr-ticket-sep {
    border-top: 1px dashed #94a3b8;
    margin: 9px 0;
}

.dr-ticket-carta .dr-ticket-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}

.dr-ticket-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.dr-ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}

.dr-ticket-table th {
    border-bottom: 1px solid #0f172a;
    padding: 4px 2px;
    font-weight: 800;
}

.dr-ticket-carta .dr-ticket-table th {
    background: #1e3a8a;
    color: #ffffff;
    padding: 8px 10px;
    border: none;
}

.dr-ticket-table td {
    padding: 4px 2px;
    vertical-align: top;
    border-bottom: 1px dotted #cbd5e1;
}

.dr-ticket-carta .dr-ticket-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
}

.dr-ticket-table .is-left {
    text-align: left;
}

.dr-ticket-table .is-right {
    text-align: right;
    white-space: nowrap;
}

.dr-ticket-iva-tag {
    font-size: 0.82em;
    font-weight: 700;
    color: #475569;
}

.dr-ticket-grand-total {
    font-size: 1.15em;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #cbd5e1;
}

.dr-ticket-bs-total {
    font-size: 1.02em;
    color: #1e40af;
    margin-top: 2px;
}

.dr-ticket-section-label {
    font-size: 0.82em;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #334155;
    margin-bottom: 4px;
}

.dr-ticket-saldo {
    color: #b91c1c;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #fca5a5;
}

.dr-ticket-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed #94a3b8;
    text-align: center;
}

.dr-ticket-custom-footer {
    margin: 0 0 6px;
    font-size: 0.92em;
    font-weight: 600;
    color: #0f172a;
    white-space: pre-line;
}

.dr-ticket-brand-foot {
    font-size: 0.78em;
    color: #64748b;
}

@media print {
    .no-print {
        display: none !important;
    }

    body.dr-print-body {
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
    }

    .dr-pdf-sheet,
    .dr-ticket-paper {
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    .dr-pdf-sheet {
        width: 100% !important;
        padding: 0 !important;
    }

    .dr-ticket-80mm {
        width: 78mm !important;
        padding: 2mm !important;
    }

    .dr-ticket-58mm {
        width: 56mm !important;
        padding: 1.5mm !important;
    }

    .dr-ticket-carta {
        width: 100% !important;
        padding: 0 !important;
    }
}




/* ==========================================================================
   MODO PUESTO DE COMIDA / COMANDAS & TICKET TÉRMICO DE COCINA
   ========================================================================== */
.dr-pos-comandas-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 44px;
    padding: 0 1rem;
    border-radius: 50rem;
    border: 1.5px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dr-pos-comandas-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.dr-pos-comandas-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.4rem;
    border-radius: 50rem;
    background: #d97706;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
}

.dr-pos-comanda-banner,
.dr-comanda-adicional-banner {
    padding: 0.7rem 1rem;
    margin: 0.5rem 0.75rem 0;
    border-radius: 14px;
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
}

.dr-comanda-adicional-banner {
    margin: 0;
}

.dr-comandas-grid {
    max-height: 62vh;
    overflow-y: auto;
}

.dr-comanda-prod-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    transition: border-color 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.dr-comanda-prod-card:hover:not(:disabled) {
    border-color: #2563eb;
    background: #f8fafc;
}

.dr-comanda-prod-name {
    font-size: 0.9rem;
    line-height: 1.25;
}

.dr-servicio-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.dr-servicio-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 50rem;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.dr-servicio-pill.active,
.dr-servicio-pill:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.dr-comanda-items-list {
    max-height: 36vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dr-comanda-cart-row {
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
}

.dr-qty-pill-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
}

.dr-qty-pill-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Ticket Térmico de Cocina (58mm / 80mm) */
.dr-ticket-comanda-num {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 4px;
    color: #000000;
}

.dr-ticket-comanda-servicio {
    font-size: 1rem;
    font-weight: 800;
    margin-top: 4px;
    padding: 3px 6px;
    border: 1.5px solid #000000;
    border-radius: 6px;
    display: inline-block;
    color: #000000;
}

.dr-ticket-comanda-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dr-ticket-comanda-item-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #000000;
}

.dr-ticket-comanda-qty {
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dr-ticket-comanda-adicional {
    font-size: 0.78rem;
    font-weight: 800;
    margin-left: auto;
}

.dr-ticket-comanda-nota {
    margin-top: 2px;
    padding: 3px 6px;
    border-left: 3px solid #000000;
    font-size: 0.88rem;
    font-weight: 800;
    color: #000000;
}

.dr-ticket-comanda-nota-general {
    font-size: 0.86rem;
    color: #000000;
}

/* ==========================================================================
   PANTALLA DE COCINA (KDS - KITCHEN DISPLAY SYSTEM)
   ========================================================================== */
.dr-kds-wrapper {
    padding: 1rem 1.25rem 2rem;
    min-height: calc(100vh - 64px);
    background: #f8fafc;
}

.dr-kds-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.25rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.dr-kds-filtros {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dr-kds-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 50rem;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.dr-kds-filter-pill.active,
.dr-kds-filter-pill:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.dr-kds-filter-pill.active i,
.dr-kds-filter-pill:hover i {
    color: #ffffff !important;
}

.dr-kds-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 0.4rem;
    border-radius: 50rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 800;
}

.dr-kds-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 20px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dr-kds-card.estado-pendiente {
    border-color: #f59e0b;
}

.dr-kds-card.estado-en_preparacion {
    border-color: #2563eb;
}

.dr-kds-card.estado-listo {
    border-color: #059669;
}

.dr-kds-card-header {
    padding: 1rem 1.1rem 0.85rem;
    border-bottom: 1.5px solid #e2e8f0;
    background: #f8fafc;
}

.dr-kds-num {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
}

.dr-kds-ref {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.dr-kds-timer {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 50rem;
    font-weight: 800;
    font-size: 0.78rem;
}

.dr-kds-timer.is-normal {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.dr-kds-timer.is-alerta {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.dr-kds-timer.is-critico {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.dr-kds-card-body {
    padding: 0.9rem 1.1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dr-kds-item {
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
}

.dr-kds-item.is-adicional {
    background: #fef2f2;
    border-color: #fecaca;
}

.dr-kds-item.is-preparado {
    opacity: 0.55;
    text-decoration: line-through;
}

.dr-kds-item-qty {
    font-size: 1.05rem;
    font-weight: 800;
    color: #2563eb;
    margin-right: 0.35rem;
}

.dr-kds-item-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
}

.dr-kds-item-nota {
    margin-top: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.84rem;
    font-weight: 800;
}

.dr-kds-nota-general {
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    font-size: 0.84rem;
}

.dr-kds-card-footer {
    padding: 0.8rem 1.1rem;
    border-top: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
}

.dr-kds-action-btn {
    flex-grow: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 50rem;
    border: none;
    font-weight: 800;
    font-size: 0.88rem;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.18s ease;
}

.dr-kds-action-btn:hover {
    opacity: 0.92;
}

.dr-kds-action-btn.is-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.dr-kds-action-btn.is-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.dr-kds-action-btn.is-info {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.dr-kds-cancelada-card {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
}

.dr-kds-empty {
    padding: 3.5rem 1.5rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    text-align: center;
}

/* ==========================================================================
   AJUSTES RESPONSIVE MÓVIL ESTRICTO (COMANDAS & POS STANDALONE - CERO SCROLL X)
   ========================================================================== */
.pos-standalone-body,
.pos-layout-wrapper,
.pos-main-container,
.pos-col-catalogo,
.pos-catalogo-wrapper {
    max-width: 100%;
    overflow-x: clip;
}

.dr-comanda-prod-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.dr-comanda-prod-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.dr-comanda-prod-prices {
    line-height: 1.25;
}

@media (max-width: 575.98px) {
    .pos-navbar {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        gap: 0.35rem !important;
    }

    .dr-pos-btn-admin .btn-texto {
        display: none !important;
    }

    .dr-pos-btn-admin {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        gap: 0 !important;
        justify-content: center !important;
    }

    #gridProductosComanda.pos-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 4px 2px 92px 2px !important;
    }

    .dr-comanda-prod-card {
        padding: 0.65rem 0.7rem !important;
        border-radius: 14px !important;
    }

    .dr-comanda-prod-name {
        font-size: 0.84rem !important;
    }

    .dr-servicio-pill {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.45rem 0.35rem;
        font-size: 0.74rem;
        border-radius: 14px;
    }
}

@media (max-width: 340px) {
    #gridProductosComanda.pos-products-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Modal de Cobro POS en móvil: cero desbordamiento horizontal y switch alineado */
#modalCobroPOS .pos-modal-body {
    overflow-x: hidden !important;
}

.dr-pos-cocina-switch-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
}

.dr-pos-cocina-switch-wrap .form-check-input {
    margin: 0 !important;
    float: none !important;
    flex-shrink: 0;
    width: 2.6rem;
    height: 1.35rem;
    cursor: pointer;
}

.dr-pos-cocina-switch-wrap .form-check-label {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.25;
    cursor: pointer;
}

.dr-btn-buscar-pos {
    width: auto;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .dr-btn-buscar-pos {
        width: 100% !important;
    }
}

/* ==========================================================================
   MODO TV PARA PANTALLA DE COCINA (KDS): OSCURO, ZOOM GRANDE, SOLO TV & RESUMEN
   ========================================================================== */
.dr-kds-offline-banner {
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    background: #dc2626;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
}

.dr-kds-resumen-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.75rem 1.15rem;
    border-radius: 18px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
}

.dr-kds-resumen-titulo {
    font-weight: 800;
    font-size: 0.88rem;
    color: #1d4ed8;
    white-space: nowrap;
}

.dr-kds-resumen-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dr-kds-resumen-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50rem;
    background: #ffffff;
    border: 1.5px solid #93c5fd;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 700;
}

.dr-kds-resumen-pill strong {
    color: #2563eb;
    font-weight: 800;
}

.dr-kds-meta {
    color: #2563eb;
}

.dr-kds-card.is-atrasada {
    border-color: #dc2626 !important;
    border-width: 2.5px !important;
}

/* Modo Solo TV (oculta botones de acción para TVs colgadas sin touch) */
.dr-kds-solo-tv .dr-kds-card-footer {
    display: none !important;
}

/* Zoom TV Grande (legible desde 2 a 4 metros de distancia) */
.dr-kds-zoom-tv .dr-kds-num {
    font-size: 1.55rem !important;
}

.dr-kds-zoom-tv .dr-kds-ref {
    font-size: 1.2rem !important;
}

.dr-kds-zoom-tv .dr-kds-timer {
    font-size: 0.98rem !important;
    padding: 0.32rem 0.85rem !important;
}

.dr-kds-zoom-tv .dr-kds-item-qty {
    font-size: 1.38rem !important;
}

.dr-kds-zoom-tv .dr-kds-item-name {
    font-size: 1.24rem !important;
}

.dr-kds-zoom-tv .dr-kds-item-nota {
    font-size: 1.08rem !important;
    padding: 0.5rem 0.75rem !important;
}

.dr-kds-zoom-tv .dr-kds-resumen-pill {
    font-size: 1.02rem !important;
    padding: 0.4rem 0.9rem !important;
}

/* Modo TV Oscuro (Paleta Oficial Modo Oscuro DataRetail: #0f172a / #1e293b) */
.dr-kds-body-dark {
    background: #0f172a !important;
}

.dr-kds-dark.dr-kds-wrapper {
    background: #0f172a !important;
    color: #ffffff;
}

.dr-kds-dark .dr-kds-toolbar,
.dr-kds-dark .dr-kds-empty {
    background: #1e293b;
    border-color: #334155;
    color: #ffffff;
}

.dr-kds-dark .dr-kds-empty-title {
    color: #ffffff !important;
}

.dr-kds-dark .dr-kds-empty-sub {
    color: #dbeafe !important;
}

.dr-kds-dark .dr-kds-filter-pill {
    background: #0f172a;
    border-color: #334155;
    color: #dbeafe;
}

.dr-kds-dark .dr-kds-filter-pill.active,
.dr-kds-dark .dr-kds-filter-pill:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}

.dr-kds-dark .dr-kds-resumen-bar {
    background: #1e293b;
    border-color: #3b82f6;
}

.dr-kds-dark .dr-kds-resumen-titulo {
    color: #93c5fd;
}

.dr-kds-dark .dr-kds-resumen-pill {
    background: #0f172a;
    border-color: #334155;
    color: #ffffff;
}

.dr-kds-dark .dr-kds-resumen-pill strong {
    color: #38bdf8;
}

.dr-kds-dark .dr-kds-card {
    background: #1e293b;
    border-color: #334155;
}

.dr-kds-dark .dr-kds-card-header {
    background: #0f172a;
    border-color: #334155;
}

.dr-kds-dark .dr-kds-num,
.dr-kds-dark .dr-kds-ref,
.dr-kds-dark .dr-kds-item-name {
    color: #ffffff !important;
}

.dr-kds-dark .dr-kds-meta {
    color: #93c5fd;
}

.dr-kds-dark .dr-kds-item {
    background: #0f172a;
    border-color: #334155;
}

.dr-kds-dark .dr-kds-item-qty {
    color: #38bdf8;
}

.dr-kds-dark .dr-kds-item-nota {
    background: #78350f;
    border-color: #f59e0b;
    color: #fef3c7;
}

.dr-kds-dark .dr-kds-nota-general {
    background: #0c4a6e;
    border-color: #38bdf8;
    color: #e0f2fe;
}

.dr-kds-dark .dr-kds-card-footer {
    background: #0f172a;
    border-color: #334155;
}

/* Modo TV Oscuro Cohesivo: Navbar, Botones Outline y Pastillas Semánticas */
.dr-kds-body-dark .pos-navbar {
    background: #0b1220 !important;
    border-bottom: 1.5px solid #1e293b !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

.dr-kds-body-dark .pos-navbar-brand-name {
    color: #ffffff !important;
}

.dr-kds-body-dark .pos-rate-pill,
.dr-kds-body-dark .pos-user-badge,
.dr-kds-body-dark .pos-btn-fullscreen {
    background: #1e293b !important;
    border: 1.5px solid #334155 !important;
    color: #f8fafc !important;
}

.dr-kds-body-dark .pos-rate-pill i,
.dr-kds-body-dark .pos-btn-fullscreen i {
    color: #38bdf8 !important;
}

.dr-kds-body-dark .dr-pos-btn-admin,
.dr-kds-dark .btn-dr-outline {
    background: #0f172a !important;
    border: 1.5px solid #334155 !important;
    color: #e2e8f0 !important;
}

.dr-kds-body-dark .dr-pos-btn-admin:hover,
.dr-kds-dark .btn-dr-outline:hover {
    background: #1e3a8a !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

.dr-kds-body-dark .dr-pos-btn-admin .btn-icon-capsule,
.dr-kds-dark .btn-dr-outline .btn-icon-capsule {
    background: #1e293b !important;
    color: #93c5fd !important;
}

.dr-kds-body-dark .btn-filtro-limpiar {
    background: #7f1d1d !important;
    border: 1.5px solid #ef4444 !important;
    color: #fecaca !important;
}

.dr-kds-dark .dr-kds-pill-count {
    background: #1e3a8a;
    color: #dbeafe;
}

.dr-kds-dark .badge-pill-dr.badge-primary {
    background: #1e3a8a !important;
    color: #dbeafe !important;
    border-color: #3b82f6 !important;
}

.dr-kds-dark .badge-pill-dr.badge-success,
.dr-kds-dark .dr-kds-timer.is-normal {
    background: #064e3b !important;
    color: #a7f3d0 !important;
    border-color: #10b981 !important;
}

.dr-kds-dark .badge-pill-dr.badge-warning,
.dr-kds-dark .dr-kds-timer.is-alerta {
    background: #78350f !important;
    color: #fde68a !important;
    border-color: #f59e0b !important;
}

.dr-kds-dark .badge-pill-dr.badge-info {
    background: #0c4a6e !important;
    color: #bae6fd !important;
    border-color: #38bdf8 !important;
}

.dr-kds-dark .badge-pill-dr.badge-danger,
.dr-kds-dark .dr-kds-timer.is-critico {
    background: #7f1d1d !important;
    color: #fecaca !important;
    border-color: #ef4444 !important;
}

.dr-kds-dark .btn-action-icon.btn-action-success {
    background: #064e3b !important;
    border-color: #10b981 !important;
    color: #6ee7b7 !important;
}

.dr-kds-dark .dr-kds-card.estado-pendiente {
    border-top: 4px solid #f59e0b;
}

.dr-kds-dark .dr-kds-card.estado-en_preparacion {
    border-top: 4px solid #3b82f6;
}

.dr-kds-dark .dr-kds-card.estado-listo {
    border-top: 4px solid #10b981;
}
