:root{color:#23252f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;min-width:320px;width:100%;max-width:100%;overflow-x:hidden}#root{min-height:100vh;width:100%;max-width:100%;overflow-x:hidden}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.65}.login-shell{min-height:100vh;display:grid;place-items:center;padding:32px;background:linear-gradient(135deg,#f7fafc,#eef3f8 54%,#edf8f1)}.login-panel{width:min(460px,100%);background:#fff;border:1px solid #dfe5ee;border-radius:8px;padding:32px;box-shadow:0 20px 50px #181f2a1f}.login-panel h1,.page-section h1,.topbar h2{margin:0;letter-spacing:0}.login-form{margin-top:28px;display:grid;gap:16px}label{display:grid;gap:8px;color:#3a3f4d;font-weight:600}input{width:100%;border:1px solid #cfd7e3;border-radius:8px;padding:12px 14px;color:#23252f;background:#f8fafc}select{width:100%;min-height:44px;border:1px solid #cfd7e3;border-radius:8px;padding:10px 12px;color:#23252f;background:#f8fafc}input:focus,select:focus{border-color:#2f6f73;outline:3px solid rgba(47,111,115,.16)}.primary-button,.ghost-button,.danger-button,.quick-actions button,.nav-list button{min-height:40px;border-radius:8px;border:1px solid transparent;padding:10px 14px;font-weight:700}.primary-button{color:#fff;background:#2f6f73}.primary-button.purple{background:#7a4d70}.ghost-button{color:#2f3a4a;background:#fff;border-color:#d6dde8}.danger-button{color:#9f1d2c;background:#fff1f2;border-color:#fecdd3}.ghost-button.compact,.danger-button.compact{min-height:34px;padding:6px 10px;font-size:12px}.alert{border:1px solid #fecdd3;background:#fff1f2;color:#b42335;border-radius:8px;padding:12px 14px}.muted,small{color:#6b7280}.eyebrow{margin:0 0 8px;color:#2f6f73;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.loading-screen{min-height:100vh;display:grid;place-items:center;color:#6b7280}.app-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.sidebar{background:#17212f;color:#fff;padding:18px;display:grid;grid-template-rows:auto 1fr;gap:24px}.brand-block{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{width:40px;height:40px;border-radius:8px;display:grid;place-items:center;background:#f0b35a;color:#17212f;font-weight:900}.brand-block small,.user-box small{display:block}.nav-list{display:grid;align-content:start;gap:6px}.nav-list button{width:100%;text-align:left;color:#cbd5e1;background:transparent}.nav-list button:hover,.nav-list button.active{color:#fff;background:#253449}.content-shell{min-width:0;display:grid;grid-template-rows:auto 1fr}.topbar{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 24px;background:#fff;border-bottom:1px solid #dfe5ee}.user-box,.toolbar,.section-heading{display:flex;align-items:center;gap:12px}.section-heading{justify-content:space-between;margin-bottom:22px}.main-content{min-width:0;padding:24px}.page-section{max-width:1280px}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.metric-card,.loading-card{background:#fff;border:1px solid #dfe5ee;border-radius:8px;padding:18px}.metric-card{display:grid;gap:8px}.metric-card strong{font-size:24px}.quick-actions{margin-top:20px;display:flex;flex-wrap:wrap;gap:10px}.quick-actions button{background:#fff;border-color:#d6dde8;color:#243246}.status-pill{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;border:1px solid #d6dde8;color:#536174;background:#fff;padding:4px 10px;font-size:12px;font-weight:800}.status-pill.ok{color:#14532d;border-color:#bbf7d0;background:#f0fdf4}.status-pill.danger-state{color:#9f1d2c;border-color:#fecdd3;background:#fff1f2}.status-pill.warning-state{color:#92400e;border-color:#fde68a;background:#fffbeb}.mfa-enrollment-panel{gap:18px}.mfa-enrollment-qr{width:min(260px,100%);aspect-ratio:1;align-self:center;border:1px solid #e5e7eb;border-radius:8px;padding:12px;background:#fff}.table-wrap{overflow:auto;background:#fff;border:1px solid #dfe5ee;border-radius:8px}table{width:100%;border-collapse:collapse;min-width:940px}th,td{padding:12px 14px;border-bottom:1px solid #e6ebf2;text-align:left;vertical-align:top}th{color:#475569;background:#f8fafc;font-size:12px;text-transform:uppercase}td strong,td small,td span{display:block}.truncate{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-actions{width:130px}.table-action-row{display:flex;flex-wrap:wrap;gap:6px}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:static}.nav-list{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar,.section-heading{align-items:flex-start;flex-direction:column}.metric-grid{grid-template-columns:1fr}}.pos-shell{height:calc(100vh - 125px);min-height:680px;margin:-24px;color:#020617;background:#f4f4f5}.pos-header{height:64px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px;background:#fff;border-bottom:1px solid #d6d8de}.pos-tabs,.pos-tools,.payment-options,.payment-actions,.paid-actions{display:flex;align-items:center;gap:8px}.pos-tabs button,.order-badge,.icon-button,.avatar-button{min-height:52px;border:1px solid #cfd3da;border-radius:5px;padding:0 16px;background:#f8fafc;color:#020617;font-weight:800;font-size:18px}.pos-tabs button.selected,.order-badge{border-color:#0891a0;background:#e6f8f8}.order-badge{display:inline-flex;align-items:center}.pos-tools{flex:1;justify-content:flex-end}.select-compact{width:190px;display:grid;gap:2px;font-size:11px}.select-compact select,.order-actions select{min-height:38px;border:1px solid #d7dce5;border-radius:6px;padding:0 10px;background:#fff;font:inherit}.pos-search{width:min(320px,28vw);height:48px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #dfe3eb;border-radius:7px;background:#fff}.pos-search span{font-size:34px;line-height:1}.pos-search input{border:0;outline:0;padding:0;background:transparent;font-size:18px}.icon-button{min-width:48px;padding:0;background:#fff}.avatar-button{min-width:46px;color:#fff;background:#7c73de;border-color:#7c73de}.pos-register-grid{height:calc(100% - 64px);display:grid;grid-template-columns:500px 1fr}.order-panel{min-width:0;display:grid;grid-template-rows:1fr auto auto auto auto;background:#fff;border-right:1px solid #d6d8de}.order-lines{min-height:0;overflow:auto}.empty-order{padding:24px;color:#64748b}.order-line{width:100%;height:40px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:8px;border:0;border-bottom:1px solid #eef1f5;padding:0 14px;background:#fff;text-align:left}.order-line.selected{background:#e7f7f7}.order-line b{font-weight:900}.order-summary{padding:10px 14px;border-top:1px solid #e2e8f0}.order-summary div{display:flex;justify-content:space-between;margin:5px 0}.total-row{font-size:20px}.order-actions{display:grid;grid-template-columns:1fr 74px 48px 48px;gap:8px;padding:8px}.order-actions button,.payment-options button,.payment-options label{min-height:56px;border:1px solid #d4d7de;border-radius:6px;background:#f8fafc;font-weight:800;font-size:18px}.pos-keypad,.payment-keypad{display:grid;grid-template-columns:repeat(4,1fr);padding:0 8px 8px}.pos-keypad button,.payment-keypad button{min-height:58px;border:1px solid #d7dbe2;background:#f8fafc;font-weight:800;font-size:20px}.pos-keypad .mode,.payment-keypad .plus{background:#e7f7f7;border-color:#0891a0}.pos-keypad .warn,.payment-keypad .warn{background:#fde68a}.pos-keypad .soft,.payment-keypad .soft{background:#fed7c8}.pos-keypad .danger,.payment-keypad .danger{background:#fb9299}.pay-button{min-height:76px;border:0;border-radius:5px;margin:0 8px 8px;color:#fff;background:#7a4d70;font-weight:900;font-size:20px}.catalog-panel{min-width:0;padding:10px;overflow:auto}.category-tabs{display:grid;grid-template-columns:repeat(3,minmax(150px,190px));gap:10px;margin-bottom:26px}.category-tabs button{height:72px;border:1px solid #cfd3da;border-radius:7px;background:#fff;font-weight:800;font-size:16px}.category-tabs button:nth-child(1){background:#d9b0cf}.category-tabs button:nth-child(3){background:#a5e4df}.category-tabs button.active{outline:2px solid #0891a0;outline-offset:-2px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}.product-tile{position:relative;height:178px;overflow:hidden;border:1px solid #cfd3da;border-radius:7px;background:#fff;padding:0;text-align:left}.product-art{height:136px;display:grid;place-items:center;color:#0f172aad;font-size:42px;font-weight:900}.product-art img{width:100%;height:100%;object-fit:cover}.product-name{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:5px solid #d3d6dc}.product-name em{min-width:28px;height:28px;display:grid;place-items:center;border-radius:5px;color:#fff;background:#020617;font-style:normal}.pos-payment-grid{height:calc(100% - 64px);display:grid;grid-template-columns:510px 1fr}.payment-left{display:grid;grid-template-rows:1fr auto auto auto;gap:8px;padding:10px;background:#fff;border-right:1px solid #d6d8de}.payment-methods{display:grid;align-content:start;gap:10px}.payment-methods button{height:72px;display:flex;align-items:center;gap:22px;border:1px solid #d4d7de;border-radius:5px;background:#f8fafc;padding:0 28px;text-align:left;font-size:20px;font-weight:900}.payment-methods button.selected{border-color:#7a4d70;background:#fbf5fa}.payment-options{display:grid;grid-template-columns:1fr 1fr}.receipt-check{display:flex;align-items:center;justify-content:space-around}.receipt-check input{width:auto}.payment-actions{display:grid;grid-template-columns:1fr 1fr}.payment-actions button{min-height:76px;border:1px solid #d4d7de;border-radius:5px;font-weight:900;font-size:18px}.payment-actions .pay-button{margin:0;border:0}.payment-total{display:grid;place-items:center;font-size:clamp(72px,10vw,138px);font-weight:400;color:#111827}.payment-total span:first-letter,.paid-amount:first-letter{color:#6b7280}.paid-screen{height:calc(100% - 64px);display:grid;grid-template-rows:auto auto 1fr auto auto;justify-items:center;align-items:center;padding:28px 12vw 0;text-align:center}.paid-check{width:106px;height:106px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#22a947;font-size:76px;line-height:1}.paid-screen h1{margin:20px 0 0;font-size:76px}.paid-amount{align-self:center;font-size:clamp(92px,16vw,250px);color:#111827}.receipt-card{min-width:320px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;color:#475569}.receipt-card strong{color:#111827}.success-message{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:8px;padding:10px 14px}.paid-actions{width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.paid-actions button{min-height:76px;border:1px solid #d4d7de;border-radius:6px 6px 0 0;font-size:20px;font-weight:900}.paid-actions .pay-button{margin:0;border:0}@media(max-width:1050px){.pos-shell{height:auto}.pos-register-grid,.pos-payment-grid{grid-template-columns:1fr}.payment-total{min-height:260px}}.products-page{display:grid;gap:18px;position:relative}.product-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.product-workspace{display:grid;grid-template-columns:360px 1fr;gap:18px;align-items:start}.product-form,.product-list-panel{background:#fff;border:1px solid #dfe5ee;border-radius:8px;padding:18px}.product-form{display:grid;gap:14px;position:sticky;top:96px}.product-form h2{margin:0;font-size:22px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}textarea{min-height:92px;resize:vertical;border:1px solid #cfd7e3;border-radius:8px;padding:12px 14px;color:#23252f;background:#f8fafc;font:inherit}textarea:focus{border-color:#2f6f73;outline:3px solid rgba(47,111,115,.16)}.toggle-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.toggle-row label{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #dfe5ee;border-radius:8px;background:#f8fafc}.toggle-row input{width:auto}.product-list-panel{display:grid;gap:14px;min-width:0}.product-list-tools{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:12px;align-items:end}.product-search{display:grid;gap:6px;color:#475569;font-weight:700}.segmented-control{display:inline-grid;grid-template-columns:repeat(4,auto);border:1px solid #d6dde8;border-radius:8px;overflow:hidden;background:#fff}.segmented-control button{min-height:42px;border:0;border-right:1px solid #d6dde8;padding:0 12px;background:#fff;color:#334155;font-weight:800}.segmented-control button:last-child{border-right:0}.segmented-control button.active{color:#fff;background:#2f6f73}.product-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.catalog-card{display:grid;gap:8px;min-height:142px;border:1px solid #dfe5ee;border-top-width:5px;border-radius:8px;padding:14px;background:linear-gradient(180deg,#fff,#f8fafc)}.catalog-card span{width:fit-content;border-radius:999px;padding:4px 8px;color:#155e63;background:#e6f8f8;font-size:12px;font-weight:900}.catalog-card strong{color:#111827}.catalog-card b{align-self:end;color:#7a4d70;font-size:20px}.product-table-wrap table{min-width:860px}.product-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;padding:28px;background:#0f172a6b}.product-modal{width:min(980px,100%);max-height:calc(100vh - 56px);overflow:auto;display:grid;gap:24px;border:1px solid #d8dde6;border-radius:6px;padding:24px;background:#fff;box-shadow:0 24px 70px #0f172a38}.product-modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.product-modal-header h2{margin:0;color:#111827;font-size:30px}.modal-close{width:44px;height:44px;border:0;background:transparent;color:#777;font-size:34px;line-height:1}.product-modal-body{display:grid;grid-template-columns:1fr 170px;gap:28px;align-items:start}.product-modal-fields{display:grid;gap:18px}.odoo-row{display:grid;grid-template-columns:230px minmax(0,1fr);align-items:center;gap:16px}.odoo-row>span{color:#111827;font-size:22px;font-weight:800}.odoo-row em{color:#0891a0;font-size:15px;font-style:normal}.odoo-row input,.odoo-row select{border:0;border-radius:0;background:transparent;font-size:22px}.odoo-row input:focus,.odoo-row select:focus{outline:0;border-color:transparent}.input-with-icon{display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:center}.input-with-icon b{color:#6b7280;font-size:20px;letter-spacing:-2px}.inline-check input,.tax-toggle input{width:22px;height:22px;accent-color:#10868d}.tax-editor{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;color:#303846;font-size:22px}.tax-chip{min-height:38px;border:0;border-radius:999px;padding:4px 16px;color:#4a4245;background:#e6dcdf;font-weight:800}.tax-toggle{width:fit-content;display:flex;align-items:center;gap:8px;color:#475569;font-size:14px;font-weight:800}.color-picker{display:flex;flex-wrap:wrap;gap:10px}.color-picker button{width:34px;height:34px;border:2px solid #9ca3af;border-radius:999px}.color-picker button.selected{outline:3px solid #10868d;outline-offset:2px}.advanced-product-fields{margin-top:8px;border-top:1px solid #edf0f5;padding-top:14px}.advanced-product-fields summary{width:fit-content;color:#475569;font-weight:900;cursor:pointer}.advanced-product-fields>div,.advanced-product-fields>label{margin-top:12px}.product-image-box{display:grid;gap:12px}.product-image-box>img,.camera-placeholder{width:140px;height:140px;border:1px solid #d8dde6;background:#f9fafb;object-fit:cover}.camera-placeholder{position:relative;display:grid;place-items:center}.camera-placeholder span{width:78px;height:58px;border-radius:12px;background:#c9cacc}.camera-placeholder span:before{content:"";position:absolute;width:34px;height:34px;border:12px solid #ffffff;border-radius:999px;left:56px;top:50px}.camera-placeholder b{position:absolute;right:16px;bottom:14px;width:50px;height:50px;display:grid;place-items:center;border:6px solid #c9cacc;border-radius:999px;color:#c9cacc;background:#fff;font-size:42px;line-height:1}.product-image-box input{font-size:12px;padding:8px}.product-modal-actions{display:flex;align-items:center;gap:12px}.product-modal-actions button{min-height:50px;font-size:18px}@media(max-width:1100px){.product-workspace{grid-template-columns:1fr}.product-form{position:static}.product-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.product-list-tools,.form-row,.toggle-row,.product-metrics,.product-modal-body,.odoo-row{grid-template-columns:1fr}.segmented-control{grid-template-columns:repeat(2,1fr)}.product-modal-backdrop{padding:12px}.product-modal{padding:18px}.odoo-row>span,.odoo-row input,.odoo-row select,.tax-editor{font-size:18px}}.inventory-page,.admin-page{display:grid;gap:18px}.admin-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}.admin-panel,.admin-main{background:#fff;border:1px solid #dfe5ee;border-radius:8px;padding:18px}.admin-panel{display:grid;gap:14px;align-content:start}.admin-panel h2{margin:0}.admin-main{display:grid;gap:14px;min-width:0}.cash-forms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.audit-filters{display:grid;grid-template-columns:minmax(170px,1fr) minmax(150px,.8fr) 110px minmax(210px,auto) auto;gap:12px;align-items:end}.audit-change-list{display:grid;gap:6px;min-width:280px}.audit-change-row{display:grid;grid-template-columns:120px minmax(90px,1fr) minmax(90px,1fr);gap:8px;align-items:start;font-size:12px}.audit-change-row strong{color:#111827}.audit-change-row span{display:block;padding:5px 7px;border:1px solid #e5e7eb;border-radius:6px;background:#f8fafc;color:#334155;word-break:break-word}.audit-table code{display:block;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#334155}.theme-dark .audit-change-row strong,.theme-dark .audit-table code{color:#dbeafe}.theme-dark .audit-change-row span{border-color:#334155;background:#0f172a;color:#f8fafc}.inventory-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.inventory-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}.inventory-panel,.inventory-main,.movement-panel{background:#fff;border:1px solid #dfe5ee;border-radius:8px;padding:18px}.inventory-panel{position:sticky;top:96px;display:grid;gap:14px}.inventory-panel h2,.movement-panel h2{margin:0}.inventory-form,.inventory-main,.movement-panel{display:grid;gap:14px}.inventory-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,1.5fr) auto;gap:12px;align-items:end}.filter-check{min-height:44px;display:flex;align-items:center;gap:8px;border:1px solid #dfe5ee;border-radius:8px;padding:0 12px;background:#f8fafc}.filter-check input{width:auto}.positive-qty{color:#166534;font-weight:900}.negative-qty{color:#9f1d2c;font-weight:900}@media(max-width:1100px){.inventory-layout,.inventory-filters,.admin-layout,.cash-forms,.audit-filters{grid-template-columns:1fr}.inventory-panel{position:static}.inventory-metrics,.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.inventory-metrics,.admin-metrics{grid-template-columns:1fr}}:root{--font-ui: "Aptos", "Aptos Display", "Segoe UI Variable", "Segoe UI", Calibri, Arial, sans-serif;--font-mono: "Cascadia Mono", "Consolas", "Courier New", monospace;--wine: #8d1013;--wine-dark: #670b0d;--wine-soft: #fff1ef;--ink: #221a1a;--muted-warm: #716765;--paper: #fffdfb;--cream: #fbf6f1;--line-warm: #eadbd3;--line-strong: #ddc5bb;--warm-shadow: 0 18px 48px rgba(91, 35, 25, .1);color:var(--ink);font-family:var(--font-ui);background:var(--cream)}body,.main-content,.pos-shell{background:var(--cream)}.login-shell{background:radial-gradient(circle at top left,#ffffff 0%,var(--cream) 48%,#f6ebe5 100%)}.login-panel,.metric-card,.loading-card,.table-wrap,.admin-panel,.admin-main,.inventory-panel,.inventory-main,.movement-panel,.product-list-panel,.product-form,.catalog-card,.product-modal{background:var(--paper);border-color:var(--line-warm);box-shadow:var(--warm-shadow)}.topbar{background:#fffdfbe6;border-bottom-color:var(--line-warm);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.sidebar{background:linear-gradient(180deg,#8b1013,#5a0a0c)}.brand-mark{background:#fff;color:var(--wine)}.nav-list button{color:#f8ddd9}.nav-list button:hover,.nav-list button.active{color:#fff;background:#ffffff29}.page-section h1,.login-panel h1,.topbar h2,.product-modal-header h2,.paid-screen h1{color:var(--wine-dark);font-family:var(--font-ui);font-weight:900;letter-spacing:0}.eyebrow{color:var(--wine);letter-spacing:.02em}.muted,small{color:var(--muted-warm)}input,select,textarea{color:var(--ink);background:#fffdfb;border-color:var(--line-warm)}input:focus,select:focus,textarea:focus{border-color:var(--wine);outline:3px solid rgba(141,16,19,.12)}.primary-button,.pay-button{background:linear-gradient(180deg,#a91619 0%,var(--wine-dark) 100%);color:#fff;box-shadow:0 10px 22px #8d10132e}.primary-button.purple{background:linear-gradient(180deg,#a91619 0%,var(--wine-dark) 100%)}.ghost-button{background:#fffdfb;border-color:var(--line-warm);color:var(--ink)}.danger-button,.alert{color:#b42323;background:var(--wine-soft);border-color:#efc6bf}th{color:#fff;background:linear-gradient(180deg,#a91619 0%,var(--wine-dark) 100%)}td{border-bottom-color:#f0e4df}.status-pill{border-color:var(--line-warm);color:var(--muted-warm)}.segmented-control{border-color:var(--line-warm)}.segmented-control button.active{background:var(--wine)}.audit-table code,.receipt-card,.payment-total,.paid-amount{font-family:var(--font-mono)}.identity-page{display:grid;gap:18px}.identity-tabs{width:fit-content}.identity-role-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}.checkbox-list{display:grid;gap:8px;border:1px solid var(--line-warm);border-radius:8px;padding:12px;background:#fffaf7}.checkbox-list label,.permission-group label{display:flex;align-items:center;gap:8px;font-weight:700}.checkbox-list input,.permission-group input{width:auto;accent-color:var(--wine)}.permission-matrix{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}.permission-group{border:1px solid var(--line-warm);border-radius:8px;padding:12px;background:#fffaf7}.permission-group h3{margin:0 0 10px;color:var(--wine-dark);text-transform:capitalize}.permission-group>div{display:grid;gap:8px}.reports-page{display:grid;gap:18px}.reports-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.report-inline-metric{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line-warm);border-radius:8px;padding:14px;background:#fffaf7}.report-inline-metric span{color:var(--muted-warm);font-weight:800}.report-inline-metric strong{color:var(--wine-dark);font-size:24px}.report-analytics-page{gap:16px}.report-module-nav{min-height:54px;display:flex;align-items:center;gap:8px;border:1px solid var(--line-warm);border-radius:8px;padding:8px 12px;background:#fffdfbeb;box-shadow:var(--warm-shadow)}.report-module-nav strong{margin-right:8px;color:var(--wine-dark);font-size:18px}.report-module-nav button{min-height:38px;border:0;border-radius:6px;padding:0 12px;color:var(--ink);background:transparent;font-weight:800}.report-module-nav button.active,.report-module-nav button:hover{color:#fff;background:linear-gradient(180deg,#a91619 0%,var(--wine-dark) 100%)}.report-heading h1{display:flex;align-items:center;gap:8px}.report-heading h1 span{width:24px;height:24px;display:grid;place-items:center;border:1px solid var(--line-warm);border-radius:999px;color:var(--wine);background:#fffaf7;font-size:16px}.report-toolbar{display:grid;grid-template-columns:210px 210px minmax(260px,1fr) 180px 180px auto;gap:10px;align-items:end;border:1px solid var(--line-warm);border-radius:8px;padding:12px;background:var(--paper);box-shadow:var(--warm-shadow)}.report-toolbar label{display:grid;gap:5px;color:var(--muted-warm);font-size:12px;font-weight:900}.report-toolbar select{min-height:40px;border-radius:6px}.report-searchbar{min-height:40px;display:flex;align-items:center;gap:8px;border:1px solid var(--line-warm);border-radius:6px;padding:6px 8px;background:#fffaf7}.report-searchbar b{color:var(--wine-dark)}.filter-chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;border-radius:5px;padding:0 8px;color:#fff;background:#83516f;font-size:12px;font-weight:900}.filter-chip button{width:20px;height:20px;border:0;border-radius:999px;color:#fff;background:#ffffff2e;font-weight:900}.report-view-buttons{display:inline-grid;grid-template-columns:repeat(5,auto);border:1px solid var(--line-warm);border-radius:6px;overflow:hidden;background:#fffaf7}.report-view-buttons button{min-height:40px;border:0;border-right:1px solid var(--line-warm);padding:0 10px;color:var(--ink);background:transparent;font-weight:900}.report-view-buttons button:last-child{border-right:0}.report-view-buttons button.active{color:#fff;background:var(--wine)}.report-analysis-card{min-height:430px;border:1px solid var(--line-warm);border-radius:8px;padding:18px;background:linear-gradient(180deg,#fffdfb,#fbf6f1);box-shadow:var(--warm-shadow)}.report-chart{min-height:390px;display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:14px;align-items:end}.report-bar{min-width:0;display:grid;grid-template-rows:auto 250px auto;gap:8px;text-align:center}.report-bar-value{color:var(--wine-dark);font-size:13px;font-weight:900}.report-bar-track{height:250px;display:flex;align-items:end;justify-content:center;border-radius:6px;background:#8d10130a}.report-bar-track span{width:min(64px,80%);min-height:8px;border-radius:6px 6px 0 0;box-shadow:0 10px 20px #5b231924}.report-bar strong{min-height:42px;display:block;overflow:hidden;color:var(--ink);font-size:12px;line-height:1.25;text-overflow:ellipsis}.report-chart-line .report-bar-track span{width:72%;border-radius:999px 999px 0 0}.report-chart-pie{align-items:center}.report-chart-pie .report-bar{grid-template-rows:auto 160px auto}.report-chart-pie .report-bar-track{height:160px;align-items:center;border-radius:999px}.report-chart-pie .report-bar-track span{width:88px;border-radius:999px}.report-empty-state{min-height:390px;display:grid;place-items:center;align-content:center;gap:12px;text-align:center;color:var(--muted-warm)}.empty-document{width:112px;height:132px;display:grid;place-items:center;border:1px solid var(--line-warm);border-radius:8px;color:#c8b8b0;background:#fff;font-family:var(--font-mono);box-shadow:0 12px 26px #5b23191a}.report-empty-state h2{margin:0;color:var(--wine-dark);font-size:26px}.report-empty-state p{margin:0}.report-table-wrap table{min-width:680px}@media(max-width:1100px){.identity-role-layout,.reports-grid{grid-template-columns:1fr}.report-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.report-module-nav,.report-searchbar{align-items:stretch;flex-direction:column}.report-toolbar{grid-template-columns:1fr}.report-view-buttons{grid-template-columns:repeat(5,1fr)}}:root{--enoc-primary: #7A0F14;--enoc-primary-hover: #630C10;--enoc-primary-light: #991B1F;--enoc-bg: #F8F5F0;--enoc-card: #FFFFFF;--enoc-border: #DDD5CB;--enoc-text: #222222;--enoc-muted: #666666;--enoc-placeholder: #9C9C9C;--enoc-success: #2E7D32;--enoc-error: #D32F2F;--enoc-info: #1976D2;--enoc-radius: 14px;--enoc-shadow: 0 8px 24px rgba(34, 34, 34, .055);--font-ui: Inter, "Segoe UI", Arial, sans-serif;color:var(--enoc-text);font-family:var(--font-ui);background:var(--enoc-bg)}body,.main-content,.content-shell,.pos-shell{color:var(--enoc-text);background:var(--enoc-bg);font-family:var(--font-ui);font-size:15px}button,input,select,textarea{font-family:var(--font-ui)}input,select,textarea{min-height:46px;border:1px solid var(--enoc-border);border-radius:10px;color:var(--enoc-text);background:#fff;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}input::placeholder,textarea::placeholder{color:var(--enoc-placeholder)}input:hover,select:hover,textarea:hover{border-color:#c9bfb4}input:focus,select:focus,textarea:focus,button:focus-visible{border-color:var(--enoc-primary);outline:3px solid rgba(122,15,20,.15)}input:disabled,select:disabled,textarea:disabled,button:disabled{opacity:.62}.app-shell{min-height:100vh;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;background:var(--enoc-bg)}.app-topnav{position:sticky;top:0;z-index:30;min-height:72px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;border-bottom:1px solid var(--enoc-border);padding:10px 24px;background:#fffffff0;box-shadow:0 4px 18px #2222220a;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.sidebar{display:none}.brand-block{gap:12px}.brand-mark{width:46px;height:46px;border-radius:14px;color:#fff;background:var(--enoc-primary);font-weight:700}.brand-block strong,.user-box strong{color:var(--enoc-text);font-weight:700}.brand-block small,.user-box small,.muted,small{color:var(--enoc-muted)}.nav-list{display:flex;align-items:center;gap:4px;overflow-x:auto}.nav-list button{width:auto;min-height:44px;border:1px solid transparent;border-radius:10px;padding:0 12px;color:var(--enoc-muted);background:transparent;white-space:nowrap}.nav-list button:hover,.nav-list button.active{color:var(--enoc-primary);background:#fff7f4}.nav-list button.active{border-color:#7a0f1438;font-weight:700}.topbar{min-height:78px;border-bottom:1px solid var(--enoc-border);padding:18px 32px;background:transparent}.topbar h2,.page-section h1,.login-panel h1{color:var(--enoc-text);font-weight:700}.main-content{width:100%;padding:28px 32px}.page-section{width:100%;max-width:none}.login-panel,.metric-card,.loading-card,.table-wrap,.admin-panel,.admin-main,.inventory-panel,.inventory-main,.movement-panel,.product-list-panel,.product-form,.catalog-card,.product-modal,.report-module-nav,.report-toolbar,.report-analysis-card,.checkbox-list,.permission-group{border:1px solid var(--enoc-border);border-radius:var(--enoc-radius);background:var(--enoc-card);box-shadow:var(--enoc-shadow)}.primary-button,.pay-button,.invoice-button.primary,.invoice-split-action button{min-height:44px;border:1px solid var(--enoc-primary);border-radius:10px;color:#fff;background:var(--enoc-primary);box-shadow:none}.primary-button:hover,.pay-button:hover,.invoice-button.primary:hover,.invoice-split-action button:hover{background:var(--enoc-primary-hover);border-color:var(--enoc-primary-hover)}.ghost-button,.invoice-button.secondary,.danger-button{min-height:44px;border:1px solid var(--enoc-border);border-radius:10px;color:var(--enoc-text);background:#fff}.ghost-button:hover,.invoice-button.secondary:hover{border-color:var(--enoc-primary);color:var(--enoc-primary);background:#fffaf7}.danger-button,.alert,.invoice-alert.error{color:var(--enoc-error);border-color:#d32f2f3d;background:#fff5f5}.success-message,.invoice-alert.success{color:var(--enoc-success);border-color:#2e7d323d;background:#f4fbf4}th{color:#fff;background:var(--enoc-primary)}td{color:var(--enoc-text);border-bottom-color:#eee8e1}.eyebrow{color:var(--enoc-primary);letter-spacing:.04em}.invoice-loading{min-height:100vh;display:grid;place-items:center;color:var(--enoc-muted);background:var(--enoc-bg)}.invoice-screen{min-height:100vh;display:grid;gap:18px;padding:24px 32px 96px;color:var(--enoc-text);background:var(--enoc-bg);font-family:var(--font-ui)}.invoice-header{display:flex;align-items:center;justify-content:space-between;gap:24px}.invoice-brand{display:flex;align-items:center;gap:18px}.invoice-logo{width:88px;height:88px;display:grid;place-items:center;align-content:center;border:1px solid var(--enoc-border);border-radius:18px;color:var(--enoc-primary);background:#fff;box-shadow:var(--enoc-shadow)}.invoice-logo span,.invoice-logo strong{line-height:1;font-weight:700}.invoice-brand h1{margin:0;color:var(--enoc-primary);font-size:clamp(34px,4vw,52px);font-weight:700;letter-spacing:0}.invoice-brand p{margin:6px 0 0;color:var(--enoc-muted);font-size:18px}.invoice-header-actions{display:flex;align-items:center;gap:12px}.invoice-button{min-height:46px;border-radius:10px;padding:0 18px;font-weight:700}.invoice-split-action{display:grid;grid-template-columns:minmax(150px,auto) 48px;overflow:hidden;border-radius:10px}.invoice-split-action button{border-radius:0}.invoice-alert{border:1px solid;border-radius:12px;padding:12px 16px;font-weight:600}.invoice-card{border:1px solid var(--enoc-border);border-radius:var(--enoc-radius);padding:18px;background:var(--enoc-card);box-shadow:var(--enoc-shadow)}.invoice-card-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.invoice-card h2,.invoice-card-title h2{margin:0;color:var(--enoc-primary);font-size:16px;font-weight:700;letter-spacing:.02em}.invoice-meta-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.invoice-card label{gap:7px;color:var(--enoc-text);font-size:14px;font-weight:600}.invoice-card label span{color:var(--enoc-text)}.customer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:14px}.customer-address{grid-column:1 / -1}.invoice-main-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(320px,3fr);gap:18px;align-items:start}.invoice-left-column,.invoice-right-column{display:grid;gap:18px}.invoice-right-column{position:sticky;top:20px}.invoice-shortcuts,.notes-card span{color:var(--enoc-muted);font-size:13px;font-weight:600}.invoice-table-wrap{position:relative;min-height:270px;overflow:auto;border:1px solid var(--enoc-border);border-radius:12px;background:#fff}.invoice-table{width:100%;min-width:1080px;border-collapse:collapse}.invoice-table th{height:44px;padding:0 10px;text-align:left;font-size:14px;font-weight:700}.invoice-table td{padding:9px 8px;border-bottom:1px solid #EEE8E1;vertical-align:middle}.invoice-table th:nth-child(2),.invoice-table td:nth-child(2){width:31%}.invoice-table input,.invoice-table select{min-height:40px;border-radius:8px;padding:8px 10px}.compact-input{min-width:86px}.article-select{min-width:270px}.invoice-delete{min-height:40px;border:1px solid transparent;border-radius:9px;color:var(--enoc-error);background:transparent;font-weight:700}.invoice-delete:hover{border-color:#d32f2f38;background:#fff5f5}.invoice-empty{position:static;inset:auto;display:grid;place-items:center;align-content:center;gap:8px;color:var(--enoc-muted);text-align:center;pointer-events:none}.invoice-empty h3{margin:8px 0 0;color:var(--enoc-text);font-size:20px}.box-icon{width:74px;height:58px;border:2px solid var(--enoc-border);border-radius:12px;background:#fffaf7}.box-icon span{width:36px;height:2px;display:block;margin:22px auto 0;background:var(--enoc-border)}.detail-actions{display:flex;align-items:center;gap:12px;margin-top:14px}.notes-card textarea{min-height:118px;resize:vertical}.totals-card,.payment-card,.context-card{display:grid;gap:14px}.total-line{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--enoc-muted)}.total-line strong{color:var(--enoc-text);font-weight:700}.total-divider{height:1px;background:var(--enoc-border)}.grand-total{display:grid;gap:6px;border:1px solid rgba(122,15,20,.18);border-radius:14px;padding:16px;background:#fffaf7}.grand-total span{color:var(--enoc-primary);font-size:13px;font-weight:700}.grand-total strong{color:var(--enoc-primary);font-size:clamp(30px,2.8vw,46px);font-weight:700;line-height:1}.paid-field input{text-align:right}.change-line strong{color:var(--enoc-success)}.payment-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.payment-choice-grid button{min-height:68px;display:flex;align-items:center;gap:10px;border:1px solid var(--enoc-border);border-radius:12px;padding:12px;color:var(--enoc-text);background:#fff;font-weight:700}.payment-choice-grid button span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:var(--enoc-primary);background:#fff7f4;font-size:12px;font-weight:700}.payment-choice-grid button:hover,.payment-choice-grid button.selected{border-color:var(--enoc-primary);background:#fffaf7}.invoice-footer{position:fixed;right:0;bottom:0;left:0;z-index:20;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--enoc-border);padding:14px 32px;background:#fffffff0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.invoice-footer .footer-primary{min-width:190px}@media(max-width:1366px){.app-topnav{grid-template-columns:1fr auto}.app-topnav .nav-list{grid-column:1 / -1;order:3}.invoice-meta-row{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1180px){.invoice-main-grid{grid-template-columns:1fr}.invoice-right-column{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1024px){.main-content,.invoice-screen{padding-right:20px;padding-left:20px}.customer-grid,.invoice-right-column{grid-template-columns:1fr}.invoice-header{align-items:flex-start;flex-direction:column}.invoice-header-actions,.detail-actions,.invoice-footer{width:100%;flex-wrap:wrap}.invoice-footer .invoice-button{flex:1 1 160px}}.invoice-detail-toolbar .invoice-search-input b{display:none}.invoice-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 500px!important;gap:16px!important;align-items:start!important;width:100%!important;max-width:none!important;box-sizing:border-box!important}.invoice-main-column{max-width:100%!important;overflow:hidden!important}.invoice-main-column>.invoice-card,.invoice-info-card,.invoice-customer-card,.invoice-detail-ref-card,.invoice-reference-screen .notes-card{width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important}.invoice-ref-header{grid-template-columns:minmax(0,1fr)!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}.invoice-ref-meta{grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}.invoice-ref-meta article,.invoice-ref-meta article div,.invoice-ref-meta strong,.invoice-ref-meta select{min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.invoice-customer-row{grid-template-columns:minmax(280px,2fr) auto minmax(180px,1fr) minmax(180px,1fr)!important;gap:12px!important;max-width:100%!important;min-width:0!important}.invoice-customer-row>*,.invoice-customer-row label,.invoice-customer-row input,.invoice-customer-row select,.invoice-search-input{min-width:0!important;max-width:100%!important}.invoice-detail-toolbar{grid-template-columns:minmax(160px,220px) minmax(180px,260px) 128px minmax(180px,max-content)!important;gap:12px!important;align-items:end!important;max-width:100%!important;min-width:0!important}.invoice-ref-table th:nth-child(8),.invoice-ref-table td:nth-child(8),.invoice-ref-table th:nth-child(9),.invoice-ref-table td:nth-child(9){display:table-cell!important}.payment-choice-grid button{display:grid!important;grid-template-columns:auto 1fr auto;align-items:center!important;justify-items:center;column-gap:8px}.app-shell>.app-topnav .user-box .ghost-button{min-height:34px!important;padding:0 10px!important;white-space:nowrap!important}.page-section.customers-page .section-heading .muted{margin:0!important}.page-section.customers-page .metric-card span{color:var(--enoc-muted)!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase!important}.page-section.customers-page .metric-card strong{color:var(--enoc-text)!important;font-size:30px!important;line-height:1!important}.page-section.customers-page label{gap:5px!important;min-width:0!important;font-size:13px!important;line-height:1.2!important}.page-section.customers-page input,.page-section.customers-page select{min-height:38px!important;height:38px!important;border-radius:7px!important;padding:8px 10px!important;font-size:13px!important}.page-section.customers-page textarea{min-height:72px!important;border-radius:7px!important;padding:9px 10px!important;font-size:13px!important}.page-section.customers-page .product-list-tools{grid-template-columns:minmax(260px,1fr) minmax(150px,180px)!important;gap:9px!important;align-items:end!important}.page-section.customers-page .table-wrap table{min-width:860px!important}.page-section.customers-page table th{padding:10px 12px!important;background:var(--enoc-primary)!important;color:#fff!important;font-size:12px!important;vertical-align:middle!important}.page-section.customers-page table td strong,.page-section.customers-page table td small{display:block!important;line-height:1.28!important}.page-section.customers-page table td small{margin-top:3px!important}.page-section.customers-page .status-pill{min-height:24px!important;padding:3px 9px!important}@media(max-width:1180px){.app-shell>.app-topnav{grid-template-columns:1fr!important;gap:8px!important}.app-shell>.app-topnav .user-box{min-width:0!important;justify-content:space-between!important;border-left:0!important;border-top:1px solid var(--enoc-border)!important;padding-top:8px!important;padding-left:0!important}}@media(max-width:900px){.page-section.customers-page .legal-admin-layout{grid-template-columns:1fr!important}.page-section.customers-page .legal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:640px){.page-section.customers-page .form-row,.page-section.customers-page .product-list-tools,.page-section.customers-page .legal-metrics{grid-template-columns:1fr!important}}.app-topnav .brand-block{min-width:158px}.app-topnav .brand-mark{width:42px;height:42px;border-radius:12px}.app-topnav .nav-list{gap:6px;min-width:0;padding:2px;scrollbar-width:thin}.app-topnav .nav-list button{min-height:38px;border-radius:8px;padding:0 10px;font-size:14px;font-weight:700;line-height:1}.app-topnav .nav-list button.active{border-color:#7a0f1447;background:#fff6f4;box-shadow:inset 0 0 0 1px #7a0f140d}.app-topnav .user-box{min-width:188px;justify-content:flex-end;gap:10px;border-left:1px solid var(--enoc-border);padding-left:14px}.app-topnav .user-box .ghost-button{min-height:36px;padding:0 10px;border-radius:8px;white-space:nowrap}@media(max-width:1180px){.app-topnav{grid-template-columns:1fr;gap:8px}.app-topnav .brand-block,.app-topnav .user-box{min-width:0}.app-topnav .user-box{justify-content:space-between;border-left:0;border-top:1px solid var(--enoc-border);padding-top:8px;padding-left:0}}.app-topnav{min-height:66px;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;padding:8px 22px}.brand-block{min-width:158px}.brand-mark{width:42px;height:42px;border-radius:12px}.nav-list{gap:6px;min-width:0;padding:2px;scrollbar-width:thin}.nav-list button{min-height:38px;border-radius:8px;padding:0 10px;font-size:14px;font-weight:700;line-height:1}.nav-list button.active{border-color:#7a0f1447;background:#fff6f4;box-shadow:inset 0 0 0 1px #7a0f140d}.user-box{min-width:188px;justify-content:flex-end;gap:10px;border-left:1px solid var(--enoc-border);padding-left:14px}.user-box .ghost-button{min-height:36px;padding:0 10px;border-radius:8px;white-space:nowrap}.customers-page{gap:14px}.customers-page .section-heading{align-items:center;margin-bottom:0}.customers-page .section-heading>div{display:grid;gap:4px}.customers-page .section-heading h1{font-size:30px;line-height:1.12}.customers-page .section-heading .muted{margin:0}.customers-page .section-heading .ghost-button{align-self:center;min-height:38px}.customers-page .legal-metrics{gap:12px}.customers-page .metric-card{min-height:86px;gap:6px;padding:14px 16px;align-content:center}.customers-page .metric-card span{color:var(--enoc-muted);font-size:12px;font-weight:800;text-transform:uppercase}.customers-page .metric-card strong{color:var(--enoc-text);font-size:30px;line-height:1}.customers-page .legal-admin-layout{grid-template-columns:minmax(340px,360px) minmax(0,1fr);gap:16px}.customers-page .admin-panel,.customers-page .admin-main{padding:16px}.customers-page .legal-form{gap:12px}.customers-page .form-title-row h2{font-size:20px}.customers-page label{gap:6px;min-width:0;color:#3f4754;font-size:13px;line-height:1.25}.customers-page input,.customers-page select{min-height:40px;height:40px;border-radius:7px;padding:9px 11px;font-size:14px}.customers-page textarea{min-height:78px;border-radius:7px;padding:10px 11px;font-size:14px}.customers-page .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.customers-page .product-list-tools{grid-template-columns:minmax(260px,1fr) minmax(150px,190px);gap:10px;align-items:end}.customers-page .product-search{gap:6px;font-size:13px}.customers-page .product-list-tools input,.customers-page .product-list-tools select{min-height:40px;height:40px}.customers-page .table-wrap table{min-width:860px}.customers-page table th{padding:11px 12px;background:var(--enoc-primary);color:#fff;font-size:12px;letter-spacing:0;vertical-align:middle}.customers-page table td{padding:12px;vertical-align:middle}.customers-page table td strong{display:block;color:var(--enoc-text);line-height:1.25}.customers-page table td small{display:block;margin-top:3px;line-height:1.3}.customers-page .table-actions{text-align:right}.customers-page .table-actions .compact{min-height:34px;padding:0 12px}.customers-page .status-pill{min-height:26px;justify-content:center;padding:4px 10px}@media(max-width:1180px){.app-topnav{grid-template-columns:1fr;gap:8px}.brand-block,.user-box{min-width:0}.user-box{justify-content:space-between;border-left:0;border-top:1px solid var(--enoc-border);padding-top:8px;padding-left:0}}@media(max-width:900px){.customers-page .legal-admin-layout{grid-template-columns:1fr}.customers-page .legal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){body{overflow-x:hidden}.customers-page .section-heading{align-items:flex-start}.customers-page .form-row,.customers-page .product-list-tools,.customers-page .legal-metrics{grid-template-columns:1fr}.customers-page .table-wrap{overflow-x:auto}}.logo-upload-panel{align-items:center;display:grid;gap:12px;grid-template-columns:128px minmax(0,1fr)}.company-logo-preview{align-items:center;background:#fffaf4;border:1px dashed #d8cabe;border-radius:6px;display:flex;height:88px;justify-content:center;overflow:hidden}.company-logo-preview img{max-height:76px;max-width:116px;object-fit:contain}.company-logo-preview span{color:#6f6a66;font-size:13px}.file-upload-button{align-items:center;background:#fff;border:1px solid #d8cabe;border-radius:6px;color:#7a0f14;cursor:pointer;display:inline-flex;font-weight:800;height:40px;justify-content:center;max-width:160px}.file-upload-button input{display:none}.invoice-preview-panel{margin:18px 0}.invoice-paper{background:#fff;border:1px solid #ded4ca;border-radius:6px;color:#1f2933;display:grid;gap:14px;padding:18px}.invoice-paper-header{align-items:flex-start;border-bottom:1px solid #eee5dc;display:flex;justify-content:space-between;padding-bottom:12px}.invoice-paper-header img{max-height:64px;max-width:160px;object-fit:contain}.invoice-paper-header h2{margin:0;text-align:right}.invoice-paper-header span{color:#6f6a66;display:block;font-size:13px;text-align:right}.invoice-paper-meta{display:grid;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-preview-actions{display:flex;justify-content:flex-end}.invoice-paper-meta span{color:#6f6a66;display:grid;font-size:12px;gap:2px}.invoice-paper-meta strong{color:#1f2933;font-size:13px}.invoice-preview-lines{border-collapse:collapse;width:100%}.invoice-preview-lines td{border-bottom:1px solid #f0e7df;padding:8px 0}.invoice-preview-lines td:last-child{font-weight:800;text-align:right}.invoice-paper-total{display:grid;gap:6px;justify-self:end;min-width:220px}.invoice-paper-total span,.invoice-paper-total strong{display:flex;justify-content:space-between}.invoice-paper-total strong{border-top:1px solid #ded4ca;color:#7a0f14;font-size:18px;padding-top:8px}.invoice-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important}.invoice-meta article div{overflow:visible!important}.invoice-meta strong,.invoice-meta select{overflow:visible!important;text-overflow:clip!important;white-space:normal!important}.invoice-meta select{min-width:120px!important;width:100%!important;height:38px!important;padding:0 28px 0 10px!important}.table-wrapper{overflow-x:visible!important}@media(max-width:1200px){.invoice-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}}.invoice-meta{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;max-width:100%!important}.invoice-meta article,.invoice-meta article div,.invoice-meta strong,.invoice-meta select{min-width:0!important;max-width:100%!important}.table-wrapper{width:100%!important;max-width:100%!important;overflow-x:auto!important}.table-wrapper .invoice-ref-table{width:max-content!important;min-width:100%!important;max-width:none!important}@media(max-width:1200px){.invoice-layout{grid-template-columns:minmax(0,1fr) 360px!important}.customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}.invoice-reference-screen{overflow-x:hidden!important}.invoice-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 500px!important;gap:16px!important;align-items:start!important;width:100%!important;max-width:none!important}.invoice-main-column,.invoice-side-column,.invoice-side-panel{min-width:0!important}.invoice-side-panel{position:sticky!important;top:16px!important;margin:0!important}.invoice-ref-title h1{font-size:30px!important}.invoice-ref-header{grid-template-columns:minmax(0,1fr)!important}.invoice-ref-meta{grid-template-columns:repeat(4,minmax(0,1fr))!important}.invoice-customer-row{grid-template-columns:minmax(280px,2fr) auto minmax(180px,1fr) minmax(180px,1fr)!important;gap:12px!important}.invoice-detail-head{margin-bottom:8px!important}.invoice-detail-toolbar{grid-template-columns:minmax(160px,220px) minmax(180px,260px) 128px minmax(180px,max-content)!important;gap:12px!important;align-items:end!important}.invoice-add-article-button{justify-self:end;white-space:nowrap}.invoice-ref-table-wrap{width:100%;max-width:100%;overflow-x:auto!important}.invoice-ref-table{min-width:1180px!important}.invoice-ref-table th:nth-child(8),.invoice-ref-table td:nth-child(8){display:table-cell!important}.invoice-ref-table th:nth-child(9),.invoice-ref-table td:nth-child(9){display:table-cell!important}.payment-choice-grid button{display:grid!important;grid-template-columns:auto 1fr auto;grid-template-rows:1fr;align-items:center!important;justify-items:center;column-gap:8px;text-align:center}.payment-choice-grid button:after,.invoice-payment-ref .payment-choice-grid button:after{content:none!important;display:none!important}.payment-check{align-self:start;justify-self:end;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:#7a0f14;color:#fff;font-size:14px;line-height:1}.invoice-actions-card{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.invoice-actions-card .invoice-button{width:100%}.invoice-actions-card .invoice-button:first-child{grid-column:1 / -1}.invoice-actions-card .invoice-button:last-child{grid-column:1 / -1;background:transparent!important;border-color:transparent!important;color:#7a0f14!important}@media(max-width:1180px){.invoice-layout{grid-template-columns:1fr!important}.invoice-side-panel{position:static!important}}.invoice-reference-screen{min-height:100svh!important;height:auto!important;padding:16px!important;overflow:auto!important;font-family:Inter,Segoe UI,Arial,sans-serif!important;color:#222;background:#f8f5f0}.invoice-layout{display:grid;grid-template-columns:minmax(0,7fr) minmax(320px,3fr);gap:16px;align-items:start;width:100%;max-width:1920px;margin:0 auto}.invoice-main-column,.invoice-side-column,.invoice-side-panel{min-width:0}.invoice-main-column,.invoice-side-panel{display:grid;gap:12px}.invoice-side-panel{position:sticky;top:16px}.invoice-card,.invoice-info-card,.invoice-customer-card,.invoice-detail-ref-card,.invoice-summary-ref,.invoice-payment-ref,.invoice-actions-card,.invoice-reference-screen .notes-card{border:1px solid #DDD5CB!important;border-radius:14px!important;padding:16px!important;box-shadow:0 6px 18px #7a0f140a!important;background:#fff!important}.invoice-info-card{display:grid;gap:16px}.invoice-ref-header{display:grid!important;grid-template-columns:minmax(260px,.9fr) minmax(460px,1.1fr)!important;gap:16px!important;align-items:center!important}.invoice-ref-title{display:flex!important;align-items:center!important;gap:12px!important;min-width:0}.invoice-ref-logo{width:56px!important;height:56px!important;flex:0 0 56px;border-radius:10px!important}.invoice-ref-title h1{margin:0 0 4px!important;font-size:clamp(30px,2.1vw,40px)!important;line-height:1!important;letter-spacing:0!important}.invoice-ref-title p{margin:0!important;font-size:14px!important}.invoice-ref-meta{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;min-width:0;overflow:hidden}.invoice-ref-meta article{display:flex!important;align-items:center!important;gap:8px!important;min-width:0;min-height:48px!important;padding:8px 12px!important}.invoice-ref-meta article>span{flex:0 0 auto;font-size:11px!important}.invoice-ref-meta small{font-size:12px!important;line-height:1.2}.invoice-ref-meta strong,.invoice-ref-meta select{width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px!important;line-height:1.25}.invoice-type-row{display:grid;grid-template-columns:minmax(240px,360px)}.invoice-type-row label,.invoice-customer-card label,.invoice-detail-toolbar label{display:grid;gap:4px}.invoice-card h2,.invoice-card-title h2,.invoice-detail-ref-card h2,.invoice-summary-ref h2,.invoice-payment-ref h2{margin:0 0 12px!important;color:#7a0f14!important;font-size:16px!important;line-height:1.2!important;letter-spacing:0!important}.invoice-card label span,.invoice-card-title span{font-size:14px!important}.invoice-reference-screen input,.invoice-reference-screen select,.invoice-reference-screen textarea,.invoice-button,.invoice-delete,.payment-choice-grid button{min-height:40px!important;height:40px;font-family:Inter,Segoe UI,Arial,sans-serif!important;font-size:14px!important}.invoice-reference-screen input,.invoice-reference-screen select,.invoice-reference-screen textarea{border:1px solid #DDD5CB!important;border-radius:8px!important;padding:0 12px!important}.invoice-reference-screen textarea{height:auto!important;min-height:88px!important;padding:12px!important;resize:vertical}.invoice-button,.invoice-delete,.payment-choice-grid button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px;border-radius:8px!important;line-height:1.1}.invoice-customer-row{display:grid!important;grid-template-columns:minmax(240px,1.35fr) 150px minmax(180px,.85fr) minmax(180px,.85fr)!important;gap:12px!important;align-items:end!important}.invoice-detail-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 12px!important}.invoice-detail-head h2{margin:0!important}.invoice-detail-head .primary{min-width:156px!important}.invoice-detail-toolbar{display:grid!important;grid-template-columns:minmax(160px,220px) minmax(180px,260px) 128px!important;gap:12px!important;align-items:end!important;margin:0 0 12px!important}.invoice-search-input input{width:100%;padding-right:12px!important}.scan-button{width:100%}.invoice-ref-table-wrap{min-height:144px!important;max-height:none!important;overflow:auto!important}.invoice-ref-table{width:100%;min-width:1120px!important;table-layout:fixed;border-collapse:separate;border-spacing:0}.invoice-ref-table thead{display:table-header-group!important}.invoice-ref-table th{height:40px!important;padding:8px!important;background:#7a0f14!important;color:#fff!important;font-size:14px!important;text-align:left;white-space:nowrap}.invoice-ref-table td{height:auto!important;padding:8px!important;border-bottom:1px solid #EEE7E0;font-size:14px!important;vertical-align:middle}.invoice-ref-table input,.invoice-ref-table select{width:100%;min-height:40px!important;height:40px!important}.invoice-ref-table td:nth-child(1){width:112px}.invoice-ref-table td:nth-child(2){width:280px}.invoice-ref-table td:nth-child(3){width:104px}.invoice-ref-table td:nth-child(4){width:92px}.invoice-ref-table td:nth-child(5){width:136px}.invoice-ref-table td:nth-child(6){width:148px}.invoice-ref-table td:nth-child(7){width:116px}.invoice-ref-table td:nth-child(8){width:116px}.invoice-ref-table td:nth-child(9){width:88px}.discount-cell{display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:4px}.invoice-empty{min-height:144px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:8px!important;padding:24px!important;color:#666;text-align:center}.invoice-empty h3{margin:0!important;color:#7a0f14!important;font-size:16px!important}.invoice-empty p{margin:0!important;font-size:14px!important}.total-line,.summary-total-line{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px}.summary-total-line{padding-top:8px}.summary-total-line strong{color:#7a0f14!important;font-size:28px!important;line-height:1.1!important}.payment-choice-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.payment-choice-grid button{position:relative;height:64px!important;min-height:64px!important;flex-direction:column;border:1px solid #DDD5CB!important;background:#fff!important;color:#222!important}.payment-choice-grid button.selected{border-color:#7a0f14!important;background:#fbf2ef!important;box-shadow:inset 0 0 0 1px #7a0f14!important}.payment-choice-grid button.selected:after{content:none;position:static;top:auto;right:auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:20px;border-radius:999px;background:#7a0f14;color:#fff;font-size:10px;font-weight:700}.invoice-actions-card{display:grid;grid-template-columns:1fr;gap:8px}.invoice-actions-card .primary{order:-1;background:#7a0f14!important;color:#fff!important}.invoice-ref-actions{position:static!important;display:none!important}@media(max-width:1280px){.invoice-layout{grid-template-columns:minmax(0,1fr) 340px}.invoice-ref-header{grid-template-columns:1fr!important}.invoice-ref-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}.invoice-customer-row{grid-template-columns:minmax(220px,1fr) 144px minmax(170px,.8fr) minmax(170px,.8fr)!important}}@media(max-width:1024px){.invoice-layout{grid-template-columns:1fr}.invoice-side-panel{position:static}.invoice-customer-row,.invoice-detail-toolbar,.invoice-type-row{grid-template-columns:1fr!important}}.invoice-detail-ref-card .invoice-empty{position:static!important;inset:auto!important;pointer-events:auto}.invoice-detail-toolbar .invoice-search-input,.invoice-customer-card .invoice-search-input,.invoice-payment-ref .payment-choice-grid button.selected,.payment-choice-grid button.selected{position:static!important}.invoice-payment-ref .payment-choice-grid button.selected:after,.payment-choice-grid button.selected:after{position:static!important;content:"Seleccionado";width:auto;height:20px;margin-top:4px;padding:0 8px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center}.invoice-reference-screen{gap:14px;padding:14px 22px 84px;background:#f8f5f0}.invoice-ref-header{display:grid;grid-template-columns:minmax(360px,1fr) minmax(560px,.82fr);gap:22px;align-items:center}.invoice-ref-title{display:flex;align-items:center;gap:18px}.invoice-ref-logo{width:84px;height:84px;display:grid;place-items:center;border-radius:8px;color:#fff;background:linear-gradient(180deg,#b20f16,#7a0f14);font-weight:700;box-shadow:0 10px 22px #7a0f142e}.invoice-ref-title h1{margin:0;color:#7a0f14;font-size:42px;font-weight:700;letter-spacing:0}.invoice-ref-title p{margin:4px 0 0;color:#666;font-size:17px}.invoice-ref-meta{min-height:84px;display:grid;grid-template-columns:minmax(150px,.92fr) minmax(150px,.92fr) minmax(170px,1fr) minmax(190px,1.12fr);align-items:center;border:1px solid #DDD5CB;border-radius:8px;background:#fff;box-shadow:0 8px 24px #2222220b}.invoice-ref-meta article{min-width:0;height:58px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;border-right:1px solid #E7DED6;padding:0 18px}.invoice-ref-meta article:last-child{border-right:0}.invoice-ref-meta article>span{color:#7a0f14;font-size:12px;font-weight:700}.invoice-ref-meta small{color:#222;font-size:12px;font-weight:700}.invoice-ref-meta strong{display:block;min-width:0;margin-top:6px;overflow:hidden;color:#222;font-size:15px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.invoice-ref-meta article:first-child strong{color:#7a0f14}.invoice-ref-meta select{width:100%;min-width:0;min-height:26px;overflow:hidden;border:0;padding:0 22px 0 0;background:transparent;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.invoice-type-card,.invoice-customer-card,.invoice-detail-ref-card,.invoice-summary-ref,.invoice-payment-ref,.invoice-reserved-space,.invoice-reference-screen .notes-card{border-radius:8px;padding:16px 20px;box-shadow:0 8px 24px #2222220a}.invoice-type-card h2,.invoice-customer-card h2,.invoice-detail-ref-card h2,.invoice-summary-ref h2,.invoice-payment-ref h2{margin:0 0 10px;color:#7a0f14;font-size:16px;font-weight:700}.invoice-type-card label{width:min(100%,500px)}.invoice-type-card select,.invoice-customer-card input,.invoice-customer-card select,.invoice-detail-toolbar input,.invoice-detail-toolbar button{height:48px}.invoice-customer-row{display:grid;grid-template-columns:minmax(280px,1.2fr) 170px minmax(220px,1fr) minmax(220px,1fr);gap:28px;align-items:end}.invoice-search-input{position:static;display:block}.invoice-search-input input{padding-right:46px}.invoice-search-input b{position:static;right:auto;bottom:auto;color:#222;font-size:13px}.invoice-search-input b button{width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:999px;padding:0;color:#222;background:transparent;font-weight:700}.invoice-search-input b button:hover{color:#7a0f14;background:#fff4f1}.invoice-new-client{color:#7a0f14;border-color:#c94a4e;font-weight:700}.invoice-new-client span,.invoice-detail-head .primary span{font-size:24px;line-height:0}.invoice-detail-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.invoice-detail-head h2{margin:0}.invoice-detail-head .primary{min-width:210px}.invoice-detail-toolbar{display:grid;grid-template-columns:285px 285px 290px minmax(0,1fr);gap:24px;align-items:center;margin-bottom:16px}.invoice-detail-toolbar button{justify-content:center;color:#222}.invoice-ref-table-wrap{min-height:0;border-radius:8px}.invoice-ref-table{min-width:1180px}.invoice-ref-table th{height:44px;padding:0 16px;color:#fff;background:linear-gradient(180deg,#b20f16,#7a0f14);font-size:14px}.invoice-ref-table th:first-child{border-top-left-radius:6px}.invoice-ref-table th:last-child{border-top-right-radius:6px}.invoice-ref-table td{height:62px;padding:10px 14px}.invoice-ref-table td:nth-child(2){min-width:280px}.invoice-ref-table input,.invoice-ref-table select{min-height:42px;background:#fff}.invoice-ref-table .article-select{min-width:260px}.invoice-ref-table td>small{display:block;margin-top:4px;color:#666}.readonly-price{color:#4a4a4a;background:#f8f5f0!important;cursor:default;font-weight:700;text-align:right}.discount-cell{display:grid;grid-template-columns:minmax(80px,1fr) 58px;gap:8px}.invoice-delete{min-width:52px;color:#b20f16;border-color:#e8c4c1;background:#fff}.invoice-bottom-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.95fr);gap:16px}.invoice-bottom-left,.invoice-bottom-right{display:grid;gap:12px}.invoice-reference-screen .notes-card textarea{min-height:92px}.invoice-reserved-space{min-height:126px;display:grid;place-items:center;align-content:center;gap:4px;border-style:dashed;color:#666;text-align:center}.invoice-reserved-space .box-icon{width:44px;height:38px;border-color:#7a0f14;background:transparent}.invoice-summary-ref{gap:8px}.invoice-summary-ref .total-line{font-size:15px}.summary-total-line{display:flex;align-items:center;justify-content:space-between;padding-top:4px;color:#7a0f14;font-size:16px;font-weight:700}.summary-total-line strong{color:#7a0f14;font-size:28px;font-weight:700}.invoice-payment-ref .payment-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.invoice-payment-ref .payment-choice-grid button{min-height:76px;flex-direction:column;justify-content:center;gap:7px;border-radius:7px;font-size:13px}.invoice-payment-ref .payment-choice-grid button.selected{position:static;border-color:#7a0f14;background:#fff9f6}.invoice-payment-ref .payment-choice-grid button.selected:after{content:none;position:static;top:auto;right:auto;width:24px;height:24px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#7a0f14;font-size:13px}.invoice-ref-actions{position:fixed;right:22px;bottom:16px;z-index:25;display:flex;gap:18px;justify-content:flex-end}.invoice-ref-actions .primary{min-width:180px}.invoice-print-action{display:grid;grid-template-columns:minmax(210px,auto) 54px;overflow:hidden;border:1px solid #C94A4E;border-radius:8px;background:#fff}.invoice-print-action .invoice-button{border:0;border-radius:0;color:#7a0f14}.print-preview-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:grid;place-items:center;padding:24px;background:#22222275}.print-preview-modal{width:min(980px,100%);max-height:calc(100vh - 48px);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:14px;overflow:auto;border:1px solid #DDD5CB;border-radius:14px;padding:20px;background:#f8f5f0;box-shadow:0 24px 70px #2222223d}.print-preview-header,.print-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.print-preview-header h2{margin:0;color:#7a0f14}.print-format-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.print-format-tabs button{min-height:48px;border:1px solid #DDD5CB;border-radius:10px;color:#222;background:#fff;font-weight:700}.print-format-tabs button.selected{border-color:#7a0f14;color:#7a0f14;background:#fff7f4}.print-preview-page{justify-self:center;width:min(100%,760px);display:grid;gap:18px;border:1px solid #DDD5CB;border-radius:10px;padding:28px;background:#fff;color:#222;box-shadow:0 8px 24px #22222212}.ticket-print-page{width:260px;gap:10px;border-radius:4px;padding:14px;font-family:Consolas,Courier New,monospace;font-size:12px}.print-doc-head{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #DDD5CB;padding-bottom:14px}.ticket-print-page .print-doc-head{display:grid;gap:8px;text-align:center}.print-doc-head div{display:grid;gap:4px}.print-doc-head strong{color:#7a0f14;font-size:20px}.ticket-print-page .print-doc-head strong{font-size:14px}.print-doc-head span{color:#666}.print-doc-table{width:100%;border-collapse:collapse}.print-doc-table th{height:36px;padding:8px;text-align:left}.print-doc-table td{padding:8px;border-bottom:1px solid #EEE8E1}.ticket-print-page .print-doc-table th,.ticket-print-page .print-doc-table td{padding:5px 2px}.print-doc-totals{display:grid;justify-self:end;min-width:260px;gap:8px}.ticket-print-page .print-doc-totals{min-width:0;width:100%}.print-doc-totals span,.print-doc-totals b{display:flex;justify-content:space-between;gap:16px}.print-doc-totals b{border-top:1px solid #DDD5CB;padding-top:8px;color:#7a0f14;font-size:20px}@media print{body *{visibility:hidden}.print-preview-page,.print-preview-page *{visibility:visible}.print-preview-page{position:fixed;top:0;left:0;width:100%;box-shadow:none;border:0}.ticket-print-page{width:58mm;padding:2mm}}.legal-page{display:grid;gap:18px}.legal-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.legal-admin-layout{align-items:start}.legal-form{display:grid;gap:14px}.form-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.form-title-row h2{margin:0}.timer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dfe5ee;border-radius:8px;padding:10px 12px;background:#f8fafc}.timer-bar strong{color:#17212f;font-size:18px}.legal-list-panel{display:grid;gap:14px}.empty-state{border:1px dashed #cfd7e3;border-radius:8px;padding:28px;background:#fff}.empty-state h3{margin:0 0 8px}.empty-state p{margin:0;color:#6b7280}.readonly-reference{display:grid;gap:4px;border:1px solid #dfe5ee;border-radius:8px;padding:10px 12px;background:#f8fafc}.readonly-reference span{color:#6b7280;font-size:12px;font-weight:800;text-transform:uppercase}.readonly-reference strong{color:#17212f;font-size:18px}.settings-inline-section{display:grid;gap:12px;margin-top:8px;padding-top:16px;border-top:1px solid #e5e7eb}.mfa-setup-card{display:grid;gap:12px;justify-items:stretch;border:1px solid #dfe5ee;border-radius:8px;padding:12px;background:#fff}.mfa-setup-card img{width:min(220px,100%);aspect-ratio:1;justify-self:center;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:10px}.rich-preview{width:100%;min-height:132px;border:1px solid #cfd7e3;border-radius:8px;padding:12px 14px;background:#fff;color:#23252f;text-align:left;font-weight:500}.rich-preview em{color:#8a94a6;font-style:normal;font-weight:700}.rich-preview span{display:block;max-height:190px;overflow:hidden}.matter-editor-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:24px;background:#0f172a6b}.matter-editor-modal{width:min(980px,100%);max-height:calc(100vh - 48px);display:grid;grid-template-rows:auto auto minmax(260px,1fr) auto auto;gap:12px;overflow:auto;border:1px solid #d8dde6;border-radius:8px;padding:18px;background:#fff;box-shadow:0 24px 70px #0f172a38}.matter-editor-header,.matter-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.matter-editor-header h2{margin:0}.matter-editor-toolbar{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #e6ebf2;padding-bottom:10px}.matter-editor-toolbar button{min-width:38px;min-height:34px;border:1px solid #d6dde8;border-radius:6px;background:#f8fafc;color:#17212f;font-weight:900}.matter-rich-editor{min-height:320px;border:1px solid #cfd7e3;border-radius:8px;padding:18px;background:#fff;line-height:1.55;outline:none}.matter-rich-editor:focus{border-color:#2f6f73;box-shadow:0 0 0 3px #2f6f7329}.attachment-panel{display:grid;gap:10px}.attachment-list{display:grid;gap:8px}.attachment-row{display:grid;gap:3px;width:100%;border:1px solid #dfe5ee;border-radius:8px;padding:10px 12px;background:#f8fafc;color:#17212f;text-align:left}.attachment-row.pending{border-style:dashed;color:#475569}.rate-tabs{display:inline-flex;width:fit-content;overflow:hidden;border:1px solid #d6dde8;border-radius:8px;background:#fff}.rate-tabs button{min-height:40px;border:0;border-right:1px solid #d6dde8;padding:0 14px;background:#fff;color:#334155;font-weight:800}.rate-tabs button:last-child{border-right:0}.rate-tabs button.active{color:#fff;background:#2f6f73}.resolver-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:1px solid #dfe5ee;border-radius:8px;padding:12px;background:#fff}.resolver-panel .readonly-reference{grid-column:1 / -1}textarea{width:100%}@media(max-width:1100px){.legal-metrics,.legal-admin-layout,.resolver-panel{grid-template-columns:1fr}}.invoice-reference-screen{min-height:100svh;padding:14px 18px 92px;gap:10px;overflow-x:hidden}.invoice-ref-title h1{font-size:clamp(28px,2vw,38px);line-height:1}.invoice-ref-meta{min-width:0;grid-template-columns:minmax(130px,.8fr) minmax(120px,.7fr) minmax(150px,.9fr) minmax(150px,.9fr);overflow:hidden}.invoice-ref-meta article{min-width:0;gap:10px;padding:9px 12px}.invoice-card,.invoice-detail-ref-card,.invoice-reference-screen .notes-card,.invoice-summary-ref,.invoice-payment-ref{border-radius:10px;padding:12px 14px}.invoice-new-client{white-space:nowrap}.invoice-empty{min-height:120px;display:grid;place-items:center;align-content:center;gap:4px;text-align:center}.invoice-ref-actions{left:18px;right:18px;bottom:12px;padding:10px;gap:10px}@media(max-width:1366px){.invoice-reference-screen{padding:12px 14px 88px;gap:8px}.invoice-ref-header{grid-template-columns:minmax(250px,.7fr) minmax(520px,1.3fr)}.invoice-ref-meta article{padding:8px 10px}.invoice-customer-row{grid-template-columns:minmax(220px,1.15fr) 140px minmax(170px,.9fr) minmax(170px,.9fr)}}.invoice-reference-screen{min-height:100svh;padding:16px 20px 92px;gap:10px;overflow-x:hidden}.invoice-ref-header{grid-template-columns:minmax(280px,.8fr) minmax(560px,1.2fr);gap:16px;align-items:center}.invoice-ref-title{min-width:0}.invoice-ref-logo{width:52px;height:52px;border-radius:8px;font-size:14px}.invoice-ref-title h1{font-size:clamp(28px,2vw,40px);line-height:1}.invoice-ref-title p{font-size:14px}.invoice-ref-meta{min-width:0;grid-template-columns:minmax(130px,.8fr) minmax(120px,.7fr) minmax(150px,.9fr) minmax(150px,.9fr);gap:0;overflow:hidden}.invoice-ref-meta article{min-width:0;gap:10px;padding:10px 14px}.invoice-ref-meta article>span{flex:0 0 26px;font-size:11px}.invoice-ref-meta article div{min-width:0}.invoice-ref-meta strong,.invoice-ref-meta select{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.invoice-card,.invoice-detail-ref-card,.invoice-reference-screen .notes-card{border-radius:10px;padding:14px 16px}.invoice-detail-ref-card h2,.invoice-reference-screen .notes-card h2,.invoice-summary-ref h2,.invoice-payment-ref h2,.invoice-type-card h2,.invoice-customer-card h2{font-size:14px;margin-bottom:10px}.invoice-customer-row{grid-template-columns:minmax(240px,1.2fr) 150px minmax(190px,.9fr) minmax(190px,.9fr);gap:12px;align-items:end}.invoice-reference-screen input,.invoice-reference-screen select,.invoice-reference-screen textarea{font-size:14px}.invoice-button{min-height:42px;border-radius:9px;padding:0 16px;font-size:14px;font-weight:700}.invoice-button span{font-size:inherit;line-height:1}.invoice-new-client{width:100%;white-space:nowrap}.invoice-detail-head{margin-bottom:10px}.invoice-detail-head .primary{min-width:170px}.invoice-detail-head .primary span{font-size:17px}.invoice-detail-toolbar{grid-template-columns:minmax(170px,220px) minmax(180px,240px) 130px;gap:10px;margin-bottom:10px}.invoice-detail-toolbar input,.invoice-detail-toolbar button{min-height:40px;height:40px}.invoice-search-input b{right:12px;font-size:12px}.invoice-search-input b button{min-width:24px;height:24px;border:0;background:transparent;color:#222;font-weight:700}.scan-button{justify-content:center;white-space:nowrap}.invoice-ref-table-wrap{max-height:none;min-height:112px;overflow-x:auto;overflow-y:visible}.invoice-ref-table{min-width:1220px;table-layout:fixed}.invoice-ref-table th{height:34px;padding:8px 10px;font-size:12px;white-space:nowrap}.invoice-ref-table td{height:52px;padding:8px 10px}.invoice-ref-table th:nth-child(1),.invoice-ref-table td:nth-child(1){width:120px}.invoice-ref-table th:nth-child(2),.invoice-ref-table td:nth-child(2){width:320px}.invoice-ref-table th:nth-child(3),.invoice-ref-table td:nth-child(3){width:110px}.invoice-ref-table th:nth-child(4),.invoice-ref-table td:nth-child(4){width:95px}.invoice-ref-table th:nth-child(5),.invoice-ref-table td:nth-child(5){width:145px}.invoice-ref-table th:nth-child(6),.invoice-ref-table td:nth-child(6){width:160px}.invoice-ref-table th:nth-child(7),.invoice-ref-table td:nth-child(7){width:120px}.invoice-ref-table th:nth-child(8),.invoice-ref-table td:nth-child(8){width:120px}.invoice-ref-table th:nth-child(9),.invoice-ref-table td:nth-child(9){width:90px}.invoice-ref-table input,.invoice-ref-table select{min-height:36px;height:36px;padding:0 10px}.invoice-ref-table .article-select{min-width:0;width:100%}.invoice-empty{min-height:120px;display:grid;place-items:center;align-content:center;gap:4px;color:#666;text-align:center}.invoice-empty .box-icon{display:none}.invoice-empty h3{margin:0;color:#7a0f14;font-size:17px}.invoice-empty p{margin:0}.invoice-bottom-grid{grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:12px}.invoice-reference-screen .notes-card textarea{min-height:70px;width:min(100%,360px)}.invoice-reserved-space{display:none}.invoice-summary-ref,.invoice-payment-ref{padding:14px 16px}.summary-total-line strong{font-size:clamp(24px,1.8vw,32px)}.payment-choice-grid{gap:8px}.payment-choice-grid button{min-height:58px;border-radius:8px;font-size:12px}.payment-choice-grid button span{width:28px;height:24px;font-size:11px}.invoice-ref-actions{left:20px;right:20px;bottom:12px;padding:10px;gap:10px}.invoice-ref-actions .invoice-button{min-width:130px;height:44px}@media(max-width:1366px){.invoice-reference-screen{padding:12px 14px 88px;gap:8px}.invoice-ref-header{grid-template-columns:minmax(250px,.7fr) minmax(520px,1.3fr)}.invoice-ref-meta article{padding:8px 10px}.invoice-card,.invoice-detail-ref-card,.invoice-reference-screen .notes-card{padding:12px 14px}.invoice-customer-row{grid-template-columns:minmax(220px,1.15fr) 140px minmax(170px,.9fr) minmax(170px,.9fr)}}@media(max-width:1024px){.invoice-reference-screen{padding:12px 12px 130px}.invoice-ref-header,.invoice-bottom-grid,.invoice-customer-row{grid-template-columns:1fr}.invoice-ref-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-detail-toolbar{grid-template-columns:1fr}.invoice-detail-head{align-items:stretch;flex-direction:column}.invoice-detail-head .primary{width:100%}}.print-preview-backdrop{align-items:start;place-items:start center;overflow:auto;padding:18px}.print-preview-modal{width:min(1120px,calc(100vw - 36px));max-height:none;overflow:visible}.print-preview-page{max-width:100%;overflow:hidden}.invoice-print-page{width:min(820px,100%)}.ticket-print-page{width:58mm;min-width:58mm;max-width:58mm;gap:8px;padding:4mm}.ticket-print-page,.ticket-print-page *{letter-spacing:0}.print-doc-brand{min-width:0;display:flex;align-items:flex-start;gap:12px}.ticket-print-page .print-doc-brand{justify-content:center;flex-direction:column;align-items:center;gap:6px;text-align:center}.print-doc-logo{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:8px;color:#fff;background:#7a0f14;font-size:12px;font-weight:700}.ticket-print-page .print-doc-logo{width:28px;height:28px;flex-basis:28px;border-radius:5px;font-size:10px}.print-doc-meta{min-width:0;display:grid;gap:4px;text-align:right}.ticket-print-page .print-doc-meta{text-align:center}.ticket-print-page .print-doc-head{gap:8px;padding-bottom:10px}.ticket-print-page .print-doc-head span{line-height:1.35}.print-doc-table{min-width:0;table-layout:fixed}.print-doc-table th,.print-doc-table td{overflow:hidden;text-overflow:ellipsis;white-space:normal;overflow-wrap:anywhere}.invoice-print-page .print-doc-table th,.invoice-print-page .print-doc-table td{font-size:12px}.ticket-print-page .print-doc-table{font-size:10px}.ticket-print-page .print-doc-table th,.ticket-print-page .print-doc-table td{padding:4px 1px}.ticket-lines{display:grid;gap:8px;border-top:1px solid #DDD5CB;border-bottom:1px solid #DDD5CB;padding:8px 0}.ticket-line{display:grid;gap:3px;color:#222}.ticket-line strong{color:#222;font-size:11px;line-height:1.25;overflow-wrap:anywhere}.ticket-line div{display:flex;justify-content:space-between;gap:8px;color:#666;font-size:10px}.ticket-line div span{min-width:0;overflow-wrap:anywhere}.ticket-line b{flex:0 0 auto;color:#222;font-size:10px;font-weight:700;white-space:nowrap}.ticket-line small,.ticket-muted{color:#666;font-size:9px;line-height:1.25}.print-doc-extra,.print-doc-footer{margin:0;color:#666;font-size:13px}.ticket-print-page .print-doc-extra,.ticket-print-page .print-doc-footer{text-align:center;font-size:10px}.ticket-print-page .print-doc-totals{gap:5px}.ticket-print-page .print-doc-totals span,.ticket-print-page .print-doc-totals b{align-items:baseline;gap:8px;font-size:11px}.ticket-print-page .print-doc-totals strong{white-space:nowrap}.ticket-print-page .print-doc-totals b{margin-top:4px;padding-top:8px;font-size:15px}.ticket-print-page .print-doc-totals b strong{font-size:15px}.print-doc-footer{border-top:1px solid #DDD5CB;padding-top:10px;text-align:center}.settings-page{display:grid;gap:18px;color:#222}.settings-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.settings-header h1{margin:0;color:#7a0f14;font-size:34px;font-weight:700}.settings-header p{margin:6px 0 0;color:#666}.settings-actions{display:flex;flex-wrap:wrap;gap:10px}.settings-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,240px));gap:10px}.settings-tabs button{min-height:48px;border:1px solid #DDD5CB;border-radius:10px;color:#222;background:#fff;font-weight:700}.settings-tabs button:hover,.settings-tabs button.selected{border-color:#7a0f14;color:#7a0f14;background:#fff7f4}.print-settings-layout{display:grid;grid-template-columns:minmax(420px,.95fr) minmax(0,1.05fr);gap:18px;align-items:start}.settings-card{display:grid;gap:16px;border:1px solid #DDD5CB;border-radius:14px;padding:20px;background:#fff;box-shadow:0 8px 24px #2222220a}.settings-card h2{margin:0;color:#7a0f14;font-size:16px;font-weight:700;letter-spacing:.02em}.settings-card-title{display:flex;justify-content:space-between;gap:12px}.settings-card-title span{color:#666;font-weight:700}.settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-wide-field{grid-column:1 / -1}.settings-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.settings-toggle{min-height:44px;display:flex;align-items:center;gap:10px;border:1px solid #DDD5CB;border-radius:10px;padding:10px 12px;background:#fffdfb;font-weight:700}.settings-toggle input{width:18px;height:18px;accent-color:#7A0F14}.preview-card{min-width:0}.settings-preview-stage{min-width:0;display:grid;justify-items:center;overflow:auto;border:1px dashed #DDD5CB;border-radius:14px;padding:20px;background:#f8f5f0}@media(max-width:1180px){.print-settings-layout{grid-template-columns:1fr}}@media(max-width:760px){.settings-header{flex-direction:column}.settings-tabs,.settings-form-grid,.settings-toggle-grid{grid-template-columns:1fr}.print-preview-modal{width:calc(100vw - 24px);padding:14px}.print-preview-header,.print-preview-actions{align-items:stretch;flex-direction:column}}@media(max-width:1366px){.invoice-ref-header{grid-template-columns:1fr}.invoice-ref-meta{grid-template-columns:repeat(4,minmax(150px,1fr))}.invoice-customer-row{grid-template-columns:minmax(260px,1fr) 170px repeat(2,minmax(180px,1fr));gap:16px}.invoice-detail-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1120px){.invoice-ref-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-ref-meta article:nth-child(2){border-right:0}.invoice-ref-meta article:nth-child(1),.invoice-ref-meta article:nth-child(2){border-bottom:1px solid #E7DED6}}@media(max-width:1024px){.invoice-reference-screen{padding:14px 16px 120px}.invoice-customer-row,.invoice-bottom-grid{grid-template-columns:1fr}.invoice-ref-meta article{border-bottom:1px solid #E7DED6}.invoice-ref-actions{left:16px;right:16px;flex-wrap:wrap}.invoice-ref-actions>*{flex:1 1 220px}}html,body,#root{max-width:100%;overflow-x:hidden}@media(max-width:820px){body{min-width:0}.app-topnav{position:static;grid-template-columns:1fr;gap:12px;padding:12px}.brand-block,.user-box{width:100%;justify-content:space-between}.brand-mark{width:40px;height:40px;border-radius:12px}.nav-list{width:100%;margin:0 -4px;padding:0 4px 6px;overflow-x:auto;-webkit-overflow-scrolling:touch}.nav-list button{flex:0 0 auto;min-height:40px;padding:0 10px;font-size:14px}.topbar{min-height:0;padding:14px 16px}.topbar h2{font-size:22px}.main-content{min-width:0;padding:14px}.page-section,.settings-page,.invoice-screen{min-width:0}.metric-grid,.product-workspace,.product-metrics,.admin-layout,.inventory-layout,.movement-layout{grid-template-columns:1fr}.table-wrap,.product-table-wrap,.inventory-table-wrap,.invoice-table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:640px){.invoice-reference-screen{gap:12px;width:100%;min-height:100vh;padding:12px 10px 18px}.invoice-ref-header{grid-template-columns:1fr;gap:12px}.invoice-ref-title{align-items:flex-start;gap:12px}.invoice-ref-logo{width:54px;height:54px;border-radius:12px;font-size:11px}.invoice-ref-title h1{font-size:28px;line-height:1.05}.invoice-ref-title p{font-size:14px}.invoice-ref-meta{grid-template-columns:1fr;min-height:0}.invoice-ref-meta article{height:auto;min-height:54px;border-right:0;border-bottom:1px solid #E7DED6;padding:10px 12px}.invoice-ref-meta article:last-child{border-bottom:0}.invoice-type-card,.invoice-customer-card,.invoice-detail-ref-card,.invoice-summary-ref,.invoice-payment-ref,.invoice-reserved-space,.invoice-reference-screen .notes-card{padding:14px;border-radius:12px}.invoice-type-card label,.invoice-customer-card label,.invoice-client-field{width:100%;min-width:0}.invoice-customer-row,.invoice-bottom-grid,.invoice-bottom-left,.invoice-bottom-right{grid-template-columns:1fr;gap:12px}.invoice-new-client{width:100%}.invoice-detail-head{align-items:stretch;flex-direction:column;gap:12px}.invoice-detail-head .primary{width:100%;min-width:0}.invoice-detail-toolbar{grid-template-columns:1fr;gap:10px}.invoice-detail-toolbar input,.invoice-detail-toolbar button,.invoice-button{width:100%}.invoice-ref-table{min-width:980px}.invoice-ref-table th,.invoice-ref-table td{padding-right:10px;padding-left:10px}.invoice-empty{position:static;min-height:220px;padding:24px 12px}.invoice-payment-ref .payment-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-total-line{align-items:flex-start;flex-direction:column;gap:4px}.summary-total-line strong{font-size:26px}.invoice-ref-actions{position:static;display:grid;grid-template-columns:1fr;gap:10px;margin-top:4px;padding:0}.invoice-ref-actions>*,.invoice-ref-actions .primary{min-width:0;width:100%}.print-preview-backdrop{padding:8px}.print-preview-modal{width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;border-radius:12px;padding:12px}.print-format-tabs{grid-template-columns:1fr}.invoice-print-page{width:100%;padding:14px}.invoice-print-page .print-doc-head{display:grid;gap:12px}.invoice-print-page .print-doc-meta{text-align:left}.invoice-print-page .print-doc-table{min-width:620px}.ticket-print-page{width:min(58mm,calc(100vw - 56px));min-width:0;max-width:58mm}.settings-header,.settings-card-title{align-items:flex-start;flex-direction:column}.settings-actions{width:100%;display:grid;grid-template-columns:1fr}.settings-tabs,.settings-form-grid,.settings-toggle-grid,.print-settings-layout{grid-template-columns:1fr}.settings-card{min-width:0;padding:14px}.settings-preview-stage{justify-items:start;padding:12px;overflow-x:auto}.settings-preview-stage .ticket-print-page{justify-self:center}}@media(max-width:520px){:root{--enoc-radius: 10px}body,.main-content,.content-shell,.invoice-screen{font-size:13px}.app-topnav,.main-content{padding-right:8px;padding-left:8px}.topbar{padding:10px 8px}.brand-block small,.topbar .muted{display:none}.nav-list button{min-height:36px;padding:0 8px;font-size:12px}.metric-card,.loading-card,.admin-panel,.admin-main,.inventory-panel,.inventory-main,.movement-panel,.product-list-panel,.product-form,.catalog-card,.report-toolbar,.report-analysis-card,.settings-card,.invoice-card{padding:10px}input,select,textarea,.primary-button,.ghost-button,.danger-button,.invoice-button{min-height:38px;border-radius:8px;padding-right:10px;padding-left:10px;font-size:13px}.section-heading{gap:10px;margin-bottom:12px}.section-heading h1,.settings-header h1{font-size:24px}.metric-grid,.admin-metrics,.inventory-metrics{gap:8px}.metric-card strong{font-size:20px}.table-wrap table{min-width:640px}th,td{padding:8px;font-size:12px}.invoice-reference-screen{padding:8px}.invoice-ref-title h1{font-size:24px}.invoice-ref-title p{font-size:12px}.invoice-ref-logo{width:46px;height:46px}.invoice-ref-meta article{min-height:46px;grid-template-columns:30px minmax(0,1fr);gap:8px;padding:8px 10px}.invoice-ref-meta strong,.invoice-ref-meta select{font-size:13px}.invoice-type-card,.invoice-customer-card,.invoice-detail-ref-card,.invoice-summary-ref,.invoice-payment-ref,.invoice-reserved-space,.invoice-reference-screen .notes-card{padding:10px}.invoice-card h2,.invoice-card-title h2,.invoice-type-card h2,.invoice-customer-card h2,.invoice-detail-ref-card h2,.invoice-summary-ref h2,.invoice-payment-ref h2{font-size:14px}.invoice-type-card select,.invoice-customer-card input,.invoice-customer-card select,.invoice-detail-toolbar input,.invoice-detail-toolbar button{height:40px}.invoice-payment-ref .payment-choice-grid button{min-height:58px;font-size:12px}.invoice-payment-ref .payment-choice-grid button span{width:28px;height:28px}.summary-total-line strong{font-size:22px}.invoice-ref-table{min-width:640px}.invoice-ref-table th,.invoice-ref-table td{height:auto;padding:7px 6px;font-size:11px}.invoice-ref-table input,.invoice-ref-table select{min-height:34px;padding:6px;font-size:12px}.compact-input{min-width:58px}.invoice-ref-table .article-select{min-width:160px}.discount-cell{grid-template-columns:54px 42px;gap:4px}.invoice-ref-table th:nth-child(6),.invoice-ref-table td:nth-child(6),.invoice-ref-table th:nth-child(7),.invoice-ref-table td:nth-child(7){display:none}.invoice-delete{min-width:40px;min-height:34px;padding:4px;font-size:11px}.invoice-ref-actions{gap:8px}.invoice-ref-actions .invoice-button{min-height:40px}.product-card-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.product-modal{padding:12px}.report-toolbar,.cash-forms,.inventory-filters{grid-template-columns:1fr}.report-view-buttons{grid-template-columns:repeat(5,minmax(0,1fr))}.print-preview-modal,.invoice-print-page{padding:10px}}@media(max-width:380px){.invoice-ref-table{min-width:560px}.invoice-ref-table th:nth-child(4),.invoice-ref-table td:nth-child(4){display:none}.invoice-ref-table .article-select{min-width:140px}.table-wrap table{min-width:560px}.ticket-print-page{width:calc(100vw - 42px)}}@media(min-width:1025px){.invoice-reference-screen{height:100vh;min-height:720px;gap:10px;overflow:auto;padding:12px 16px 70px}.invoice-ref-header{grid-template-columns:minmax(360px,.9fr) minmax(640px,1.1fr);gap:16px}.invoice-ref-logo{width:64px;height:64px}.invoice-ref-title h1{font-size:34px}.invoice-ref-title p{font-size:14px}.invoice-ref-meta{min-height:64px}.invoice-ref-meta article{height:46px;grid-template-columns:30px minmax(0,1fr);padding:0 14px}.invoice-ref-meta strong,.invoice-ref-meta select{margin-top:3px;font-size:14px}.invoice-type-card,.invoice-customer-card,.invoice-detail-ref-card,.invoice-summary-ref,.invoice-payment-ref,.invoice-reserved-space,.invoice-reference-screen .notes-card{padding:12px 16px}.invoice-type-card h2,.invoice-customer-card h2,.invoice-detail-ref-card h2,.invoice-summary-ref h2,.invoice-payment-ref h2{margin-bottom:7px;font-size:14px}.invoice-type-card select,.invoice-customer-card input,.invoice-customer-card select,.invoice-detail-toolbar input,.invoice-detail-toolbar button{height:40px;min-height:40px}.invoice-type-card label{width:min(100%,380px)}.invoice-customer-row{grid-template-columns:minmax(320px,1.25fr) 150px minmax(220px,1fr) minmax(220px,1fr);gap:18px}.invoice-detail-head{margin-bottom:10px}.invoice-detail-toolbar{grid-template-columns:230px 230px 250px minmax(0,1fr);gap:14px;margin-bottom:10px}.invoice-ref-table-wrap{max-height:220px;min-height:86px}.invoice-ref-table th{height:34px;padding:0 10px;font-size:12px}.invoice-ref-table td{height:48px;padding:7px 9px}.invoice-ref-table input,.invoice-ref-table select{min-height:34px;padding:6px 8px}.invoice-bottom-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:12px}.invoice-bottom-left,.invoice-bottom-right{gap:10px}.invoice-reference-screen .notes-card textarea{min-height:72px}.invoice-reserved-space{min-height:92px}.invoice-reserved-space .box-icon{width:34px;height:30px}.invoice-summary-ref{gap:5px}.summary-total-line strong{font-size:24px}.invoice-payment-ref .payment-choice-grid button{min-height:58px}.invoice-ref-actions{bottom:12px;gap:10px}.invoice-ref-actions .invoice-button{min-height:40px;min-width:120px}}@media(min-width:1025px)and (max-height:820px){.invoice-reference-screen{gap:8px;padding-top:8px}.invoice-ref-logo{width:54px;height:54px}.invoice-ref-title h1{font-size:30px}.invoice-type-card,.invoice-customer-card,.invoice-detail-ref-card,.invoice-summary-ref,.invoice-payment-ref,.invoice-reserved-space,.invoice-reference-screen .notes-card{padding:10px 14px}.invoice-ref-table-wrap{max-height:170px}.invoice-reference-screen .notes-card textarea{min-height:56px}.invoice-reserved-space{display:none}}.sales-summary-page{display:grid;gap:16px}.sales-report-toolbar{grid-template-columns:minmax(280px,1fr) 220px}.sales-report-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:16px;align-items:start}.selected-row{background:#fff7f4}.selected-row td:first-child{color:#7a0f14}.sale-detail-panel{position:sticky;top:92px}.sale-detail-summary,.sale-detail-total{display:grid;gap:8px;border:1px solid #DDD5CB;border-radius:12px;padding:12px;background:#fffdfb}.sale-detail-summary span,.sale-detail-total span,.sale-detail-total b{display:flex;justify-content:space-between;gap:14px}.sale-detail-total b{border-top:1px solid #DDD5CB;padding-top:8px;color:#7a0f14;font-size:18px}@media(max-width:1180px){.sales-report-grid,.sales-report-toolbar{grid-template-columns:1fr}.sale-detail-panel{position:static}}@media print{.sales-summary-page,.sales-summary-page *,.app-shell,.content-shell,.main-content,.page-section{visibility:visible!important}.sales-summary-page{position:static}.app-topnav,.topbar,.report-module-nav,.report-toolbar,.toolbar,.invoice-ref-actions,.print-preview-actions{display:none!important}.content-shell,.main-content,.page-section,.sales-summary-page{display:block;padding:0;background:#fff}.metric-card,.admin-main,.report-analysis-card{box-shadow:none;break-inside:avoid}.table-wrap{overflow:visible}table{min-width:0!important}}.invoice-detail-toolbar .invoice-search-input input,.invoice-customer-card .invoice-search-input input{padding-right:14px}.invoice-detail-toolbar .invoice-search-input b{display:none!important}*,*:before,*:after{box-sizing:border-box}.invoice-reference-screen{overflow-x:visible!important}.invoice-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 420px!important;gap:16px!important;width:100%!important;max-width:100%!important;align-items:start!important}.invoice-main,.invoice-sidebar{min-width:0!important;width:auto!important;max-width:100%!important}.invoice-main{overflow:visible!important}.invoice-main>*{width:100%!important;max-width:100%!important;min-width:0!important}.invoice-sidebar{display:grid!important;gap:12px!important;position:sticky!important;top:16px!important;align-self:start!important;margin:0!important}.invoice-meta{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;max-width:100%!important;gap:0!important}.invoice-meta>*{min-width:0!important}.invoice-meta article{min-height:46px!important;padding:8px 10px!important;gap:8px!important}.invoice-meta article div,.invoice-meta strong,.invoice-meta select{min-width:0!important;max-width:100%!important;overflow:visible!important;text-overflow:clip!important}.invoice-meta strong,.invoice-meta select{white-space:normal!important}.invoice-meta select{width:100%!important;min-width:120px!important;height:38px!important;padding:0 28px 0 10px!important}.customer-grid{display:grid!important;grid-template-columns:minmax(250px,2fr) auto minmax(170px,1fr) minmax(170px,1fr)!important;gap:12px!important;align-items:end!important;width:100%!important;max-width:100%!important}.customer-grid>*{min-width:0!important}.invoice-detail-toolbar{display:grid!important;grid-template-columns:minmax(150px,1fr) minmax(180px,1.15fr) minmax(120px,150px) minmax(160px,auto)!important;gap:12px!important;align-items:center!important}.invoice-add-article-button{justify-self:end!important;width:auto!important;min-width:168px!important}.table-wrapper{width:100%!important;max-width:100%!important;overflow-x:visible!important}.table-wrapper .invoice-ref-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}.invoice-ref-table th,.invoice-ref-table td{padding-left:7px!important;padding-right:7px!important;overflow:hidden!important;text-overflow:ellipsis!important}.invoice-ref-table th:nth-child(1),.invoice-ref-table td:nth-child(1){width:9%!important}.invoice-ref-table th:nth-child(2),.invoice-ref-table td:nth-child(2){width:25%!important}.invoice-ref-table th:nth-child(3),.invoice-ref-table td:nth-child(3){width:8%!important}.invoice-ref-table th:nth-child(4),.invoice-ref-table td:nth-child(4){width:8%!important}.invoice-ref-table th:nth-child(5),.invoice-ref-table td:nth-child(5){width:12%!important}.invoice-ref-table th:nth-child(6),.invoice-ref-table td:nth-child(6){width:11%!important}.invoice-ref-table th:nth-child(7),.invoice-ref-table td:nth-child(7){width:9%!important}.invoice-ref-table th:nth-child(8),.invoice-ref-table td:nth-child(8){width:10%!important}.invoice-ref-table th:nth-child(9),.invoice-ref-table td:nth-child(9){width:8%!important}.invoice-ref-table input,.invoice-ref-table select{width:100%!important;min-width:0!important;padding-left:6px!important;padding-right:6px!important}.invoice-ref-table .article-select{min-width:0!important}.discount-cell{grid-template-columns:minmax(0,1fr) 40px!important;gap:4px!important}.invoice-info-card,.invoice-customer-card,.invoice-detail-ref-card,.invoice-reference-screen .notes-card{width:100%!important;max-width:100%!important;min-width:0!important}@media(max-width:1200px){.invoice-layout{grid-template-columns:minmax(0,1fr) 360px!important}.customer-grid,.invoice-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:900px){.invoice-layout{grid-template-columns:1fr!important}.invoice-sidebar{position:static!important}}@media(min-width:1024px){.invoice-reference-screen{height:100vh!important;min-height:0!important;overflow:hidden!important;padding:8px!important;background:#f8f5f0!important;font-size:14px!important}.invoice-layout{grid-template-columns:minmax(0,1fr) 340px!important;gap:8px!important;height:calc(100vh - 16px)!important;overflow:hidden!important}.invoice-main,.invoice-sidebar{align-content:start!important;gap:8px!important;height:100%!important;overflow:hidden!important}.invoice-main{display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr) auto!important}.invoice-card{border:1px solid #ddd5cb!important;border-radius:8px!important;box-shadow:none!important;padding:8px!important;background:#fff!important}.invoice-pos-toolbar{display:grid!important;grid-template-columns:150px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-height:46px!important}.invoice-pos-title strong{color:#7a0f14!important;font-size:20px!important;line-height:1!important;letter-spacing:0!important}.invoice-pos-fields{display:grid!important;grid-template-columns:120px minmax(210px,1.15fr) 104px minmax(130px,.8fr) minmax(150px,.9fr)!important;gap:8px!important;align-items:end!important;min-width:0!important}.invoice-pos-fields label,.invoice-customer-card label{display:grid!important;gap:2px!important;min-width:0!important}.invoice-pos-fields span,.invoice-customer-card label>span,.invoice-card-title span{color:#666!important;font-size:11px!important;font-weight:700!important;line-height:1!important;text-transform:uppercase!important}.invoice-pos-fields strong{display:flex!important;align-items:center!important;min-height:30px!important;color:#222!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.invoice-pos-fields select,.invoice-customer-card input,.invoice-detail-toolbar input,.invoice-detail-toolbar button,.invoice-button{height:32px!important;min-height:32px!important;border-radius:6px!important;padding:0 9px!important;font-size:13px!important}.invoice-customer-card h2,.invoice-detail-ref-card h2,.invoice-summary-ref h2,.invoice-payment-ref h2,.invoice-card-title h2{margin:0!important;color:#7a0f14!important;font-size:13px!important;font-weight:800!important;line-height:1!important;letter-spacing:0!important}.invoice-customer-card{display:grid!important;gap:6px!important}.customer-grid{grid-template-columns:minmax(240px,1.6fr) 122px minmax(150px,.8fr) minmax(150px,.8fr)!important;gap:8px!important;align-items:end!important}.invoice-new-client{width:122px!important;white-space:nowrap!important}.invoice-detail-ref-card{display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;min-height:0!important;gap:6px!important}.invoice-detail-head{margin:0!important}.invoice-detail-toolbar{grid-template-columns:minmax(150px,.9fr) minmax(220px,1.4fr) 96px 136px!important;gap:8px!important;margin:0!important}.invoice-add-article-button{min-width:0!important;width:136px!important}.scan-button{min-width:0!important;width:96px!important}.table-wrapper{min-height:0!important;max-height:none!important;overflow:hidden!important;border:1px solid #ddd5cb!important;border-radius:6px!important}.invoice-ref-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important}.invoice-ref-table th{height:28px!important;padding:0 5px!important;background:#7a0f14!important;color:#fff!important;font-size:11px!important;font-weight:800!important;line-height:1!important}.invoice-ref-table td{height:34px!important;padding:3px 5px!important;border-bottom:1px solid #eee8e1!important;font-size:12px!important}.invoice-ref-table input,.invoice-ref-table select{height:28px!important;min-height:28px!important;border-radius:4px!important;padding:0 5px!important;font-size:12px!important}.invoice-ref-table small{display:none!important}.invoice-ref-table th:nth-child(1),.invoice-ref-table td:nth-child(1){width:8%!important}.invoice-ref-table th:nth-child(2),.invoice-ref-table td:nth-child(2){width:27%!important}.invoice-ref-table th:nth-child(3),.invoice-ref-table td:nth-child(3){width:7%!important}.invoice-ref-table th:nth-child(4),.invoice-ref-table td:nth-child(4){width:7%!important}.invoice-ref-table th:nth-child(5),.invoice-ref-table td:nth-child(5){width:11%!important}.invoice-ref-table th:nth-child(6),.invoice-ref-table td:nth-child(6){width:10%!important}.invoice-ref-table th:nth-child(7),.invoice-ref-table td:nth-child(7){width:8%!important}.invoice-ref-table th:nth-child(8),.invoice-ref-table td:nth-child(8){width:12%!important}.invoice-ref-table th:nth-child(9),.invoice-ref-table td:nth-child(9){width:10%!important}.discount-cell{grid-template-columns:minmax(0,1fr) 34px!important;gap:3px!important}.invoice-empty{min-height:0!important;height:calc(100% - 28px)!important;padding:28px 8px!important}.invoice-empty .box-icon{display:none!important}.invoice-empty h3{margin:0 0 4px!important;font-size:14px!important}.invoice-empty p{margin:0!important;font-size:13px!important}.notes-card{display:grid!important;gap:5px!important}.invoice-reference-screen .notes-card textarea{height:44px!important;min-height:44px!important;max-height:44px!important;padding:7px 8px!important;resize:none!important;font-size:13px!important}.invoice-sidebar{grid-template-rows:auto auto auto!important;position:sticky!important;top:8px!important}.invoice-summary-ref{gap:5px!important}.total-line{font-size:13px!important;line-height:1.2!important}.total-divider{margin:2px 0!important}.summary-total-line{align-items:center!important;flex-direction:row!important;gap:8px!important}.summary-total-line strong{color:#7a0f14!important;font-size:28px!important;line-height:1!important}.invoice-payment-ref .payment-choice-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}.invoice-payment-ref .payment-choice-grid button{min-height:32px!important;height:32px!important;border-radius:6px!important;padding:0 5px!important;gap:4px!important;font-size:11px!important}.invoice-payment-ref .payment-choice-grid button span{width:auto!important;height:auto!important;background:transparent!important;color:inherit!important;font-size:11px!important}.payment-check{position:static!important;width:auto!important;height:auto!important;margin-left:2px!important;background:transparent!important;color:#7a0f14!important}.invoice-actions-card{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.invoice-actions-card .strong{grid-column:1 / -1!important;height:36px!important;min-height:36px!important;background:#7a0f14!important}.invoice-actions-card .secondary{height:32px!important;min-height:32px!important}.invoice-alert{margin:0!important;padding:6px 8px!important;font-size:13px!important}}@media(min-width:1366px)and (max-height:820px){.invoice-layout{grid-template-columns:minmax(0,1fr) 320px!important}.invoice-pos-title strong{font-size:18px!important}.invoice-pos-fields{grid-template-columns:110px minmax(190px,1.1fr) 94px minmax(120px,.8fr) minmax(132px,.85fr)!important}.invoice-sidebar{gap:6px!important}.invoice-card{padding:7px!important}}.app-shell>.app-topnav{min-height:60px!important;gap:14px!important;padding:7px 20px!important}.app-shell>.app-topnav .brand-mark{width:38px!important;height:38px!important;border-radius:10px!important}.app-shell>.app-topnav .nav-list{gap:4px!important;min-width:0!important;padding:2px!important}.app-shell>.app-topnav .nav-list button{min-height:34px!important;border-radius:8px!important;padding:0 9px!important;font-size:13px!important;font-weight:750!important;line-height:1!important}.app-shell>.app-topnav .nav-list button.active{border-color:#7a0f1457!important;background:#fff4f2!important}.app-shell>.app-topnav .user-box{min-width:176px!important;gap:9px!important;border-left:1px solid var(--enoc-border)!important;padding-left:12px!important}.page-section.customers-page{gap:12px!important}.page-section.customers-page .section-heading h1{font-size:28px!important;line-height:1.1!important}.page-section.customers-page .metric-card{min-height:78px!important;padding:12px 14px!important;gap:4px!important;align-content:center!important}.page-section.customers-page .metric-card strong{font-size:30px!important;line-height:1!important}.page-section.customers-page .legal-admin-layout{grid-template-columns:minmax(330px,350px) minmax(0,1fr)!important;gap:14px!important}.page-section.customers-page .admin-panel,.page-section.customers-page .admin-main{padding:14px!important}.page-section.customers-page .legal-form{gap:10px!important}.page-section.customers-page input,.page-section.customers-page select{min-height:38px!important;height:38px!important;padding:8px 10px!important;font-size:13px!important}.page-section.customers-page textarea{min-height:72px!important;padding:9px 10px!important;font-size:13px!important}.page-section.customers-page .form-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.page-section.customers-page .product-list-tools{grid-template-columns:minmax(260px,1fr) minmax(150px,180px)!important;gap:9px!important}.page-section.customers-page table th{padding:10px 12px!important;background:var(--enoc-primary)!important;color:#fff!important}.page-section.customers-page table td{padding:11px 12px!important;vertical-align:middle!important}@media(max-width:900px){.page-section.customers-page .legal-admin-layout,.page-section.customers-page .form-row,.page-section.customers-page .product-list-tools{grid-template-columns:1fr!important}}.app-shell>.app-topnav{min-height:52px!important;padding:5px 18px!important;gap:12px!important}.app-shell>.app-topnav .brand-block{gap:9px!important;min-width:142px!important}.app-shell>.app-topnav .brand-mark{width:34px!important;height:34px!important;border-radius:9px!important;font-size:13px!important}.app-shell>.app-topnav .brand-block strong,.app-shell>.app-topnav .user-box strong{font-size:13px!important;line-height:1.1!important}.app-shell>.app-topnav .brand-block small,.app-shell>.app-topnav .user-box small{font-size:11px!important;line-height:1.1!important}.app-shell>.app-topnav .nav-list{gap:3px!important}.app-shell>.app-topnav .nav-list button{min-height:30px!important;border-radius:7px!important;padding:0 8px!important;font-size:12px!important}.app-shell>.app-topnav .user-box{min-width:164px!important;padding-left:10px!important}.app-shell>.app-topnav .user-box .ghost-button{min-height:30px!important;padding:0 9px!important;font-size:12px!important}.content-shell>.topbar{min-height:46px!important;padding:8px 18px!important}.content-shell>.topbar .muted{font-size:12px!important}.content-shell>.topbar h2{font-size:19px!important;line-height:1.1!important}.content-shell>.main-content{padding:16px 18px!important}.page-section.customers-page .section-heading{padding-top:0!important}.page-section.customers-page .section-heading .eyebrow{margin-bottom:2px!important}.page-section.customers-page .section-heading h1{font-size:26px!important}.page-section.customers-page .section-heading .ghost-button{min-height:34px!important;padding:0 12px!important}.page-section.customers-page .legal-metrics{gap:8px!important}.page-section.customers-page .metric-card{min-height:62px!important;padding:10px 14px!important;border-radius:7px!important}.page-section.customers-page .metric-card span{font-size:11px!important}.page-section.customers-page .metric-card strong{font-size:27px!important}.page-section.customers-page .legal-admin-layout{grid-template-columns:300px minmax(0,1fr)!important;gap:12px!important}.page-section.customers-page .admin-panel,.page-section.customers-page .admin-main{border-radius:7px!important;padding:12px!important}.page-section.customers-page .form-title-row h2{font-size:18px!important}.page-section.customers-page label{font-size:12px!important}.page-section.customers-page input,.page-section.customers-page select{min-height:34px!important;height:34px!important;padding:7px 9px!important;font-size:12px!important}.page-section.customers-page textarea{min-height:64px!important;padding:8px 9px!important;font-size:12px!important}.page-section.customers-page .primary-button{min-height:36px!important}.page-section.customers-page .product-list-tools{align-items:end!important;border-bottom:1px solid var(--enoc-border)!important;padding-bottom:10px!important;margin-bottom:0!important}.page-section.customers-page .product-search{font-size:12px!important}.page-section.customers-page table th{padding:9px 11px!important;font-size:11px!important}.page-section.customers-page table td{padding:9px 11px!important;font-size:13px!important}.page-section.customers-page table td strong{font-size:13px!important}.page-section.customers-page table td small{font-size:11px!important}.page-section.customers-page .table-actions .compact{min-height:30px!important;padding:0 10px!important;font-size:12px!important}.app-shell>.app-topnav{min-height:62px!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:16px!important;padding:8px 20px!important;border-bottom-color:#ded6cf!important;box-shadow:0 2px 10px #2218140a!important}.app-shell>.app-topnav .brand-mark{width:40px!important;height:40px!important;border-radius:10px!important;font-size:13px!important}.app-shell>.app-topnav .nav-list{min-width:0!important;gap:5px!important;padding:2px 0!important;overflow-x:auto!important;scrollbar-width:thin!important}.app-shell>.app-topnav .nav-list button:hover{color:#7a0f14!important;background:#fff8f6!important}.app-shell>.app-topnav .user-box .ghost-button{min-height:36px!important;border-radius:8px!important;padding:0 12px!important;font-size:13px!important;white-space:nowrap!important}.content-shell>.topbar{min-height:58px!important;padding:10px 22px!important}.content-shell>.topbar h2{font-size:21px!important;line-height:1.15!important}.content-shell>.main-content{padding:20px 24px!important}.page-section.customers-page{gap:14px!important}.page-section.customers-page .section-heading{align-items:center!important;margin-bottom:0!important}.page-section.customers-page .section-heading>div{display:grid!important;gap:5px!important}.page-section.customers-page .section-heading .eyebrow,.page-section.customers-page .section-heading .muted{margin:0!important}.page-section.customers-page .section-heading h1{font-size:29px!important;line-height:1.12!important}.page-section.customers-page .section-heading .ghost-button{align-self:center!important;min-height:38px!important;padding:0 14px!important}.page-section.customers-page .legal-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}.page-section.customers-page .metric-card{min-height:78px!important;height:78px!important;gap:6px!important;align-content:center!important;padding:13px 16px!important;border-radius:8px!important;box-shadow:0 6px 18px #2218140a!important}.page-section.customers-page .metric-card span{color:#6d6762!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase!important}.page-section.customers-page .metric-card strong{color:#1f2228!important;font-size:28px!important;line-height:1!important}.page-section.customers-page .legal-admin-layout{grid-template-columns:minmax(330px,360px) minmax(0,1fr)!important;gap:16px!important;align-items:start!important}.page-section.customers-page .admin-panel,.page-section.customers-page .admin-main{padding:16px!important;border-radius:8px!important;box-shadow:0 8px 22px #2218140b!important}.page-section.customers-page .legal-form{gap:12px!important}.page-section.customers-page .form-title-row{align-items:center!important}.page-section.customers-page .form-title-row h2{font-size:20px!important;line-height:1.15!important}.page-section.customers-page label{gap:6px!important;min-width:0!important;color:#44413f!important;font-size:13px!important;font-weight:700!important;line-height:1.2!important}.page-section.customers-page .form-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.page-section.customers-page input,.page-section.customers-page select{min-height:40px!important;height:40px!important;border-radius:8px!important;padding:9px 11px!important;font-size:14px!important}.page-section.customers-page textarea{min-height:82px!important;border-radius:8px!important;padding:10px 11px!important;font-size:14px!important}.page-section.customers-page input::placeholder,.page-section.customers-page textarea::placeholder{color:#9a9693!important}.page-section.customers-page .primary-button{min-height:42px!important;border-radius:8px!important}.page-section.customers-page .product-list-tools{grid-template-columns:minmax(320px,1fr) minmax(150px,190px)!important;gap:12px!important;align-items:end!important;padding-bottom:0!important;border-bottom:0!important}.page-section.customers-page .product-search{gap:6px!important;font-size:13px!important}.page-section.customers-page .product-list-tools input,.page-section.customers-page .product-list-tools select{min-height:40px!important;height:40px!important}.page-section.customers-page .table-wrap{overflow-x:auto!important;border-radius:8px!important}.page-section.customers-page .table-wrap table{min-width:880px!important}.page-section.customers-page table th{padding:11px 12px!important;color:#fff!important;background:#8b1017!important;font-size:12px!important;font-weight:800!important;letter-spacing:0!important;vertical-align:middle!important}.page-section.customers-page table td{padding:11px 12px!important;color:#2d3138!important;font-size:14px!important;vertical-align:middle!important}.page-section.customers-page table td strong{display:block!important;color:#1f2228!important;font-size:14px!important;line-height:1.25!important}.page-section.customers-page table td small{display:block!important;margin-top:3px!important;color:#716d68!important;font-size:12px!important;line-height:1.25!important}.page-section.customers-page .status-pill{min-height:26px!important;justify-content:center!important;padding:4px 10px!important}.page-section.customers-page .table-actions{text-align:right!important}.page-section.customers-page .table-actions .compact{min-height:34px!important;border-radius:7px!important;padding:0 12px!important;font-size:13px!important}@media(max-width:1180px){.app-shell>.app-topnav{grid-template-columns:1fr!important}.app-shell>.app-topnav .user-box{min-width:0!important;justify-content:space-between!important;border-left:0!important;border-top:1px solid #ded6cf!important;padding-top:8px!important;padding-left:0!important}}@media(max-width:900px){.page-section.customers-page .legal-admin-layout,.page-section.customers-page .form-row,.page-section.customers-page .product-list-tools{grid-template-columns:1fr!important}.page-section.customers-page .legal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:640px){.content-shell>.main-content{padding:14px!important}.page-section.customers-page .legal-metrics{grid-template-columns:1fr!important}}.customers-refined{max-width:none!important;gap:16px!important}.customers-refined.customers-page .customers-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;margin-bottom:2px!important}.customers-heading-copy{display:grid!important;gap:4px!important;min-width:0!important}.customers-heading-copy .eyebrow{margin:0!important;color:#8b1017!important;font-size:12px!important;line-height:1!important}.customers-heading-copy h1{margin:0!important;color:#20242c!important;font-size:28px!important;line-height:1.12!important}.customers-heading-copy .muted{margin:0!important;color:#6f6864!important;font-size:14px!important;line-height:1.35!important}.customers-heading>.ghost-button{align-self:center!important;min-height:40px!important;padding:0 16px!important;border-radius:8px!important}.customers-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}.customers-metric-card{min-height:82px!important;height:82px!important;align-content:center!important;gap:6px!important;padding:14px 16px!important;border:1px solid #ded6cf!important;border-radius:8px!important;background:#fff!important;box-shadow:0 8px 22px #2a201b0b!important}.customers-metric-card span{color:#6f6864!important;font-size:12px!important;font-weight:800!important;line-height:1!important;text-transform:uppercase!important}.customers-metric-card strong{color:#1f232a!important;font-size:28px!important;line-height:1!important}.customers-workspace{grid-template-columns:minmax(320px,360px) minmax(0,1fr)!important;gap:16px!important;align-items:start!important}.customers-form-panel,.customers-list-panel{border:1px solid #ded6cf!important;border-radius:8px!important;background:#fff!important;box-shadow:0 10px 26px #2a201b0d!important}.customers-form-panel,.customers-list-panel{gap:12px!important;padding:16px!important}.customers-form-panel .form-title-row{align-items:center!important;min-height:28px!important}.customers-form-panel .form-title-row h2{color:#20242c!important;font-size:20px!important;line-height:1.15!important}.customers-form-panel .form-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.customers-form-panel label,.customers-list-tools label{min-width:0!important;gap:6px!important;color:#494541!important;font-size:13px!important;font-weight:700!important;line-height:1.2!important}.customers-form-panel input,.customers-form-panel select,.customers-list-tools input,.customers-list-tools select{min-height:40px!important;height:40px!important;border-color:#d9d0ca!important;border-radius:8px!important;padding:9px 11px!important;color:#242830!important;background:#fffdfb!important;font-size:14px!important}.customers-form-panel textarea{min-height:84px!important;border-color:#d9d0ca!important;border-radius:8px!important;padding:10px 11px!important;color:#242830!important;background:#fffdfb!important;font-size:14px!important}.customers-form-panel input::placeholder,.customers-form-panel textarea::placeholder,.customers-list-tools input::placeholder{color:#9b9692!important;opacity:1!important}.customers-form-panel .primary-button{min-height:42px!important;border-radius:8px!important;margin-top:2px!important}.customers-list-tools{grid-template-columns:minmax(320px,1fr) minmax(150px,190px)!important;gap:12px!important;align-items:end!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.customers-search{min-width:0!important}.customers-status-filter{min-width:150px!important}.customers-table-wrap{border-color:#ded6cf!important;border-radius:8px!important;overflow-x:auto!important}.customers-table{min-width:900px!important;border-collapse:collapse!important}.customers-table th{padding:11px 12px!important;color:#fff!important;background:#8b1017!important;font-size:12px!important;font-weight:800!important;line-height:1.1!important;letter-spacing:0!important;vertical-align:middle!important}.customers-table td{padding:12px!important;color:#2b3038!important;font-size:14px!important;line-height:1.3!important;vertical-align:middle!important}.customers-table td strong{display:block!important;color:#1f232a!important;font-size:14px!important;line-height:1.25!important}.customers-table td small{display:block!important;margin-top:3px!important;color:#716b66!important;font-size:12px!important;line-height:1.25!important}.customers-table .status-pill{min-height:26px!important;justify-content:center!important;padding:4px 10px!important;border-radius:999px!important}.customers-table .table-actions{text-align:right!important}.customers-table .table-actions .compact{min-height:34px!important;border-radius:7px!important;padding:0 12px!important;font-size:13px!important}.app-shell>.app-topnav{min-height:62px!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:16px!important;padding:8px 20px!important}.app-shell>.app-topnav .brand-block{min-width:150px!important;gap:10px!important}.app-shell>.app-topnav .brand-mark{width:40px!important;height:40px!important;border-radius:10px!important}.app-shell>.app-topnav .nav-list{gap:5px!important;min-width:0!important;overflow-x:auto!important;scrollbar-width:thin!important}.app-shell>.app-topnav .nav-list button{min-height:36px!important;border-radius:8px!important;padding:0 10px!important;color:#5d5a58!important;font-size:13px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important}.app-shell>.app-topnav .nav-list button.active{border-color:#7a0f1447!important;color:#7a0f14!important;background:#fff5f3!important}.app-shell>.app-topnav .user-box{min-width:180px!important;justify-content:flex-end!important;gap:10px!important;border-left:1px solid #ded6cf!important;padding-left:14px!important}.app-shell>.app-topnav .user-box .ghost-button{min-height:36px!important;border-radius:8px!important;padding:0 12px!important;white-space:nowrap!important}@media(max-width:1100px){.customers-workspace{grid-template-columns:1fr!important}.customers-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:720px){.customers-refined.customers-page .customers-heading{align-items:flex-start!important;flex-direction:column!important}.customers-metrics,.customers-form-panel .form-row,.customers-list-tools{grid-template-columns:1fr!important}.customers-status-filter{min-width:0!important}}.app-shell-sidebar{--sidebar-width: 236px;--sidebar-collapsed-width: 64px;min-height:100vh!important;display:grid!important;grid-template-columns:var(--sidebar-width) minmax(0,1fr)!important;grid-template-rows:1fr!important;background:var(--enoc-bg)!important}.app-shell-sidebar.sidebar-collapsed{grid-template-columns:var(--sidebar-collapsed-width) minmax(0,1fr)!important}.app-sidebar{position:sticky;top:0;z-index:35;height:100vh;min-width:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:10px;border-right:1px solid #ded6cf;background:#fffdfb;box-shadow:8px 0 26px #2a201b0f}.sidebar-brand{min-height:68px;display:flex;align-items:center;gap:12px;padding:14px 16px 10px}.sidebar-brand .brand-mark{width:40px;height:40px;flex:0 0 auto;border-radius:10px}.sidebar-brand-copy{min-width:0;display:grid;gap:2px}.sidebar-brand-copy strong{color:var(--enoc-text);font-size:15px;line-height:1.1}.sidebar-brand-copy small{color:var(--enoc-muted);font-size:12px;line-height:1.1}.sidebar-toggle{width:calc(100% - 28px);min-height:34px;justify-self:center;border:1px solid #ded6cf;border-radius:8px;color:#7a0f14;background:#fff7f5;font-size:20px;font-weight:900}.sidebar-toggle:focus-visible,.sidebar-nav button:focus-visible,.mobile-menu-button:focus-visible{outline:3px solid rgba(122,15,20,.24);outline-offset:2px}.sidebar-nav{min-height:0;display:grid;align-content:start;gap:4px;padding:4px 10px 16px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}.sidebar-nav button{position:relative;width:100%;min-height:40px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;border:1px solid transparent;border-radius:8px;padding:0 10px 0 6px;color:#57524f;background:transparent;text-align:left}.sidebar-nav button:hover{color:#7a0f14;background:#fff8f6}.sidebar-nav button.active{border-color:#7a0f1433;color:#7a0f14;background:#fff2ef;box-shadow:inset 3px 0 #7a0f14}.sidebar-nav-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;color:inherit;background:#7a0f140f;font-size:14px;font-weight:900;line-height:1}.sidebar-nav-icon svg{width:19px;height:19px;stroke-width:2}.sidebar-nav-label{min-width:0;overflow:hidden;color:inherit;font-size:14px;font-weight:750;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.sidebar-collapsed .app-sidebar{width:var(--sidebar-collapsed-width)}.sidebar-collapsed .sidebar-brand{justify-content:center;padding-right:10px;padding-left:10px}.sidebar-collapsed .sidebar-brand-copy,.sidebar-collapsed .sidebar-nav-label{display:none}.sidebar-collapsed .sidebar-toggle{width:42px}.sidebar-collapsed .sidebar-nav{padding-right:8px;padding-left:8px}.sidebar-collapsed .sidebar-nav button{grid-template-columns:1fr;justify-items:center;padding:0}.sidebar-collapsed .sidebar-nav button:after{content:attr(data-tooltip);position:absolute;left:calc(100% + 10px);top:50%;z-index:50;max-width:220px;transform:translateY(-50%);border:1px solid #ded6cf;border-radius:7px;padding:7px 9px;color:#fff;background:#2b2422;font-size:12px;font-weight:800;line-height:1;opacity:0;pointer-events:none;white-space:nowrap}.sidebar-collapsed .sidebar-nav button:hover:after,.sidebar-collapsed .sidebar-nav button:focus-visible:after{opacity:1}.app-shell-sidebar .app-topnav{display:none!important}.app-shell-sidebar .content-shell{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.app-shell-sidebar .topbar{min-height:64px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;align-items:center!important;gap:14px!important;padding:10px 22px!important;border-bottom:1px solid #ded6cf!important;background:#fffffff0!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.app-shell-sidebar .topbar>div:first-child{min-width:0}.app-shell-sidebar .topbar h2{margin:0;color:var(--enoc-text);font-size:22px!important;line-height:1.15}.app-shell-sidebar .topbar .muted{color:var(--enoc-muted);font-size:12px}.mobile-menu-button{display:none}.theme-toggle-button{width:40px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0}.theme-toggle-button svg{width:18px;height:18px}.app-shell-sidebar .user-box{display:flex;align-items:center;justify-content:flex-end;gap:12px;border-left:1px solid #ded6cf;padding-left:14px}.theme-dark{--enoc-bg: #111216;--enoc-card: #181a20;--enoc-border: #2c2f38;--enoc-text: #f3f4f6;--enoc-muted: #a5adba;--enoc-placeholder: #7d8592;color:var(--enoc-text);background:var(--enoc-bg)!important}.theme-dark .app-sidebar,.theme-dark .topbar,.theme-dark .admin-panel,.theme-dark .admin-main,.theme-dark .metric-card,.theme-dark .product-form,.theme-dark .product-list-panel,.theme-dark .settings-card,.theme-dark .loading-card,.theme-dark .empty-state,.theme-dark .table-wrap,.theme-dark .product-table-wrap,.theme-dark .inventory-table-wrap{border-color:var(--enoc-border)!important;background:var(--enoc-card)!important;color:var(--enoc-text)!important;box-shadow:none!important}.theme-dark .app-sidebar{background:#15171d!important}.theme-dark .sidebar-brand-copy strong,.theme-dark .topbar h2,.theme-dark .user-box strong,.theme-dark h1,.theme-dark h2,.theme-dark h3,.theme-dark table td strong{color:var(--enoc-text)!important}.theme-dark .sidebar-brand-copy small,.theme-dark .muted,.theme-dark small,.theme-dark table td small{color:var(--enoc-muted)!important}.theme-dark .sidebar-nav button{color:#c6ccd6}.theme-dark .sidebar-nav button:hover{color:#fff;background:#7a0f1442}.theme-dark .sidebar-nav button.active{border-color:#f8717161;color:#fff;background:#7a0f146b;box-shadow:inset 3px 0 #d14b52}.theme-dark .sidebar-nav-icon{background:#ffffff12}.theme-dark input,.theme-dark select,.theme-dark textarea{border-color:#363a45!important;color:var(--enoc-text)!important;background:#101218!important}.theme-dark input::placeholder,.theme-dark textarea::placeholder{color:#7d8592!important}.theme-dark .ghost-button,.theme-dark .theme-toggle-button,.theme-dark .sidebar-toggle{border-color:#3a3e49!important;color:var(--enoc-text)!important;background:#1f222a!important}.theme-dark .ghost-button:hover,.theme-dark .theme-toggle-button:hover,.theme-dark .sidebar-toggle:hover{border-color:#f8717161!important;color:#fff!important;background:#7a0f145c!important}.theme-dark table td{color:#d8dce5!important;border-color:#2c2f38!important}.theme-dark .status-pill{border-color:#3a3e49;background:#1f222a}.app-shell-sidebar .user-box strong{display:block;color:var(--enoc-text);font-size:14px;line-height:1.1}.app-shell-sidebar .user-box small{display:block;color:var(--enoc-muted);font-size:12px}.app-shell-sidebar .user-box .ghost-button{min-height:36px;border-radius:8px;white-space:nowrap}.sidebar-backdrop{display:none}@media(max-width:900px){.app-shell-sidebar,.app-shell-sidebar.sidebar-collapsed{grid-template-columns:1fr!important}.app-sidebar{position:fixed;left:0;top:0;z-index:60;width:min(280px,calc(100vw - 40px));transform:translate(-105%);transition:transform .18s ease}.sidebar-open .app-sidebar{transform:translate(0)}.sidebar-collapsed .sidebar-brand{justify-content:flex-start;padding-right:16px;padding-left:16px}.sidebar-collapsed .sidebar-brand-copy{display:grid}.sidebar-collapsed .sidebar-toggle{width:calc(100% - 28px)}.sidebar-collapsed .sidebar-nav{padding-right:10px;padding-left:10px}.sidebar-collapsed .sidebar-nav button{grid-template-columns:34px minmax(0,1fr);justify-items:stretch;padding:0 10px 0 6px}.sidebar-collapsed .sidebar-nav-label{display:block}.sidebar-collapsed .sidebar-nav button:after{display:none}.sidebar-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:55;display:block;border:0;background:#18141261;opacity:0;pointer-events:none}.sidebar-open .sidebar-backdrop{opacity:1;pointer-events:auto}.mobile-menu-button{display:inline-flex;width:40px;min-height:38px;align-items:center;justify-content:center;grid-column:1;grid-row:1;padding:0;font-size:18px}.app-shell-sidebar .topbar{grid-template-columns:auto minmax(0,1fr) auto!important;padding:10px 14px!important}.app-shell-sidebar .topbar>div:first-child{grid-column:2}.theme-toggle-button{grid-column:3;grid-row:1}.app-shell-sidebar .user-box{grid-column:1 / -1;justify-content:space-between;border-left:0;border-top:1px solid #ded6cf;padding-top:8px;padding-left:0}}.app-shell-sidebar .page-section:not(.customers-refined){max-width:none;display:grid;gap:16px}.app-shell-sidebar .page-section:not(.customers-refined) .section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:2px}.app-shell-sidebar .page-section:not(.customers-refined) .section-heading>div{min-width:0;display:grid;gap:5px}.app-shell-sidebar .page-section:not(.customers-refined) .section-heading .eyebrow,.app-shell-sidebar .page-section:not(.customers-refined) .section-heading .muted{margin:0}.app-shell-sidebar .page-section:not(.customers-refined) .section-heading .eyebrow{color:#8b1017;font-size:12px;line-height:1}.app-shell-sidebar .page-section:not(.customers-refined) .section-heading h1{margin:0;color:#20242c;font-size:28px;line-height:1.12}.app-shell-sidebar .page-section:not(.customers-refined) .section-heading .muted{color:#6f6864;font-size:14px;line-height:1.35}.app-shell-sidebar .page-section:not(.customers-refined) .section-heading .ghost-button,.app-shell-sidebar .page-section:not(.customers-refined) .toolbar .ghost-button{min-height:40px;border-radius:8px;padding:0 16px}.app-shell-sidebar .page-section:not(.customers-refined) .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.app-shell-sidebar .page-section:not(.customers-refined) .metric-card{min-height:82px;align-content:center;gap:6px;border:1px solid #ded6cf;border-radius:8px;padding:14px 16px;background:#fff;box-shadow:0 8px 22px #2a201b0b}.app-shell-sidebar .page-section:not(.customers-refined) .metric-card span{color:#6f6864;font-size:12px;font-weight:800;line-height:1;text-transform:uppercase}.app-shell-sidebar .page-section:not(.customers-refined) .metric-card strong{color:#1f232a;font-size:28px;line-height:1}.app-shell-sidebar .page-section:not(.customers-refined) .metric-card small{margin:0;color:#716b66;font-size:12px;line-height:1.25}.app-shell-sidebar .page-section:not(.customers-refined) .admin-layout,.app-shell-sidebar .page-section:not(.customers-refined) .legal-admin-layout{grid-template-columns:minmax(330px,360px) minmax(0,1fr);gap:16px;align-items:start}.app-shell-sidebar .page-section:not(.customers-refined) .admin-panel,.app-shell-sidebar .page-section:not(.customers-refined) .admin-main,.app-shell-sidebar .page-section:not(.customers-refined) .product-form,.app-shell-sidebar .page-section:not(.customers-refined) .product-list-panel{border:1px solid #ded6cf;border-radius:8px;background:#fff;box-shadow:0 10px 26px #2a201b0d}.app-shell-sidebar .page-section:not(.customers-refined) .admin-panel,.app-shell-sidebar .page-section:not(.customers-refined) .product-form{gap:12px;padding:16px}.app-shell-sidebar .page-section:not(.customers-refined) .admin-main,.app-shell-sidebar .page-section:not(.customers-refined) .product-list-panel{gap:12px;padding:16px}.app-shell-sidebar .page-section:not(.customers-refined) .form-title-row{align-items:center;min-height:28px}.app-shell-sidebar .page-section:not(.customers-refined) .form-title-row h2,.app-shell-sidebar .page-section:not(.customers-refined) .admin-panel h2,.app-shell-sidebar .page-section:not(.customers-refined) .admin-main h2{color:#20242c;font-size:20px;line-height:1.15}.app-shell-sidebar .page-section:not(.customers-refined) .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.app-shell-sidebar .page-section:not(.customers-refined) label,.app-shell-sidebar .page-section:not(.customers-refined) .product-search,.app-shell-sidebar .page-section:not(.customers-refined) .report-toolbar label{min-width:0;gap:6px;color:#494541;font-size:13px;font-weight:700;line-height:1.2}.app-shell-sidebar .page-section:not(.customers-refined) input,.app-shell-sidebar .page-section:not(.customers-refined) select{min-height:40px;height:40px;border-color:#d9d0ca;border-radius:8px;padding:9px 11px;color:#242830;background:#fffdfb;font-size:14px}.app-shell-sidebar .page-section:not(.customers-refined) textarea{min-height:84px;border-color:#d9d0ca;border-radius:8px;padding:10px 11px;color:#242830;background:#fffdfb;font-size:14px}.app-shell-sidebar .page-section:not(.customers-refined) input::placeholder,.app-shell-sidebar .page-section:not(.customers-refined) textarea::placeholder{color:#9b9692;opacity:1}.app-shell-sidebar .page-section:not(.customers-refined) .primary-button{min-height:42px;border-radius:8px}.app-shell-sidebar .page-section:not(.customers-refined) .ghost-button,.app-shell-sidebar .page-section:not(.customers-refined) .danger-button{border-radius:8px}.app-shell-sidebar .page-section:not(.customers-refined) .product-list-tools{grid-template-columns:minmax(320px,1fr) minmax(150px,190px);gap:12px;align-items:end;padding:0;border:0;background:transparent;box-shadow:none}.app-shell-sidebar .page-section:not(.customers-refined) .report-toolbar{gap:12px;border-color:#ded6cf;border-radius:8px;background:#fff;box-shadow:0 8px 22px #2a201b0b}.app-shell-sidebar .page-section:not(.customers-refined) .table-wrap,.app-shell-sidebar .page-section:not(.customers-refined) .product-table-wrap,.app-shell-sidebar .page-section:not(.customers-refined) .inventory-table-wrap{border-color:#ded6cf;border-radius:8px;overflow-x:auto}.app-shell-sidebar .page-section:not(.customers-refined) .table-wrap table,.app-shell-sidebar .page-section:not(.customers-refined) .product-table-wrap table,.app-shell-sidebar .page-section:not(.customers-refined) .inventory-table-wrap table{min-width:880px;border-collapse:collapse}.app-shell-sidebar .page-section:not(.customers-refined) table th{padding:11px 12px;color:#fff;background:#8b1017;font-size:12px;font-weight:800;line-height:1.1;letter-spacing:0;vertical-align:middle}.app-shell-sidebar .page-section:not(.customers-refined) table td{padding:12px;color:#2b3038;font-size:14px;line-height:1.3;vertical-align:middle}.app-shell-sidebar .page-section:not(.customers-refined) table td strong{color:#1f232a;line-height:1.25}.app-shell-sidebar .page-section:not(.customers-refined) table td small{color:#716b66;font-size:12px;line-height:1.25}.app-shell-sidebar .page-section:not(.customers-refined) .status-pill{min-height:26px;justify-content:center;padding:4px 10px;border-radius:999px}.app-shell-sidebar .page-section:not(.customers-refined) .table-actions .compact,.app-shell-sidebar .page-section:not(.customers-refined) .table-action-row .compact{min-height:34px;border-radius:7px;padding:0 12px;font-size:13px}.app-shell-sidebar .page-section:not(.customers-refined) .empty-state,.app-shell-sidebar .page-section:not(.customers-refined) .loading-card{border-color:#ded6cf;border-radius:8px;background:#fff}@media(max-width:1100px){.app-shell-sidebar .page-section:not(.customers-refined) .admin-layout,.app-shell-sidebar .page-section:not(.customers-refined) .legal-admin-layout{grid-template-columns:1fr}.app-shell-sidebar .page-section:not(.customers-refined) .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.app-shell-sidebar .page-section:not(.customers-refined) .section-heading{align-items:flex-start;flex-direction:column}.app-shell-sidebar .page-section:not(.customers-refined) .metric-grid,.app-shell-sidebar .page-section:not(.customers-refined) .form-row,.app-shell-sidebar .page-section:not(.customers-refined) .product-list-tools{grid-template-columns:1fr}}.theme-dark .main-content,.theme-dark .content-shell{color:var(--enoc-text)!important;background:var(--enoc-bg)!important}.theme-dark .customers-refined,.theme-dark .page-section,.theme-dark .module-placeholder{color:var(--enoc-text)!important;background:transparent!important}.theme-dark .customers-refined h1,.theme-dark .customers-refined h2,.theme-dark .customers-refined h3,.theme-dark .customers-refined label,.theme-dark .page-section h1,.theme-dark .page-section h2,.theme-dark .page-section h3,.theme-dark .page-section label,.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) .section-heading h1{color:var(--enoc-text)!important}.theme-dark .customers-refined .muted,.theme-dark .customers-refined .eyebrow,.theme-dark .page-section .muted,.theme-dark .page-section small,.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) .section-heading .muted{color:var(--enoc-muted)!important}.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) .section-heading .eyebrow{color:#ffb4b8!important}.theme-dark .customer-card,.theme-dark .customer-form-card,.theme-dark .customer-list-card,.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) .report-toolbar,.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) .empty-state,.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) .loading-card{border-color:var(--enoc-border)!important;background:var(--enoc-card)!important;color:var(--enoc-text)!important;box-shadow:none!important}.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) table td,.theme-dark .customer-table td{color:#d8dce5!important;border-color:var(--enoc-border)!important}.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) table td strong,.theme-dark .customer-table td strong{color:#f3f4f6!important}.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) table td small,.theme-dark .customer-table td small{color:var(--enoc-muted)!important}.theme-dark .app-shell-sidebar .user-box{border-color:var(--enoc-border)!important}@media(max-width:900px){.theme-dark .sidebar-backdrop{background:#00000094}}.theme-dark .metric-grid .metric-card,.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) .metric-card{border-color:#30343e!important;background:#191c22!important;color:#e8ebf2!important}.theme-dark .metric-grid .metric-card span,.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) .metric-card span{color:#b8c0cc!important}.theme-dark .metric-grid .metric-card strong,.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) .metric-card strong{color:#f7f8fb!important}.theme-dark .metric-grid .metric-card small,.theme-dark .app-shell-sidebar .page-section:not(.customers-refined) .metric-card small{color:#aeb7c4!important}.theme-dark .quick-actions button{border-color:#3a3f4a!important;color:#f3f4f6!important;background:#1f232b!important}.theme-dark .quick-actions button:hover,.theme-dark .quick-actions button:focus-visible{border-color:#f871717a!important;color:#fff!important;background:#7a0f146b!important}.theme-dark .status-pill{border-color:#3a3f4a!important;color:#d8deea!important;background:#20242c!important}.theme-dark .status-pill.ok{border-color:#4ade806b!important;color:#86efac!important;background:#14532d42!important}.theme-dark .customers-heading-copy .eyebrow{color:#ffb4b8!important}.theme-dark .customers-heading-copy h1,.theme-dark .customers-form-panel .form-title-row h2{color:#f7f8fb!important}.theme-dark .customers-heading-copy .muted{color:#bac3d0!important}.theme-dark .customers-metric-card,.theme-dark .customers-form-panel,.theme-dark .customers-list-panel,.theme-dark .customers-table-wrap{border-color:#30343e!important;background:#191c22!important;color:#e8ebf2!important;box-shadow:none!important}.theme-dark .customers-metric-card span,.theme-dark .customers-form-panel label,.theme-dark .customers-list-tools label{color:#c8d0dc!important}.theme-dark .customers-metric-card strong{color:#fff!important}.theme-dark .customers-form-panel input,.theme-dark .customers-form-panel select,.theme-dark .customers-form-panel textarea,.theme-dark .customers-list-tools input,.theme-dark .customers-list-tools select{border-color:#3a3f4a!important;color:#f3f4f6!important;background:#101218!important}.theme-dark .customers-form-panel input::placeholder,.theme-dark .customers-form-panel textarea::placeholder,.theme-dark .customers-list-tools input::placeholder{color:#aab2bf!important;opacity:1!important}.theme-dark .customers-table td{border-color:#30343e!important;color:#dbe1ea!important;background:#191c22!important}.theme-dark .customers-table tr:hover td{background:#20242c!important}.theme-dark .customers-table td strong{color:#f7f8fb!important}.theme-dark .customers-table td small{color:#b4becb!important}.theme-dark .customers-table .ghost-button{border-color:#3a3f4a!important;color:#f3f4f6!important;background:#1f232b!important}.theme-dark .status-pill.danger-state{border-color:#f8717175!important;color:#fca5a5!important;background:#7f1d1d47!important}.theme-dark .status-pill.warning-state{border-color:#fbbf2475!important;color:#fde68a!important;background:#78350f47!important}.billing-page,.billing-page *{box-sizing:border-box}.billing-page,.billing-page .legal-admin-layout,.billing-page .legal-list-panel,.billing-page .admin-main,.billing-page .invoice-preview-panel,.billing-page .invoice-paper{min-width:0!important;max-width:100%!important}.app-shell-sidebar .billing-page.legal-page .legal-admin-layout{grid-template-columns:minmax(300px,360px) minmax(0,1fr)!important}.billing-page .table-wrap{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}.app-shell-sidebar .billing-page.legal-page .table-wrap table,.billing-page .table-wrap table{min-width:680px!important;width:max-content!important;max-width:none!important}.billing-page .invoice-history-wrap{overflow-x:auto!important}.app-shell-sidebar .billing-page.legal-page .invoice-history-table,.billing-page .invoice-history-table{max-width:100%!important;min-width:0!important;table-layout:fixed;width:100%!important}.billing-page .invoice-history-table th:nth-child(1),.billing-page .invoice-history-table td:nth-child(1){width:140px}.billing-page .invoice-history-table th:nth-child(2),.billing-page .invoice-history-table td:nth-child(2){width:auto}.billing-page .invoice-history-table th:nth-child(3),.billing-page .invoice-history-table td:nth-child(3){width:140px}.billing-page .invoice-history-table th:nth-child(4),.billing-page .invoice-history-table td:nth-child(4){width:120px}.billing-page .invoice-history-table th:nth-child(5),.billing-page .invoice-history-table td:nth-child(5){width:110px}.billing-page .invoice-history-table th:nth-child(6),.billing-page .invoice-history-table td:nth-child(6){width:110px}.billing-page .invoice-history-table td,.billing-page .invoice-history-table th{overflow:hidden;text-overflow:ellipsis}.billing-page .invoice-history-table td strong,.billing-page .invoice-history-table td small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}.billing-page .invoice-paper{overflow:hidden}.billing-page .invoice-preview-lines{min-width:0!important;width:100%!important;max-width:100%!important;table-layout:fixed}.billing-page .invoice-preview-lines td:first-child{width:auto}.billing-page .invoice-preview-lines td:last-child{width:112px;white-space:nowrap}.billing-page .invoice-paper-header,.billing-page .invoice-paper-meta,.billing-page .invoice-paper-total{min-width:0!important}.billing-page .invoice-paper-header{gap:12px}.billing-page .invoice-paper-header>*,.billing-page .invoice-paper-meta span,.billing-page .invoice-paper-meta strong,.billing-page .invoice-preview-lines td,.billing-page table td,.billing-page table th{min-width:0;overflow-wrap:anywhere}.billing-page .invoice-paper-header h2,.billing-page .invoice-paper-header span{word-break:break-word}.billing-page .invoice-paper-meta strong{display:block;max-width:100%;white-space:normal}@media(max-width:1280px){.app-shell-sidebar .billing-page.legal-page .legal-admin-layout{grid-template-columns:1fr!important}}@media(max-width:720px){.billing-page{overflow-x:hidden}.billing-page .section-heading,.billing-page .toolbar{align-items:stretch}.billing-page .legal-metrics,.billing-page .form-row,.billing-page .invoice-paper-meta{grid-template-columns:1fr!important}.billing-page .invoice-paper{padding:12px}.billing-page input[type=date],.billing-page input,.billing-page select{min-height:44px!important;height:44px!important;line-height:1.2!important;padding:10px 12px!important;font-size:16px!important}.billing-page input[type=date]{-moz-appearance:none;appearance:none;-webkit-appearance:none}.billing-page .invoice-paper-header{display:grid}.billing-page .invoice-paper-header h2,.billing-page .invoice-paper-header span{text-align:left}.billing-page .invoice-paper-total{justify-self:stretch;min-width:0!important}.app-shell-sidebar .billing-page.legal-page .table-wrap table,.billing-page .table-wrap table{min-width:620px!important}.app-shell-sidebar .billing-page.legal-page .invoice-history-table,.billing-page .invoice-history-table{min-width:680px!important;width:max-content!important}.billing-page .invoice-preview-lines{display:table;min-width:0!important}.billing-page .invoice-preview-lines td{padding:9px 0;font-size:14px;line-height:1.35}.billing-page .invoice-preview-lines td:last-child{width:88px;font-size:13px}}.matters-page .table-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.matters-page .table-actions .primary-button.compact{min-height:34px;padding:0 12px;font-size:13px}.billing-pending-panel{display:grid;gap:14px}.billing-context-card{align-items:center;display:flex;justify-content:space-between;gap:16px;border:1px solid #ded6cf;border-radius:8px;padding:14px 16px;background:#fffaf7}.billing-context-card h2,.billing-context-card p{margin:0}.billing-context-card>strong{flex:0 0 auto;color:#8b1017;font-size:18px}.billing-source-group{display:grid;gap:8px}.billing-source-group h3{margin:0;color:#20242c;font-size:16px}.theme-dark .billing-context-card{border-color:#334155;background:#161b24}.theme-dark .billing-context-card>strong{color:#fecaca}.theme-dark .billing-source-group h3{color:#f8fafc}.customer-billing-email-box,.email-signature-settings{display:grid;gap:10px;border:1px solid #eadfd6;border-radius:8px;padding:12px;background:#fffaf7}.settings-accordion{display:grid;gap:14px}.settings-collapse{padding:0;overflow:hidden}.settings-collapse summary{align-items:center;background:linear-gradient(180deg,#fffdfb,#fff8f5);cursor:pointer;display:flex;justify-content:space-between;gap:16px;list-style:none;padding:16px 18px;-webkit-user-select:none;user-select:none}.settings-collapse summary::-webkit-details-marker{display:none}.settings-collapse summary:after{border:1px solid #eadfd6;border-radius:999px;color:#8d1013;content:"+";display:grid;flex:0 0 28px;font-size:20px;font-weight:900;height:28px;place-items:center;width:28px}.settings-collapse[open] summary:after{content:"-"}.settings-collapse[open] summary{border-bottom:1px solid #eadfd6}.settings-collapse summary span:first-child{display:grid;gap:4px;min-width:0}.settings-collapse summary strong{color:#20242c;font-size:18px;line-height:1.15}.settings-collapse summary small{color:#716765;font-size:12px}.settings-collapse-body{border-top:1px solid #eadfd6;padding:18px}.customer-billing-email-box h3,.email-signature-settings h3{margin:0;color:#20242c;font-size:15px}.email-signature-preview{align-items:center;display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;border:1px solid #ded6cf;border-radius:8px;padding:12px;background:#fff}.email-signature-preview img{max-width:68px;max-height:54px;object-fit:contain}.email-signature-preview div{display:grid;gap:3px;min-width:0}.email-signature-preview strong{color:#1f232a}.email-signature-preview span,.email-signature-preview small{color:#5f6875;overflow-wrap:anywhere}.billing-action-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.billing-action-row button{min-width:0;padding-inline:10px}.manual-invoice-lines{display:grid;gap:10px;border:1px solid #eadfd6;border-radius:8px;padding:12px;background:#fffaf7}.manual-lines-header{align-items:center;display:flex;justify-content:space-between;gap:12px}.manual-lines-header>div{display:grid;gap:3px;min-width:0}.manual-lines-header strong{color:#20242c;font-size:14px}.manual-lines-header small{color:#716765;font-size:12px}.manual-invoice-workspace{padding:16px}.manual-line-grid-head{display:grid;grid-template-columns:minmax(260px,2fr) minmax(70px,.55fr) minmax(110px,.8fr) minmax(85px,.65fr) minmax(120px,.85fr) 86px;gap:8px;color:#716765;font-size:11px;font-weight:800;text-transform:uppercase}.manual-line-row{align-items:end;display:grid;grid-template-columns:minmax(260px,2fr) minmax(70px,.55fr) minmax(110px,.8fr) minmax(85px,.65fr) minmax(120px,.85fr) 86px;gap:8px}.manual-line-row label{min-width:0}.manual-invoice-workspace .manual-line-row label>span{display:none}.manual-line-row input{min-width:0}.manual-line-total{display:grid;gap:3px;min-height:40px}.manual-line-total span{color:#716765;font-size:11px;font-weight:700}.manual-line-total strong{color:#20242c;font-size:13px;overflow-wrap:anywhere}.inline-test-row{align-items:center;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.inline-test-row input{min-width:0}.receivables-reminder-settings{background:#fbf7f3;border:1px solid #eadfd6;border-radius:8px;display:grid;gap:12px;padding:14px}.receivables-reminder-settings h3{color:#20242c;font-size:16px;margin:0 0 4px}.checkbox-line{align-items:center;background:#fff;border:1px solid #eadfd6;border-radius:8px;color:#20242c;display:flex;gap:10px;min-height:40px;padding:10px 12px}.checkbox-line input{width:auto}.theme-dark .customer-billing-email-box,.theme-dark .email-signature-settings,.theme-dark .email-signature-preview,.theme-dark .settings-collapse-body,.theme-dark .receivables-reminder-settings,.theme-dark .manual-invoice-lines{border-color:#334155;background:#161b24}.theme-dark .customer-billing-email-box h3,.theme-dark .email-signature-settings h3,.theme-dark .receivables-reminder-settings h3,.theme-dark .email-signature-preview strong,.theme-dark .settings-collapse summary strong,.theme-dark .manual-lines-header strong,.theme-dark .manual-line-total strong,.theme-dark .checkbox-line{color:#f8fafc}.theme-dark .checkbox-line{background:#111827;border-color:#334155}.theme-dark .email-signature-preview span,.theme-dark .email-signature-preview small,.theme-dark .settings-collapse summary small,.theme-dark .manual-lines-header small,.theme-dark .manual-line-grid-head,.theme-dark .manual-line-total span{color:#cbd5e1}.theme-dark .settings-collapse summary:after{border-color:#334155;color:#fca5a5}.theme-dark .settings-collapse summary{background:linear-gradient(180deg,#171c25,#141922)}.email-compose-backdrop{align-items:center;background:#0f172a7a;display:flex;top:0;right:0;bottom:0;left:0;justify-content:center;padding:18px;position:fixed;z-index:70}.email-compose-modal{background:#fff;border:1px solid #ded6cf;border-radius:10px;box-shadow:0 24px 70px #0f172a3d;display:grid;gap:0;max-height:calc(100vh - 44px);overflow:auto;padding:0;width:min(920px,100%)}.email-compose-header{align-items:center;border-bottom:1px solid #eadfd6;display:flex;justify-content:space-between;gap:16px;padding:16px 18px}.email-compose-header h2{margin:0;color:#20242c;font-size:22px}.email-compose-fields{display:grid;gap:0;padding:0 18px 16px}.email-compose-fields label{border-bottom:1px solid #f0e5dc;display:grid;gap:6px;padding:12px 0}.email-compose-fields input,.email-compose-fields textarea{border:0;border-radius:0;box-shadow:none;padding-left:0;padding-right:0}.email-compose-fields textarea{min-height:300px;resize:vertical;white-space:pre-wrap}.email-attachments-box{display:grid;gap:8px;padding-top:12px}.email-attachments-header{align-items:center;display:flex;justify-content:space-between;gap:12px}.email-attachments-header>span{color:#4b5563;font-size:12px;font-weight:900;text-transform:uppercase}.email-attachments-header input{display:none}.email-attachment-pill{align-items:center;background:#f8fafc;border:1px solid #d8dee8;border-radius:8px;display:flex;justify-content:space-between;gap:12px;padding:10px 12px;text-align:left;width:100%}.email-attachment-pill span{color:#716765;font-size:12px;font-weight:800;text-transform:uppercase}.email-attachment-pill strong{color:#20242c;overflow-wrap:anywhere}.email-compose-actions{align-items:center;background:#fbf7f3;border-top:1px solid #eadfd6;display:flex;justify-content:flex-end;gap:10px;padding:14px 18px}.communications-toolbar{display:grid;gap:10px;grid-template-columns:minmax(0,1fr) 180px auto;margin-bottom:14px}.segmented-tabs{background:#fff;border:1px solid #eadfd6;border-radius:8px;display:inline-flex;gap:4px;margin-bottom:14px;padding:4px}.segmented-tabs button{background:transparent;border:0;border-radius:6px;color:#4b5563;cursor:pointer;font-weight:900;padding:9px 14px}.segmented-tabs button.active{background:#fff1f2;color:#980f18}.communications-layout{display:grid;gap:14px;grid-template-columns:minmax(280px,.42fr) minmax(0,1fr)}.whatsapp-chat-layout{display:grid;gap:14px;grid-template-columns:minmax(280px,.34fr) minmax(0,1fr)}.communications-list{align-content:start;display:grid;gap:8px;max-height:calc(100vh - 230px);overflow:auto}.communication-row{background:#fff;border:1px solid #eadfd6;border-radius:8px;color:#20242c;display:grid;gap:4px;padding:12px;text-align:left}.communication-row.active{background:#fff1f2;border-color:#b4161b;box-shadow:inset 3px 0 #980f18}.communication-row span{color:#980f18;font-size:11px;font-weight:900;text-transform:uppercase}.communication-row strong{overflow-wrap:anywhere}.communication-row small{color:#716765}.communication-row em{align-self:start;background:#980f18;border-radius:999px;color:#fff;font-size:11px;font-style:normal;font-weight:900;justify-self:end;min-width:22px;padding:3px 7px;text-align:center}.communication-detail{display:grid;gap:16px}.communication-detail header{align-items:start;display:grid;gap:6px;grid-template-columns:minmax(0,1fr) auto}.communication-detail header h2{margin:0;overflow-wrap:anywhere}.communication-detail dl{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.communication-detail dl div{background:#fbf7f3;border:1px solid #eadfd6;border-radius:8px;padding:10px}.communication-detail dt{color:#716765;font-size:11px;font-weight:900;text-transform:uppercase}.communication-detail dd{margin:3px 0 0;overflow-wrap:anywhere}.communication-detail pre{background:#fff;border:1px solid #eadfd6;border-radius:8px;font-family:inherit;line-height:1.5;margin:0;overflow:auto;padding:14px;white-space:pre-wrap}.communication-attachments{display:grid;gap:8px}.communication-attachments h3{margin:0}.whatsapp-chat-panel{display:grid;grid-template-rows:auto minmax(320px,1fr) auto;min-height:calc(100vh - 260px);overflow:hidden;padding:0}.whatsapp-chat-header{align-items:start;border-bottom:1px solid #eadfd6;display:flex;justify-content:space-between;gap:12px;padding:16px}.whatsapp-chat-header h2{margin:0}.whatsapp-message-thread{align-content:end;background:#fbf7f3;display:grid;gap:10px;overflow:auto;padding:16px}.whatsapp-message{background:#fff;border:1px solid #eadfd6;border-radius:8px;display:grid;gap:5px;max-width:min(680px,82%);padding:10px 12px}.whatsapp-message.outbound{background:#fff1f2;border-color:#efc1c5;justify-self:end}.whatsapp-message.inbound{justify-self:start}.whatsapp-message small,.whatsapp-message span{color:#716765;font-size:11px;font-weight:800}.whatsapp-message p{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.whatsapp-reply-box{border-top:1px solid #eadfd6;display:grid;gap:10px;grid-template-columns:minmax(0,1fr) auto;padding:14px}.whatsapp-reply-box textarea{min-height:72px;resize:vertical}.theme-dark .email-compose-modal{background:#161b24;border-color:#334155}.theme-dark .email-compose-header,.theme-dark .email-compose-actions{border-color:#334155}.theme-dark .email-compose-actions,.theme-dark .communication-detail dl div,.theme-dark .communication-detail pre,.theme-dark .communication-row,.theme-dark .segmented-tabs,.theme-dark .whatsapp-message{background:#111827;border-color:#334155}.theme-dark .email-compose-header h2,.theme-dark .email-attachment-pill strong{color:#f8fafc}.theme-dark .email-attachment-pill{background:#111827;border-color:#334155}.theme-dark .email-attachment-pill span{color:#cbd5e1}.theme-dark .email-compose-fields label{border-color:#334155}.theme-dark .communication-row.active{background:#980f1838;border-color:#f87171}.theme-dark .segmented-tabs button{color:#cbd5e1}.theme-dark .segmented-tabs button.active,.theme-dark .whatsapp-message.outbound{background:#980f1838;border-color:#f87171;color:#f8fafc}.theme-dark .whatsapp-chat-header,.theme-dark .whatsapp-reply-box{border-color:#334155}.theme-dark .whatsapp-message-thread{background:#0f131b}.theme-dark .communication-row strong,.theme-dark .communication-detail h2,.theme-dark .communication-detail dd,.theme-dark .communication-detail pre,.theme-dark .whatsapp-message p,.theme-dark .whatsapp-chat-header h2{color:#f8fafc}.theme-dark .communication-row small,.theme-dark .communication-detail dt,.theme-dark .whatsapp-message small,.theme-dark .whatsapp-message span{color:#cbd5e1}@media(max-width:720px){body{min-width:0}.app-shell,.app-shell-sidebar,.content-shell,.main-content,.page-section,.topbar{max-width:100vw!important;min-width:0!important;overflow-x:hidden!important;width:100%!important}.page-section{padding-left:max(12px,env(safe-area-inset-left))!important;padding-right:max(12px,env(safe-area-inset-right))!important}.table-wrap,.product-table-wrap,.inventory-table-wrap,.invoice-ref-table-wrap,.customers-table-wrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}}@media(max-width:720px){.billing-context-card{align-items:flex-start;display:grid}.matters-page .table-actions{justify-content:flex-start}.billing-action-row,.inline-test-row,.email-signature-preview,.manual-line-row{grid-template-columns:1fr}.manual-line-grid-head{display:none}.manual-invoice-workspace .manual-line-row label>span{display:inline}.manual-lines-header{align-items:flex-start;display:grid}.email-compose-backdrop{align-items:stretch;padding:10px}.email-compose-modal{max-height:calc(100vh - 20px)}.email-compose-actions{display:grid;grid-template-columns:1fr}.communications-toolbar,.communications-layout,.whatsapp-chat-layout,.communication-detail dl{grid-template-columns:1fr}.whatsapp-chat-panel,.whatsapp-message{max-width:100%}.whatsapp-reply-box{grid-template-columns:1fr}}@media(max-width:720px),(display-mode:standalone){html,body,#root{inline-size:100%;max-inline-size:100%;min-inline-size:0!important;overflow-x:clip!important}.app-shell,.app-shell-sidebar,.content-shell,.main-content,.topbar,.page-section{inline-size:100%!important;max-inline-size:100vw!important;min-inline-size:0!important}.main-content,.page-section{overflow-x:clip!important}.metric-grid,.legal-metrics,.admin-layout,.legal-admin-layout,.form-row,.product-list-tools,.report-toolbar{grid-template-columns:1fr!important;min-inline-size:0!important}input,select,textarea,button{max-inline-size:100%}img,canvas,svg{max-inline-size:100%}}
