@import "https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap";.crm-map-canvas svg{filter:drop-shadow(0 5px 8px #0c423d29);width:100%;height:100%;min-height:610px;padding:8px;display:block}.crm-province-shape{cursor:pointer;outline:none;transition:opacity .15s,filter .15s}.crm-province-shape:hover,.crm-province-shape:focus{opacity:.78;filter:brightness(.88);stroke:#073f3a;stroke-width:2.5px}.crm-province-count{fill:#fff;paint-order:stroke;stroke:#00000059;stroke-width:2px;pointer-events:none;font:700 11px Arial,sans-serif}@media (width<=760px){.crm-map-canvas svg{min-height:500px}}.original-crm-map{background:#fff;height:calc(100vh - 72px);margin:-28px -34px;overflow:hidden}.original-crm-map iframe{background:#fff;border:0;width:100%;height:100%;display:block}@media (width<=760px){.original-crm-map{margin:-20px -16px}}.analysis-cards{border:1px solid var(--line);background:#fff;border-radius:14px;margin-bottom:16px;padding:12px}.followup-cards.analysis-cards span{color:#365650;font-size:14px;font-weight:700;line-height:1.4}.followup-cards.analysis-cards b{font-size:22px;font-weight:700}.analysis-toolbar{flex-wrap:wrap;align-items:center}.analysis-toolbar .search{flex:1;min-width:300px}.analysis-toolbar .count-pill{margin-left:auto}.analysis-category{white-space:nowrap;color:#48625d;background:#edf3f1;border-radius:999px;padding:5px 9px;font-size:10px;display:inline-flex}.analysis-category.urgent{color:#a62f3a;background:#ffe4e6}.analysis-category.dormant{color:#9a620c;background:#fff0d6}.analysis-category.declining{color:#6d4b9e;background:#eee8f8}.analysis-category.due{color:#0d715b;background:#dff5ee}.analysis-category.one_time{color:#356b9f;background:#e4effc}.analysis-category.stable{color:#61736f;background:#edf3f1}.customer-followup-meta{min-width:0}.customer-followup-meta>b{color:#163f38;margin-top:2px;font-size:17px;display:block}.po-analysis-tags{flex-wrap:wrap;gap:5px;margin-top:7px;display:flex}.po-analysis-tags .analysis-category{white-space:normal;max-width:100%;padding:4px 7px;font-size:9px;line-height:1.25}@media (width<=900px){.analysis-toolbar .search{width:100%;min-width:100%}.analysis-toolbar select{flex:1}.analysis-toolbar .count-pill{margin-left:0}.analysis-cards{grid-template-columns:repeat(2,1fr)}}.invoice-modal .invoice-form{flex-direction:column;display:flex}.invoice-modal .invoice-line-head{display:contents}.invoice-modal .invoice-line-head h3{margin:22px 0 10px;font-size:16px}.invoice-modal .invoice-lines{flex:none;overflow:visible}.invoice-modal .invoice-line-head .text-btn{color:#fff;background:#0f766e;border-radius:10px;order:1;align-self:flex-start;margin-top:12px;padding:10px 18px;font-size:14px;font-weight:700;box-shadow:0 6px 14px #0f766e2e}.invoice-modal .invoice-line-head .text-btn:hover{background:#0c665f}.invoice-modal .invoice-bottom{flex:none;order:2}.invoice-modal .selected-customer-master{background:#e3f4ef;border:1px solid #9dcfc4;border-left:6px solid #168576;padding:14px 16px}.invoice-modal .invoice-document-fields{background:#124c46;border:1px solid #0b3f3a;padding:18px;box-shadow:0 7px 18px #123f3b20}.invoice-modal .document-fields-head h3{color:#fff;font-size:18px;font-weight:700}.invoice-modal .document-fields-head p{color:#c9e4df;font-size:12px}.invoice-modal .document-fields-grid label span{color:#d9eeea;font-size:12px;font-weight:600}.invoice-modal .document-fields-grid input,.invoice-modal .document-fields-grid select,.invoice-modal .document-fields-grid textarea{color:#172725;background:#fff;border:2px solid #9bc8c0}.invoice-modal .document-fields-grid input:focus,.invoice-modal .document-fields-grid select:focus,.invoice-modal .document-fields-grid textarea:focus{border-color:#58d0bd;box-shadow:0 0 0 3px #58d0bd35}.invoice-modal .invoice-line-head h3{color:#164d47;font-size:18px}.invoice-modal .invoice-lines{background:#f5fafc;border:2px solid #b9d6dd}.invoice-modal .invoice-line-edit{background:#fff}.invoice-modal .invoice-line-edit:nth-child(2n){background:#eef7f9}.invoice-modal .invoice-bottom{background:#fff8e7;border:1px solid #ead8a9;border-radius:12px;padding:16px 18px}.new-customer-modal{background:#124c46;border:1px solid #0b3f3a}.new-customer-modal header{background:#103f3a;border-bottom:1px solid #2e6b64}.new-customer-modal header small{color:#bcded8}.new-customer-modal header h2{color:#fff}.new-customer-modal header .icon-btn{color:#315f58;background:#e8f3f0}.new-customer-modal .form-grid{background:#dcefeb;border-top:1px solid #9ccbc2;border-bottom:1px solid #9ccbc2}.new-customer-modal .form-grid label span{color:#28564f;font-weight:700}.new-customer-modal .form-grid input,.new-customer-modal .form-grid select{color:#172725;background:#fff;border:2px solid #8fc0b7;border-radius:9px;outline:none;width:100%;min-height:44px;padding:10px 11px;font-size:14px}.new-customer-modal .form-grid input:focus,.new-customer-modal .form-grid select:focus{border-color:#58d0bd;box-shadow:0 0 0 3px #58d0bd35}.new-customer-modal footer{background:#103f3a;border-top:1px solid #2e6b64}.new-customer-modal footer .secondary{color:#31534d;background:#edf4f2}.native-crm-map{color:#172725;background:#fff;flex-direction:column;height:calc(100vh - 70px);margin:-30px -34px -50px;display:flex;overflow:hidden}.crm-native-head{background:#fff;border-bottom:1px solid #dce6e3;flex:none;align-items:center;gap:12px;height:64px;padding:8px 18px;display:flex}.crm-logo{color:#fff;background:#0c9e70;border-radius:9px;padding:8px 13px;font-size:20px;font-weight:900}.crm-native-head h1{margin:0;font-size:16px}.crm-native-head h1 small{font-size:13px}.crm-native-head p{color:#75847f;margin:2px 0 0;font-size:10px}.crm-native-head>button{color:#315d57;cursor:pointer;background:#f5f9f8;border:1px solid #ccdad6;border-radius:8px;align-items:center;gap:6px;margin-left:auto;padding:8px 12px;display:flex}.crm-native-grid{flex:1;grid-template-columns:280px minmax(420px,1fr) 330px;min-height:0;display:grid}.crm-map-left,.crm-map-right{background:#fff;padding:12px;overflow:auto}.crm-map-left{border-right:1px solid #dce6e3}.crm-map-right{border-left:1px solid #dce6e3;flex-direction:column;display:flex}.crm-map-left h3{color:#778883;align-items:center;gap:5px;margin:4px 0 8px;font-size:10px;display:flex}.heat-legend{border:1px solid #dfe8e6;border-radius:9px;margin-bottom:14px;padding:7px 10px}.heat-legend p{align-items:center;gap:6px;margin:5px 0;font-size:10px;display:flex}.heat-legend p b{margin-left:auto}.heat-legend i{border-radius:50%;width:10px;height:10px}.heat-legend .green{background:#12a873}.heat-legend .orange{background:#e99a13}.heat-legend .red{background:#e53d43}.layer-toggle{border:1px solid #dfe8e6;border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:6px;padding:9px;font-size:10px;display:flex}.layer-toggle input{accent-color:#0d966c}.region-card{border:1px solid #dfe8e6;border-left:4px solid var(--region,#1d3030);text-align:left;cursor:pointer;background:#fff;border-radius:9px;align-items:center;width:100%;margin-bottom:7px;padding:9px 10px;display:flex}.region-card.active{background:color-mix(in srgb,var(--region,#18312e) 12%,white);border-color:var(--region,#18312e)}.region-card span{font-size:11px;font-weight:700}.region-card small{color:#7b8a86;margin-top:2px;font-size:9px;font-weight:400;display:block}.region-card b{background:color-mix(in srgb,var(--region,#18312e) 18%,white);border-radius:10px;margin-left:auto;padding:4px 7px;font-size:9px}.crm-map-stage{background:#d6e8ea;min-width:0;position:relative}.crm-leaflet-host{position:absolute;inset:0}.crm-map-label{text-align:center;white-space:nowrap;background:0 0!important;border:0!important}.crm-map-label span{color:#fff;border:1px solid #fff;border-radius:9px;place-items:center;min-width:18px;height:18px;padding:0 4px;font-size:9px;font-weight:800;display:inline-grid;box-shadow:0 1px 4px #0005}.crm-map-label b{color:#1f302e;text-shadow:0 1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff;font-size:9px;display:block}.shop-title{justify-content:space-between;align-items:flex-start;display:flex}.shop-title h2{margin:0;font-size:15px}.shop-title p{color:#75847f;margin:2px 0;font-size:9px}.shop-title>b{color:#08755b;background:#e6f6f1;border-radius:12px;padding:5px 8px;font-size:10px}.segment-tabs{grid-template-columns:repeat(3,1fr);gap:4px;margin:10px 0 8px;display:grid}.segment-tabs button{cursor:pointer;background:#eef3f2;border:0;border-radius:7px;padding:7px 3px;font-size:9px}.segment-tabs button.active{color:#fff;background:#112b29}.segment-tabs button.urgent{color:#b82934;background:#fee5e7}.segment-tabs button.dense{color:#08765b;background:#ddf5eb}.crm-map-search{border:1px solid #dce6e3;border-radius:8px;align-items:center;gap:7px;height:38px;padding:0 9px;display:flex}.crm-map-search input{border:0;outline:0;width:100%;font-size:10px}.crm-province-selects{grid-template-columns:1fr 1fr;gap:5px;margin-top:6px;display:grid}.crm-province-selects select{background:#fff;border:1px solid #dce6e3;border-radius:7px;min-width:0;padding:7px;font-size:9px}.secure-hint{color:#6d807b;background:#f1f7f5;border-radius:6px;margin:7px 0;padding:6px 8px;font-size:8px}.crm-native-shops{gap:7px;min-height:0;padding-right:3px;display:grid;overflow:auto}.crm-native-shops article{background:#fff;border:1px solid #dce6e3;border-left:4px solid #4388e8;border-radius:9px;padding:9px}.crm-native-shops strong{margin-bottom:4px;font-size:10px;display:block}.crm-native-shops span,.crm-native-shops small{color:#526b66;align-items:center;gap:5px;margin-top:3px;font-size:9px;display:flex}.crm-native-shops em{color:#a1620a;background:#fff0c9;border-radius:4px;margin-top:4px;padding:2px 5px;font-size:8px;font-style:normal;display:inline-block}.crm-native-shops .linked{color:#08745b;align-items:center;gap:4px;margin-top:5px;font-size:8px;display:flex}.no-shop{text-align:center;color:#73847f;padding:40px 10px;font-size:11px}.crm-pagination{justify-content:center;align-items:center;gap:9px;padding-top:8px;display:flex}.crm-pagination button{cursor:pointer;background:#fff;border:1px solid #d6e2df;border-radius:7px;place-items:center;width:30px;height:28px;display:grid}.crm-pagination button:disabled{opacity:.35}.crm-pagination svg{width:15px}.crm-pagination span{font-size:9px}.crm-map-error{text-align:center;align-content:center;place-items:center;min-height:400px;display:grid}.crm-map-error h2{margin:10px 0 0}.crm-map-error p{color:#72827e}.crm-map-error button{color:#fff;background:#0f766e;border:0;border-radius:8px;padding:9px 14px}@media (width<=1200px){.native-crm-map{margin:-24px -18px -50px}.crm-native-grid{grid-template-columns:230px 1fr}.crm-map-right{z-index:500;width:330px;position:absolute;top:134px;bottom:0;right:0;box-shadow:-10px 0 25px #183b3530}.crm-map-stage{margin-right:330px}}@media (width<=760px){.native-crm-map{height:auto;min-height:calc(100vh - 70px);overflow:visible}.crm-native-head{height:auto}.crm-native-head h1{font-size:13px}.crm-native-grid{flex-direction:column;display:flex}.crm-map-stage{order:1;height:540px;margin:0}.crm-map-left{order:2}.crm-map-right{order:3;width:auto;min-height:600px;position:static}.crm-native-head>button{font-size:0}.crm-native-head>button svg{margin:0}.crm-native-grid{overflow:visible}}.crm-map-label{font-family:Noto Sans Thai,Tahoma,sans-serif!important}.crm-map-label span{text-shadow:0 1px 1px #0004;border:1.5px solid #fff;border-radius:11px;min-width:20px;height:20px;padding:0 5px;font-size:10px;font-weight:900;box-shadow:0 1px 4px #0006}.crm-map-label b{letter-spacing:-.15px;color:#172522;text-shadow:0 1px 3px #fff,1px 0 3px #fff,-1px 0 3px #fff,0 -1px 3px #fff;margin-top:1px;font-family:Noto Sans Thai,Tahoma,sans-serif;font-size:10px;font-weight:800}:root{color:#152522;font-synthesis:none;--teal:#0f766e;--deep:#123f3b;--line:#dfe9e6;--muted:#6c7e7a;background:#f4f7f6;font-family:Noto Sans Thai,system-ui,sans-serif}*{box-sizing:border-box}body{background:#f4f7f6;min-width:320px;margin:0}button,input,select{font:inherit}.app{min-height:100vh}.sidebar{color:#fff;z-index:20;background:#103e3a;flex-direction:column;width:244px;display:flex;position:fixed;inset:0 auto 0 0}.brand{border-bottom:1px solid #ffffff18;height:104px;padding:22px 28px}.brand div{letter-spacing:-1.5px;font-size:30px;font-weight:800}.brand div span{color:#66d1c2}.brand small{color:#b8d4d0;letter-spacing:1.3px;text-transform:uppercase;margin-top:-3px;font-size:10px;display:block}.sidebar nav{flex-direction:column;flex:1;gap:5px;padding:22px 14px;display:flex}.sidebar nav button{color:#bad0cd;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:12px;padding:12px 14px;display:flex}.sidebar nav button:hover{color:#fff;background:#ffffff10}.sidebar nav button.active{color:#0f625b;background:#fff;box-shadow:0 8px 24px #05292545}.sidebar nav em{color:#0d6b62;background:#d9f5ee;border-radius:10px;margin-left:auto;padding:2px 7px;font-size:11px;font-style:normal}.side-foot{border-top:1px solid #ffffff18;align-items:center;gap:10px;margin:14px;padding:15px 10px;display:flex}.side-foot b,.side-foot small{display:block}.side-foot b{font-size:13px}.side-foot small{color:#9ebcb8;font-size:10px}.avatar{color:#0f625b;background:#d9efe9;border-radius:50%;place-items:center;width:38px;height:38px;font-size:12px;font-weight:700;display:grid}main{min-height:100vh;margin-left:244px}.topbar{border-bottom:1px solid var(--line);z-index:10;background:#fff;justify-content:space-between;align-items:center;height:70px;padding:0 32px;display:flex;position:sticky;top:0}.topbar>div:first-of-type b,.topbar>div:first-of-type span{display:block}.topbar>div:first-of-type b{font-size:15px}.topbar>div:first-of-type span{color:var(--muted);font-size:11px}.top-actions{align-items:center;gap:12px;display:flex}.icon-btn{color:#52706a;cursor:pointer;background:#eef4f2;border:0;border-radius:10px;place-items:center;width:38px;height:38px;display:grid}.mobile-menu{background:0 0;border:0;display:none}.content{max-width:1550px;margin:auto;padding:30px 34px 50px}.page-head{justify-content:space-between;align-items:flex-end;margin-bottom:26px;display:flex}.eyebrow{text-transform:uppercase;letter-spacing:1.6px;font-weight:700;color:#0f766e!important;margin:0 0 3px!important;font-size:11px!important}.page-head h1{margin:0 0 5px;font-size:27px;line-height:1.2}.page-head p{color:var(--muted);margin:0;font-size:13px}.primary,.secondary{cursor:pointer;border:0;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:10px 16px;font-weight:600;display:flex}.primary{background:var(--teal);color:#fff;box-shadow:0 8px 18px #0f766e30}.primary:hover{background:#0c665f}.primary:disabled{opacity:.6}.secondary{color:#37524d;background:#eef3f2}.kpi-grid{grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px;display:grid}.kpi{border:1px solid var(--line);background:#fff;border-radius:14px;align-items:center;gap:15px;padding:19px;display:flex;box-shadow:0 4px 18px #183f3810}.kpi .icon{border-radius:12px;place-items:center;width:48px;height:48px;display:grid}.kpi .icon.teal{color:#087466;background:#daf4ed}.kpi .icon.blue{color:#286ba6;background:#dfeeff}.kpi .icon.amber{color:#a9680a;background:#fff0d3}.kpi .icon.rose{color:#bd4856;background:#ffe2e5}.kpi span,.kpi small,.kpi strong{display:block}.kpi span{color:var(--muted);font-size:12px}.kpi strong{margin:2px 0;font-size:21px}.kpi small{color:#90a09d;font-size:10px}.dash-grid{grid-template-columns:1.6fr 1fr;gap:18px;margin-bottom:18px;display:grid}.panel{border:1px solid var(--line);background:#fff;border-radius:14px;box-shadow:0 4px 18px #183f380b}.panel-title{justify-content:space-between;align-items:center;padding:20px 22px 15px;display:flex}.panel-title h2{margin:0;font-size:16px}.panel-title p{color:var(--muted);margin:3px 0 0;font-size:11px}.bars{padding:5px 22px 22px}.bar-row{grid-template-columns:42px 1fr 120px;align-items:center;gap:12px;margin:15px 0;font-size:12px;display:grid}.bar-row b{text-align:right;color:#435f59;font-size:11px}.bar-track{background:#eef4f2;border-radius:8px;height:9px;overflow:hidden}.bar-track i{background:linear-gradient(90deg,#14a391,#5dc8b8);border-radius:8px;height:100%;display:block}.health{align-items:center;gap:28px;padding:8px 24px 26px;display:flex}.ring{background:conic-gradient(#16a085 var(--pct),#e8efed 0);border-radius:50%;place-items:center;width:120px;height:120px;display:grid;position:relative}.ring:after{content:"";background:#fff;border-radius:50%;position:absolute;inset:12px}.ring strong,.ring span{z-index:1;position:absolute}.ring strong{margin-top:-13px;font-size:23px}.ring span{color:var(--muted);margin-top:25px;font-size:10px}.health-list{flex:1}.health-list p{color:#60746f;align-items:center;font-size:11px;display:flex}.health-list b{color:#243b37;margin-left:auto}.dot{border-radius:50%;width:8px;height:8px;margin-right:8px}.dot.green{background:#16a085}.dot.amber{background:#e8a43e}.dot.blue{background:#4b91cb}.table-panel{overflow:hidden}.table-panel .panel-title{border-bottom:1px solid #edf1f0}.text-btn{color:var(--teal);cursor:pointer;background:0 0;border:0;align-items:center;font-size:12px;display:flex}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:#758782;text-transform:uppercase;letter-spacing:.3px;border-bottom:1px solid var(--line);background:#f8faf9;padding:11px 16px;font-size:10px;font-weight:600}td{vertical-align:middle;border-bottom:1px solid #edf2f0;padding:12px 16px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdfc}.right{text-align:right}.center{text-align:center}.strong{font-weight:600}.muted{color:var(--muted)}.truncate{white-space:nowrap;text-overflow:ellipsis;max-width:380px;overflow:hidden}.code{color:#0f6e65;font-family:ui-monospace,Consolas,monospace;font-weight:700}.status{white-space:nowrap;border-radius:14px;align-items:center;gap:5px;padding:4px 8px;font-size:10px;display:inline-flex}.status.ok{color:#0d715b;background:#dff5eb}.status.review{color:#9a620c;background:#fff0d1}.status.draft{color:#4866a5;background:#e5ecff}.clickable{cursor:pointer}.toolbar{gap:12px;margin-bottom:16px;display:flex}.search{border:1px solid var(--line);color:#80908d;background:#fff;border-radius:10px;align-items:center;gap:9px;min-width:360px;height:42px;padding:0 13px;display:flex}.search:focus-within{border-color:#45a99c;box-shadow:0 0 0 3px #12a39012}.search input{border:0;outline:0;width:100%;font-size:12px}.toolbar select{border:1px solid var(--line);color:#526762;background:#fff;border-radius:10px;height:42px;padding:0 34px 0 12px;font-size:12px}.count-pill{color:#0c7065;background:#e0f2ee;border-radius:16px;padding:7px 12px;font-size:11px;font-weight:600}.empty{text-align:center;color:#8b9a97;background:#fff;border:1px dashed #cbdad7;border-radius:14px;padding:70px 20px}.empty svg{color:#afbfbc;width:38px;height:38px}.empty p{font-size:13px}.loading{color:#718480;justify-content:center;align-items:center;gap:10px;min-height:250px;font-size:12px;display:flex}.loading i{border:2px solid #cfe1dd;border-top-color:#0f766e;border-radius:50%;width:18px;height:18px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.drawer-wrap{z-index:50;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#102b2766;justify-content:flex-end;display:flex;position:fixed;inset:0}.drawer{background:#fff;flex-direction:column;width:min(650px,100%);height:100%;animation:.25s slide;display:flex;box-shadow:-15px 0 40px #0b282536}@keyframes slide{0%{opacity:0;transform:translate(40px)}}.drawer header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.drawer header span{color:var(--muted);font-size:10px}.drawer header h2{color:#0d6c63;margin:0;font-family:ui-monospace,monospace}.drawer-body{flex:1;padding:22px 26px;overflow:auto}.doc-meta{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px;display:grid}.doc-meta>div{background:#f6f9f8;border-radius:10px;padding:12px 14px}.doc-meta small,.doc-meta b{display:block}.doc-meta small{color:var(--muted);margin-bottom:5px;font-size:10px}.customer-card{border:1px solid var(--line);border-radius:12px;gap:14px;margin-bottom:16px;padding:16px;display:flex}.customer-card>svg{color:#0b7167;background:#ddf2ed;border-radius:9px;width:40px;height:40px;padding:8px}.customer-card small{color:var(--muted);font-size:10px}.customer-card h3{margin:2px 0;font-size:14px}.customer-card p{color:#667a76;margin:0;font-size:11px}.notice{color:#8a5b12;background:#fff4d9;border-radius:9px;align-items:flex-start;gap:9px;padding:11px 13px;font-size:11px;display:flex}.notice svg{min-width:17px}.section-title{margin:24px 0 10px;font-size:13px}.line-items{border:1px solid var(--line);border-radius:10px;overflow:hidden}.line{border-bottom:1px solid var(--line);grid-template-columns:24px 1fr 110px;align-items:center;gap:10px;padding:11px 13px;display:grid}.line:last-child{border:0}.line>span{background:#edf3f1;border-radius:50%;place-items:center;width:22px;height:22px;font-size:9px;display:grid}.line b,.line small{display:block}.line b{font-size:11px}.line small{color:var(--muted);margin-top:3px;font-size:9px}.line strong{text-align:right;font-size:11px}.totals{max-width:310px;margin:17px 0 0 auto}.totals p{justify-content:space-between;margin:0;padding:5px 0;font-size:11px;display:flex}.totals .grand{border-top:1px solid var(--line);color:#0e655d;margin-top:6px;padding-top:11px;font-size:14px}.drawer footer{border-top:1px solid var(--line);justify-content:flex-end;gap:9px;padding:16px 24px;display:flex}.toast{color:#fff;z-index:80;background:#103f3a;border-radius:11px;align-items:center;gap:9px;padding:13px 18px;font-size:12px;display:flex;position:fixed;bottom:28px;right:28px;box-shadow:0 14px 35px #0b2b2650}.toast svg{color:#6ee0c5}.mobile-shade{display:none}@media (width<=1100px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.dash-grid{grid-template-columns:1fr}.sidebar{transition:all .2s;transform:translate(-100%)}.sidebar.show{transform:none}.mobile-shade{z-index:15;background:#0006;display:block;position:fixed;inset:0}main{margin-left:0}.mobile-menu{display:grid}.topbar{padding:0 18px}.content{padding:24px 18px}.topbar>div:first-of-type{margin-left:10px;margin-right:auto}}@media (width<=680px){.kpi-grid{grid-template-columns:1fr}.page-head{align-items:flex-start;gap:15px}.page-head .primary{white-space:nowrap}.toolbar{flex-direction:column}.search{width:100%;min-width:0}.table-panel{overflow:auto}.table-panel table{min-width:760px}.content{padding:22px 13px}.top-actions .icon-btn{display:none}.dash-grid{display:block}.dash-grid .panel{margin-bottom:15px}.health{flex-direction:column}.bar-row{grid-template-columns:34px 1fr}.bar-row b{display:none}.drawer-body{padding:18px}.doc-meta{grid-template-columns:1fr}.line{grid-template-columns:22px 1fr}.line>strong{grid-column:2}.page-head h1{font-size:23px}}.doc-actions{white-space:nowrap;justify-content:flex-end;gap:5px;display:flex}.doc-actions a,.doc-actions button{color:#176c64;cursor:pointer;background:#fff;border:1px solid #d8e5e2;border-radius:7px;align-items:center;gap:4px;padding:6px 8px;font-size:10px;text-decoration:none;display:inline-flex}.doc-actions a:hover,.doc-actions button:hover{background:#eaf6f3;border-color:#8fcac1}.status.canceled{color:#b42332;background:#ffe3e5;border:1px solid #f3b8bd;font-weight:700}.canceled-row{background:#fff8f8}.canceled-row:hover{background:#fff3f3}.canceled-row td:nth-last-child(n+3){-webkit-text-decoration:line-through #c94350;text-decoration:line-through #c94350;text-decoration-thickness:1.5px;color:#a46f73!important}.doc-actions .danger-action{color:#a43f49;border-color:#efc9cb}.doc-actions .danger-action:hover{background:#fff0f1;border-color:#dc8f95}.head-actions{gap:9px;display:flex}.sync-result{color:#165f55;background:#e4f5ef;border:1px solid #b9e3d7;border-radius:11px;align-items:center;gap:11px;margin:-10px 0 18px;padding:12px 14px;display:flex}.sync-result>svg{min-width:21px}.sync-result div{flex:1}.sync-result b,.sync-result span{display:block}.sync-result b{font-size:12px}.sync-result span{margin-top:2px;font-size:10px}.sync-result button{color:#39786f;cursor:pointer;background:0 0;border:0}.spinning{animation:.8s linear infinite spin}.sync-result.sync-error{color:#9d3340;background:#fff0f1;border-color:#efc9cc}.sync-result.sync-error button{color:#9d3340}.clickable-kpi{cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s;position:relative}.clickable-kpi:hover,.clickable-kpi:focus{border-color:#efb5bb;outline:none;transform:translateY(-2px);box-shadow:0 9px 24px #183f3820}.kpi-arrow{color:#b86470;margin-left:auto}.health-link{color:#60746f;cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;width:100%;padding:7px 0;font-size:11px;display:flex}.health-link:hover{color:#9a620c}.health-link b{color:#243b37;margin-left:auto}.health-link svg{margin-left:5px}.edit-btn{color:#176c64;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #d7e5e2;border-radius:7px;align-items:center;gap:4px;padding:5px 8px;font-size:10px;display:inline-flex}.edit-btn:hover{background:#eaf6f3}.modal-wrap{z-index:70;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#102b2766;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:16px;width:min(650px,100%);overflow:hidden;box-shadow:0 24px 70px #0b282550}.modal header,.modal footer{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:18px 22px;display:flex}.modal header small{color:var(--muted);font-size:10px}.modal header h2{margin:2px 0 0;font-size:19px}.modal footer{border:0;border-top:1px solid var(--line);justify-content:flex-end;gap:8px}.form-grid{grid-template-columns:1fr 1fr;gap:14px;padding:22px;display:grid}.form-grid label span,.readonly-field span,.readonly-field b,.readonly-field small{display:block}.form-grid label span,.readonly-field span{color:var(--muted);margin-bottom:5px;font-size:10px}.form-grid input{border:1px solid #d7e3e0;border-radius:9px;outline:none;width:100%;padding:10px 11px}.form-grid input:focus{border-color:#45a99c;box-shadow:0 0 0 3px #12a39012}.form-grid .wide{grid-column:1/-1}.readonly-field{background:#f4f8f7;border-radius:9px;padding:12px}.readonly-field b{font-size:12px}.readonly-field small{color:var(--muted);margin-top:3px;font-size:9px}.page-summary{color:var(--muted);align-self:center;margin-left:auto;font-size:10px}.pagination{justify-content:center;align-items:center;gap:5px;margin:18px 0;display:flex}.pagination button{color:#4c625d;cursor:pointer;background:#fff;border:1px solid #d8e4e1;border-radius:8px;min-width:36px;height:34px;padding:0 10px;font-size:11px}.pagination button:hover:not(:disabled){color:#0f766e;border-color:#64b4aa}.pagination button.active{color:#fff;background:#0f766e;border-color:#0f766e}.pagination button:disabled{opacity:.4;cursor:not-allowed}.pagination span{color:#83938f;padding:0 3px}.customer-link{color:#1d332f;cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-weight:600;display:flex}.customer-link svg{opacity:0;color:#0f766e;transition:all .15s}.customer-link:hover{color:#0f766e}.customer-link:hover svg{opacity:1;transform:translate(2px)}.customer-detail{width:min(760px,100%)}.customer-title{max-width:620px;font-family:inherit!important;font-size:17px!important}.customer-contact{background:#f5f9f8;border-radius:12px;gap:13px;margin-bottom:15px;padding:15px;display:flex}.customer-contact>svg{color:#0f766e;background:#dcefeb;border-radius:9px;width:40px;height:40px;padding:8px}.customer-contact b,.customer-contact p,.customer-contact small{display:block}.customer-contact b{font-size:13px}.customer-contact p{color:#647873;margin:3px 0;font-size:10px}.customer-contact small{color:#869692;font-size:9px}.customer-kpis{grid-template-columns:repeat(4,1fr);gap:9px;display:grid}.customer-kpis>div{border:1px solid var(--line);border-radius:10px;padding:12px}.customer-kpis span,.customer-kpis b{display:block}.customer-kpis span{color:var(--muted);font-size:9px}.customer-kpis b{margin-top:4px;font-size:13px}.cadence-note{color:#1a655b;background:#e9f6f2;border-radius:10px;align-items:center;gap:10px;margin-top:13px;padding:11px 13px;display:flex}.cadence-note b,.cadence-note span{display:block}.cadence-note b{font-size:11px}.cadence-note span{margin-top:2px;font-size:9px}.sales-insight{grid-template-columns:1.5fr 1fr 1fr;gap:8px;margin-top:10px;display:grid}.sales-insight>div{border:1px solid var(--line);background:#f5f8f7;border-radius:9px;padding:10px}.sales-insight>div:first-child{background:#eaf6f3}.sales-insight.attention>div:first-child{color:#8b580c;background:#fff1dd;border-color:#f0d19d}.sales-insight b,.sales-insight strong,.sales-insight span{display:block}.sales-insight span{color:var(--muted);font-size:8px}.sales-insight b{margin-top:3px;font-size:10px}.sales-insight strong{margin-top:3px;font-size:9px;font-weight:600}.purchase-bars{border:1px solid var(--line);border-radius:11px;align-items:flex-end;gap:5px;height:175px;padding:12px 12px 8px;display:flex;overflow-x:auto}.purchase-bars>div{flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;min-width:34px;height:100%;display:flex}.purchase-bars i{background:linear-gradient(#35b4a3,#0f766e);border-radius:5px 5px 2px 2px;width:18px;min-height:4px}.purchase-bars .bar-value{color:#315c55;white-space:nowrap;font-size:7px;font-weight:600}.purchase-bars span{color:#7e8e8a;white-space:nowrap;font-size:7px}.order-history{border:1px solid var(--line);border-radius:11px;overflow:hidden}.order-history>div,.order-history>button{text-align:left;width:100%;color:inherit;background:#fff;border:0;border-bottom:1px solid #eaf0ee;grid-template-columns:12px 1fr 95px 120px;align-items:center;gap:8px;padding:10px 12px;display:grid}.order-history>button{cursor:pointer}.order-history>button:hover{background:#eef8f5}.order-history>div:last-child,.order-history>button:last-child{border-bottom:0}.history-dot{background:#19a18f;border-radius:50%;width:7px;height:7px}.order-history b,.order-history span{display:block}.order-history b{color:#0f6e65;font-family:ui-monospace,monospace;font-size:10px}.order-history span{color:var(--muted);font-size:8px}.order-history em{color:#9a6a19;text-align:center;background:#fff2d8;border-radius:10px;padding:3px 6px;font-size:9px;font-style:normal}.order-history strong{text-align:right;font-size:10px}.section-title small{color:var(--muted);font-size:8px;font-weight:400}@media (width<=680px){.customer-kpis{grid-template-columns:1fr 1fr}.order-history>div{grid-template-columns:10px 1fr 90px}.order-history em{display:none}.order-history strong{grid-column:2/-1}.head-actions{flex-wrap:wrap;width:100%}.head-actions button{flex:1}.page-head{flex-wrap:wrap}}.catalog-stats{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px;display:grid}.catalog-stats>div,.catalog-stats>button{border:1px solid var(--line);text-align:left;background:#fff;border-radius:12px;padding:15px 17px}.catalog-stats>button{cursor:pointer;color:#98630d;background:#fff9ec;border-color:#f0d69f}.catalog-stats b,.catalog-stats span{display:block}.catalog-stats b{font-size:20px}.catalog-stats span{color:var(--muted);margin-top:2px;font-size:10px}.catalog-stats button span{color:#98630d}.table-sub{color:var(--muted);margin-top:3px;font-size:9px;display:block}.alias-list{border:1px solid var(--line);border-radius:10px;max-height:260px;overflow:auto}.alias-list>div{border-bottom:1px solid #eaf0ee;justify-content:space-between;gap:12px;padding:9px 12px;font-size:10px;display:flex}.alias-list>div:last-child{border:0}.alias-list b{white-space:nowrap;color:#0f766e}.wide-modal{flex-direction:column;width:min(1050px,100%);max-height:90vh;display:flex}.mapping-list{min-height:260px;padding:12px 22px;overflow:auto}.mapping-list>div{border-bottom:1px solid var(--line);grid-template-columns:minmax(260px,1fr) minmax(300px,1fr) 78px;align-items:center;gap:10px;padding:10px 0;display:grid}.mapping-list b,.mapping-list span{display:block}.mapping-list b{font-size:11px}.mapping-list span{color:var(--muted);font-size:9px}.mapping-list select{background:#fff;border:1px solid #d7e3e0;border-radius:8px;padding:8px;font-size:10px}.mapping-list .primary{padding:8px 10px;font-size:10px}.catalog-toolbar{align-items:center}.catalog-toolbar .search{flex:1;max-width:520px}.catalog-toolbar .primary{white-space:nowrap;min-height:42px}.catalog-product-modal{flex-direction:column;width:min(760px,96vw);max-height:92vh;display:flex}.catalog-product-modal .form-grid{overflow:auto}.catalog-product-modal .form-grid select{background:#fff;border:1px solid #d7e3e0;border-radius:9px;outline:none;width:100%;min-height:42px;padding:10px 11px}.catalog-product-modal .form-grid select:focus{border-color:#45a99c;box-shadow:0 0 0 3px #12a39012}.catalog-product-modal .form-grid :disabled{color:#99a7a4;cursor:not-allowed;background:#f1f4f3}.catalog-flexible{background:#eef8f5;border-radius:10px;align-items:center;gap:9px;padding:11px 13px;display:flex}.catalog-flexible input{height:17px;width:17px!important}.catalog-flexible span{color:#315b54!important;margin:0!important;font-size:11px!important}.mapping-success{color:#126b5c;background:#e3f5ee;border-radius:9px;align-items:center;gap:8px;margin:12px 22px 0;padding:10px 12px;font-size:10px;display:flex}.mapping-list button:disabled,.mapping-list select:disabled{opacity:.55;cursor:not-allowed}.mapping-entry{border-bottom:1px solid var(--line);display:block}.mapping-row{grid-template-columns:minmax(260px,1fr) minmax(300px,1fr) 78px;align-items:center;gap:10px;padding:10px 0;display:grid}.mapping-row>div>b,.mapping-row>div>span{display:block}.inspect-btn{color:#0f766e;cursor:pointer;background:0 0;border:0;align-items:center;gap:2px;padding:3px 0 0;font-size:9px;display:flex}.inspect-btn:hover{text-decoration:underline}.mapping-context{background:#f5f8f7;border:1px solid #dbe8e5;border-radius:10px;grid-column:1/-1;max-height:430px;margin:0 0 12px;padding:10px;overflow:auto}.mapping-context .loading{min-height:110px}.context-head{justify-content:space-between;gap:12px;padding:2px 3px 9px;display:flex}.context-head b{font-size:10px}.context-head span{color:var(--muted);font-size:8px}.po-context{border:1px solid var(--line);background:#fff;border-radius:8px;margin-bottom:8px;overflow:hidden}.po-context:last-child{margin-bottom:0}.po-context-head{background:#edf4f2;grid-template-columns:90px 1fr auto;align-items:center;gap:10px;padding:8px 10px;display:grid}.po-context-head b{color:#0f766e;font-family:ui-monospace,monospace;font-size:10px}.po-context-head span,.po-context-head em{color:#60736f;font-size:8px}.po-context-head em{white-space:nowrap;text-overflow:ellipsis;max-width:230px;font-style:normal;overflow:hidden}.context-lines>div{border-top:1px solid #edf2f0;grid-template-columns:24px 1fr 130px 100px;align-items:center;gap:8px;padding:7px 10px;display:grid}.context-lines>div.matched{background:#fff3cf}.context-lines>div>span{color:#7b8e89;font-size:8px}.context-lines>div>b{font-size:9px}.context-lines>div>small{color:var(--muted);font-size:8px}.context-lines>div>strong{text-align:right;font-size:9px}@media (width<=800px){.catalog-stats{grid-template-columns:1fr 1fr}.mapping-list>div,.mapping-row{grid-template-columns:1fr}.mapping-list .primary{justify-self:start}.po-context-head,.context-lines>div{grid-template-columns:1fr}.context-lines>div>strong{text-align:left}}.invoice-modal{flex-direction:column;width:min(1500px,98vw);max-height:96vh;display:flex}.invoice-form{padding:22px 26px;overflow:auto}.invoice-fields{grid-template-columns:2fr 1fr 1fr;gap:15px;display:grid}.invoice-fields label span,.invoice-adjust label span{color:var(--muted);margin-bottom:6px;font-size:12px;display:block}.invoice-fields input,.invoice-fields select,.invoice-adjust input,.invoice-adjust select,.invoice-line-edit input,.invoice-line-edit select{background:#fff;border:1px solid #cbdcd8;border-radius:10px;outline:none;width:100%;min-height:44px;padding:11px 12px;font-size:14px}.invoice-fields input:focus,.invoice-fields select:focus,.invoice-line-edit input:focus,.invoice-line-edit select:focus{border-color:#45a99c;box-shadow:0 0 0 3px #12a39012}.invoice-line-head{justify-content:space-between;align-items:center;margin:22px 0 10px;display:flex}.invoice-line-head h3{margin:0;font-size:16px}.invoice-line-head .text-btn{font-size:14px}.invoice-lines{border:1px solid var(--line);border-radius:12px;overflow:hidden}.invoice-line-edit{border-bottom:1px solid var(--line);grid-template-columns:32px minmax(245px,1.3fr) minmax(245px,1.2fr) 95px 125px 115px 40px;align-items:end;gap:10px;padding:13px 14px;display:grid}.invoice-line-edit:last-child{border:0}.invoice-line-edit>span{background:#eaf2f0;border-radius:50%;align-self:center;place-items:center;width:29px;height:29px;font-size:12px;display:grid}.invoice-line-edit label small{color:var(--muted);margin-bottom:5px;font-size:11px;display:block}.invoice-line-edit>strong{text-align:right;align-self:center;font-size:13px}.remove-line{color:#b44b55;cursor:pointer;background:#fff0f0;border:0;border-radius:9px;align-self:center;place-items:center;width:36px;height:36px;display:grid}.remove-line:disabled{opacity:.3;cursor:not-allowed}.invoice-bottom{justify-content:space-between;gap:34px;margin-top:20px;display:flex}.invoice-adjust{grid-template-columns:180px 150px 145px;gap:12px;display:grid}.invoice-preview{width:380px}.invoice-preview p{justify-content:space-between;margin:0;padding:7px 0;font-size:13px;display:flex}.invoice-preview p:last-child{border-top:1px solid var(--line);color:#0f6e65;margin-top:6px;padding-top:13px;font-size:18px}.invoice-document-fields{background:#f8fbfa;border:1px solid #d7e5e2;border-radius:12px;margin-top:18px;padding:16px}.document-fields-head h3{color:#173e39;margin:0;font-size:15px}.document-fields-head p{color:var(--muted);margin:3px 0 13px;font-size:11px}.document-fields-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.document-fields-grid label span{color:var(--muted);margin-bottom:5px;font-size:11px;display:block}.document-fields-grid input,.document-fields-grid select,.document-fields-grid textarea{width:100%;font:inherit;background:#fff;border:1px solid #cbdcd8;border-radius:9px;outline:none;padding:10px 11px;font-size:13px}.document-fields-grid input,.document-fields-grid select{min-height:42px}.document-fields-grid textarea{resize:vertical;min-height:62px}.document-fields-grid input:focus,.document-fields-grid select:focus,.document-fields-grid textarea:focus{border-color:#45a99c;box-shadow:0 0 0 3px #12a39012}.document-fields-grid .wide{grid-column:span 3}.selected-customer-master{background:#edf7f4;border:1px solid #cfe3de;border-radius:11px;grid-template-columns:1fr 1fr 1fr;gap:9px 14px;margin-top:14px;padding:12px 14px;display:grid}.selected-customer-master>div{min-width:0}.selected-customer-master .wide{grid-column:span 2}.selected-customer-master span,.selected-customer-master b{display:block}.selected-customer-master span{color:#70837f;margin-bottom:3px;font-size:9px}.selected-customer-master b{color:#24443e;white-space:normal;overflow-wrap:anywhere;font-size:11px}.flow-action{color:#0f6e65;font:inherit;cursor:pointer;background:#e8f6f3;border:1px solid #9fcfc7;border-radius:8px;align-items:center;gap:6px;padding:7px 10px;font-size:12px;font-weight:700;display:inline-flex}.flow-action:hover{background:#d7efe9}.invoice-status-actions{white-space:nowrap;align-items:center;gap:9px;display:flex}.receive-payment{color:#fff;font:inherit;cursor:pointer;background:#0f766e;border:0;border-radius:9px;align-items:center;gap:6px;padding:8px 12px;font-size:11px;font-weight:800;transition:transform .15s,background .15s,box-shadow .15s;display:inline-flex;box-shadow:0 5px 12px #0f766e35}.receive-payment:hover{background:#0b625b;transform:translateY(-1px);box-shadow:0 7px 16px #0f766e45}.receive-payment:active{transform:translateY(0)}.delivery-note-action{color:#2f6687;background:#edf6fb;border:1px solid #8fb8cf;border-radius:9px;align-items:center;gap:6px;padding:7px 11px;font-size:11px;font-weight:800;text-decoration:none;transition:transform .15s,background .15s;display:inline-flex}.delivery-note-action:hover{background:#dceef8;transform:translateY(-1px)}.large-ui header{padding:22px 26px}.large-ui header small{font-size:12px}.large-ui header h2{font-size:25px}.large-ui footer{padding:18px 26px}.large-ui footer button{min-height:46px;padding-left:22px;padding-right:22px;font-size:15px}.large-ui .icon-btn{width:44px;height:44px}.large-ui .combo-options b{font-size:14px}.large-ui .combo-options small{font-size:11px}.large-ui .combo-options button{padding:11px 13px}.large-ui .combo-hint{font-size:10px!important}.large-ui .combo-empty{font-size:13px}.customer-select,.customer-combobox,.combo-input{position:relative}.combo-input>svg:first-child{color:#77908b;pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.combo-input input{padding-left:34px!important;padding-right:30px!important}.combo-chevron{color:#78908b;pointer-events:none;transition:all .15s;position:absolute;top:50%;right:9px;transform:translateY(-50%)rotate(90deg)}.combo-chevron.open{transform:translateY(-50%)rotate(-90deg)}.combo-options{z-index:120;background:#fff;border:1px solid #b9d6d1;border-radius:10px;flex-direction:column;max-height:min(500px,100vh - 250px);padding:5px;display:flex;position:absolute;top:calc(100% + 5px);left:0;right:0;overflow:auto;box-shadow:0 14px 35px #153b3530}.combo-options button{text-align:left;cursor:pointer;background:#fff;border:0;border-radius:7px;width:100%;padding:8px 10px}.combo-options button:hover,.combo-options button.active{background:#e6f4f1}.combo-options b,.combo-options small{display:block}.combo-options b{color:#203b36;font-size:10px}.combo-options small{color:#788b87;white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:8px;overflow:hidden}.combo-empty{text-align:center;color:#82938f;padding:18px;font-size:10px}.combo-hint{color:#b16a28;position:absolute;top:calc(100% + 3px);left:2px;font-size:8px!important}.combo-options .combo-add{z-index:2;color:#0f766e;background:#eef8f5;border-bottom:1px solid #d9e7e4;order:-1;align-items:center;gap:10px;margin-bottom:5px;padding:11px 12px;display:flex;position:sticky;top:0}.combo-options .combo-add:hover{background:#dff2ed}.combo-add>svg{min-width:19px}.combo-add span{text-align:left}.combo-add b{color:#0f6e65}.new-customer-wrap{z-index:180;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#102b2780;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.new-customer-modal{width:min(760px,96vw)}.new-customer-modal .form-grid label span{font-size:12px}.new-customer-modal .form-grid input{min-height:44px;font-size:14px}.new-customer-modal header h2{font-size:22px}.new-customer-modal footer button{min-height:44px;font-size:14px}@media (width<=950px){.invoice-fields,.selected-customer-master{grid-template-columns:1fr}.selected-customer-master .wide{grid-column:auto}.document-fields-grid{grid-template-columns:1fr}.document-fields-grid .wide{grid-column:auto}.invoice-line-edit{grid-template-columns:32px 1fr 1fr}.invoice-line-edit>strong{text-align:left;grid-column:2}.invoice-bottom{flex-direction:column}.invoice-adjust{grid-template-columns:1fr}.invoice-preview{width:100%}}.page-error{text-align:center;margin:24px;padding:36px}.page-error h2{margin:0 0 8px}.page-error p{color:var(--muted);margin:0 0 20px}.combo-options{max-height:min(650px,100vh - 190px)}.po-history{clear:both;border-top:1px solid var(--line);margin-top:26px;padding-top:20px}.po-history-head{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px;display:flex}.po-history-head h3{margin:0;font-size:13px}.po-history-head p{color:var(--muted);margin:3px 0 0;font-size:9px}.po-history-head>span{color:#0f766e;white-space:nowrap;background:#e2f3ef;border-radius:12px;padding:5px 8px;font-size:9px}.po-history-list{border:1px solid var(--line);border-radius:11px;overflow:hidden}.po-history-list button{text-align:left;cursor:pointer;color:#253e39;background:#fff;border:0;border-bottom:1px solid #e7efed;grid-template-columns:9px 1fr auto 18px;align-items:center;gap:10px;width:100%;padding:11px 12px;display:grid}.po-history-list button:last-child{border-bottom:0}.po-history-list button:hover{background:#eef8f5}.po-history-list i{background:#20a58f;border-radius:50%;width:7px;height:7px}.po-history-list b,.po-history-list small{display:block}.po-history-list b{color:#0d7067;font:700 11px ui-monospace,Consolas,monospace}.po-history-list small{color:var(--muted);margin-top:3px;font-size:8px}.po-history-list strong{text-align:right;font-size:10px}.po-history-list svg{color:#75908a}.po-history-empty{text-align:center;color:#83938f;border:1px dashed #cddbd8;border-radius:10px;padding:18px;font-size:10px}.auth-page{background:radial-gradient(circle at 20% 10%,#dff2ed 0,#0000 34%),linear-gradient(145deg,#f5faf8,#e7f0ee);place-items:center;min-height:100vh;margin:0;padding:24px;display:grid}.auth-card{text-align:center;background:#fff;border:1px solid #d7e5e2;border-radius:20px;width:min(440px,100%);padding:34px;box-shadow:0 24px 70px #123b3530}.auth-card.wide-auth{width:min(520px,100%)}.auth-brand{color:#f4f7f6;background:#103f3a;border-radius:19px 19px 0 0;margin:-34px -34px 28px;padding:22px;font-size:28px;font-weight:800}.auth-brand span{color:#65d4c3}.auth-brand small{letter-spacing:2px;color:#a9cbc5;margin-top:3px;font-size:9px;display:block}.auth-icon{color:#0f766e;background:#ddf2ed;border-radius:18px;place-items:center;width:60px;height:60px;margin:0 auto 14px;display:grid}.auth-icon svg{width:29px;height:29px}.auth-card h1{margin:0 0 7px;font-size:25px}.auth-card>p{color:var(--muted);margin:0 0 23px;font-size:13px}.auth-card form{text-align:left}.auth-card form label{margin-bottom:14px;display:block}.auth-card form label>span{color:#536963;margin-bottom:6px;font-size:12px;font-weight:600;display:block}.auth-card form input{border:1px solid #c9dcd8;border-radius:10px;outline:none;width:100%;padding:12px 13px;font-size:15px}.auth-card form input:focus{border-color:#36a395;box-shadow:0 0 0 4px #12a39015}.auth-card form label small{color:#7b8e89;margin-top:5px;font-size:10px;display:block}.auth-card form .primary{width:100%;min-height:48px;margin-top:8px;font-size:15px}.auth-error{color:#a43f49;background:#fff0f1;border-radius:9px;align-items:center;gap:8px;margin:5px 0 12px;padding:10px 12px;font-size:12px;display:flex}.auth-note{color:#82938f;margin-top:18px;font-size:10px;display:block}.auth-link{color:#607872;cursor:pointer;background:0 0;border:0;width:100%;padding:11px}.top-logout,.side-logout{color:#40605a;cursor:pointer;background:#fff;border:1px solid #d2e2df;border-radius:9px;align-items:center;gap:6px;padding:8px 10px;font-size:11px;display:flex}.side-logout{color:#d4e6e2;background:#ffffff12;border-color:#ffffff25;margin-left:auto;padding:7px}.top-logout:hover{background:#edf6f4}.side-logout:hover{background:#ffffff20}.new-customer-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px;display:grid}.new-customer-stats>div,.new-customer-stats>button{border:1px solid var(--line);text-align:left;color:inherit;background:#fff;border-radius:16px;align-items:center;gap:14px;padding:17px 20px;display:flex}.new-customer-stats>button{cursor:pointer}.new-customer-stats>button:hover,.new-customer-stats>button.active{border-color:#55aa9e;box-shadow:0 5px 16px #145f5520}.new-customer-stats>button.active{background:#eff9f6}.new-customer-stats svg{color:var(--teal)}.new-customer-stats span{color:var(--muted);flex-direction:column;font-size:13px;display:flex}.new-customer-stats b{color:var(--ink);margin-top:3px;font-size:20px}.new-customer-stats .warn svg,.new-customer-stats .warn b{color:#b7791f}.year-tabs{flex-wrap:wrap;gap:8px;margin-bottom:14px;display:flex}.year-tabs button{border:1px solid var(--line);color:var(--muted);cursor:pointer;background:#fff;border-radius:999px;padding:9px 15px;font-weight:700}.year-tabs button.active{background:var(--teal);border-color:var(--teal);color:#fff}.year-tabs small{opacity:.75;margin-left:8px}.new-customer-tools{grid-template-columns:minmax(300px,1fr) 230px 210px}.customer-region{margin-top:18px;padding:0;overflow:hidden}.customer-region>.panel-title{border-bottom:1px solid var(--line);background:#f3faf8;padding:19px 22px}.province-block>h3{border-bottom:1px solid var(--line);align-items:center;gap:8px;margin:0;padding:14px 22px;font-size:15px;display:flex}.province-block>h3 svg{color:var(--teal)}.province-block>h3 span{color:#087c70;background:#e5f6f2;border-radius:999px;margin-left:auto;padding:3px 9px;font-size:12px}.new-customer-list article{border-bottom:1px solid var(--line);grid-template-columns:165px minmax(260px,1fr) minmax(190px,.65fr) 120px;align-items:center;gap:18px;padding:15px 22px;display:grid}.new-customer-list article:last-child{border-bottom:0}.new-customer-list p,.new-customer-list small{color:var(--muted);margin:4px 0 0;font-size:12px;display:block}.new-date{flex-direction:column;display:flex}.source-badge{color:#087b70;background:#e6f5f2;border-radius:999px;justify-self:end;padding:5px 10px;font-size:12px;font-weight:700}.source-badge.google_sheet{color:#3267c7;background:#e8f0fe}.sheet-ready-note{color:#176b62;background:#f4fbf9;border:1px dashed #90cfc5;border-radius:15px;align-items:flex-start;gap:13px;margin-top:18px;padding:17px 19px;display:flex}.sheet-ready-note span{color:var(--muted);margin-top:4px;font-size:13px;display:block}@media (width<=900px){.new-customer-stats,.new-customer-tools{grid-template-columns:1fr}.new-customer-list article{grid-template-columns:1fr;gap:8px}.source-badge{justify-self:start}}.new-customer-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:260px;margin-top:18px;padding:40px;display:flex}.new-customer-empty>svg{color:#57afa4;width:44px;height:44px;margin-bottom:12px}.new-customer-empty h2{margin:0 0 7px;font-size:21px}.new-customer-empty p{color:var(--muted);max-width:560px;margin:0}.new-customer-empty button{margin-top:18px}.customer-directory-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px;display:grid}.customer-directory-stats>div,.customer-directory-stats>button{border:1px solid var(--line);text-align:left;color:inherit;background:#fff;border-radius:15px;align-items:center;gap:13px;padding:15px 18px;display:flex}.customer-directory-stats>button{cursor:pointer}.customer-directory-stats>button:hover,.customer-directory-stats>button.active{border-color:#55aa9e;box-shadow:0 5px 16px #145f5520}.customer-directory-stats>button.active{background:#eff9f6}.customer-directory-stats svg{color:var(--teal)}.customer-directory-stats span{color:var(--muted);flex-direction:column;font-size:12px;display:flex}.customer-directory-stats b{color:var(--text);margin-top:2px;font-size:18px}.customer-directory-stats .warn svg,.customer-directory-stats .warn b{color:#b7791f}.customer-directory-tools{grid-template-columns:minmax(280px,1fr) 220px 200px auto}.unclassified-label{color:#9a6717;background:#fff1cf;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700;display:inline-flex}@media (width<=1000px){.customer-directory-stats,.customer-directory-tools{grid-template-columns:1fr}.customer-directory-tools .page-summary{justify-self:start}}.crm-map-layout{grid-template-columns:230px minmax(420px,1fr) 330px;gap:14px;height:calc(100vh - 190px);min-height:610px;display:grid}.crm-map-filters,.crm-shop-panel{padding:16px;overflow:hidden}.crm-map-filters h2,.crm-shop-head h2{margin:0 0 13px;font-size:15px}.crm-map-filters h3{color:var(--muted);margin:20px 0 8px;font-size:11px}.crm-map-filters>button{border:1px solid var(--line);cursor:pointer;text-align:left;width:100%;color:var(--ink);background:#fff;border-radius:9px;align-items:center;gap:8px;margin-bottom:7px;padding:10px;display:flex}.crm-map-filters>button b{margin-left:auto}.crm-map-filters>button.active{background:#eaf7f3;border-color:#2f9c8f}.crm-map-filters select{border:1px solid var(--line);background:#fff;border-radius:9px;width:100%;margin-bottom:8px;padding:10px}.map-dot,.map-legend i{border-radius:50%;width:10px;height:10px;display:inline-block}.map-dot.all{background:#193a35}.map-dot.dense,.map-legend i.dense{background:#10a879}.map-dot.urgent,.map-legend i.urgent{background:#df3f45}.map-legend i.medium{background:#e59b22}.map-legend{border-top:1px solid var(--line);gap:8px;margin-top:18px;padding-top:12px;display:grid}.map-legend span{color:var(--muted);align-items:center;gap:7px;font-size:10px;display:flex}.crm-map-canvas{border:1px solid var(--line);z-index:1;background:#dcecee;border-radius:14px;overflow:hidden}.crm-shop-panel{flex-direction:column;display:flex}.crm-shop-head{justify-content:space-between;align-items:center;display:flex}.crm-shop-head b{color:#0f766e;background:#e4f4f0;border-radius:999px;padding:5px 8px;font-size:11px}.crm-shop-panel .search{margin-bottom:10px}.crm-shop-list{flex-direction:column;gap:8px;padding-right:4px;display:flex;overflow:auto}.crm-shop-list article{border:1px solid var(--line);background:#fff;border-left:4px solid #2e9d90;border-radius:10px;padding:10px 11px}.crm-shop-list article>div{align-items:flex-start;gap:6px;display:flex}.crm-shop-list article b{font-size:11px}.crm-shop-list article em{color:#117466;white-space:nowrap;background:#dff3ed;border-radius:8px;padding:2px 5px;font-size:8px;font-style:normal}.crm-shop-list article span,.crm-shop-list article a,.crm-shop-list article small{color:var(--muted);margin-top:3px;font-size:9px;display:block}.crm-shop-list article a{color:#1678b8;text-decoration:none}.crm-shop-list article small{align-items:center;gap:3px;display:flex}.crm-shop-list article strong{color:#0f766e;margin-top:5px;font-size:9px;display:block}.crm-more{text-align:center;color:var(--muted);padding:10px;font-size:9px}.leaflet-tooltip{font-family:inherit}@media (width<=1200px){.crm-map-layout{grid-template-columns:200px 1fr}.crm-shop-panel{grid-column:1/-1;max-height:420px}.crm-map-layout{height:auto}.crm-map-canvas{min-height:600px}}@media (width<=760px){.crm-map-layout{grid-template-columns:1fr}.crm-map-canvas{min-height:520px}.crm-map-filters{order:2}.crm-shop-panel{order:3}}.user-modal .form-grid select{background:#fff;border:1px solid #d7e3e0;border-radius:9px;outline:none;width:100%;padding:10px 11px}.user-modal .form-grid label small{color:var(--muted);margin-top:5px;font-size:10px;display:block}.users-panel .inline-select{border:1px solid var(--line);color:#29413d;background:#fff;border-radius:8px;padding:7px 9px}.users-panel .inline-select:disabled{opacity:.6}.inactive-user{opacity:.58;background:#f8faf9}.account-toggle{color:#667b76;cursor:pointer;background:#edf2f1;border:0;border-radius:999px;align-items:center;gap:6px;padding:6px 9px;font-size:10px;display:inline-flex}.account-toggle i{background:#95a6a2;border-radius:50%;width:7px;height:7px}.account-toggle.active{color:#0c705a;background:#def4ec}.account-toggle.active i{background:#13a074}.account-toggle:disabled{cursor:not-allowed;opacity:.65}.temporary-password{grid-template-columns:28px 1fr;align-items:start;gap:12px;padding:24px;display:grid}.temporary-password>svg{color:#b7791f}.temporary-password p{color:var(--muted);margin:0;font-size:12px}.temporary-password code{color:#fff;text-align:center;letter-spacing:.5px;word-break:break-all;background:#103f3a;border-radius:10px;grid-column:1/-1;padding:16px;font-size:17px;display:block}.temporary-password button{grid-column:1/-1;justify-self:center}.password-modal{width:min(560px,100%)}@media (width<=680px){.users-panel table{min-width:760px}.user-modal .form-grid{grid-template-columns:1fr}.user-modal .form-grid .wide{grid-column:auto}}.stock-section{margin-bottom:34px}.stock-section-head{justify-content:space-between;align-items:flex-end;margin-bottom:15px;display:flex}.stock-section-head h2,.catalog-master-head h2{margin:0 0 4px;font-size:20px}.stock-section-head p,.catalog-master-head p{color:var(--muted);margin:0;font-size:12px}.stock-section-head>a{border:1px solid var(--line);color:#176c64;background:#fff;border-radius:10px;align-items:center;gap:7px;padding:9px 12px;font-size:11px;font-weight:700;text-decoration:none;display:flex}.stock-kpis{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:13px;display:grid}.stock-kpis button{border:1px solid var(--line);text-align:left;color:#31524c;cursor:pointer;background:#fff;border-radius:13px;align-items:center;gap:12px;padding:14px 16px;display:flex}.stock-kpis button:hover,.stock-kpis button.active{border-color:#4da99c;box-shadow:0 5px 18px #145f5518}.stock-kpis button.active{background:#eef9f6}.stock-kpis button>svg{color:#0f766e;width:24px}.stock-kpis span,.stock-kpis b{display:block}.stock-kpis span{color:var(--muted);font-size:10px}.stock-kpis b{color:#173c37;margin-top:2px;font-size:20px}.stock-kpis .stock-out>svg,.stock-kpis .stock-out b{color:#bb5b50}.stock-toolbar{justify-content:space-between;align-items:center;margin-bottom:13px;display:flex}.stock-toolbar .search{min-width:min(520px,100%)}.stock-toolbar>span{color:var(--muted);font-size:11px}.stock-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.stock-grid>article{border:1px solid var(--line);background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 4px 16px #183f3809}.stock-grid>article>header{justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 15px 11px;display:flex}.stock-grid header b,.stock-grid header span{display:block}.stock-grid header b{font-size:13px}.stock-grid header span{color:var(--muted);margin-top:3px;font-size:10px}.stock-grid header em{white-space:nowrap;border-radius:999px;padding:5px 8px;font-size:9px;font-style:normal;font-weight:700}.stock-grid header em.store{color:#08725c;background:#dcf5ed}.stock-grid header em.factory{color:#98610b;background:#fff0d5}.stock-grid header em.out{color:#a84249;background:#ffe7e7}.stock-locations{border-top:1px solid var(--line);grid-template-columns:1fr 1fr;display:grid}.stock-locations>div{align-items:center;gap:9px;padding:12px 14px;display:flex}.stock-locations>div+div{border-left:1px solid var(--line)}.stock-locations svg{color:#7d918d;width:18px}.stock-locations span,.stock-locations strong{display:block}.stock-locations span{color:var(--muted);font-size:9px}.stock-locations strong{color:#1d3d38;margin-top:2px;font-size:13px}.stock-locations .preferred{background:#f2fbf8}.stock-locations .preferred svg,.stock-locations .preferred strong{color:#087664}.stock-locations .empty strong{color:#9ca9a6}.stock-empty{grid-column:1/-1;padding:35px}.catalog-master-head{border-top:1px solid var(--line);margin-bottom:14px;padding-top:27px}@media (width<=1050px){.stock-grid,.stock-kpis{grid-template-columns:repeat(2,1fr)}}@media (width<=680px){.stock-section-head{flex-direction:column;align-items:flex-start;gap:12px}.stock-kpis,.stock-grid{grid-template-columns:1fr}.stock-toolbar{flex-direction:column;align-items:stretch;gap:8px}.stock-toolbar .search{min-width:0}.stock-toolbar>span{align-self:flex-end}}.stock-title-line{flex-wrap:wrap;align-items:center;gap:11px;display:flex}.stock-title-line h2{margin:0}.stock-title-line>a{color:#0c6d63;background:#e5f5f1;border-radius:999px;align-items:center;gap:6px;padding:6px 10px;font-size:10px;font-weight:700;text-decoration:none;display:inline-flex}.stock-section-head{align-items:flex-start}.stock-section-head p{margin-top:7px}.stock-table{overflow:auto}.stock-table thead tr:first-child th{background:#f3f8f6;border-bottom:1px solid #d7e6e2}.stock-table th[rowspan="2"]{vertical-align:middle}.stock-table .stock-location-head{text-align:center;color:#244d47;font-size:12px}.stock-table .stock-location-head svg{vertical-align:-3px;margin-right:5px}.stock-table .stock-location-head.store{color:#0b6f63;background:#eaf7f3}.stock-table tbody td:nth-child(3),.stock-table tbody td:nth-child(4){background:#fbfcfc}.stock-table tbody td:nth-child(5),.stock-table tbody td:nth-child(6){background:#f3faf8}.stock-table .stock-number{color:#36554f;font-size:14px;font-weight:800}.stock-table .store-number{color:#087568}.stock-table .empty{border:0;border-radius:0;padding:35px}@media (width<=680px){.stock-title-line{flex-direction:column;align-items:flex-start}.stock-section-head p{line-height:1.6}}.stock-table th,.stock-table td{text-align:center}.stock-table th:first-child,.stock-table td:first-child{text-align:left}.stock-table tbody td{background:#fff}.stock-table .stock-product-cell{vertical-align:middle;text-align:left;background:#f7faf9;width:210px}.stock-table .stock-product-cell.right{text-align:right}.stock-table .stock-size-cell{vertical-align:middle;background:#fbfcfc;width:95px;font-weight:700}.stock-table .stock-size-cell.right{text-align:right}.stock-table .stock-divider{border-bottom-color:#173c37;width:14px;min-width:14px;padding:0;background:#173c37!important}.stock-table thead .stock-divider{background:#173c37}.stock-table .stock-location-head.factory{background:#f3f6f5}.stock-table .stock-location-head.store{background:#eaf7f3}.stock-table tbody .stock-number{background:#fffbed}.stock-table tbody .store-number{background:#f0f8ff}.stock-table tbody tr:first-child td{border-top:0}@media (width<=680px){.stock-table table{min-width:940px}}.stock-table .stock-sku-cell{vertical-align:middle;color:#087568;text-align:left;background:#eef8f5;width:90px}@media (width<=680px){.stock-table table{min-width:1040px}}.stock-table table{table-layout:fixed;border:2px solid #55a64d}.stock-table thead th,.stock-table thead tr:first-child th{color:#fff;text-align:center;background:#0d9b62;border:1px solid #08744d;font-weight:700}.stock-table thead .stock-location-head.factory,.stock-table thead .stock-location-head.store{color:#fff;background:#0d9b62}.stock-table tbody td{border-bottom:1px dotted #7f9690;border-left:1px solid #a9bbb7;border-right:1px solid #a9bbb7}.stock-table .stock-unit-head,.stock-table .stock-unit-cell{vertical-align:middle;width:105px;text-align:center!important}.stock-table .stock-number{vertical-align:middle;width:125px;text-align:center!important}.stock-table .stock-size-cell{text-align:center;width:95px}.stock-table .stock-product-cell{width:205px}.stock-table .stock-sku-cell{text-align:center;width:90px}.stock-table tr.stock-group-start td{border-top:2px solid #55a64d}.stock-table td[rowspan]{border-bottom:2px solid #55a64d}.stock-table .stock-divider{border-left:2px solid #173c37;border-right:2px solid #173c37}.stock-table thead .stock-location-head.factory,.stock-table thead .stock-location-head.store{letter-spacing:.2px;height:58px;font-size:17px;font-weight:900}.stock-table thead .stock-location-head svg{vertical-align:-5px;width:22px;height:22px;margin-right:8px}.stock-table tbody .stock-number,.stock-table tbody .store-number{color:#4d3b00;background:#f3d36a;font-size:16px;font-weight:900}.stock-table thead th,.stock-table thead tr:first-child th{font-size:14px;font-weight:900;line-height:1.35}.stock-table thead .stock-location-head.factory,.stock-table thead .stock-location-head.store{font-size:19px}.stock-table tbody .stock-number,.stock-table tbody .store-number{font-size:18px;font-weight:900;color:#3f3100!important;background:#f1cf59!important}.stock-table tbody td{min-height:48px;padding-top:14px;padding-bottom:14px}.stock-table tbody td:not(.stock-divider){transition:background-color .16s,color .16s,box-shadow .16s}.stock-table tr.family-original.product-active td:not(.stock-divider){color:#194d2c!important;background:#e8f7ed!important}.stock-table tr.family-original.size-active td:not(.stock-divider){color:#123d22!important;background:#c7ecd4!important}.stock-table tr.family-original .stock-product-cell.product-focus{box-shadow:inset 0 0 0 3px #168044;color:#fff!important;background:#33a866!important}.stock-table tr.family-cattle.product-active td:not(.stock-divider){color:#16485c!important;background:#e5f5fb!important}.stock-table tr.family-cattle.size-active td:not(.stock-divider){color:#103b4d!important;background:#bee6f4!important}.stock-table tr.family-cattle .stock-product-cell.product-focus{box-shadow:inset 0 0 0 3px #197d9f;color:#fff!important;background:#36a7cf!important}.stock-table tr.family-clean.product-active td:not(.stock-divider){color:#223d78!important;background:#e8eefb!important}.stock-table tr.family-clean.size-active td:not(.stock-divider){color:#172f64!important;background:#cbd9f5!important}.stock-table tr.family-clean .stock-product-cell.product-focus{box-shadow:inset 0 0 0 3px #28509d;color:#fff!important;background:#416fc7!important}.stock-table tr.family-other.product-active td:not(.stock-divider){color:#284640!important;background:#eef3f2!important}.stock-table tr.family-other.size-active td:not(.stock-divider){background:#dce8e5!important}.stock-table tr.family-other .stock-product-cell.product-focus{box-shadow:inset 0 0 0 3px #365851;color:#fff!important;background:#52756e!important}.stock-table tr.family-original{--stock-hover-border:#168044}.stock-table tr.family-cattle{--stock-hover-border:#197d9f}.stock-table tr.family-clean{--stock-hover-border:#28509d}.stock-table tr.family-other{--stock-hover-border:#365851}.stock-table tr.size-active .size-left-edge{box-shadow:inset 3px 0 var(--stock-hover-border),inset 0 3px var(--stock-hover-border),inset 0 -3px var(--stock-hover-border)}.stock-table tr.size-active .size-right-edge{box-shadow:inset -3px 0 var(--stock-hover-border),inset 0 3px var(--stock-hover-border),inset 0 -3px var(--stock-hover-border)}.stock-table tr.size-active.size-first .stock-unit-cell{box-shadow:inset 0 3px var(--stock-hover-border)}.stock-table tr.size-active.size-last .stock-unit-cell{box-shadow:inset 0 -3px var(--stock-hover-border)}.stock-table tr.size-active.size-first.size-last .stock-unit-cell{box-shadow:inset 0 3px var(--stock-hover-border),inset 0 -3px var(--stock-hover-border)}.stock-table tr.size-active .size-left-right-edge{box-shadow:inset -3px 0 var(--stock-hover-border)}.stock-table tr.size-active.size-first .size-left-right-edge{box-shadow:inset -3px 0 var(--stock-hover-border),inset 0 3px var(--stock-hover-border)}.stock-table tr.size-active.size-last .size-left-right-edge{box-shadow:inset -3px 0 var(--stock-hover-border),inset 0 -3px var(--stock-hover-border)}.stock-table tr.size-active.size-first.size-last .size-left-right-edge{box-shadow:inset -3px 0 var(--stock-hover-border),inset 0 3px var(--stock-hover-border),inset 0 -3px var(--stock-hover-border)}.stock-table tr.size-active .size-right-left-edge{box-shadow:inset 3px 0 var(--stock-hover-border)}.stock-table tr.size-active.size-first .size-right-left-edge{box-shadow:inset 3px 0 var(--stock-hover-border),inset 0 3px var(--stock-hover-border)}.stock-table tr.size-active.size-last .size-right-left-edge{box-shadow:inset 3px 0 var(--stock-hover-border),inset 0 -3px var(--stock-hover-border)}.stock-table tr.size-active.size-first.size-last .size-right-left-edge{box-shadow:inset 3px 0 var(--stock-hover-border),inset 0 3px var(--stock-hover-border),inset 0 -3px var(--stock-hover-border)}.stock-table{--stock-group-border:#08a88c}.stock-table tbody tr.stock-group-start:not(:first-child) td{border-top:5px solid var(--stock-group-border)!important}.stock-table .stock-sku-cell,.stock-table thead th:first-child{border-left:3px solid var(--stock-group-border)!important;border-right:5px solid var(--stock-group-border)!important}.stock-table tbody tr:last-child td{border-bottom:5px solid var(--stock-group-border)}.stock-table tbody .stock-number,.stock-table tbody .store-number{color:#4b3a12!important;background:#ffe7a3!important}.stock-table tbody tr:hover .stock-number,.stock-table tbody tr:hover .store-number{background:#ffda78!important}.stock-table:before{content:"🏭  โรงงาน — สินค้าคงเหลือ　　　　　　　　　　📍  สโตร์ 88 — สินค้าคงเหลือ";color:#123f3b;text-align:center;letter-spacing:.2px;background:linear-gradient(90deg,#edf8f4 0 53.2%,#dcefe9 53.2% 54.4%,#e8f7f3 54.4% 100%);border-bottom:3px solid #08a88c;min-width:1140px;padding:15px 18px 13px;font-size:21px;font-weight:900;line-height:1.3;display:block}.stock-table table{min-width:1060px}.stock-table:before{border-bottom-width:2px;min-width:1060px;padding:9px 14px 8px;font-size:17px;font-weight:700}.stock-table thead th,.stock-table thead tr:first-child th{padding:9px 10px;font-size:11px;font-weight:700;line-height:1.25}.stock-table thead .stock-location-head.factory,.stock-table thead .stock-location-head.store{height:46px;font-size:16px;font-weight:700}.stock-table thead .stock-location-head svg{width:18px;height:18px;margin-right:5px}.stock-table tbody td{min-height:0;padding-top:8px;padding-bottom:8px;font-weight:500}.stock-table tbody .stock-number,.stock-table tbody .store-number{font-size:15px;font-weight:700}.stock-table .stock-product-cell{font-size:14px;font-weight:700;line-height:1.35}.stock-table .stock-sku-cell{font-size:11px;font-weight:700}.stock-table .stock-size-cell{font-size:13px;font-weight:700}.stock-table .stock-unit-cell{font-size:12px;font-weight:500}.stock-table tbody tr.stock-group-start:not(:first-child) td{border-top-width:3px!important}.stock-table .stock-sku-cell,.stock-table thead th:first-child{border-left-width:2px!important;border-right-width:3px!important}.stock-table tbody tr:last-child td{border-bottom-width:3px}.stock-table .stock-divider{border-left-width:1px;border-right-width:1px;width:10px;min-width:10px}.content:has(.stock-section)>.page-head{display:none}.stock-section-head{text-align:center;margin:0 0 12px;display:block}.stock-section-head>div>p,.stock-title-line h2{display:none}.stock-title-line{justify-content:center;display:flex}.stock-title-line>a{color:#075f56;background:#dff4ee;border:1px solid #a9ddd1;border-radius:999px;padding:9px 18px;font-size:15px;font-weight:800;box-shadow:0 4px 12px #0f766e18}.stock-title-line>a svg{width:19px;height:19px}.stock-table tr.product-active td:not(.stock-divider),.stock-table tr.size-active td:not(.stock-divider){color:inherit!important;background:#fff!important}.stock-table tr.product-active .stock-sku-cell,.stock-table tr.size-active .stock-sku-cell{color:#087568!important;background:#eef8f5!important}.stock-table tr.product-active .stock-product-cell,.stock-table tr.size-active .stock-product-cell{color:#152522!important;background:#f7faf9!important}.stock-table tr.product-active .stock-size-cell,.stock-table tr.size-active .stock-size-cell,.stock-table tr.product-active .stock-unit-cell,.stock-table tr.size-active .stock-unit-cell{color:#152522!important;background:#fbfcfc!important}.stock-table tr.product-active .stock-number,.stock-table tr.size-active .stock-number,.stock-table tbody tr:hover .stock-number,.stock-table tbody tr:hover .store-number{color:#4b3a12!important;background:#ffe7a3!important}.stock-table tr.family-original,.stock-table tr.family-cattle,.stock-table tr.family-clean,.stock-table tr.family-other{--stock-hover-border:#126f65}.stock-table tr .stock-product-cell.product-focus{color:#152522!important;box-shadow:inset 0 0 0 3px var(--stock-hover-border)!important;background:#f7faf9!important}.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).product-active td:not(.stock-divider),.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).size-active td:not(.stock-divider){color:inherit!important;background:#fff!important}.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).product-active .stock-sku-cell,.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).size-active .stock-sku-cell{color:#087568!important;background:#eef8f5!important}.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).product-active .stock-product-cell,.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).size-active .stock-product-cell{color:#152522!important;background:#f7faf9!important}.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).product-active .stock-size-cell,.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).size-active .stock-size-cell,.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).product-active .stock-unit-cell,.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).size-active .stock-unit-cell{color:#152522!important;background:#fbfcfc!important}.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).product-active .stock-number,.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).size-active .stock-number{color:#4b3a12!important;background:#ffe7a3!important}.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other) .stock-product-cell.product-focus{color:#152522!important;box-shadow:inset 0 0 0 3px var(--stock-hover-border)!important;background:#f7faf9!important}.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).size-active .stock-number{color:#4b3a12!important;background:#ffe7a3!important}.stock-table table tbody tr.size-active td.stock-number.size-left-right-edge,.stock-table table tbody tr.size-active td.stock-number.store-number.size-right-left-edge{color:#4b3a12!important;background-color:#ffe7a3!important;background-image:none!important}.stock-table tr:is(.family-original,.family-cattle,.family-clean,.family-other).product-active:not(.size-active) .stock-number{color:#4b3a12!important;background:#ffe7a3!important}.stock-table table tbody tr.size-active td.stock-number.size-left-right-edge,.stock-table table tbody tr.size-active td.stock-number.store-number.size-right-left-edge{color:#152522!important;background:#fff!important}.user-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}.login-history{margin-top:18px}.login-history table{min-width:820px}.login-history td:first-child{white-space:nowrap}.login-history .status.draft{color:#47627f;background:#e8eef7}.login-history .code{font-size:11px}.history-actions{align-items:center;gap:9px;display:flex}.history-toggle{padding:7px 11px;font-size:11px}.history-toggle svg{transition:transform .2s;transform:rotate(90deg)}.login-history.collapsed .history-toggle svg{transform:rotate(0)}.login-history.collapsed .panel-title{padding-top:16px;padding-bottom:16px}.history-username{color:#0b6f63;font-family:ui-monospace,Consolas,monospace;font-size:13px}.customer-detail .order-history span{color:#4c625d;margin-top:2px;font-size:12px;font-weight:600;line-height:1.5}.catalog-trend{background:#fbfdfc;border:1px solid #d9e8e4;border-radius:12px;margin-top:20px;padding:15px 14px 12px}.catalog-trend-head{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.catalog-trend-head h3{margin:0;font-size:14px}.catalog-trend-head p{color:var(--muted);margin:3px 0 0;font-size:10px}.catalog-trend-head>span{color:#0f766e;white-space:nowrap;background:#e1f4ef;border-radius:999px;padding:5px 8px;font-size:9px}.catalog-chart{grid-template-columns:repeat(12,minmax(24px,1fr));align-items:end;gap:7px;height:190px;padding-top:24px;display:grid}.catalog-bar-item{text-align:center;grid-template-rows:17px 1fr 17px 18px;align-items:end;min-width:0;height:100%;display:grid}.catalog-bar-item>b{color:#56706a;white-space:nowrap;font-size:8px}.catalog-bar-track{background:#edf3f1;border-radius:5px 5px 2px 2px;align-items:flex-end;height:100%;display:flex;overflow:hidden}.catalog-bar-track i{background:linear-gradient(#35b59f,#0f766e);border-radius:5px 5px 2px 2px;width:100%;min-height:2px;transition:height .25s;display:block}.catalog-bar-item:hover .catalog-bar-track i{background:#075f56}.catalog-bar-item>strong{color:#2f4d47;font-size:9px}.catalog-bar-item>small{color:#78908b;white-space:nowrap;font-size:8px}.catalog-year-legend{justify-content:flex-end;gap:12px;margin:-4px 0 8px;display:flex}.catalog-year-legend span{color:#526963;align-items:center;gap:5px;font-size:9px;display:flex}.catalog-year-legend i{border-radius:3px;width:10px;height:10px}.catalog-chart-three{background:repeating-linear-gradient(0deg,#0000 0 43px,#e8efed 44px);border-bottom:1px solid #9eb6b0;border-left:1px solid #d7e3e0;grid-template-columns:repeat(12,minmax(32px,1fr));align-items:end;gap:5px;height:215px;padding-top:18px;display:grid}.catalog-month-group{grid-template-rows:1fr 20px;min-width:0;height:100%;display:grid}.catalog-month-bars{justify-content:center;align-items:flex-end;gap:2px;height:100%;display:flex}.catalog-year-bar{text-align:center;flex:1;grid-template-rows:16px 1fr;align-items:end;min-width:0;height:100%;display:grid}.catalog-year-bar>b{color:#526963;white-space:nowrap;font-size:7px;overflow:visible}.catalog-year-bar>div{align-items:flex-end;height:100%;display:flex}.catalog-year-bar i{border-radius:3px 3px 0 0;width:100%;min-height:2px;transition:filter .15s;display:block}.catalog-year-bar:hover i{filter:brightness(.85)}.catalog-month-group>strong{text-align:center;color:#2f4d47;padding-top:4px;font-size:9px}.customer-detail .purchase-bars{gap:7px;height:205px;padding-top:18px}.customer-detail .purchase-bars>div{gap:6px;min-width:49px}.customer-detail .purchase-bars i{width:24px}.customer-detail .purchase-bars .bar-value{color:#214f48;font-size:10px;font-weight:800}.customer-detail .purchase-bars span{color:#536d67;font-size:10px;font-weight:700}.customer-followup{margin-bottom:18px;overflow:hidden}.customer-followup .panel-title{border-bottom:1px solid var(--line)}.customer-followup select{border:1px solid var(--line);color:#31524c;background:#fff;border-radius:9px;padding:9px 32px 9px 11px;font-size:11px}.followup-cards{background:#f7faf9;grid-template-columns:repeat(5,1fr);gap:8px;padding:12px 14px;display:grid}.followup-cards button{text-align:left;color:#526762;cursor:pointer;background:#fff;border:1px solid #dce7e4;border-radius:10px;align-items:center;padding:9px 10px;display:flex}.followup-cards button:hover,.followup-cards button.active{color:#0d6d63;background:#eaf7f3;border-color:#3da092}.followup-cards span{font-size:9px;line-height:1.35}.followup-cards b{color:#173c37;margin-left:auto;font-size:17px}.followup-list{grid-template-columns:1fr 1fr;display:grid}.followup-list>button{text-align:left;color:inherit;cursor:pointer;background:#fff;border:0;border-bottom:1px solid #e7eeec;grid-template-columns:8px minmax(0,1fr) auto auto 17px;align-items:center;gap:9px;padding:11px 14px;display:grid}.followup-list>button:nth-child(odd){border-right:1px solid #e7eeec}.followup-list>button:hover{background:#f1f9f7}.followup-list b,.followup-list span{display:block}.followup-list b{font-size:12px}.followup-list span{color:#647a75;margin-top:3px;font-size:10px}.followup-list strong{color:#0f6e65;white-space:nowrap;font-size:11px}.followup-list em{color:#546d67;white-space:nowrap;background:#edf3f1;border-radius:999px;padding:4px 7px;font-size:9px;font-style:normal}.followup-level{background:#7aa99f;border-radius:6px;width:8px;height:38px}.followup-level.urgent{background:#d94b55}.followup-level.dormant{background:#e2972d}.followup-level.declining{background:#8a69bd}.followup-level.due{background:#38a78f}.followup-level.one_time{background:#5f91df}@media (width<=1000px){.followup-cards{grid-template-columns:repeat(2,1fr)}.followup-list{grid-template-columns:1fr}.followup-list>button:nth-child(odd){border-right:0}}.interactive-hover-table tbody tr{transition:transform .16s,filter .16s}.interactive-hover-table tbody tr td{transition:background-color .16s,color .16s,box-shadow .16s}.interactive-hover-table tbody tr:hover{filter:drop-shadow(0 5px 7px #0f766e24);z-index:1;background:0 0;position:relative;transform:translateY(-1px)}.interactive-hover-table tbody tr:hover td{background:#e7f7f1}.interactive-hover-table tbody tr:hover td:first-child{box-shadow:inset 4px 0 #48b89d,inset 0 1px #b9e4d8,inset 0 -1px #b9e4d8}.interactive-hover-table tbody tr:hover td:not(:first-child):not(:last-child){box-shadow:inset 0 1px #b9e4d8,inset 0 -1px #b9e4d8}.interactive-hover-table tbody tr:hover td:last-child{box-shadow:inset -1px 0 #b9e4d8,inset 0 1px #b9e4d8,inset 0 -1px #b9e4d8}.interactive-hover-table tbody tr:hover .code,.interactive-hover-table tbody tr:hover .strong{color:#075f56}.interactive-hover-table tbody tr:hover svg{color:#168b75}.po-drawer{animation:none}.po-history-list{background:#fff;overflow:visible}.po-history-list button{transition:transform .2s,background-color .2s,box-shadow .2s,border-color .2s;position:relative}.po-history-list button.active-po{z-index:2;cursor:default;background:linear-gradient(135deg,#dff6ef,#eefbf7);border:1px solid #55bba4;border-radius:10px;animation:.3s ease-out poActiveLift;transform:translateY(-3px)scale(1.015);box-shadow:0 9px 20px #0f766e32,inset 4px 0 #15937c}.po-history-list button.active-po i{background:#087466;box-shadow:0 0 0 4px #bdeadd}.po-history-list button.active-po b{color:#075f56;font-size:12px}.po-history-list button.active-po svg{color:#0f8d76}.po-history-list button em{color:#fff;background:#0f766e;border-radius:999px;margin-top:4px;padding:2px 7px;font-size:8px;font-style:normal;font-weight:700;display:inline-block}@keyframes poActiveLift{0%{transform:translateY(0)scale(1);box-shadow:0 1px 2px #0000}to{transform:translateY(-3px)scale(1.015);box-shadow:0 9px 20px #0f766e32}}.po-drawer header{padding:12px 22px}.po-drawer header h2{font-size:22px;line-height:1.15}.po-drawer header .icon-btn{width:34px;height:34px}.po-drawer .drawer-body{padding:12px 22px 18px;scroll-padding-top:10px}.po-drawer .doc-meta{gap:8px;margin-bottom:9px}.po-drawer .doc-meta>div{padding:8px 11px}.po-drawer .doc-meta small{margin-bottom:2px}.po-drawer .customer-card{gap:10px;margin-bottom:9px;padding:10px 12px}.po-drawer .customer-card>svg{width:34px;height:34px;padding:7px}.po-drawer .customer-card h3{margin:0;font-size:13px;line-height:1.35}.po-drawer .customer-card p{font-size:10px;line-height:1.35}.po-drawer .notice{padding:8px 11px}.po-drawer .section-title{margin:11px 0 7px}.po-drawer .line{grid-template-columns:24px 1fr 105px;padding:8px 11px}.po-drawer .line b{font-size:12px;line-height:1.4}.po-drawer .line small{color:#49625d;margin-top:3px;font-size:12px;font-weight:600;line-height:1.35}.po-drawer .line strong{font-size:12px}.po-drawer .totals{margin-top:9px}.po-drawer .totals p{padding:3px 0;font-size:11px}.po-drawer .totals .grand{margin-top:3px;padding-top:7px}.po-drawer .po-history{margin-top:14px;padding-top:12px;scroll-margin-top:8px}.po-drawer .po-history-head{margin-bottom:8px}.po-drawer .po-history-list button{padding:9px 12px}.po-drawer footer{padding:11px 22px}.po-drawer .drawer-body{flex-direction:column;min-height:0;display:flex;overflow:hidden}.po-drawer .po-detail-pane{overscroll-behavior:contain;flex:0 auto;max-height:58%;padding-right:5px;overflow-y:auto}.po-drawer .po-history{overscroll-behavior:contain;flex:1;min-height:190px;margin:10px -7px 0;padding:10px 7px 14px;overflow-y:auto}.po-drawer .po-history-head{z-index:4;background:#fff;border-bottom:1px solid #edf2f0;padding:8px 0 7px;position:sticky;top:-10px}.po-drawer .po-history-list{margin-top:5px}.po-promotions{color:#617581;background:#f7fafc;border:1px solid #d4e2e9;border-radius:7px;align-items:flex-start;gap:7px;margin-top:7px;padding:7px 9px;display:flex}.po-promotions>svg{color:#7d9baa;flex:none;width:15px;height:15px;margin-top:0}.po-promotions span,.po-promotions b,.po-promotions small{display:block}.po-promotions span{letter-spacing:.1px;font-size:9px;font-weight:600}.po-promotions b{color:#4f6977;margin-top:1px;font-size:11px;font-weight:600;line-height:1.35}.po-promotions small{color:#7a8b93;margin-top:1px;font-size:10px;font-weight:400}.po-promotions.has-promotions{background:#f2f7fa;border-color:#cadde7;box-shadow:inset 2px 0 #8bb7cc}.po-promotions.no-promotions{color:#71817d;box-shadow:none;background:#f7f9f8;border-color:#e4ebe9}.po-promotions.no-promotions>svg{color:#9aaba7}.po-drawer .po-promotions+.totals{margin-top:6px}.po-history-list button small{font-size:9px;line-height:1.4}.new-customers-page{position:relative}.new-customer-add-button{z-index:2;position:absolute;top:48px;right:0}@media (width<=760px){.new-customers-page .page-head{padding-bottom:62px}.new-customer-add-button{top:105px;left:0;right:auto}}.customer-delete-zone{background:#fff8f8;border:1px solid #f3c1c5;border-radius:12px;margin-top:8px;padding:16px}.customer-record-actions{flex-wrap:wrap;gap:10px;display:flex}.customer-record-actions .danger-action,.customer-record-actions .merge-action,.customer-delete-actions .merge-action{cursor:pointer;border-radius:9px;align-items:center;gap:8px;min-height:42px;padding:9px 14px;font-size:14px;font-weight:800;display:inline-flex}.customer-record-actions .merge-action,.customer-delete-actions .merge-action{color:#81540c;background:#fff8e8;border:1px solid #d99b32}.customer-record-actions .merge-action:hover,.customer-delete-actions .merge-action:hover{background:#ffefc6;border-color:#b77710}.customer-record-actions .danger-action{color:#a91f2d;background:#fff;border:1px solid #dc6670}.customer-record-actions .danger-action:hover{background:#ffe9eb;border-color:#bd2635}.customer-delete-zone>div:not(.customer-record-actions):first-child{flex-direction:column;gap:3px;margin-bottom:12px;display:flex}.customer-delete-zone>div:not(.customer-record-actions):first-child span{color:#7f5357;font-size:13px}.customer-delete-zone>input{width:100%}.customer-delete-zone>small{color:#bd2635;margin-top:8px;font-weight:700;display:block}.customer-delete-actions{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.modal{flex-direction:column;max-height:calc(100vh - 36px);display:flex}.modal>.form-grid{min-height:0;overflow-y:auto}.modal>header,.modal>footer{flex-shrink:0}.customer-merge-picker .customer-delete-actions{z-index:3;background:linear-gradient(#fff8f8eb,#fff8f8 28%);border-top:1px solid #ead9b4;margin-bottom:-16px;margin-left:-16px;margin-right:-16px;padding:12px 16px 16px;position:sticky;bottom:-16px}.danger-action.solid{color:#fff;background:#bd2635;border-color:#bd2635}.merge-action.solid{color:#fff;background:#b77710;border-color:#b77710}.customer-merge-picker{margin-top:12px}.merge-search-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;display:grid}.merge-search-row label>span{color:#5b6f6b;margin-bottom:6px;font-size:13px;font-weight:700;display:block}.merge-search-input{background:#fff;border:1px solid #cbdad6;border-radius:9px;align-items:center;gap:8px;min-height:42px;padding:0 10px;display:flex}.merge-search-input:focus-within{border-color:#b77710;box-shadow:0 0 0 3px #b777101f}.merge-search-input input{background:0 0;border:0;outline:0;width:100%;min-height:40px}.merge-candidate-list{flex-direction:column;gap:7px;max-height:280px;margin-top:10px;display:flex;overflow:auto}.merge-candidate-list>button{text-align:left;cursor:pointer;background:#fff;border:1px solid #d8e4e1;border-radius:9px;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;padding:10px;display:grid}.merge-candidate-list>button:hover{background:#fffbef;border-color:#c1912f}.merge-candidate-list>button.selected{background:#fff3cf;border-color:#b77710;box-shadow:0 0 0 2px #b777101f}.merge-radio{color:#fff;border:2px solid #d0a13e;border-radius:50%;place-items:center;width:20px;height:20px;font-size:12px;font-weight:900;display:grid}.merge-candidate-list>button.selected .merge-radio{background:#b77710}.merge-candidate-list b{color:#18332f;display:block}.merge-candidate-list small{color:#71817d;margin-top:3px;display:block}.merge-candidate-list em{color:#52645f;white-space:nowrap;font-size:12px;font-style:normal;font-weight:700}.merge-empty{color:#71817d;text-align:center;justify-content:center;gap:7px;padding:20px;display:flex}.merge-summary{color:#1b544b;background:#edf9f5;border-radius:9px;margin-top:10px;padding:10px 12px}.merge-summary span{margin-top:3px;font-size:12px;display:block}.merge-error{color:#bd2635;margin-top:8px;font-weight:700;display:block}@media (width<=680px){.merge-search-row{grid-template-columns:1fr}.merge-candidate-list>button{grid-template-columns:24px minmax(0,1fr)}.merge-candidate-list em{grid-column:2}}.invoice-line-edit{grid-template-columns:32px minmax(210px,1.25fr) minmax(210px,1.15fr) 82px 130px 116px 100px 40px;align-items:start}.invoice-line-edit>span,.invoice-line-edit>strong,.invoice-line-edit>.remove-line{align-self:start;margin-top:27px}.sales-unit-field em{color:#607b75;min-height:14px;margin-top:5px;font-size:10px;font-style:normal;line-height:1.35;display:block}@media (width<=1100px){.invoice-line-edit{grid-template-columns:32px minmax(190px,1fr) minmax(190px,1fr) 82px 120px 110px 95px 40px}}@media (width<=950px){.invoice-line-edit{grid-template-columns:32px 1fr 1fr}}
