/* La Tranquera — shared interface tokens and responsive layouts. */
:root {
    color-scheme: dark;
    --bg-main: #17181c;
    --bg-navbar: #111216;
    --bg-card: #1e2025;
    --bg-input: #27292f;
    --neon-pink: #ff007f;
    --neon-cyan: #00ffff;
    --text-light: #f1f2f4;
    --text-muted: #a0a5b1;
    --line: #ffffff12;
    --radius: 10px;
    --bs-body-bg: var(--bg-main);
    --bs-body-color: var(--text-light);
    --bs-secondary-color: var(--text-muted);
    --bs-border-color: var(--line);
    --bs-info-rgb: 0, 255, 255;
    --bs-success-rgb: 100, 210, 158;
    --bs-danger-rgb: 255, 126, 143;
    --bs-warning-rgb: 238, 193, 105;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-main); color: var(--text-light); font: 14px/1.5 'Segoe UI', system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--neon-cyan) !important; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrapper { min-height: 100dvh; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 2000; padding: 12px; background: var(--bg-card); color: var(--neon-cyan); }
.skip-link:focus { top: 12px; }
.sidebar { width: 224px; height: 100dvh; position: sticky; top: 0; flex: 0 0 224px; background: var(--bg-navbar); padding: 24px 14px !important; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-light); padding: 0 4px; margin-bottom: 28px; }
.brand-mark { width: 36px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #ff007f16; color: var(--neon-pink); font-size: 24px; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.5px; font-weight: 650; }
.brand small { display: block; color: var(--text-muted); font-size: 11px; }
.new-sale { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-bottom: 28px; }
.new-sale kbd { margin-left: auto; font: 10px 'Segoe UI', sans-serif; background: #ffffff24; padding: 2px 4px; color: white; }
.nav-caption { color: #747986; font-size: 10px; font-weight: 650; letter-spacing: 1.4px; padding: 0 12px; margin-bottom: 12px; }
.sidebar .nav-item { margin-bottom: 4px !important; }
.sidebar .nav-link { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; border-radius: 7px; color: var(--text-muted) !important; font-weight: 500 !important; font-size: 13px; }
.sidebar .nav-link i { font-size: 17px; width: 20px; color: inherit !important; }
.sidebar .nav-link:hover { color: var(--text-light) !important; background: #ffffff05; }
.sidebar .nav-link.active { color: var(--neon-cyan) !important; background: #00ffff0d; }
.sidebar-tools { margin-top: 32px !important; border-color: var(--line) !important; }
.sidebar-version { display: flex; justify-content: space-between; padding: 20px 12px 0; color: #747986; font-size: 11px; }
#pendingInvoicesAlert { margin: 22px 8px 0 !important; }
#pendingInvoicesAlert .badge { border: 0 !important; padding: 12px !important; }
.main-content { width: 0; min-width: 0; padding: 32px 36px !important; overflow: visible !important; }
.section-container { min-width: 0; width: 100%; }
.page-header { min-height: 112px; margin-bottom: 24px !important; align-items: flex-start !important; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-header > .d-flex { padding-top: 27px; justify-content: flex-end; }
.page-heading { flex-shrink: 0; max-width: 100%; }
.page-eyebrow { display: block; color: #878e9d; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; margin-bottom: 9px; }
.section-title { font-size: 28px; font-weight: 650; letter-spacing: -.9px; color: var(--text-light); line-height: 1.2; }
.section-description { margin: 8px 0 0; color: var(--text-muted); font-size: 13px; }
.panel-title, h5 { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.dashboard-card, .stat-card { background: var(--bg-card); border-radius: var(--radius); border: 0; box-shadow: none !important; min-width: 0; }
.dashboard-card > .card-body { padding: 22px; }
.card, .card-body, .row > *, .d-flex > * { min-width: 0; }
.shadow, .shadow-sm, .shadow-lg { box-shadow: none !important; }
.border-secondary { border-color: var(--line) !important; }
.bg-navbar { background-color: var(--bg-navbar); }
.bg-input-dark { background-color: var(--bg-input) !important; }
.bg-dark { background-color: var(--bg-card) !important; }
.text-secondary, .text-muted { color: var(--text-muted) !important; }
.text-secondary-neon { color: var(--neon-cyan); }
.btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 13px; border-radius: 7px; font-size: 13px; line-height: 1.3; font-weight: 550; box-shadow: none !important; transition: background-color .12s, color .12s; }
.btn i { flex-shrink: 0; }
.btn-primary-neon { background: var(--neon-pink); color: white; border: 1px solid var(--neon-pink); }
.btn-primary-neon:hover, .btn-primary-neon:active { background: #dc006e !important; color: white !important; border-color: #dc006e !important; }
.btn-primary-neon:disabled { background: #873452; color: #d9c2cc; border-color: transparent; opacity: .8; }
.btn-secondary-neon, .btn-outline-info, .btn-outline-light, .btn-outline-secondary, .page-header .btn-outline-warning, .page-header .btn-outline-success { color: #d4d8e0; background: #ffffff04; border-color: #ffffff20; }
.btn-secondary-neon:hover, .btn-outline-info:hover, .btn-outline-light:hover, .btn-outline-secondary:hover { background: #ffffff0c; color: white; border-color: #ffffff38; }
.btn-outline-info.active, .btn-outline-secondary.active, .btn-secondary-neon.active,
#ticketInvoiceFilters .btn.active, .payment-filter.active, .time-filter.active { color: var(--neon-cyan) !important; background: #00ffff0d !important; border-color: #00ffff3b !important; }
.btn-outline-warning { --bs-btn-color: #eec169; --bs-btn-border-color: #eec16955; }
.btn-outline-success { --bs-btn-color: #64d29e; --bs-btn-border-color: #64d29e55; }
.btn-outline-danger { --bs-btn-color: #ff7e8f; --bs-btn-border-color: #ff7e8f40; }
.btn-group { gap: 4px; flex-wrap: wrap; }
.btn-group > .btn { border-radius: 6px !important; margin: 0 !important; }
.form-control, .form-select, .input-group-text { min-height: 40px; border-radius: 7px; border: 1px solid #ffffff12; padding: 9px 12px; color: var(--text-light); background-color: var(--bg-input); font-size: 13px; }
.form-select { padding-right: 32px; }
.form-control::placeholder { color: #858c99; }
.form-control:focus, .form-select:focus { background-color: var(--bg-input); color: white; border-color: #00ffff88 !important; box-shadow: 0 0 0 2px #00ffff18; }
.form-label { color: #c1c6d0 !important; font-size: 12px !important; font-weight: 500 !important; text-transform: none !important; margin-bottom: 7px; }
.form-check-input { cursor: pointer; border-color: #656b78; }
.form-check-input:checked { background-color: var(--neon-cyan); border-color: var(--neon-cyan); }
.form-switch .form-check-input { width: 38px !important; height: 22px !important; background-color: #454a55; margin-top: 0; }
.form-switch .form-check-input:checked { background-color: #008d94; }
.form-check-label { cursor: pointer; }
.input-group-text { color: var(--text-muted); }
.badge { font-weight: 500; font-size: 11px; border-radius: 5px; padding: 5px 8px; white-space: normal; }
.count-badge { display: inline-block; font-size: 11px; font-weight: 500; background: #ffffff08; color: var(--text-muted); border-radius: 5px; padding: 3px 7px; vertical-align: middle; margin-left: 6px; }
.inventory-summary { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0 0 22px; font-size: 12px; color: var(--text-muted); }
.inventory-summary strong { color: var(--text-light); font-weight: 600; }
.inventory-toolbar { margin-bottom: 16px !important; }
#inventory-section .card { background: transparent; }
#inventory-section .card-body { padding: 0; }
#inventory-section h5 { padding-bottom: 14px !important; margin-top: 0 !important; color: var(--text-light) !important; border: 0 !important; }
#inventory-section .record-table { table-layout: fixed; min-width: 820px; }
#inventory-section .record-table th:first-child { width: 27%; }
#inventory-section .record-table th:nth-child(2) { width: 18%; }
#inventory-section .record-table th:last-child { width: 12%; }
.table-responsive { max-width: 100%; overflow-x: auto !important; border-radius: 8px; -webkit-overflow-scrolling: touch; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text-light); --bs-table-hover-bg: #ffffff04; --bs-table-hover-color: white; --bs-table-border-color: var(--line); font-size: 13px; }
.minimal-table { border-collapse: collapse; width: 100%; margin-bottom: 0; }
.minimal-table th { padding: 12px 14px; font-size: 11px; font-weight: 550; color: var(--text-muted); background: #ffffff03; border-bottom: 1px solid var(--line); white-space: nowrap; }
.minimal-table td { padding: 14px; border-bottom: 1px solid #ffffff09; vertical-align: middle; font-variant-numeric: tabular-nums; }
.minimal-table td:first-child { max-width: 320px; overflow-wrap: anywhere; }
.minimal-table td.text-end { white-space: nowrap; }
.minimal-table td .btn { min-width: 34px; min-height: 34px; padding: 6px 8px; }
.minimal-table td .fw-bold, .minimal-table td.fw-bold { font-weight: 550 !important; }
.stock-low { color: #eec169; font-weight: 650; }
.empty-state { padding: 32px 16px !important; text-align: center !important; color: var(--text-muted); white-space: normal !important; }
.empty-state > i { display: block; font-size: 25px; color: #6d7584; margin-bottom: 10px; }
.empty-state strong { display: block; color: #d4d8e0; font-weight: 550; font-size: 14px; margin-bottom: 5px; }
.empty-state p { font-size: 12px; margin: 0; }
.stat-card { padding: 20px !important; border-left: 0 !important; }
.stat-card .card-body { padding: 0; }
.stat-card h6 { font-size: 11px; line-height: 1.6; letter-spacing: .2px; text-transform: none !important; font-weight: 550 !important; }
.stat-card h2, .stat-card h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card small { font-size: 11px; }
#ventas-tabs { width: 100%; padding: 0 !important; gap: 24px !important; border-bottom: 1px solid var(--line); border-radius: 0 !important; overflow-x: auto; }
#ventas-tabs .btn { border: 0; border-radius: 0; padding: 0 0 14px; min-height: 40px; background: none !important; white-space: nowrap; color: var(--text-muted) !important; flex-shrink: 0; }
#ventas-tabs .btn.active { color: var(--neon-cyan) !important; box-shadow: inset 0 -2px var(--neon-cyan) !important; }
#ventas-tabs .btn i { font-size: 15px; }
#ventas-header-controls { min-height: 40px; }
#ticketsSubToolbar { padding: 16px !important; }
#ticketsSummaryBadge { flex-shrink: 0; }
#ticketPaymentFilters, #ticketInvoiceFilters { flex-wrap: wrap; }
#movementsFilterGroup .btn, .payment-filter, .time-filter { min-height: 34px; font-size: 12px; }
#ventas-tab-estadisticas .d-flex, #ventas-tab-arca .d-flex { flex-wrap: wrap; }
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-bg: var(--bg-card); --bs-accordion-btn-focus-box-shadow: 0 0 0 2px #00ffff33; }
.accordion-button { font-size: 13px; gap: 8px; flex-wrap: wrap; }
.alert { border-radius: 8px; font-size: 13px; box-shadow: none; }
.message-simple-card { padding: 26px !important; }
.message-simple-options { gap: 16px; margin-bottom: 28px !important; }
.message-option-card { padding: 18px; background: #ffffff03; border-color: var(--line); border-radius: 8px; }
.message-option-title { font-size: 13px; font-weight: 550; }
.message-switch:checked { background: var(--neon-cyan); border-color: var(--neon-cyan); }
.message-category-buttons .btn { min-height: 80px; padding: 20px; justify-content: flex-start; border-color: var(--line); border-left: 3px solid var(--message-category-color); background: #ffffff03; color: var(--text-light); }
.message-category-buttons .btn i { color: var(--message-category-color); font-size: 22px; }
.message-category-buttons .btn:hover { background: color-mix(in srgb, var(--message-category-color) 9%, var(--bg-card)); }
.message-category-buttons .btn.active { border-color: var(--neon-cyan); background: #00ffff09; color: var(--text-light); }
.message-simple-preview textarea { font: 13px/1.75 'Segoe UI', sans-serif; padding: 18px; }
.modal { --bs-modal-margin: 24px; --bs-modal-header-border-color: var(--line); --bs-modal-footer-border-color: var(--line); }
.modal-backdrop { --bs-backdrop-opacity: .72; }
.modal-dialog { max-width: min(560px, calc(100% - 32px)); }
.modal-lg { max-width: min(840px, calc(100% - 32px)); }
.modal-xl { max-width: min(1220px, calc(100% - 32px)); }
.custom-modal { background: var(--bg-card); border: 1px solid #ffffff14 !important; border-radius: 14px; overflow: hidden; }
.modal-header, .modal-footer { background: var(--bg-card) !important; padding: 20px 24px; }
.modal-title { font-size: 18px; font-weight: 600 !important; color: var(--text-light) !important; letter-spacing: -.3px; }
.modal-body { padding: 24px; }
.modal-footer { gap: 8px; }
.modal-footer .btn { margin: 0; }
.modal-header .btn-close { padding: 12px; }
.modal-body .row { --bs-gutter-y: 16px; }
#ticketModal .ticket-setting { background: var(--bg-input); border: 0; border-radius: 8px; }
#ticketModal .ticket-items-table { min-width: 540px; }
.ai-restock-table-container { max-height: 440px; overflow: auto !important; }
.ai-restock-table-container table { min-width: 820px; }
.ai-restock-table-container thead th { position: sticky; top: 0; background: var(--bg-navbar); z-index: 1; }
.ai-restock-row td { vertical-align: top; }
#salesModal .modal-dialog { max-width: min(1220px, calc(100% - 32px)); }
#salesModal .modal-header { padding: 20px 24px; }
#salesModal .page-eyebrow { margin-bottom: 4px; }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr); padding: 0; }
.pos-catalog { padding: 24px; background: var(--bg-main); }
.pos-order { display: flex; flex-direction: column; padding: 24px; min-width: 0; }
.pos-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 430px; overflow-y: auto; padding: 4px; margin: 0 -4px; }
.pos-product { text-align: left; min-height: 92px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-card); color: var(--text-light); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pos-product:hover { border-color: #00ffff50; background: #00ffff06; }
.pos-product-name { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.pos-product-meta { color: var(--text-muted); font-size: 11px; }
.pos-product-price { margin-top: auto; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pos-product-grid > .empty-state { grid-column: 1 / -1; }
.pos-cart-table { flex: 1; min-height: 200px; max-height: 330px; }
.pos-cart-table .table th, .pos-cart-table .table td { padding: 12px 6px; }
.pos-cart-table .table td:first-child { width: 42%; }
.pos-cart-table .input-group { min-width: 100px; flex-wrap: nowrap; }
.pos-cart-table .input-group .btn { min-width: 28px; padding: 4px; }
.pos-cart-table .input-group input { min-width: 30px; padding: 0; min-height: 34px; }
.pos-options { margin-top: 20px; border-top: 1px solid var(--line); }
.pos-option { padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.pos-option label { font-size: 13px; font-weight: 550; cursor: pointer; }
.pos-option small { display: block; font-size: 12px; color: var(--neon-cyan); }
.pos-checkout { padding-top: 20px; }
.pos-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pos-total > span { color: var(--text-muted); font-size: 13px; }
.pos-total strong { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.7px; }
.pos-checkout .btn { width: 100%; min-height: 46px; }
.pos-checkout > small { display: block; color: var(--text-muted); text-align: center; font-size: 11px; margin-top: 10px; }
.toastify { max-width: min(420px, calc(100vw - 32px)); font: 13px/1.5 'Segoe UI', sans-serif !important; padding: 14px 18px; box-shadow: 0 6px 28px #0004; }
.mobile-new-sale, .mobile-inventory-sort { display: none; }
.table-sort { background: none; border: 0; color: var(--text-muted); padding: 4px 6px; border-radius: 4px; }
.table-sort:hover { color: var(--neon-cyan); background: #00ffff0d; }
.period-toolbar .form-select { min-height: 40px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #454a55; border-radius: 6px; }
@media (min-width: 1500px) { .main-content { padding: 36px 48px !important; } }
@media (min-width: 768px) and (max-width: 1199.98px) {
    .sidebar { width: 198px; flex-basis: 198px; padding: 22px 10px !important; }
    .brand strong { font-size: 16px; }
    .new-sale kbd { display: none; }
    .main-content { padding: 28px 24px !important; }
    .page-header { flex-direction: column !important; gap: 16px !important; }
    .page-header > .d-flex { padding-top: 0; justify-content: flex-start; }
    .minimal-table { min-width: 660px; }
    .pos-layout { grid-template-columns: minmax(0, 1fr) minmax(370px, 1fr); }
    .pos-product-grid { grid-template-columns: minmax(0, 1fr); }
    .stat-card { padding: 14px !important; }
}
@media (max-width: 767.98px) {
    body { font-size: 14px; }
    .wrapper { display: block !important; }
    .sidebar { position: relative; height: auto; width: 100%; padding: 16px !important; display: grid !important; grid-template-columns: 1fr auto; gap: 16px; overflow: visible; }
    .brand { margin: 0; padding: 0; }
    .brand strong { font-size: 16px; }
    .brand small { font-size: 10px; }
    .brand-mark { width: 30px; font-size: 22px; }
    .new-sale { margin: 0; width: auto; min-height: 44px; padding: 10px 13px; }
    .new-sale kbd, .nav-caption, .sidebar-version { display: none; }
    .sidebar > .nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
    .sidebar .nav-item { margin: 0 !important; }
    .sidebar .nav-link { flex-direction: column; gap: 5px; padding: 9px 4px; min-height: 60px; font-size: 11px; }
    .sidebar .nav-link i { margin: 0 !important; width: auto; }
    #pendingInvoicesAlert { grid-column: 1 / -1; margin: 4px 0 0 !important; }
    #pendingInvoicesAlert .badge { padding: 10px !important; }
    #pendingInvoicesAlert .badge > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
    .sidebar-tools { grid-column: 1 / -1; display: flex; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
    .sidebar-tools .nav-link { flex: 1; flex-direction: row; min-height: 36px; padding: 6px; margin: 0 !important; font-size: 11px; background: #ffffff04; }
    .sidebar-tools .nav-link i { font-size: 14px; }
    .main-content { width: 100%; padding: 24px 16px 88px !important; }
    .page-header { min-height: 0; gap: 16px !important; padding-bottom: 20px; margin-bottom: 20px !important; }
    .section-title { font-size: 26px; }
    .section-description { font-size: 12px; }
    .page-eyebrow { font-size: 9px; }
    .page-header > .d-flex { padding-top: 0; justify-content: flex-start; width: 100%; }
    .page-header .btn { flex: 1 1 auto; min-height: 42px; font-size: 12px; }
    .page-header .form-select { flex: 1; }
    .btn { min-height: 42px; }
    .form-control, .form-select { font-size: 16px; min-height: 44px; }
    .minimal-table { min-width: 640px; }
    .minimal-table td { padding: 12px; }
    .minimal-table td .btn { min-width: 40px; min-height: 40px; }
    .table-responsive { border-radius: 6px; }
    .dashboard-card > .card-body { padding: 16px; }
    .row.g-4 { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
    .row > .col-md-3:has(.stat-card), #ventas-tab-arca .row > .col-lg-3 { width: 50%; }
    .stat-card { padding: 16px !important; }
    .stat-card h2, .stat-card h3 { font-size: 21px; }
    .stat-card h6 { font-size: 10px; }
    #ventas-tabs { gap: 20px !important; }
    #ventas-tabs .btn { font-size: 12px; }
    #ventas-tab-tickets h5 { font-size: 15px; }
    #ticketsSubToolbar { padding: 12px !important; }
    #ticketsSubToolbar .btn { padding: 7px 9px; font-size: 11px; min-height: 38px; }
    #ticketsSummaryBadge { flex-wrap: wrap; }
    #movementsFilterGroup { padding: 0 !important; }
    #movementsFilterGroup .btn { font-size: 11px; flex: 1; }
    #ventas-tab-estadisticas .time-filter { font-size: 11px; padding: 8px; }
    #expenses-section .input-group { max-width: none !important; }
    #expenses-section .form-select { max-width: 100%; }
    .message-simple-card { padding: 18px !important; }
    .message-category-buttons .btn { min-height: 64px; padding: 16px; }
    .message-option-card { padding: 16px; }
    .message-option-title { font-size: 13px; }
    .modal { --bs-modal-margin: 0; }
    .modal-dialog, .modal-lg, .modal-xl, #salesModal .modal-dialog { width: 100%; max-width: 100%; margin: 0; min-height: 100dvh; align-items: stretch; }
    .custom-modal { border-radius: 0; border: 0 !important; min-height: 100dvh; }
    .modal-header { padding: 18px 16px; }
    .modal-body { padding: 20px 16px; }
    .modal-footer { padding: 16px; flex-wrap: wrap; }
    .modal-footer .btn { flex: 1 1 auto; }
    .modal-body .p-4 { padding: 16px !important; }
    #categoryForm { flex-wrap: wrap; }
    #categoryForm input { flex: 1 1 180px; }
    #ticketModal .ticket-settings { grid-template-columns: 1fr; }
    #ticketModal .ticket-items-table { display: block; min-width: 0; table-layout: auto; }
    #ticketModal .ticket-items-table colgroup { display: none; }
    #ticketModal .ticket-items-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    #ticketModal .ticket-items-table tbody { display: block; }
    #ticketModal .ticket-items-table tr { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
    #ticketModal .ticket-items-table td { display: block; border: 0; padding: 0; align-self: center; }
    #ticketModal .ticket-items-table td:first-child { grid-column: 1 / -1; max-width: none; }
    #ticketModal .ticket-items-table td:nth-child(2)::before { content: 'Cantidad'; display: block; color: var(--text-muted); font-size: 10px; text-align: center; margin-bottom: 4px; }
    #ticketModal .ticket-items-table td:nth-child(3)::before { content: 'Subtotal'; display: block; color: var(--text-muted); font-size: 10px; margin-bottom: 4px; }
    #ticketModal .ticket-product-input, #ticketModal .ticket-quantity-input { font-size: 16px; min-height: 44px; }
    .pos-layout { display: flex; flex-direction: column; padding: 0; }
    .pos-catalog, .pos-order { padding: 20px 16px; }
    .pos-product-grid { max-height: 230px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pos-product { min-height: 88px; padding: 12px; }
    .pos-cart-table { min-height: 100px; max-height: none; overflow: visible !important; }
    .pos-cart-table .minimal-table { min-width: 0; }
    .pos-cart-table thead { display: none; }
    .pos-cart-table tr { display: grid; grid-template-columns: minmax(100px, 1fr) auto 40px; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .pos-cart-table td { border: 0; padding: 4px 0 !important; }
    .pos-cart-table td:first-child { width: auto; max-width: none; grid-column: 1 / -1; }
    .pos-cart-table td:nth-child(2) { max-width: 130px; }
    .pos-cart-table td:nth-child(3) { align-self: center; }
    .pos-cart-table .input-group .btn { min-width: 36px; min-height: 40px; }
    .pos-cart-table td.empty-state { grid-column: 1 / -1; padding: 20px !important; }
    .pos-checkout { padding-bottom: env(safe-area-inset-bottom); }
    .mobile-new-sale { display: inline-flex; position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1020; min-height: 48px; padding: 12px 20px; border-radius: 10px; box-shadow: 0 4px 20px #0006 !important; }
    .mobile-inventory-sort { display: block; }
    .record-table, .record-table tbody { display: block; min-width: 0; width: 100%; }
    #inventory-section .record-table { min-width: 0; table-layout: auto; }
    .record-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .record-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 18px; margin-bottom: 10px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--line); }
    .record-table tbody td { display: block; padding: 0 !important; border: 0; text-align: left !important; white-space: normal !important; overflow-wrap: anywhere; max-width: none; }
    .record-table tbody td::before { content: attr(data-label); display: block; color: var(--text-muted); font-size: 10px; margin-bottom: 4px; font-weight: 400; }
    .record-table tbody td:first-child, .record-table tbody td:last-child, .record-table td[colspan] { grid-column: 1 / -1; }
    .record-table tbody td:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
    .record-table tbody td:last-child::before { margin: 0 auto 0 0; }
    .record-table td[colspan] { display: block !important; padding: 20px 0 !important; text-align: center !important; }
    .record-table td[colspan]::before { display: none; }
    #aiRestockExpenseCatRow > div, #aiRestockStep2 > .d-flex { flex-wrap: wrap; gap: 10px; }
    #aiRestockExpenseCatRow .form-select { min-width: 0 !important; width: 100% !important; }
    #componentsContainer .component-row > .col-7 { width: 100%; }
    #componentsContainer .component-row > .col-4 { width: 80%; }
    #componentsContainer .component-row > .col-1 { width: 20%; justify-content: flex-end; }
    #componentsContainer .component-row { margin-bottom: 20px !important; }
    #componentsContainer .component-row .btn { min-width: 44px; min-height: 44px; }
    .toastify { right: 16px !important; left: 16px !important; margin: auto; bottom: 16px !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
