.auth-page{background:linear-gradient(150deg,#e5f3e9 0%,#f5f8fa 50%,#e8f1f0 100%);justify-content:center;align-items:center;min-height:100dvh;padding:24px;display:flex}.auth-card{background:#fff;border:1px solid #dce7e0;border-radius:20px;width:min(100%,460px);padding:clamp(22px,5vw,38px);box-shadow:0 18px 60px #173f3022}.auth-brand{align-items:center;gap:12px;margin-bottom:30px;display:flex}.auth-logo{color:#fff;background:#176446;border-radius:14px;place-items:center;width:52px;height:52px;font-size:30px;font-weight:800;display:grid}.auth-brand h1{color:#143d2f;margin:0 0 4px;font-size:20px}.auth-brand p{color:#71847a;margin:0;font-size:13px}.auth-card h2{color:#193a2e;margin-bottom:8px;font-size:24px}.auth-intro{color:#5e7468;margin-bottom:24px;font-size:13px;line-height:1.6}.auth-form{gap:10px;display:grid}.auth-form label{color:#355246;font-size:13px;font-weight:700}.auth-form input{color:#1f3429;background:#fff;border:1px solid #d0ddd5;border-radius:11px;width:100%;min-width:0;height:48px;padding:0 14px;font-size:16px}.auth-form input:focus{border-color:#248657;outline:3px solid #cdebd8}.auth-submit{width:100%;min-height:48px;margin-top:12px;font-size:15px}.auth-help{color:#7b8c83;margin:19px 0 0;font-size:12px;line-height:1.6}.auth-user-info{align-items:center;gap:12px;min-width:0;display:flex}.auth-user-email{color:#557063;text-overflow:ellipsis;white-space:nowrap;max-width:240px;font-size:12px;display:inline-block;overflow:hidden}.auth-signout{color:#15563a;background:#f5faf7;border:1px solid #d6e3dc;border-radius:9px;padding:9px 13px;font-size:13px;font-weight:700}.auth-signout:hover{background:#e6f2eb}.auth-local-warning{color:#66521d;background:#fff9e7;border-color:#f3dda1;line-height:1.6}@media (width<=750px){.auth-page{padding:14px}.auth-card{border-radius:15px}.auth-user-email{max-width:120px}.auth-user-info{margin-left:auto}.auth-signout{padding:9px 10px}}:root{color:#203038;font-synthesis:none;text-rendering:optimizelegibility;--bg:#f4f7f8;--panel:#fff;--line:#e4eaed;--text:#203038;--muted:#667883;--brand:#0f6243;--brand-dark:#0b4630;--brand-soft:#e6f5ec;--danger:#b9382a;background:#f4f7f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);min-width:320px;color:var(--text);margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}h1,h2,h3,p{margin-top:0}.app-shell{min-height:100%;display:flex}.sidebar{color:#ebf8f1;z-index:30;background:linear-gradient(#113f33,#0d3329);flex-direction:column;flex-shrink:0;width:270px;height:100vh;display:flex;position:sticky;top:0;box-shadow:6px 0 24px #08241c1a}.brand{border-bottom:1px solid #ffffff1f;align-items:center;gap:12px;padding:24px 20px 20px;display:flex}.brand-icon{color:#10382f;background:#c3ecd2;border-radius:14px;place-items:center;width:44px;height:44px;font-size:28px;font-weight:800;display:grid}.brand b{font-size:18px;line-height:1.1;display:block}.brand small{color:#b5d2c3;margin-top:4px;font-size:12px;display:block}.sidebar nav{flex-direction:column;gap:6px;padding:14px 10px;display:flex;overflow:auto}.nav-item{color:#d7e6de;text-align:left;background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;padding:12px;transition:all .16s;display:flex}.nav-item:hover{background:#ffffff18}.nav-item.active{color:#164332;background:#d8f0dc;box-shadow:inset 0 0 0 1px #d2ead8}.nav-icon{flex-shrink:0;justify-content:center;width:24px;font-size:18px;display:inline-flex}.nav-text{flex-direction:column;min-width:0;display:flex}.nav-text b{font-size:14px;font-weight:700}.nav-text small{color:inherit;opacity:.72;font-size:11px}.side-bottom{border-top:1px solid #ffffff1c;gap:8px;margin-top:auto;padding:18px 20px;display:grid}.side-bottom small{color:#9bb8ad}.online-pill{color:#a7e6b6;font-size:12px}.main{flex:1;min-width:0}.topbar{z-index:15;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);background:#ffffffeb;justify-content:space-between;align-items:center;height:74px;padding:0 24px;display:flex;position:sticky;top:0}.topbar-left{align-items:center;gap:14px;min-width:0;display:flex}.topbar-title{letter-spacing:-.4px;color:#163d31;margin:4px 0 0;font-size:22px;line-height:1.1}.breadcrumb{letter-spacing:1px;color:#7a8b94;font-size:11px;font-weight:700}.top-status{color:#16804a;background:#ecf8ef;border:1px solid #cfe8d6;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:700}.hamburger{border:1px solid var(--line);background:#fff;border-radius:12px;width:44px;height:44px;font-size:24px;display:none}.content{max-width:1480px;margin:0 auto;padding:24px}.page-title{margin-bottom:18px}.page-title h1{color:#173d31;letter-spacing:-.8px;margin:0 0 8px;font-size:30px;font-weight:800}.page-title p{color:#70818a;max-width:950px;margin:0;font-size:14px;line-height:1.65}.panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;min-width:0;margin-bottom:18px;padding:20px;box-shadow:0 4px 20px #143a3014}.panel-head{justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px;display:flex}.panel-head h2{color:#233e31;margin:0;font-size:16px}.sub-panel{background:#fafdfb;border:1px solid #dce8e0;border-radius:16px;margin-top:14px;padding:16px}.sub-panel-head h3{color:#174936;margin:0 0 6px;font-size:15px}.sub-panel-head p{color:#70818a;margin:0;font-size:13px;line-height:1.6}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px;display:grid}.compact-grid,.product-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.field{flex-direction:column;gap:7px;min-width:0;display:flex}.field span{color:#50616b;font-size:12px;font-weight:700}.field input,.field select{color:#27373f;background:#fff;border:1px solid #dbe4e7;border-radius:12px;width:100%;height:46px;padding:0 12px;font-size:14px}.field input:focus,.field select:focus{border-color:#43845b;outline:3px solid #d9efdf}.form-action{justify-content:flex-start;align-items:end;display:flex}.preview-card .preview-box{color:#38524a;background:#f6fbf7;border:1px dashed #cfe0d6;border-radius:12px;align-items:center;min-height:46px;padding:12px;line-height:1.55;display:flex}.btn{border:none;border-radius:12px;min-height:42px;padding:10px 16px;font-size:14px;font-weight:700}.btn.primary{background:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-dark)}.btn.secondary{color:#185236;background:#ecf3ef}.btn.secondary:hover{background:#dfebe3}.btn.danger{color:#b42318;background:#fbe7e5}.table-scroll{border-radius:12px;width:100%;margin-bottom:10px;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:620px}th{text-align:left;color:#687b84;white-space:nowrap;background:#f6f8f8;padding:12px 11px;font-size:12px}td{vertical-align:middle;border-bottom:1px solid #eff2f3;padding:12px 11px;font-size:13px}tbody tr:hover{background:#fbfdfb}.empty{text-align:center;color:#9aa6aa;padding:38px 8px;font-size:14px}.form-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:18px;margin-top:16px;display:flex}.form-footer span{font-size:13px}.two-col{grid-template-columns:1.06fr .94fr;align-items:start;gap:18px;display:grid}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px;display:grid}.summary{border:1px solid var(--line);background:#fff;border-radius:16px;flex-direction:column;gap:8px;min-width:0;padding:18px;display:flex}.summary>span{color:#6f8184;font-size:13px}.summary strong{color:#174936;letter-spacing:-.5px;font-size:24px}.summary small{color:#77868d}.list{gap:0;display:grid}.list-row{border-bottom:1px solid #eef1f1;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;font-size:13px;display:flex}.list-row:last-child{border-bottom:0}.list-row small{color:#88969a;margin-top:5px;display:block}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.product-tile{text-align:left;background:#fafcfb;border:1px solid #dfe9e3;border-radius:16px;flex-direction:column;align-items:flex-start;gap:9px;min-height:152px;padding:16px;display:flex}.product-tile:hover{background:#f4faf5;border-color:#369569}.product-tile strong{font-size:14px;line-height:1.45}.product-tile b{color:#126b3e}.product-tile small{color:#839391;font-size:11px;line-height:1.5}.kind-tag{color:#2c8153;letter-spacing:.4px;background:#e1f4e8;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800}.checkout-summary{background:#f0f8f2;border-radius:14px;gap:12px;margin:10px 0 18px;padding:15px;display:grid}.checkout-summary div{justify-content:space-between;font-size:13px;display:flex}.checkout-summary strong{color:#176b41;font-size:20px}.qty-input{border:1px solid #d6e1db;border-radius:9px;max-width:84px;padding:7px}.link{color:#116c47;background:0 0;border:0;padding:4px;font-weight:700}.danger-text{color:#b82d27}.muted,.hint{color:#7e8c91;font-size:13px;line-height:1.65}.hint{margin:14px 0 0}.notice{background:#e8f3e9;border:1px solid #bfe4c8;border-radius:12px;margin:0 0 17px;padding:13px 15px;font-size:13px}.notice.error{color:#993122;background:#fff1ed;border-color:#ffbdb1;justify-content:space-between;display:flex}.notice.error button{color:#a63622;background:0 0;border:0;font-size:22px}.notice.success{color:#147247}.chips{flex-wrap:wrap;gap:9px;display:flex}.chip{background:#f1f6f3;border-radius:9px;padding:9px 12px;font-size:12px}.status{border-radius:999px;padding:5px 8px;font-size:11px;font-weight:700}.status.warn{color:#9b6312;background:#fff3d7}.status.ok{color:#267b4e;background:#e0f4e7}.negative{color:#c14435;font-weight:700}.positive{color:#198850;font-weight:700}.button-row{flex-wrap:wrap;gap:10px;display:flex}code{color:#527366;font-size:12px}.backdrop{display:none}.product-filters{flex-wrap:wrap;gap:10px;margin-bottom:16px;display:flex}.product-filters input,.product-filters select{color:#27373f;background:#fff;border:1px solid #dbe4e7;border-radius:12px;height:44px;padding:0 12px}.product-filters input{flex:1;min-width:200px}.product-row-actions{flex-wrap:wrap;align-items:center;gap:7px;min-width:170px;display:flex}.product-form-buttons{margin-top:13px}.pager{color:#60726b;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;font-size:12px;display:flex}.pager>div{gap:8px;display:flex}.pager button{color:#22573b;background:#edf5ef;border:1px solid #c9e0d2;border-radius:8px;padding:7px 13px}.pager button:disabled{opacity:.4}.toggle-label{align-items:center;gap:8px;margin:12px 0;font-size:13px;display:flex}.toggle-label input{width:17px;height:17px}.customer-fields{border-top:1px solid #e7eeea;margin-top:15px;padding-top:16px}.customer-fields h3{color:#174d36;font-size:15px}@media (width<=1200px){.two-col{grid-template-columns:1fr}.stats,.form-grid,.product-form-grid,.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=900px){.sidebar{width:min(82vw,300px);transition:transform .2s;position:fixed;top:0;left:0;transform:translate(-100%)}.sidebar.open{transform:translate(0)}.backdrop{z-index:19;background:#0007;border:0;display:block;position:fixed;inset:0}.hamburger{place-items:center;display:inline-grid}.topbar{height:68px;padding:0 14px}.topbar-title{font-size:20px}.content{padding:16px 12px 28px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.summary{padding:14px}.summary strong{font-size:19px}.page-title h1{font-size:24px}.page-title p{font-size:13px}.panel{border-radius:16px;padding:14px}.form-grid,.product-form-grid,.compact-grid,.product-grid{grid-template-columns:1fr}.form-footer{align-items:stretch}.form-footer>.btn,.button-row>.btn{width:100%}.top-status{padding:7px 10px;font-size:11px}}@media (width<=600px){.content{padding:12px 10px 22px}.stats{grid-template-columns:1fr}.panel{padding:12px}.product-filters input,.product-filters select{width:100%}.topbar-right{display:none}.topbar-title{font-size:18px}.table-scroll{margin-inline:-4px;padding-inline:4px}}.order-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:14px;display:grid}.order-detail-grid p{color:#465b56;font-size:13px;line-height:1.9}.sub-panel .button-row{margin-top:14px}.preview-box{overflow-wrap:anywhere;background:#f6faf7;border-radius:12px;padding:12px;font-size:13px;line-height:1.6;display:block}@media (width<=750px){.order-detail-grid{grid-template-columns:1fr}}.receipt-modal{z-index:9999;color:#23343b;background:#e9eff0;grid-template-columns:minmax(280px,340px) minmax(0,1fr);font-family:Arial,Helvetica,sans-serif;display:grid;position:fixed;inset:0}.receipt-toolbar{background:#fff;border-right:1px solid #dbe5e3;min-width:0;padding:20px;overflow-y:auto}.receipt-toolbar-head{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px;display:flex}.receipt-toolbar-head strong{color:#164632;font-size:18px;display:block}.receipt-toolbar-head span{color:#6c7f83;margin-top:6px;font-size:12px;line-height:1.4;display:block}.receipt-close{background:#f3f8f5;border:1px solid #dce8e1;border-radius:9px;flex-shrink:0;width:36px;height:36px;font-size:24px;line-height:1}.receipt-settings{gap:13px;display:grid}.receipt-settings label{color:#4f646a;gap:6px;min-width:0;font-size:12px;font-weight:700;display:grid}.receipt-settings input:not([type=checkbox]),.receipt-settings select{color:#26363d;background:#fff;border:1px solid #cfdfda;border-radius:9px;width:100%;min-width:0;height:42px;padding:0 11px;font-size:14px}.receipt-settings .receipt-check{align-items:center;gap:9px;line-height:1.5;display:flex}.receipt-check input{width:18px;height:18px}.receipt-actions{grid-template-columns:1fr 1fr;gap:8px;margin:18px 0;display:grid}.receipt-btn{color:#174b35;background:#fff;border:1px solid #c5d9d0;border-radius:10px;min-height:44px;padding:9px 12px;font-weight:700}.receipt-primary{color:#fff;background:#12633f;border-color:#12633f}.receipt-help{color:#61737c;font-size:12px;line-height:1.65}.receipt-preview-area{justify-content:center;align-items:flex-start;min-width:0;padding:25px 16px;display:flex;overflow:auto}.receipt-sheet{color:#111;overflow-wrap:anywhere;background:#fff;flex-shrink:0;max-width:100%;padding:12px;font-size:12px;line-height:1.4;box-shadow:0 6px 35px #1f363426}.receipt-sheet.paper-58{width:58mm;padding:3mm;font-size:10px}.receipt-sheet.paper-80{width:80mm;padding:4mm;font-size:11px}.receipt-sheet.paper-A5{width:148mm;min-height:210mm;padding:12mm;font-size:12px}.receipt-sheet.paper-A4{width:210mm;min-height:297mm;padding:16mm;font-size:13px}.receipt-brand{text-align:center;margin-bottom:10px}.receipt-brand h2{word-break:break-word;margin:0 0 5px;font-size:1.55em;font-weight:800}.receipt-brand h3{margin:12px 0 0;font-size:1.25em;font-weight:800}.receipt-info{border-top:1px dashed #888;border-bottom:1px dashed #888;gap:4px;padding:9px 0;display:grid}.receipt-info span{font-weight:700}.receipt-items{table-layout:fixed;border-collapse:collapse;width:100%;min-width:0;margin:10px 0}.receipt-items th,.receipt-items td{color:#111;vertical-align:top;word-wrap:break-word;background:0 0;border:0;padding:5px 2px;font-size:1em}.receipt-items th{text-align:left;border-bottom:1px dashed #777;font-weight:700}.receipt-items th:first-child,.receipt-items td:first-child{text-align:left;width:42%}.receipt-items th:nth-child(2),.receipt-items td:nth-child(2){text-align:center;width:10%}.receipt-items th:nth-child(3),.receipt-items td:nth-child(3),.receipt-items th:nth-child(4),.receipt-items td:nth-child(4){text-align:right;width:24%}.receipt-items td small{color:#555;font-size:.86em;display:block}.paper-58 .receipt-items th:nth-child(3),.paper-58 .receipt-items td:nth-child(3){display:none}.paper-58 .receipt-items th:first-child,.paper-58 .receipt-items td:first-child{width:54%}.paper-58 .receipt-items th:nth-child(2),.paper-58 .receipt-items td:nth-child(2){width:12%}.paper-58 .receipt-items th:nth-child(4),.paper-58 .receipt-items td:nth-child(4){width:34%}.receipt-totals{border-top:1px dashed #888;gap:5px;padding-top:8px;display:grid}.receipt-totals>div,.receipt-payments>div{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.receipt-totals b,.receipt-payments b{white-space:nowrap;text-align:right}.receipt-grand{border-top:1px solid #333;border-bottom:1px solid #333;padding:7px 0;font-size:1.1em;font-weight:800}.receipt-outstanding{margin:5px 0;font-weight:800}.receipt-payments{border-top:1px dashed #888;gap:5px;margin-top:10px;padding-top:9px;font-size:.94em;display:grid}.receipt-payments>strong{margin-bottom:4px}.receipt-note{border-top:1px dashed #888;margin-top:12px;padding-top:8px}.receipt-foot{text-align:center;border-top:1px dashed #888;margin-top:14px;padding-top:12px}.receipt-foot p{margin:0 0 6px;font-weight:600}.receipt-foot small{color:#444;font-size:.82em}@media (width<=850px){.receipt-modal{flex-direction:column;display:flex}.receipt-toolbar{border-bottom:1px solid #dbe5e3;border-right:0;flex-shrink:0;max-height:46vh;padding:12px;overflow-y:auto}.receipt-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.receipt-settings-wide,.receipt-settings .receipt-check{grid-column:1/-1}.receipt-actions{margin:10px 0}.receipt-preview-area{flex:1;padding:14px 8px;overflow:auto}.receipt-sheet.paper-A5,.receipt-sheet.paper-A4{flex-shrink:1;width:100%;min-height:0;padding:14px}.receipt-help{margin-bottom:0}}@media (width<=430px){.receipt-toolbar{max-height:51vh}.receipt-settings{gap:7px}.receipt-settings input:not([type=checkbox]),.receipt-settings select{height:38px}.receipt-toolbar-head{margin-bottom:10px}.receipt-preview-area{justify-content:flex-start}.receipt-sheet.paper-58{max-width:100%}}@media print{html,body{background:#fff!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important}body>#root{display:none!important}body>.receipt-modal{background:#fff!important;width:auto!important;height:auto!important;display:block!important;position:static!important;inset:auto!important;overflow:visible!important}.receipt-toolbar{display:none!important}.receipt-preview-area{width:auto!important;height:auto!important;margin:0!important;padding:0!important;display:block!important;position:static!important;overflow:visible!important}.receipt-sheet{break-inside:auto;box-shadow:none!important;border:0!important;max-width:none!important;min-height:0!important;margin:0!important}.receipt-sheet.paper-58{width:58mm!important;padding:2mm!important}.receipt-sheet.paper-80{width:80mm!important;padding:3mm!important}.receipt-sheet.paper-A5,.receipt-sheet.paper-A4{width:100%!important;padding:0!important}.receipt-items{min-width:0!important}.receipt-items tr{break-inside:avoid}}.nav-item{min-width:0;position:relative}.nav-text{flex:1}.stock-nav-badge{color:#fff;background:#ef4444;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;min-width:23px;height:23px;padding:0 6px;font-size:12px;font-weight:800;line-height:1;display:inline-flex}.nav-item.active .stock-nav-badge{color:#fff;background:#b91c1c}.stock-title-badge{vertical-align:middle;color:#991b1b;letter-spacing:0;background:#fee2e2;border-radius:999px;margin-left:8px;padding:4px 9px;font-size:11px;font-weight:750;display:inline-flex}.stock-alert-banner{color:#92400e;text-align:left;background:#fffbeb;border:1px solid #fed7aa;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;width:100%;margin-bottom:16px;padding:13px 15px;font-size:13px;line-height:1.5;display:flex}.stock-alert-banner:hover{background:#fff2d8}@media (width<=600px){.stock-alert-banner{flex-direction:column;align-items:flex-start}.stock-title-badge{font-size:10px}.nav-item{min-height:45px}}.cloud-id{overflow-wrap:anywhere;word-break:break-word;text-align:right;max-width:65%}@media (width<=650px){.cloud-id{max-width:60%;font-size:11px}.list-row{min-width:0}.list-row>b{overflow-wrap:anywhere;text-align:right}}.catalog-sync-list{gap:10px;margin-top:14px;display:grid}.catalog-sync-row{background:#fafdfb;border:1px solid #dfe8e3;border-radius:12px;justify-content:space-between;align-items:center;gap:14px;padding:14px;display:flex}.catalog-sync-row>div{flex-direction:column;gap:6px;min-width:0;display:flex}.catalog-sync-row strong{color:#174936;font-size:14px}.catalog-sync-row small{color:#667883;font-size:12px}@media (width<=600px){.catalog-sync-row{flex-direction:column;align-items:stretch}.catalog-sync-row .btn{width:100%}}
