/* ============================================================
   POS PANAMA — Design System v1
   Stack: Bootstrap 5.3 + CSS custom properties
   Base tomada del design system de Panasistemas (proyecto Colegio),
   adaptada para punto de venta. Estilos específicos de la pantalla
   de caja y tickets están en pos.css (no en este archivo).
   ============================================================ */

/* ── Token de diseño ───────────────────────────────────────── */
:root {
    --sidebar-width:   240px;
    --navbar-height:   58px;
    --primary:         #2563eb;
    --primary-dark:    #1d4ed8;
    --primary-light:   #eff6ff;
    --success:         #059669;
    --warning:         #d97706;
    --danger:          #dc2626;
    --info:            #0891b2;
    --surface:         #ffffff;
    --surface-2:       #f8fafc;
    --border:          rgba(0,0,0,.07);
    --text-primary:    #0f172a;
    --text-secondary:  #64748b;
    --text-muted:      #94a3b8;
    --shadow-sm:       0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:       0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:       0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.05);
    --radius-sm:       6px;
    --radius-md:       10px;
    --radius-lg:       14px;
    --radius-xl:       20px;
    --transition:      .18s cubic-bezier(.4,0,.2,1);
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: .875rem;
    color: var(--text-primary);
    background: var(--surface-2);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.22); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
    height: var(--navbar-height);
    /* Mismo azul de marca oscuro que el fondo del login, para consistencia. */
    background: linear-gradient(135deg, #060e2e 0%, #0d1f6b 35%, #142a8c 65%, #0a1650 100%) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    border-bottom: none;
}

.navbar .navbar-brand { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }

/* ── Sidebar ────────────────────────────────────────────────── */
#sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    transition: width var(--transition), left var(--transition);
    overflow: hidden;
    flex-shrink: 0;
}

#sidebar.collapsed { width: 56px; }
#sidebar.collapsed .sidebar-label { opacity: 0; width: 0; overflow: hidden; white-space: nowrap; }
#sidebar.collapsed .sidebar-role  { display: none; }

.sidebar-role {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .85rem;
    margin: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: .83rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.sidebar-link i { font-size: 1rem; flex-shrink: 0; }

.sidebar-link:hover:not(.active) {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-link.active i { color: var(--primary); }

.sidebar-section {
    padding: .5rem 1rem .25rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-top: .5rem;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border);
    padding: .85rem 1.25rem;
    font-weight: 600;
    font-size: .85rem;
    color: var(--text-primary);
}

.card-header.bg-primary  { background: var(--primary)  !important; color: #fff; }
.card-header.bg-success  { background: var(--success)  !important; color: #fff; }
.card-header.bg-warning  { background: var(--warning)  !important; color: #fff; }
.card-header.bg-danger   { background: var(--danger)   !important; color: #fff; }
.card-header.bg-info     { background: var(--info)     !important; color: #fff; }

/* KPI cards */
.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.kpi-icon {
    width: 46px; height: 46px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.kpi-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--text-primary); }
.kpi-label { font-size: .78rem; color: var(--text-secondary); font-weight: 500; margin-top: .15rem; }
.kpi-trend { font-size: .75rem; font-weight: 700; margin-left: .35rem; }
.kpi-trend-up { color: var(--success); }
.kpi-trend-down { color: var(--danger); }

/* ── Dashboard: tarjetas de gráfico ────────────────────────────── */
.chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}
.chart-card-header { margin-bottom: 1rem; }
.chart-card-title { font-size: .95rem; font-weight: 700; color: var(--text-primary); }
.chart-card-subtitle { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }

.chart-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem; padding: 2.5rem 1rem; color: var(--text-muted); font-size: .85rem;
}
.chart-empty i { font-size: 1.8rem; opacity: .5; }

/* Línea de ventas 14 días */
.chart-linea-wrap { position: relative; }
.chart-linea-svg { width: 100%; height: 200px; overflow: visible; }
.chart-axis-line { stroke: var(--border); stroke-width: 1; }
.chart-area-fill { fill: var(--primary); opacity: .08; }
.chart-linea-path { fill: none; stroke: var(--primary); stroke-width: 2; }
.chart-linea-punto { fill: var(--primary); stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.chart-linea-punto:hover { r: 6; }
.chart-linea-ejes {
    display: flex; justify-content: space-between; margin-top: .35rem;
    font-size: .68rem; color: var(--text-muted);
}

/* Dona de formas de pago */
.chart-dona-wrap { position: relative; display: flex; justify-content: center; }
.chart-dona-svg { width: 160px; height: 160px; }
.chart-dona-segmento { cursor: pointer; transition: opacity var(--transition); }
.chart-dona-segmento:hover { opacity: .82; }
.chart-dona-total-label { font-size: .6rem; fill: var(--text-muted); font-family: inherit; }
.chart-dona-total-valor { font-size: .62rem; font-weight: 700; fill: var(--text-primary); font-family: inherit; }

.chart-leyenda { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.chart-leyenda-item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.chart-leyenda-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.chart-leyenda-nombre { color: var(--text-secondary); flex-grow: 1; }
.chart-leyenda-valor { font-weight: 600; color: var(--text-primary); }

/* Barras horizontales (top departamentos) */
.chart-barras { display: flex; flex-direction: column; gap: .9rem; }
.chart-barra-fila { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: .6rem; }
.chart-barra-label { font-size: .8rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-barra-track { background: var(--surface-2); border-radius: 999px; height: 10px; overflow: hidden; }
.chart-barra-fill { background: var(--primary); height: 100%; border-radius: 999px; transition: width .4s ease; }
.chart-barra-valor { font-size: .8rem; font-weight: 600; color: var(--text-primary); text-align: right; }

/* Tooltip flotante compartido (línea y dona) */
.chart-tooltip {
    position: absolute; background: var(--text-primary); color: #fff;
    font-size: .72rem; line-height: 1.4; padding: .45rem .65rem; border-radius: 6px;
    pointer-events: none; white-space: nowrap; z-index: 20; box-shadow: var(--shadow-md);
    transform: translate(0, -100%);
}

/* Resumen operativo (KPIs secundarios en tarjeta) */
.chart-resumen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chart-resumen-item { display: flex; align-items: center; gap: .65rem; }
.chart-resumen-icon {
    width: 38px; height: 38px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.chart-resumen-valor { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.chart-resumen-label { font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }
.chart-resumen-link {
    display: inline-flex; align-items: center; margin-top: .9rem; font-size: .82rem;
    font-weight: 600; color: var(--primary); text-decoration: none;
}
.chart-resumen-link:hover { text-decoration: underline; }

/* Accesos rápidos */
.quick-link-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem;
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.quick-link-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--primary); }
.quick-link-icon {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: .6rem;
}

/* ── Page header ────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -.02em;
}

.page-subtitle {
    font-size: .8rem;
    color: var(--text-secondary);
    margin: .15rem 0 0;
}

/* ── Tablas ─────────────────────────────────────────────────── */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(37,99,235,.03);
}

.table th {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border) !important;
    padding: .65rem 1rem;
    white-space: nowrap;
    background: var(--surface-2);
}

.table td {
    vertical-align: middle;
    font-size: .845rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr { transition: background var(--transition); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
    font-size: .72rem;
    font-weight: 600;
    padding: .28em .65em;
    border-radius: 99px;
    letter-spacing: .02em;
}

.status-active    { background: #dcfce7; color: #15803d; }
.status-inactive  { background: #f1f5f9; color: #64748b; }
.status-pending   { background: #fef9c3; color: #a16207; }
.status-verified  { background: #dbeafe; color: #1d4ed8; }
.status-rejected  { background: #fee2e2; color: #b91c1c; }
.status-suspended { background: #fce7f3; color: #be185d; }
.status-graded    { background: #d1fae5; color: #065f46; }
.status-draft     { background: #f1f5f9; color: #475569; }
.status-closed    { background: #fce7f3; color: #9d174d; }

/* ── Botones ────────────────────────────────────────────────── */
.btn {
    font-size: .83rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: .42rem .9rem;
    transition: all var(--transition);
    letter-spacing: .01em;
}

.btn-sm { font-size: .78rem; padding: .28rem .65rem; }
.btn-lg { font-size: .95rem; padding: .6rem 1.4rem; }
.btn-icon { padding: .4rem .5rem; }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 1px 2px rgba(37,99,235,.25);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 3px 8px rgba(37,99,235,.3);
    transform: translateY(-1px);
}

.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* ── Formularios ────────────────────────────────────────────── */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,.14);
    font-size: .845rem;
    color: var(--text-primary);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    padding: .45rem .75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-label {
    font-weight: 600;
    font-size: .8rem;
    color: var(--text-secondary);
    margin-bottom: .35rem;
    letter-spacing: .01em;
}

.form-text { font-size: .76rem; color: var(--text-muted); }

.input-group-text {
    background: var(--surface-2);
    border-color: rgba(0,0,0,.14);
    color: var(--text-secondary);
    font-size: .845rem;
}

/* Sección de formulario */
.form-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.form-section-header {
    padding: .8rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.form-section-header i { color: var(--primary); font-size: .95rem; }
.form-section-header span { font-weight: 700; font-size: .82rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; }

.form-section-body { padding: 1.25rem; }

/* ── Alertas flash ──────────────────────────────────────────── */
.alert {
    border: none !important;
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
    font-size: .83rem;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.alert i {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .85rem;
    margin-top: .05rem;
}

.alert-success { background: #f0fdf6; color: #14532d; border-left-color: var(--success); }
.alert-success i { background: #dcfce7; color: var(--success); }

.alert-danger { background: #fef2f2; color: #7f1d1d; border-left-color: var(--danger); }
.alert-danger i { background: #fee2e2; color: var(--danger); }

.alert-warning { background: #fffbeb; color: #78350f; border-left-color: var(--warning); }
.alert-warning i { background: #fef3c7; color: var(--warning); }

.alert-info { background: #f5f8ff; color: #1e3a8a; border-left-color: var(--primary); }
.alert-info i { background: var(--primary-light); color: var(--primary); }

.alert a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
    font-size: .78rem;
    background: none;
    padding: 0;
    margin: 0;
    --bs-breadcrumb-divider-color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 600; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
    padding: 3.5rem 1rem;
    text-align: center;
}
.empty-state-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: .4;
}
.empty-state-title { font-size: .95rem; font-weight: 600; color: var(--text-secondary); margin-bottom: .35rem; }
.empty-state-text  { font-size: .82rem; color: var(--text-muted); }

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
}
.avatar-sm  { width: 28px; height: 28px; font-size: .7rem; }
.avatar-md  { width: 36px; height: 36px; }
.avatar-lg  { width: 48px; height: 48px; font-size: 1rem; }
.avatar-xl  { width: 72px; height: 72px; font-size: 1.5rem; }

/* ── Tabstrip ───────────────────────────────────────────────── */
.nav-tabs-custom {
    border-bottom: 2px solid var(--border);
    gap: .25rem;
}
.nav-tabs-custom .nav-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: .55rem .9rem;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.nav-tabs-custom .nav-link:hover { color: var(--primary); background: none; }
.nav-tabs-custom .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }

/* ── Search bar ─────────────────────────────────────────────── */
.search-bar {
    position: relative;
    max-width: 320px;
}
.search-bar input { padding-left: 2.2rem; }
.search-bar .search-icon {
    position: absolute;
    left: .7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: .85rem;
}

/* ── Toolbar ────────────────────────────────────────────────── */
.toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

/* ── Tabla con toolbar integrada ─────────────────────────────── */
.data-table-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ── Modals ─────────────────────────────────────────────────── */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
}
.modal-footer { border-top: 1px solid var(--border); padding: .85rem 1.25rem; }
.modal-title  { font-size: .95rem; font-weight: 700; }

/* ── Dropdown ───────────────────────────────────────────────── */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: .845rem;
    padding: .35rem;
}
.dropdown-item {
    border-radius: var(--radius-sm);
    padding: .45rem .85rem;
    font-size: .83rem;
    color: var(--text-primary);
    transition: background var(--transition);
}
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-divider { border-color: var(--border); margin: .3rem 0; }

/* ── Login / Auth pages ─────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    /* Azul de marca (logo PAN POS, tono de la "P") en degradado oscuro
       multidireccional, con radiales sutiles superpuestos para dar
       profundidad y evitar un fondo plano. */
    background:
        radial-gradient(circle at 15% 15%, rgba(37,99,235,.30) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(10,20,60,.6) 0%, transparent 50%),
        linear-gradient(135deg, #060e2e 0%, #0d1f6b 35%, #142a8c 65%, #0a1650 100%);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 2.5rem;
}
.auth-logo {
    width: 56px; height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ── Toasts ─────────────────────────────────────────────────── */
.toast {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-lg);
    font-size: .845rem;
}

/* ── Progress ───────────────────────────────────────────────── */
.progress { border-radius: 99px; height: 6px; background: var(--border); }
.progress-bar { border-radius: 99px; }

/* ── Divider con texto ──────────────────────────────────────── */
.divider-text {
    display: flex; align-items: center; gap: .75rem; color: var(--text-muted);
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Footer de aplicación ───────────────────────────────────── */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0 .25rem;
    border-top: 1px solid var(--border);
    font-size: .74rem;
    color: var(--text-muted);
}

.app-footer a {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}
.app-footer a:hover { color: var(--primary); }

.app-footer-version {
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: .15rem .6rem;
    font-weight: 600;
}

@media (max-width: 576px) {
    .app-footer { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    #sidebar {
        position: fixed;
        left: calc(-1 * var(--sidebar-width));
        top: var(--navbar-height);
        height: calc(100vh - var(--navbar-height));
        z-index: 1035;
        box-shadow: 4px 0 20px rgba(0,0,0,.15);
    }
    #sidebar.show { left: 0; }
    .page-header { flex-direction: column; align-items: flex-start; }
    #mainContent { padding: 1rem !important; }
}

/* ── Impresión ──────────────────────────────────────────────── */
@media print {
    #sidebar, .navbar, .btn, nav[aria-label="breadcrumb"], .no-print, .toolbar { display: none !important; }
    #mainContent { padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { background: #fff !important; }
}

/* ── SweetAlert2 (notify.js) — alineado al design system ─────── */
.pos-swal-popup {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    border-radius: var(--radius-lg);
}
.pos-swal-popup .swal2-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.pos-swal-popup .swal2-html-container { font-size: .9rem; color: var(--text-secondary); }
.pos-swal-popup .swal2-input {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,.14);
    font-size: 1rem;
}
