.app-shell{background:var(--bg);height:100dvh;min-height:0;max-height:100dvh;display:flex;overflow:hidden}.sidebar{border-right:1px solid var(--sidebar-border);background:var(--sidebar-bg);width:232px;height:100%;color:var(--sidebar-text);flex-direction:column;flex-shrink:0;align-self:flex-start;padding:1rem .5rem;display:flex;position:sticky;top:0}.sidebar-brand{border-bottom:1px solid var(--sidebar-border);margin-bottom:var(--gap-section);flex-shrink:0;align-items:flex-start;gap:.55rem;padding:.15rem .4rem .65rem;display:flex}.sidebar-brand__logo{flex-shrink:0}.sidebar-brand__text{flex:1;min-width:0}.store-picker--fixed{border-bottom:1px solid var(--sidebar-border);margin-bottom:var(--gap-section);padding:0 .4rem .65rem}.store-picker__name{color:var(--sidebar-text);margin:.25rem 0 0;font-size:.9rem;font-weight:600}.brand-title{color:#fff;font-size:1rem;font-weight:700;display:block}.brand-code{font-family:var(--font-mono);color:var(--sidebar-muted);letter-spacing:.02em;margin-top:.35rem;font-size:.7rem;display:block}.brand-sub{color:var(--sidebar-muted);text-transform:capitalize;margin-top:.15rem;font-size:.7rem;display:block}.store-picker{border-bottom:1px solid var(--sidebar-border);margin-bottom:var(--gap-form);flex-shrink:0;padding:0 .4rem .65rem}.store-picker label{text-transform:uppercase;letter-spacing:.04em;color:var(--sidebar-muted);margin-bottom:.35rem;font-size:.7rem;display:block}.store-select{border-radius:var(--radius-control);border:1px solid var(--sidebar-border);width:100%;font:inherit;color:var(--sidebar-text);background:#00000040;padding:.45rem .5rem;font-size:.8125rem}.store-select option{color:var(--text);background:var(--surface)}.store-select:disabled{opacity:.65;cursor:not-allowed}.store-picker .muted{color:var(--sidebar-muted)}.sidebar-nav{flex-direction:column;flex:1;min-height:0;padding:0 .35rem;display:flex;overflow:hidden}.nav-section{flex:none;margin-top:.5rem}.nav-section:first-child{margin-top:.15rem}.nav-section.open{flex-direction:column;flex:0 auto;min-height:0;display:flex}.nav-section-toggle{width:100%;color:var(--sidebar-muted);text-transform:uppercase;letter-spacing:.08em;cursor:pointer;text-align:left;background:0 0;border:none;border-radius:999px;flex-shrink:0;justify-content:space-between;align-items:center;gap:.35rem;padding:.35rem .5rem;font-family:inherit;font-size:.625rem;font-weight:600;display:flex}.nav-section-toggle:hover{background:var(--sidebar-hover);color:var(--sidebar-text)}.nav-section.open .nav-section-toggle{color:var(--sidebar-text)}.nav-section-toggle__label{flex:1;justify-content:flex-start;min-width:0}.nav-section-chevron{flex-shrink:0;font-size:.75rem;line-height:1;transition:transform .2s;display:inline-block;transform:rotate(90deg)}.nav-section.open .nav-section-chevron{transform:rotate(-90deg)}.nav-section-links{flex-direction:column;gap:.15rem;padding-top:.2rem;padding-left:.65rem;display:none}.nav-section.open .nav-section-links{scrollbar-width:thin;scrollbar-color:#ffffff26 transparent;flex:auto;min-height:0;display:flex;overflow-y:auto}.nav-item--dashboard{margin-top:.15rem;margin-bottom:.35rem}.nav-item{color:var(--sidebar-text);font-size:var(--text-table);border-radius:999px;padding:.45rem .65rem;font-weight:500;text-decoration:none;display:block}.nav-item:hover{background:var(--sidebar-hover)}.nav-item.active{background:var(--sidebar-active-bg);color:#fff;font-weight:600}.nav-item.disabled{opacity:.35;pointer-events:none}.sidebar-footer{padding:var(--gap-section) .35rem 0;border-top:1px solid var(--sidebar-border);flex-shrink:0;margin-top:auto}.sidebar-sign-out{background:var(--sidebar-active-bar);color:#fff}.sidebar-sign-out:hover{filter:brightness(1.06)}.main-content{padding:var(--pad-page-y) var(--pad-page-x);flex:1;min-width:0;min-height:0;overflow-y:auto}.app-shell--pos{height:100dvh;max-height:100dvh;overflow:hidden}.main-content--pos{flex-direction:column;flex:1;min-height:0;padding:0;display:flex;overflow:hidden}.main-content--pos>.pos-page{flex:1;min-height:0}.mobile-topbar,.sidebar-backdrop{display:none}@media (width<=768px){.app-shell{flex-direction:column}.mobile-topbar{padding:.55rem var(--pad-page-x);border-bottom:1px solid var(--border);background:var(--surface);z-index:50;align-items:center;gap:.5rem;display:flex;position:sticky;top:0}.mobile-menu-btn{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-2);cursor:pointer;min-width:44px;min-height:44px;font-size:1.25rem}.mobile-topbar__title{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.95rem;font-weight:700;overflow:hidden}.mobile-topbar__spacer{width:44px}.mobile-pos-link{border-radius:var(--radius-control);background:var(--sidebar-bg);min-height:44px;color:var(--sidebar-text);align-items:center;padding:.35rem .75rem;font-size:.85rem;font-weight:700;text-decoration:none;display:inline-flex}.sidebar{z-index:60;box-shadow:none;transition:transform .22s;position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.app-shell.nav-open .sidebar{transform:translate(0);box-shadow:4px 0 24px #0000002e}.sidebar-backdrop{z-index:55;cursor:pointer;background:#00000073;border:none;padding:0;display:block;position:fixed;inset:0}.main-content{flex:1;min-height:0;padding-top:.75rem;overflow-y:auto}.app-shell--pos{min-height:0}.main-content--pos{flex:1;min-height:0;padding-top:0}}.btn{border-radius:var(--radius-control);padding:var(--pad-control);font-size:var(--text-table);cursor:pointer;border:none;font-weight:600}.btn.primary{color:#fff;background:#412d15}.btn.secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.btn.ghost{color:var(--muted);background:0 0}.btn.full{width:100%}.btn-link{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;font-size:.8rem}.small{font-size:.75rem}.error-text{color:#fca5a5}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-control);padding:var(--pad-card);margin-bottom:var(--gap-section)}.card.form-grid{padding:var(--pad-form-card);border-radius:var(--radius-form-panel)}.form-grid{gap:var(--gap-form-stack);max-width:none;display:grid}.modal-body .form-grid{max-width:none}.form-grid label{gap:var(--gap-form-label);color:var(--text);flex-direction:column;font-size:.8125rem;font-weight:500;display:flex}.form-grid input,.form-grid select,.form-grid textarea{box-sizing:border-box;width:100%;padding:var(--pad-form-control);border-radius:var(--radius-control);border:1px solid var(--border);font:inherit;background:var(--surface-2,var(--surface))}.form-grid textarea{resize:vertical;min-height:4.5rem}.form-grid--two-col,.modal-wide .form-grid,.form-grid.company-settings-form,.form-grid.invoice-settings-form,.form-grid.card-tx-form,.form-grid.customer-page-form{column-gap:var(--gap-form-columns);row-gap:var(--gap-form-stack);grid-template-columns:1fr 1fr;align-items:start}@media (width<=640px){.form-grid--two-col,.modal-wide .form-grid,.form-grid.company-settings-form,.form-grid.invoice-settings-form,.form-grid.card-tx-form,.form-grid.customer-page-form{grid-template-columns:1fr}}.form-grid .span-2,.form-grid .invoice-field-span,.form-grid .company-settings-field-span,.form-grid .company-settings-section,.form-grid .company-settings-hint,.form-grid .invoice-settings-section,.form-grid .card-tx-form__title,.form-grid .form-error,.form-grid .form-actions,.form-grid>button[type=submit],.form-grid>.btn[type=submit]{grid-column:1/-1}.form-grid label:has(textarea){grid-column:1/-1}.form-actions,.form-grid .form-actions,.form-grid>button[type=submit],.form-grid>.btn[type=submit]{justify-content:flex-end;gap:var(--gap-form-actions);padding-top:var(--pad-form-card);border-top:1px solid var(--border);flex-wrap:wrap;margin-top:.25rem;display:flex}.form-grid>button[type=submit]:not(.btn),.form-grid>.btn[type=submit]{margin-left:auto}.form-grid .customer-kyc-fields{column-gap:var(--gap-form-columns);row-gap:var(--gap-form-stack);grid-column:1/-1;grid-template-columns:1fr 1fr;align-items:start;display:grid}@media (width<=640px){.form-grid .customer-kyc-fields{grid-template-columns:1fr}}.form-grid .customer-kyc-fields__section-label,.form-grid .customer-kyc-fields__row3{grid-column:1/-1}.login-page{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;padding:1.5rem;display:flex}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;width:100%;max-width:400px;padding:1.75rem}.login-card h1{margin:0;font-size:1.5rem}.login-sub{color:var(--muted);margin:.35rem 0 1.25rem;font-size:.9rem}.login-mode-tabs{background:var(--surface-2);border-radius:10px;gap:.35rem;margin-bottom:1.25rem;padding:.25rem;display:flex}.login-mode-tab{color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:8px;flex:1;padding:.45rem .75rem;font-size:.875rem;font-weight:600}.login-mode-tab.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #122b5114}.login-error{color:#991b1b;background:#fef2f2;border-radius:8px;margin-bottom:1rem;padding:.65rem .75rem;font-size:.875rem}.google-btn{margin-top:.75rem}.modal-backdrop{padding:var(--pad-page-y) var(--gap-section);z-index:1000;background:#0f172a73;justify-content:center;align-items:flex-start;display:flex;position:fixed;inset:0;overflow-y:auto}.modal-panel{background:var(--surface);border-radius:var(--radius-form-panel);border:1px solid var(--border);width:100%;max-width:480px;box-shadow:var(--shadow-lg)}.modal-wide{max-width:860px}.modal-header{padding:var(--gap-section) var(--pad-page-x);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;display:flex}.modal-header h2{font-size:var(--text-page-title);margin:0;line-height:1.25}.modal-close{cursor:pointer;color:var(--muted);background:0 0;border:none;padding:0 .15rem;font-size:1.25rem;line-height:1}.modal-body{padding:var(--pad-form-card)}.page-shell{max-width:1200px}.page-header{justify-content:space-between;align-items:flex-start;gap:var(--gap-section);margin-bottom:var(--gap-section);display:flex}.page-header h1{font-size:var(--text-page-title);margin:0;font-weight:700;line-height:1.25}.page-desc{color:var(--muted);font-size:var(--text-table);margin:.2rem 0 0}.page-actions{gap:var(--gap-form);flex-shrink:0;display:flex}.error-banner{padding:var(--pad-control) var(--gap-section);margin-bottom:var(--gap-section);border-radius:var(--radius-control);color:#991b1b;font-size:var(--text-table);background:#fef2f2;border:1px solid #fecaca;align-items:flex-start;display:flex}@keyframes icon-spin{to{transform:rotate(360deg)}}.spin-icon{animation:.9s linear infinite icon-spin}.muted{color:var(--muted)}.dash-meta{color:var(--muted);margin:0 0 1.25rem;font-size:.8125rem}.dash-meta strong{color:var(--text);font-weight:600}.dash-receipt{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);border-radius:8px;margin-bottom:1rem;padding:1.25rem 1.35rem 1.1rem}.dash-receipt__label{font-family:var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:.35rem;font-size:.6875rem;font-weight:500}.dash-receipt__amount{font-family:var(--font-serif);font-variant-numeric:tabular-nums;color:var(--text);margin:0;font-size:2.5rem;font-weight:600;line-height:1.1}.dash-receipt__amount--placeholder{font-family:var(--font-ui);font-size:1.25rem;font-weight:600}.dash-receipt__context{color:var(--muted);margin-top:.65rem;font-size:.875rem}.dash-receipt__context strong{color:var(--text);font-weight:600}.dash-quotas{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex-direction:column;gap:0;margin-bottom:1.25rem;display:flex;overflow:hidden}.dash-quota-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:1rem;padding:.65rem 1rem;font-size:.875rem;display:flex}.dash-quota-row:last-child{border-bottom:none}.dash-quota-row__label{font-family:var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-size:.6875rem}.dash-quota-row__value{font-variant-numeric:tabular-nums;color:var(--text);font-weight:600}.dash-actions{grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:.65rem;display:grid}.dash-action-tile{border:1px solid var(--border);background:var(--surface);min-height:4.5rem;color:var(--text);border-radius:8px;flex-direction:column;justify-content:center;padding:.85rem 1rem;text-decoration:none;transition:background .15s,border-color .15s;display:flex}.dash-action-tile:hover{background:var(--surface-hover);border-color:#d6d3d1}.dash-action-tile__icon{color:var(--accent);margin-bottom:.35rem}.dash-action-tile__title{font-size:.9375rem;font-weight:600}.dash-action-tile__hint{color:var(--muted);margin-top:.2rem;font-size:.75rem}.dash-action-tile--disabled{opacity:.45;pointer-events:none}.dash-action-tile--btn{cursor:pointer;font:inherit;text-align:left;width:100%}.dash-toolbar{margin-bottom:1rem}.dash-period{border:1px solid var(--border);border-radius:8px;display:inline-flex;overflow:hidden}.dash-period__btn{background:var(--surface);cursor:pointer;border:none;padding:.4rem .85rem;font-size:.8125rem}.dash-period__btn.active{background:var(--accent-soft,#f5f5f4);font-weight:600}.dash-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.65rem;margin-bottom:1rem;display:grid}.dash-charts{grid-template-columns:repeat(auto-fit,minmax(17rem,1fr));gap:1rem;margin-bottom:1.25rem;display:grid}.dash-chart-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-sm);border-radius:8px;padding:.75rem .85rem .65rem}.dash-chart-card--inline{margin-bottom:0}.dash-chart-card__title{color:var(--text);margin:0 0 .5rem;font-size:.8125rem;font-weight:600}.dash-chart-card__plot{width:100%;height:220px}.dash-chart-card__plot--repair{height:200px}.dash-chart-empty{color:var(--muted);text-align:center;justify-content:center;align-items:center;height:100%;margin:0;padding:0 .5rem;font-size:.8125rem;display:flex}.dash-chart-tooltip{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-sm);border-radius:6px;padding:.35rem .55rem;font-size:.75rem}.dash-chart-tooltip__label{color:var(--muted);margin-bottom:.15rem}.dash-chart-tooltip__value{font-variant-numeric:tabular-nums;color:var(--text);font-weight:600}.dash-kpi-card{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:.65rem .85rem}.dash-kpi-card__label{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-size:.6875rem;display:block}.dash-kpi-card__value{font-variant-numeric:tabular-nums;font-size:1.125rem;font-weight:600}.dash-section{margin-bottom:1.25rem}.dash-section__title{margin:0 0 .5rem;font-size:.875rem;font-weight:600}.dash-two-col{grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1rem;display:grid}.dash-alert-list{flex-direction:column;gap:.35rem;margin:0;padding:0;list-style:none;display:flex}.dash-alert{border:1px solid var(--border);border-radius:6px;padding:.5rem .75rem;font-size:.8125rem}.dash-alert--error{background:#fef2f2;border-color:#fecaca}.dash-alert--warn{background:#fffbeb;border-color:#fde68a}.dash-alert--info{background:#eff6ff;border-color:#bfdbfe}.dash-lookup-pre{background:#fafaf9;border-radius:6px;max-height:12rem;margin-top:.75rem;padding:.5rem;font-size:.75rem;overflow:auto}.badge{text-transform:capitalize;white-space:nowrap;border-radius:999px;padding:.15rem .5rem;font-size:.7rem;font-weight:600;display:inline-block}.badge-success{color:#166534;background:#dcfce7}.badge-danger{color:#991b1b;background:#fee2e2}.badge-info{color:#1d4ed8;background:#dbeafe}.badge-warn{color:#92400e;background:#fef3c7}.badge-neutral{background:var(--surface-2);color:var(--muted);border:1px solid var(--border)}.billing-stack{flex-direction:column;gap:1.25rem;display:flex}.billing-flash{padding:var(--pad-control) var(--gap-section);border-radius:var(--radius-control);font-size:var(--text-table);border:1px solid var(--border)}.billing-flash--success{color:#065f46;background:#ecfdf5;border-color:#a7f3d0}.billing-flash--info{background:var(--accent-soft);color:var(--accent);border-color:color-mix(in srgb, var(--accent) 35%, var(--border))}.billing-inline-error{font-size:var(--text-table);color:#991b1b;margin:0 0 .75rem}.billing-current{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-form-panel);box-shadow:var(--shadow-sm);padding:1.15rem 1.25rem}.billing-current__top{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.billing-current__plan-name{letter-spacing:-.02em;text-wrap:balance;margin:0;font-size:1.35rem;font-weight:700}.billing-current__meta{font-size:var(--text-table);flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.45rem;display:flex}.billing-current__renewal{font-size:var(--text-table);margin:.65rem 0 0}.billing-usage-grid{border-top:1px solid var(--border);grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-top:1.1rem;padding-top:1.1rem;display:grid}.billing-usage__head{font-size:var(--text-table);justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.billing-usage__label{color:var(--text);font-weight:600}.billing-usage__count{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.8125rem}.billing-meter{background:var(--surface-2);border-radius:999px;height:6px;margin-top:.4rem;overflow:hidden}.billing-meter__fill{background:var(--accent);border-radius:999px;height:100%;transition:width .25s cubic-bezier(.23,1,.32,1)}.billing-compare{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-form-panel);box-shadow:var(--shadow-sm);padding:1rem 1rem 1.15rem}.billing-compare__title{margin:0 0 .35rem;font-size:1rem;font-weight:600}.billing-compare__hint{font-size:var(--text-table);margin:0 0 1rem}.billing-compare-grid{border:1px solid var(--border);border-radius:var(--radius-control);grid-template-columns:repeat(3,minmax(0,1fr));gap:0;display:grid;overflow:hidden}@media (width<=820px){.billing-compare-grid{grid-template-columns:1fr}.billing-compare-grid .billing-plan-col+.billing-plan-col{border-top:1px solid var(--border)}.billing-compare-grid .billing-plan-col{border-right:none}}.billing-plan-col{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;min-height:100%;padding:1rem .85rem .85rem;display:flex}.billing-plan-col:last-child{border-right:none}.billing-plan-col--current{background:color-mix(in srgb, var(--accent-soft) 55%, var(--surface))}.billing-plan-col__name{text-transform:capitalize;margin:0;font-size:1.05rem;font-weight:700}.billing-plan-col__tagline{min-height:2.9rem;margin:.35rem 0 0;font-size:.8125rem;line-height:1.45}.billing-plan-col__limits{color:var(--muted);margin:.25rem 0 0;font-size:.75rem;font-weight:500}.billing-plan-col__features{border-top:1px solid var(--border);flex:1;margin:.85rem 0 0;padding:.85rem 0 0;list-style:none}.billing-plan-col__feature{color:var(--text);align-items:center;gap:.45rem;padding:.28rem 0;font-size:.8125rem;display:flex}.billing-plan-col__feature--off{color:var(--muted)}.billing-plan-col__feature-icon{flex-shrink:0;width:16px;height:16px}.billing-plan-col__feature-icon--on{color:var(--accent)}.billing-plan-col__feature-icon--off{color:color-mix(in srgb, var(--muted) 50%, transparent)}.billing-plan-col__actions{margin-top:auto;padding-top:.85rem}.billing-plan-col__actions .btn{justify-content:center;width:100%}.billing-skeleton{pointer-events:none}.billing-skeleton__block{border-radius:var(--radius-control);background:linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 70%, var(--surface)) 50%, var(--surface-2) 100%);background-size:200% 100%;animation:1.2s ease-in-out infinite billing-shimmer}@keyframes billing-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.billing-skeleton__current{height:140px}.billing-skeleton__compare{height:320px;margin-top:1.25rem}@media (prefers-reduced-motion:reduce){.billing-skeleton__block{animation:none}.billing-meter__fill{transition:none}}.table-block{margin-bottom:var(--gap-section)}.table-toolbar{justify-content:space-between;align-items:center;gap:var(--gap-form);margin-bottom:.35rem;display:flex}.table-search{max-width:260px;padding:var(--pad-control);border:1px solid var(--border);border-radius:var(--radius-control);font:inherit;font-size:var(--text-table);background:var(--surface);flex:1}.table-count{font-size:.75rem}.table-inline-select{max-width:11rem;font:inherit;font-size:var(--text-table);border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);padding:.25rem .35rem}.table-wrap{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);overflow:auto}.data-table{border-collapse:collapse;width:100%;font-size:var(--text-table)}.data-table th,.data-table td{text-align:left;border-bottom:1px solid var(--border);padding:.4rem .55rem}.data-table th{background:var(--surface-2);text-transform:capitalize;white-space:nowrap;font-size:.75rem;font-weight:600}.data-table tbody tr:hover{background:var(--surface-hover)}.data-table th.actions-col,.data-table td.actions-col{white-space:nowrap;text-align:right;width:1%}.data-table th.num-col,.data-table td.num-col{text-align:right;font-variant-numeric:tabular-nums}.row-actions{white-space:nowrap;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:.35rem;display:flex}.row-action{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:6px;padding:.25rem .55rem;font-size:.75rem;font-weight:600}.row-action:hover{background:var(--surface-hover)}.row-action.danger{color:#991b1b;background:#fef2f2;border-color:#fecaca}.row-action:disabled{opacity:.5;cursor:not-allowed}.customer-kyc-fields{gap:var(--gap-form-stack);flex-direction:column;display:flex}.customer-kyc-fields label{gap:var(--gap-form-label);flex-direction:column;font-size:.8125rem;font-weight:500;display:flex}.customer-kyc-fields input,.customer-kyc-fields select,.customer-kyc-fields textarea{box-sizing:border-box;width:100%;padding:var(--pad-form-control);border:1px solid var(--border);border-radius:var(--radius-control);font:inherit;background:var(--surface-2,var(--surface))}.customer-kyc-fields__section-label{letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:.5rem 0 0;font-size:.6875rem;font-weight:600}.customer-kyc-fields__row3{grid-template-columns:repeat(3,1fr);gap:.65rem;display:grid}@media (width<=640px){.customer-kyc-fields__row3{grid-template-columns:1fr}}.customer-page-form{max-width:none}.inventory-workbench{flex-direction:column;gap:1rem;display:flex}.inventory-segments{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-control,.5rem);align-self:flex-start;gap:.15rem;max-width:100%;padding:.25rem;display:inline-flex}.inventory-segments__btn{border-radius:calc(var(--radius-control,.5rem) - 2px);font-size:var(--text-table,.875rem);color:var(--muted);cursor:pointer;background:0 0;border:none;align-items:center;gap:.5rem;padding:.45rem .85rem;font-weight:500;transition:background .15s,color .15s,box-shadow .15s;display:inline-flex}.inventory-segments__btn:hover{color:var(--text);background:var(--surface-hover)}.inventory-segments__btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.inventory-segments__btn--active{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 2px #0000000f}.inventory-segments__count{font-variant-numeric:tabular-nums;background:var(--surface-2);min-width:1.35rem;color:var(--muted);border-radius:999px;justify-content:center;align-items:center;padding:.1rem .4rem;font-size:.6875rem;font-weight:600;display:inline-flex}.inventory-segments__btn--active .inventory-segments__count{background:var(--accent-soft);color:var(--accent)}.inventory-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;display:grid}@media (width<=640px){.inventory-summary{grid-template-columns:1fr}}.inventory-summary__card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-control,.5rem);padding:.85rem 1rem}.inventory-summary__label{letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-bottom:.35rem;font-size:.6875rem;font-weight:600;display:block}.inventory-summary__value{font-variant-numeric:tabular-nums;color:var(--text);font-size:1.375rem;font-weight:600;line-height:1.2}.inventory-summary__value--sm{font-size:1rem}.inventory-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-control,.5rem);overflow:hidden}.inventory-panel .table-toolbar{border-bottom:1px solid var(--border);background:var(--surface-2);margin:0;padding:.75rem 1rem}.inventory-panel .table-search{max-width:22rem}.inventory-panel .table-wrap{border:none;border-radius:0}.inventory-panel .data-table th{background:var(--surface);letter-spacing:.03em;text-transform:uppercase;color:var(--muted);font-size:.6875rem;font-weight:600}.inventory-panel .data-table th,.inventory-panel .data-table td,.inventory-panel .data-table td.num-col,.inventory-panel .data-table th.num-col{font-variant-numeric:tabular-nums}.inventory-panel__empty{text-align:center;font-size:var(--text-table,.875rem);color:var(--muted);margin:0;padding:2.5rem 1rem}.stock-qty-badge{font-variant-numeric:tabular-nums;background:var(--accent-soft);min-width:1.75rem;color:var(--accent);border-radius:999px;justify-content:center;align-items:center;padding:.15rem .5rem;font-size:.75rem;font-weight:600;display:inline-flex}.card-tx-row-actions{flex-direction:column;align-items:flex-start;gap:.35rem;display:flex}.card-tx-paid-check{white-space:nowrap;align-items:center;gap:.35rem;font-size:.75rem;display:flex}.stock-sold-table .mono,.stock-table .mono,.stock-nest-table .mono{font-family:var(--font-mono);font-size:.8125rem}.stock-table__product-row{cursor:pointer;transition:background .12s}.stock-table__product-row:hover{background:var(--surface-hover)}.stock-table__product-row--open{background:var(--accent-soft)}.stock-table__product-name{font-weight:600}.stock-table__chev-col{width:1.75rem;padding-left:.65rem!important}.stock-table__chev{color:var(--muted);transition:transform .2s;display:inline-block;transform:rotate(0)}.stock-table__chev--open{transform:rotate(90deg)}.stock-table__detail-row td{background:var(--surface-2);border-top:none;padding:0!important}.stock-expand-nest{padding:.75rem 1rem .85rem 2rem}.stock-expand-nest__frame{border:1px solid var(--border);border-radius:var(--radius-control,.5rem);background:var(--surface);overflow:hidden}.stock-nest-table{border-collapse:collapse;width:100%;font-size:.8125rem}.stock-nest-table th,.stock-nest-table td{text-align:left;border-bottom:1px solid var(--border);white-space:nowrap;padding:.7rem .9rem}.stock-nest-table thead th{letter-spacing:.03em;text-transform:uppercase;color:var(--muted);background:var(--surface-2);border-bottom:1px solid var(--border);font-size:.6875rem;font-weight:600}.stock-nest-table tbody tr:last-child td{border-bottom:none}.stock-nest-table tbody tr:hover{background:var(--surface-hover)}.stock-nest-table .mono{font-family:var(--font-mono);font-size:.75rem}.stock-nest-table th.num-col,.stock-nest-table td.num-col{text-align:right;font-variant-numeric:tabular-nums}.transfer-page__header{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);flex-wrap:wrap;align-items:flex-end;gap:1rem 1.5rem;margin-bottom:1.25rem;padding:1rem 1.1rem;display:flex}.transfer-page__store-field{flex-direction:column;gap:.35rem;min-width:10rem;display:flex}.transfer-page__store-field span{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:.72rem;font-weight:600}.transfer-page__store-name{font-size:1rem;font-weight:600}.transfer-page__arrow{color:var(--muted);align-self:center;padding-bottom:.35rem;font-size:1.25rem}.transfer-map{grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem;display:grid}@media (width<=900px){.transfer-map{grid-template-columns:1fr}}.transfer-map__panel{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);flex-direction:column;min-height:16rem;max-height:28rem;display:flex}.transfer-map__panel-head{border-bottom:1px solid var(--border);flex-direction:column;gap:.5rem;padding:.75rem .85rem;display:flex}.transfer-map__panel-title{margin:0;font-size:.9rem;font-weight:600}.transfer-map__search{width:100%;font-size:.85rem}.transfer-map__list{flex:1;padding:.35rem;overflow-y:auto}.transfer-map__item{text-align:left;border-radius:var(--radius-control);background:var(--surface-2);cursor:pointer;border:1px solid #0000;width:100%;margin-bottom:.35rem;padding:.55rem .65rem;transition:border-color .15s,background .15s;display:block}.transfer-map__item:hover{border-color:var(--border);background:var(--surface-hover)}.transfer-map__item--selected{border-color:var(--accent);background:var(--accent-soft)}.transfer-map__item--suggested{box-shadow:inset 3px 0 0 var(--accent)}.transfer-map__item--create{background:0 0;border-style:dashed}.transfer-map__item-title{margin:0 0 .2rem;font-size:.85rem;font-weight:600}.transfer-map__item-meta{color:var(--muted);margin:0;font-size:.75rem}.transfer-map__badge{text-transform:uppercase;letter-spacing:.03em;color:var(--accent);margin-left:.35rem;font-size:.65rem;font-weight:600;display:inline-block}.transfer-actions{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);margin-bottom:1.5rem;padding:1rem 1.1rem}.transfer-actions__summary{margin:0 0 .85rem;font-size:.875rem}.transfer-actions__row{flex-wrap:wrap;align-items:flex-end;gap:1rem;display:flex}.transfer-units{border:1px solid var(--border);border-radius:var(--radius-control);max-height:10rem;margin:0 0 .85rem;padding:.65rem .75rem;overflow-y:auto}.transfer-units legend{padding:0 .25rem;font-size:.8rem;font-weight:600}.transfer-units__row{font-size:.8rem;font-family:var(--font-mono);align-items:center;gap:.5rem;margin-top:.35rem;display:flex}.stock-transfers{border-top:1px solid var(--border);margin-top:.5rem;padding-top:1rem}.stock-transfers__title{margin:0 0 .75rem;font-size:1rem;font-weight:600}.settlement-section{margin-top:1.5rem}.settlement-section__title{margin:0 0 .35rem;font-size:1.05rem}.settlement-section__hint{margin:0 0 .75rem;font-size:.85rem}.settle-cost-form__lines{flex-direction:column;gap:1rem;margin:0 0 1rem;padding:0;list-style:none;display:flex}.settle-cost-form__line-title{margin-bottom:.25rem;font-weight:600}.settle-cost-form label{flex-direction:column;gap:.25rem;margin-top:.5rem;display:flex}.settle-cost-form__actions{justify-content:flex-end;gap:.5rem;display:flex}@media print{@page{size:A4;margin:0}body.pos-print-invoice *{visibility:hidden}body.pos-print-invoice .pos-invoice-print-only,body.pos-print-invoice .pos-invoice-print-only *{visibility:visible}body.pos-print-invoice .pos-invoice-print-only{width:210mm;height:297mm;position:absolute;top:0;left:0;overflow:hidden;display:block!important}body.pos-print-invoice .pos-invoice-print-only .a4-sheet{aspect-ratio:210/297;width:420px;max-width:420px;box-shadow:none;transform-origin:0 0;transform:scale(calc(210mm / 420px));-webkit-print-color-adjust:exact;print-color-adjust:exact;overflow:visible}body.pos-print-invoice .pos-invoice-print-only .handover-receipt{width:100%}}.doc-lines__header{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-control);grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.65rem 1rem;margin:0 0 1rem;padding:.75rem .85rem;display:grid}.doc-lines__header dt{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:0;font-size:.6875rem}.doc-lines__header dd{margin:.15rem 0 0;font-size:.875rem}.doc-lines__table{font-size:.8125rem}.doc-lines__item-title{font-weight:600}.doc-lines__item-meta{color:var(--muted);margin-top:.2rem;font-size:.75rem}.doc-lines__actions{justify-content:flex-end;margin-top:1rem;display:flex}.sales-summary-pdf-capture-root{visibility:visible;pointer-events:none;z-index:-1;background:#fff;width:794px;padding:16px;position:fixed;top:0;left:-10000px}.sales-summary-report{color:#111827;font-family:system-ui,sans-serif;font-size:11px;line-height:1.4}.sales-summary-report__title{margin:0 0 4px;font-size:18px;font-weight:700}.sales-summary-report__meta{color:#4b5563;margin:0 0 12px}.sales-summary-report__stats{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px;display:grid}.sales-summary-report__stat{border:1px solid #e5e7eb;border-radius:6px;padding:8px}.sales-summary-report__stat-label{text-transform:uppercase;letter-spacing:.03em;color:#6b7280;font-size:9px}.sales-summary-report__stat-value{font-size:13px;font-weight:600}.sales-summary-report__table{border-collapse:collapse;width:100%;font-size:10px}.sales-summary-report__table th,.sales-summary-report__table td{text-align:left;border:1px solid #e5e7eb;padding:6px 8px}.sales-summary-report__table th{background:#f3f4f6;font-weight:600}.sales-summary-report__table .num-col{text-align:right}.sales-summary-print-only{display:none}@page sales-summary{size:A4;margin:12mm}@media print{body.sales-summary-print .sidebar,body.sales-summary-print .sidebar-backdrop,body.sales-summary-print .mobile-topbar,body.sales-summary-print .page-shell{display:none!important}body.sales-summary-print .app-shell,body.sales-summary-print .main-content{background:#fff!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;display:block!important;overflow:visible!important}body.sales-summary-print .sales-summary-print-only{page:sales-summary;color:#111827;-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff;width:100%;position:static;display:block!important}body.sales-summary-print .sales-summary-report{color:#111827;font-size:10pt;line-height:1.35}body.sales-summary-print .sales-summary-report__title{border-bottom:2px solid #111827;margin:0 0 2mm;padding-bottom:2mm;font-size:16pt;font-weight:700}body.sales-summary-print .sales-summary-report__meta{color:#374151;margin:0 0 5mm;font-size:10pt}body.sales-summary-print .sales-summary-report__stats{grid-template-columns:repeat(3,1fr);gap:3mm;margin-bottom:6mm;display:grid}body.sales-summary-print .sales-summary-report__stat{break-inside:avoid;border:1px solid #111827;border-radius:0;padding:2.5mm 3mm}body.sales-summary-print .sales-summary-report__stat-label{letter-spacing:.04em;text-transform:uppercase;color:#374151;font-size:8pt}body.sales-summary-print .sales-summary-report__stat-value{color:#111827;font-size:12pt;font-weight:700}body.sales-summary-print .sales-summary-report__table{border-collapse:collapse;width:100%;font-size:9pt}body.sales-summary-print .sales-summary-report__table thead{display:table-header-group}body.sales-summary-print .sales-summary-report__table tr{break-inside:avoid}body.sales-summary-print .sales-summary-report__table th,body.sales-summary-print .sales-summary-report__table td{text-align:left;border:1px solid #111827;padding:1.5mm 2mm}body.sales-summary-print .sales-summary-report__table th{color:#fff;background:#111827;font-weight:600}body.sales-summary-print .sales-summary-report__table .num-col{text-align:right}}.share-menu-wrap{flex-shrink:0;margin-left:auto;position:relative}.share-menu{background:var(--surface,#fff);border:1px solid var(--border,#e5e7eb);border-radius:var(--radius-control,8px);z-index:20;flex-direction:column;gap:2px;min-width:9rem;padding:4px;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 4px 12px #0f172a1f}.share-menu button{text-align:left;width:100%;font:inherit;cursor:pointer;background:0 0;border:none;border-radius:6px;padding:.45rem .65rem}.share-menu button:hover:not(:disabled){background:var(--surface-2,#f3f4f6)}.share-menu button:disabled{opacity:.5;cursor:not-allowed}.passthrough-chooser{grid-template-columns:1fr 1fr;gap:.65rem;display:grid}.passthrough-chooser__btn{border:1px solid var(--border);background:var(--surface-2);min-height:3.5rem;font:inherit;cursor:pointer;border-radius:10px;font-weight:700}.passthrough-chooser__btn:hover{border-color:var(--accent)}.passthrough-form{flex-direction:column;gap:.65rem;display:flex}.passthrough-form label{flex-direction:column;gap:.25rem;font-size:.8125rem;font-weight:600;display:flex}.passthrough-form input,.passthrough-form select{border:1px solid var(--border);min-height:40px;font:inherit;border-radius:8px;padding:.4rem .55rem}.passthrough-form__actions{justify-content:flex-end;gap:.5rem;margin-top:.5rem;display:flex}.settings-tabs{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:.35rem;margin-bottom:1.25rem;padding-bottom:.5rem;display:flex}.settings-tabs__tab{border-radius:var(--radius-sm,6px);color:var(--muted);padding:.45rem .85rem;font-size:.9rem;text-decoration:none}.settings-tabs__tab:hover{color:var(--text);background:var(--surface-2,#0000000a)}.settings-tabs__tab--active{color:var(--accent);background:var(--surface-2,#0000000f);font-weight:600}.settings-tab-panel{min-height:12rem}.embedded-resource-toolbar{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-bottom:.75rem;display:flex}.company-settings-layout{max-width:56rem}.company-settings-form{gap:var(--gap-form-stack)}.company-settings-section{grid-column:1/-1;margin:.25rem 0 0;font-size:.95rem;font-weight:600}.company-settings-hint{grid-column:1/-1;margin:0}.company-settings-field-span{grid-column:1/-1}.company-logo-frame{border:1px dashed var(--border);border-radius:var(--radius-md,8px);background:var(--surface-2);justify-content:center;align-items:center;min-height:140px;padding:1rem;display:flex}.company-logo-frame img{object-fit:contain;max-width:160px;max-height:120px}.company-logo-empty{text-align:center;margin:0}.company-logo-actions{flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:.75rem;display:flex}.company-logo-actions input[type=file]{max-width:100%;font-size:.85rem}.company-settings-save-row{flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:.5rem;display:flex}.pnl-filters{max-width:32rem;margin-bottom:1.25rem}.pnl-statement{flex-direction:column;gap:1rem;max-width:52rem;display:flex}.pnl-section__title{margin:0 0 .65rem;font-size:.9375rem;font-weight:600}.pnl-section__hint{margin:0 0 .75rem;font-size:.8125rem}.pnl-table{margin-bottom:.75rem;font-size:.8125rem}.pnl-section--net .pnl-row{border-bottom:none}.ticket-tabs{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex-wrap:wrap;gap:.35rem;margin-bottom:.75rem;padding:.35rem;display:flex}.ticket-tabs__btn{cursor:pointer;color:var(--muted);background:0 0;border:none;border-radius:6px;padding:.45rem .75rem;font-size:.8125rem}.ticket-tabs__btn.active{background:var(--accent-soft,#f5f5f4);color:var(--text);font-weight:600}.ticket-tab-toolbar{flex-wrap:wrap;align-items:flex-end;gap:.75rem 1rem;margin-bottom:1rem;display:flex}.ticket-tab-toolbar__date{gap:var(--gap-form-label);flex-direction:column;font-size:.8125rem;font-weight:500;display:flex}.ticket-tab-toolbar__date input{padding:var(--pad-form-control);border:1px solid var(--border);border-radius:var(--radius-control);font:inherit;background:var(--surface)}.ticket-row-actions{flex-direction:column;align-items:flex-start;gap:.35rem;min-width:9rem;display:flex}.ticket-row-actions__pos{white-space:nowrap;padding:.25rem .5rem;font-size:.75rem;text-decoration:none}.ticket-create-form{gap:var(--pad-form-card);flex-direction:column;display:flex}.ticket-create-form--page{max-width:56rem}.ticket-create-form__columns{align-items:stretch;gap:var(--gap-form-columns);grid-template-columns:1fr 1fr;display:grid}@media (width<=640px){.ticket-create-form__columns{grid-template-columns:1fr}}.ticket-create-form__card{min-height:100%;padding:var(--pad-form-card);border:1px solid var(--border);border-radius:var(--radius-form-panel);background:var(--surface);flex-direction:column;display:flex}.ticket-create-form__section-title{margin:0 0 var(--gap-form-stack);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-size:.6875rem;font-weight:600}.ticket-create-form__fields{gap:var(--gap-form-stack);flex-direction:column;flex:1;display:flex}.ticket-create-form__fields--stretch{min-height:0}.ticket-create-form__fields label{gap:var(--gap-form-label);color:var(--text);flex-direction:column;font-size:.8125rem;font-weight:500;display:flex}.ticket-create-form__fields input,.ticket-create-form__fields textarea{box-sizing:border-box;width:100%;padding:var(--pad-form-control);border:1px solid var(--border);border-radius:var(--radius-control);font:inherit;background:var(--surface-2,var(--surface))}.ticket-create-form__fields textarea{resize:vertical;min-height:4.5rem}.ticket-create-form__date-row{gap:var(--gap-form-stack);grid-template-columns:1fr 1fr;display:grid}@media (width<=480px){.ticket-create-form__date-row{grid-template-columns:1fr}}.ticket-create-form__grow{flex-direction:column;flex:1;min-height:0;display:flex}.ticket-create-form__grow-input{flex:1;min-height:5rem}.ticket-create-form__footer{justify-content:flex-end;gap:var(--gap-form-actions);padding-top:var(--pad-form-card);border-top:1px solid var(--border);margin-top:.5rem;display:flex}.ticket-create-form .form-error{margin:0}.ticket-create-form__accessories{gap:var(--gap-form-label);border:none;flex-direction:column;margin:0;padding:0;display:flex}.ticket-create-form__accessories legend{margin-bottom:.15rem;padding:0;font-size:.8125rem;font-weight:500}.ticket-create-form__accessories-grid{flex-wrap:wrap;gap:.65rem 1.25rem;display:flex}.ticket-create-form__check{cursor:pointer;flex-direction:row;align-items:center;gap:.4rem;font-size:.8125rem;font-weight:500;display:inline-flex}.ticket-create-form__check input[type=checkbox]{width:auto;margin:0}.customer-search-picker{position:relative}.customer-search-picker__label{flex-direction:column;gap:.3rem;font-size:.8125rem;font-weight:500;display:flex}.customer-search-picker__input-wrap{align-items:center;gap:.35rem;display:flex}.customer-search-picker__input-wrap input{padding:var(--pad-control);border:1px solid var(--border);border-radius:var(--radius-control);font:inherit;flex:1}.customer-search-picker__clear{border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);cursor:pointer;padding:.35rem .5rem;font-size:.75rem}.customer-search-picker__selected{margin:.35rem 0 0}.customer-search-picker__dropdown{z-index:20;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);max-height:14rem;box-shadow:var(--shadow-sm);margin-top:.25rem;position:absolute;left:0;right:0;overflow:auto}.customer-search-picker__option{border:none;border-bottom:1px solid var(--border);text-align:left;cursor:pointer;width:100%;font:inherit;background:0 0;justify-content:space-between;gap:.5rem;padding:.5rem .65rem;display:flex}.customer-search-picker__option:hover{background:var(--surface-hover,#fafaf9)}.customer-search-picker__option-name{font-weight:500}.customer-search-picker__option-phone{color:var(--muted);font-size:.8125rem}.customer-search-picker__add-btn{width:100%;margin-top:.5rem}.customer-search-picker__new{text-align:left;width:100%;color:var(--accent);cursor:pointer;background:0 0;border:none;padding:.55rem .65rem;font-weight:600}.customer-search-picker__create{margin-top:.75rem;padding:.85rem}.customer-search-picker__create-title{margin:0 0 .65rem;font-weight:600}.customer-search-picker__create-actions{justify-content:flex-end;gap:.5rem;margin-top:.75rem;display:flex}.handover-receipt{aspect-ratio:210/297;color:#1a1a1a;background:#fff;border:1px solid #d1d5db;flex-direction:column;width:100%;max-width:720px;min-height:0;margin:0 auto;padding:22px 26px;font-family:Inter,system-ui,sans-serif;font-size:11px;line-height:1.4;display:flex;box-shadow:0 1px 2px #0f172a0f,0 8px 24px #0f172a1a}.handover-receipt__top{border-bottom:2px solid #1a1a1a;justify-content:space-between;align-items:flex-start;gap:1rem;padding-bottom:10px;display:flex}.handover-receipt__brand{flex:1;min-width:0}.handover-receipt__logo{object-fit:contain;max-width:180px;max-height:56px;display:block}.handover-receipt__company-fallback{letter-spacing:.02em;text-transform:uppercase;margin:0;font-size:14px;font-weight:800}.handover-receipt__store-line{margin:.2rem 0 0;font-size:10px;font-weight:600}.handover-receipt__addr{color:#4b5563;margin:.35rem 0 0;font-size:9px}.handover-receipt__title-block{text-align:right;flex-shrink:0;max-width:48%}.handover-receipt__title{letter-spacing:.04em;text-transform:uppercase;margin:0;font-size:13px;font-weight:800;line-height:1.25}.handover-receipt__subtitle{letter-spacing:.06em;text-transform:uppercase;color:#374151;margin:.35rem 0 0;font-size:9px;font-weight:600}.handover-receipt__meta-bar{background:#e5e7eb;justify-content:space-between;gap:1rem;margin:0;padding:6px 10px;font-size:10px;display:flex}.handover-receipt__meta-bar strong{font-weight:700}.handover-receipt__section{margin-top:8px}.handover-receipt__section--bar{background:#f3f4f6;margin-top:10px;padding:6px 8px}.handover-receipt__section-title{letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid #9ca3af;margin:0 0 4px;padding-bottom:3px;font-size:9px;font-weight:800}.handover-receipt__field{border-bottom:1px solid #d1d5db;align-items:baseline;gap:.35rem;min-height:1.35rem;padding:2px 0;font-size:10px;display:flex}.handover-receipt__field-label{color:#374151;flex-shrink:0;font-weight:500}.handover-receipt__field-value{white-space:pre-wrap;flex:1;min-width:0;font-weight:600}.handover-receipt__accessories{flex-wrap:wrap;gap:.75rem 1.25rem;padding:4px 0 2px;font-size:10px;font-weight:600;display:flex}.handover-receipt__accessory{align-items:center;gap:.35rem;display:inline-flex}.handover-receipt__checkbox{border:1.5px solid #1a1a1a;flex-shrink:0;width:11px;height:11px;position:relative}.handover-receipt__checkbox.is-checked:after{content:"";border:2px solid #1a1a1a;border-width:0 2px 2px 0;width:4px;height:7px;position:absolute;top:0;left:2px;transform:rotate(45deg)}.handover-receipt__accessory-other{border-bottom:1px solid #9ca3af;min-width:6rem;margin-left:.25rem;font-weight:500;display:inline-block}.handover-receipt__split{border:1px solid #d1d5db;flex:1;grid-template-columns:1fr 1fr;gap:0;min-height:0;margin-top:10px;display:grid}.handover-receipt__split-col{padding:8px 10px}.handover-receipt__split-col:first-child{border-right:1px solid #d1d5db}.handover-receipt__ack-text{color:#374151;margin:0 0 6px;font-size:9px;line-height:1.45}.handover-receipt__footer{color:#374151;background:#e5e7eb;justify-content:space-between;align-items:flex-end;gap:1rem;margin-top:auto;padding:8px 10px;font-size:8px;display:flex}.handover-receipt__footer-notes{flex:1;margin:0;padding-left:1rem}.handover-receipt__footer-notes li{margin:.15rem 0}.handover-receipt__thanks{text-align:right;white-space:nowrap;margin:0;font-size:9px;font-weight:600}.pos-invoice-preview-wrap .handover-receipt{margin-left:auto;margin-right:auto}@media print{body.pos-print-invoice .pos-invoice-print-only .handover-receipt{aspect-ratio:auto;width:100%;max-width:none;min-height:auto;box-shadow:none;page-break-inside:avoid;border:none;margin:0;padding:22px 26px;font-size:11px}}.pos-page{font-variant-numeric:tabular-nums;background:var(--bg);grid-template-rows:auto 1fr auto;height:100%;min-height:0;display:grid;overflow:hidden}@media (width>=900px){.pos-page{grid-template-rows:auto 1fr}}.pos-load-error{flex-shrink:0;padding:.35rem 1rem}.pos-header{border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0;gap:.5rem;padding:.65rem 1rem;display:grid;box-shadow:0 1px #0000000a}.pos-header__top{align-items:center;gap:.75rem;min-width:0;display:flex}.pos-header__store{white-space:nowrap;text-overflow:ellipsis;max-width:12rem;font-size:.95rem;font-weight:700;overflow:hidden}@media (width>=900px){.pos-header__store{max-width:18rem}}.pos-header__meta{color:var(--muted);align-items:center;gap:.65rem;margin-left:auto;font-size:.78rem;display:none}@media (width>=600px){.pos-header__meta{display:flex}}.pos-header__count{color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:999px;padding:.25rem .55rem;font-size:.85rem;font-weight:700}.pos-search-wrap{flex:1;min-width:0;position:relative}.pos-search-icon{color:var(--muted);pointer-events:none;font-size:.9rem;position:absolute;top:50%;left:.75rem;transform:translateY(-50%)}.pos-search{border:1px solid var(--border);background:var(--surface-2);width:100%;min-height:44px;font:inherit;border-radius:12px;padding:.55rem 2.25rem;font-size:.95rem}.pos-search-clear{min-width:36px;min-height:36px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:8px;font-size:1.1rem;position:absolute;top:50%;right:.35rem;transform:translateY(-50%)}.pos-header__row2{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.pos-filters{-webkit-overflow-scrolling:touch;flex:1;gap:.35rem;min-width:0;display:flex;overflow-x:auto}.pos-filter-pill{border:1px solid var(--border);background:var(--surface);min-height:36px;font:inherit;cursor:pointer;border-radius:999px;flex-shrink:0;padding:.25rem .75rem;font-size:.8rem;font-weight:600;transition:background .15s,border-color .15s}.pos-filter-pill--passthrough{border-style:dashed;font-weight:700}.pos-filter-pill.active{background:var(--accent);border-color:var(--accent);color:#fff}.pos-imei-hint{color:var(--accent);grid-column:1/-1;margin:0;font-size:.78rem}.pos-ticket-note{border-radius:var(--radius-form-panel,10px);color:#713f12;overflow-wrap:anywhere;word-break:break-word;background:#fffbeb;border:1px solid #e8c97a;min-width:0;max-width:100%;margin:0 0 .75rem;padding:.65rem .85rem}.pos-ticket-note__title{margin-bottom:.35rem;font-size:.8125rem;font-weight:600;line-height:1.35;display:block}.pos-ticket-note__body{margin:0;font-size:.75rem;font-weight:500;line-height:1.45}.pos-layout{grid-template-rows:1fr;grid-template-columns:1fr;min-height:0;display:grid;overflow:hidden}@media (width>=900px){.pos-layout{grid-template-columns:1fr 340px}}@media (width>=1280px){.pos-layout{grid-template-columns:1fr 400px}}.pos-catalog{-webkit-overflow-scrolling:touch;min-height:0;padding:.75rem 1rem;overflow:hidden auto}.pos-grid{grid-template-columns:repeat(2,1fr);gap:.65rem;display:grid}@media (width>=600px){.pos-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}@media (width>=1280px){.pos-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}.pos-product-card{border:1px solid var(--border);background:var(--surface);text-align:left;cursor:pointer;min-height:44px;font:inherit;border-radius:12px;flex-direction:column;align-items:stretch;padding:.65rem;transition:box-shadow .15s,border-color .15s;display:flex;box-shadow:0 1px 3px #0000000d}.pos-product-card:hover:not(:disabled){border-color:color-mix(in srgb, var(--accent) 40%, var(--border));box-shadow:0 4px 12px #00000014}.pos-product-card:disabled{opacity:.5;cursor:not-allowed}.pos-product-card__avatar{background:color-mix(in srgb, var(--accent) 18%, var(--surface-2));width:2.25rem;height:2.25rem;color:var(--accent);border-radius:10px;justify-content:center;align-items:center;margin-bottom:.45rem;font-size:.75rem;font-weight:800;display:flex}.pos-product-card__name{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:.35rem;font-size:.82rem;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.pos-product-card__meta{color:var(--muted);flex-wrap:wrap;flex:1;align-items:center;gap:.3rem .45rem;font-size:.72rem;display:flex}.pos-stock-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.pos-stock-dot--ok{background:#22c55e}.pos-stock-dot--low{background:#f59e0b}.pos-stock-dot--out{background:#ef4444}.pos-type-badge{text-transform:uppercase;letter-spacing:.04em;background:var(--surface-2);color:var(--muted);border-radius:4px;padding:.12rem .35rem;font-size:.62rem;font-weight:700}.pos-product-card__foot{border-top:1px solid var(--border);justify-content:flex-end;align-items:baseline;margin-top:.45rem;padding-top:.35rem;display:flex}.pos-product-card__price{font-size:.95rem;font-weight:800}.pos-ticket{border-left:1px solid var(--border);background:var(--surface);flex-direction:column;min-height:0;display:none;position:relative;overflow:hidden}@media (width>=900px){.pos-ticket{display:flex}}.pos-ticket__head{border-bottom:1px solid var(--border);letter-spacing:.02em;flex-shrink:0;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem 1rem;font-size:.9rem;font-weight:700;display:flex}.pos-sale-date{letter-spacing:0;color:var(--muted);align-items:center;gap:.4rem;margin:0;font-size:.75rem;font-weight:600;display:flex}.pos-sale-date input{font:inherit;color:var(--text);border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:.25rem .4rem;font-weight:600}.pos-sale-date--header{display:none}@media (width<=899px){.pos-sale-date--header{display:flex}.pos-ticket .pos-sale-date{display:none}}.pos-cart-lines{flex:1;min-height:0;padding:.5rem .85rem;overflow-y:auto}.pos-cart-line{border-bottom:1px solid var(--border);padding:.6rem 0}.pos-cart-line:last-child{border-bottom:none}.pos-cart-line__title{font-size:.85rem;font-weight:600}.pos-cart-line__sub{color:var(--muted);margin-top:.15rem;font-size:.72rem}.pos-cart-line__row{flex-wrap:wrap;align-items:center;gap:.35rem;margin-top:.4rem;display:flex}.pos-cart-line__price{border:1px solid var(--border);width:5.25rem;min-height:40px;font:inherit;font-variant-numeric:tabular-nums;border-radius:8px;padding:.35rem .45rem}.pos-stepper{align-items:center;gap:.2rem;display:flex}.pos-stepper button{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;border-radius:8px;min-width:40px;min-height:40px;font-size:1.05rem}.pos-ticket__footer{border-top:1px solid var(--border);background:var(--surface-2);flex-shrink:0;padding:.75rem 1rem 1rem}.pos-total-row{color:var(--muted);justify-content:space-between;padding:.15rem 0;font-size:.88rem;display:flex}.pos-total-row--grand{color:var(--text);border-top:1px dashed var(--border);margin-top:.25rem;padding-top:.35rem;font-size:1.35rem;font-weight:800}.pos-quote-btn{border:1px dashed var(--border);background:var(--surface);width:100%;min-height:44px;font:inherit;cursor:pointer;border-radius:10px;margin-top:.5rem;font-weight:600}.pos-quote-btn:disabled{opacity:.5;cursor:not-allowed}.pos-charge-btn{background:var(--accent);color:#fff;width:100%;min-height:56px;font:inherit;letter-spacing:.03em;cursor:pointer;border:none;border-radius:12px;margin-top:.65rem;font-size:1.05rem;font-weight:800}.pos-charge-btn:disabled{opacity:.45;cursor:not-allowed}.pos-checkout-backdrop{z-index:1000;padding:max(.75rem, env(safe-area-inset-top)) .75rem max(.75rem, env(safe-area-inset-bottom));background:#1c191773;justify-content:center;align-items:center;display:flex;position:fixed;inset:0;overflow-y:auto}.pos-checkout-dialog{background:var(--surface);border:1px solid var(--border);width:100%;max-width:520px;max-height:min(92dvh,760px);box-shadow:var(--shadow-lg);border-radius:14px;flex-direction:column;display:flex;overflow:hidden}.pos-checkout-dialog__head{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:.75rem;padding:1rem 1.1rem .85rem;display:flex}.pos-checkout-dialog__title{margin:0;font-size:1.25rem;font-weight:700;line-height:1.25}.pos-checkout-dialog__meta{color:var(--muted);margin:.2rem 0 0;font-size:.8125rem}.pos-checkout-dialog__body{flex:1;min-height:0;padding:.85rem 1.1rem .5rem;overflow-y:auto}.pos-checkout-dialog__foot{border-top:1px solid var(--border);background:var(--surface-2);flex-shrink:0;padding:.85rem 1.1rem 1rem}.pos-checkout-lines{border-bottom:1px dashed var(--border);margin:0 0 .85rem;padding:0 0 .75rem;list-style:none}.pos-checkout-line{justify-content:space-between;align-items:flex-start;gap:.75rem;padding:.35rem 0;font-size:.8125rem;display:flex}.pos-checkout-line__name{color:var(--text);min-width:0;font-weight:600}.pos-checkout-line__sub,.pos-checkout-line__qty{color:var(--muted);font-weight:500}.pos-checkout-line__amt{font-variant-numeric:tabular-nums;flex-shrink:0;font-weight:600}.pos-checkout-section{margin-bottom:.75rem}.pos-checkout-section__label{letter-spacing:.02em;margin-bottom:.45rem;font-size:.78rem;font-weight:700;display:block}.pos-checkout-section--muted label{color:var(--muted)}.pos-checkout-add-customer{width:100%;margin-top:-.25rem}.pos-payment-panel{flex-direction:column;flex:1;gap:.65rem;min-height:0;padding:.75rem 1rem 1rem;display:flex;overflow-y:auto}.pos-payment-panel label{flex-direction:column;gap:.25rem;font-size:.78rem;font-weight:600;display:flex}.pos-payment-panel select,.pos-payment-panel input,.pos-payment-panel textarea{border:1px solid var(--border);min-height:44px;font:inherit;border-radius:10px;padding:.45rem .55rem}.pos-pay-tiles{grid-template-columns:repeat(auto-fill,minmax(6.75rem,1fr));gap:.45rem;display:grid}.pos-pay-tile{border:2px solid var(--border);background:var(--surface-2);min-height:52px;font:inherit;cursor:pointer;border-radius:12px;padding:.5rem;font-size:.82rem;font-weight:700;transition:border-color .15s,background .15s}.pos-pay-tile.active{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 10%, var(--surface));color:var(--accent)}.pos-pay-tile--disabled,.pos-pay-tile:disabled{opacity:.45;cursor:not-allowed}.pos-tag-chips{flex-wrap:wrap;gap:.35rem;margin-top:.45rem;display:flex}.pos-tag-chip{border:1px solid var(--border);background:var(--surface);min-height:32px;font:inherit;cursor:pointer;border-radius:999px;padding:0 .55rem;font-size:.75rem;font-weight:600}.pos-tag-chip--active{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 12%, var(--surface));color:var(--accent)}.pos-tender-chips{grid-template-columns:repeat(3,1fr);gap:.35rem;display:grid}.pos-tender-chip{border:1px solid var(--border);background:var(--surface);min-height:44px;font:inherit;cursor:pointer;border-radius:10px;font-weight:700}.pos-change-display{text-align:center;background:var(--surface-2);border-radius:12px;padding:.65rem;font-size:.85rem}.pos-change-display strong{margin-top:.2rem;font-size:1.5rem;font-weight:800;display:block}.pos-complete-btn{background:var(--accent);color:#fff;width:100%;min-height:52px;font:inherit;cursor:pointer;border:none;border-radius:12px;margin-top:.25rem;font-size:1rem;font-weight:800}.pos-complete-btn:disabled{opacity:.45;cursor:not-allowed}.pos-mobile-bar{min-height:4.25rem;padding:.5rem 1rem;padding-bottom:max(.5rem, env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);flex-shrink:0;align-items:center;gap:.75rem;display:flex;box-shadow:0 -4px 16px #0000000f}@media (width>=900px){.pos-mobile-bar{display:none}}.pos-mobile-bar__summary{color:var(--muted);flex:1;font-size:.82rem}.pos-mobile-bar__summary strong{color:var(--text);font-size:1.25rem;font-weight:800;display:block}.pos-sheet-backdrop{z-index:80;cursor:pointer;background:#00000073;border:none;padding:0;position:fixed;inset:0}.pos-sheet{z-index:81;background:var(--surface);max-height:min(92dvh,720px);padding-bottom:env(safe-area-inset-bottom);border-radius:16px 16px 0 0;flex-direction:column;display:flex;position:fixed;bottom:0;left:0;right:0;overflow:hidden;box-shadow:0 -8px 32px #0000002e}.pos-sheet__head{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;padding:.85rem 1rem;display:flex}.pos-sheet__body{flex:1;min-height:0;padding:.65rem 1rem 1rem;overflow-y:auto}.pos-sheet__lines{border-bottom:1px solid var(--border);flex-shrink:0;max-height:38dvh;padding:0 .85rem;overflow-y:auto}.pos-variant-block{margin-bottom:.85rem}.pos-variant-block h4{margin:0 0 .35rem;font-size:.85rem}.pos-unit-btn{text-align:left;border:1px solid var(--border);background:var(--surface-2);width:100%;min-height:44px;font:inherit;cursor:pointer;border-radius:10px;margin-bottom:.35rem;padding:.5rem .65rem;display:block}.pos-unit-btn:hover{border-color:var(--accent)}.pos-variant-pick{text-align:left;border:1px solid var(--border);background:var(--surface-2);width:100%;min-height:44px;font:inherit;cursor:pointer;border-radius:10px;margin-bottom:.5rem;padding:.55rem .65rem;display:block}.pos-variant-pick:disabled{opacity:.45;cursor:not-allowed}.pos-variant-pick__main{font-size:.875rem;font-weight:600;display:block}.pos-variant-pick__meta{color:var(--muted);margin-top:.15rem;font-size:.75rem;display:block}.pos-variant-pick__foot{color:var(--muted);margin-top:.25rem;font-size:.8125rem;display:block}.pos-variant-pick:not(:disabled):hover{border-color:var(--accent)}.pos-receipt{text-align:center;padding:.5rem 0}.pos-receipt__amount{margin:.5rem 0;font-size:1.75rem;font-weight:800}.pos-receipt__actions{flex-direction:column;gap:.5rem;margin-top:1rem;display:flex}.pos-invoice-preview-wrap{flex-direction:column;gap:1rem;display:flex}.pos-invoice-preview-wrap .a4-preview-stage{max-height:min(70dvh,640px);position:static;overflow:auto}.pos-invoice-preview-actions{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;display:flex}.pos-invoice-print-only{display:none}@media print{@page{size:A4;margin:0}body.pos-print-invoice *{visibility:hidden}body.pos-print-invoice .pos-invoice-print-only,body.pos-print-invoice .pos-invoice-print-only *{visibility:visible}body.pos-print-invoice .pos-invoice-print-only{width:210mm;height:297mm;position:absolute;top:0;left:0;overflow:hidden;display:block!important}body.pos-print-invoice .pos-invoice-print-only .a4-sheet{aspect-ratio:210/297;width:420px;max-width:420px;box-shadow:none;transform-origin:0 0;transform:scale(calc(210mm / 420px));-webkit-print-color-adjust:exact;print-color-adjust:exact;overflow:visible}}.pos-empty{color:var(--muted);text-align:center;padding:2rem 1rem;font-size:.9rem}.main-content--pos .card{margin:1rem}:root{--bg:#fcf7f8;--surface:#fff;--surface-2:#f3eef0;--surface-hover:#e8e2e6;--text:#122b51;--muted:#5c6578;--border:#e2d9dc;--accent:#275dad;--accent-soft:#e4edf8;--sidebar-bg:#1f150c;--sidebar-text:#f4f7fb;--sidebar-muted:#a8b8d0;--sidebar-border:#ffffff14;--sidebar-hover:#ffffff0f;--sidebar-active-bar:#412d15;--sidebar-active-bg:#412d158c;--font-ui:"Inter", system-ui, sans-serif;--font-mono:"IBM Plex Mono", ui-monospace, monospace;--font-serif:"Inter", system-ui, sans-serif;--shadow-sm:0 1px 2px #122b5114;--shadow-lg:0 10px 40px #122b511f;--line-height-tight:1.35;--radius-control:6px;--pad-page-y:1.25rem;--pad-page-x:1.5rem;--pad-card:.85rem 1rem;--pad-control:.4rem .6rem;--pad-form-control:.55rem .65rem;--pad-form-card:1.25rem;--gap-section:.85rem;--gap-form:.5rem;--gap-form-stack:1rem;--gap-form-label:.4rem;--gap-form-columns:1.5rem;--gap-form-actions:.65rem;--radius-form-panel:10px;--text-page-title:1.375rem;--text-table:.8125rem;font-family:var(--font-ui);line-height:var(--line-height-tight);color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{font-size:14px;line-height:var(--line-height-tight);margin:0}.with-icon{align-items:center;gap:.4rem;display:inline-flex}.with-icon svg{flex-shrink:0}.nav-item__icon{opacity:.85;width:16px;height:16px}.nav-section-toggle__icon{opacity:.75;width:14px;height:14px;margin-right:.35rem}.row-action__icon{width:14px;height:14px}code{background:var(--surface-2);border-radius:4px;padding:.1em .35em;font-family:ui-monospace,monospace;font-size:.85em}.dash-links{margin:0;padding-left:1.25rem}.dash-links a{color:var(--accent)}.tabs{margin-bottom:var(--gap-section);gap:.25rem;display:flex}.tab{border:1px solid var(--border);background:var(--surface);padding:var(--pad-control);font-size:var(--text-table);cursor:pointer;text-transform:capitalize;border-radius:999px}.tab.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.inline-filter{align-items:center;gap:var(--gap-form);margin-bottom:var(--gap-section);font-size:var(--text-table);display:flex}.store-actions{margin:0;padding:0;list-style:none}.store-actions li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:.5rem 0;display:flex}.stat-grid{gap:var(--gap-form);margin-bottom:var(--gap-section);grid-template-columns:repeat(auto-fill,minmax(120px,1fr));display:grid}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-control);padding:var(--pad-card);box-shadow:var(--shadow-sm)}.stat-label{color:var(--muted);text-transform:capitalize;font-size:.75rem}.stat-value{margin-top:.15rem;font-size:1.1rem;font-weight:700}.date-filter-row{align-items:flex-end;gap:var(--gap-form) var(--gap-section);flex-wrap:wrap;display:flex}.date-filter-row label{flex-direction:column;gap:.25rem;min-width:10rem;font-size:.8rem;font-weight:500;display:flex}.date-filter-row label input{padding:var(--pad-control);border-radius:var(--radius-control);border:1px solid var(--border);font:inherit}.date-filter-row .btn{flex-shrink:0;margin-bottom:0}.filter-row{align-items:flex-end;gap:var(--gap-form) var(--gap-section);margin-bottom:var(--gap-section);flex-wrap:wrap;display:flex}.filter-row label{flex-direction:column;gap:.25rem;font-size:.8rem;font-weight:500;display:flex}.invoice-settings-grid{grid-template-columns:minmax(340px,440px) minmax(420px,1fr);align-items:start;gap:1.25rem;display:grid}@media (width<=960px){.invoice-settings-grid{grid-template-columns:1fr}}.invoice-settings-section{grid-column:1/-1;margin:0;font-size:1rem}.invoice-settings-section:not(:first-child){margin-top:.5rem}.invoice-field-span{grid-column:1/-1}.pos-cash-lock{border:1px solid var(--border-subtle,#0000001f);background:var(--surface-muted,#00000008);border-radius:.5rem;flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem;padding:.65rem .85rem;display:flex}.pos-cash-lock__label{font-size:.8rem;font-weight:500}.pos-cash-lock__value{color:var(--text-muted,#5c5c5c);font-size:.9rem}.invoice-field-label{margin-bottom:.35rem;font-size:.8rem;font-weight:500;display:block}.template-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;display:grid}@media (width<=520px){.template-card-grid{grid-template-columns:1fr}}.template-card{border:2px solid var(--border);background:var(--surface);cursor:pointer;text-align:left;font:inherit;border-radius:10px;flex-direction:column;align-items:stretch;gap:.35rem;padding:.5rem;display:flex}.template-card--selected{background:var(--accent-soft)}.template-card__name{font-size:.85rem;font-weight:600}.template-card__sub{font-size:.7rem;line-height:1.3}.invoice-template-thumb{aspect-ratio:210/297;border:1px solid var(--border);background:#fff;border-radius:4px;flex-direction:column;display:flex;overflow:hidden}.invoice-template-thumb__banner{flex-shrink:0;height:28%}.invoice-template-thumb__banner--bold{border-bottom:3px solid #000}.invoice-template-thumb__body{flex-direction:column;flex:1;gap:4px;padding:6px 8px;display:flex}.invoice-template-thumb__body--compact{padding-top:8px}.invoice-template-thumb__classic-head{justify-content:space-between;align-items:flex-start;margin-bottom:4px;display:flex}.invoice-template-thumb__logo{border-radius:2px;width:14px;height:14px}.invoice-template-thumb__lines-end{flex-direction:column;flex:1;align-items:flex-end;gap:3px;margin-left:8px;display:flex}.invoice-template-thumb__compact-head{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.invoice-template-thumb__bar{width:28px;height:3px}.invoice-template-thumb__line{background:#d1d5db;border-radius:1px;width:100%;height:2px}.invoice-template-thumb__line.wide{height:3px;margin-bottom:2px}.invoice-template-thumb__line.medium{width:55%}.invoice-template-thumb__line.short{width:75%}.invoice-template-thumb__line.thin{height:1.5px}.invoice-template-thumb__line.accent{opacity:.85;height:3px}.invoice-template-thumb__total-box{border:1.5px solid;border-radius:2px;height:18px;margin-top:auto}.swatch-row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.swatch-btn{cursor:pointer;border:2px solid #0000;border-radius:50%;width:28px;height:28px;padding:0}.swatch-btn--selected{border-color:var(--text);box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--text)}.swatch-custom{flex-direction:column;gap:.2rem;margin-left:.25rem;font-size:.75rem;font-weight:500;display:flex}.swatch-custom input[type=color]{border:1px solid var(--border);cursor:pointer;border-radius:6px;width:36px;height:28px;padding:0}.invoice-save-row{align-items:center;gap:.75rem;display:flex}.invoice-saved{color:#0f766e;font-size:.85rem;font-weight:600}.a4-preview-stage{top:var(--pad-page-y,1rem);background:var(--surface-2);border:1px solid var(--border);border-radius:12px;justify-content:center;padding:.5rem;display:flex;position:sticky}.a4-sheet{aspect-ratio:210/297;color:#111827;background:#fff;flex-direction:column;gap:6px;width:100%;max-width:420px;padding:clamp(10px,2.5vw,18px);font-size:7px;line-height:1.35;display:flex;overflow:hidden;box-shadow:0 1px 2px #0f172a0f,0 8px 24px #0f172a1f}.a4-sheet--roboto{font-family:Roboto,system-ui,sans-serif}.a4-sheet--noto{font-family:Noto Sans,system-ui,sans-serif}.a4-sheet--compact{gap:4px;padding:clamp(8px,2vw,12px);font-size:6px}.a4-header--modern{margin:-clamp(10px, 2.5vw, 18px) -clamp(10px, 2.5vw, 18px) 0;color:#fff;justify-content:space-between;align-items:center;padding:8px 10px;display:flex}.a4-header--bold{margin:-clamp(10px, 2.5vw, 18px) -clamp(10px, 2.5vw, 18px) 0;color:#fff;border-bottom:4px solid #000;padding:10px 12px}.a4-header--classic{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.a4-header--compact{grid-template-columns:1fr auto;align-items:start;gap:4px 8px;display:grid}.a4-header__left{flex-direction:column;gap:4px;display:flex}.a4-header__logo{font-size:18px;line-height:1}.a4-header__title{font-size:14px;font-weight:700}.a4-header__title--lg{font-size:16px;font-weight:800}.a4-header__title-sm{font-size:10px;font-weight:700}.a4-header__store{font-size:8px;font-weight:600}.a4-header__badge{opacity:.95;font-size:7px;font-weight:600}.a4-header__brand-slot{text-align:right;max-width:55%}.a4-brand{align-items:center;gap:6px;display:flex}.a4-brand--compact{gap:4px}.a4-brand--inverted .a4-brand__company,.a4-brand--inverted .a4-brand__store{color:#fff}.a4-brand__logo{object-fit:contain;flex-shrink:0;width:28px;height:28px}.a4-brand--compact .a4-brand__logo{width:22px;height:22px}.a4-brand__text{text-align:left;min-width:0}.a4-header__brand-slot .a4-brand__text{text-align:right}.a4-brand__company{font-size:8px;font-weight:700;line-height:1.2}.a4-brand--compact .a4-brand__company{font-size:7px}.a4-brand__store{opacity:.85;font-size:6px;font-weight:500;line-height:1.2}.a4-header__accent-bar{align-self:center;width:36px;height:3px}.a4-address{font-family:inherit;font-size:inherit;white-space:pre-wrap;text-align:right;color:#374151;margin:0}.a4-address--right{margin-top:4px}.a4-address--compact{grid-area:1/2/span 2;font-size:5.5px}.a4-meta{justify-content:space-between;gap:8px;font-size:6.5px;display:flex}.a4-bill-to{text-align:right}.a4-items{border-collapse:collapse;width:100%;font-size:inherit;border:1px solid #9ca3af}.a4-items th,.a4-items td{vertical-align:top;border:1px solid #9ca3af;padding:3px 4px}.a4-sheet--compact .a4-items th,.a4-sheet--compact .a4-items td{padding:2px 3px}.a4-items th{text-align:left;background:#e5e7eb;font-weight:700}.a4-items th:nth-child(n+3),.a4-items td:nth-child(n+3){text-align:center}.a4-items__head--accent th{background:inherit}.a4-item-sub{font-weight:600}.a4-item-meta{color:#9ca3af;font-size:.95em}.a4-summary{border-collapse:collapse;border:1px solid #9ca3af;width:100%;font-size:6px}.a4-summary td{text-align:center;border:1px solid #9ca3af;padding:3px 4px}.a4-summary__status{color:#fff;font-weight:600}.a4-totals-bold__box{background:#f3f4f6;border:2px solid;justify-content:space-between;margin-bottom:4px;padding:6px 8px;font-size:7px;font-weight:700;display:flex}.a4-notes{border:1px solid;margin-top:auto}.a4-notes__bar{color:#fff;text-align:center;padding:3px;font-size:7px;font-weight:700}.a4-notes p{text-align:center;color:#374151;margin:0;padding:6px 8px;font-size:6px}.a4-thank-you{text-align:center;margin:0;font-size:6px;font-weight:700}.checkbox-row{align-items:center;flex-direction:row!important;gap:.5rem!important}.purchase-form-header{gap:var(--gap-form) var(--gap-section);margin-bottom:var(--gap-section);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}@media (width<=520px){.purchase-form-header{grid-template-columns:1fr}}.purchase-form-header label{flex-direction:column;gap:.25rem;font-size:.8rem;font-weight:500;display:flex}.purchase-form-header input,.purchase-form-header select,.purchase-form-remarks textarea{padding:var(--pad-control);border-radius:var(--radius-control);border:1px solid var(--border);font:inherit}.purchase-form-remarks{margin-bottom:var(--gap-section);flex-direction:column;gap:.2rem;font-size:.75rem;font-weight:500;display:flex}.purchase-form-remarks textarea{resize:vertical;min-height:2.25rem}.purchase-form-lines-head{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.purchase-form-lines-head h3{margin:0;font-size:.85rem}.purchase-line-card{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;margin-bottom:.65rem;padding:.75rem 1rem}.purchase-line-card-head{justify-content:space-between;align-items:center;margin-bottom:.65rem;display:flex}.purchase-line-card-head span{color:var(--muted);font-size:.8rem;font-weight:600}.purchase-line-grid{gap:var(--gap-form);grid-template-columns:1fr;display:grid}.purchase-line-grid.two-col{grid-template-columns:repeat(3,minmax(0,1fr))}@media (width<=520px){.purchase-line-grid.two-col{grid-template-columns:1fr}}.purchase-line-grid label{flex-direction:column;gap:.25rem;font-size:.8rem;font-weight:500;display:flex}.purchase-line-grid input,.purchase-line-grid select{padding:var(--pad-control);border-radius:var(--radius-control);border:1px solid var(--border);font:inherit}.purchase-line-subtotal{color:var(--muted);text-align:right;margin-top:.5rem;font-size:.8rem}.purchase-line-subtotal strong{color:var(--text)}.purchase-form-footer{justify-content:space-between;align-items:center;gap:var(--gap-form);margin-top:var(--gap-section);padding-top:var(--gap-section);border-top:1px solid var(--border);flex-wrap:wrap;display:flex}.purchase-form-total{font-size:.9rem;font-weight:700}.purchase-form-actions{flex-wrap:wrap;gap:.5rem;display:flex}.purchase-line-entry{border:1px dashed var(--border);border-radius:var(--radius-control);padding:var(--pad-card);margin-bottom:var(--gap-form);background:var(--surface-2)}.purchase-line-add-row{align-items:center;gap:var(--gap-section);margin-top:var(--gap-form);flex-wrap:wrap;display:flex}.purchase-preserve-label{font-size:var(--text-table);color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.35rem;font-weight:500;display:flex}.purchase-preserve-label input{margin:0}.purchase-form-lines-head+.purchase-form-lines-head{margin-top:var(--gap-section)}.purchase-items-table{margin-bottom:.5rem}.purchase-imei-modal-fields{gap:var(--gap-form);margin:var(--gap-form) 0;grid-template-columns:repeat(auto-fill,minmax(12rem,1fr));display:grid}.purchase-imei-modal-fields label{font-size:var(--text-table);flex-direction:column;gap:.35rem;font-weight:500;display:flex}.modal-actions{justify-content:flex-end;gap:var(--gap-section);margin-top:var(--gap-form);display:flex}.purchase-line-variant-row{align-items:flex-end;gap:var(--gap-section);margin-top:var(--gap-form);flex-wrap:wrap;display:flex}.purchase-line-variant-select{min-width:12rem;font-size:var(--text-table);flex-direction:column;flex:12rem;gap:.35rem;font-weight:500;display:flex}.purchase-line-variant-select select{width:100%;padding:var(--pad-control);border-radius:var(--radius-control);border:1px solid var(--border);font:inherit}
