@charset "UTF-8";
:root{--ink:#17332c;--ink-2:#26463e;--muted:#74837d;--muted-2:#96a39d;--canvas:#f5f7f4;--surface:#fff;--line:#e4eae5;--line-strong:#d5dfd8;--pine:#176b55;--pine-dark:#125644;--mint:#d8f2e5;--lime:#d9f89b;--lilac:#ece6fb;--peach:#ffead9;--butter:#fff1c5;--red:#a74343;--red-bg:#fff0ef;--green:#21684d;--green-bg:#e8f7ee;--shadow:0 22px 70px rgba(20,53,43,.075);--shadow-soft:0 8px 28px rgba(20,53,43,.055);--radius:18px;--radius-sm:12px;--font:Inter,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:var(--font);color:var(--ink);background:var(--canvas);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}::selection{background:#d6f2df;color:#17332c}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(70,162,125,.35);outline-offset:2px}.admin-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;padding:25px 18px 16px;background:#fff;border-right:1px solid #e8ede9;display:flex;flex-direction:column;z-index:30;transition:transform .28s cubic-bezier(.2,.75,.25,1)}.brand{display:flex;align-items:center;gap:11px;font-size:16px;font-weight:750;letter-spacing:-.045em;color:var(--ink)}.brand-mark{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:var(--pine);color:#fff;font-family:Georgia,serif;font-size:20px;font-weight:700;box-shadow:0 5px 12px rgba(23,107,85,.18)}.workspace-switcher{display:flex;align-items:center;gap:10px;margin:28px 2px 24px;padding:11px 10px;border:1px solid var(--line);border-radius:13px;background:#fbfcfa}.workspace-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--lime);color:#3d5430;font-size:10px;font-weight:800;letter-spacing:.02em}.workspace-copy,.user-copy{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.35}.workspace-copy strong,.user-copy strong{font-size:12px;font-weight:700}.workspace-copy small,.user-copy small{font-size:10px;color:var(--muted);text-transform:capitalize}.chevron{font-size:17px;color:var(--muted-2)}.side-nav{display:flex;flex-direction:column;gap:4px;overflow-y:auto;scrollbar-width:thin}.nav-caption{padding:0 11px 7px;color:#9aa59f;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.nav-caption-spaced{padding-top:22px}.nav-link{min-height:41px;display:flex;align-items:center;gap:11px;padding:0 11px;border-radius:11px;color:#63736c;font-size:12px;font-weight:600;transition:background .18s ease,color .18s ease,transform .18s ease}.nav-link:hover{background:#f4f8f4;color:var(--ink);transform:translateX(2px)}.nav-link.active{color:#145a47;background:#e8f5ee;font-weight:750}.nav-icon{width:18px;display:inline-grid;place-items:center;font-size:16px;color:#91a098}.active .nav-icon{color:var(--pine)}.nav-arrow{margin-left:auto;color:var(--pine);font-size:19px}.nav-badge,.nav-lock{margin-left:auto;border-radius:6px;padding:2px 6px;background:#e5f4ea;color:#287657;font-size:9px;font-weight:750}.nav-link-muted{color:#9ca8a2;cursor:default;pointer-events:none}.nav-link-muted .nav-icon{color:#b8c1bc}.nav-lock{background:#f4f5f3;color:#99a39e;font-size:8px;text-transform:uppercase;letter-spacing:.04em}.sidebar-bottom{margin-top:auto}.help-card{display:flex;align-items:center;gap:9px;margin:16px 1px 14px;padding:11px 10px;background:#f5f8f5;border-radius:13px}.help-icon{width:25px;height:25px;display:grid;place-items:center;border:1px solid #d8e4db;border-radius:50%;color:var(--pine);font-size:12px;font-weight:700}.help-card>span:nth-child(2){display:flex;flex-direction:column;line-height:1.35}.help-card strong{font-size:10px}.help-card small{font-size:9px;color:var(--muted)}.help-arrow{margin-left:auto;color:#9aa7a0}.user-card{display:flex;align-items:center;gap:9px;padding:13px 4px 1px;border-top:1px solid var(--line)}.user-avatar,.topbar-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#e9ede5;color:#436a53;font-size:12px;font-weight:750;flex:0 0 auto}.icon-button{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#83928b;font-size:14px;transition:background .15s ease,color .15s ease}.icon-button:hover{background:#edf3ee;color:var(--ink)}.logout-button{transform:rotate(45deg)}.admin-main{min-height:100vh;margin-left:260px;display:flex;flex-direction:column}.topbar{height:65px;position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;padding:0 clamp(22px,4vw,56px);background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border-bottom:1px solid rgba(228,234,229,.88)}.menu-toggle{display:none}.crumbs{display:flex;align-items:center;gap:10px;color:#9aa49f;font-size:11px}.crumbs strong{font-size:11px;color:#344b42;font-weight:700}.crumb-divider{color:#c5cec8}.topbar-right{display:flex;align-items:center;gap:8px;margin-left:auto;color:#8a9991;font-size:10px}.connection-dot{width:7px;height:7px;border-radius:50%;background:#57bf81;box-shadow:0 0 0 4px rgba(87,191,129,.13);display:inline-block}.topbar-avatar{width:28px;height:28px;margin-left:9px;font-size:10px;background:#f0e8d9;color:#876a41}.page-content{width:100%;max-width:1500px;margin:0 auto;padding:38px clamp(22px,4vw,56px) 54px;flex:1;animation:page-enter .5s both}.page-footer{display:flex;justify-content:space-between;padding:16px clamp(22px,4vw,56px);border-top:1px solid #e7ece8;color:#a0aaa4;font-size:9px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin:0 0 26px}.page-heading h1{margin:7px 0 3px;color:var(--ink);font-size:clamp(27px,3vw,37px);font-weight:680;letter-spacing:-.055em;line-height:1.12}.page-heading p{margin:8px 0 0;color:var(--muted);font-size:12px}.eyebrow{display:block;color:#82938a;font-size:9px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.greeting-dot{color:#61aa80}.button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 17px;border:1px solid transparent;border-radius:11px;font-size:11px;font-weight:750;letter-spacing:.005em;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease}.button:hover{transform:translateY(-2px)}.button:active{transform:translateY(0)}.button-primary{color:#fff;background:var(--pine);box-shadow:0 8px 18px rgba(23,107,85,.17)}.button-primary:hover{background:var(--pine-dark);box-shadow:0 11px 20px rgba(23,107,85,.22)}.button-primary span{font-size:15px;font-weight:400}.button-plus{font-size:18px;font-weight:400;line-height:1}.button-secondary{background:#edf6f0;color:#1e664f;border-color:#e3eee7}.button-secondary:hover{background:#e1f2e7}.button-quiet{background:#fff;color:#64766d;border-color:var(--line)}.button-quiet:hover{background:#f7faf7;color:var(--ink);border-color:#cddbd1}.button-light{background:#fff;color:var(--pine-dark);box-shadow:0 8px 23px rgba(0,0,0,.12)}.button-small{min-height:31px;padding:0 10px;border-radius:8px;font-size:10px}.button-full{width:100%}.text-link{display:inline-flex;align-items:center;gap:7px;color:var(--pine);font-size:10px;font-weight:750}.text-link span{font-size:15px}.back-link{display:inline-block;margin-bottom:8px;color:var(--pine);font-size:10px;font-weight:700}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric-card{position:relative;min-height:150px;padding:18px 18px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 5px 18px rgba(20,53,43,.025);overflow:hidden;animation:rise-in .55s both}.metric-card:nth-child(2){animation-delay:.06s}.metric-card:nth-child(3){animation-delay:.12s}.metric-card:nth-child(4){animation-delay:.18s}.metric-card-accent:after{content:"";position:absolute;width:110px;height:110px;right:-34px;bottom:-46px;border-radius:50%;background:#edf8e9}.metric-card-warning{border-color:#f1e5c5}.metric-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.metric-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;font-size:15px}.metric-icon-green{background:#e0f4e8;color:#2b7958}.metric-icon-lilac{background:var(--lilac);color:#7965a9}.metric-icon-peach{background:var(--peach);color:#a46b44}.metric-icon-yellow{background:var(--butter);color:#93743a}.metric-trend{color:#a0aaa4;font-size:9px}.metric-label{display:block;color:#718079;font-size:10px;font-weight:650}.metric-value{display:block;margin:1px 0;color:var(--ink);font-size:29px;font-weight:650;letter-spacing:-.055em;line-height:1.16}.metric-foot{display:block;max-width:90%;margin-top:5px;color:#9aa59f;font-size:9px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:17px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 5px 18px rgba(20,53,43,.025)}.branch-panel,.quick-panel{min-height:310px;padding:21px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-heading h2{margin:4px 0 0;font-size:17px;font-weight:670;letter-spacing:-.035em}.panel-subtitle{margin:4px 0 0;color:#91a098;font-size:10px}.panel-sparkle{color:#82bd85;font-size:21px}.empty-state{display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;padding:35px 20px 28px}.empty-state h3{margin:12px 0 3px;font-size:15px;font-weight:700;letter-spacing:-.025em}.empty-state p{max-width:340px;margin:3px 0 17px;color:#8b9992;font-size:11px}.empty-state-branch{min-height:225px}.empty-art{position:relative;width:76px;height:70px;display:grid;place-items:center}.empty-art>span{position:relative;z-index:1;width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:#e9f5eb;color:#348162;font-size:22px;transform:rotate(-6deg)}.empty-art>i{position:absolute;width:54px;height:54px;right:1px;top:0;border:1px solid #d6eadc;border-radius:50%;animation:orbit-slow 16s linear infinite}.empty-art-small{width:56px;height:52px}.empty-art-small>span{width:40px;height:40px;border-radius:13px;font-size:18px}.empty-art-small>i{width:43px;height:43px}.branch-list{margin-top:17px}.branch-row{display:flex;align-items:center;gap:11px;padding:12px 2px;border-bottom:1px solid #eff2ef;transition:padding .18s ease}.branch-row:last-child{border-bottom:0}.branch-row[href]:hover{padding-left:6px}.branch-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#e4f4e9;color:#327153;font-size:12px;font-weight:800;flex:0 0 auto}.branch-avatar-small{width:27px;height:27px;border-radius:9px;font-size:10px}.branch-avatar-lilac{background:#eee9fa;color:#76649f}.branch-avatar-peach{background:#fff0e3;color:#9c714d}.branch-row-main{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.4}.branch-row-main strong{font-size:11px}.branch-row-main small{color:#9aa59f;font-size:9px}.branch-count{display:flex;flex-direction:column;align-items:flex-end;min-width:50px;line-height:1.35}.branch-count strong{font-size:11px}.branch-count small{color:#9aa59f;font-size:9px}.status-pill{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:5px 8px;border-radius:20px;font-size:9px;font-weight:750}.status-pill i{width:5px;height:5px;border-radius:50%;background:currentColor}.status-live{background:#eaf7ef;color:#38805a}.status-paused{background:#f3f4f2;color:#95a099}.branch-chevron{color:#b6c1ba;font-size:20px}.setup-steps{margin:12px -5px 0}.setup-step{display:flex;align-items:center;gap:12px;padding:11px 6px;border-bottom:1px solid #eff2ef;transition:background .16s,border-radius .16s}.setup-step:hover{background:#f8faf7;border-radius:10px}.step-number{color:#a1b0a7;font-size:9px;font-weight:750;letter-spacing:.07em}.setup-step>span:nth-child(2){display:flex;flex-direction:column;line-height:1.35;flex:1}.setup-step strong{font-size:11px}.setup-step small{color:#9aa59f;font-size:9px}.step-arrow{color:#86a994;font-size:14px}.quick-note{display:flex;gap:9px;margin-top:15px;padding:11px 12px;border-radius:10px;background:#f6f8f3;color:#829087;font-size:9px;line-height:1.5}.quick-note-icon{color:#a6a852}.welcome-strip{position:relative;display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:138px;margin-top:18px;padding:25px 28px;overflow:hidden;border-radius:18px;background:linear-gradient(112deg,#174638,#205b49 60%,#34755a);color:#fff}.welcome-strip:after{content:"";position:absolute;width:260px;height:260px;right:18%;top:-175px;border:1px solid rgba(225,247,212,.16);border-radius:50%;box-shadow:0 0 0 25px rgba(225,247,212,.035),0 0 0 50px rgba(225,247,212,.025)}.welcome-strip-orb{position:absolute;width:210px;height:210px;right:7%;bottom:-160px;border-radius:50%;background:radial-gradient(circle,#96d99e 0,rgba(150,217,158,0) 70%);opacity:.35}.welcome-strip>div:not(.welcome-strip-orb){position:relative;z-index:1}.eyebrow-light{color:#b9d8c5}.welcome-strip h2{margin:7px 0 2px;font-size:18px;font-weight:650;letter-spacing:-.03em}.welcome-strip p{margin:0;color:#c3d9ce;font-size:10px}.welcome-strip .button{position:relative;z-index:1;white-space:nowrap}.alert{position:relative;display:flex;align-items:flex-start;gap:10px;margin-bottom:18px;padding:12px 42px 12px 13px;border-radius:11px;font-size:11px;animation:rise-in .3s both}.alert-success{background:var(--green-bg);border:1px solid #d7eee0;color:#286847}.alert-error{background:var(--red-bg);border:1px solid #f4dcda;color:#8d3b39}.alert-mark{width:19px;height:19px;display:grid;place-items:center;border-radius:50%;font-weight:800;background:rgba(255,255,255,.7)}.alert ul{margin:5px 0 0;padding-left:17px}.alert-close{position:absolute;right:10px;top:7px;border:0;background:transparent;color:inherit;font-size:19px;opacity:.6}.data-panel{padding:21px 0 0;overflow:hidden}.data-panel>.panel-heading{padding:0 21px 17px}.list-toolbar{align-items:flex-end}.search-form{display:flex;align-items:center;gap:8px;min-width:240px;height:36px;padding:0 5px 0 11px;border:1px solid var(--line);border-radius:10px;background:#fff}.search-form>span{color:#91a098;font-size:18px}.search-form input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:10px}.search-form input::placeholder{color:#abb5af}.search-form button{height:26px;padding:0 10px;border:0;border-radius:7px;background:#eff6f0;color:#327355;font-size:9px;font-weight:700}.subtle-badge{padding:6px 9px;border-radius:8px;background:#f3f6f2;color:#829087;font-size:9px}.table-wrap{width:100%;overflow-x:auto;border-top:1px solid #edf0ed;scrollbar-width:thin;scrollbar-color:#cfd9d1 transparent}.data-table{width:100%;border-collapse:collapse;text-align:left}.data-table th{padding:11px 15px;background:#fafcf9;color:#9aa69f;font-size:8px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}.data-table td{padding:12px 15px;border-top:1px solid #f0f2f0;color:#61736a;font-size:10px;vertical-align:middle}.data-table tbody tr{transition:background .15s}.data-table tbody tr:hover{background:#fbfcfa}.table-primary,.product-cell{display:flex;align-items:center;gap:9px;min-width:160px}.table-primary>span:last-child,.product-cell>span:last-child{display:flex;flex-direction:column;min-width:0;line-height:1.4}.table-primary strong,.product-cell strong{color:var(--ink);font-size:10px;font-weight:700}.table-primary small,.product-cell small{color:#98a39d;font-size:8px}.cell-sub{display:block;margin-top:2px;color:#98a39d;font-size:9px}.number-chip{display:inline-grid;min-width:25px;height:23px;place-items:center;padding:0 5px;border:1px solid #edf1ed;border-radius:7px;background:#fbfcfa;color:#61756b;font-size:9px;font-weight:700}.align-right{text-align:right!important}.row-actions{display:inline-flex;align-items:center;gap:5px}.category-pill,.role-chip{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:4px 7px;border-radius:6px;background:#f1f5f0;color:#718078;font-size:8px;font-weight:650}.product-glyph{width:34px;height:34px;display:grid;place-items:center;border:1px solid #e4eee3;border-radius:12px;background:linear-gradient(145deg,#f2faed,#e6f3ea);color:#4b8867;font-size:13px;font-weight:750}.product-glyph-large{width:42px;height:42px;border-radius:14px;font-size:16px}.branch-prices{display:flex;flex-direction:column;gap:3px;white-space:nowrap}.branch-prices>span{display:flex;gap:7px;align-items:baseline;color:#52675c;font-size:9px}.branch-prices small{color:#9aa69f;font-size:8px}.muted-text{color:#9ba69f!important;font-size:9px}.stock-figure{color:#345d4a;font-size:11px;font-weight:750}.stock-empty{color:#b47755}.pagination-wrap{padding:14px 18px}.pagination-wrap nav{display:flex;align-items:center;justify-content:space-between;gap:12px}.pagination-wrap nav>div:first-child{font-size:9px;color:#96a29b}.pagination-wrap nav>div:last-child{display:flex;gap:4px}.pagination-wrap a,.pagination-wrap span[aria-current],.pagination-wrap span[aria-disabled]{min-width:27px;height:27px;display:inline-grid;place-items:center;padding:0 7px;border:1px solid #e9eeea;border-radius:7px;background:#fff;color:#77877e;font-size:9px}.pagination-wrap span[aria-current]{background:#e8f5ee;color:#256b50;border-color:#d6eadb;font-weight:750}.pagination-wrap span[aria-disabled]{color:#c2cbc5}.form-layout{display:flex;flex-direction:column;gap:15px;max-width:1050px}.form-panel{padding:23px}.form-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:20px}.form-section-heading>div{min-width:0}.form-section-heading h2{margin:0;font-size:15px;font-weight:700;letter-spacing:-.025em}.form-section-heading p{margin:3px 0 0;color:#93a098;font-size:10px}.form-section-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--mint);color:#397b5e;font-size:15px}.form-section-icon-lilac{background:var(--lilac);color:#75649b}.form-section-icon-peach{background:var(--peach);color:#a7714a}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.form-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span,.field-caption{display:flex;align-items:baseline;gap:5px;color:#53675d;font-size:10px;font-weight:700}.field b{color:#cf7566;font-size:10px}.field small{color:#99a49d;font-size:9px;font-weight:500}.field input,.field select,.field textarea{width:100%;min-height:40px;padding:9px 11px;border:1px solid #e0e8e1;border-radius:9px;outline:0;background:#fff;color:#30463b;font-size:10px;transition:border-color .17s,box-shadow .17s}.field textarea{min-height:80px;resize:vertical}.field input::placeholder,.field textarea::placeholder{color:#abb6ae}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7eb599;box-shadow:0 0 0 3px rgba(74,154,112,.1)}.field-wide{grid-column:1/-1}.field-hint{color:#8e9b93;font-size:9px}.field select[multiple]{height:105px}.input-prefix,.input-suffix{display:flex;align-items:center;min-height:40px;border:1px solid #e0e8e1;border-radius:9px;background:#fff;overflow:hidden}.input-prefix:focus-within,.input-suffix:focus-within{border-color:#7eb599;box-shadow:0 0 0 3px rgba(74,154,112,.1)}.input-prefix i,.input-suffix i{padding:0 10px;color:#91a098;font-size:9px;font-style:normal}.input-prefix input,.input-suffix input{min-width:0;border:0;border-radius:0;box-shadow:none!important}.input-prefix input:focus,.input-suffix input:focus{outline:0}.input-suffix i{padding:0 12px 0 7px}.check-row{display:flex;align-items:center;gap:8px;color:#65776d;font-size:10px}.check-row input,.check-tile input,.data-table input[type=checkbox]{width:15px;height:15px;accent-color:var(--pine)}.check-tile{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid #e7ede7;border-radius:12px;background:#fbfcfa;cursor:pointer}.check-tile-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:#edf5ef;color:var(--pine);font-size:12px;font-weight:700}.check-tile>span:last-child{display:flex;flex-direction:column;gap:2px}.check-tile strong{font-size:10px}.check-tile small{color:#91a097;font-size:9px}.form-actions{display:flex;justify-content:flex-end;gap:8px;padding:4px 0}.inline-notice{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid #e7eee8;border-radius:11px;background:#f8faf7}.inline-notice>span{color:#6cab78}.inline-notice p{flex:1;margin:0;color:#75847c;font-size:10px}.inline-notice a{color:var(--pine);font-size:10px;font-weight:750;white-space:nowrap}.inventory-form-table{min-width:700px}.table-input{width:92px;min-height:32px;padding:5px 7px;border:1px solid #e3eae4;border-radius:7px;font-size:9px;color:#52675b}.table-input:focus{border-color:#7eb599;outline:2px solid rgba(74,154,112,.11)}.team-layout{display:grid;grid-template-columns:minmax(300px,.77fr) minmax(0,1.23fr);gap:16px;align-items:start}.team-form-panel{padding:22px}.team-form-panel .panel-heading{margin-bottom:19px}.team-form-panel .form-stack{display:flex;flex-direction:column;gap:13px}.team-form-panel .field .form-grid{gap:11px}.role-note{display:flex;gap:9px;margin-top:18px;padding:12px;border-radius:10px;background:#f4f8f1;color:#829187}.role-note>span{color:#71a578;font-size:15px}.role-note p{margin:0;font-size:9px;line-height:1.55}.role-note strong{color:#526a59}.team-list-panel{padding-top:21px}.team-member-list{border-top:1px solid #eff2ef}.team-member-row{display:flex;align-items:center;gap:11px;padding:13px 18px;border-bottom:1px solid #eff2ef}.user-avatar-soft{background:#e7eff0;color:#4e7880}.team-member-info{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.team-member-info strong{font-size:10px}.team-member-info>small{overflow:hidden;color:#98a39d;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.member-meta{display:flex;align-items:center;gap:6px;margin-top:3px;color:#9aa59f;font-size:8px;text-transform:capitalize}.role-chip{padding:3px 6px;background:#f1f4f1;color:#6f7d75}.team-member-action{display:flex;align-items:center;gap:8px}.notice-banner{display:flex;align-items:center;gap:12px;margin:-5px 0 17px;padding:13px 15px;border:1px solid #dfeddf;border-radius:13px;background:linear-gradient(100deg,#f3f8ef,#f7faf5)}.notice-banner-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#e2f0dd;color:#6b9a61}.notice-banner strong{font-size:10px}.notice-banner p{margin:2px 0 0;color:#849087;font-size:9px}.catalog-search{max-width:360px;margin-bottom:17px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.catalog-card{padding:17px;animation:rise-in .45s both}.catalog-card:nth-child(2){animation-delay:.06s}.catalog-card:nth-child(3){animation-delay:.12s}.catalog-card-top{display:flex;align-items:center;justify-content:space-between}.catalog-product-title{margin:12px 0 13px}.catalog-product-title h2{margin:7px 0 1px;font-size:15px;letter-spacing:-.035em}.catalog-product-title p{margin:0;color:#99a39d;font-size:9px}.branch-price-block{padding:11px 12px;border:1px solid #edf1ed;border-radius:11px;background:#fbfcfa}.branch-price-title{display:flex;justify-content:space-between;color:#829087;font-size:9px}.branch-price-title strong{color:#5e7065}.branch-price-row{display:grid;grid-template-columns:1fr auto auto;gap:11px;padding-top:8px;color:#65756c;font-size:9px}.branch-price-row strong{color:#2d4c3c;font-size:9px}.branch-price-row small{color:#9ca79f;font-size:8px}.catalog-listing-form{display:flex;flex-direction:column;gap:12px;margin-top:13px}.publish-toggle{display:flex;align-items:center;gap:9px;cursor:pointer}.publish-toggle>input{position:absolute;width:1px;height:1px;opacity:0}.toggle-track{width:32px;height:18px;padding:2px;border-radius:20px;background:#dce4dd;transition:background .2s}.toggle-track i{display:block;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15);transition:transform .2s}.publish-toggle>input:checked+.toggle-track{background:#55aa7b}.publish-toggle>input:checked+.toggle-track i{transform:translateX(14px)}.publish-toggle>input:focus-visible+.toggle-track{outline:3px solid rgba(70,162,125,.35);outline-offset:2px}.publish-toggle>span:last-child{display:flex;flex-direction:column;line-height:1.35}.publish-toggle strong{font-size:10px}.publish-toggle small{color:#99a39d;font-size:8px}.catalog-listing-form .field{gap:5px}.catalog-listing-form .field input,.catalog-listing-form .field select{min-height:36px}.catalog-branch-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #edf0ed;border-radius:10px;background:#fafcf9}.catalog-branch-picker[hidden]{display:none}.catalog-branch-picker .field-caption{grid-column:1/-1}.catalog-branch-picker .check-row{font-size:9px}.auth-page{min-height:100vh;background:#f5f7f4}.auth-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.86fr);min-height:100vh}.auth-story{position:relative;display:flex;flex-direction:column;min-height:100vh;padding:36px clamp(35px,7vw,100px);overflow:hidden;background:radial-gradient(ellipse at 12% 90%,rgba(135,198,139,.22),transparent 45%),linear-gradient(145deg,#163c31 0%,#164b3b 55%,#23674c 100%);color:#fff}.brand-light{position:relative;z-index:2;color:#fff}.brand-light .brand-mark{background:#d9f39b;color:#294b35}.auth-story-copy{position:relative;z-index:2;max-width:500px;margin:auto 0;transform:translateY(-25px)}.auth-story-copy h1{margin:17px 0 13px;font-size:clamp(42px,5.5vw,70px);font-weight:600;letter-spacing:-.075em;line-height:.99}.auth-story-copy h1 em{color:#d9f39b;font-family:Georgia,"Times New Roman",serif;font-weight:400}.auth-story-copy p{max-width:350px;margin:0;color:#c0d5c9;font-size:13px;line-height:1.7}.auth-orbit{position:absolute;width:320px;height:320px;right:-40px;bottom:7%;display:grid;place-items:center;border:1px solid rgba(225,244,222,.12);border-radius:50%;box-shadow:0 0 0 35px rgba(225,244,222,.025),0 0 0 70px rgba(225,244,222,.018);animation:float 8s ease-in-out infinite}.orbit-ring{position:absolute;width:210px;height:210px;border:1px solid rgba(225,244,222,.25);border-radius:50%}.orbit-core{width:78px;height:78px;display:grid;place-items:center;border:1px solid rgba(229,249,219,.45);border-radius:27px;background:rgba(215,244,218,.14);backdrop-filter:blur(8px);color:#e6f6d2;font-family:Georgia,serif;font-size:37px;box-shadow:0 8px 40px rgba(0,0,0,.12)}.orbit-dot{position:absolute;width:12px;height:12px;border-radius:50%;background:#d9f39b;box-shadow:0 0 20px rgba(217,243,155,.65)}.dot-one{top:37px;left:70px}.dot-two{right:34px;top:135px;width:8px;height:8px;background:#e8cda8}.dot-three{left:32px;bottom:88px;width:7px;height:7px}.auth-story-foot{position:relative;z-index:2;display:flex;gap:10px;color:#b6d2c1;font-size:9px}.auth-form-side{display:grid;place-items:center;padding:50px clamp(30px,6vw,95px);background:#fbfcfa}.auth-form-wrap{width:min(100%,390px);animation:rise-in .55s both}.auth-form-wrap h2{margin:10px 0 8px;color:#1a352c;font-size:35px;font-weight:650;letter-spacing:-.07em;line-height:1.04}.auth-intro{max-width:330px;margin:0 0 25px;color:#85948b;font-size:11px;line-height:1.7}.form-stack{display:flex;flex-direction:column;gap:15px}.auth-form-wrap .field>span{color:#53675d}.auth-form-wrap .field input{min-height:44px;background:#fff}.auth-form-wrap .button{min-height:46px;margin-top:4px}.check-row{cursor:pointer}.auth-local-note{display:flex;align-items:center;gap:9px;margin-top:23px;color:#99a59e;font-size:9px}.auth-local-note .connection-dot{width:6px;height:6px}.auth-privacy{margin:42px 0 0;color:#a3ada7;text-align:center;font-size:9px}.mobile-brand{display:none}.auth-story .eyebrow{font-size:9px}.auth-story-copy .eyebrow{color:#b6d8c2}.sidebar-scrim{display:none}
@keyframes page-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes rise-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes orbit-slow{to{transform:rotate(360deg)}}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@media(max-width:1150px){.sidebar{width:236px}.admin-main{margin-left:236px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.branch-panel,.quick-panel{min-height:0}.form-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))}.team-layout{grid-template-columns:1fr}.team-form-panel .form-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.team-form-panel .form-stack .button-full,.role-note{grid-column:1/-1}.team-form-panel .form-stack>.field:nth-child(3),.team-form-panel .form-stack>[data-branch-field]{grid-column:auto}.team-form-panel .form-stack>.form-grid{grid-column:1/-1}}
@media(max-width:820px){.sidebar{width:270px;transform:translateX(-101%);box-shadow:20px 0 50px rgba(16,43,34,.12)}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open .sidebar-scrim{position:fixed;inset:0;z-index:25;display:block;background:rgba(13,34,27,.28);backdrop-filter:blur(2px)}.admin-main{margin-left:0}.menu-toggle{display:grid}.topbar{height:58px;padding:0 20px}.page-content{padding:29px 22px 42px}.page-footer{padding:14px 22px}.welcome-strip{padding:21px}.auth-shell{grid-template-columns:minmax(0,.8fr) minmax(380px,1fr)}.auth-story{padding:30px}.auth-orbit{right:-145px}.auth-story-copy h1{font-size:48px}}
@media(max-width:620px){body{font-size:13px}.topbar{padding:0 14px}.crumbs>span:first-child,.crumb-divider,.connection-label{display:none}.topbar-right{gap:5px}.page-content{padding:24px 14px 34px}.page-heading{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:19px}.page-heading h1{font-size:29px}.page-heading p{max-width:440px;font-size:11px}.page-heading>.button{width:100%}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric-card{min-height:131px;padding:13px}.metric-top{margin-bottom:11px}.metric-value{font-size:25px}.metric-foot{font-size:8px}.metric-label{font-size:9px}.dashboard-grid{gap:11px}.branch-panel,.quick-panel{padding:16px}.panel-heading h2{font-size:15px}.panel-heading{align-items:flex-start}.text-link{font-size:9px;white-space:nowrap}.branch-row{gap:8px}.branch-count{min-width:39px}.branch-row .status-pill{padding:4px 6px;font-size:8px}.welcome-strip{align-items:flex-start;flex-direction:column;padding:20px 18px}.welcome-strip h2{font-size:16px}.welcome-strip p{max-width:320px;line-height:1.6}.welcome-strip .button{width:100%}.page-footer{font-size:8px}.data-panel{padding-top:16px;border-radius:14px}.data-panel>.panel-heading{flex-direction:column;align-items:stretch;padding:0 14px 13px}.list-toolbar{gap:12px}.search-form{width:100%;min-width:0}.table-wrap{overflow:visible;border-top:0}.data-table{display:block}.data-table thead{display:none}.data-table tbody{display:flex;flex-direction:column}.data-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:12px 14px;border-top:1px solid #eff2ef}.data-table td{display:block;padding:0;border:0;text-align:left!important}.data-table td:first-child{grid-column:1/-1;padding-bottom:4px}.data-table td:nth-child(2){grid-column:1}.data-table td:last-child{grid-column:2;grid-row:2;justify-self:end}.data-table td:before{content:attr(data-label);display:block;margin-bottom:2px;color:#a0aaa4;font-size:7px;letter-spacing:.08em;text-transform:uppercase}.data-table td:first-child:before{display:none}.row-actions{justify-content:flex-end}.product-cell,.table-primary{min-width:0}.pagination-wrap{padding:12px}.pagination-wrap nav{align-items:flex-start;flex-direction:column}.form-layout{gap:11px}.form-panel{padding:17px 14px}.form-section-heading{margin-bottom:15px}.form-section-heading p{font-size:9px}.form-grid,.form-grid-three,.form-grid-four{grid-template-columns:1fr;gap:12px}.field-wide{grid-column:auto}.form-actions{position:sticky;bottom:0;z-index:5;margin:4px -14px -34px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:rgba(245,247,244,.96);backdrop-filter:blur(10px);border-top:1px solid #e6ebe6}.form-actions .button{flex:1}.inline-notice{align-items:flex-start;flex-wrap:wrap}.inline-notice p{min-width:calc(100% - 34px)}.inline-notice a{margin-left:30px}.team-form-panel{padding:17px 14px}.team-form-panel .form-stack{display:flex}.team-form-panel .form-stack>.form-grid{display:grid;grid-template-columns:1fr}.team-member-row{align-items:flex-start;padding:12px 13px}.team-member-action{flex-direction:column;align-items:flex-end}.member-meta{flex-wrap:wrap}.catalog-grid{grid-template-columns:1fr;gap:11px}.catalog-card{padding:15px}.catalog-search{max-width:none}.notice-banner{align-items:flex-start;padding:11px}.branch-price-row{grid-template-columns:1fr auto}.branch-price-row small{grid-column:1/-1}.catalog-branch-picker{grid-template-columns:1fr}.auth-shell{display:flex;min-height:100vh;flex-direction:column}.auth-story{display:none}.auth-form-side{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:22px 20px}.auth-form-wrap{max-width:420px}.mobile-brand{display:flex;margin-bottom:35px}.auth-form-wrap h2{font-size:33px}.auth-intro{margin-bottom:23px}.auth-privacy{margin-top:35px}.auth-local-note{line-height:1.55}.empty-state{padding:28px 15px}.empty-state h3{font-size:14px}.empty-state p{font-size:10px}.status-pill{font-size:8px}}
@media(max-width:380px){.metric-card{padding:11px}.metric-value{font-size:22px}.metric-foot{font-size:7px}.branch-row-main strong{font-size:10px}.branch-row .status-pill{display:none}.auth-form-side{padding:18px 16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.price-copy-select{min-width:115px;width:100%;margin-top:5px;padding:4px 7px;border-radius:8px;font-size:9px}.inventory-form-table td{vertical-align:middle}

@media(max-width:620px){.auth-page,.auth-shell,.auth-form-side{width:100%;max-width:100vw;min-width:0;overflow-x:clip}.auth-form-side{padding-right:16px;padding-left:16px}.auth-form-wrap{width:100%;max-width:420px;min-width:0}.form-stack,.form-stack .field{width:100%;min-width:0}.form-stack input,.form-stack button{width:100%;min-width:0;max-width:100%}.mobile-brand{width:100%}}

.status-pending{background:#fff4d8;color:#94702e}
.purchase-lines-table td select,.purchase-lines-table td input{width:100%;min-width:105px;min-height:34px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:10px}
.purchase-lines-table td:first-child select{min-width:220px}
.purchase-total{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:14px 2px 1px;border-top:1px solid #edf1ed;color:#829087;font-size:10px}
.purchase-total strong{color:var(--ink);font-size:17px;letter-spacing:-.035em}
.receive-lines{display:grid;gap:12px}
.receive-line{padding:15px;border:1px solid #edf1ed;border-radius:14px;background:#fcfdfa}
.receive-product{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.receive-product>span:last-child{display:flex;flex-direction:column;line-height:1.45}
.receive-product strong{font-size:11px}
.receive-product small{color:#8e9b93;font-size:9px}
.receive-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.serial-entry{margin-top:13px;padding:12px;border-radius:10px;background:#f5f8f3}
.serial-entry .field-caption{display:flex;flex-direction:column;gap:3px;color:#556a5c;font-size:9px;font-weight:700}
.serial-entry .field-caption small{color:#94a097;font-size:8px;font-weight:400}
.serial-entry>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}
.serial-field{gap:4px}
.serial-field>span{font-size:8px}
.serial-field input{min-height:35px!important;font-size:9px!important}
.serial-note{margin-top:10px;color:#839186;font-size:9px}
.document-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 0 18px}
.document-summary-grid>div{display:flex;flex-direction:column;gap:3px;padding:12px;border:1px solid #edf1ed;border-radius:10px;background:#fbfcfa}
.document-summary-grid strong{font-size:10px;font-weight:650}
.serial-chip-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.serial-chip-list span{padding:4px 7px;border-radius:7px;background:#f0f5ee;color:#60785f;font-size:8px;overflow-wrap:anywhere}
@media(max-width:620px){.document-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.receive-line{padding:12px}.receive-fields{gap:8px}.purchase-lines-table td:first-child select{min-width:0}.purchase-lines-table tr{grid-template-columns:minmax(0,1fr) minmax(82px,auto)}.purchase-lines-table td:first-child{grid-column:1/-1}.purchase-lines-table td:nth-child(2){grid-column:1}.purchase-lines-table td:nth-child(3){grid-column:2}.purchase-lines-table td:nth-child(4){grid-column:1}.purchase-lines-table td:nth-child(5){grid-column:2;align-self:center}.serial-entry>div{grid-template-columns:1fr}}

.payment-detail-field[hidden]{display:none}
.allocation-empty{padding:17px;border:1px dashed #dce6de;border-radius:11px;background:#fafcf9;color:#87958b;font-size:10px;text-align:center}
.allocation-list{display:flex;flex-direction:column;gap:8px}
.allocation-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,220px);align-items:center;gap:14px;padding:12px;border:1px solid #edf1ed;border-radius:11px;background:#fcfdfa}
.allocation-row>span:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.allocation-row strong{font-size:10px}
.allocation-row small{color:#87958b;font-size:9px}
.allocation-input{display:flex;align-items:center;gap:8px}
.allocation-input small{white-space:nowrap}
.allocation-input input{width:100%;min-width:0;min-height:34px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:10px}
.amount-total{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #e7ece7;border-radius:9px;background:#f7faf6;color:#829087;font-size:10px}
.amount-total input{width:130px;border:0;outline:0;background:transparent;color:var(--ink);font-size:17px;font-weight:750;text-align:right}
@media(max-width:620px){.allocation-row{grid-template-columns:1fr;gap:9px}.allocation-input{justify-content:space-between}.allocation-input input{max-width:165px}.amount-total input{width:100px}}

/* Sales documents and customer receipts */
.heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.heading-actions .button{white-space:nowrap}
.filter-pills{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fbfcfa}
.filter-pill{padding:6px 10px;border-radius:7px;color:#7f8d86;font-size:9px;font-weight:700;transition:background .18s,color .18s,transform .18s}
.filter-pill:hover{transform:translateY(-1px);color:var(--pine)}
.filter-pill.active{background:#e7f4eb;color:var(--pine-dark);box-shadow:0 1px 3px rgba(23,53,43,.06)}
.status-muted{background:#f0f2ef;color:#77847d}
.sales-lines-table td select,.sales-lines-table td input{width:100%;min-width:76px;min-height:34px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:10px}
.sales-lines-table td:first-child select{min-width:230px}
.sales-lines-table td small[data-stock-note]{display:block;margin:5px 0 0 3px;color:#8b9890;font-size:8px}
.sales-totals{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,320px);align-items:center;gap:11px 24px;margin-top:16px;padding:15px 2px 0;border-top:1px solid #edf1ed;color:#849188;font-size:10px}
.sales-totals>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sales-totals>div strong{color:var(--ink);font-size:13px;font-weight:700}
.sales-bulk-discount{display:flex;align-items:center;justify-content:space-between;gap:10px;grid-column:2;grid-row:1/3}
.sales-bulk-discount span{max-width:135px;line-height:1.45}
.sales-bulk-discount input{width:112px;min-height:37px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:11px;text-align:right}
.sales-totals .sales-grand-total{grid-column:1/-1;padding-top:10px;border-top:1px dashed #dfe7e1}
.sales-totals .sales-grand-total strong{color:var(--pine);font-size:20px;letter-spacing:-.04em}
.invoice-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 28px;max-width:520px;margin:18px 0 0 auto;padding:16px 0 0;border-top:1px solid #edf1ed}
.invoice-totals>div{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#829087;font-size:10px}
.invoice-totals strong{color:var(--ink);font-size:11px}
.invoice-totals .invoice-total-final{grid-column:1/-1;padding:11px 12px;border-radius:11px;background:#edf7ef;color:#426653}
.invoice-totals .invoice-total-final strong{color:var(--pine);font-size:19px;letter-spacing:-.035em}
.table-subline{display:block;margin-top:3px;color:#8b9890;font-size:8px}
.table-link{color:var(--pine);font-weight:750}
.table-link:hover{text-decoration:underline;text-underline-offset:3px}
.sales-action-bar{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0 4px}
.sales-action-bar form{margin:0}
.button-danger-quiet{min-height:38px;padding:0 13px;border:1px solid #f0d9d7;border-radius:10px;background:#fff8f7;color:#a6544d;font-size:10px;font-weight:700;transition:background .18s,transform .18s}
.button-danger-quiet:hover{background:#fff0ef;transform:translateY(-1px)}
.sales-delivery-history{margin-top:14px}
.sales-detail-table td{vertical-align:top}
@media(max-width:780px){.heading-actions{align-self:flex-start}.sales-totals{grid-template-columns:1fr 1fr}.sales-bulk-discount{grid-column:1/-1;grid-row:auto;justify-content:flex-start}.sales-totals .sales-grand-total{grid-column:1/-1}}
@media(max-width:620px){.heading-actions{width:100%}.heading-actions .button{flex:1;justify-content:center}.filter-pills{width:100%;justify-content:space-between}.filter-pill{flex:1;text-align:center;padding:7px 4px}.sales-totals{grid-template-columns:1fr;gap:10px;padding-top:12px}.sales-totals>div{grid-column:1!important;grid-row:auto!important}.sales-bulk-discount{align-items:flex-start;flex-direction:column}.sales-bulk-discount span{max-width:none}.sales-bulk-discount input{width:100%;text-align:left}.sales-lines-table tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;padding:12px 14px}.sales-lines-table td:first-child{grid-column:1/-1;padding-bottom:3px}.sales-lines-table td:nth-child(2),.sales-lines-table td:nth-child(3),.sales-lines-table td:nth-child(4){grid-column:auto;grid-row:auto}.sales-lines-table td:nth-child(5){grid-column:1;grid-row:auto;align-self:center}.sales-lines-table td:last-child{grid-column:2;grid-row:5;justify-self:end;align-self:center}.sales-lines-table td:first-child select{min-width:0}.sales-detail-table tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}.sales-detail-table td:first-child{grid-column:1/-1}.sales-detail-table td:last-child{grid-column:1/-1;grid-row:auto;text-align:left!important}.invoice-totals{grid-template-columns:1fr;gap:8px}.invoice-totals>div,.invoice-totals .invoice-total-final{grid-column:1}.sales-action-bar{display:grid;grid-template-columns:1fr 1fr}.sales-action-bar>.button:first-child{grid-column:1/-1}.sales-action-bar form,.sales-action-bar form button{width:100%}.sales-action-bar form:last-child{grid-column:1/-1}}

/* Responsive operational reports */
.report-filter{display:flex;align-items:flex-end;gap:12px;margin-bottom:16px;padding:15px 17px;border:1px solid rgba(228,234,229,.9);border-radius:15px;background:rgba(255,255,255,.9);box-shadow:var(--shadow-soft)}
.report-filter .field{width:min(190px,23%);gap:5px}
.report-filter .field>span{font-size:9px}
.report-filter .field input,.report-filter .field select{min-height:37px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:10px}
.report-filter .button{margin-left:auto}
.report-metrics{margin-bottom:15px}
.reports-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:14px;margin-bottom:14px}
.report-panel{min-width:0;padding:17px 18px;border:1px solid rgba(228,234,229,.9);border-radius:16px;background:#fff;box-shadow:var(--shadow-soft)}
.report-panel .panel-heading{padding:0 0 13px}
.report-panel .panel-heading h2{font-size:13px}
.report-panel .panel-heading p{font-size:9px}
.branch-report-list{display:grid;gap:15px}
.branch-report-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;align-items:center}
.branch-report-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.branch-report-copy strong{font-size:10px}
.branch-report-copy small{color:#8c9991;font-size:8px}
.branch-report-amount{font-size:10px;white-space:nowrap}
.report-bar{grid-column:1/-1;height:7px;overflow:hidden;border-radius:99px;background:#eff3ef}
.report-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2b8b69,#9fdc99);transition:width .5s ease}
.aging-list,.finance-list{display:grid;gap:1px}
.aging-list>div,.finance-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px;border-bottom:1px solid #eff2ef;color:#78877e;font-size:9px}
.aging-list>div:last-child,.finance-list>div:last-child{border-bottom:0}
.aging-list strong,.finance-list strong{color:var(--ink);font-size:10px;white-space:nowrap}
.report-panel .table-wrap{margin:0 -5px}
.report-panel .data-table td,.report-panel .data-table th{padding:10px 8px}
.report-panel .data-table th{font-size:8px}
.report-panel .data-table td{font-size:9px}
.report-footnote{margin:10px 0 0;color:#93a097;font-size:8px}
.report-empty{padding:22px 14px!important;color:#8d9a92!important;font-size:9px!important;text-align:center}
.report-stock-panel .panel-heading{align-items:center}
@media(max-width:980px){.reports-grid{grid-template-columns:1fr}.report-filter{flex-wrap:wrap}.report-filter .field{width:calc(33.333% - 9px)}.report-filter .button{margin-left:0}}
@media(max-width:620px){.report-filter{align-items:stretch;gap:9px;padding:12px}.report-filter .field{width:100%}.report-filter .button{width:100%;justify-content:center}.report-panel{padding:14px 12px}.report-panel .data-table{min-width:0}.report-panel .data-table tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}.report-panel .data-table td:first-child{grid-column:1/-1}.report-panel .data-table td:last-child{grid-column:auto;grid-row:auto;justify-self:stretch}.report-stock-panel .panel-heading{align-items:flex-start}}

/* Expanded, role-scoped business reports */
.report-page-heading{align-items:flex-start}
.report-export-actions{flex:0 0 auto}
.report-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:11px;margin-bottom:12px}
.report-filter-grid .field{width:auto;min-width:0}
.report-filter-grid .field>span{font-size:9px}
.report-filter-grid .field input,.report-filter-grid .field select{width:100%;min-width:0;min-height:39px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:10px}
.report-filter-actions{display:flex;align-items:center;gap:7px}
.report-filter-actions .button{min-height:39px;padding:0 12px;white-space:nowrap}
.report-period-note{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 2px 16px;color:#829087;font-size:10px}
.report-period-icon{display:grid;width:25px;height:25px;place-items:center;border-radius:8px;background:#e9f5ec;color:var(--pine);font-size:13px}
.report-active-filters{padding:5px 9px;border:1px solid #e7eee8;border-radius:8px;background:#fff;color:#60746a;font-size:9px}
.report-metrics{margin-bottom:15px}
.report-section{margin-bottom:14px;overflow:hidden}
.report-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:24px 2px 12px}
.report-section-heading h2{margin:4px 0 0;color:var(--ink);font-size:19px;font-weight:670;letter-spacing:-.04em}
.report-section-heading>p{max-width:470px;margin:0;color:#89968e;font-size:10px;text-align:right}
.report-finance-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 14px}
.report-panel .panel-heading{align-items:flex-start}
.report-panel .panel-heading .eyebrow{font-size:8px}
.report-panel .panel-heading h2{margin-top:4px}
.report-panel .table-wrap{max-width:100%}
.report-panel .data-table td strong{color:var(--ink)}
.report-end-note{display:flex;align-items:flex-start;gap:9px;margin:16px 2px 0;padding:12px 14px;border:1px solid #e6ede7;border-radius:11px;background:#fbfcfa;color:#839087;font-size:9px}
.report-end-note>span{color:#80a45f}
.report-end-note p{margin:0;line-height:1.6}
.report-end-note strong{color:#526a5c}
@media(max-width:980px){.report-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-filter-actions{grid-column:1/-1}.report-filter-actions .button{flex:1}.report-export-actions{width:100%}.report-export-actions .button{flex:1}}
@media(max-width:620px){.report-page-heading{align-items:stretch}.report-export-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.report-export-actions .button{min-width:0;padding:0 8px;font-size:9px}.report-filter-grid{grid-template-columns:1fr;gap:9px;padding:12px}.report-filter-actions{grid-column:auto;display:grid;grid-template-columns:1fr auto}.report-filter-actions .button:first-child{width:100%}.report-period-note{align-items:flex-start;font-size:9px}.report-period-icon{flex:0 0 auto}.report-finance-metrics{grid-template-columns:1fr 1fr;gap:9px}.report-section-heading{align-items:flex-start;flex-direction:column;gap:5px;margin:20px 1px 10px}.report-section-heading>p{text-align:left}.report-section-heading h2{font-size:17px}.report-panel .panel-heading{flex-direction:row;align-items:flex-start}.report-panel .panel-heading h2{font-size:14px}.report-panel .table-wrap{overflow:visible}.report-end-note{font-size:8px}}
@media(prefers-reduced-motion:reduce){.report-bar i{transition:none}}

/* Location, delivery and online order administration */
.location-setup-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:14px;margin-bottom:14px}
.location-inline-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:11px}
.location-inline-form .button{grid-column:1/-1;justify-content:center}
.distance-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.location-helper{margin:10px 0 0;color:#89968e;font-size:9px;line-height:1.55}
.location-note-banner{margin-bottom:15px}
.auth-expired-message{margin:0 0 15px;padding:12px 14px;border:1px solid #f0d8a9;border-radius:11px;background:#fff9ed;color:#81643a;font-size:10px;line-height:1.55}
.auth-expired-message strong{display:block;color:#6d5126;font-size:11px}
.auth-expired-message p{margin:3px 0 0}
.auth-validation-errors{margin:0 0 15px;padding:12px 14px;border:1px solid #f0d1cd;border-radius:11px;background:#fff5f3;color:#96574f;font-size:10px;line-height:1.55}
.auth-validation-errors strong{display:block;color:#81463f;font-size:11px}
.auth-validation-errors ul{margin:5px 0 0;padding-left:17px}
.location-bulk-distance-panel{margin-bottom:14px}
.distance-set-controls{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.7fr) auto;align-items:end;gap:11px;margin-bottom:9px}
.distance-set-controls .button{justify-content:center;min-height:38px}
.distance-set-help{margin:0 0 12px;color:#89968e;font-size:9px;line-height:1.55}
.distance-set-table td input{width:150px;max-width:100%;min-height:33px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:9px}
.distance-set-table tr[hidden]{display:none}
.distance-set-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:13px}
.distance-set-actions .form-helper{margin:0;color:#89968e;font-size:9px;line-height:1.55}
.location-city-panel{margin-bottom:14px}
.location-city-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.location-province{display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid #edf1ed;border-radius:12px;background:#fbfcfa}
.location-province>strong{color:#385b48;font-size:10px}
.location-province>div{display:flex;flex-direction:column;gap:2px;padding-top:6px;border-top:1px solid #edf1ed}
.location-province>div span{font-size:8px;font-weight:700}
.location-province>div small{color:#8a978e;font-size:8px;line-height:1.5}
.location-distance-panel{margin-bottom:15px}
.location-distance-panel .panel-heading{align-items:center}
.delivery-default-panel{margin-bottom:15px;padding:17px 19px}
.delivery-default-form{display:flex;align-items:flex-end;gap:10px}
.delivery-default-form .field{width:min(390px,70%)}
.delivery-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.delivery-profile-card .branch-price-block{margin:12px 0}
.delivery-profile-actions{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #edf1ed}
.delivery-profile-actions form{margin:0}
.delivery-profile-actions .button{flex:1;justify-content:center}
.profile-active-row{grid-column:1/-1;max-width:max-content}
.delivery-rates-table td input{width:135px;max-width:100%;min-height:33px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:9px}
.delivery-rates-table td input::placeholder{color:#a0aaa2}
.online-address{margin:9px 0;padding:12px 14px;border:1px solid #edf1ed;border-radius:10px;background:#fbfcfa;color:#5f7165;font-size:10px;line-height:1.65;white-space:pre-wrap}
.online-payment-details{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #edf1ed;border-radius:12px;background:#fbfcfa}
.online-payment-details strong{font-size:11px}.online-payment-details span{color:#536c5a;font-size:10px}.online-payment-details small{color:#8c9990;font-size:8px}
.review-payment-panel{margin-top:15px}
.review-payment-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.review-actions{display:flex;gap:8px}
.review-actions .button{white-space:nowrap}
@media(max-width:1050px){.delivery-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.location-city-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.location-setup-grid{grid-template-columns:1fr}}
@media(max-width:620px){.location-inline-form,.distance-form{grid-template-columns:1fr}.location-inline-form .button{grid-column:auto;width:100%}.distance-set-controls{grid-template-columns:1fr}.distance-set-controls .button{width:100%}.distance-set-actions{align-items:stretch;flex-direction:column}.distance-set-actions .button{width:100%;justify-content:center}.distance-set-table td input{width:100%}.location-city-grid{grid-template-columns:1fr}.delivery-default-form{align-items:stretch;flex-direction:column}.delivery-default-form .field{width:100%}.delivery-default-form .button{width:100%;justify-content:center}.delivery-profile-grid{grid-template-columns:1fr}.review-payment-form{grid-template-columns:1fr}.review-actions{display:grid;grid-template-columns:1fr 1fr}.review-actions .button{width:100%;justify-content:center}.profile-active-row{max-width:100%}.delivery-rates-table td input{width:100%}}
.delivery-calc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:13px 15px;border:1px dashed #d5e2d7;border-radius:13px;background:linear-gradient(120deg,#f6faf6,#fbfaf5)}
.delivery-calc-toolbar p{margin:0;color:#66766c;font-size:10px;line-height:1.6}
.delivery-calc-toolbar .button{flex:none}
@media(max-width:620px){.delivery-calc-toolbar{align-items:stretch;flex-direction:column}.delivery-calc-toolbar .button{width:100%;justify-content:center}}
.delivery-profile-form .delivery-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.delivery-profile-form .delivery-choice-card{position:relative;display:grid;grid-template-columns:20px 40px minmax(0,1fr);align-items:start;gap:10px;padding:17px;border:1px solid #dfe8e1;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.delivery-profile-form .delivery-choice-card:hover{border-color:#9dcab6;box-shadow:0 8px 24px #174b3410}
.delivery-profile-form .delivery-choice-card:has(input:checked){border-color:#197358;background:#f2f8f4;box-shadow:0 0 0 2px #19735818}
.delivery-profile-form .delivery-choice-card>input{width:18px;min-height:18px;margin:2px 0 0;accent-color:#197358}
.delivery-choice-icon{display:grid;min-width:38px;height:38px;place-items:center;border-radius:12px;background:#e8f3eb;color:#176b50;font-size:17px;font-weight:800}
.delivery-choice-card>span:last-child{display:flex;flex-direction:column;gap:5px}
.delivery-choice-card strong{color:#1d3c30;font-size:14px;line-height:1.35}
.delivery-choice-card small{color:#68796e;font-size:11px;line-height:1.55}
.delivery-choice-card-small{padding:13px}
.delivery-choice-card-small .delivery-choice-icon{min-width:34px;height:34px;font-size:12px}
.delivery-common-quantity{max-width:520px;margin-top:17px;padding:14px 16px;border:1px solid #e8eee9;border-radius:13px;background:#fafcf9}
.delivery-common-fee-grid,.delivery-city-limit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.delivery-city-limit-grid{max-width:760px;margin-top:19px;padding-top:17px;border-top:1px solid #edf1ed}
.delivery-city-limit-grid .field{max-width:360px}
.delivery-start-city-field{max-width:680px}
.delivery-starting-city-loading{display:grid;max-width:680px;gap:6px;margin:12px 0 0;padding:12px 14px;border:1px solid #cde3d4;border-radius:12px;background:#f2f9f4;box-shadow:0 5px 18px #174b3409}
.delivery-starting-city-loading[hidden]{display:none!important}
.delivery-starting-city-loading>strong{color:#1e543d;font-size:12px;line-height:1.4}
.delivery-starting-city-loading>small{color:#66796e;font-size:10px;line-height:1.45}
.delivery-starting-city-loading-track{height:6px;margin-top:3px;overflow:hidden;border-radius:999px;background:#deebe1}
.delivery-starting-city-loading-track>span{display:block;width:36%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#197358,#64bb8d);animation:delivery-page-progress-slide 1s ease-in-out infinite}
.delivery-auto-settings{margin-top:20px;padding:17px;border:1px solid #e8eee9;border-radius:14px;background:#fafcf9}
.delivery-substep-heading{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}
.delivery-substep-heading>span{display:grid;flex:0 0 28px;width:28px;height:28px;place-items:center;border-radius:9px;background:#fff0e5;color:#a65b2b;font-size:12px;font-weight:800}
.delivery-substep-heading h3{margin:0 0 3px;color:#1c382e;font-size:14px}
.delivery-substep-heading p{margin:0;color:#75847a;font-size:11px;line-height:1.5}
.delivery-auto-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.delivery-auto-input-grid .field{max-width:520px}
.delivery-profile-form .field-error{display:block;margin:7px 0 0;color:#a33b35;font-size:11px;line-height:1.5}
.delivery-rates-error{padding:10px 12px;border-radius:10px;background:#fff4f2}
.delivery-distance-status{display:flex;align-items:center;gap:9px;margin:0 0 14px;padding:11px 13px;border:1px solid #deebe1;border-radius:11px;background:#f4faf5;color:#365b48;font-size:11px;line-height:1.5}
.delivery-distance-status.is-incomplete{border-color:#f1dfb4;background:#fff9eb;color:#775b23}
.delivery-status-dot{flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:#218465}
.delivery-distance-status.is-incomplete .delivery-status-dot{background:#cc8a24}
.delivery-loading-bar{height:5px;margin:-7px 0 14px;overflow:hidden;border-radius:999px;background:#e8efe9}
.delivery-loading-bar[hidden]{display:none!important}
.delivery-loading-bar>span{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#197358,#53ad84);animation:delivery-loading-slide 1.15s ease-in-out infinite alternate}
@keyframes delivery-loading-slide{from{transform:translateX(-15%)}to{transform:translateX(185%)}}
@media(prefers-reduced-motion:reduce){.delivery-loading-bar>span{width:100%;animation:none}}
.delivery-page-progress{position:fixed;inset:0;z-index:2147483647;display:grid;place-items:center;padding:20px;background:#10261c66;backdrop-filter:blur(3px)}
.delivery-page-progress[hidden]{display:none!important}
.delivery-page-progress-card{width:min(440px,100%);padding:23px 24px 22px;border:1px solid #d6e5d9;border-radius:16px;background:#fff;color:#1d3c30;box-shadow:0 20px 60px #0c211b50;animation:delivery-progress-appear .18s ease-out}
.delivery-page-progress-card>strong{display:block;margin:0 0 5px;font-size:16px;line-height:1.4}
.delivery-page-progress-card>small{display:block;margin:0 0 15px;color:#66796e;font-size:12px;line-height:1.5}
.delivery-page-progress-track{height:7px;overflow:hidden;border-radius:999px;background:#e7efe9}
.delivery-page-progress-track>span{display:block;width:34%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#146c51,#64bb8d);animation:delivery-page-progress-slide 1s ease-in-out infinite}
@keyframes delivery-page-progress-slide{from{transform:translateX(-105%)}to{transform:translateX(305%)}}
@keyframes delivery-progress-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.delivery-starting-city-loading-track>span{width:100%;animation:none}.delivery-page-progress-track>span{width:100%;animation:none}.delivery-page-progress-card{animation:none}}
.delivery-profile-form .delivery-origin-tag{display:inline-block;margin-left:8px;padding:3px 7px;border-radius:20px;background:#e8f3eb;color:#176b50;font-size:9px;font-weight:750;white-space:nowrap}
.delivery-profile-form .delivery-auto-fee{min-height:37px;padding:9px 11px;border:1px solid #e4ebe5;border-radius:9px;background:#f7faf7;color:#1f503d;font-size:11px;font-weight:700}
.delivery-profile-form .delivery-auto-fee[hidden]{display:none!important}
.delivery-city-picker{position:relative;z-index:5}
.delivery-city-picker>input[type=search]{width:100%;min-height:46px;padding:10px 13px;border:1px solid #dce6de;border-radius:10px;background:#fff;color:var(--ink);font-size:12px}
.delivery-city-picker-results{position:absolute;top:calc(100% + 5px);right:0;left:0;z-index:20;max-height:290px;overflow:auto;padding:5px;border:1px solid #dce6de;border-radius:11px;background:#fff;box-shadow:0 14px 30px #173b2b1f}
.delivery-city-picker-results[hidden]{display:none!important}
.delivery-city-picker-option{display:block;width:100%;padding:9px 10px;border:0;border-radius:7px;background:#fff;color:#294b3a;text-align:left;font-size:11px;line-height:1.45;cursor:pointer}
.delivery-city-picker-option:hover,.delivery-city-picker-option:focus{outline:0;background:#edf6ef;color:#145c45}
.delivery-city-picker-hint,.delivery-city-picker-empty{padding:8px 10px;color:#77867b;font-size:10px;line-height:1.45}
.delivery-example-route{display:flex;align-items:center;gap:10px;margin:9px 0;padding:10px 11px;border:1px solid #d9e9dd;border-radius:10px;background:#f3f9f4}
.delivery-example-route[hidden]{display:none!important}
.delivery-example-route-icon{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border-radius:9px;background:#e3f0e7;color:#176b50;font-size:15px;font-weight:800}
.delivery-example-route-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.delivery-example-route-copy strong{overflow-wrap:anywhere;color:#204b38;font-size:11px;line-height:1.4}
.delivery-example-route-copy small{color:#61796a;font-size:10px;line-height:1.5}
.delivery-example-route-copy small:empty{display:none}
.delivery-profile-form [data-example-fee-city]{color:#1d503a;font-weight:750}
.delivery-profile-form .delivery-field-label{display:block;margin:0 0 7px;color:#53675b;font-size:12px;font-weight:700}
.delivery-profile-form .delivery-rates-scroll{max-height:64vh;overflow:auto;border:1px solid #e9eeea;border-radius:12px}
.delivery-profile-form .delivery-rates-table{min-width:760px}
.delivery-profile-form .delivery-rates-table th{position:sticky;top:0;z-index:2;background:#f7f9f6}
.delivery-profile-form .delivery-rates-table td{padding:8px 11px;vertical-align:middle}
.delivery-profile-form .delivery-rates-table tr[data-city-rate-row][hidden]{display:none!important}
.delivery-profile-form .delivery-rates-table td[hidden],.delivery-profile-form .delivery-rates-table th[hidden]{display:none!important}
.delivery-profile-form .delivery-rate-input{display:flex;align-items:center;gap:7px;min-width:210px}
.delivery-profile-form .delivery-rate-input>span{color:#839187;font-size:10px}
.delivery-profile-form .delivery-rate-input input{width:100%;min-height:38px;padding:7px 9px;border:1px solid #dce6de;border-radius:9px;background:#fff;font-size:11px}
.delivery-profile-form .delivery-rate-input input:focus,.delivery-profile-form .field input:focus,.delivery-profile-form .field select:focus{border-color:#1c8061;outline:3px solid #1c80611c}
.delivery-profile-form .delivery-city-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:18px 0 11px}
.delivery-profile-form .delivery-city-toolbar .field{width:min(480px,100%)}
.delivery-profile-form .delivery-city-tools{padding:9px 0;color:#65776b;font-size:10px}
.delivery-profile-form .delivery-formula{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 16px;margin:0 0 13px;padding:12px 14px;border:1px solid #dceade;border-radius:11px;background:#f5faf5}
.delivery-profile-form .delivery-formula>strong{color:#286148;font-size:11px}
.delivery-profile-form .delivery-formula>span{color:#233e31;font-size:12px;font-weight:750}
.delivery-profile-form .delivery-formula>small{width:100%;color:#75847a;font-size:10px;line-height:1.5}
.delivery-profile-form .delivery-formula[hidden]{display:none!important}
.delivery-fixed-panel[hidden],.delivery-city-start-panel[hidden],.delivery-method-panel[hidden],.delivery-auto-settings[hidden],.delivery-city-rates-panel[hidden]{display:none!important}
@media(max-width:760px){.delivery-profile-form .delivery-choice-grid,.delivery-common-fee-grid,.delivery-auto-input-grid,.delivery-city-limit-grid{grid-template-columns:1fr}.delivery-profile-form .delivery-choice-card{padding:13px}.delivery-common-quantity{max-width:none}.delivery-profile-form .delivery-city-toolbar{align-items:stretch;flex-direction:column;gap:3px}.delivery-profile-form .delivery-city-toolbar .field{width:100%}.delivery-profile-form .delivery-city-tools{padding:0 0 3px}.delivery-profile-form .delivery-rates-scroll{height:62vh;max-height:620px;overflow:auto}}
@media(max-width:620px){.delivery-profile-form .delivery-choice-card{grid-template-columns:19px 34px minmax(0,1fr);gap:8px}.delivery-profile-form .delivery-choice-card strong{font-size:12px}.delivery-profile-form .delivery-choice-card small{font-size:10px}.delivery-profile-form .delivery-rates-scroll{height:62vh;max-height:560px;overflow:auto;border:1px solid #e9eeea}.delivery-profile-form .delivery-rates-table{min-width:0}.delivery-profile-form .delivery-rates-table thead{display:none}.delivery-profile-form .delivery-rates-table tbody{display:block;padding:7px}.delivery-profile-form .delivery-rates-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;margin:0 0 8px;padding:11px;border:1px solid #e9eeea;border-radius:12px;background:#fff}.delivery-profile-form .delivery-rates-table td{display:flex;min-width:0;flex-direction:column;padding:0;border:0;font-size:10px}.delivery-profile-form .delivery-rates-table td:first-child,.delivery-profile-form .delivery-rates-table td:nth-child(2){grid-column:1/-1}.delivery-profile-form .delivery-rates-table td:first-child{padding-bottom:5px;border-bottom:1px solid #eef1ed}.delivery-profile-form .delivery-rates-table td:before{margin-bottom:4px;color:#829087;font-size:8px;font-weight:700;text-transform:uppercase}.delivery-profile-form .delivery-rates-table td:first-child:before{display:none}.delivery-profile-form .delivery-rates-table td[hidden]{display:none!important}.delivery-profile-form .delivery-rate-input{align-items:stretch;min-width:0}.delivery-profile-form .delivery-rate-input input{min-height:38px}.delivery-profile-form .delivery-formula{align-items:flex-start;flex-direction:column;gap:5px}.delivery-profile-form .delivery-formula>small{margin-top:3px}}
.delivery-profile-form{max-width:1100px;margin:0 auto}
.delivery-profile-form [hidden]{display:none!important}
.delivery-page-heading{max-width:1100px;margin:0 auto 18px}
.delivery-profile-form .field>span{font-size:12px}
.delivery-profile-form .field input,.delivery-profile-form .field select{min-height:46px;font-size:12px}
.delivery-profile-form .input-prefix,.delivery-profile-form .input-suffix{min-height:46px}
.delivery-profile-form .field .field-help{color:#69796e;font-size:10.5px;line-height:1.55}
.delivery-profile-form .check-row{font-size:11px}
.delivery-step-heading{display:flex;align-items:flex-start;gap:12px;margin:0 0 18px}
.delivery-step-heading>span{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:12px;background:#e7f2e9;color:#176b50;font-size:15px;font-weight:800}
.delivery-step-heading h2{margin:0 0 4px;color:#1c382e;font-size:17px;letter-spacing:-.035em}
.delivery-step-heading p{margin:0;color:#75847a;font-size:12px;line-height:1.55}
.delivery-form-intro{padding-bottom:20px}
.delivery-intro-fields{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr);align-items:end;gap:16px}
.delivery-active-row{min-height:42px;align-items:center}
.delivery-active-row>span{display:flex;flex-direction:column;gap:3px}
.delivery-active-row strong{color:#344b3d;font-size:12px}
.delivery-active-row small{color:#87948b;font-size:10px;line-height:1.45}
.delivery-mode-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);align-items:end;gap:18px;margin-bottom:18px}
.delivery-mode-explanation{min-height:72px;padding:13px 15px;border:1px solid #dce9de;border-radius:13px;background:#f7faf6}
.delivery-mode-explanation strong{display:block;margin-bottom:4px;color:#245440;font-size:13px}
.delivery-mode-explanation p{margin:0;color:#66776b;font-size:11px;line-height:1.6}
.delivery-fee-fields{align-items:start}
.delivery-quantity-field .field-help{max-width:340px}
.delivery-distance-panel{border-color:#d8e8dd}
.delivery-distance-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.delivery-distance-choice .field{min-width:0}
.delivery-rule-note{margin-top:14px;padding:12px 14px;border-radius:11px;background:#f4f8f4;color:#5d7063;font-size:11px;line-height:1.6}
.delivery-city-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:12px}
.delivery-city-toolbar .field{width:min(400px,100%)}
.delivery-city-tools{display:flex;align-items:center;gap:9px;padding-bottom:7px}
.delivery-city-count{color:#738278;font-size:11px;font-weight:700;white-space:nowrap}
.delivery-city-status{margin:0 0 10px;color:#78877d;font-size:10px;line-height:1.5}
.delivery-calc-toolbar{align-items:center;padding:14px 16px}
.delivery-calc-toolbar strong{display:block;margin-bottom:3px;color:#244638;font-size:12px}
.delivery-calc-toolbar p{max-width:540px;font-size:11px}
.delivery-calc-toolbar .button{min-height:42px;padding:0 17px;font-size:11px}
.delivery-calc-toolbar .button:disabled{cursor:wait;opacity:.65}
.delivery-formula{display:flex;flex-direction:column;gap:5px;margin:0 0 14px;padding:14px 16px;border:1px solid #dcebdc;border-radius:12px;background:#f5faf4;color:#2e5140}
.delivery-formula strong{font-size:12px}
.delivery-formula span{font-size:14px;font-weight:750;line-height:1.5}
.delivery-formula small{color:#748477;font-size:10px;line-height:1.5}
.delivery-rates-scroll{max-height:62vh;overflow:auto;border:1px solid #e9eeea;border-radius:12px}
.delivery-rates-table{min-width:650px;margin:0}
.delivery-rates-table th{position:sticky;top:0;z-index:1;background:#f7f9f6;color:#68796e;font-size:10px}
.delivery-rates-table td{padding:8px 11px;vertical-align:middle;font-size:11px}
.delivery-rates-table td strong{font-size:12px}
.delivery-rates-table tr[hidden]{display:none!important}
.delivery-rates-table td[hidden],.delivery-rates-table th[hidden]{display:none!important}
.delivery-rate-input{display:flex;align-items:center;gap:6px}
.delivery-rate-input>span{color:#839187;font-size:10px}
.delivery-rate-input input{width:150px!important}
.delivery-no-city-results{padding:20px;text-align:center;color:#75847a;font-size:12px}
.delivery-form-actions{max-width:1100px;margin-right:auto;margin-left:auto}
@media(max-width:760px){.delivery-intro-fields,.delivery-mode-layout{grid-template-columns:1fr}.delivery-mode-explanation{min-height:0}.delivery-distance-choice{grid-template-columns:1fr}.delivery-city-toolbar{align-items:stretch;flex-direction:column;gap:4px}.delivery-city-toolbar .field{width:100%}.delivery-city-tools{justify-content:space-between;padding:0}.delivery-rates-scroll{max-height:58vh}}
@media(max-width:620px){.delivery-step-heading{gap:9px}.delivery-step-heading>span{flex-basis:30px;width:30px;height:30px;border-radius:10px}.delivery-step-heading h2{font-size:15px}.delivery-step-heading p{font-size:11px}.delivery-mode-explanation{padding:11px 12px}.delivery-formula span{font-size:12px}.delivery-rates-scroll{overflow:visible;max-height:none;border:0}.delivery-rates-table{min-width:0}.delivery-rates-table tbody{gap:8px;padding:0 1px}.delivery-rates-table tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;margin-bottom:8px;padding:12px;border:1px solid #e9eeea;border-radius:12px;background:#fff}.delivery-rates-table td:first-child{grid-column:1/-1;padding:0 0 5px;border-bottom:1px solid #eef1ed}.delivery-rates-table td:nth-child(2){grid-column:1/-1;color:#75847a}.delivery-rates-table td{min-width:0;padding:0;font-size:10px}.delivery-rates-table td:before{margin-bottom:4px;color:#829087;font-size:8px}.delivery-rates-table td:first-child:before{display:none}.delivery-rates-table td[hidden]{display:none!important}.delivery-rates-table .delivery-rate-input{align-items:flex-start;flex-direction:column;gap:3px}.delivery-rates-table .delivery-rate-input input{width:100%!important;min-height:38px}.delivery-form-actions{margin-right:-14px;margin-left:-14px}}
.product-list-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}.product-list-panel{min-width:0}.product-list-panel .location-inline-form{grid-template-columns:minmax(0,1fr) auto;align-items:end;padding:0 18px 15px}.product-list-panel .location-inline-form .button{grid-column:auto;white-space:nowrap}.product-list-panel .table-wrap{margin-top:0}.product-list-panel .data-table{min-width:610px}.list-name-form{display:flex;align-items:center;gap:7px;min-width:230px}.list-name-form input{min-width:0;width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}.product-list-panel td>form:not(.list-name-form){margin:0}.product-list-panel .empty-state{padding:26px 12px}.product-list-panel .empty-state h3{margin:0 0 4px}.product-list-panel .empty-state p{margin:0}@media(max-width:1050px){.product-list-panels{grid-template-columns:1fr}}@media(max-width:620px){.product-list-panel .location-inline-form{grid-template-columns:1fr;padding:0 12px 12px}.product-list-panel .location-inline-form .button{width:100%}.product-list-panel .panel-heading{padding:15px 12px 12px}.product-list-panel .data-table{min-width:590px}.product-list-panel .data-table td,.product-list-panel .data-table th{padding:9px 8px}}
/* Reports: a simple chooser first, then one focused table at a time. */
.report-home-heading{margin-bottom:22px}
.report-home-heading p,.report-detail-heading p{max-width:650px}
.report-choice-group{margin:0 0 25px}
.report-choice-heading{display:flex;align-items:center;gap:10px;margin:0 2px 11px}
.report-choice-heading h2{margin:0;color:var(--ink);font-size:17px;letter-spacing:-.02em}
.report-choice-heading>span{color:var(--muted);font-size:11px}
.report-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.report-choice-card{display:flex;align-items:flex-start;gap:12px;min-height:112px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--ink);text-decoration:none;box-shadow:var(--shadow-soft);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.report-choice-card:hover,.report-choice-card:focus-visible{transform:translateY(-2px);border-color:#8eb9a5;box-shadow:0 10px 24px rgba(31,83,62,.1);outline:none}
.report-choice-icon{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:12px;background:#eaf4ed;color:#176b53;font-size:18px;font-weight:800}
.report-choice-copy{display:grid;gap:6px;min-width:0;padding-top:2px}
.report-choice-copy strong{font-size:13px;line-height:1.35}
.report-choice-copy small{color:var(--muted);font-size:11px;line-height:1.5}
.report-choice-arrow{margin-left:auto;padding:0 0 0 5px;color:#14745b;font-size:19px;font-weight:700}
.report-empty-state{padding:38px;text-align:center}
.report-empty-state h2{margin:10px 0 5px;color:var(--ink);font-size:18px}
.report-empty-state p{margin:0;color:var(--muted);font-size:13px}
.report-empty-icon{display:inline-grid;width:45px;height:45px;place-items:center;border-radius:14px;background:#eaf4ed;color:#176b53;font-size:21px}
.report-detail-heading{align-items:flex-end;gap:20px;margin-bottom:17px}
.report-detail-heading .eyebrow{display:block;margin-top:10px}
.report-back-link{display:inline-flex;align-items:center;color:#176b53;font-size:12px;font-weight:750;text-decoration:none}
.report-back-link:hover{text-decoration:underline}
.report-detail-heading .heading-actions{flex-wrap:wrap;justify-content:flex-end}
.report-focused-filter{gap:12px;padding:16px;margin-bottom:11px}
.report-filter-intro{display:grid;gap:4px;grid-column:1/-1;padding-bottom:2px}
.report-filter-intro strong{color:var(--ink);font-size:13px}
.report-filter-intro span{color:var(--muted);font-size:11px}
.report-focused-filter .field input:disabled{background:#f5f7f5;color:#909a93;cursor:not-allowed}
.report-result-count{margin-left:auto;padding:5px 9px;border-radius:20px;background:#eaf4ed;color:#176b53;font-size:10px;font-weight:750}
.report-focused-panel{padding:18px}
.report-focused-panel .panel-heading{align-items:flex-start}
.report-focused-panel .panel-heading h2{font-size:16px}
.report-focused-panel .panel-heading p{font-size:11px}
.report-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:11px;-webkit-overflow-scrolling:touch}
.report-focused-table{min-width:760px;margin:0}
.report-focused-table th{white-space:nowrap}
.report-focused-table td{max-width:360px;overflow-wrap:anywhere}
.report-focused-table .report-empty{padding:28px 14px;text-align:center;color:var(--muted)}
.report-download-note{margin:10px 3px 0;color:var(--muted);font-size:10px}
@media(max-width:1050px){.report-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.report-choice-grid{grid-template-columns:1fr}.report-choice-card{min-height:0}.report-detail-heading{align-items:stretch;flex-direction:column}.report-detail-heading .heading-actions{justify-content:stretch}.report-detail-heading .heading-actions .button{flex:1}.report-result-count{margin-left:0}.report-focused-panel{padding:14px}.report-focused-panel .panel-heading{flex-direction:column}.report-focused-filter .field{width:100%}.report-focused-table{display:table;min-width:760px}.report-focused-table thead{display:table-header-group}.report-focused-table tbody{display:table-row-group}.report-focused-table tr{display:table-row;padding:0;border:0}.report-focused-table th,.report-focused-table td{display:table-cell;padding:10px 8px!important}.report-focused-table td:before{display:none}}
@media(max-width:420px){.report-choice-card{padding:13px}.report-choice-copy small{font-size:10px}.report-detail-heading .heading-actions{display:grid;grid-template-columns:1fr 1fr}.report-detail-heading .heading-actions .button{padding:0 8px;font-size:10px}}
/* Settings hub: make common setup tasks easy to find and open. */
.settings-heading{margin-bottom:24px}
.settings-heading p{max-width:680px}
.settings-group{margin:0 0 28px}
.settings-group-heading{display:flex;align-items:flex-start;gap:11px;margin:0 2px 12px}
.settings-group-number{display:grid;flex:0 0 31px;width:31px;height:31px;place-items:center;border-radius:10px;background:#e7f2e9;color:#176b50;font-size:13px;font-weight:800}
.settings-group-heading h2{margin:1px 0 3px;color:var(--ink);font-size:17px;letter-spacing:-.025em}
.settings-group-heading p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.settings-card{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:11px;padding:18px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow-soft);transition:border-color .16s ease,box-shadow .16s ease}
.settings-card:hover{border-color:#b7d3c1;box-shadow:0 10px 24px rgba(31,83,62,.07)}
.settings-card-icon{display:grid;flex:0 0 40px;width:40px;height:40px;place-items:center;border-radius:13px;background:#eaf4ed;color:#176b53;font-size:19px;font-weight:800}
.settings-card-copy{flex:1;min-width:0}
.settings-card-copy h3{margin:0 0 5px;color:var(--ink);font-size:15px;letter-spacing:-.02em}
.settings-card-copy p{max-width:520px;margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.settings-card-actions{display:flex;width:100%;align-items:center;flex-wrap:wrap;gap:9px 14px;margin-top:2px}
.settings-card-actions .button{min-height:40px;padding:0 14px;font-size:11px;text-decoration:none}
.settings-secondary-link{color:#176b53;font-size:11px;font-weight:750;text-decoration:none}
.settings-secondary-link:hover{text-decoration:underline}
.settings-card-note{color:var(--muted);font-size:10px;line-height:1.45}
.settings-help-note{display:flex;align-items:flex-start;gap:10px;margin:2px 0 10px;padding:13px 15px;border:1px solid #dce9de;border-radius:12px;background:#f6faf6}
.settings-help-note>span{display:grid;flex:0 0 20px;width:20px;height:20px;place-items:center;border-radius:50%;background:#e3f0e7;color:#176b53;font-size:11px;font-weight:800}
.settings-help-note p{margin:1px 0 0;color:#64766a;font-size:11px;line-height:1.6}
@media(max-width:720px){.settings-grid{grid-template-columns:1fr}.settings-card{padding:15px}.settings-group{margin-bottom:23px}}
@media(max-width:420px){.settings-group-heading{gap:9px}.settings-group-heading h2{font-size:15px}.settings-card-actions{align-items:stretch;flex-direction:column}.settings-card-actions .button{width:100%;justify-content:center}.settings-secondary-link{padding:3px 1px}}
/* Counter POS and branch bill-template setup. */
.pos-heading{align-items:flex-end;margin-bottom:16px}
.pos-heading>div>p{max-width:650px}
.pos-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.8fr);align-items:start;gap:14px}
.pos-branch-field{grid-column:1/-1;max-width:460px;margin:0 0 1px}
.pos-main-panel,.pos-checkout-panel{min-width:0;padding:18px}
.pos-search-heading,.pos-cart-heading,.pos-checkout-heading{display:flex;align-items:center;justify-content:space-between;gap:11px;margin:0 0 14px}
.pos-search-heading>div,.pos-cart-heading>div,.pos-checkout-heading{display:flex;align-items:center;gap:10px}
.pos-step{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border-radius:10px;background:#e7f2e9;color:#176b50;font-size:13px;font-weight:800}
.pos-search-heading h2,.pos-cart-heading h2,.pos-checkout-heading h2{margin:0 0 2px;color:var(--ink);font-size:15px;letter-spacing:-.025em}
.pos-search-heading p,.pos-cart-heading p,.pos-checkout-heading p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.pos-stock-badge{padding:6px 9px;border:1px solid #dceade;border-radius:20px;background:#f5faf5;color:#37654e;font-size:9px;font-weight:750;white-space:nowrap}
.pos-search-field{margin-bottom:8px}
.pos-search-input{display:flex;align-items:center;gap:9px;min-height:48px;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#738278}
.pos-search-input:focus-within{border-color:#1c8061;outline:3px solid #1c80611c}
.pos-search-input>span{font-size:20px}
.pos-search-input input{flex:1;min-width:0;min-height:44px;border:0!important;outline:0!important;padding:0!important;background:transparent!important}
.pos-search-input kbd{padding:3px 6px;border:1px solid #e3e9e3;border-radius:5px;background:#f8faf8;color:#7c8b80;font-size:9px}
.pos-search-results{display:grid;gap:6px;max-height:260px;overflow:auto;margin-bottom:20px;padding:2px 1px}
.pos-search-empty{margin:0;padding:13px;border:1px dashed #dce6de;border-radius:10px;color:var(--muted);font-size:10px;line-height:1.5}
.pos-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #e7ece8;border-radius:10px;background:#fbfcfa}
.pos-result-copy{display:grid;min-width:0;gap:3px}
.pos-result-copy strong{overflow-wrap:anywhere;color:var(--ink);font-size:11px}
.pos-result-copy small{color:var(--muted);font-size:9px;line-height:1.45}
.pos-result-serial{color:#176b53!important;font-weight:750}
.pos-cart-heading{margin-bottom:10px}
.pos-cart-wrap{max-height:54vh;overflow:auto;border:1px solid #e8ede9;border-radius:11px}
.pos-cart-table{width:100%;min-width:650px;margin:0;border-collapse:collapse}
.pos-cart-table th{position:sticky;top:0;z-index:1;padding:9px 8px;background:#f7f9f6;color:#718077;font-size:8px;text-align:left;text-transform:uppercase;letter-spacing:.06em}
.pos-cart-table td{padding:9px 8px;border-top:1px solid #edf1ed;color:#506258;font-size:10px;vertical-align:middle}
.pos-cart-table td:first-child{min-width:145px}
.pos-cart-table td:first-child strong,.pos-cart-table td:first-child small{display:block}
.pos-cart-table td:first-child strong{color:var(--ink);font-size:10px;line-height:1.45}
.pos-cart-table td:first-child small{color:var(--muted);font-size:8px;line-height:1.45}
.pos-cart-table .pos-serial-note{color:#176b53;font-weight:700}
.pos-cart-table .pos-cart-empty td{padding:24px 12px;text-align:center;color:var(--muted);font-size:10px}
.pos-line-number{width:68px;min-height:35px;padding:6px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:10px}
.pos-line-number[readonly]{background:#f4f7f4;color:#66776b}
.pos-cart-table td small[data-line-discount-note]{display:block;padding-top:3px;color:var(--muted);font-size:8px;white-space:nowrap}
.pos-remove-line{width:28px;height:28px;border:0;border-radius:8px;background:#fff1ed;color:#a14637;font-size:18px}
.pos-checkout-panel{position:sticky;top:12px;display:grid;gap:12px}
.pos-checkout-heading{justify-content:flex-start;margin:0 0 2px}
.pos-checkout-panel>.field{margin:0}
.pos-checkout-panel .field>span{font-size:10px}
.pos-checkout-panel .field input,.pos-checkout-panel .field select,.pos-checkout-panel .field textarea{min-height:40px;font-size:11px}
.pos-checkout-panel .field textarea{padding:9px 10px}
.pos-checkout-panel .field .field-help{font-size:9px;line-height:1.45}
.pos-totals{display:grid;gap:8px;padding:13px 0;border-top:1px solid #edf1ed;border-bottom:1px solid #edf1ed}
.pos-totals>div{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#65766b;font-size:10px}
.pos-totals>div strong{color:var(--ink);font-size:11px}
.pos-discount{display:flex;align-items:center;justify-content:space-between;gap:9px;color:#65766b;font-size:9px}
.pos-discount input{width:105px;min-height:34px;padding:5px 7px;border:1px solid var(--line);border-radius:8px;font-size:10px;text-align:right}
.pos-totals .pos-grand-total{margin-top:2px;padding:11px;border-radius:10px;background:#edf7ef;color:#315b45;font-weight:750}
.pos-totals .pos-grand-total strong{color:var(--pine);font-size:17px;letter-spacing:-.03em}
.pos-bank-fields{display:grid;gap:10px;padding:11px;border:1px solid #e5ece6;border-radius:11px;background:#fafcfa}
.pos-bank-fields[hidden]{display:none}
.field-optional{color:var(--muted);font-size:9px;font-weight:500}
.pos-checkout-note{display:flex;align-items:flex-start;gap:8px;padding:10px;border-radius:10px;background:#f3f8f3;color:#315b45}
.pos-checkout-note>span{font-weight:800}
.pos-checkout-note p{margin:0;font-size:9px;line-height:1.5}
.pos-complete-button{width:100%;min-height:47px;justify-content:center;font-size:11px}
.pos-complete-button:disabled{cursor:not-allowed;opacity:.55}
.pos-credit-note{margin:-6px 0 0;color:var(--muted);font-size:8px;line-height:1.45;text-align:center}
.pos-button-spinner{display:inline-block;width:13px;height:13px;margin-right:7px;border:2px solid #ffffff70;border-top-color:#fff;border-radius:50%;animation:pos-spin .7s linear infinite;vertical-align:-2px}
@keyframes pos-spin{to{transform:rotate(360deg)}}
.bill-template-heading{align-items:flex-end;margin-bottom:20px}
.bill-template-heading>div{display:grid}
.bill-template-heading .eyebrow{margin-top:8px}
.bill-template-heading h1{margin-bottom:4px}
.bill-template-heading p{max-width:620px;margin:0;color:var(--muted);font-size:12px}
.bill-template-group{margin:0 0 25px}
.bill-template-group-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:0 2px 11px}
.bill-template-group-heading h2{margin:0;color:var(--ink);font-size:16px}
.bill-template-group-heading>span{color:var(--muted);font-size:10px}
.bill-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bill-template-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-soft)}
.bill-template-card.is-paused{opacity:.72}
.bill-template-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.bill-template-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:11px;background:#eaf4ed;color:#176b53;font-weight:800}
.bill-template-card h3{margin:11px 0 4px;color:var(--ink);font-size:14px}
.bill-template-card>p{margin:0;color:var(--muted);font-size:10px}
.bill-template-features{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.bill-template-features span{padding:4px 7px;border-radius:20px;background:#f3f7f3;color:#5f7366;font-size:8px}
.bill-template-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid #edf1ed}
.bill-template-actions form{margin:0}
.bill-template-actions .button{min-height:32px}
.bill-template-toggle{padding:6px 4px;border:0;background:transparent;color:#87604e;font-size:9px;font-weight:750}
.bill-template-empty{display:grid;justify-items:center;padding:38px 20px;text-align:center}
.bill-template-empty-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;background:#eaf4ed;color:#176b53;font-size:22px}
.bill-template-empty h2{margin:12px 0 4px;color:var(--ink);font-size:17px}
.bill-template-empty p{max-width:530px;margin:0 0 16px;color:var(--muted);font-size:11px;line-height:1.6}
.bill-template-form{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.75fr);align-items:start;gap:14px}
.bill-template-form-main{display:grid;gap:13px;min-width:0}
.bill-template-form-panel{padding:17px}
.bill-template-section-heading{display:flex;align-items:flex-start;gap:10px;margin:0 0 15px}
.bill-template-section-heading h2{margin:1px 0 3px;color:var(--ink);font-size:15px}
.bill-template-section-heading p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.bill-template-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bill-template-fields .field{min-width:0;margin:0}
.bill-template-fields .field>span{font-size:10px}
.bill-template-fields .field input,.bill-template-fields .field select,.bill-template-fields .field textarea{min-height:40px;font-size:10px}
.bill-template-fields .field textarea{padding:9px 10px}
.bill-template-logo-field input{padding:8px!important}
.bill-template-current-logo{display:block;max-width:130px;max-height:55px;margin-top:7px;object-fit:contain}
.bill-template-toggle-grid{display:grid;gap:3px}
.bill-template-toggle-row,.bill-template-default-row{display:flex;align-items:flex-start;gap:9px;padding:10px 0;border-bottom:1px solid #edf1ed;cursor:pointer}
.bill-template-toggle-row>input,.bill-template-default-row>input{flex:0 0 16px;width:16px;height:16px;margin:1px 0 0;accent-color:#176b53}
.bill-template-toggle-row>span,.bill-template-default-row>span{display:grid;gap:2px}
.bill-template-toggle-row strong,.bill-template-default-row strong{color:#344b3d;font-size:10px}
.bill-template-toggle-row small,.bill-template-default-row small{color:var(--muted);font-size:9px;line-height:1.45}
.bill-template-default-row{margin-top:12px;padding:12px;border:1px solid #dce9de;border-radius:10px;background:#f6faf6}
.bill-template-form-actions{margin:0;padding:0}
.bill-live-preview{position:sticky;top:12px;overflow:hidden;padding:16px}
.bill-preview-heading{margin-bottom:13px}
.bill-preview-heading h2{margin:0 0 3px;color:var(--ink);font-size:15px}
.bill-preview-heading p{margin:0;color:var(--muted);font-size:9px;line-height:1.5}
.bill-preview-paper{width:100%;max-height:76vh;overflow:auto;margin:auto;padding:16px;border:1px solid #e2e8e3;background:#fff;color:#26372e;box-shadow:0 4px 14px #1d3b2910;text-align:center;font-family:Arial,sans-serif}
.bill-preview-paper.paper-thermal_58{max-width:230px;padding:11px;font-size:9px}
.bill-preview-paper.paper-thermal_80{max-width:300px;font-size:10px}
.bill-preview-paper.paper-a5{max-width:460px;font-size:11px}
.bill-preview-paper.paper-a4{max-width:520px;padding:24px;font-size:12px}
.bill-preview-paper small{display:block;margin-top:4px;color:#607067;font-size:.82em;line-height:1.5;white-space:pre-line}
.bill-preview-paper hr{border:0;border-top:1px dashed #abb6ae;margin:10px 0}
.bill-preview-logo img{max-width:100px;max-height:45px;margin:0 auto 7px;object-fit:contain}
.bill-preview-business{display:block;font-size:1.25em}
.bill-preview-title{font-weight:800;letter-spacing:.12em}
.bill-preview-customer{display:grid;gap:2px;margin:12px 0;text-align:left;font-size:.85em}
.bill-preview-customer small[hidden],.bill-preview-lines [hidden],.bill-preview-vat[hidden],.bill-preview-cashier[hidden]{display:none}
.bill-preview-lines{padding:8px 0;border-top:1px dashed #abb6ae;border-bottom:1px dashed #abb6ae;text-align:left}
.bill-preview-lines>div:not(.bill-preview-code):not(.bill-preview-serial):not(.bill-preview-discount){display:flex;justify-content:space-between;gap:8px}
.bill-preview-lines>div+div{margin-top:4px}
.bill-preview-code,.bill-preview-serial,.bill-preview-discount{color:#68786e;font-size:.75em}
.bill-preview-totals{display:grid;gap:5px;margin:10px 0 4px;text-align:left}
.bill-preview-totals>div{display:flex;justify-content:space-between;gap:8px}
.bill-preview-totals>div:last-child{padding-top:6px;border-top:1px solid #e7ece7;font-size:1.15em;font-weight:800}
.bill-preview-footer{margin:11px 0 0;color:#53645a;font-size:.83em;white-space:pre-line}
@media(max-width:1080px){.pos-workspace{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr)}.bill-template-form{grid-template-columns:minmax(0,1fr) minmax(250px,.8fr)}}
@media(max-width:820px){.pos-workspace{grid-template-columns:1fr}.pos-branch-field{grid-column:1}.pos-checkout-panel{position:static}.bill-template-form{grid-template-columns:1fr}.bill-live-preview{position:static}.bill-preview-paper{max-height:620px}}
@media(max-width:620px){.pos-heading{align-items:stretch;flex-direction:column}.pos-heading>.button{width:100%;justify-content:center}.pos-main-panel,.pos-checkout-panel{padding:13px}.pos-search-heading{align-items:flex-start;flex-direction:column}.pos-stock-badge{margin-left:40px}.pos-cart-wrap{max-height:none;overflow:visible;border:0}.pos-cart-table{display:block;min-width:0}.pos-cart-table thead{display:none}.pos-cart-table tbody{display:grid;gap:8px}.pos-cart-table tr[data-pos-row]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 11px;padding:12px;border:1px solid #e8ede9;border-radius:11px;background:#fff}.pos-cart-table td{display:flex;min-width:0;flex-direction:column;gap:3px;padding:0;border:0;font-size:9px;text-align:left!important}.pos-cart-table td:first-child{grid-column:1/-1;padding-bottom:6px;border-bottom:1px solid #edf1ed}.pos-cart-table td:first-child strong{font-size:11px}.pos-cart-table td:before{color:#87948b;font-size:8px;font-weight:750;text-transform:uppercase;content:attr(data-label)}.pos-cart-table td:first-child:before,.pos-cart-table td:last-child:before{display:none}.pos-cart-table td:last-child{align-items:flex-end;grid-column:2;grid-row:4}.pos-cart-table .pos-cart-empty{display:block;border:1px dashed #dce6de;border-radius:10px}.pos-cart-table .pos-cart-empty td{display:block;padding:18px 10px}.pos-line-number{width:100%;min-height:38px}.pos-cart-table td small[data-line-discount-note]{font-size:8px}.pos-result{padding:9px}.pos-result .button{flex:none}.bill-template-heading{align-items:stretch;flex-direction:column}.bill-template-heading>.button{width:100%;justify-content:center}.bill-template-grid{grid-template-columns:1fr}.bill-template-actions{align-items:stretch}.bill-template-actions .button{flex:1;justify-content:center}.bill-template-form-panel,.bill-live-preview{padding:13px}.bill-template-fields{grid-template-columns:1fr}.bill-template-form-actions{display:grid;grid-template-columns:1fr 1fr}.bill-template-form-actions .button{width:100%;justify-content:center}}

/* Focused, touch-friendly point-of-sale workspace */
.admin-page.pos-mode{height:100vh;height:100dvh;overflow:hidden;background:#eef2ef}
.pos-mode .sidebar,.pos-mode .sidebar-scrim,.pos-mode .topbar,.pos-mode .page-footer{display:none!important}
.pos-mode .admin-shell{display:block;width:100%;height:100vh;height:100dvh;min-height:100vh;min-height:100dvh}
.pos-mode .admin-main{display:block;width:100%;height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;margin:0;overflow:hidden}
.pos-mode .page-content{position:relative;width:100%;max-width:none;height:100%;min-height:0;margin:0;padding:0;overflow:hidden}
.pos-mode .page-content>.alert{position:fixed;z-index:90;top:10px;left:50%;width:min(94vw,760px);margin:0;transform:translateX(-50%);box-shadow:0 12px 40px #10271d28}
.pos-mode [hidden]{display:none!important}
.pos-terminal{display:flex;width:100%;height:100%;min-height:0;flex-direction:column;background:#eef2ef;color:#20352b}
.pos-terminal-header{position:relative;z-index:10;display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,350px) minmax(250px,1fr);align-items:center;gap:20px;min-height:78px;padding:10px clamp(16px,2.2vw,34px);background:linear-gradient(110deg,#142b24 0%,#1a3a2e 62%,#204c3b 100%);color:#fff;box-shadow:0 4px 18px #132b241c}
.pos-brand{display:flex;align-items:center;gap:11px;min-width:0;color:#fff;text-decoration:none}
.pos-brand-mark{display:grid;width:43px;height:43px;flex:0 0 43px;place-items:center;border:1px solid #ffffff2b;border-radius:14px;background:#ffffff13;color:#d9f2df;font-size:22px;font-weight:900}
.pos-brand-copy{display:grid;gap:2px;min-width:0}.pos-brand-copy strong{overflow:hidden;font-size:16px;letter-spacing:-.03em;text-overflow:ellipsis;white-space:nowrap}.pos-brand-copy small{color:#b8d0c2;font-size:10px;letter-spacing:.03em}
.pos-branch-switcher{display:grid;grid-template-columns:1fr;gap:4px;min-width:0}.pos-branch-switcher label,.pos-branch-label{color:#c2d7cb;font-size:10px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}.pos-branch-switcher select{width:100%;min-height:47px;padding:0 38px 0 13px;border:1px solid #ffffff30;border-radius:12px;background:#ffffff12;color:#fff;font-size:14px;font-weight:700}.pos-branch-switcher select option{background:#fff;color:#21382d}.pos-current-branch{overflow:hidden;color:#fff;font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.pos-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.pos-live-indicator,.pos-header-actions a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:45px;padding:0 13px;border:1px solid #ffffff25;border-radius:12px;color:#f3faf5;font-size:11px;font-weight:750;text-decoration:none;white-space:nowrap}.pos-live-indicator{border-color:transparent;color:#c9e5d4}.pos-live-indicator i{width:8px;height:8px;border-radius:50%;background:#6bd49c;box-shadow:0 0 0 4px #6bd49c24}.pos-header-actions a{background:#ffffff0b;transition:background .16s ease,transform .16s ease}.pos-header-actions a:hover{transform:translateY(-1px);background:#ffffff19}.pos-header-actions .pos-exit-link{border-color:#d7f0e0;background:#e5f3e8;color:#174332}
.pos-terminal-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(365px,410px);align-items:stretch;gap:14px;min-height:0;flex:1;padding:14px clamp(14px,2.1vw,30px) 18px;overflow:hidden}
.pos-catalog-panel,.pos-checkout-panel{min-width:0;border:1px solid #dfe8e1;border-radius:20px;background:#fff;box-shadow:0 8px 30px #1b3d2a0b}
.pos-catalog-panel{display:flex;min-height:0;flex-direction:column;padding:clamp(16px,1.8vw,24px);overflow:hidden}
.pos-catalog-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:17px}.pos-kicker{display:block;margin-bottom:5px;color:#638074;font-size:9px;font-weight:850;letter-spacing:.15em}.pos-catalog-heading h1{margin:0;color:#183b2e;font-size:clamp(23px,2.2vw,30px);letter-spacing:-.055em;line-height:1.12}.pos-catalog-heading p{margin:7px 0 0;color:#74847a;font-size:12px;line-height:1.5}.pos-stock-pill{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:9px 12px;border:1px solid #d7ebdd;border-radius:30px;background:#f0f8f2;color:#276347;font-size:10px;font-weight:800;white-space:nowrap}.pos-stock-pill span{color:#24a46d;font-size:10px}
.pos-search-box{display:flex;align-items:center;gap:12px;min-height:60px;margin:0 0 13px;padding:0 14px;border:1.5px solid #d8e4dc;border-radius:15px;background:#f9fbf9;color:#75857a;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.pos-search-box:focus-within{border-color:#258568;background:#fff;box-shadow:0 0 0 4px #25856818}.pos-search-icon{font-size:27px;line-height:1}.pos-search-box input{width:100%;min-width:0;min-height:55px;border:0!important;outline:0!important;background:transparent!important;color:#20382c;font-size:15px!important;box-shadow:none!important}.pos-search-box input::placeholder{color:#9aa79f}.pos-search-box kbd{flex:0 0 auto;padding:5px 8px;border:1px solid #e2e9e3;border-radius:7px;background:#fff;color:#78867d;font-size:9px;font-weight:750}
.pos-category-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:45px;margin:0 0 9px}.pos-category-tabs{display:flex;min-width:0;gap:7px;overflow-x:auto;padding:2px 2px 5px;scrollbar-width:thin}.pos-category-tabs[hidden]{display:none!important}.pos-category-button{display:inline-flex;align-items:center;gap:8px;min-height:41px;flex:0 0 auto;padding:0 14px;border:1px solid #e1e9e3;border-radius:11px;background:#fff;color:#52665a;font-size:11px;font-weight:750;touch-action:manipulation}.pos-category-button span{display:grid;min-width:20px;height:20px;place-items:center;border-radius:7px;background:#eef3ef;color:#567363;font-size:9px}.pos-category-button.is-active{border-color:#177557;background:#eaf5ee;color:#176749;box-shadow:inset 0 0 0 1px #17755720}.pos-product-count{flex:0 0 auto;color:#819087;font-size:10px;font-weight:700;text-align:right}
.pos-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));align-content:start;gap:12px;min-height:0;flex:1;overflow:auto;padding:3px 5px 7px 1px;overscroll-behavior:contain;scrollbar-color:#d6e2d9 transparent;scrollbar-width:thin}.pos-product-tile{position:relative;display:flex;min-width:0;min-height:178px;flex-direction:column;align-items:stretch;gap:8px;padding:11px;border:1px solid #e2eae4;border-radius:16px;background:linear-gradient(160deg,#fff 0%,#fbfdfb 100%);color:#21392e;text-align:left;cursor:pointer;touch-action:manipulation;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.pos-product-tile:hover{transform:translateY(-2px);border-color:#9acbb1;box-shadow:0 8px 18px #15523912}.pos-product-tile:active{transform:scale(.98);background:#eff8f1}.pos-product-tile:focus-visible,.pos-category-button:focus-visible,.pos-header-actions a:focus-visible{outline:3px solid #55b78c;outline-offset:2px}.pos-tile-image{display:grid;width:100%;height:72px;place-items:center;overflow:hidden;border-radius:11px;background:linear-gradient(135deg,#eff7f0,#e4f1e7);color:#347354}.pos-tile-image.has-image{background:#f5f7f5}.pos-tile-image img{width:100%;height:100%;object-fit:contain}.pos-tile-image.is-broken{background:linear-gradient(135deg,#eff7f0,#e4f1e7)}.pos-tile-placeholder i{display:grid;width:45px;height:45px;place-items:center;border-radius:15px;background:#fff;color:#287355;font-size:20px;font-style:normal;font-weight:850;box-shadow:0 3px 10px #1a593b13}.pos-tile-copy{display:grid;gap:3px;min-width:0}.pos-tile-copy strong{display:-webkit-box;overflow:hidden;color:#20392d;font-size:12px;font-weight:800;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pos-tile-copy small{overflow:hidden;color:#849087;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.pos-tile-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:7px;margin-top:auto;padding-top:5px}.pos-tile-bottom strong{color:#166447;font-size:17px;font-weight:900;letter-spacing:-.04em;white-space:nowrap}.pos-tile-bottom small{max-width:86px;overflow:hidden;color:#6b7c71;font-size:9px;font-weight:700;text-align:right;text-overflow:ellipsis;white-space:nowrap}.pos-scanned-badge{position:absolute;top:8px;right:8px;padding:5px 7px;border:1px solid #d2ead9;border-radius:20px;background:#f1fbf4;color:#216847;font-size:8px;font-weight:850}
.pos-catalog-empty{display:grid;align-content:center;justify-items:center;gap:8px;min-height:190px;grid-column:1/-1;padding:22px;border:1px dashed #d7e4da;border-radius:16px;background:#fafcfa;color:#64766a;text-align:center}.pos-catalog-empty>span{display:grid;width:45px;height:45px;place-items:center;border-radius:14px;background:#eaf5ec;color:#25704f;font-size:22px}.pos-catalog-empty strong{color:#2d4638;font-size:13px}.pos-catalog-empty small{color:#7e8c82;font-size:10px}.pos-catalog-hint{min-height:16px;margin:8px 2px 0;color:#7d8b81;font-size:10px}.pos-tile-skeleton{display:grid;min-height:178px;gap:10px;padding:11px;border:1px solid #e8eee9;border-radius:16px;background:#fff}.pos-tile-skeleton i,.pos-tile-skeleton b,.pos-tile-skeleton small{display:block;border-radius:8px;background:linear-gradient(90deg,#eef2ef,#f8faf8,#eef2ef);background-size:200% 100%;animation:pos-shimmer 1.2s ease-in-out infinite}.pos-tile-skeleton i{height:72px}.pos-tile-skeleton b{height:14px;width:75%}.pos-tile-skeleton small{height:12px;width:48%}@keyframes pos-shimmer{to{background-position:-200% 0}}
.pos-checkout-panel{position:relative;display:flex;min-height:0;flex-direction:column;gap:12px;padding:18px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#d6e2d9 transparent;scrollbar-width:thin}.pos-cart-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.pos-cart-title-row h2{margin:0;color:#183b2e;font-size:22px;letter-spacing:-.05em}.pos-cart-title-row p{margin:4px 0 0;color:#7c8b81;font-size:10px}.pos-clear-button{min-height:42px;padding:0 12px;border:1px solid #f0d8d2;border-radius:11px;background:#fff8f6;color:#9b4a3a;font-size:10px;font-weight:800;touch-action:manipulation}.pos-clear-button[hidden]{display:none!important}
.pos-field{display:grid;gap:6px;margin:0;color:#40574a;font-size:11px;font-weight:800}.pos-field>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.pos-field>span small,.pos-field small{color:#87948b;font-size:9px;font-weight:600}.pos-field input,.pos-field select,.pos-field textarea{width:100%;min-height:49px;padding:0 12px;border:1px solid #dfe8e1;border-radius:11px;background:#fff;color:#233a2e;font-size:13px}.pos-field textarea{min-height:75px;padding:11px 12px;resize:vertical}.pos-field input:focus,.pos-field select:focus,.pos-field textarea:focus{border-color:#278468;outline:3px solid #2784681c}.pos-cart-lines{display:grid;align-content:start;gap:8px;max-height:32vh;min-height:90px;overflow:auto;padding:1px 3px 4px 1px;overscroll-behavior:contain}.pos-cart-empty{display:grid;justify-items:center;gap:5px;padding:22px 12px;border:1px dashed #dce6de;border-radius:14px;background:#fafcfa;text-align:center}.pos-cart-empty>span{font-size:22px}.pos-cart-empty strong{color:#3e5748;font-size:11px}.pos-cart-empty small{color:#859188;font-size:9px}.pos-cart-line{display:grid;gap:8px;padding:12px;border:1px solid #e7ede8;border-radius:14px;background:#fcfdfc}.pos-cart-line-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.pos-cart-line-head>div{display:grid;gap:2px;min-width:0}.pos-cart-line-head strong{overflow-wrap:anywhere;color:#294437;font-size:12px;line-height:1.4}.pos-cart-line-head small{color:#89958d;font-size:9px}.pos-cart-line-head .pos-serial-note{color:#21714d;font-weight:800}.pos-remove-line{display:grid;width:43px;height:43px;flex:0 0 43px;place-items:center;border:1px solid #f2ded8;border-radius:12px;background:#fff6f3;color:#a44e3d;font-size:22px;touch-action:manipulation}.pos-cart-line-detail{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#607267;font-size:10px}.pos-cart-line-detail>span:first-child{color:#1c6547;font-size:11px;font-weight:800}.pos-cart-line-detail i{font-style:normal}.pos-cart-line-controls{display:grid;grid-template-columns:minmax(76px,.7fr) minmax(84px,.8fr) minmax(94px,1fr);align-items:end;gap:8px}.pos-cart-line-controls label{display:grid;gap:4px;color:#7e8b81;font-size:9px;font-weight:750}.pos-line-number{width:100%;min-height:45px;padding:0 9px;border:1px solid #dfe8e1;border-radius:10px;background:#fff;color:#253b30;font-size:14px;text-align:center}.pos-line-number[readonly]{background:#f2f6f3;color:#65766b}.pos-cart-line-controls small{color:#96a198;font-size:8px}.pos-line-total{padding-bottom:11px;color:#1e553d;font-size:13px;text-align:right;white-space:nowrap}
.pos-total-card{display:grid;gap:9px;padding:13px;border:1px solid #e2ebe4;border-radius:14px;background:#f8fbf8}.pos-total-card>div,.pos-total-card>label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#64766a;font-size:10px}.pos-total-card>div strong{color:#2a4536;font-size:11px}.pos-total-card .pos-total-due{margin-top:2px;padding:13px;border-radius:11px;background:linear-gradient(100deg,#e5f4e9,#edf8ef);color:#21593e;font-size:13px;font-weight:850}.pos-total-card .pos-total-due strong{color:#176747;font-size:23px;font-weight:950;letter-spacing:-.05em}.pos-money-input{display:flex;align-items:center;gap:5px;width:124px;min-height:40px;padding:0 8px;border:1px solid #e1e9e2;border-radius:9px;background:#fff}.pos-money-input small{color:#849188;font-size:9px}.pos-money-input input{width:100%;min-height:34px;padding:0;border:0;outline:0;background:transparent;color:#334b3b;font-size:12px;text-align:right}.pos-more-options{border:1px solid #e6ece7;border-radius:12px;background:#fbfcfb}.pos-more-options summary{display:flex;min-height:47px;align-items:center;justify-content:space-between;padding:0 12px;color:#557062;font-size:10px;font-weight:800;cursor:pointer;touch-action:manipulation}.pos-more-options[open]{padding-bottom:12px}.pos-more-options[open] summary{margin-bottom:11px;border-bottom:1px solid #e9efea}.pos-more-options .pos-field{margin:0 11px 10px}.pos-more-options .pos-field:last-child{margin-bottom:0}.pos-bank-fields{display:grid;gap:9px;padding:12px;border:1px solid #e3ebe4;border-radius:13px;background:#f8fbf8}.pos-bank-fields[hidden]{display:none!important}.pos-payment-hint{color:#718278;font-size:9px;font-weight:650}.pos-complete-button{display:flex;width:100%;min-height:62px;align-items:center;justify-content:space-between;gap:10px;padding:0 16px;border:0;border-radius:15px;background:linear-gradient(105deg,#176b4d,#16845d);color:#fff;box-shadow:0 8px 18px #146b4e23;font-size:14px;font-weight:850;cursor:pointer;touch-action:manipulation;transition:transform .16s ease,box-shadow .16s ease,opacity .16s ease}.pos-complete-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 22px #146b4e31}.pos-complete-button:active:not(:disabled){transform:scale(.985)}.pos-complete-button:disabled{cursor:not-allowed;opacity:.48}.pos-complete-button strong{margin-left:auto;font-size:16px}.pos-complete-arrow{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#ffffff1e;font-size:20px}.pos-credit-note{margin:-5px 0 0;color:#859188;font-size:9px;text-align:center}.pos-mobile-review{display:none}
@media(max-width:1100px) and (min-width:921px){.pos-terminal-header{grid-template-columns:minmax(150px,1fr) minmax(200px,290px) auto;gap:12px;padding-right:16px;padding-left:16px}.pos-live-indicator{display:none}.pos-terminal-body{grid-template-columns:minmax(0,1fr) minmax(345px,380px);gap:10px;padding-right:12px;padding-left:12px}.pos-checkout-panel{padding:14px}.pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:9px}}
@media(max-width:920px){.admin-page.pos-mode{height:auto;min-height:100vh;min-height:100dvh;overflow:auto}.pos-mode .admin-shell,.pos-mode .admin-main{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}.pos-mode .page-content{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}.pos-mode .page-content>.alert{top:6px}.pos-terminal{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}.pos-terminal-header{position:sticky;top:0;grid-template-columns:minmax(150px,1fr) minmax(190px,1fr);gap:10px 14px;min-height:0;padding:10px 14px}.pos-header-actions{grid-column:1/-1;justify-content:space-between}.pos-header-actions a,.pos-live-indicator{min-height:43px}.pos-terminal-body{grid-template-columns:1fr;gap:12px;overflow:visible;padding:12px 12px 94px}.pos-catalog-panel{min-height:68vh;overflow:visible}.pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));overflow:visible}.pos-checkout-panel{position:static;max-height:none;overflow:visible}.pos-cart-lines{max-height:none}.pos-mobile-review{position:fixed;z-index:40;right:12px;bottom:12px;left:12px;display:flex;min-height:62px;align-items:center;justify-content:space-between;gap:12px;padding:0 15px;border:1px solid #1b7956;border-radius:16px;background:linear-gradient(105deg,#153d2e,#176d4e);color:#fff;box-shadow:0 10px 30px #102c1d45;font-size:11px;font-weight:800;touch-action:manipulation;transition:transform .2s ease,opacity .2s ease}.pos-mobile-review[hidden]{display:none!important}.pos-mobile-review strong{margin-left:auto;font-size:15px}.pos-mobile-review.is-hidden{transform:translateY(130%);opacity:0;pointer-events:none}}
@media(max-width:600px){.pos-terminal-header{grid-template-columns:1fr auto;gap:9px;padding:9px 11px}.pos-brand-mark{width:38px;height:38px;flex-basis:38px;border-radius:12px;font-size:19px}.pos-brand-copy strong{font-size:14px}.pos-brand-copy small{font-size:9px}.pos-branch-switcher{grid-column:1/-1;grid-row:2}.pos-branch-switcher select{min-height:45px}.pos-header-actions{grid-column:1/-1;gap:6px}.pos-live-indicator{display:none}.pos-header-actions a{min-height:42px;flex:1;padding:0 8px;font-size:10px}.pos-terminal-body{gap:10px;padding:10px 9px 92px}.pos-catalog-panel,.pos-checkout-panel{border-radius:16px}.pos-catalog-panel{min-height:64vh;padding:14px 12px}.pos-catalog-heading{align-items:flex-start;flex-direction:column;gap:9px;margin-bottom:12px}.pos-catalog-heading h1{font-size:24px}.pos-catalog-heading p{font-size:11px}.pos-stock-pill{padding:7px 9px;font-size:9px}.pos-search-box{min-height:56px;gap:8px;padding:0 10px}.pos-search-box input{min-height:52px;font-size:13px!important}.pos-search-box kbd{display:none}.pos-category-row{align-items:flex-start;flex-direction:column;gap:4px}.pos-category-tabs{width:100%}.pos-category-button{min-height:43px;padding:0 12px}.pos-product-count{align-self:flex-end;font-size:9px}.pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-right:1px}.pos-product-tile{min-height:167px;gap:7px;padding:9px;border-radius:13px}.pos-tile-image{height:62px}.pos-tile-placeholder i{width:40px;height:40px}.pos-tile-copy strong{font-size:11px}.pos-tile-bottom strong{font-size:15px}.pos-tile-bottom small{font-size:8px}.pos-catalog-hint{font-size:9px}.pos-checkout-panel{gap:11px;padding:14px 12px}.pos-cart-title-row h2{font-size:20px}.pos-field input,.pos-field select,.pos-field textarea{min-height:48px;font-size:14px}.pos-cart-line{padding:10px}.pos-cart-line-controls{grid-template-columns:minmax(70px,.65fr) minmax(80px,.8fr) minmax(82px,1fr);gap:6px}.pos-line-number{min-height:46px;padding:0 5px;font-size:14px}.pos-line-total{font-size:11px}.pos-total-card .pos-total-due strong{font-size:21px}.pos-complete-button{min-height:62px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.pos-product-tile,.pos-header-actions a,.pos-complete-button,.pos-mobile-review{transition:none}.pos-tile-skeleton i,.pos-tile-skeleton b,.pos-tile-skeleton small{animation:none}}
.pos-checkout-actions{position:sticky;z-index:5;bottom:-18px;margin-top:auto;padding:12px 0 0;background:linear-gradient(180deg,#ffffff00 0%,#fff 18%)}

/* Give the bill its own comfortable column and keep its preview within reach on touch screens. */
.pos-terminal-body{grid-template-columns:minmax(0,1fr) minmax(400px,440px);gap:22px;padding:18px clamp(20px,3vw,44px) 22px}
.pos-checkout-panel{gap:13px;padding:20px 18px 18px}
.pos-bill-close,.pos-bill-backdrop{display:none}
@media(max-width:1100px) and (min-width:921px){.pos-terminal-body{grid-template-columns:minmax(0,1fr) minmax(380px,400px);gap:16px;padding:16px}.pos-checkout-panel{padding:16px}}
@media(max-width:920px){
    body.pos-bill-open{overflow:hidden!important}
    .pos-terminal-body{grid-template-columns:minmax(0,1fr);gap:16px;padding:12px 12px calc(98px + env(safe-area-inset-bottom))}
    .pos-bill-backdrop{position:fixed;z-index:70;inset:0;width:100%;height:100%;border:0;background:#10271db8;backdrop-filter:blur(3px)}
    .pos-bill-backdrop:not([hidden]){display:block}
    .pos-bill-backdrop[hidden]{display:none!important}
    .pos-terminal.pos-bill-open .pos-checkout-panel{position:fixed;z-index:75;top:0;right:0;bottom:0;width:min(520px,100vw);height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;overflow-y:auto;overscroll-behavior:contain;border-radius:22px 0 0 22px;padding:calc(18px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));box-shadow:-12px 0 42px #10271d38;animation:pos-bill-drawer-in .22s ease-out}
    .pos-bill-close{display:inline-flex;min-width:72px;min-height:44px;align-items:center;justify-content:center;border:1px solid #dce7de;border-radius:11px;background:#f7faf7;color:#315843;font-size:12px;font-weight:800;touch-action:manipulation}
    .pos-mobile-review{bottom:calc(12px + env(safe-area-inset-bottom));min-height:66px}
    .pos-terminal.pos-bill-open .pos-mobile-review{visibility:hidden;pointer-events:none}
}
@media(max-width:600px){
    .pos-terminal-body{gap:16px;padding:10px 10px calc(98px + env(safe-area-inset-bottom))}
    .pos-terminal.pos-bill-open .pos-checkout-panel{right:0;left:0;width:100%;border-radius:0;padding-right:14px;padding-left:14px}
    .pos-bill-close{min-width:62px}
}
@keyframes pos-bill-drawer-in{from{transform:translateX(24px);opacity:.8}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.pos-terminal.pos-bill-open .pos-checkout-panel{animation:none}}

.pos-header-actions .pos-print-preview-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:45px;padding:0 13px;border:1px solid #d9eddf;border-radius:12px;background:#e5f3e8;color:#174332;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer;touch-action:manipulation;transition:background .16s ease,transform .16s ease}
.pos-header-actions .pos-print-preview-button:hover{transform:translateY(-1px);background:#f1faf3}
.pos-preview-branch-hint{flex:0 0 auto;margin:8px clamp(14px,2.1vw,30px) 0;padding:10px 13px;border:1px solid #f0d9a8;border-radius:10px;background:#fff8e9;color:#74511e;font-size:12px;font-weight:700;line-height:1.45}
.pos-preview-branch-hint[hidden]{display:none!important}
.pos-print-preview-dialog{width:min(1000px,calc(100vw - 32px));max-width:none;height:min(900px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:hidden;border:1px solid #dce6de;border-radius:22px;background:#f4f7f4;color:#20352b;box-shadow:0 24px 80px #07190f58}
.pos-print-preview-dialog::backdrop{background:#10271db8;backdrop-filter:blur(4px)}
.pos-print-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid #e2e9e3;background:#fff}
.pos-print-preview-heading h2{margin:0;color:#183b2e;font-size:20px;letter-spacing:-.04em}
.pos-print-preview-heading p{margin:5px 0 0;color:#738178;font-size:11px}
.pos-print-preview-close{min-height:44px;padding:0 15px;border:1px solid #dce6de;border-radius:11px;background:#fff;color:#315843;font-size:11px;font-weight:800;cursor:pointer;touch-action:manipulation}
.pos-print-preview-frame{display:block;width:100%;height:calc(100% - 90px);border:0;background:#edf1ee}
@media(max-width:920px){.pos-header-actions .pos-print-preview-button{min-height:43px;flex:1;padding:0 9px;font-size:10px}}
@media(max-width:600px){.pos-print-preview-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.pos-print-preview-heading{align-items:flex-start;padding:14px;gap:8px}.pos-print-preview-heading h2{font-size:17px}.pos-print-preview-heading p{max-width:210px;font-size:10px}.pos-print-preview-close{min-height:42px;padding:0 10px;font-size:10px}.pos-print-preview-frame{height:calc(100% - 84px)}}
