/* ══════════════════════════════════════════════════════════════
   AxionERP - Styles
   ══════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ecf0f1;
    color: #2c3e50;
    min-height: 100vh;
    overflow-x: hidden;
}
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 13px; }
a { text-decoration: none; color: inherit; }

/* ─── VARIABLES ─── */
:root {
    --primary:   #2563eb;
    --primary-d: #1e40af;
    --success:   #16a34a;
    --warn:      #d97706;
    --danger:    #dc2626;
    --info:      #0891b2;
    --muted:     #64748b;
    --accent:    #7c3aed;
    --border:    #d1d5db;
    --bg-card:   #ffffff;
    --bg-page:   #f1f5f9;
    --text:      #1e293b;
    --text-muted:#64748b;
    --header-h:  52px;
    --radius:    8px;
    --shadow:    0 2px 8px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.18);
}

/* ─── APP WRAPPER ─── */
#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ──────────────────────────────────────────────────────────────
   HEADER
   ────────────────────────────────────────────────────────────── */
#header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: #1e293b;
    color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.header-left { display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 6px; }
.logo-symbol { font-size: 20px; color: #facc15; }
.logo-text { font-size: 18px; letter-spacing: .5px; color: #f8fafc; }
.logo-text strong { color: #60a5fa; }
.btn-back {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    transition: background .2s;
}
.btn-back:hover { background: rgba(255,255,255,.22); }
.module-title { font-size: 15px; font-weight: 600; color: #94a3b8; letter-spacing: .5px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-clock { font-size: 12px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.user-chip {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: 4px 10px; border-radius: 20px;
    font-size: 12px; color: #cbd5e1;
}

/* ──────────────────────────────────────────────────────────────
   MAIN / VIEWS
   ────────────────────────────────────────────────────────────── */
#main-content {
    margin-top: var(--header-h);
    flex: 1;
    min-height: calc(100vh - var(--header-h));
}
.view { display: none; }
.view.active { display: block; }
.module-content { padding: 16px; }

/* ──────────────────────────────────────────────────────────────
   HOME MENU
   ────────────────────────────────────────────────────────────── */
.home-wrap {
    min-height: calc(100vh - var(--header-h));
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px 16px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.home-header { text-align: center; margin-bottom: 32px; }
.home-header h1 { font-size: 24px; color: #1e293b; margin-bottom: 6px; }
.home-header p { color: #64748b; font-size: 14px; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 160px);
    gap: 16px;
}
@media (max-width: 720px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

.menu-btn {
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    padding: 24px 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s, border-color .15s;
    min-height: 120px;
}
.menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.menu-btn.accent  { border-color: var(--accent);  background: #f5f3ff; }
.menu-btn.success { border-color: var(--success); background: #f0fdf4; }
.menu-btn.warn    { border-color: var(--warn);    background: #fffbeb; }
.menu-btn.info    { border-color: var(--info);    background: #f0f9ff; }
.menu-btn.muted   { border-color: var(--muted);   background: #f8fafc; }
.mbtn-icon  { font-size: 30px; }
.mbtn-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--text); }
.mbtn-badge {
    position: absolute; top: 8px; right: 8px;
    background: var(--danger); color: #fff;
    border-radius: 50%; width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────
   CARDS / PANELS
   ────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: #f8fafc;
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-header h2 { font-size: 14px; font-weight: 700; color: var(--text); }
.card-body { padding: 16px; }

/* Sub-tabs */
.sub-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.sub-tab {
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8fafc;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
    transition: all .15s;
}
.sub-tab:hover { background: #e2e8f0; color: var(--text); }
.sub-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ──────────────────────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 6px; border: none;
    font-size: 12px; font-weight: 600;
    transition: opacity .15s, transform .1s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary);  color: #fff; }
.btn-success { background: var(--success);  color: #fff; }
.btn-danger  { background: var(--danger);   color: #fff; }
.btn-warn    { background: var(--warn);     color: #fff; }
.btn-info    { background: var(--info);     color: #fff; }
.btn-muted   { background: #e2e8f0;         color: var(--text); border: 1px solid var(--border); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn-lg { padding: 10px 20px; font-size: 14px; }

/* ──────────────────────────────────────────────────────────────
   FORMS
   ────────────────────────────────────────────────────────────── */
.form-grid { display: grid; gap: 12px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.form-control {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-control[readonly] { background: #f8fafc; color: var(--text-muted); }

/* ──────────────────────────────────────────────────────────────
   TABLES (general)
   ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; }
thead { background: #1e293b; color: #fff; }
thead th { padding: 9px 10px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; }
tbody tr { border-bottom: 1px solid #f1f5f9; transition: background .1s; }
tbody tr:hover { background: #f8fafc; }
tbody td { padding: 8px 10px; vertical-align: middle; }
tfoot { background: #f1f5f9; font-weight: 600; }
tfoot td { padding: 8px 10px; }

/* ──────────────────────────────────────────────────────────────
   OPERATION SHEET (Boleta / hoja de calculo)
   ────────────────────────────────────────────────────────────── */
.op-sheet-wrap {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
}
.op-sheet-header {
    background: #1e293b;
    color: #fff;
    padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
}
.op-sheet-title { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.op-sheet-meta { font-size: 11px; color: #94a3b8; }

/* Scroll horizontal en la tabla de la hoja */
.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* The spreadsheet table */
.grid-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.grid-table thead th {
    background: #334155;
    color: #e2e8f0;
    padding: 7px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    border-right: 1px solid #475569;
    white-space: nowrap;
    text-align: center;
}
.grid-table thead th:first-child { text-align: left; }
.grid-table tbody tr { border-bottom: 1px solid #e2e8f0; }
.grid-table tbody tr:nth-child(even) { background: #f8fafc; }
.grid-table tbody tr:hover { background: #eff6ff; }
.grid-table tbody td {
    padding: 0;
    border-right: 1px solid #e2e8f0;
    vertical-align: middle;
    height: 34px;
}
.grid-table tbody td:last-child { border-right: none; }

/* cell display (non-editing) */
.cell-display {
    display: block;
    padding: 6px 8px;
    min-height: 34px;
    cursor: text;
    width: 100%;
    color: var(--text);
}
.cell-display:hover { background: #dbeafe; }
.cell-display.placeholder { color: #94a3b8; font-style: italic; }

/* cell input (editing) */
.cell-input {
    width: 100%;
    height: 34px;
    padding: 4px 8px;
    border: 2px solid var(--primary);
    border-radius: 0;
    font-size: 12px;
    background: #eff6ff;
    outline: none;
}
.cell-input.right { text-align: right; }
/* Ocultar flechas de incremento en celdas numéricas */
.cell-input[type="number"]::-webkit-inner-spin-button,
.cell-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cell-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* Grid columns */
.col-cant { width: 56px; }
.col-desc { min-width: 150px; }
.col-pres { width: 90px; }
.col-punit { width: 82px; }
.col-sub { width: 82px; background: #f8fafc; }
.col-del { width: 30px; text-align: center; }

/* Totals area */
.totals-section {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}
.totals-box { min-width: 280px; }
.total-row {
    display: flex; justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 12px;
}
.total-row:last-child { border-bottom: none; }
.total-row.grand {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    border-top: 2px solid #334155;
    padding-top: 8px;
    margin-top: 4px;
}
.total-label { color: var(--text-muted); }
.total-val { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Op action bar */
.op-actions {
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; flex-wrap: wrap;
}
.op-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ──────────────────────────────────────────────────────────────
   AUTOCOMPLETE DROPDOWN
   ────────────────────────────────────────────────────────────── */
.autocomplete-dropdown {
    position: fixed;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 9000;
    max-height: 220px;
    overflow-y: auto;
    min-width: 280px;
}
.ac-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    display: flex; flex-direction: column; gap: 2px;
}
.ac-item:hover { background: #eff6ff; }
.ac-item:last-child { border-bottom: none; }
.ac-item.ac-highlighted { background: #dbeafe; }
.ac-item.ac-highlighted .ac-name { color: var(--primary); }
.ac-name { font-weight: 600; font-size: 12px; }
.ac-meta { font-size: 11px; color: var(--text-muted); }
.ac-new { color: var(--success); font-style: italic; }

/* Presentation dropdown */
.pres-dropdown {
    position: fixed;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 9000;
    min-width: 200px;
}
.pres-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    display: flex; justify-content: space-between;
}
.pres-item:hover { background: #eff6ff; }
.pres-item.pres-highlighted { background: #dbeafe; }
.pres-item.pres-highlighted span:first-child { color: var(--primary); font-weight: 700; }

/* ──────────────────────────────────────────────────────────────
   MODAL
   ────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 8000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.modal-box.modal-lg { max-width: 860px; }
.modal-box.modal-sm { max-width: 420px; }
.modal-header {
    padding: 14px 18px;
    background: #1e293b;
    color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.modal-header h3 { font-size: 15px; font-weight: 600; }
.modal-close-btn {
    background: none; border: none;
    color: #94a3b8; font-size: 16px;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.modal-close-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: flex-end; gap: 8px;
    flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────
   FINALIZE MODAL OPTIONS
   ────────────────────────────────────────────────────────────── */
.fin-options { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.fin-opt {
    flex: 1; min-width: 120px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
}
.fin-opt:hover { border-color: var(--primary); background: #eff6ff; }
.fin-opt.selected { border-color: var(--primary); background: #dbeafe; }
.fin-opt-icon { font-size: 22px; }
.fin-opt-label { font-size: 12px; font-weight: 700; margin-top: 4px; color: var(--text); }
.fin-opt-desc { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.pago-options { display: flex; gap: 8px; margin-bottom: 12px; }
.pago-opt {
    flex: 1; padding: 10px;
    border: 2px solid var(--border); border-radius: 8px;
    text-align: center; cursor: pointer; transition: all .15s;
    font-size: 12px; font-weight: 600;
}
.pago-opt:hover { border-color: var(--success); }
.pago-opt.selected { border-color: var(--success); background: #f0fdf4; color: var(--success); }

.cpe-options { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cpe-opt {
    flex: 1; min-width: 100px;
    padding: 10px; border: 2px solid var(--border); border-radius: 8px;
    text-align: center; cursor: pointer; transition: all .15s;
    font-size: 12px; font-weight: 600;
}
.cpe-opt:hover { border-color: var(--primary); }
.cpe-opt.selected { border-color: var(--primary); background: #eff6ff; color: var(--primary); }

/* ──────────────────────────────────────────────────────────────
   BADGES / STATUS
   ────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 2px 8px; border-radius: 20px;
    font-size: 10px; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase;
}
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-danger  { background: #fee2e2; color: #dc2626; }
.badge-warn    { background: #fef3c7; color: #b45309; }
.badge-info    { background: #e0f2fe; color: #0369a1; }
.badge-muted   { background: #f1f5f9; color: #64748b; }
.badge-primary { background: #dbeafe; color: #1d4ed8; }

/* ──────────────────────────────────────────────────────────────
   TOAST NOTIFICATIONS
   ────────────────────────────────────────────────────────────── */
.toast-container {
    position: fixed; bottom: 20px; right: 20px;
    z-index: 10000;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.toast {
    pointer-events: all;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    font-size: 13px; font-weight: 500;
    animation: slideInRight .3s ease;
    max-width: 320px;
    display: flex; align-items: center; gap: 8px;
}
.toast-success { background: #16a34a; color: #fff; }
.toast-error   { background: #dc2626; color: #fff; }
.toast-info    { background: #0891b2; color: #fff; }
.toast-warn    { background: #d97706; color: #fff; }
@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ──────────────────────────────────────────────────────────────
   INVENTARIO MODULE
   ────────────────────────────────────────────────────────────── */
.inv-toolbar {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px; flex-wrap: wrap;
}
.inv-search {
    flex: 1; min-width: 200px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 6px; font-size: 13px;
}
.inv-search:focus { outline: none; border-color: var(--primary); }

/* ──────────────────────────────────────────────────────────────
   AJUSTES / CRUD TABLES
   ────────────────────────────────────────────────────────────── */
.crud-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.crud-search { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }

/* ──────────────────────────────────────────────────────────────
   PRINT STYLES (CPE/Boleta)
   ────────────────────────────────────────────────────────────── */
.print-area { display: none; }

@media (max-width: 600px) {
    /* Cero márgenes laterales en móvil */
    .module-content { padding: 0; }

    /* Hoja de operación ocupa todo el ancho */
    .op-sheet-wrap {
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
    }

    /* Columnas compactas en móvil */
    .col-cant  { width: 40px; }
    .col-desc  { min-width: 120px; }
    .col-pres  { width: 68px; }
    .col-punit { width: 64px; }
    .col-sub   { width: 68px; }

    /* Texto de cabeceras y celdas más pequeño */
    .grid-table { font-size: 11px; }
    .grid-table thead th { padding: 6px 3px; font-size: 10px; }
    .cell-display { padding: 5px 3px; }
    .cell-input   { padding: 4px 3px; font-size: 11px; }

    /* Totals a ancho completo en móvil */
    .totals-section { justify-content: stretch; }
    .totals-box { min-width: 0; width: 100%; }
}

@media print {
    body > *:not(#print-area) { display: none !important; }
    #print-area {
        display: block !important;
        position: fixed; inset: 0;
        background: #fff;
        z-index: 99999;
    }

    .receipt {
        width: 78mm;
        margin: 0 auto;
        font-family: 'Courier New', monospace;
        font-size: 10px;
        color: #000;
    }
    .receipt-header { text-align: center; margin-bottom: 8px; }
    .receipt-title { font-size: 12px; font-weight: 700; }
    .receipt-subtitle { font-size: 10px; }
    .receipt-divider { border-top: 1px dashed #000; margin: 6px 0; }
    .receipt table { width: 100%; font-size: 9px; }
    .receipt table th, .receipt table td { padding: 1px 2px; }
    .receipt .right { text-align: right; }
    .receipt .total-line { font-weight: 700; border-top: 1px solid #000; }
}

/* screen preview */
.receipt-preview {
    width: 320px;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 16px;
    border: 1px dashed #999;
    border-radius: 4px;
    color: #000;
    margin: 0 auto;
}
.receipt-preview .rp-header { text-align: center; margin-bottom: 8px; }
.receipt-preview .rp-title { font-weight: 700; font-size: 13px; }
.receipt-preview .rp-divider { border-top: 1px dashed #999; margin: 6px 0; }
.receipt-preview table { width: 100%; font-size: 10px; }
.receipt-preview .rp-row-total { font-weight: 700; border-top: 1px solid #000; }
.receipt-preview .right { text-align: right; }

/* ──────────────────────────────────────────────────────────────
   PENDIENTES
   ────────────────────────────────────────────────────────────── */
.pend-item {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--warn);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.pend-info { flex: 1; }
.pend-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.pend-meta { font-size: 11px; color: var(--text-muted); }
.pend-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ──────────────────────────────────────────────────────────────
   CAJA MODULE
   ────────────────────────────────────────────────────────────── */
.caja-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
}
.caja-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.caja-nombre { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.caja-saldo  { font-size: 24px; font-weight: 800; color: var(--success); }
.caja-estado { font-size: 11px; margin-top: 4px; }

/* ──────────────────────────────────────────────────────────────
   MISC / HELPERS
   ────────────────────────────────────────────────────────────── */
.text-right  { text-align: right !important; }
.text-center { text-align: center !important; }
.text-muted  { color: var(--text-muted); }
.fw-700      { font-weight: 700; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.mb-8        { margin-bottom: 8px; }
.flex        { display: flex; }
.flex-between{ display: flex; justify-content: space-between; align-items: center; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.empty-state {
    text-align: center; padding: 40px 20px;
    color: var(--text-muted); font-size: 13px;
}
.empty-state .empty-icon { font-size: 36px; margin-bottom: 8px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
