:root,html.dark{--bg-0: #0a0c10;--bg-1: #0d1117;--bg-2: #161b22;--bg-3: #1e2530;--bg-4: #1a2030;--tx-1: #f1f5f9;--tx-2: #e2e8f0;--tx-3: #94a3b8;--tx-4: #64748b;--tx-5: #475569;--tx-6: #334155;--bd-1: #1e2530;--bd-2: #2a3244;--sem-success-bg: #052e16;--sem-success-tx: #4ade80;--sem-error-bg: #450a0a;--sem-error-tx: #f87171;--sem-toast-ok: #052e16;--sem-toast-ok-tx: #86efac;--sem-toast-err: #7f1d1d;--sem-toast-err-tx: #fca5a5;--sem-caisse-bg: #2d1f0a;--sem-bank-bg: #0a1a2d;--sem-warn-bg: #1a0f00;--sem-paid-bg: #0a1a0a;--sem-input-err: #2d1010}html.light{--bg-0: #f0f4f8;--bg-1: #ffffff;--bg-2: #f1f5f9;--bg-3: #e2e8f0;--bg-4: #f5f7fa;--tx-1: #0f172a;--tx-2: #1e293b;--tx-3: #475569;--tx-4: #334155;--tx-5: #1e293b;--tx-6: #64748b;--bd-1: #e2e8f0;--bd-2: #cbd5e1;--sem-success-bg: #dcfce7;--sem-success-tx: #15803d;--sem-error-bg: #fee2e2;--sem-error-tx: #b91c1c;--sem-toast-ok: #dcfce7;--sem-toast-ok-tx: #15803d;--sem-toast-err: #fee2e2;--sem-toast-err-tx: #b91c1c;--sem-caisse-bg: #fef3c7;--sem-bank-bg: #dbeafe;--sem-warn-bg: #fff7ed;--sem-paid-bg: #f0fdf4;--sem-input-err: #fee2e2}html.dark,html.dark body{background:#0a0c10!important;color:#f1f5f9!important}html.light,html.light body{background:#f0f4f8!important;color:#0f172a!important}html.light ::-webkit-scrollbar-thumb{background:#cbd5e1!important}html.light ::-webkit-scrollbar-thumb:hover{background:#94a3b8!important}html.light select option{background:#fff!important;color:#0f172a!important}html.light input,html.light select,html.light textarea{background:#f8fafc!important;color:#0f172a!important;border-color:#cbd5e1!important}html.light input::placeholder,html.light textarea::placeholder{color:#94a3b8!important}html.light input:focus,html.light select:focus,html.light textarea:focus{border-color:#f59e0b!important;outline:none!important}html.light .sidebar-desktop,html.light aside{background:#fff!important;border-right-color:#e2e8f0!important}html.light header{background:#fff!important;border-bottom-color:#e2e8f0!important}html.light main{background:#f0f4f8!important}html.light table{background:transparent!important}html.light thead tr{background:#f1f5f9!important}html.light th{background:#f1f5f9!important;color:#334155!important;border-bottom-color:#e2e8f0!important}html.light td{color:#1e293b!important;border-bottom-color:#f0f4f8!important}html.light tbody tr:hover td{background:#f8fafc!important}html.light .mob-bottom-nav{background:#fff!important;border-top-color:#e2e8f0!important}html.light .notif-dropdown{background:#fff!important;border-color:#e2e8f0!important;box-shadow:0 8px 32px #0000001f!important}html.light .slide-panel{background:#f0f4f8!important}.mob-bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;height:60px;z-index:200;background:var(--bg-1);border-top:1px solid var(--bd-1);flex-direction:row;align-items:stretch}.tv-table-wrap{overflow:hidden}.inv-kpi-row{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;padding:20px 20px 0}.inv-kpi-card{background:var(--bg-1);border:1px solid var(--bd-1);border-radius:12px;padding:14px 20px;display:flex;flex-direction:column;gap:4px}.sa-grid-row{grid-template-columns:90px 80px 1fr 80px 110px 80px}@media (max-width: 768px){html,body{max-width:100vw;overflow-x:hidden}.page-main{padding:10px 10px 70px!important}.mob-bottom-nav{display:flex!important}.tv-table-wrap{overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}.sidebar-desktop{display:none!important}.slide-panel,.slide-backdrop>div[style*=maxWidth]{width:100vw!important;max-width:100vw!important;height:100vh!important;border-radius:0!important}.si-body{padding:12px!important}.si-action-bar{padding:10px 14px!important;flex-wrap:wrap!important;gap:8px!important}.si-action-bar>div:first-child{font-size:14px!important}.sf-meta-grid,.sf-adj-grid,.si-meta-grid,.pf-edit-grid{grid-template-columns:1fr!important}.sf-items-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.sf-items-wrap table{min-width:600px}.mob-card{padding:14px!important}.tv-header{flex-direction:column!important;align-items:stretch!important;gap:8px!important}.tv-controls{flex-wrap:wrap!important}.tv-search{flex:1!important}.tv-search input{width:100%!important;min-width:0!important}.mob-hidden{display:none!important}.tv-table-wrap table{min-width:580px}.inv-kpi-row{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding:10px 10px 6px!important;gap:8px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}.inv-kpi-row::-webkit-scrollbar{display:none}.inv-kpi-card{flex:0 0 130px!important;min-width:130px!important;padding:10px 12px!important;border-radius:10px!important}.inv-kpi-card>span:first-child{font-size:9px!important}.inv-kpi-card>span:nth-child(2){font-size:17px!important;line-height:1.2!important}.inv-kpi-card>span:last-child{font-size:9px!important}.tv-col-category,.tv-col-unit,.tv-col-stockValue{display:none!important}.pf-body-grid{grid-template-columns:1fr!important;padding:14px!important;gap:0!important}.sa-page{padding:14px!important}.sa-header{flex-direction:column!important;align-items:stretch!important;gap:10px!important}.sa-header>div:last-child{display:flex!important;flex-direction:column!important;gap:8px!important}.sa-header button{width:100%!important;justify-content:center!important}.sa-stat-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}.sa-form-grid{grid-template-columns:1fr!important}.sa-filter-bar{flex-direction:column!important;gap:8px!important}.sa-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.sa-grid-row{grid-template-columns:75px 55px 1fr 45px 85px 60px!important;font-size:11px!important}.caisse-acct-grid{grid-template-columns:1fr!important}div[style*="maxWidth: 1200"][style*='height: "92vh"'],div[style*="maxWidth:1200"],.sale-invoice-panel,.purchase-invoice-panel{width:100vw!important;max-width:100vw!important;height:100vh!important;border-radius:0!important}div[style*="minWidth: 120"]{min-width:100px!important}.mob-only{display:flex!important}.sf-pay-row{flex-direction:column!important}.sf-pay-row>div{flex:auto!important;width:100%!important}.caisse-cards-collapsed .caisse-acct-grid{display:none!important}.parties-kpi-row{grid-template-columns:1fr 1fr!important}.parties-detail-grid{grid-template-columns:1fr!important}.settings-tabs{overflow-x:auto!important;-webkit-overflow-scrolling:touch;flex-wrap:nowrap!important;scrollbar-width:none}.settings-tabs::-webkit-scrollbar{display:none}.settings-tabs>button{flex:none!important;white-space:nowrap!important;padding:8px 14px!important;font-size:12px!important}.dash-kpi-row{grid-template-columns:1fr 1fr!important}.dash-bottom-row{grid-template-columns:1fr!important}.responsive-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.responsive-table-wrap table{min-width:560px}.parties-page{padding:12px 10px!important}.half-grid-responsive{grid-template-columns:1fr!important}.topbar-root{padding:0 10px!important}.topbar-root button{font-size:11px!important;padding:5px 10px!important}.trx-kpi-row{grid-template-columns:1fr!important;gap:8px!important}.trx-acct-tabs{overflow-x:auto!important;-webkit-overflow-scrolling:touch;flex-wrap:nowrap!important;scrollbar-width:none}.trx-acct-tabs::-webkit-scrollbar{display:none}.trx-acct-tabs>button{flex:none!important;white-space:nowrap!important}.caisse-actions{flex-direction:column!important}.caisse-actions button{width:100%!important;justify-content:center!important}.reports-kpi-row{grid-template-columns:1fr 1fr!important;gap:8px!important}.reports-pl-grid{grid-template-columns:1fr!important}.reports-page{padding:12px 10px!important}button{min-height:36px}.iptv-page{padding:14px 10px!important}.iptv-tab-bar{overflow-x:auto!important;-webkit-overflow-scrolling:touch;flex-wrap:nowrap!important;scrollbar-width:none}.iptv-tab-bar::-webkit-scrollbar{display:none}.iptv-tab-bar>button{flex:none!important;white-space:nowrap!important;font-size:11px!important;padding:7px 12px!important}.iptv-kpi-row{grid-template-columns:1fr 1fr!important;gap:10px!important}.iptv-layout{grid-template-columns:1fr!important}.iptv-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.iptv-table-wrap table{min-width:600px}.iptv-crud-table{overflow-x:auto!important}.iptv-crud-table table{min-width:500px}.iptv-tab-grid{grid-template-columns:1fr!important}}@media (min-width: 769px) and (max-width: 1024px){.parties-kpi-row{grid-template-columns:1fr 1fr!important}.inv-kpi-row{grid-template-columns:repeat(3,1fr)!important}.dash-kpi-row{grid-template-columns:1fr 1fr!important}}
