/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--radius-sm:.25rem;--radius-md:.375rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.flex-wrap{flex-wrap:wrap}.border{border-style:var(--tw-border-style);border-width:1px}.break-all{word-break:break-all}.italic{font-style:italic}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--font-xs:.78rem;--font-sm:.88rem;--font-base:1rem;--font-md:1.05rem;--font-lg:1.2rem;--font-xl:clamp(1.3rem, 2vw, 1.5rem);--font-2xl:clamp(1.5rem, 2.6vw, 2rem);--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:20px;--radius-pill:999px;--bg:#f2f4f3;--bg-elevated:#fcfcfa;--surface:#fff;--surface-soft:#f4f7f6;--surface-accent:#edf6f5;--surface-warning:#fff6f4;--text:#132322;--text-muted:#455a59;--text-faint:#5a6f6e;--border:#c5d1cf;--border-strong:#6f8884;--primary:#084f4a;--primary-hover:#063f3b;--primary-soft:#d3e9e5;--primary-ink:#fff;--success:#1f6a44;--success-soft:#eaf6ee;--success-ink:#1c5238;--danger:#9b2f34;--danger-soft:#fdecec;--danger-ink:#7a2226;--warning:#8a4a1e;--warning-soft:#fdf4e7;--warning-ink:#7a3f17;--accent:#0f766e;--accent-strong:#0d8276;--accent-soft:#e6f4f1;--focus:#0a5f59;--shadow-soft:0 8px 22px #0b1d1b12;--shadow-panel:0 14px 34px #08171617;font-family:Segoe UI,Aptos,Trebuchet MS,system-ui,-apple-system,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:radial-gradient(circle at 0 0, #e6f3f1 0, transparent 45%), radial-gradient(circle at 100% 0, #efe7df 0, transparent 40%), linear-gradient(180deg, #fcfdfa 0%, var(--bg) 100%);min-height:100vh;color:var(--text);margin:0}#root{min-height:100vh}.app-shell{width:min(1280px,100%);padding:10px 10px 134px;padding-bottom:calc(134px + env(safe-area-inset-bottom,0px));margin:0 auto}.skip-link{z-index:100;background:var(--primary);color:var(--primary-ink);border-radius:12px;padding:12px 16px;font-weight:700;position:absolute;top:0;left:-9999px}.skip-link:focus{top:12px;left:12px}.topbar{background:var(--surface);border:1px solid var(--border-strong);box-shadow:var(--shadow-soft);border-radius:18px;grid-template-columns:minmax(0,1fr);align-items:flex-start;gap:10px;padding:12px;display:grid}.brand-header{justify-content:flex-start;align-items:center;gap:14px;width:100%;display:flex}.auth-brand{justify-content:flex-start;align-items:center;gap:14px;width:auto;display:flex}.brand-mark{-o-object-fit:contain;object-fit:contain;border-radius:0;flex-shrink:0;width:64px;height:64px;display:block}.topbar h1,.auth-panel h1{margin:0;font-size:1.45rem;line-height:1.1}.header-subtitle{color:var(--text-muted);margin:6px 0 0;font-size:.9rem}.sync-state{flex-direction:column;justify-content:flex-start;align-items:stretch;gap:7px;width:100%;margin-top:2px;display:flex}.sync-actions{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;display:grid}.sync-meta{flex-wrap:wrap;align-items:center;gap:6px;width:100%;display:flex}.sync-pill-sep{opacity:.5;margin:0 1px;font-weight:400}.sync-pill{background:var(--primary-soft);color:#0f3e3a;white-space:nowrap;text-overflow:ellipsis;border:1px solid #a8c8c3;border-radius:999px;align-items:center;min-height:32px;padding:5px 9px;font-size:.84rem;font-weight:700;display:inline-flex;overflow:hidden}.session-pill{background:var(--surface-soft);border-color:var(--border);color:var(--text)}.user-pill{color:#234543;background:#f6faf9;border-color:#c9d9d6}.sync-btn,button,input,select{font:inherit}.sync-btn{background:var(--primary);min-height:44px;color:var(--primary-ink);border:none;border-radius:12px;padding:10px 12px;font-size:.92rem;font-weight:700}.subtle-btn{color:#244745;background:#ecf2f1;border:1px solid #c3d0ce;border-radius:10px;min-height:38px;padding:8px 11px;font-size:.84rem}.sync-btn:hover:not(:disabled),button:hover:not(:disabled){filter:brightness(.98)}.panel,.tab-btn,.sync-btn,.big-btn,.top-products-card li,.summary-grid article,.qs-card{transition:box-shadow .18s,border-color .18s,transform .18s}.sync-btn:disabled,button:disabled{opacity:.72;cursor:default}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.quick-status{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;display:grid}.qs-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-soft);border-radius:16px;align-items:center;gap:12px;min-width:0;padding:14px 14px 14px 12px;display:flex;position:relative;overflow:hidden}.qs-card:before{content:"";background:var(--border-strong);border-radius:16px 0 0 16px;width:4px;position:absolute;top:0;bottom:0;left:0}.qs-card--primary:before{background:var(--primary)}.qs-card--warn:before{background:#d97706}.qs-card--danger:before{background:var(--danger)}.qs-card--primary{background:linear-gradient(135deg,#f9fefd,#ecf7f5);border-color:#b4d4cc}.qs-card--warn{background:linear-gradient(135deg,#fffdf5,#fef9e7);border-color:#f5d78a}.qs-card--danger{background:linear-gradient(135deg,#fff8f8,#fde8e8);border-color:#f5a5a5}button.qs-card{width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer;padding-right:32px;transition:transform .12s,box-shadow .12s,border-color .12s}button.qs-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #084f4a24}button.qs-card:active{transform:translateY(0)}button.qs-card:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.qs-chevron{color:var(--text-muted);font-size:1.4rem;font-weight:700;line-height:1;transition:transform .12s;position:absolute;top:50%;right:10px;transform:translateY(-50%)}button.qs-card:hover .qs-chevron{color:var(--text);transform:translateY(-50%)translate(2px)}.qs-action-cue{color:var(--text);white-space:nowrap;text-overflow:ellipsis;max-width:100%;margin-top:2px;font-size:.72rem;font-weight:700;line-height:1.3;display:inline-block;overflow:hidden}.qs-card--danger .qs-action-cue{color:#991b1b}.qs-card--warn .qs-action-cue{color:#92400e}@media (width<=540px){.qs-card{gap:8px;padding:12px 12px 12px 10px}button.qs-card{padding-right:22px}.qs-icon{border-radius:8px;width:30px;height:30px;margin-left:2px;font-size:.9rem}.qs-chevron{font-size:1.2rem;right:6px}}.qs-icon{width:36px;height:36px;color:var(--primary);background:#084f4a14;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;margin-left:4px;font-size:1rem;font-weight:900;display:flex}.qs-card--warn .qs-icon{color:#92400e;background:#d977061a}.qs-card--danger .qs-icon{color:#991b1b;background:#dc26261a}.qs-body{flex:1;min-width:0}.qs-label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);word-break:break-word;margin:0;font-size:.74rem;font-weight:700;line-height:1.25}.qs-value{font-variant-numeric:tabular-nums;color:var(--text);overflow-wrap:anywhere;word-break:break-word;min-width:0;margin:4px 0 0;font-size:clamp(1rem,2.2vw,1.3rem);font-weight:900;line-height:1.15}.qs-value--warn{color:#92400e}.qs-value--danger{color:var(--danger)}.qs-value--compact{font-size:1.15rem}.qs-subvalue{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;margin:2px 0 0;font-size:.72rem;font-weight:600;line-height:1.3;overflow:hidden}.users-list li .status-badge{min-height:28px;padding:3px 10px;font-size:.78rem}.receivables-form,.receivables-form-row{grid-template-columns:1fr;gap:8px}.receivables-due-date-field input[type=date]{width:100%}.receivables-amount-input,.receivable-payment-input{width:100%;min-width:0}.receivables-list li{gap:8px}.receivable-outstanding{white-space:normal}.receivables-balance-meta{gap:6px}.receivables-list .debt-collection-row{grid-template-columns:1fr}.credit-limit-edit-row{flex-wrap:wrap}.credit-limit-edit-row input{flex:1;max-width:100%}@media (width>=768px){.quick-status{grid-template-columns:repeat(4,minmax(0,1fr))}}.workspace-layout{grid-template-columns:1fr;gap:10px;margin-top:10px;display:grid}.grid-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar-shell{align-content:start;gap:10px;display:grid}.tab-row{z-index:30;padding:9px 10px 19px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--border);-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;background:#fafbf9fa;border-bottom:none;border-left:none;border-right:none;border-radius:0;grid-template-columns:none;grid-auto-columns:minmax(98px,1fr);grid-auto-flow:column;gap:6px;margin:0;display:grid;position:fixed;bottom:0;left:0;right:0;overflow-x:auto;box-shadow:0 -10px 20px #101f1e24}.tab-btn{border:1px solid var(--border-strong);min-height:56px;color:var(--text);text-align:center;-webkit-scroll-snap-align:start;scroll-snap-align:start;background:linear-gradient(#fff,#f5f8f7);border-radius:10px;flex-shrink:0;padding:10px 8px;font-size:.85rem;font-weight:700}.tab-btn.active{border-color:var(--primary);color:var(--primary-ink);background:linear-gradient(#0f6c65,#0b5a54);box-shadow:inset 0 0 0 1px #0f847b,0 8px 18px #0b5a5447}.tab-btn{position:relative}.tab-badge{background:var(--danger);color:#fff;text-align:center;pointer-events:none;border-radius:999px;min-width:18px;height:18px;padding:0 5px;font-size:.65rem;font-weight:800;line-height:18px;animation:.3s cubic-bezier(.34,1.56,.64,1) both badge-pop;position:absolute;top:6px;right:6px}@keyframes badge-pop{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}.workflow-card{color:#304443;background:linear-gradient(165deg,#fff,#f5f8f7);border:1px solid #d5d9d7;border-radius:16px;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px;font-weight:700;display:none}.workflow-card span{background:#f0f7f5;border:1px solid #c7d9d6;border-radius:999px;padding:6px 10px}.workspace-main{gap:12px;display:grid}.panel{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-panel);border-radius:16px;padding:14px}.workspace-main>.panel{overflow:hidden}.panel h2{margin:0 0 6px;font-size:1.35rem}.hint{color:var(--text-muted);margin:0 0 12px;font-size:.95rem}.empty-state{background:var(--surface-warning);color:#6b2f33;border:1px solid #e7c8c8;border-radius:12px;margin:0 0 12px;padding:12px;font-weight:700}.scan-row,.checkout-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:10px;display:grid}.scan-row>*,.checkout-row>*{min-width:0}.scan-row input,.scan-row button,.checkout-row input,.checkout-row button,.form-row input,.form-row select,.form-row button,.auth-form input,.auth-form button,.auth-form select,.report-filter-row select,.gastos-form input,.gastos-form select,.gastos-form button[type=submit],.list button{border:1px solid var(--border-strong);background:var(--surface);width:100%;min-height:48px;color:var(--text);border-radius:12px;padding:0 12px}.scan-row button,.checkout-row button,.form-row button,.auth-form button,.gastos-form button[type=submit],.users-pagination button,.list button{background:var(--primary);color:var(--primary-ink);border:none;font-weight:700}.product-search-row{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;display:flex}.product-search-row input{border:1px solid var(--border);border-radius:10px;flex:1;min-width:240px;min-height:46px;padding:0 12px}.grid-buttons{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;display:grid}.big-btn{min-height:124px;color:var(--text);box-shadow:var(--shadow-soft);text-align:left;background:linear-gradient(170deg,#fbfefd,#ecf7f5);border:1px solid #c9ddda;border-radius:16px;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;padding:12px;display:flex}.big-btn strong{font-size:1.05rem}.big-btn--in-cart{border-color:var(--primary);box-shadow:0 0 0 2px #084f4a1f, var(--shadow-soft);background:linear-gradient(170deg,#f0faf8,#d6f0ec);border-width:2px}.big-btn-cart-badge{background:var(--primary);color:var(--primary-ink);white-space:nowrap;border-radius:999px;align-self:flex-start;align-items:center;gap:4px;margin-bottom:2px;padding:2px 9px;font-size:.75rem;font-weight:800;display:inline-flex}.big-btn:disabled{opacity:.5}.tap-helper{color:var(--text-muted);font-size:.88rem;font-weight:700}.pagination-row{justify-content:center;align-items:center;gap:12px;margin-top:12px;display:flex}.pagination-row button{border:1px solid var(--border);background:var(--surface);border-radius:10px;min-height:40px;padding:0 14px}.checkout-card{background:linear-gradient(#f8fbfa,#f1f6f5);border:1px solid #c8d7d4;border-radius:16px;margin-top:14px;padding:14px}.checkout-card h3{margin:0 0 8px}.checkout-mode-toggle{grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 8px;display:grid}.checkout-mode-btn{border:2px solid var(--border);background:var(--surface);cursor:pointer;color:var(--text-muted);border-radius:12px;padding:10px 0;font-size:.95rem;font-weight:600;transition:border-color .15s,background .15s,color .15s}.checkout-mode-btn.active{border-color:var(--primary);color:var(--primary);background:#e8f5f2}.checkout-mode-btn.active.utang{color:#92400e;background:#fffbeb;border-color:#d97706}.checkout-utang-note{color:#92400e;background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;margin:6px 0 0;padding:6px 10px;font-size:.88rem}.checkout-row button.btn-utang{color:#fff;background:#b45309;border-color:#92400e}.checkout-row button.btn-utang:hover:not(:disabled){background:#92400e}.checkout-list{gap:8px;margin:0 0 10px;padding:0;list-style:none;display:grid}.checkout-list li{border:1px solid var(--border);background:var(--surface);border-radius:12px;grid-template-columns:1fr;align-items:center;gap:6px;padding:8px;display:grid}.cart-qty-controls{align-items:center;gap:6px;display:flex}.cart-qty-controls button{border:1px solid var(--border);background:var(--surface);border-radius:8px;width:28px;height:28px;padding:0}.cart-remove-btn{color:var(--danger);background:0 0;border:none;border-radius:8px;padding:4px 8px}.form-row{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-bottom:12px;display:grid}.form-row>*{min-width:0}.list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.list li{border:1px solid var(--border);background:var(--surface-soft);border-radius:14px;grid-template-columns:1.2fr .8fr .9fr 1fr auto;align-items:center;gap:8px;padding:10px;display:grid}.debt-collection-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.debt-collection-row input{border:1px solid var(--border);border-radius:10px;min-height:44px;padding:0 10px}.debt-collection-row button{background:var(--primary);min-height:44px;color:var(--primary-ink);border:none;border-radius:10px;padding:0 12px;font-weight:700}.receivables-form{grid-template-columns:minmax(180px,1fr) minmax(260px,1.2fr) auto;gap:10px}.receivables-amount-input{font-variant-numeric:tabular-nums;min-width:0}.receivables-list li{flex-direction:column;align-items:stretch;gap:6px;display:flex}.credit-application-preview{background:linear-gradient(#f2fbf5,#e9f7ef);border:1px solid #9fcab4;border-radius:12px;margin:6px 0 12px;padding:12px}.credit-application-preview h3{color:#1f5d3f;margin:0 0 8px;font-size:1rem}.credit-application-preview p{color:#21443a;font-variant-numeric:tabular-nums;margin:4px 0}.receivables-balance-meta{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.receivable-outstanding{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.receivable-outstanding.is-debit{color:#223f3c}.receivable-outstanding.is-credit{color:#1e6a44}.credit-badge{color:#1f6944;background:#e9f8ee;border:1px solid #8fc39f;border-radius:999px;align-items:center;min-height:26px;padding:2px 10px;font-size:.8rem;font-weight:700;display:inline-flex}.receivables-list .debt-collection-row{grid-template-columns:minmax(0,1fr) auto;gap:10px;display:grid}.receivable-payment-input{font-variant-numeric:tabular-nums;width:100%;min-width:0}.receivables-list li .hint{margin:2px 0 0}.receivables-form-extended{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.receivables-form-row{grid-template-columns:1fr 1fr;align-items:end;gap:10px;display:grid}.receivables-form-row>button[type=submit]{grid-column:1/-1}@media (width>=680px){.receivables-form-row{grid-template-columns:minmax(160px,1fr) minmax(160px,1.1fr) minmax(150px,auto) auto}.receivables-form-row>button[type=submit]{grid-column:auto}}.receivables-due-date-field{flex-direction:column;gap:4px;display:flex}.receivables-field{flex-direction:column;gap:4px;min-width:0;display:flex}.receivables-due-label,.receivables-field-label{color:var(--text-muted);font-size:.78rem;font-weight:700;line-height:1}.inline-confirm{border-radius:var(--radius-md,12px);background:linear-gradient(#fff5f5,#ffeaea);border:1px solid #e8a09e;margin-top:10px;padding:12px 14px}.inline-confirm-message{color:#7a1c18;margin:0 0 10px;font-weight:600;line-height:1.4}.inline-confirm-actions{flex-wrap:wrap;gap:8px;display:flex}.inline-confirm-proceed,.inline-confirm-cancel{min-height:42px;font:inherit;cursor:pointer;border-radius:10px;padding:0 16px;font-weight:700}.inline-confirm-proceed{background:var(--danger);color:#fff;border:none}.inline-confirm-cancel{border:1px solid var(--border-strong,var(--border));background:var(--surface);color:var(--text)}.receivables-due-date-field input[type=date]{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);border-radius:10px;padding:0 10px;font-family:inherit;font-size:.95rem}.credit-application-preview.credit-limit-exceeded{background:linear-gradient(#fff5f5,#ffeaea);border-color:#e8a09e}.credit-limit-warning{color:var(--danger);margin:0 0 6px;font-weight:700}.credit-limit-info{color:#21443a;font-variant-numeric:tabular-nums;margin:4px 0 0}.text-danger{color:var(--danger);font-weight:700}.text-success-muted{color:var(--success)}.receivables-list li.receivable-item-overdue{border-left:3px solid var(--danger);background:linear-gradient(#fff8f8,#fff3f3)}.debt-customer-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:4px;display:flex}.debt-customer-badges{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.overdue-badge{min-height:26px;color:var(--danger);white-space:nowrap;background:#fde8e8;border:1px solid #d9817f;border-radius:999px;align-items:center;padding:2px 10px;font-size:.8rem;font-weight:700;display:inline-flex}.due-date-badge{white-space:nowrap;border-radius:999px;align-items:center;min-height:24px;padding:2px 9px;font-size:.78rem;font-weight:700;display:inline-flex}.due-date-badge.due-date-overdue{color:var(--danger);background:#fde8e8;border:1px solid #d9817f}.due-date-badge.due-date-soon{color:#7a4511;background:#fff3e0;border:1px solid #c2842a}.due-date-badge.due-date-ok{color:var(--primary);background:#edf6f5;border:1px solid #a8c4be}.credit-limit-meta{font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:14px;margin:2px 0 4px;font-size:.88rem;display:flex}.credit-limit-label{color:var(--text-muted);font-weight:600}.credit-limit-remaining{font-weight:700}.credit-limit-edit-row{align-items:center;gap:8px;margin:4px 0;display:flex}.credit-limit-edit-row input{border:1px solid var(--border);font-variant-numeric:tabular-nums;border-radius:10px;flex:120px;min-width:0;max-width:180px;min-height:38px;padding:0 10px}.btn-save-limit{background:var(--primary);min-height:38px;color:var(--primary-ink);cursor:pointer;border:none;border-radius:10px;padding:0 14px;font-weight:700}.btn-save-limit:hover{background:var(--primary-hover)}.btn-cancel-limit{border:1px solid var(--border);background:var(--surface);min-height:38px;color:var(--text-muted);cursor:pointer;border-radius:10px;padding:0 12px;font-weight:600}.btn-cancel-limit:hover{filter:brightness(.98)}.btn-set-limit{border:1px dashed var(--border-strong);width:fit-content;min-height:32px;color:var(--text-muted);cursor:pointer;background:0 0;border-radius:8px;margin:2px 0 4px;padding:0 12px;font-size:.82rem;font-weight:600}.btn-set-limit:hover{filter:brightness(.98)}.debt-history-due{align-items:center;display:flex}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.summary-grid article{border:1px solid var(--border);box-shadow:var(--shadow-soft);background:linear-gradient(#fff,#f4f8f7);border-radius:14px;padding:14px}.summary-grid h3{color:var(--text-muted);margin:0;font-size:1rem}.summary-grid p{margin:6px 0 0;font-size:1.35rem;font-weight:800}.panel-heading-row{justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px;display:flex}.report-filter-row{gap:6px;display:grid}.report-filter-row label{color:var(--text-muted);font-size:.9rem;font-weight:700}.report-highlights{gap:10px;display:grid}.roi-card{border:1px solid var(--border);box-shadow:var(--shadow-soft);background:linear-gradient(160deg,#f9fcfb 0%,#eaf3f1 100%);border-radius:16px;gap:16px;padding:20px;display:grid}.roi-header-row{gap:8px;display:grid}.roi-card h3{margin:0;font-size:1.2rem}.roi-refresh-btn{background:var(--primary);min-height:44px;color:var(--primary-ink);cursor:pointer;white-space:nowrap;border:none;border-radius:12px;flex-shrink:0;width:100%;padding:10px 16px;font-size:.92rem;font-weight:700}.roi-refresh-btn:hover:not(:disabled){filter:brightness(.95)}.roi-refresh-btn:disabled{opacity:.55;cursor:not-allowed}.roi-loading-hint{text-align:center;padding:8px 0}.roi-data-row{grid-template-columns:1fr;align-items:start;gap:16px;display:grid}@media (width>=681px){.roi-data-row{grid-template-columns:1fr 1fr}}.roi-inventory-badge{background:linear-gradient(135deg,#f0fdf9,#ccfbf1);border:1.5px solid #0d9488;border-radius:14px;flex-direction:column;gap:4px;min-width:0;padding:16px 18px;display:flex}.roi-inventory-label{letter-spacing:.04em;text-transform:uppercase;color:#0f766e;font-size:.82rem;font-weight:700}.roi-inventory-value{color:#065f46;font-variant-numeric:tabular-nums;word-break:break-all;font-size:1.65rem;font-weight:900;line-height:1.2}.roi-inventory-sub{color:#1e7a6e;margin-top:2px;font-size:.8rem}.roi-inventory-warning{color:#92400e;background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;margin-top:4px;padding:4px 8px;font-size:.82rem}.roi-input-grid{gap:8px;display:grid}.roi-input-grid label{color:var(--text-muted);font-weight:700}.roi-input-grid input{border:1.5px solid var(--border-strong);font-variant-numeric:tabular-nums;box-sizing:border-box;border-radius:12px;width:100%;min-height:48px;padding:0 14px;font-size:1.05rem}.roi-period-tabs{grid-template-columns:1fr;gap:8px;display:grid}.roi-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.roi-metrics-grid article p{word-break:break-word;font-size:1.2rem}.roi-metrics-grid article.roi-receivables-article{border:1px solid #f5a5a5;border-left:4px solid var(--danger);background:linear-gradient(#fff5f5,#fde8e8);border-radius:14px;grid-column:1/-1}.metric-positive{color:#1e6a44}.metric-negative{color:var(--danger)}.metric-muted{color:var(--text-muted);font-size:.9rem;font-weight:500}.roi-empty-state{text-align:center;color:var(--text-muted);background:#f7fcfb;border:1px dashed #a7c4be;border-radius:12px;padding:20px}.roi-insight-card{background:#f0f9f7;border:1px solid #b4d4cc;border-radius:12px;gap:8px;padding:14px 16px;display:grid}.roi-insight-card h4{color:#1f5d50;margin:0;font-size:.95rem;font-weight:700}.roi-insight-card p{color:#2c4d48;margin:0;font-size:.875rem;line-height:1.6}.roi-margin-note{color:#3d6b65;border-top:1px solid #c8e6e2;margin-top:0;padding-top:8px;font-size:.78rem;line-height:1.6}.report-summary-grid{grid-template-columns:1fr}.report-summary-grid article{border-left:4px solid #0f766e}.report-summary-grid article:nth-child(2){border-left-color:#138076}.report-summary-grid article:nth-child(3){border-left-color:#357d63}.report-summary-grid article:nth-child(4){border-left-color:#9a6330}.top-products-card{border:1px solid var(--border);box-shadow:var(--shadow-soft);background:linear-gradient(#f8fbfa,#eff5f4);border-radius:16px;padding:16px}.top-products-card h3{margin:0 0 10px}.top-products-card ol{gap:8px;margin:0;padding:0;list-style:none;display:grid}.top-products-card li{border:1px solid var(--border);background:#fff;border-radius:12px;justify-content:space-between;gap:10px;padding:11px;display:flex}.top-products-card strong{color:#0b5a54}.report-card{border:1px solid var(--border);box-shadow:var(--shadow-soft);background:linear-gradient(#f8fbfa,#eff5f4);border-radius:16px;gap:14px;padding:18px;display:grid}.report-card-header{gap:2px;display:grid}.report-card-header h3{margin:0;font-size:1.05rem}.velocity-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.velocity-item{border:1px solid var(--border);background:#fff;border-radius:12px;gap:6px;padding:12px 14px;display:grid}.velocity-item.velocity-urgent{background:#fff5f5;border-color:#fca5a5}.velocity-item.velocity-warning{background:#fffdf0;border-color:#fcd34d}.velocity-item.velocity-ok{background:#f6fcfb;border-color:#a7c4be}.velocity-name{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.velocity-badge{border-radius:20px;padding:2px 8px;font-size:.75rem;font-weight:700}.velocity-badge.out{color:#991b1b;background:#fee2e2}.velocity-badge.urgent{color:#92400e;background:#fef3c7}.velocity-badge.warning{color:#854d0e;background:#fef9c3}.velocity-stats{color:var(--text-muted);flex-wrap:wrap;gap:16px;font-size:.88rem;display:flex}.velocity-stats strong{color:var(--text)}.heatmap-list{gap:7px;margin:0;padding:0;list-style:none;display:grid}.heatmap-row{grid-template-columns:36px 1fr 90px 60px;align-items:center;gap:10px;font-size:.9rem;display:grid}.heatmap-day{color:var(--text-muted);font-weight:700}.heatmap-bar-track{background:#e8f0ee;border-radius:6px;height:18px;overflow:hidden}.heatmap-bar{background:linear-gradient(90deg,#0d9488,#14b8a6);border-radius:6px;min-width:2px;height:100%;transition:width .4s}.heatmap-value{text-align:right;font-variant-numeric:tabular-nums;color:#0f766e;font-weight:700}.heatmap-count{color:var(--text-muted);text-align:right;font-size:.78rem}.spike-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.spike-item{background:linear-gradient(135deg,#fffbeb,#fef3c7);border:1px solid #fcd34d;border-radius:12px;gap:6px;padding:12px 14px;display:grid}.spike-name{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.spike-ratio-badge{color:#fff;background:#d97706;border-radius:20px;padding:3px 10px;font-size:.78rem;font-weight:800}.spike-stats{color:#78350f;flex-wrap:wrap;gap:16px;font-size:.88rem;display:flex}.spike-stats strong{color:#92400e}.error{border-left:4px solid var(--danger);color:#7f2429;white-space:pre-wrap;word-break:break-word;background:#fff3f3;border-radius:8px;margin:8px 0;padding:10px 12px;font-weight:700}.success{border-left:4px solid var(--success);color:#245a3d;background:#eff9f1;border-radius:8px;margin:8px 0;padding:10px 12px;font-weight:700}.global-error{margin-top:10px}.toast-viewport{left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:60;pointer-events:none;width:min(420px,100% - 24px);position:fixed;transform:translate(-50%)}.toast-stack{gap:var(--space-2);display:grid}.toast{pointer-events:auto;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface);color:var(--text);box-shadow:var(--shadow-panel);grid-template-columns:auto minmax(0,1fr) auto;font-weight:600;animation:.2s toast-in;display:grid}.toast-icon{border-radius:var(--radius-pill);width:24px;height:24px;color:var(--primary-ink);background:var(--text-muted);justify-content:center;align-items:center;font-size:.9rem;font-weight:800;display:inline-flex}.toast-message{word-break:break-word;min-width:0}.toast-close{color:var(--text-muted);padding:0 var(--space-1);border-radius:var(--radius-sm);background:0 0;border:none;font-size:1.4rem;line-height:1}.toast-success{border-left:4px solid var(--success)}.toast-success .toast-icon{background:var(--success)}.toast-error{border-left:4px solid var(--danger)}.toast-error .toast-icon{background:var(--danger)}.toast-info{border-left:4px solid var(--accent)}.toast-info .toast-icon{background:var(--accent)}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (width>=721px){.toast-viewport{bottom:24px;left:auto;right:24px;transform:none}}.auth-panel{max-width:460px;margin:clamp(24px,8vh,64px) auto}.auth-mode-toggle{background:var(--surface-soft);border:1px solid var(--border);border-radius:14px;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:4px;padding:4px;display:grid}.auth-mode-toggle .tab-btn{text-align:center;min-height:42px;color:var(--text-muted);box-shadow:none;background:0 0;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;padding:6px 10px;font-size:.88rem;font-weight:600;line-height:1.2;transition:color .15s,background .15s,box-shadow .15s;display:flex}.auth-mode-toggle .tab-btn:hover:not(.active){color:var(--text);background:#084f4a0f}.auth-mode-toggle .tab-btn.active{background:var(--primary);border-color:var(--primary);color:var(--primary-ink);font-weight:700;box-shadow:0 2px 8px #084f4a40}.auth-form{gap:8px;display:grid}.auth-form label{color:var(--text-muted);font-weight:700}.password-field{align-items:center;display:flex;position:relative}.password-field input{padding-right:72px}.password-field input::-ms-reveal{display:none}.password-field input::-ms-clear{display:none}.auth-form .password-field .password-toggle{width:44px;height:44px;min-height:unset;border-radius:var(--radius-sm);color:var(--text-muted);background:0 0;border:none;justify-content:center;align-items:center;padding:0;font-size:1.2rem;line-height:1;display:inline-flex;position:absolute;top:50%;right:6px;transform:translateY(-50%)}.auth-form .password-field .password-toggle:hover:not(:disabled){color:var(--accent);background:var(--accent-soft)}.auth-form .password-field .password-toggle:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.auth-form input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--surface-accent) inset;-webkit-text-fill-color:var(--text);transition:background-color 5000s ease-in-out}.auth-form input:-webkit-autofill:hover{-webkit-box-shadow:0 0 0 1000px var(--surface-accent) inset;-webkit-text-fill-color:var(--text);transition:background-color 5000s ease-in-out}.auth-form input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px var(--surface-accent) inset;-webkit-text-fill-color:var(--text);transition:background-color 5000s ease-in-out}.caps-lock-warning{font-size:var(--font-sm);color:var(--warning);align-items:center;gap:6px;margin-top:-4px;font-weight:600;display:flex}.auth-field-hint{color:var(--text-muted);margin:-2px 0 0;font-size:.83rem;line-height:1.4}.auth-help-text{text-align:center;margin-top:10px}.auth-spinner{vertical-align:middle;border:2px solid #fff6;border-top-color:#fff;border-radius:50%;width:16px;height:16px;margin-right:8px;animation:.65s linear infinite auth-spin;display:inline-block}@keyframes auth-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.auth-spinner{opacity:.6;animation:none}.tab-badge{animation:none}button.qs-card,button.qs-card:hover,.qs-chevron,button.qs-card:hover .qs-chevron{transition:none;transform:none}}.users-toolbar{align-items:center;gap:10px;display:flex}.users-toolbar h3{margin:0}.users-filters{border:1px solid var(--border);background:var(--surface-soft);border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;margin-bottom:12px;padding:12px;display:flex}.users-filters input[type=text]{border:1px solid var(--border-strong);background:var(--surface);min-width:0;min-height:44px;color:var(--text);font:inherit;border-radius:10px;flex:140px;padding:0 12px}.users-filters select{border:1px solid var(--border-strong);background:var(--surface);min-width:0;min-height:44px;color:var(--text);font:inherit;border-radius:10px;flex:0 auto;padding:0 12px}.users-filter-btn{min-height:44px;font:inherit;cursor:pointer;white-space:nowrap;border:1px solid var(--border-strong);background:var(--surface);color:var(--text-muted);border-radius:10px;flex-shrink:0;padding:0 14px;font-size:.88rem;font-weight:700;transition:background .15s,color .15s,border-color .15s}.users-filter-btn:hover:not(:disabled){background:var(--surface-soft);color:var(--text)}.users-filter-btn:disabled{opacity:.6;cursor:not-allowed}.users-locked-btn.active{color:#7a4511;background:#fef3e8;border-color:#d4924a}.filter-toggle{align-items:center;gap:8px;font-weight:700;display:inline-flex}.users-list li{flex-wrap:wrap;align-items:flex-start;gap:6px 12px;display:flex}.user-card-info{flex:auto;align-items:center;gap:8px;min-width:0;display:flex}.user-card-name{color:var(--text);white-space:nowrap;font-size:1rem;font-weight:700}.user-card-role{color:var(--text-muted);white-space:nowrap;font-size:.88rem;font-weight:600}.user-card-badges{flex-wrap:wrap;flex:100%;order:3;align-items:center;gap:6px;min-width:0;display:flex}.user-card-action{flex-shrink:0;order:4;width:100%;margin-top:2px;margin-left:0}.users-list{margin-bottom:4px}.users-pagination{justify-content:space-between;align-items:center;gap:8px;margin-top:10px;margin-bottom:4px;display:flex}.users-section-divider{background:var(--border);border:none;height:1px;margin:20px 0}.users-section-title{margin:0 0 6px}.users-pagination span{color:var(--text-muted);font-weight:700}.status-badge{border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;min-height:28px;padding:4px 10px;font-size:.8rem;font-weight:700;display:inline-flex}.status-active{color:#246d46;background:#e9f6ee;border-color:#90c9a5}.status-disabled{color:#922e35;background:#feeeee;border-color:#df9ea2}.status-locked{color:#89531f;background:#fff7ec;border-color:#e3be96}.status-warning{color:#7f5b1f;background:#fff9ea;border-color:#e2ca97}.status-neutral{color:#415755;background:#eef2f2;border-color:#c8d3d1}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.topbar-error{border-radius:8px;padding:4px 8px;font-size:.82rem}@media (width>=721px){.app-shell{padding:16px}.topbar{grid-template-columns:unset;border-radius:20px;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px;display:flex}.brand-header{justify-content:flex-start;align-items:center;width:auto}.brand-mark{border-radius:0;width:72px;height:72px}.topbar h1{font-size:clamp(1.45rem,2.3vw,2rem)}.header-subtitle{font-size:.98rem}.sync-state{flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;width:min(560px,100%);margin-top:0}.sync-actions{grid-template-columns:unset;justify-content:flex-end;width:100%;display:flex}.sync-meta{grid-template-columns:unset;flex-wrap:wrap;justify-content:flex-end;width:100%;display:flex}.sync-btn{min-height:48px;font-size:inherit;padding:10px 16px}.sync-pill{min-height:38px;font-size:inherit;white-space:normal;text-overflow:unset;padding:6px 12px;overflow:visible}.session-pill{max-width:none}.user-pill{justify-content:flex-start;min-width:0}.subtle-btn{min-height:48px;font-size:inherit;border-radius:12px;padding:10px 16px}.workspace-layout{gap:12px;margin-top:14px}.panel{border-radius:20px;padding:20px}.panel h2{font-size:1.6rem}.hint{font-size:inherit;margin-bottom:14px}.grid-buttons{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.big-btn{min-height:138px;padding:14px}.checkout-card{margin-top:14px;padding:14px}.checkout-list li{gap:8px}.panel-heading-row{gap:12px}.report-highlights{gap:14px}.roi-header-row{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.roi-refresh-btn{width:auto;min-height:40px;font-size:inherit;padding:8px 16px}.roi-period-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.roi-metrics-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.roi-receivables-article{grid-column:auto}.report-filter-row select{min-height:unset}.tab-row{z-index:auto;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:unset;grid-auto-columns:unset;box-shadow:none;-webkit-overflow-scrolling:unset;scroll-snap-type:none;background:0 0;border-top:none;gap:8px;padding:0;position:static;bottom:auto;left:auto;right:auto;overflow-x:visible}.tab-btn{min-height:54px;font-size:inherit;text-align:left;-webkit-scroll-snap-align:unset;scroll-snap-align:unset;border-radius:12px;flex-shrink:1;padding:10px 12px}.workflow-card{display:flex}.scan-row,.checkout-row,.debt-collection-row{grid-template-columns:minmax(0,1fr) auto}.users-pagination{justify-content:flex-end}.users-list li{align-items:center;gap:8px 12px}.user-card-info{flex:none}.user-card-action{order:0;width:auto;margin-top:0;margin-left:auto}.user-card-badges{flex:auto;order:0}.users-list li .status-badge{min-height:28px;padding:4px 10px;font-size:.8rem}.receivables-form{grid-template-columns:minmax(180px,1fr) minmax(260px,1.2fr) auto;gap:10px}.receivables-form-row{grid-template-columns:1fr 1fr;gap:10px}.summary-grid,.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.checkout-list li{grid-template-columns:1fr auto auto auto auto}.list li{grid-template-columns:1.2fr .8fr .9fr 1fr auto}.receivables-amount-input,.receivable-payment-input{width:auto}.receivables-list li{gap:6px}.receivable-outstanding{white-space:nowrap}.receivables-balance-meta{gap:8px}.receivables-list .debt-collection-row{grid-template-columns:minmax(0,1fr) auto}.credit-limit-edit-row{flex-wrap:nowrap}.credit-limit-edit-row input{flex:120px;max-width:180px}}@media (width>=960px){.workspace-layout{grid-template-columns:240px minmax(0,1fr);align-items:start}.sidebar-shell{position:sticky;top:16px}.workflow-card{display:grid}.topbar,.sync-state{align-items:center}.sync-actions,.sync-meta{justify-content:flex-end}.tab-row{grid-template-columns:1fr;grid-auto-flow:unset;grid-auto-columns:unset;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-soft);scroll-snap-type:none;border-radius:16px;padding:8px;overflow-x:visible}.tab-btn{min-height:54px;font-size:inherit;text-align:left;-webkit-scroll-snap-align:unset;scroll-snap-align:unset;border-radius:12px;padding:10px 12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}@media (forced-colors:active){*{-ms-high-contrast-adjust:auto;forced-color-adjust:auto}.panel,.topbar,.tab-btn,.sync-btn,.qs-card,.list li,.summary-grid article{border:1px solid canvastext}}.report-heading-actions{align-items:flex-end;gap:10px;display:flex}.print-report-btn{border:1px solid var(--border-strong);color:var(--text);cursor:pointer;white-space:nowrap;background:#fff;border-radius:10px;flex-shrink:0;padding:8px 16px;font-size:.9rem;font-weight:600}.print-report-btn:hover{border-color:var(--primary);color:var(--primary);background:#e8f5f2}.print-only{display:none}.agr-overlay{z-index:10000;background:#000000b8;justify-content:center;align-items:center;padding:12px;display:flex;position:fixed;inset:0}.agr-modal{background:var(--surface);border-radius:18px;flex-direction:column;width:100%;max-width:720px;max-height:calc(100dvh - 24px);display:flex;overflow:hidden;box-shadow:0 24px 64px #00000059}.agr-header{border-bottom:1px solid var(--border);flex-shrink:0;padding:18px 20px 14px}.agr-title{color:var(--text);margin:0;font-size:1.05rem;font-weight:800}.agr-subtitle{color:var(--text-muted);margin:4px 0 0;font-size:.78rem}.agr-body{-webkit-overflow-scrolling:touch;border-bottom:1px solid var(--border);background:#f9fafb;outline:none;flex:1;padding:16px 20px;overflow-y:auto}.agr-body:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.agr-doc-heading{text-align:center;border-bottom:1px solid #d1d5db;margin-bottom:1.1rem;padding:.5rem 0 1.25rem}.agr-doc-country{letter-spacing:.06em;text-transform:uppercase;color:#4b5563;margin:0 0 .25rem;font-family:Georgia,Times New Roman,serif;font-size:.78rem;font-weight:400}.agr-doc-title{color:#111827;text-transform:uppercase;letter-spacing:.02em;margin:0 0 .3rem;font-family:Georgia,Times New Roman,serif;font-size:1rem;font-weight:700;line-height:1.35}.agr-doc-subtitle{color:#374151;margin:0;font-family:Georgia,Times New Roman,serif;font-size:.82rem;font-style:italic;font-weight:400}.agr-text{color:#1a1a1a;white-space:pre-wrap;word-break:break-word;margin:0;font-family:Georgia,Times New Roman,serif;font-size:.82rem;line-height:1.8}.agr-footer{background:var(--surface);flex-direction:column;flex-shrink:0;gap:12px;padding:16px 20px 20px;display:flex}.agr-name-row{flex-direction:column;gap:4px;display:flex}.agr-name-label{color:var(--text);font-size:.85rem;font-weight:700}.agr-name-input{border:1.5px solid var(--border-strong);background:var(--surface);width:100%;min-height:48px;color:var(--text);box-sizing:border-box;border-radius:12px;padding:0 14px;font-size:.95rem;transition:border-color .15s,box-shadow .15s}.agr-name-input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #084f4a26}.agr-name-hint{color:var(--text-muted);font-size:.73rem;line-height:1.4}.agr-checkbox-row{cursor:pointer;border:1.5px solid var(--border);background:#f0fdf4;border-radius:10px;align-items:flex-start;gap:10px;padding:10px 12px;transition:border-color .15s;display:flex}.agr-checkbox-row:has(.agr-checkbox:checked){border-color:var(--primary);background:#ecf7f5}.agr-checkbox{width:20px;height:20px;accent-color:var(--primary);cursor:pointer;flex-shrink:0;margin-top:1px}.agr-checkbox-label{color:var(--text);font-size:.83rem;line-height:1.5}.agr-error{color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin:0;padding:8px 12px;font-size:.82rem}.agr-actions{justify-content:flex-end;gap:10px;display:flex}.agr-btn-cancel{border:1.5px solid var(--border-strong);background:var(--surface);min-height:46px;color:var(--text-muted);cursor:pointer;border-radius:12px;padding:10px 20px;font-size:.9rem;font-weight:700;transition:border-color .12s}.agr-btn-cancel:hover:not(:disabled){border-color:var(--text-muted)}.agr-btn-accept{background:var(--primary);min-height:46px;color:var(--primary-ink);cursor:pointer;border:none;border-radius:12px;padding:10px 24px;font-size:.9rem;font-weight:800;transition:opacity .12s,transform .12s}.agr-btn-accept:disabled{opacity:.45;cursor:not-allowed}.agr-btn-accept:not(:disabled):hover{opacity:.9;transform:translateY(-1px)}.agr-btn-accept:not(:disabled):focus-visible,.agr-btn-cancel:not(:disabled):focus-visible{outline:3px solid var(--focus);outline-offset:2px}@media (width<=480px){.agr-overlay{align-items:flex-end;padding:0}.agr-modal{border-radius:18px 18px 0 0;max-height:96dvh}.agr-actions{flex-direction:column-reverse}.agr-btn-accept,.agr-btn-cancel{text-align:center;width:100%}}@media print{body>*,.app-shell>*,.topbar,.quick-status,.sidebar-shell,.workspace-layout>.sidebar-shell{display:none!important}.app-shell,.workspace-layout,.workspace-main,#reports-panel{width:100%!important;max-width:100%!important;box-shadow:none!important;background:#fff!important;border:none!important;margin:0!important;padding:0!important;display:block!important}.print-only{display:block!important}.print-header{margin-bottom:16px;padding-bottom:10px}.print-header h1{margin:0 0 4px;font-size:16pt;font-weight:800}.print-header p{color:#444;margin:0 0 8px;font-size:9pt}.print-header hr{border:none;border-top:1.5px solid #000;margin:6px 0 0}.print-report-btn,.roi-refresh-btn,.roi-period-tabs,.roi-input-grid,.panel-heading-row .report-heading-actions,.report-filter-row,button,input,select{display:none!important}.report-highlights{gap:0!important;display:block!important}#reports-panel h2{border-bottom:1px solid #ccc;margin:0 0 10px;padding-bottom:4px;font-size:14pt}.summary-grid,.report-summary-grid{grid-template-columns:repeat(4,1fr)!important;gap:6px!important;margin-bottom:14px!important;display:grid!important}.summary-grid article,.report-summary-grid article{page-break-inside:avoid;box-shadow:none!important;background:#fff!important;border:1px solid #999!important;border-radius:4px!important;padding:8px 10px!important}.summary-grid h3,.report-summary-grid h3{text-transform:uppercase;letter-spacing:.03em;color:#555!important;margin:0 0 2px!important;font-size:7.5pt!important}.summary-grid p,.report-summary-grid p{color:#000!important;margin:0!important;font-size:13pt!important;font-weight:800!important}.roi-card{page-break-inside:avoid;box-shadow:none!important;background:#fff!important;border:1px solid #999!important;border-radius:4px!important;margin-bottom:14px!important;padding:10px 12px!important}.roi-card h3{border-bottom:1px solid #ddd;padding-bottom:4px;margin:0 0 6px!important;font-size:11pt!important}.roi-inventory-badge{background:#fff!important;border:1px solid #999!important;border-radius:4px!important;margin-bottom:8px!important;padding:8px 10px!important}.roi-inventory-label{text-transform:uppercase;color:#555!important;font-size:7.5pt!important}.roi-inventory-value{color:#000!important;font-size:16pt!important}.roi-inventory-sub{color:#555!important;font-size:8pt!important}.roi-metrics-grid{grid-template-columns:repeat(3,1fr)!important;gap:6px!important;margin-bottom:8px!important;display:grid!important}.roi-metrics-grid article{box-shadow:none!important;background:#fff!important;border:1px solid #999!important;border-radius:4px!important;padding:8px!important}.roi-metrics-grid h3{text-transform:uppercase;color:#555!important;margin:0 0 2px!important;font-size:7.5pt!important}.roi-metrics-grid p{color:#000!important;margin:0!important;font-size:12pt!important;font-weight:800!important}.metric-positive,.metric-negative,.metric-muted{color:#000!important}.roi-insight-card{background:#fff!important;border:1px solid #999!important;border-radius:4px!important;padding:8px 10px!important}.roi-insight-card h4{color:#000!important;margin:0 0 4px!important;font-size:9pt!important}.roi-insight-card p,.roi-margin-note{color:#444!important;margin:0!important;font-size:8.5pt!important}.top-products-card{page-break-inside:avoid;box-shadow:none!important;background:#fff!important;border:1px solid #999!important;border-radius:4px!important;margin-bottom:14px!important;padding:10px 12px!important}.top-products-card h3{border-bottom:1px solid #ddd;padding-bottom:4px;margin:0 0 6px!important;font-size:11pt!important}.top-products-card ol{gap:4px!important;display:grid!important}.top-products-card li{background:#fff!important;border:1px solid #ddd!important;border-radius:3px!important;justify-content:space-between!important;padding:6px 8px!important;font-size:9pt!important;display:flex!important}.top-products-card strong{color:#000!important}.report-card{page-break-inside:avoid;box-shadow:none!important;background:#fff!important;border:1px solid #999!important;border-radius:4px!important;margin-bottom:14px!important;padding:10px 12px!important}.report-card-header h3{border-bottom:1px solid #ddd;padding-bottom:4px;margin:0 0 4px!important;font-size:11pt!important}.report-card-header .hint{color:#666!important;margin:0 0 8px!important;font-size:8pt!important}.velocity-list{gap:4px!important}.velocity-item{page-break-inside:avoid;background:#fff!important;border:1px solid #ccc!important;border-radius:3px!important;padding:6px 8px!important}.velocity-item.velocity-urgent{background:#fff!important;border-left:3px solid #991b1b!important}.velocity-item.velocity-warning{background:#fff!important;border-left:3px solid #92400e!important}.velocity-name{font-size:9.5pt!important}.velocity-stats{color:#444!important;font-size:8.5pt!important}.velocity-stats strong{color:#000!important}.velocity-badge{color:#000!important;background:#eee!important;border:1px solid #999!important;padding:1px 5px!important;font-size:7pt!important}.heatmap-list{gap:4px!important}.heatmap-row{grid-template-columns:36px 1fr 80px 56px!important;gap:8px!important;font-size:9pt!important}.heatmap-bar-track{background:#eee!important}.heatmap-bar{background:#555!important}.heatmap-value{color:#000!important;font-size:9pt!important}.heatmap-count{color:#555!important;font-size:8pt!important}.spike-list{gap:4px!important}.spike-item{page-break-inside:avoid;background:#fff!important;border:1px solid #ccc!important;border-left:3px solid #92400e!important;border-radius:3px!important;padding:6px 8px!important}.spike-name{font-size:9.5pt!important}.spike-stats{color:#444!important;font-size:8.5pt!important}.spike-stats strong{color:#000!important}.spike-ratio-badge{color:#fff!important;background:#333!important;padding:1px 6px!important;font-size:7pt!important}.roi-receivables-article{background:#fff!important;border:1px solid #999!important;border-left:3px solid #991b1b!important;border-radius:4px!important}@page{size:A4 portrait;margin:15mm 12mm}.roi-card,.top-products-card,.report-card{-moz-column-break-inside:avoid;break-inside:avoid}}.checkout-mode-btn.active.gcash{color:#fff;background:linear-gradient(135deg,#0061a0,#007cc7);border-color:#0061a0}.checkout-row button.btn-gcash{color:#fff;background:linear-gradient(135deg,#0061a0,#006bad);border:none}.checkout-row button.btn-gcash:hover:not(:disabled){filter:brightness(1.08)}.checkout-gcash-note{color:#0061a0;font-size:.9rem;font-weight:600}.checkout-discount-row{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:8px;display:flex}.checkout-discount-row label{color:var(--text-muted);white-space:nowrap;font-size:.88rem;font-weight:600}.checkout-discount-row input{border:1px solid var(--border-strong);background:var(--surface);width:90px;min-height:40px;color:var(--text);font-variant-numeric:tabular-nums;border-radius:10px;padding:0 10px}.discount-tag{color:var(--success);margin-left:6px;font-size:.85rem;font-weight:700;display:inline-block}.receipt-card{border:1px solid var(--border);box-shadow:var(--shadow-soft);background:linear-gradient(#fff,#f8fdfb);border-radius:14px;margin-top:16px;padding:14px 16px}.receipt-header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.receipt-header h3{margin:0;font-size:1.05rem}.receipt-actions{gap:8px;display:flex}.receipt-print-btn{background:var(--primary);min-height:36px;color:var(--primary-ink);cursor:pointer;border:none;border-radius:10px;padding:0 12px;font-size:.85rem;font-weight:700}.receipt-print-btn:hover:not(:disabled){filter:brightness(.95)}.receipt-close-btn{border:1px solid var(--border);width:36px;min-height:36px;color:var(--text-muted);cursor:pointer;background:0 0;border-radius:10px;justify-content:center;align-items:center;font-size:1rem;display:flex}.receipt-close-btn:hover:not(:disabled){background:var(--surface-warning);border-color:var(--danger);color:var(--danger)}.receipt-date{color:var(--text-muted);margin-bottom:10px;font-size:.82rem}.receipt-items{gap:4px;margin:0 0 8px;padding:0;list-style:none;display:grid}.receipt-items li{border-bottom:1px dashed var(--border);justify-content:space-between;padding:2px 0;font-size:.9rem;display:flex}.receipt-totals{font-variant-numeric:tabular-nums;word-break:break-word;grid-template-columns:1fr auto;gap:3px 10px;min-width:0;margin-top:6px;font-size:.9rem;display:grid}.receipt-totals>span{min-width:0}.receipt-discount{color:var(--success);font-weight:600}.receipt-total-label{border-top:1px solid var(--border);padding-top:4px;font-size:1rem;font-weight:900}.receipt-total-value{border-top:1px solid var(--border);text-align:right;padding-top:4px;font-size:1rem;font-weight:900}.txn-history-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-soft);border-radius:14px;margin-top:16px;padding:14px 16px}.txn-void-alert{color:#78350f;background:linear-gradient(135deg,#fffdf5,#fef9e7);border:1.5px solid #f5d78a;border-radius:10px;align-items:flex-start;gap:10px;margin-bottom:14px;padding:12px 14px;display:flex}.txn-void-alert-icon{flex-shrink:0;margin-top:1px;font-size:1.1rem}.txn-void-alert-text{font-size:.875rem;line-height:1.5}.txn-void-alert-text strong{margin-bottom:1px;font-size:.9rem;display:block}.txn-history-card h3{margin:0;font-size:1rem}.txn-history-header{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;margin-bottom:10px;display:flex}.txn-history-summary{align-items:baseline;gap:10px;margin:0;font-size:.85rem;display:inline-flex}.txn-history-count{color:var(--text-muted);font-weight:600}.txn-history-total{font-variant-numeric:tabular-nums;color:var(--text);font-weight:800}.txn-filter-bar{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;display:flex}.txn-search-input{border:1px solid var(--border-strong,var(--border));background:var(--surface);min-width:0;min-height:44px;color:var(--text);font:inherit;border-radius:10px;flex:100%;padding:0 12px;font-size:16px}.txn-filter-chips{flex-wrap:wrap;gap:6px;width:100%;display:flex}.txn-filter-chip{border:1px solid var(--border-strong,var(--border));background:var(--surface);min-height:44px;color:var(--text-muted);font:inherit;cursor:pointer;border-radius:999px;flex:auto;padding:0 14px;font-size:.85rem;font-weight:700}.txn-filter-chip:hover:not(.active){background:var(--surface-soft)}.txn-filter-chip.active{background:var(--primary);color:var(--primary-ink);border-color:var(--primary)}.txn-filter-chip:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.txn-empty{flex-direction:column;align-items:stretch;gap:8px;display:flex}.txn-reset-btn{border:1px solid var(--border-strong,var(--border));background:var(--surface);min-height:44px;color:var(--text);font:inherit;cursor:pointer;border-radius:8px;padding:0 14px;font-weight:700}.txn-pagination{margin-top:12px}.txn-pagination button{min-height:44px}@media (width>=541px){.txn-search-input{flex:220px}.txn-filter-chips{width:auto}.txn-filter-chip{flex:none;min-height:40px}.txn-empty{align-items:flex-start}.txn-reset-btn{width:auto;min-height:40px}.txn-pagination button{min-height:40px}}.txn-list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.txn-item{background:var(--surface-soft);border-radius:8px;grid-template-columns:max-content 1fr auto auto;align-items:center;gap:10px;padding:6px 10px;font-size:.88rem;display:grid}.txn-item--voided{opacity:.7;background:#8b1a1a0d}.txn-amount--voided{color:var(--text-muted);text-decoration:line-through}.txn-void-actions{white-space:nowrap;gap:6px;display:inline-flex}.txn-void-btn{cursor:pointer;white-space:nowrap;border:1px solid var(--border-strong);background:var(--surface);min-height:32px;color:var(--text);border-radius:8px;padding:4px 10px;font-size:.78rem;font-weight:700}.txn-void-btn:disabled{opacity:.55;cursor:not-allowed}.txn-void-btn--request:hover,.txn-void-btn--cancel:hover{background:#8b1a1a14}.txn-void-btn--confirm,.txn-void-btn--reject{background:var(--danger);border-color:var(--danger);color:#fff}.txn-void-btn--approve{background:var(--primary);border-color:var(--primary);color:var(--primary-ink)}.txn-void-badge{white-space:nowrap;border-radius:999px;padding:3px 9px;font-size:.73rem;font-weight:800}.txn-void-badge--voided{color:#8b1a1a;background:#fde8e8;border:1px solid #e8b4b4}.txn-void-badge--pending{color:#8a5a00;background:#fff3da;border:1px solid #e6c98a}.txn-badge{display:none}.txn-time{color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.txn-items{color:var(--text);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.txn-badge{white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:.73rem;font-weight:700}.txn-cash{color:#1a6040;background:#e4f4ed;border:1px solid #9fcab4}.txn-gcash{color:#004f8a;background:#def;border:1px solid #8ab8de}.txn-utang{color:#8b1a1a;background:#fde8e8;border:1px solid #e8b4b4}.txn-amount{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;text-overflow:ellipsis;min-width:0;font-weight:800;overflow:hidden}@media (width>=541px){.txn-item{grid-template-columns:max-content 1fr auto auto auto}.txn-badge{display:inline-block}}.debt-customer-name{font-size:1rem;font-weight:700}.debt-history-toggle{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:8px;width:fit-content;min-height:32px;margin-top:4px;padding:4px 10px;font-size:.82rem;font-weight:600;transition:background .15s,color .15s}.debt-history-toggle:hover:not(:disabled){filter:brightness(.98)}.debt-history-panel{background:var(--surface-soft);border:1px solid var(--border);border-radius:10px;grid-column:1/-1;margin-top:8px;padding:10px 12px}.debt-history-list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.debt-history-item{background:var(--surface);border:1px solid var(--border);border-radius:8px;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:6px 8px;font-size:.85rem;display:grid}.debt-history-date{color:var(--text-muted);white-space:nowrap;font-variant-numeric:tabular-nums;grid-column:1/-1;font-size:.8rem}.debt-history-amount{font-variant-numeric:tabular-nums;font-weight:700}.debt-history-remaining{font-variant-numeric:tabular-nums;color:var(--danger);text-align:right;white-space:nowrap;font-weight:600}.debt-history-remaining.paid-off{color:var(--success)}.debt-history-note{color:var(--text-muted);grid-column:1/-1;font-size:.8rem;font-style:italic}@media (width>=541px){.debt-history-item{grid-template-columns:auto 1fr auto}.debt-history-date{grid-column:auto}}.inv-form-cat-hint{border:1px solid var(--border);background:var(--surface-accent);border-radius:12px;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-bottom:8px;padding:10px 14px;font-size:.88rem;display:flex}.inv-cat-label{color:var(--primary);font-weight:700}.inv-cat-range{color:var(--text-muted);font-weight:600}.inv-cat-examples{color:var(--text-muted);font-size:.82rem;font-style:italic}.inv-cat-preview{border-radius:999px;padding:2px 10px;font-size:.83rem;font-weight:700}.preview-good{color:#1a6040;background:#d4f0e0;border:1px solid #9fcab4}.preview-fair{color:#7a4f00;background:#fef3cd;border:1px solid #e5c97a}.preview-low{color:#8b1a1a;background:#fde8e8;border:1px solid #e8b4b4}.inv-filter-bar{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.inv-search-input{border:1px solid var(--border-strong);background:var(--surface);min-width:0;min-height:44px;color:var(--text);font:inherit;border-radius:10px;flex:180px;padding:0 12px}.inv-filter-select{border:1px solid var(--border-strong);background:var(--surface);min-width:0;min-height:44px;color:var(--text);font:inherit;border-radius:10px;flex:0 auto;padding:0 12px}.inv-filter-btn{border:1px solid var(--border-strong);background:var(--surface);min-height:44px;color:var(--text-muted);font:inherit;cursor:pointer;white-space:nowrap;border-radius:10px;flex-shrink:0;padding:0 14px;font-size:.88rem;font-weight:700;transition:background .15s,color .15s,border-color .15s}.inv-filter-btn:hover:not(:disabled){background:var(--surface-soft);color:var(--text)}.inv-filter-btn.active{color:#7a4511;background:#fff3e0;border-color:#d4924a}.inv-filter-clear{border:1px solid var(--border);min-height:44px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border-radius:10px;flex-shrink:0;padding:0 12px;font-size:.85rem;font-weight:600;transition:background .15s,color .15s}.inv-filter-clear:hover{color:var(--danger);background:#fde8e8;border-color:#e8b4b4}.inv-result-count{color:var(--text-muted);margin:0 0 8px;font-size:.85rem}.inv-low-stock-badge{color:var(--danger);vertical-align:middle;background:#fde8e8;border:1px solid #e8b4b4;border-radius:999px;align-items:center;margin-left:6px;padding:1px 7px;font-size:.7rem;font-weight:700;display:inline-flex}.inv-stock-low{color:var(--danger);font-weight:700}.inv-row-low-stock{border-left:3px solid var(--danger)!important}.inv-pagination{flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px;display:flex}.inv-pagination>button{border:1px solid var(--border-strong);background:var(--surface);min-height:40px;color:var(--text);font:inherit;cursor:pointer;white-space:nowrap;border-radius:10px;flex-shrink:0;padding:0 14px;font-size:.88rem;font-weight:700;transition:background .15s}.inv-pagination>button:disabled{opacity:.4;cursor:not-allowed}.inv-pagination>button:hover:not(:disabled){background:var(--surface-soft)}.inv-page-numbers{flex-wrap:wrap;flex:1;justify-content:center;align-items:center;gap:4px;display:flex}.inv-page-btn{border:1px solid var(--border);background:var(--surface);min-width:40px;min-height:40px;color:var(--text-muted);font:inherit;cursor:pointer;border-radius:10px;padding:0 6px;font-size:.88rem;font-weight:600;transition:background .15s,color .15s}.inv-page-btn:hover{background:var(--surface-soft);color:var(--text)}.inv-page-btn.active{background:var(--primary);color:var(--primary-ink);border-color:var(--primary);font-weight:700}.inv-page-ellipsis{color:var(--text-muted);-webkit-user-select:none;user-select:none;padding:0 4px}.inventory-add-form{border:1px solid var(--border);background:var(--surface-soft);border-radius:14px;flex-direction:column;gap:8px;margin-bottom:16px;padding:14px;display:flex}.inventory-add-row{align-items:end;gap:8px;display:grid}.inventory-add-field{flex-direction:column;gap:4px;min-width:0;display:flex}.inventory-add-label{color:var(--text-muted);font-size:.78rem;font-weight:700;line-height:1}.inventory-add-row--top{grid-template-columns:1fr}.inventory-add-row--top .inventory-add-name,.inventory-add-row--top .inventory-add-category{min-width:0}.inventory-add-row--bottom{grid-template-columns:1fr}.inventory-add-form input,.inventory-add-form select{border:1px solid var(--border-strong);background:var(--surface);min-height:46px;color:var(--text);font:inherit;border-radius:10px;width:100%;padding:0 12px}.inventory-add-form button[type=submit]{background:var(--primary);min-height:46px;color:var(--primary-ink);font:inherit;white-space:nowrap;cursor:pointer;border:none;border-radius:10px;padding:0 18px;font-weight:700}.inventory-add-form button[type=submit]:hover:not(:disabled){background:var(--primary-hover)}@media (width>=481px){.inventory-add-row--bottom{grid-template-columns:1fr 1fr}.inventory-add-row--bottom button[type=submit]{grid-column:1/-1}}@media (width>=861px){.inventory-add-row--top{grid-template-columns:1fr auto}.inventory-add-row--top .inventory-add-category{min-width:160px}.inventory-add-row--bottom{grid-template-columns:repeat(4,minmax(0,1fr)) auto}.inventory-add-row--bottom button[type=submit]{grid-column:auto}}.inventory-list-header{text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);background:var(--surface-soft);border:1px solid var(--border);border-radius:10px;grid-template-columns:minmax(140px,2.5fr) minmax(70px,1fr) minmax(70px,1fr) minmax(70px,1fr) minmax(55px,1fr) minmax(80px,1fr) minmax(64px,auto);gap:8px;margin-bottom:6px;padding:6px 10px;font-size:.75rem;font-weight:700;display:grid}.inventory-list li{grid-template-columns:minmax(140px,2.5fr) minmax(70px,1fr) minmax(70px,1fr) minmax(70px,1fr) minmax(55px,1fr) minmax(80px,1fr) minmax(64px,auto);overflow:hidden}.inv-cat-badge{vertical-align:middle;border:1px solid #0000;border-radius:999px;align-items:center;margin-left:6px;padding:1px 7px;font-size:.7rem;font-weight:700;display:inline-flex}.inv-cat-fast{color:#0369a1;background:#e0f2fe;border-color:#7dd3f0}.inv-cat-snacks{color:#92400e;background:#fef3c7;border-color:#fbbf24}.inv-cat-slow{color:#6b21a8;background:#f3e8ff;border-color:#c084fc}.markup-tip{opacity:.8;margin-left:3px;font-size:.72rem;font-weight:700}.inv-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px;font-size:.73rem;font-weight:600;display:none}.inv-name{color:var(--text);font-weight:700}.inv-price,.inv-cost,.inv-margin,.inv-stock,.inv-barcode{font-variant-numeric:tabular-nums;font-size:.93rem}.inv-no-cost{color:var(--text-muted);font-style:normal}.inv-margin.margin-good{color:var(--success);font-weight:700}.inv-margin.margin-fair{color:var(--warning);font-weight:700}.inv-margin.margin-low{color:var(--danger);font-weight:700}.inv-margin.margin-unknown{color:var(--text-muted)}.inv-actions{justify-content:flex-end;align-items:center;display:flex}.inv-edit-btn{border:1px solid var(--border-strong);background:var(--surface);min-height:32px;color:var(--primary);cursor:pointer;white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;padding:4px 12px;font-size:.82rem;font-weight:600;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.inv-edit-btn:hover{background:var(--surface-soft);border-color:var(--primary)}.inv-edit-btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.inv-edit-row{background:var(--surface-soft);border-radius:12px;border:1.5px solid var(--primary)!important;grid-template-columns:none!important;padding:14px!important;display:block!important}.inv-edit-form{flex-direction:column;gap:12px;display:flex}.inv-edit-grid{grid-template-columns:1fr 1fr;gap:10px 12px;display:grid}.inv-edit-field{flex-direction:column;gap:4px;min-width:0;display:flex}.inv-edit-field--name{grid-column:1/-1}.inv-edit-field label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);font-size:.72rem;font-weight:700}.inv-edit-field input,.inv-edit-field select{box-sizing:border-box;border:1.5px solid var(--border-strong);background:var(--surface);width:100%;max-width:100%;min-height:44px;color:var(--text);border-radius:10px;padding:0 12px;font-size:.95rem;transition:border-color .15s,box-shadow .15s}.inv-edit-field input:focus,.inv-edit-field select:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #084f4a26}.inv-edit-field select{text-overflow:ellipsis;cursor:pointer;padding-right:28px}.inv-edit-preview{display:flex}.inv-edit-markup{border-radius:999px;align-items:center;padding:5px 12px;font-size:.82rem;font-weight:700;line-height:1.3;display:inline-flex}.inv-edit-markup.preview-unknown{background:var(--surface);color:var(--text-muted);border:1px solid var(--border);font-weight:600}.inv-edit-actions{flex-wrap:wrap;gap:10px;display:flex}.inv-edit-save,.inv-edit-cancel{cursor:pointer;border-radius:10px;min-height:44px;padding:0 18px;font-weight:700}.inv-edit-save{background:var(--primary);border:1px solid var(--primary);color:var(--primary-ink)}.inv-edit-save:disabled{opacity:.6;cursor:not-allowed}.inv-edit-cancel{background:var(--surface);border:1px solid var(--border-strong);color:var(--text)}@media (width>=721px){.inv-edit-grid{grid-template-columns:minmax(220px,2fr) minmax(200px,1.4fr) minmax(110px,1fr) minmax(110px,1fr)}.inv-edit-field--name{grid-column:1/2}.inv-edit-field--category{grid-column:2/-1}}.inv-form-cat-hint{gap:4px 10px}.inv-filter-bar{gap:6px}.inv-search-input{flex:100%}.inv-filter-btn,.inv-filter-clear{min-height:40px;font-size:.82rem}.inv-pagination{gap:4px}.inv-pagination>button{min-height:44px;padding:0 12px}.inv-page-btn{min-width:44px;min-height:44px}.inventory-list-header{display:none}.inventory-list li{grid-template-columns:1fr 1fr;gap:8px 12px}.inv-name{grid-column:1/-1}.inv-label{text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:2px;font-size:.68rem;font-weight:700;display:block}@media (width>=721px){.inv-form-cat-hint{gap:6px 14px}.inv-filter-bar{gap:10px}.inv-search-input{flex:1}.inv-filter-btn,.inv-filter-clear{min-height:44px;font-size:inherit}.inv-pagination{gap:6px}.inv-pagination>button{min-height:40px;padding:0 14px}.inv-page-btn{min-width:unset;min-height:unset}.inventory-list-header{display:grid}.inventory-list li{grid-template-columns:minmax(140px,2.5fr) minmax(70px,1fr) minmax(70px,1fr) minmax(70px,1fr) minmax(55px,1fr) minmax(80px,1fr) minmax(64px,auto);gap:8px}.inv-name{grid-column:auto}.inv-label{display:none}}.gastos-form{grid-template-columns:1fr;align-items:end;gap:10px;margin-bottom:16px;display:grid}.gastos-item{flex-direction:column;align-items:flex-start;gap:8px}.gastos-item-meta{justify-content:space-between;width:100%}.gastos-field{flex-direction:column;gap:4px;display:flex}.gastos-field--grow{flex:1}.gastos-field--action{flex-shrink:0}.gastos-field label{color:var(--text-muted);padding-left:2px;font-size:.83rem;font-weight:600}.gastos-field select,.gastos-field input{width:100%}.gastos-summary-bar{background:var(--surface-soft);border:1px solid var(--border);color:var(--text-muted);border-radius:10px;align-items:center;gap:8px;margin-bottom:14px;padding:10px 14px;font-size:.95rem;display:flex}.gastos-summary-bar strong{font-variant-numeric:tabular-nums;color:var(--text);font-size:1.1rem}.gastos-total-negative{color:var(--danger)!important}.gastos-list-header{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;margin-bottom:10px;display:flex}.gastos-list-header h3{color:var(--text);margin:0;font-size:1rem;font-weight:700}.gastos-list-summary{align-items:baseline;gap:10px;margin:0;font-size:.85rem;display:flex}.gastos-list-count{color:var(--text-muted)}.gastos-list-total{font-variant-numeric:tabular-nums;color:var(--danger);font-weight:800}.gastos-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.gastos-item{border:1px solid var(--border);box-shadow:var(--shadow-soft);background:linear-gradient(#fff,#f6f9f8);border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;display:flex}.gastos-item-main{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.gastos-category-badge{border:1px solid var(--border);background:var(--surface-soft);height:24px;color:var(--text-muted);white-space:nowrap;border-radius:999px;flex-shrink:0;align-items:center;padding:0 9px;font-size:.78rem;font-weight:700;display:inline-flex}.gastos-description{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:.97rem;font-weight:500;overflow:hidden}.gastos-item-meta{flex-shrink:0;align-items:center;gap:12px;display:flex}.gastos-amount{font-variant-numeric:tabular-nums;color:var(--danger);white-space:nowrap;font-size:1.05rem;font-weight:800}.gastos-date{color:var(--text-muted);white-space:nowrap;font-size:.8rem}.gastos-delete-btn{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:8px;min-height:28px;padding:3px 10px;font-size:.8rem;transition:background .15s,color .15s,border-color .15s}.gastos-delete-btn:hover:not(:disabled){background:var(--surface-warning);border-color:var(--danger);color:var(--danger)}.gastos-delete-btn:disabled{opacity:.5;cursor:not-allowed}.summary-article--expense{border-left:3px solid var(--danger)!important}.summary-article--positive p{color:var(--success)}.summary-article--negative p{color:var(--danger)}@media (width>=641px){.gastos-item{flex-direction:row;align-items:center;gap:0}.gastos-item-meta{justify-content:flex-start;width:auto}.gastos-form{grid-template-columns:1fr 1fr}.gastos-field--grow,.gastos-field--action{grid-column:1/-1}}@media (width>=721px){.gastos-form{grid-template-columns:minmax(140px,auto) minmax(220px,1fr) minmax(120px,auto) auto}.gastos-field--grow,.gastos-field--action{grid-column:auto}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
