/* ============================================================
   TechControl ASIM - Hoja de estilos general
   ============================================================ */

:root {
    --bg-sidebar: #0e2c4a;
    --bg-sidebar-hover: #163f68;
    --bg-selected: #1f6fc0;
    --bg-selected-hover: #17568f;
    --bg-content: #f2f4f8;
    --text-light: #ffffff;
    --text-muted: #a6bed6;
    --text-dark: #14283e;
    --text-body: #33393f;
    --accent-gold: #f2b705;
    --accent-gold-dark: #c99400;
    --header-inventario: #159a9c;
    --header-consultas: #e0932c;
    --header-reportes: #d15353;
    --header-catalogos: #c99400;
    --estado-reparado: #1f9d55;
    --estado-recibido: #1f6fc0;
    --estado-revision: #e0932c;
    --estado-entregado: #6c757d;
    --estado-anulado: #c0392b;
    --border-color: #dde3ec;
    --shadow-color: rgba(14, 40, 70, .1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg-content);
    color: var(--text-body);
}

a { text-decoration: none; color: inherit; }

/* ---------- Layout general ---------- */
.app-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #181633;
    color: white;
    height: 52px;
    padding: 0 16px;
    flex-shrink: 0;
}

.topbar-left { display: flex; align-items: center; gap: 10px; }

.topbar-logo { height: 30px; }

.topbar-title { font-weight: 700; font-size: 15px; }

.btn-toggle-sidebar {
    background: none; border: none; color: white; font-size: 20px;
    cursor: pointer; padding: 6px 10px; border-radius: 6px;
}
.btn-toggle-sidebar:hover { background: var(--bg-sidebar-hover); }

.topbar-user { color: var(--text-muted); font-size: 13px; position: relative; cursor: pointer; }
.topbar-user .dropdown-menu { right: 0; left: auto; top: 130%; }

.app-body { display: flex; flex: 1; min-height: 0; }

/* ---------- Sidebar ---------- */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: var(--text-light);
    overflow-y: auto;
    flex-shrink: 0;
    transition: width .15s ease;
    padding-bottom: 20px;
}
.sidebar.collapsed { width: 0; overflow: hidden; padding: 0; }

/* En pantallas angostas (celular), el menú abierto se muestra como una
   cortina flotante ENCIMA del contenido (no empuja/comprime la página),
   y se cierra solo al elegir una opción (ver assets/js/app.js). */
@media (max-width: 760px) {
    .sidebar {
        position: fixed;
        top: 52px; /* debajo de la barra superior */
        left: 0;
        bottom: 0;
        width: 82vw;
        max-width: 300px;
        z-index: 80;
        box-shadow: 4px 0 18px rgba(0,0,0,.25);
    }
    .sidebar.collapsed { width: 0; }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 52px 0 0 0;
        background: rgba(0,0,0,.4);
        z-index: 70;
    }
    .sidebar-overlay.visible { display: block; }
}

.sidebar-logo {
    padding: 16px;
    position: relative;
}

.menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px; margin: 1px 10px; border-radius: 6px;
    color: var(--text-light); font-size: 13.5px; cursor: pointer;
    white-space: nowrap;
}
.menu-item:hover { background: var(--bg-sidebar-hover); }
.menu-item.active { background: var(--bg-selected); }
.menu-item .icon { width: 18px; text-align: center; }

.menu-section { margin-top: 14px; }
.menu-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 16px; font-size: 11.5px; font-weight: 700;
    letter-spacing: .03em; cursor: pointer; user-select: none;
}
.menu-section-body { display: block; }
.menu-section-body.collapsed { display: none; }
.menu-section-header .chevron { transition: transform .15s ease; font-size: 10px; }
.menu-section-header.closed .chevron { transform: rotate(-90deg); }

/* ---------- Ítem de menú con sub-opciones anidadas (ej. Pedidos a proveedor) ---------- */
.menu-item-conhijos { display: flex; align-items: center; }
.menu-item-conhijos .menu-item { flex: 1; margin: 1px 0 1px 10px; }
.menu-item-toggle-arrow {
    padding: 9px 14px; cursor: pointer; font-size: 10px; color: var(--text-muted);
    transition: transform .15s ease;
}
.menu-item-conhijos.closed .menu-item-toggle-arrow { transform: rotate(-90deg); }
.submenu-anidado { padding-left: 20px; }
.submenu-anidado .submenu-item { font-size: 12.5px; }

.menu-logout {
    margin: 20px 10px 0; padding: 9px 16px; border-radius: 6px;
    color: var(--text-light); cursor: pointer; display: flex; gap: 10px; align-items: center;
}
.menu-logout:hover { background: #5c1f1f; }

/* ---------- Contenido ---------- */
.content { flex: 1; overflow-y: auto; padding: 24px 30px; }

.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.page-header h1 { font-size: 26px; margin: 0; color: var(--text-dark); }

.card {
    background: white; border-radius: 10px; padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(14, 40, 70, .1);
}

.filters-bar {
    display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
    margin-bottom: 16px;
}
.filters-bar .field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.filters-bar label { font-size: 12px; color: #6b6b8a; }

/* ---------- Formularios ---------- */
label { font-size: 12.5px; color: #6b6b8a; display: block; margin-bottom: 4px; }
input[type=text], input[type=number], input[type=date], input[type=datetime-local],
input[type=password], input[type=email], input[type=tel], select, textarea {
    width: 100%; padding: 9px 10px; border: 1px solid var(--border-color);
    border-radius: 7px; font-size: 13.5px; background: white; color: var(--text-body);
    font-family: inherit;
}
textarea { resize: vertical; }
.form-row { display: flex; gap: 14px; margin-bottom: 12px; }
.form-row > div { flex: 1; }
.form-group { margin-bottom: 12px; }
.field-with-add { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 8px; border: none;
    font-size: 13.5px; cursor: pointer; font-weight: 600;
}
.btn-primary { background: var(--bg-selected); color: white; }
.btn-primary:hover { background: var(--bg-selected-hover); }
.btn-secondary { background: transparent; color: #333; border: 1px solid #ccc; }
.btn-secondary:hover { background: #f2f2f2; }
.btn-success { background: var(--estado-reparado); color: white; }
.btn-success:hover { background: #158a4c; }
.btn-danger { background: #c0392b; color: white; }
.btn-danger:hover { background: #96281f; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon {
    background: transparent; border: none; cursor: pointer; font-size: 15px;
    width: 30px; height: 28px; border-radius: 6px; color: var(--bg-selected);
}
.btn-icon:hover { background: #eef0fb; }
.btn-icon.danger { color: #c0392b; }
.btn-icon.danger:hover { background: #fdecea; }
.btn-add {
    width: 22px; height: 22px; border-radius: 6px; border: none;
    background: var(--bg-selected); color: white; font-weight: 700; cursor: pointer;
    font-size: 13px; line-height: 1;
}

/* ---------- Tablas ---------- */
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th {
    text-align: left; font-size: 12px; font-weight: 700; color: #6b6b8a;
    padding: 10px; border-bottom: 1px solid var(--border-color);
}
table.data-table td {
    padding: 10px; border-bottom: 1px solid #f1f2fa; font-size: 13.5px; vertical-align: middle;
}
table.data-table tr:last-child td { border-bottom: none; }
.empty-state { text-align: center; color: #999; padding: 30px; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    color: white; font-size: 11.5px; font-weight: 700;
}

/* ---------- Tarjetas de orden ---------- */
.ordenes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .ordenes-grid { grid-template-columns: 1fr; } }

.orden-card { background: white; border-radius: 10px; padding: 16px 18px; position: relative; cursor: pointer; transition: box-shadow .15s ease; }
.orden-card:hover { box-shadow: 0 3px 14px rgba(14,40,70,.14); }
.orden-card .orden-top { display: flex; justify-content: space-between; align-items: flex-start; }
.orden-card .orden-num { font-size: 17px; font-weight: 700; color: var(--bg-selected); }
.orden-card .orden-meta { font-size: 11px; color: #9a9ab8; margin: 4px 0 10px; }
.orden-card .orden-section-title { font-size: 11px; font-weight: 700; color: var(--text-dark); margin-top: 8px; }
.orden-card .servicio-req { color: #c0392b; font-weight: 700; font-size: 12.5px; }

/* ---------- Menú desplegable de acciones (⚙) ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none; position: absolute; right: 0; top: 110%;
    background: white; border-radius: 8px; box-shadow: 0 4px 18px rgba(14,40,70,.18);
    min-width: 200px; z-index: 50; padding: 6px; border: 1px solid var(--border-color);
}
.dropdown-menu.open { display: block; }
.dropdown-menu button, .dropdown-menu a {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: none; border: none; text-align: left; padding: 9px 10px;
    border-radius: 6px; font-size: 13.5px; color: var(--text-dark); cursor: pointer;
}
.dropdown-menu button:hover, .dropdown-menu a:hover { background: #eef0fb; }
.dropdown-menu .danger { color: #c0392b; }
.dropdown-menu hr { border: none; border-top: 1px solid var(--border-color); margin: 4px 0; }

/* ---------- Submenú lateral (ej. Conf. Estado), activado con clic ---------- */
.dropdown-submenu { position: relative; }
.submenu-trigger {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: none; border: none; text-align: left; padding: 9px 10px;
    border-radius: 6px; font-size: 13.5px; color: var(--text-dark); cursor: pointer;
}
.submenu-trigger:hover { background: #eef0fb; }
.submenu-arrow { margin-left: auto; font-size: 10px; }
.dropdown-submenu-panel {
    display: none; position: absolute; right: 100%; top: -6px; margin-right: 6px;
    background: white; border: 1px solid var(--border-color); border-radius: 8px;
    box-shadow: 0 4px 18px rgba(14,40,70,.18); min-width: 170px;
    max-height: 220px; overflow-y: auto; padding: 6px; z-index: 60;
}
.dropdown-submenu-panel.open { display: block; }
.dropdown-submenu-panel button { width: 100%; }

/* ---------- Panel del logo (accesos / pendientes) ---------- */
.sidebar-logo-btn {
    background: white; border: none; border-radius: 8px; padding: 6px 10px;
    cursor: pointer; display: inline-block;
}
.sidebar-logo-btn:hover { opacity: .9; }
.sidebar-logo-btn.active { box-shadow: 0 0 0 3px var(--bg-selected); }
.sidebar-logo-btn img { max-height: 34px; display: block; }

/* ---------- Modales (dialog nativo) ---------- */
dialog {
    border: none; border-radius: 12px; padding: 0; width: 480px; max-width: 92vw;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
dialog::backdrop { background: rgba(14, 30, 50, .5); }
.modal-header {
    background: var(--bg-selected); color: white; padding: 14px 20px;
    font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center;
    border-radius: 12px 12px 0 0;
}
.modal-header .close-x { cursor: pointer; font-size: 18px; background: none; border: none; color: white; }
.modal-body { padding: 18px 20px; max-height: 70vh; overflow-y: auto; }
.modal-footer { padding: 14px 20px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border-color); }
.modal-wide { width: 720px; }

/* ---------- Pestañas ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); margin-bottom: 14px; }
.tab-btn {
    background: none; border: none; padding: 8px 14px; cursor: pointer;
    font-size: 13.5px; color: #6b6b8a; border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--bg-selected); border-bottom-color: var(--bg-selected); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Detalle fila etiqueta:valor ---------- */
.detail-row { display: flex; padding: 5px 0; font-size: 13.5px; }
.detail-row .label { width: 150px; font-weight: 700; color: var(--text-dark); flex-shrink: 0; }
.detail-row .value { color: var(--text-body); }

/* ---------- Tarjetas resumen (reportes/dashboard) ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { background: white; border-radius: 10px; padding: 14px 16px; }
.stat-card.highlight { background: var(--bg-selected); color: white; }
.stat-card .stat-title { font-size: 12px; color: #6b6b8a; }
.stat-card.highlight .stat-title { color: rgba(255,255,255,.85); }
.stat-card .stat-value { font-size: 22px; font-weight: 700; color: var(--text-dark); }
.stat-card.highlight .stat-value { color: white; }

.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1000px) { .charts-row { grid-template-columns: 1fr; } }
.chart-card h3 { font-size: 14px; margin: 0 0 10px; color: var(--text-dark); }

/* ---------- Toast de confirmación ---------- */
.toast {
    position: fixed; bottom: 24px; right: 24px; background: var(--text-dark);
    color: white; padding: 12px 18px; border-radius: 8px; font-size: 13.5px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2); z-index: 200; opacity: 0; transform: translateY(10px);
    transition: all .2s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #c0392b; }

/* ---------- Login (fondo blanco, logo a color como marca de agua) ---------- */
.login-flat {
    min-height: 100vh; margin: 0; background: white;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.login-watermark {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 1050px; max-width: 190vw; opacity: .16; pointer-events: none; z-index: 1;
}
.login-watermark img { width: 100%; display: block; }

.login-center { position: relative; z-index: 2; width: 320px; text-align: center; }
.login-center h1 { color: var(--text-dark); font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.login-center .login-sub { color: #6b7280; margin: 0 0 30px; font-size: 13px; }
.login-center form { text-align: left; }
.login-center label { color: #6b7280; font-size: 12px; display: block; margin-bottom: 5px; }
.login-center input {
    background: #f7f8fa; border: 1px solid var(--border-color); margin-bottom: 16px;
    height: 42px; font-size: 13.5px;
}
.login-btn {
    width: 100%; height: 44px; border: none; border-radius: 7px; cursor: pointer;
    background: var(--accent-gold); color: #2c2100; font-weight: 700; font-size: 14px; margin-top: 4px;
}
.login-btn:hover { background: var(--accent-gold-dark); }
.login-center .hint { color: #9aa5b1; font-size: 11.5px; margin-top: 20px; }
.login-error {
    background: #fdecea; color: #c0392b; border: 1px solid #f3c6c1;
    padding: 9px 12px; border-radius: 7px; font-size: 12.5px; margin-bottom: 16px; text-align: left;
}

/* ---------- Utilidades ---------- */
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.w-full { width: 100%; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.section-title-bar {
    background: var(--bg-selected); color: white; font-weight: 700; font-size: 12.5px;
    padding: 7px 12px; border-radius: 6px 6px 0 0; margin-top: 14px;
}
.section-box { border: 1px solid var(--border-color); border-top: none; border-radius: 0 0 6px 6px; padding: 10px 12px; margin-bottom: 4px;}

/* ---------- Impresión de orden ---------- */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .print-sheet { box-shadow: none !important; margin: 0 !important; }
}

/* ---------- Tienda / Punto de venta ---------- */
.pos-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .pos-layout { grid-template-columns: 1fr; } }

.pos-cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cat-pill {
    border: 1px solid var(--border-color); background: white; color: var(--text-body);
    padding: 6px 14px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
}
.cat-pill:hover { border-color: var(--bg-selected); }
.cat-pill.active { background: var(--bg-selected); border-color: var(--bg-selected); color: white; font-weight: 600; }

.pos-search { margin-bottom: 14px; }

/* ---------- Buscador de productos dentro de Cotizaciones ---------- */
#resultados-producto-cotizacion {
    position: absolute; left: 0; right: 0; z-index: 50; background: white;
    border: 1px solid var(--border-color); border-radius: 8px; margin-top: 2px;
    max-height: 180px; overflow-y: auto; box-shadow: 0 4px 14px var(--shadow-color);
}
/* ---------- Fotos de producto ---------- */
/* ---------- Selector de color en Tienda ---------- */
.opciones-color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opcion-color {
    border: 1px solid var(--border-color); border-radius: 10px; padding: 10px; text-align: center;
    cursor: pointer; transition: border-color .15s;
}
.opcion-color:hover { border-color: var(--bg-selected); }
.opcion-color.agotada { opacity: .5; cursor: not-allowed; }
.opcion-color img { width: 100%; height: 70px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.opcion-color-sin-foto {
    width: 100%; height: 70px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-content); border-radius: 6px; margin-bottom: 6px; font-size: 22px;
}
.opcion-color-nombre { font-weight: 700; font-size: 13px; }
.opcion-color-stock { font-size: 11px; color: #6b6b8a; }
.tr-color { font-weight: 400; color: #6b6b8a; font-size: 11.5px; }

/* ---------- Variantes de color ---------- */
.fila-variante-color {
    display: flex; align-items: center; gap: 14px; padding: 8px 10px; margin-bottom: 6px;
    background: var(--bg-content); border-radius: 6px; font-size: 12.5px;
}
.fila-variante-color-nombre { font-weight: 700; flex: 1; }

.miniatura-producto {
    width: 42px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-color);
    display: block;
}
.miniatura-producto.miniatura-vacia {
    display: flex; align-items: center; justify-content: center; background: var(--bg-content);
    font-size: 18px; color: #c7cdd6;
}
.galeria-producto { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.miniatura-galeria {
    position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--border-color);
}
.miniatura-galeria img { width: 100%; height: 100%; object-fit: cover; display: block; }
.miniatura-galeria .etiqueta-principal {
    position: absolute; bottom: 0; left: 0; right: 0; background: rgba(31,111,192,.85); color: white;
    font-size: 9px; text-align: center; padding: 2px 0; font-weight: 700;
}
.miniatura-galeria .quitar-miniatura {
    position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: white; border: none; font-size: 11px; cursor: pointer; line-height: 1;
}
.miniatura-galeria .quitar-miniatura:hover { background: #c0392b; }

.resultado-producto-cot {
    padding: 8px 12px; font-size: 12.5px; cursor: pointer; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.miniatura-resultado-cot { width: 26px; height: 26px; object-fit: cover; border-radius: 4px; margin-right: 6px; }
.resultado-producto-cot:last-child { border-bottom: none; }
.resultado-producto-cot:hover { background: var(--bg-content); }
.resultado-producto-cot span { color: #6b6b8a; white-space: nowrap; }
.resultado-producto-cot.vacio { cursor: default; color: #9aa5b1; }
.resultado-producto-cot.vacio:hover { background: white; }

.pos-product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
    max-height: 360px; overflow-y: auto; padding: 2px; margin-bottom: 6px;
}
.prod-card {
    border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; cursor: pointer;
    display: flex; flex-direction: column; gap: 6px; background: white; transition: box-shadow .12s ease, border-color .12s ease;
}
.prod-stock.solo-linea { background: #8e44ad; color: white; font-size: 9.5px; padding: 2px 6px; border-radius: 10px; }
.prod-ver-detalles {
    width: 100%; background: none; border: 1px solid var(--border-color); border-radius: 6px;
    padding: 4px 0; font-size: 11px; color: var(--bg-selected); cursor: pointer; margin-top: 4px;
}
.prod-ver-detalles:hover { background: var(--bg-content); }

.prod-card:hover { border-color: var(--bg-selected); box-shadow: 0 3px 10px var(--shadow-color); }
.prod-thumb {
    width: 100%; height: 90px; object-fit: cover; border-radius: 7px; margin-bottom: 2px; display: block;
}
.prod-thumb.prod-thumb-vacia {
    display: flex; align-items: center; justify-content: center; background: var(--bg-content);
    font-size: 26px; color: #c7cdd6;
}
.prod-card .prod-top { display: flex; justify-content: space-between; align-items: center; }
.prod-cat-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.prod-stock { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; color: white; font-weight: 700; }
.prod-stock.ok { background: var(--estado-reparado); }
.prod-stock.bajo { background: var(--estado-revision); }
.prod-stock.agotado { background: var(--estado-anulado); }
.prod-name { font-size: 13px; font-weight: 600; color: var(--text-dark); line-height: 1.25; min-height: 32px; }
.prod-code { font-size: 10.5px; color: #9aa5b1; }
.prod-price { font-size: 15px; font-weight: 700; color: var(--bg-selected); }
.prod-add-btn {
    margin-top: auto; background: var(--bg-selected); color: white; border: none;
    padding: 6px; border-radius: 6px; font-size: 12px; cursor: pointer; font-weight: 600;
}
.prod-add-btn:hover { background: var(--bg-selected-hover); }
.prod-add-btn:disabled { background: #c7cdd6; cursor: not-allowed; }

.pos-ticket-header { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.pos-ticket-header h3 { font-size: 14px; color: var(--bg-selected); margin: 0; }
.pos-item-count {
    background: var(--accent-gold); color: #3a2c00; font-size: 11.5px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px;
}
.pos-ticket-list { margin-top: 8px; max-height: 220px; overflow-y: auto; }
.ticket-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}
.ticket-row .tr-nombre { flex: 1; }
.ticket-row .tr-nombre .tr-precio { display: block; font-size: 11px; color: #9aa5b1; }
.qty-stepper { display: flex; align-items: center; gap: 6px; }
.qty-stepper button {
    width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--border-color);
    background: white; cursor: pointer; font-size: 13px; line-height: 1;
}
.qty-stepper button:hover { background: var(--bg-content); }
.qty-stepper span { min-width: 18px; text-align: center; font-weight: 600; }
.ticket-row .tr-subtotal { width: 70px; text-align: right; font-weight: 700; color: var(--text-dark); }
.ticket-row .tr-quitar { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 14px; }

.pos-billetes { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
.pos-billetes button {
    flex: 1; min-width: 52px; background: white; border: 1px solid var(--border-color);
    border-radius: 7px; padding: 7px 4px; font-size: 12px; cursor: pointer; font-weight: 600; color: var(--text-dark);
}
.pos-billetes button:hover { border-color: var(--bg-selected); color: var(--bg-selected); }
.pos-vuelto { font-size: 13.5px; margin: 8px 0 4px; color: var(--text-dark); font-weight: 600; }
