:root{--primary:#89D7B7;--primary-hover:#74caa6;--primary-strong:#2f9c7a;--primary-dark:#1b7559;--on-primary:#0b3b2c;--ink:#25283c;--muted:#8b8e9f;--line:#edf3f0;--bg:#f6faf8;--green:#299c83;--purple-bg:#e8f7f0}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Nunito,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--primary-dark);text-decoration:none}a:hover{color:var(--primary-dark);text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #a6eace;outline-offset:3px}h1,h2,h3,h4,p{margin-top:0}h1{font-size:27px;font-weight:800;letter-spacing:-.7px;margin-bottom:8px}h2{font-size:18px;font-weight:800;margin-bottom:4px}h3{font-size:15px;font-weight:800;margin-bottom:6px}p{line-height:1.65}.muted{color:var(--muted)}.purple{color:var(--primary-dark)}.app-shell{display:flex;min-height:100vh}.sidebar{width:244px;position:fixed;top:0;bottom:0;background:#fff;border-right:1px solid var(--line);padding:32px 20px 16px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:10px;color:#243b31;font-weight:900;font-size:29px;letter-spacing:-1px;line-height:1.1;padding:0 10px}.brand-mark{background:var(--primary);color:var(--on-primary);width:43px;height:45px;border-radius:13px 13px 13px 3px;text-align:center;line-height:45px;font-size:33px;font-weight:900;letter-spacing:-5px;padding-right:6px}.brand-mark>span{color:#b0ecd3}.brand-sub{display:block;font-size:10px;letter-spacing:1.5px;font-weight:800;margin-top:7px}.workspace-badge{margin:35px 0 30px;display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:12px 10px}.workspace-icon{font-size:15px;color:var(--primary-dark);background:var(--purple-bg);border-radius:8px;width:31px;height:33px;display:grid;place-items:center;font-weight:800}.workspace-badge strong{font-size:14px}.workspace-badge small{display:block;color:var(--muted);font-size:13px;margin-top:2px}.status-dot{width:6px;height:6px;background:#33ad8a;border-radius:50%;display:inline-block;flex-shrink:0}.workspace-badge .status-dot{margin-left:auto}.nav-label{font-size:12px;font-weight:800;color:#a4a6b6;letter-spacing:1.8px;padding-left:15px;margin-bottom:13px}.nav-link{display:flex;align-items:center;gap:13px;color:#777c92;border-radius:8px;padding:13px 14px;font-size:15px;font-weight:700;margin-bottom:5px}.nav-link svg{width:18px;height:18px}.nav-link.active{background:var(--purple-bg);color:var(--primary-dark)}.nav-link.active:after{content:'';margin-left:auto;width:5px;height:5px;border-radius:50%;background:var(--primary)}.nav-link:hover{background:#f6fdfa;color:var(--primary-dark)}.nav-divider{height:1px;background:var(--line);margin:19px 12px}.sidebar-bottom{margin-top:auto;padding-top:35px}.help-card{background:linear-gradient(130deg,#f9fefc,#edfaf5);padding:18px 15px;border-radius:11px}.help-card strong{display:block;font-size:14px;margin-top:10px}.help-card p{font-size:13px;color:var(--muted);margin:7px 0 14px;max-width:140px}.help-card a{font-size:13px;font-weight:800}.help-icon{color:var(--primary-dark);font-size:22px}.template-credit{font-size:12px;text-align:center;color:#a6a7b5;margin-top:20px}.main-shell{margin-left:244px;flex:1;min-width:0}.topbar{height:83px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);padding:0 35px;gap:15px}.breadcrumb{display:flex;gap:14px;align-items:center;font-size:14px;color:var(--muted)}.breadcrumb strong{color:#575b70;font-weight:700}.slash{color:#c7c8d3}.top-actions{display:flex;align-items:center;gap:13px}.connection{font-size:13px;color:#848b96;display:flex;align-items:center;gap:7px}.top-separator{height:25px;width:1px;background:var(--line);margin:0 7px}.user-avatar{width:33px;height:33px;background:#ecfaf4;color:var(--primary-dark);border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:15px}.user-info strong{font-size:13px;display:block}.user-info small{color:var(--muted);font-size:12px}.icon-btn{border:0;background:transparent;color:#7b7d91;padding:5px;font-size:20px;display:inline-grid;place-items:center}.icon-btn svg{width:19px;height:19px}.mobile-toggle{display:none}#main{padding:31px 35px;min-height:calc(100vh - 130px);outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading p{font-size:15px;color:var(--muted);margin:0}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.6px;display:block;margin-bottom:12px}.heading-actions{display:flex;align-items:center;gap:10px}.btn-primary,.btn-secondary,.btn-danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:7px;padding:11px 16px;min-height:39px;font-size:14px;font-weight:800;line-height:1.4;white-space:nowrap;box-shadow:none}.btn-primary{background:var(--primary);color:var(--on-primary)}.btn-primary:hover{background:var(--primary-hover);color:var(--on-primary)}.btn-secondary{background:#fff;border:1px solid #e4eeea;color:#60647b}.btn-secondary:hover{background:#f5fdfa}.btn-danger{background:#fff0ef;color:#c75e54}.btn-primary svg,.btn-secondary svg{width:16px;height:16px}.btn-small{padding:7px 11px;min-height:30px;font-size:13px}.full{width:100%}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.scope-select{position:relative;display:flex;align-items:center;gap:8px}.scope-select svg{width:17px;height:17px;color:#84879e}.scope-select select{background:#fff;border:1px solid #e7f1ed;border-radius:7px;color:#5c6074;padding:9px 30px 9px 12px;font-size:14px;max-width:280px}.date-chip{font-size:13px;color:#81859a;display:flex;align-items:center;gap:7px}.date-chip svg{width:15px;height:15px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:27px}.metric{background:#fff;padding:21px 22px;border:1px solid var(--line);border-radius:11px;min-width:0}.metric-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.metric-label{font-size:13px;color:#7e8297;font-weight:700}.metric-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#ecfaf4;color:var(--primary-dark)}.metric-icon svg{width:17px;height:17px}.metric-value{font-size:24px;letter-spacing:-.8px;font-weight:900;line-height:1.2}.metric-caption{font-size:12px;color:#a1a4b3;margin-top:10px;display:block}.metric:nth-child(2) .metric-icon{color:#309e8b;background:#e9f7f2}.metric:nth-child(3) .metric-icon{color:#cc9742;background:#fff5e4}.metric:nth-child(4) .metric-icon{color:#518bce;background:#edf4fd}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.section-header h2{font-size:14px}.section-header small{font-size:13px;color:var(--muted)}.section-header a{font-size:13px;font-weight:800}.unit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:27px}.unit-card{border:1px solid var(--line);background:#fff;border-radius:11px;padding:19px;position:relative;overflow:hidden}.unit-card:before{content:'';height:3px;background:var(--unit-color);position:absolute;top:0;left:0;right:0;opacity:.7}.unit-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.unit-symbol{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:color-mix(in srgb,var(--unit-color) 9%,white);color:var(--unit-color)}.unit-symbol svg{width:21px;height:21px}.unit-card h3{font-size:15px;min-height:16px}.unit-card p{font-size:12px;color:var(--muted);margin-bottom:17px}.unit-total{font-size:18px;font-weight:900;letter-spacing:-.5px}.unit-card-footer{border-top:1px solid var(--line);margin-top:13px;padding-top:11px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.unit-card-footer a{font-weight:800;color:var(--unit-color)}.tag{font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;line-height:1.3;background:#eff9f5;color:#76a994;white-space:nowrap}.tag.green,.tag.completed{background:#eaf7f1;color:#2b9b7c}.tag.waiting{background:#fff5df;color:#b98831}.tag.working{background:#ecfbf5;color:#60c59b}.tag.ready{background:#eaf3fd;color:#5288c4}.tag.voided{background:#fceeed;color:#cb6b61}.dashboard-columns{display:grid;grid-template-columns:1.8fr 1fr;gap:20px;margin-bottom:24px}.panel{background:#fff;border:1px solid var(--line);border-radius:11px;padding:23px;min-width:0}.panel .section-header{margin-bottom:18px}.chart-top{display:flex;align-items:center;justify-content:space-between}.chart-top strong{font-size:25px;font-weight:900;letter-spacing:-.7px}.chart-legend{font-size:12px;color:#9397aa;display:flex;align-items:center;gap:6px}.legend-dot{background:var(--primary);width:6px;height:6px;border-radius:50%}.bar-chart{height:148px;margin-top:17px;display:flex;align-items:flex-end;gap:12px;padding:12px 10px 0;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#f2f7f5 39px,#f2f7f5 40px);border-bottom:1px solid #ebf4f0}.chart-col{flex:1;height:100%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;position:relative}.bar{min-height:3px;width:min(30px,80%);background:#a8ebcf;border-radius:5px 5px 0 0}.chart-col:last-child .bar{background:var(--primary)}.chart-labels{display:flex;justify-content:space-around;font-size:12px;color:#a4a6b6;margin-top:10px}.empty-chart{font-size:13px;color:#a6a4b4}.payment-row{display:flex;align-items:center;gap:11px;margin:19px 0}.payment-row .payment-symbol{width:31px;height:31px;border:1px solid var(--line);display:grid;place-items:center;border-radius:8px;color:#91b3a5}.payment-row svg{width:16px;height:16px}.payment-row strong{font-size:14px}.payment-row small{font-size:12px;color:var(--muted);display:block}.payment-row b{font-size:15px;margin-left:auto}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.6px;font-weight:800;color:#9b9eaf;padding:12px 12px;background:#fafdfc;border-bottom:1px solid var(--line)}td{padding:15px 12px;font-size:14px;border-bottom:1px solid #f1f6f4}tbody tr:last-child td{border-bottom:0}td small{font-size:12px;color:var(--muted);display:block;margin-top:3px}.text-right{text-align:right}.text-link{border:0;padding:0;background:none;color:var(--primary-dark);font-size:14px;font-weight:800}.empty-state{text-align:center;padding:38px 18px;color:var(--muted)}.empty-state .empty-icon{width:44px;height:44px;border-radius:13px;background:#f0fbf6;color:#9fcbb9;display:grid;place-items:center;margin:0 auto 13px}.empty-state svg{width:22px;height:22px}.empty-state h3{font-size:15px;color:#666b81}.empty-state p{font-size:13px;margin-bottom:15px;white-space:normal}.stock-alert{display:flex;align-items:center;gap:10px;background:#fffbef;border:1px solid #f5ecd3;border-radius:8px;padding:13px 17px;margin-top:20px;color:#a58548;font-size:14px}.stock-alert svg{width:18px;height:18px}.stock-alert a{margin-left:auto;font-size:13px;color:#9a7b3e;font-weight:800}.app-footer{padding:0 35px 20px;display:flex;justify-content:space-between;font-size:12px;color:#a8aab7}.loading-state{display:grid;place-items:center;min-height:300px;color:var(--muted);font-size:15px}.search-box{position:relative;flex:1;max-width:380px}.search-box svg{position:absolute;left:12px;top:11px;width:17px;height:17px;color:#a1a3b2}.search-box input{padding-left:37px}input,select,textarea{width:100%;border:1px solid #e2ede8;background:#fff;color:#444960;border-radius:7px;padding:10px 12px;outline:none;line-height:1.5;font-size:15px}input:focus,select:focus,textarea:focus{border-color:#90dcbc;box-shadow:0 0 0 3px #ecfbf5}input::placeholder,textarea::placeholder{color:#aaaebb}label{display:block;font-size:14px;color:#73788c;font-weight:700;margin-bottom:15px}label input,label select,label textarea{margin-top:6px;font-weight:400}label small{display:block;margin-top:5px;color:#a0a3b1;font-size:13px}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:start}.pos-catalog{min-width:0}.category-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:5px;margin:18px 0}.category-tab{white-space:nowrap;border:1px solid #e7f1ed;padding:8px 13px;border-radius:6px;font-size:13px;font-weight:800;background:#fff;color:#9195a8}.category-tab.active{color:var(--primary-dark);background:var(--purple-bg);border-color:#dbf7eb}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.product-card{border:1px solid #e8f2ee;background:#fff;border-radius:10px;text-align:left;padding:16px;min-height:178px;transition:transform .15s,border-color .15s;position:relative}.product-card:hover{border-color:#a5eacd;transform:translateY(-2px)}.product-visual{width:40px;height:40px;border-radius:12px;background:#f0fbf6;color:#8dd4b6;display:grid;place-items:center;margin-bottom:16px}.product-visual svg{width:22px;height:22px}.product-card h3{font-size:14px;line-height:1.5}.product-card small{font-size:12px;display:block;color:var(--muted);margin-bottom:14px}.product-card b{font-size:13px;color:var(--primary-dark)}.product-plus{position:absolute;bottom:15px;right:14px;background:#ecfaf4;color:var(--primary-dark);width:23px;height:23px;border-radius:7px;display:grid;place-items:center;font-size:17px}.cart-panel{position:sticky;top:18px;padding:21px}.cart-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.cart-title h2{font-size:14px}.cart-title small{font-size:12px;color:var(--muted)}.cart-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.cart-fields label{font-size:12px;margin-bottom:11px}.cart-fields input{padding:8px 9px;font-size:13px}.cart-items{border-top:1px dashed #e2efea;border-bottom:1px dashed #e2efea;padding:7px 0;max-height:240px;overflow:auto;margin-bottom:16px}.cart-item{display:flex;gap:10px;align-items:center;padding:12px 0}.cart-item-name{flex:1;min-width:0}.cart-item-name strong{display:block;font-size:13px}.cart-item-name small{color:var(--muted);font-size:12px}.quantity{display:flex;align-items:center;gap:6px;font-size:13px}.quantity button{border:1px solid #ebf6f1;background:#fff;border-radius:5px;width:23px;height:23px;color:var(--primary-dark)}.cart-empty{text-align:center;font-size:14px;color:#a3a5b5;padding:35px 10px}.summary-line{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#8c90a3;margin:13px 0}.summary-line strong{color:#53586f}.summary-line input{width:110px;text-align:right;padding:5px 7px;font-size:14px}.summary-total{font-size:15px;padding-top:14px;border-top:1px solid var(--line);color:#42475d;font-weight:800;margin-bottom:20px}.summary-total strong{color:var(--primary-dark);font-size:19px}.payment-methods{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:13px}.payment-methods button{font-size:12px;padding:9px 3px;background:#fff;border:1px solid #e6f0ec;border-radius:6px;color:#9495a8}.payment-methods button.active{border-color:#8adab9;background:#f0fcf7;color:var(--primary-dark)}.payment-note{font-size:12px;color:#a2a5b3;text-align:center;margin:11px 0 0}.queue-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.queue-column{background:#f0f1f7;border-radius:10px;padding:15px;min-width:0}.queue-heading{display:flex;align-items:center;justify-content:space-between;padding:4px 0 15px;font-size:15px;font-weight:800}.queue-card{background:#fff;border:1px solid #e6f0ec;border-radius:9px;padding:12px;margin-bottom:8px}.queue-card h3{font-size:16px;letter-spacing:.3px;margin:8px 0 3px}.queue-card p{font-size:12px;color:var(--muted);margin:3px 0}.queue-card .btn-secondary{margin-top:12px}.queue-total{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;padding-top:6px;border-top:1px solid var(--line);margin-top:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.span-2{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;border-top:1px solid var(--line);margin-top:8px}.date-filters{display:flex;align-items:center;gap:8px}.date-filters input{font-size:14px;padding:8px;width:145px}.date-filters span{font-size:14px;color:var(--muted)}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px;font-size:13px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:14px;padding:0;width:min(640px,calc(100vw - 30px));max-height:90vh;overflow:auto;box-shadow:0 25px 100px #203d3133;background:#fff;color:var(--ink)}dialog::backdrop{background:#253b3266;backdrop-filter:blur(3px)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:22px 25px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:17px}.modal-body{padding:24px 25px}.modal-body p{font-size:15px}.error-banner{background:#fff0ee;border:1px solid #f4d3cf;border-radius:7px;color:#ba675d;font-size:14px;padding:12px;margin-bottom:16px}.toast-message{position:fixed;bottom:25px;left:50%;transform:translate(-50%,30px);opacity:0;pointer-events:none;background:#303246;color:#fff;border-radius:9px;box-shadow:0 7px 25px #25283c22;font-size:15px;max-width:90vw;padding:13px 22px;z-index:100;transition:.2s}.toast-message.visible{opacity:1;transform:translate(-50%,0)}.receipt-head{text-align:center;margin-bottom:22px}.receipt-head h2{font-size:19px}.receipt-head p{font-size:14px;color:var(--muted);margin-bottom:4px}.receipt-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:14px;margin-bottom:20px}.receipt-meta small{display:block;color:var(--muted);margin-bottom:4px}.receipt-note{padding:12px;background:#f9fdfb;border-radius:6px;font-size:14px;margin-top:15px}.notice{padding:14px 16px;background:#eefbf6;border:1px solid #e2f8ef;color:#77b69c;font-size:14px;border-radius:8px;margin-bottom:20px}.login-body{background:#fff}.login-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:radial-gradient(ellipse at 90% 90%,#62cb9f55,transparent 65%),#233930;padding:55px 65px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;min-height:100vh}.brand.light{color:#fff;padding:0;width:fit-content}.login-story h1{font-size:48px;line-height:1.2;letter-spacing:-1.8px;margin:25px 0}.login-story p{color:#adc8bd;font-size:14px;max-width:390px}.login-story .eyebrow{color:#a0d4be}.login-story small{font-size:13px;color:#8a809b}.login-units{display:flex;flex-wrap:wrap;gap:8px;max-width:380px;margin-top:30px}.login-units span{background:#ffffff0b;color:#bbd9cc;border:1px solid #ffffff16;font-size:13px;padding:9px 12px;border-radius:6px}.login-form{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;padding:40px}.login-form-inner{width:100%;max-width:350px}.login-form h2{font-size:26px;letter-spacing:-.6px;margin-bottom:10px}.login-form p{font-size:15px}.login-form form{margin-top:32px}.login-form label{font-size:15px;margin-bottom:20px}.login-form input{font-size:15px;padding:13px 14px}.login-form .btn-primary{padding:14px;font-size:15px}.login-form .btn-primary span{margin-left:auto}.login-form .login-app-download{justify-content:center;gap:10px;min-height:46px}.login-app-download svg{width:22px;height:22px;flex:none}.login-form .login-support{font-size:12px;line-height:1.7;text-align:center;color:#626779;margin:20px 0 0}.login-support strong{font-weight:700}.login-support a{white-space:nowrap}.login-form>small{position:absolute;bottom:35px;color:#b0aebb;font-size:12px}.settings-unit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.settings-unit-grid .unit-card h3{font-size:15px}.settings-unit-grid .unit-card p{font-size:14px}.settings-unit-grid .unit-card{padding:25px}.report-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.checkbox-label{display:flex;align-items:center;gap:9px;font-size:15px}.checkbox-label input{width:16px;height:16px;margin:0;accent-color:var(--primary-strong)}
@media(min-width:1600px){#main{max-width:1550px;margin:auto}.product-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1200px){.sidebar{width:214px;padding-left:15px;padding-right:15px}.main-shell{margin-left:214px}#main{padding:25px}.topbar{padding:0 25px}.metrics{gap:12px}.metric{padding:18px}.metric-value{font-size:21px}.unit-grid{gap:12px}.unit-card{padding:15px}.product-grid{grid-template-columns:repeat(2,1fr)}.pos-layout{grid-template-columns:minmax(0,1fr) 325px}.settings-unit-grid{grid-template-columns:repeat(2,1fr)}.login-story{padding:40px}.login-story h1{font-size:40px}}
@media(max-width:960px){.sidebar{width:190px}.main-shell{margin-left:190px}.brand{font-size:25px;padding-left:0}.brand-sub{font-size:9px}.brand-mark{width:38px;height:40px;line-height:40px}.workspace-badge{padding:10px 7px}.workspace-badge strong{font-size:13px}.workspace-badge small{font-size:12px}.metrics,.unit-grid{grid-template-columns:repeat(2,1fr)}.dashboard-columns,.report-grid{grid-template-columns:1fr}.pos-layout{grid-template-columns:1fr}.cart-panel{position:static}.product-grid{grid-template-columns:repeat(3,1fr)}.queue-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start}.connection{display:none}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.date-filters input{width:125px}.topbar{height:70px}.login-story{padding:30px}.login-story h1{font-size:34px}}
@media(max-width:680px){.sidebar{transform:translateX(-100%);width:235px;box-shadow:20px 0 80px #253b3225;transition:transform .2s}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.mobile-toggle{display:inline-grid}.topbar{height:65px;padding:0 18px}.breadcrumb{gap:8px;font-size:13px}.user-info,.top-separator{display:none}.top-actions{gap:7px}#main{padding:24px 18px}.page-heading{gap:14px;margin-bottom:22px}.page-heading h1{font-size:23px}.page-heading p{font-size:13px;max-width:220px}.heading-actions .btn-primary{font-size:13px;padding:10px}.metrics,.unit-grid{gap:10px;margin-bottom:20px}.metric{padding:15px}.metric-label{font-size:12px}.metric-value{font-size:21px}.metric-icon{width:27px;height:27px}.metric-caption{font-size:12px}.metric-top{margin-bottom:12px}.unit-card h3{font-size:14px;min-height:28px}.date-chip{font-size:12px}.scope-select select{max-width:185px;font-size:13px}.panel{padding:18px}.section-header h2{font-size:13px}.toolbar{flex-wrap:wrap}.product-grid{grid-template-columns:repeat(2,1fr)}.product-card{min-height:170px}.app-footer{padding:0 18px 18px;font-size:12px;gap:20px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.settings-unit-grid{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr}.login-story{min-height:230px;padding:30px}.login-story h1{font-size:27px;line-height:1.1;margin:25px 0 0}.login-story>div>.eyebrow,.login-story p,.login-story small,.login-units{display:none}.login-form{padding:40px 30px 75px;min-height:530px}.login-form h2{font-size:23px}.modal-body{padding:20px}.modal-header{padding:18px 20px}.heading-actions .date-filters{display:none}.report-dates{flex-wrap:wrap}.stock-alert{align-items:flex-start;font-size:13px}.stock-alert a{white-space:nowrap}.user-avatar{width:30px;height:30px}.receipt-meta{font-size:13px}}
@media print{body{background:#fff}.app-shell,.toast-message,dialog::backdrop,.modal-header,.no-print{display:none!important}dialog{display:block;position:static;border:0;box-shadow:none;max-height:none;width:80mm;margin:0 auto;padding:0;overflow:visible}.modal-body{padding:2mm}.receipt-head h2{font-size:15px}td,th{font-size:9px;padding:6px 2px}.receipt-meta{font-size:9px}.receipt-note{background:none}.summary-line{font-size:10px}.summary-total strong{font-size:14px}@page{margin:5mm 5mm 2mm}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.eyebrow.purple{background:transparent!important;color:var(--primary-dark)!important;box-shadow:none!important;border:0!important;width:auto!important;padding:0!important}

.section-header a{display:inline-flex;align-items:center;gap:5px}.section-header a svg{width:15px;height:15px;flex:none}
.notification-panel{position:relative;color:var(--ink)}.notification-panel summary{list-style:none;position:relative;cursor:pointer}.notification-panel summary::-webkit-details-marker{display:none}.notification-panel summary svg{width:22px;height:22px}.notification-count{position:absolute;right:-3px;top:-4px;min-width:18px;padding:2px 4px;background:#ba3e35;color:#fff;font-size:10px;border-radius:10px;text-align:center}.notification-panel section{position:absolute;right:0;top:45px;width:420px;max-width:calc(100vw - 36px);background:#fff;border:1px solid #e2eee9;border-radius:10px;box-shadow:0 12px 36px #25283c22;padding:14px;z-index:50}.notification-heading,.notification-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}.notification-heading h2{font-size:16px;margin:0}.notification-status{font-size:12px;color:#625d73;margin:3px 0 10px}.notification-tools{margin:0 0 10px}.notification-tools .btn-small,.notification-tools .text-link{font-size:11px}.notification-tools .text-link{display:inline-flex;align-items:center;gap:4px}.notification-tools .text-link svg{width:14px;height:14px}.notification-list{max-height:min(420px,calc(100vh - 260px));overflow:auto}.notification-item{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;gap:8px;padding:9px 7px;border-bottom:1px solid #eaf4f0;align-items:start}.notification-item:last-child{border-bottom:0}.notification-item.unread{background:#f6fdfa}.notification-symbol{display:grid;place-items:center;width:28px;height:28px;background:#edfbf5;border-radius:7px;color:#55d7a1}.notification-symbol svg{width:16px;height:16px}.notification-item.low_stock .notification-symbol{background:#fff5df;color:#a16a14}.notification-item.ai_summary .notification-symbol{background:#eaf3fd;color:#467ab4}.notification-copy{min-width:0}.notification-item-heading{display:flex;gap:6px;align-items:center;min-width:0}.notification-kind{font-size:10px;font-weight:700;color:#625d73}.notification-unread-dot{width:5px;height:5px;border-radius:50%;background:#55d7a1;flex-shrink:0}.notification-item .notification-message{font-size:12px;line-height:1.4;font-weight:700;color:var(--ink);margin:3px 0 4px;overflow-wrap:anywhere}.notification-panel .notification-message{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.notification-meta{display:flex;align-items:baseline;justify-content:space-between;gap:8px;color:#625d73;font-size:10px;line-height:1.4}.notification-meta>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.notification-meta time{flex-shrink:0;white-space:nowrap}.notification-read-button.row-icon-btn{width:28px;height:28px;min-width:28px;border-color:transparent;background:transparent}.notification-read-button.row-icon-btn:hover{background:#eafaf3}.notification-read-button svg,.notification-read-status svg{width:15px;height:15px}.notification-read-status{display:grid;place-items:center;width:28px;height:28px;color:#299c83}.notification-empty{font-size:12px;color:#625d73;margin:12px 0}.notification-view-all{display:flex;margin-top:10px;width:100%;min-height:35px;font-size:12px;padding:8px 12px}.notification-view-all svg{width:15px;height:15px}.notification-panel summary:focus-visible{outline:2px solid #55d7a1;outline-offset:3px}
.notifications-toolbar .search-box{flex:1;max-width:none;min-width:220px}.notifications-toolbar #notifications-read-page{flex-shrink:0}.notifications-table td{padding:12px}.notifications-table .notification-info{white-space:normal;min-width:220px;max-width:80ch;overflow-wrap:anywhere}.notifications-table .notification-read-status{margin-left:auto}.notifications-table .notification-read-button{background:#fff;border:1px solid #e4eeea}.notifications-table .notification-read-button:hover{background:#edfbf5}@media(max-width:680px){.notifications-toolbar{flex-wrap:wrap}.notifications-toolbar .search-box{order:3;flex-basis:100%;min-width:0}}


@media(max-width:680px){.notification-panel section{position:fixed;top:63px;right:18px}.notification-tools{flex-wrap:wrap}}
.brand-sub{font-size:9px;letter-spacing:.7px;white-space:nowrap}
@media(max-width:680px){.topbar .breadcrumb{flex-wrap:nowrap;white-space:nowrap;width:auto;min-width:0;align-items:center}.topbar .mobile-toggle{flex:none}}
@media(max-width:680px){.topbar .breadcrumb{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start;margin:0;padding:0;gap:8px}}
/* Keep leading and trailing icons inside the same control. */
select{appearance:none;-webkit-appearance:none;background-image:var(--select-chevron);background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;padding-right:38px}
.scope-select{display:inline-flex;align-items:center;position:relative;gap:0}
.scope-select>svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;z-index:1;pointer-events:none}
.scope-select select{padding:9px 38px 9px 12px;min-height:42px;max-width:280px}
.scope-select>svg+select{padding-left:40px}
.search-box svg{top:50%;transform:translateY(-50%)}
@media(max-width:680px){.scope-select select{max-width:185px}}
:root{--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b8e9f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.email-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.email-tabs button{min-height:42px}.email-connection-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:22px;align-items:start}.email-fieldset{border:0;padding:0;margin:0;min-width:0}.email-test-panel h2{font-size:18px;margin-bottom:12px}.email-test-panel>p{font-size:14px;line-height:1.7;max-width:48ch}.email-test-panel form{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.email-test-panel form>button{margin-top:18px;width:100%;justify-content:center}.email-test-panel>.form-hint{margin-top:18px}.email-compose{max-width:950px}.email-compose [data-mail-variables]{margin-top:18px}.email-preview{display:block;width:100%;height:400px;border:1px solid var(--line);border-radius:6px;margin:16px 0;background:#f5f6fa}.email-editor-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:24px}.email-editor-layout textarea{margin-top:6px;width:100%;line-height:1.65}.email-variable-panel{border-left:1px solid var(--line);padding-left:22px}.email-variable-panel h3{font-size:16px;margin-bottom:10px}.email-variable-panel p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:14px}.email-variable-panel button{display:block;text-align:left;width:100%;font-size:12px;padding:9px 10px;margin-bottom:7px}.email-variable-panel code{display:block;color:var(--primary-dark);font-size:11px;overflow-wrap:anywhere;margin-top:3px}.email-envelope{margin:0 0 18px}.email-envelope>div{display:grid;grid-template-columns:75px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}.email-envelope dt{color:var(--muted)}.email-envelope dd{margin:0;font-weight:600;overflow-wrap:anywhere}.email-empty{padding:42px 12px;text-align:center;color:var(--muted)}.email-empty h3{font-size:17px;color:var(--text);margin-bottom:8px}dialog:has(#mail-template-form){width:min(950px,calc(100vw - 40px))}[data-mail-content] td small{max-width:380px;white-space:normal}[data-mail-content] .table-actions .row-icon-btn{padding:0}
@media(max-width:1050px){.email-connection-layout{grid-template-columns:1fr}.email-test-panel{max-width:none}.email-test-panel form{max-width:480px}}
@media(max-width:680px){.email-editor-layout{grid-template-columns:1fr}.email-variable-panel{border-left:0;border-top:1px solid var(--line);padding:18px 0 0}.email-variable-panel button{display:inline-block;width:auto;margin-right:6px}.email-preview{height:350px}.email-tabs button{flex:1;padding:9px 12px}.email-envelope>div{grid-template-columns:55px minmax(0,1fr)}dialog:has(#mail-template-form){width:calc(100vw - 20px)}}
.scope-select select{background-image:var(--select-chevron);background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px}
@media(max-width:680px){.panel>.toolbar .search-box{flex:1 0 100%;max-width:none}.panel>.toolbar .scope-select{flex:1 0 100%;min-width:0}.panel>.toolbar .scope-select select{width:100%;max-width:none;text-overflow:ellipsis}}
.cash-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.cash-presets button{min-height:38px;padding:8px 10px;border:1px solid #d9efe6;border-radius:8px;background:#f6fdfa;color:var(--primary-dark);font-size:14px;font-weight:800;text-align:center}
.cash-presets button:hover,.cash-presets button:focus-visible{background:var(--purple-bg);border-color:var(--primary-strong)}
.cash-change-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 16px;padding:12px 14px;border-radius:8px;background:#edf8f4;color:#246e5c;font-size:14px;font-weight:700}
.cash-change-line strong{font-size:16px;font-weight:900}
#settlement-cash-tools[hidden]{display:none}
.orders-toolbar{flex-wrap:wrap;justify-content:flex-start}
.orders-toolbar .search-box{flex:1 1 250px;max-width:none}
.orders-toolbar .scope-select{flex:0 1 175px;min-width:145px}
.orders-toolbar .scope-select select{width:100%;max-width:none;min-height:42px;text-overflow:ellipsis}
.orders-toolbar .range-filter{flex:0 1 245px}
.dashboard-dates .range-filter{flex:0 1 280px}
.product-unit-name{color:var(--primary-dark);font-weight:800}
.range-filter{position:relative;display:flex;align-items:center;min-width:215px;max-width:280px}
.range-filter>svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#84879e;pointer-events:none}
.range-filter input{min-height:42px;padding:9px 35px 9px 40px;font-size:14px;font-weight:700;cursor:pointer;text-overflow:ellipsis}
.range-filter .range-chevron{position:absolute;right:14px;top:50%;width:8px;height:8px;border-right:2px solid #8b8e9f;border-bottom:2px solid #8b8e9f;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.range-filter.has-clear input{padding-right:62px}
.range-filter.has-clear .range-chevron{right:40px}
.range-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;background:transparent;color:#85879a;font-size:21px;line-height:1}
.range-clear:hover{color:var(--primary-dark)}
.daterangepicker{font-family:Nunito,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;border-color:#e4eeea;border-radius:10px;box-shadow:0 12px 36px #25283c20;max-width:calc(100vw - 20px)}
.daterangepicker .calendar-table th,.daterangepicker .calendar-table td{padding:0;font-size:13px;height:31px;line-height:29px}
.daterangepicker td.in-range{background:#edfbf5;color:var(--ink)}
.daterangepicker td.active,.daterangepicker td.active:hover,.daterangepicker .ranges li.active{background:var(--primary);color:var(--on-primary)}
.daterangepicker .ranges li{font-size:13px;padding:10px 12px}
.daterangepicker select.monthselect,.daterangepicker select.yearselect{appearance:auto;background-image:none;border:1px solid #e2ede8;border-radius:5px;padding:3px;width:auto;font-size:13px}
@media(max-width:680px){.orders-toolbar .search-box,.orders-toolbar .scope-select,.orders-toolbar .range-filter,.stock-card-toolbar .range-filter,.opname-toolbar .range-filter,.material-toolbar .range-filter,.report-dates .range-filter,.dashboard-dates .range-filter{flex:1 0 100%;width:100%;max-width:none}.report-dates .scope-select,.dashboard-dates .scope-select{flex:1 0 100%;width:100%}.report-dates .scope-select select,.dashboard-dates .scope-select select{width:100%;max-width:none}}
.btn-primary,.btn-secondary,.btn-danger{align-items:center;justify-content:center}
.btn-primary svg,.btn-secondary svg,.btn-danger svg,.icon-btn svg{display:block;flex:none;align-self:center;vertical-align:middle}
.btn-primary svg,.btn-secondary svg,.btn-danger svg{width:18px;height:18px}
.quantity button{display:grid;place-items:center;padding:0;line-height:1}
.quantity button svg{display:block;width:13px;height:13px}
.product-filters{justify-content:flex-start;flex-wrap:wrap}
.list-search-toolbar{justify-content:flex-start;flex-wrap:wrap}
.list-search-toolbar .search-box{flex:1 1 280px;max-width:620px}
.list-search-toolbar .search-box input{min-height:42px;height:42px}
#main .table-wrap tr[hidden],#main .unit-card[hidden]{display:none!important}
.product-filters .scope-select select{max-width:310px}
.table-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}
.row-icon-btn{display:inline-grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:1px solid #e4eeea;border-radius:8px;background:#fff;color:var(--primary-dark);line-height:1;vertical-align:middle}
.row-icon-btn svg{display:block;width:18px;height:18px}
.row-icon-btn:hover:not(:disabled){background:var(--purple-bg);border-color:#cff4e5}
.row-icon-btn.danger{color:#c75e54}
.row-icon-btn.danger:hover:not(:disabled){background:#fff0ef;border-color:#f1d1cd}
.row-icon-btn:disabled{color:#a9aab5;opacity:1;background:#f7faf9}
.form-hint{display:block;margin-top:5px;color:var(--muted);font-size:12px;font-weight:600}
@media(max-width:680px){.product-filters .scope-select{flex:1 0 100%;width:100%}.product-filters .scope-select select{width:100%;max-width:none}}
.product-plus{font-size:0}
.product-plus svg{display:block;width:15px;height:15px}
.ticket-lookup{position:relative;background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin-bottom:16px}
.ticket-lookup label{font-size:13px;margin:0 0 7px;color:var(--ink)}
.ticket-input-row{display:flex;gap:8px}.ticket-input-row input{flex:1;min-width:0;margin:0;text-transform:uppercase;letter-spacing:.6px;font-weight:700}
.ticket-input-row button{white-space:nowrap}.ticket-suggestions{position:absolute;z-index:12;left:16px;right:16px;top:calc(100% - 2px);background:#fff;border-radius:0 0 9px 9px;box-shadow:0 12px 30px #25283c22;max-height:240px;overflow:auto}
.ticket-suggestions:empty{display:none}.ticket-suggestions button{display:flex;gap:12px;justify-content:space-between;width:100%;padding:10px 13px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left;font-size:13px}.ticket-suggestions button:hover{background:var(--purple-bg)}
.stock-product-results{position:static;margin-bottom:16px;border-radius:9px;box-shadow:none;border:1px solid var(--line)}
.ticket-cart-banner{padding:10px 12px;margin-bottom:12px;border-radius:8px;background:var(--purple-bg);display:flex;flex-direction:column;gap:3px;font-size:13px}.ticket-cart-banner small{color:var(--muted)}.ticket-cart-banner button{align-self:flex-start;padding:0;border:0;background:transparent;color:var(--primary-dark);font-weight:800;font-size:12px}

/* Role and menu management */
.access-fieldset{border:1px solid var(--line);border-radius:10px;padding:15px;min-width:0}
.access-fieldset legend{padding:0 6px;font-weight:800;font-size:14px}
.access-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.access-options .checkbox-label{font-weight:600;min-width:0}
.permission-table th:not(:first-child),.permission-table td:not(:first-child){text-align:center;width:85px}
.permission-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--primary-strong);cursor:pointer}
@media(max-width:680px){.access-options{grid-template-columns:1fr}}
.sidebar{overflow-y:auto;overscroll-behavior:contain}
.sidebar::-webkit-scrollbar{width:6px}
.sidebar::-webkit-scrollbar-thumb{background:#dbe9e3;border-radius:10px}
.pos-layout.catalog-only{grid-template-columns:minmax(0,1fr)}
.product-visual{overflow:hidden}.product-visual img{width:100%;height:100%;object-fit:cover}.product-list-name{display:flex;align-items:center;gap:10px}.product-list-name img{width:38px;height:38px;object-fit:cover;border-radius:5px}.product-list-name span{display:grid;gap:2px}.product-image-preview{display:block;width:120px;height:80px;object-fit:cover;border:1px solid var(--line);border-radius:6px;margin-bottom:8px}
.btn-primary.btn-express{background:#299c83;color:#fff}
.btn-primary.btn-express:hover{background:#21856f;color:#fff}
.btn-primary.btn-express:focus-visible{outline-color:#9ad7ca}
.btn-arrow-action{gap:8px;align-items:center;justify-content:center}
.btn-arrow-action svg{display:block;flex:0 0 16px;width:16px;height:16px}
.btn-arrow-action span{display:block;line-height:1.4}
.login-form .login-remember{display:flex;align-items:center;gap:9px;margin:-4px 0 18px;font-size:14px;font-weight:700;cursor:pointer}
.login-form .login-remember input{appearance:auto;flex:none;width:17px;height:17px;margin:0;padding:0;accent-color:var(--primary-strong)}
.receipt-items th:last-child,.receipt-items td:last-child{white-space:nowrap}
.receipt-item-name,.receipt-item-detail{display:block}
.receipt-item-detail{margin-top:3px;color:var(--muted);font-size:12px;font-weight:600}
.receipt-line-subtotal{vertical-align:top}
@media print{.receipt-item-detail{font-size:9px;color:#555}}
.modal-header-actions{display:flex;align-items:center;gap:8px}
.modal-print-button{width:34px;height:34px;border:1px solid var(--line);border-radius:7px;color:var(--primary-dark)}
@media screen{
 dialog:has(.transaction-detail){width:min(520px,calc(100vw - 24px))}
 dialog:has(.transaction-detail) .modal-header{padding:14px 18px;gap:12px}
 dialog:has(.transaction-detail) .modal-header h2{margin:0;font-size:16px}
 dialog:has(.transaction-detail) .modal-header-actions{min-width:0}
 dialog:has(.transaction-detail) .modal-header .status-badges{justify-content:flex-end}
 dialog:has(.transaction-detail) .modal-body{padding:14px 18px}
 .transaction-detail .receipt-paper{width:100%;max-width:none;font-family:inherit;font-size:12px;line-height:1.4}
 .transaction-detail .receipt-paper .receipt-head,.transaction-detail .receipt-paper .receipt-meta{margin-bottom:8px}
 .transaction-detail .receipt-paper td,.transaction-detail .receipt-paper th{padding:4px 0}
 .transaction-detail .receipt-paper .summary-line{margin:5px 0}
 .transaction-detail .receipt-paper .summary-total{padding-top:6px;margin-bottom:6px}
 .transaction-detail .receipt-paper .receipt-note{padding:6px 0;margin-bottom:6px}
 .transaction-detail-footer{display:grid;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
 .transaction-detail-footer .order-actions{margin:0;padding:0;border:0;gap:8px}
 .transaction-detail-footer .form-hint{margin:0;font-size:12px;line-height:1.4}
 .transaction-print{width:100%;min-height:40px;justify-content:center}
 .transaction-print span{display:flex;align-items:center}
 .transaction-print svg{width:18px;height:18px}
}
.order-actions{display:grid;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.order-action-main{display:flex;flex-wrap:wrap;gap:8px}
.order-action-main button{flex:1 1 145px;min-width:0;min-height:42px}
@media(max-width:680px){.order-action-main{display:grid;grid-template-columns:1fr}.order-action-main button{width:100%}}
.inventory-filters{justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:12px}
.inventory-filters>.scope-select,.inventory-filters>.range-filter{flex:0 0 280px;width:280px;min-width:0;max-width:none}
.inventory-filters>.scope-select select,.inventory-filters>.range-filter input{width:100%;max-width:none;min-height:42px;height:42px;font-size:14px;font-weight:700;text-overflow:ellipsis}
.inventory-filter-help{flex:1 0 100%;color:var(--muted);line-height:1.5}
.panel>.inventory-filter-help,.panel>#stock-product-status{display:block;margin:-6px 0 16px}
.stock-in{color:#238268;font-weight:800}
.stock-out{color:#b8584e;font-weight:800}
@media(max-width:680px){.inventory-filters>.scope-select,.inventory-filters>.range-filter{flex:1 0 100%;width:100%}}
.material-tabs{display:flex;gap:7px;overflow-x:auto;margin:0 0 18px;padding-bottom:4px}
.material-tab{border:1px solid #e0efe9;background:#fff;color:#73788c;border-radius:8px;padding:10px 14px;white-space:nowrap;font-size:13px;font-weight:800}
.material-tab.active{background:var(--purple-bg);border-color:#cff4e5;color:var(--primary-dark)}
.material-tab:hover{border-color:#a9e3cb}
.material-help{color:var(--muted);font-size:13px;margin:0 0 17px;line-height:1.5}
.material-report-filters{align-items:end;gap:10px;flex-wrap:wrap}
.material-report-view>.panel:first-child{margin-bottom:18px}
.material-report-view>.panel:last-child{margin-bottom:0}
.material-report-view>.material-metrics{margin:0 0 14px}
.material-report-view>.material-help{margin:0 0 14px}
.material-report-view>.report-grid{gap:16px;margin-bottom:16px}
.report-transaction-details{margin-top:28px}
.material-report-filters label{margin:0;flex:1 1 145px;min-width:145px;font-size:12px}
.material-report-filters label:nth-child(n+3){flex:1 1 190px}
.material-report-filters input,.material-report-filters select{margin-top:5px;min-height:42px}
.material-report-filters .btn-secondary{min-height:42px;white-space:nowrap}
.material-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.material-line{display:grid;grid-template-columns:minmax(0,1fr) 120px 40px;align-items:end;gap:9px;margin:0 0 10px}
.material-line label{margin:0;min-width:0;font-size:13px}
.material-line select{min-width:0}
.material-line .row-icon-btn{margin-bottom:1px}
.material-form-tools{margin:12px 0 20px}
.material-estimate{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#f5fcf9;border-radius:8px;padding:13px 15px;margin:12px 0;font-size:14px;font-weight:700}
.material-estimate strong{color:var(--primary-dark);font-size:17px}
@media(max-width:1100px){.material-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.material-metrics{grid-template-columns:1fr}.material-line{grid-template-columns:minmax(0,1fr) 85px 40px}.material-report-filters label,.material-report-filters label:nth-child(n+3){flex:1 0 100%}.material-report-filters .btn-secondary{width:100%}}
.expense-business-metrics{margin-top:18px}
.table-actions a.row-icon-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.backup-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:18px;align-items:start}
.backup-layout .form-actions{grid-column:1/-1;margin-top:0}
@media(max-width:960px){.backup-layout{grid-template-columns:1fr}}
.employee-assignment-list{display:flex;flex-wrap:wrap;gap:6px;max-width:520px}
.employee-assignment{display:inline-flex;align-items:baseline;gap:6px;margin:0;padding:4px 8px;border:1px solid #e3f0eb;border-radius:999px;background:#f9fcfb;white-space:nowrap}
.employee-assignment strong{font-size:12px}
.employee-assignment small{color:var(--muted);font-size:11px}
.employee-identity>strong,.employee-identity>small{display:block}
.employee-identity>small{margin-top:3px;color:var(--muted)}
.employee-all-units{margin:0 0 10px}
.employee-unit-list{display:grid;gap:10px}
.employee-unit-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,1fr);align-items:center;gap:12px}
.employee-unit-row .checkbox-label{margin:0}
.employee-unit-row input[name=position]{margin:0}
.employee-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.employee-detail>div{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
.employee-detail small{color:var(--muted)}
.member-point-history{margin-top:18px}
@media(max-width:680px){.employee-unit-row,.employee-detail{grid-template-columns:1fr}}
.queue-card-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:8px}
.queue-card-actions.two-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.queue-card-actions>button{width:100%;min-width:0;min-height:42px;padding:7px 8px;white-space:normal;line-height:1.25}
.queue-card-actions .btn-secondary{margin-top:0}
.queue-card-actions .btn-express{gap:4px;flex-wrap:wrap}
.queue-card-actions .btn-express svg{flex:0 0 14px;width:14px;height:14px}
.excel-preview{margin-top:18px;border-top:1px solid #e5f1ec;padding-top:16px}
.excel-preview h3{margin:0 0 6px}
.excel-preview .table-wrap{max-height:320px;overflow:auto;margin-top:12px}
.excel-errors{max-height:180px;overflow:auto;padding:12px 14px;border-radius:9px;background:#fff1f0;color:#a32b26;font-size:13px}
.excel-errors>div+div{margin-top:6px}

/* Keep workspace navigation labels on one line. */
.sidebar{width:300px}
.main-shell{margin-left:300px}
.nav-link{white-space:nowrap}
@media(max-width:1200px){.sidebar{width:270px}.main-shell{margin-left:270px}}
@media(max-width:960px){.sidebar{width:250px}.main-shell{margin-left:250px}}
@media(max-width:680px){.sidebar{width:300px}.main-shell{margin-left:0}}

/* Give the catalog form enough room for its two-column fields and image controls. */
dialog:has(#product-form){width:min(900px,calc(100vw - 30px))}
@media(max-width:680px){dialog:has(#product-form){width:calc(100vw - 20px)}}

/* Keep footer content aligned to the workspace and balanced at every width. */
.app-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:20px;max-width:1550px;width:100%;margin:0 auto;padding:18px 35px 22px}
.app-footer span:last-child{text-align:right}
@media(max-width:680px){.app-footer{grid-template-columns:1fr;gap:6px;padding:16px 18px 20px;text-align:center}.app-footer span:last-child{text-align:center}}

/* Keep login copy readable across both panels. */
.login-form .login-app-download{margin-top:20px}
.login-story h1{color:#fff}
.login-story small{color:#aec2ba}
.login-form .muted,.login-form>small{color:#626779}
.login-form .error-banner{color:#8f3f37}
.login-password-field{position:relative;margin-bottom:20px}
.login-password-field label{display:block;margin:0}
.login-password-field input{padding-right:50px}
.login-password-toggle{position:absolute;right:6px;bottom:6px;width:38px;height:38px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;background:transparent;color:#626779}
.login-password-toggle:hover{background:#edfbf5;color:#40b484}
.login-password-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Receipt preview and print use the same thermal layout. */
.receipt-settings-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr);gap:24px;align-items:start}
.receipt-setting-fields{padding:0;margin:0;border:0;min-width:0}
.receipt-preview-panel{background:#f5faf8}
.receipt-paper{width:calc(var(--receipt-paper-width,80mm) - 6mm);max-width:100%;margin:0 auto;color:#111;background:white;font:var(--receipt-font-size,12px)/1.4 monospace;overflow-wrap:anywhere}
#receipt-preview{background:#e7eeeb;padding:20px;overflow:auto}
#receipt-preview .receipt-paper{padding:12px;box-sizing:content-box;max-width:calc(100% - 24px)}
.receipt-logo{display:block;max-width:55%;max-height:60px;object-fit:contain;margin:0 auto 8px}
.receipt-paper .receipt-head{margin-bottom:12px}
.receipt-paper .receipt-head h2{font-size:1.3em;line-height:1.3}
.receipt-paper .receipt-head p,.receipt-paper .receipt-meta,.receipt-paper .summary-line,.receipt-paper .receipt-note{font-size:inherit;color:inherit}
.receipt-paper .receipt-meta{display:block;margin-bottom:12px}
.receipt-paper .receipt-meta>div{display:flex;gap:8px;justify-content:space-between;margin:3px 0}
.receipt-paper .receipt-meta small{color:inherit;font-size:inherit;flex-shrink:0}
.receipt-paper table{width:100%;table-layout:fixed;border-collapse:collapse}
.receipt-paper td,.receipt-paper th{font-size:inherit;color:inherit;padding:5px 0;vertical-align:top;border-bottom:1px dashed #777}
.receipt-paper td:first-child,.receipt-paper th:first-child{width:60%;padding-right:8px}
.receipt-paper .receipt-item-name,.receipt-paper .receipt-item-detail{display:block;font-size:inherit;color:inherit;white-space:normal}
.receipt-paper .summary-line{gap:10px;margin:7px 0;align-items:start}
.receipt-paper .summary-line strong{color:inherit;text-align:right;font-size:inherit}
.receipt-paper .summary-total{border-top:1px dashed #777;padding-top:8px;margin-bottom:10px}
.receipt-paper .summary-total strong{font-size:1.25em}
.receipt-paper .receipt-note{background:none;border-radius:0;padding:8px 0;border-top:1px dashed #777}
.receipt-text{white-space:pre-wrap}
.receipt-footer{text-align:center;border-top:1px dashed #777;padding-top:10px;margin-top:12px}
@media(max-width:960px){.receipt-settings-layout{grid-template-columns:1fr}}
@media print{
 dialog{width:calc(var(--receipt-paper-width,80mm) - 6mm);margin:0;padding:0}
 .modal-body{padding:0}
 .receipt-paper{max-width:none}
 .receipt-paper tr{break-inside:avoid}
 @page{size:auto;margin:3mm}
}

/* Klinora AI: existing workspace palette, with a focused composer and readable results. */
.ai-menu{position:relative}.ai-menu>summary{display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 11px;border:1px solid #d9f6ea;border-radius:9px;background:var(--purple-bg);color:var(--primary-dark);font-weight:800;cursor:pointer;list-style:none}.ai-menu>summary::-webkit-details-marker{display:none}.ai-menu>summary:focus-visible,.ai-preview>summary:focus-visible{outline:3px solid #a6eace;outline-offset:3px}.ai-menu svg{width:18px;height:18px;flex:none}.ai-menu-chevron{font-size:17px;line-height:1}.ai-menu[open] .ai-menu-chevron{transform:rotate(180deg)}.ai-menu nav{position:absolute;top:calc(100% + 12px);right:0;z-index:50;width:275px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:8px;box-shadow:0 12px 38px #25283c1a}.ai-menu-heading{padding:11px 12px 14px;border-bottom:1px solid var(--line);margin-bottom:6px}.ai-menu-heading strong,.ai-menu-heading small{display:block}.ai-menu-heading small{font-size:12px;color:#767b8e;margin-top:3px}.ai-menu nav a{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:6px;color:#53586f;font-size:14px;font-weight:700}.ai-menu nav a:hover,.ai-menu nav a:focus-visible{background:var(--purple-bg);color:var(--primary-dark)}
.ai-page-head{display:flex;align-items:start;justify-content:space-between;gap:20px}.ai-page-head p{max-width:70ch}.ai-readonly{display:flex;align-items:center;gap:7px;max-width:230px;font-size:12px;line-height:1.5;color:#77758c;padding-top:9px}.ai-readonly svg{width:19px;height:19px;flex:none}.ai-assistant-layout{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(0,1.4fr);gap:27px;align-items:start}.ai-composer{border-top:3px solid var(--primary-strong);position:sticky;top:22px}.ai-composer-heading{display:flex;gap:12px;align-items:center;margin-bottom:23px}.ai-composer-heading h2{font-size:20px;line-height:1.35;margin:0}.ai-assistant-symbol{width:38px;height:44px;display:grid;place-items:center;border-radius:12px 12px 12px 3px;color:var(--primary-dark);background:var(--purple-bg);flex:none}.ai-assistant-symbol svg{width:24px;height:24px}.ai-composer textarea{resize:vertical;min-height:145px}.ai-composer .full{display:flex;align-items:center;justify-content:center;gap:9px}.ai-composer .full svg{height:18px;width:18px}.ai-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin:-2px 0 22px}.ai-suggestions button{border:1px solid #def7ed;border-radius:6px;padding:7px 9px;font-size:12px;line-height:1.4;color:#548571;background:#f9fefc}.ai-suggestions button:hover{border-color:#8cdcbb}.ai-composer-note{color:#777b8d;font-size:12px;line-height:1.7;margin:17px 0 0}.ai-conversation{min-width:0}.ai-conversation>.section-header{min-height:44px}.ai-conversation .section-header a{font-size:13px}.ai-run{padding:21px 23px;margin-bottom:15px;background:#fff;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.ai-run-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.ai-run-top small{color:#74788b;font-size:12px}.ai-run h3{font-size:16px;line-height:1.6;margin-bottom:14px;white-space:pre-wrap}.ai-run footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px;margin-top:19px;color:#767b8e;font-size:11px}.ai-output{white-space:pre-wrap;font-size:14px;line-height:1.8;color:#42475d;overflow-wrap:anywhere;max-width:78ch}.ai-pending{font-size:13px;color:#77718e;border-left:2px solid #a6eace;padding:8px 0 8px 14px;margin:0}.ai-empty{padding:55px 23px;border:1px dashed #d6eee4;border-radius:10px;text-align:center;background:#fff;color:#7b7f91}.ai-empty>svg{width:29px;height:29px;color:#9bccb8;margin-bottom:15px}.ai-empty h3{font-size:16px;color:#56556c}.ai-empty p{font-size:13px;max-width:45ch;margin:0 auto}.ai-status{display:inline-block;padding:4px 9px;font-size:11px;font-weight:800;line-height:1.5;border-radius:5px;background:#f0f5f3;color:#656779;white-space:nowrap}.ai-status-completed,.ai-status-approved{background:#e7f5ef;color:#237c65}.ai-status-failed,.ai-status-rejected{background:#fff0ed;color:#a84638}.ai-status-running,.ai-status-queued{background:#edfbf5;color:#47b386}.ai-status-expired{background:#fff6e6;color:#886721}.ai-notice{display:flex;align-items:start;gap:10px;padding:12px 14px;border:1px solid #ddf3ea;border-radius:7px;background:#f7fdfb;color:#557869;font-size:13px;line-height:1.65;margin:0 0 18px}.ai-notice svg{width:18px;height:18px;flex:none;margin-top:2px}.ai-notice-error{border-color:#f0cdc6;background:#fff7f5;color:#a84638}.ai-unit-filter{min-width:200px;max-width:320px}.ai-fieldset{border:0;padding:0;margin:0;min-width:0}.ai-settings-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.75fr);gap:23px;align-items:start}.ai-budget-value{font-size:32px;letter-spacing:-1px;display:block;margin-top:25px;color:var(--primary-dark)}.ai-budget>p{font-size:13px;color:#72758c;margin-top:5px}.ai-budget progress{width:100%;height:7px;display:block;accent-color:var(--primary-strong);margin:18px 0 27px}.ai-budget dl{margin:0 0 25px}.ai-budget dl>div{display:flex;gap:15px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.ai-budget dt{color:#73788c}.ai-budget dd{margin:0;font-weight:800;color:#53586f}.ai-budget-boundary{display:flex;gap:10px;border-top:1px solid var(--line);padding-top:18px}.ai-budget-boundary svg{width:21px;height:21px;flex:none;color:#729b8a}.ai-budget-boundary p{font-size:12px;line-height:1.7;color:#74768a;margin:0}.ai-automation-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:23px;align-items:start}.ai-automation-layout>.panel>h2{margin-bottom:23px}.ai-automation{padding:19px 0;border-bottom:1px solid var(--line)}.ai-automation:last-child{border-bottom:0;padding-bottom:0}.ai-automation:first-of-type{padding-top:0}.ai-automation-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.ai-automation-heading h3{font-size:16px}.ai-automation>p{font-size:13px;color:#72778b;margin-bottom:10px}.ai-automation-schedule{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;color:#55586e}.ai-automation-schedule svg{width:15px;height:15px}.ai-automation-schedule>span{display:block;flex-basis:100%;margin-left:22px;color:#7c8094}.ai-row-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:18px}.ai-row-actions .text-link{font-size:12px}.ai-preview{margin-top:17px;border:1px solid var(--line);border-radius:7px;padding:11px;background:#fafdfc;font-size:12px;color:#62667b}.ai-preview summary{cursor:pointer;font-weight:700}.ai-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font-size:12px;line-height:1.7;margin-bottom:0}.ai-proposals{display:grid;gap:17px}.ai-proposal h2{font-size:19px;margin-bottom:15px}.ai-proposal .form-hint{margin-top:17px}.ai-history-toolbar{align-items:end}.ai-history-toolbar label{flex:1;min-width:160px;margin-bottom:0}.ai-history-prompt{display:block;max-width:350px;white-space:normal;line-height:1.5}.ai-history-detail{margin-top:23px}.ai-history-detail:empty{display:none}.ai-history-detail .section-header{margin-bottom:12px}
@media(max-width:1100px){.ai-readonly{display:none}.ai-assistant-layout{grid-template-columns:minmax(275px,1fr) minmax(0,1.15fr);gap:18px}.ai-settings-layout{grid-template-columns:minmax(0,1.3fr) minmax(240px,.8fr)}}
@media(max-width:800px){.ai-assistant-layout,.ai-settings-layout,.ai-automation-layout{grid-template-columns:1fr}.ai-composer{position:static}.ai-assistant-layout{gap:26px}.ai-budget-value{margin-top:16px}.ai-menu nav{position:fixed;top:70px;right:14px;max-width:calc(100vw - 28px)}.ai-run{padding:18px}.ai-history-toolbar{flex-wrap:wrap}.ai-menu>summary{padding:7px 9px}.ai-menu-chevron{display:none}}
@media(max-width:480px){.ai-run-top{flex-wrap:wrap}.ai-page-head h1{font-size:24px}.ai-suggestions{gap:6px}.ai-menu>summary{gap:4px}.ai-menu nav{top:65px}.ai-automation-layout .form-grid{grid-template-columns:1fr}.ai-settings-layout .form-grid{grid-template-columns:1fr}.topbar .breadcrumb>span{display:none}}
@media print{#ai-menu-host{display:none}}

.cart-checkout-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cart-checkout-actions [data-action="checkout-print"]{grid-column:1/-1}
.cart-checkout-actions button{min-width:0;min-height:44px;padding:8px;font-size:12px;line-height:1.2;white-space:normal}
.cart-panel .pay-later-button{margin-top:9px}

.pos-intake{display:grid;grid-template-columns:minmax(210px,.9fr) minmax(0,2.1fr);gap:10px;margin-bottom:14px;align-items:start}
.pos-intake .ticket-lookup{margin:0;min-width:0;padding:11px 13px}
.pos-intake .ticket-lookup label{font-size:12px;margin-bottom:5px}
.pos-intake .ticket-input-row{display:flex;flex-direction:column;gap:8px}
.pos-intake .ticket-input-row input{width:100%;min-width:0;flex:none;padding:8px 10px;font-size:13px}
.pos-intake .ticket-input-row button{width:100%;flex:none;min-height:37px;padding:7px 10px;font-size:12px}
.pos-queue{position:relative;min-width:0;padding:11px 13px}
.pos-queue-heading,.pos-queue-card-top,.pos-queue-card-bottom,.pos-queue-controls,.cart-existing-items>div{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pos-queue-heading{justify-content:flex-start;gap:7px;margin-bottom:8px;padding-right:90px}
.pos-queue-heading h2{margin:0;font-size:13px}
.pos-queue-heading small{display:none}
.pos-queue-heading .tag{font-size:10px;padding:2px 5px}
.pos-queue-card>small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-queue-controls{position:absolute;top:7px;right:11px;margin:0;font-size:11px;color:var(--muted);gap:4px}
.pos-queue-controls .icon-btn{width:23px;height:23px;font-size:19px;line-height:1}
.pos-queue-card{display:grid;gap:2px;min-width:0}
.pos-queue-card>strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.pos-queue-card-top small{color:var(--muted);font-size:11px}
.pos-queue-card-top .tag{font-size:10px;padding:2px 6px}
.pos-queue-card-bottom{margin-top:4px;flex-wrap:wrap}
.pos-queue-card-bottom span{display:flex;align-items:baseline;gap:5px;font-size:11px;color:var(--muted)}
.pos-queue-card-bottom span strong{font-size:13px;color:var(--ink)}
.pos-queue-card-bottom .btn-primary{min-height:29px;padding:5px 12px;font-size:12px}
.pos-queue-empty{margin:12px 0 2px;font-size:12px}
.pos-layout .toolbar{margin-bottom:14px}
.pos-toolbar{display:flex;align-items:center;gap:10px}
.pos-toolbar .scope-select{flex:0 1 235px;min-width:160px}
.pos-toolbar .scope-select select{flex:1;min-width:0;width:auto;max-width:none}
.pos-toolbar .search-box{flex:1 1 280px;max-width:none;min-width:160px}
.pos-toolbar .tag{flex:0 0 auto}
.pos-layout .category-tabs{margin:12px 0 8px}
.pos-layout .product-grid{gap:10px}
.pos-layout .product-card{min-height:144px;padding:13px}
.pos-layout .product-visual{width:31px;height:31px;border-radius:8px;margin-bottom:10px}
.pos-layout .product-visual svg{width:18px;height:18px}
.pos-layout .product-card h3{margin-bottom:3px;font-size:13px}
.pos-layout .product-card small{margin-bottom:10px;font-size:11px}
.pos-layout .product-plus{bottom:12px;right:12px}
.pos-layout .cart-panel{padding:16px}
.pos-layout .cart-title{margin-bottom:13px}
.pos-layout .cart-title-actions{display:flex;align-items:center;gap:6px;flex:none}
.pos-layout .cart-title-actions .row-icon-btn{width:34px;height:34px;border-radius:7px}
.pos-layout .cart-title-actions .row-icon-btn svg{width:16px;height:16px}
.pos-layout .cart-fields label{margin-bottom:8px}
.pos-layout .cart-empty{padding:20px 10px}
.pos-layout .cart-items{margin-bottom:11px}
.pos-layout .summary-line{margin:9px 0}
.pos-layout .summary-total{padding-top:10px;margin-bottom:14px}
dialog:has(#pos-details-form){width:min(640px,calc(100vw - 30px))}
.cart-existing-items{display:grid;gap:6px;margin:10px 0;padding:10px;border-radius:10px;background:#f5fbf8;font-size:11px}
.cart-existing-items>div{align-items:flex-start}
.cart-existing-items strong{white-space:nowrap}
@media(max-width:1200px){.pos-intake{grid-template-columns:1fr}.pos-toolbar{flex-wrap:wrap}.pos-toolbar .scope-select{flex-basis:205px}}
@media(max-width:680px){.main-shell{margin-left:0;min-width:0}.pos-toolbar .scope-select,.pos-toolbar .search-box{flex:1 0 100%}.pos-layout .product-card{min-height:137px}.pos-queue-heading{padding-right:87px}.pos-queue-card-top{align-items:flex-start}.pos-queue-card-top small{overflow-wrap:anywhere}.pos-queue-card-top .tag{flex-shrink:0}}

.form-error{padding:12px 14px;margin:0 0 18px;border:1px solid #f0cdc6;border-radius:7px;background:#fff7f5;color:#a84638;line-height:1.65;overflow-wrap:anywhere}

/* Toggle controls retain native checkbox behavior and keyboard support. */
.reset-option-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px;margin:20px 0}
.reset-option{display:flex;flex-direction:column;align-items:flex-start;margin:0!important}
.reset-option p{flex:1;line-height:1.6}
.reset-warning{padding:12px;border-radius:7px;background:#fff3ec;color:#914421;line-height:1.6}
#data-reset-form>label{display:flex;flex-direction:column;gap:8px;margin:16px 0}
#data-reset-form>.checkbox-label{flex-direction:row;align-items:center}
body input[type="checkbox"],.checkbox-label input[type="checkbox"],.permission-table input[type="checkbox"],.login-remember input[type="checkbox"]{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;width:40px;min-width:40px;max-width:40px;height:24px;min-height:24px;flex:0 0 40px;margin:0;padding:0;border:1px solid #a3a8ba;border-radius:999px;background:#c2c6d2;box-shadow:none;vertical-align:middle;cursor:pointer;transition:background-color .16s,border-color .16s}
body input[type="checkbox"]::before{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #25283c33;transition:transform .16s}
body input[type="checkbox"]:checked{background:var(--primary);border-color:var(--primary-strong)}
body input[type="checkbox"]:checked::before{transform:translateX(16px)}
body input[type="checkbox"]:focus-visible{outline:3px solid #a6eace;outline-offset:3px}
body input[type="checkbox"]:disabled{opacity:.5;cursor:not-allowed}
.checkbox-label,.login-remember{min-height:32px;cursor:pointer}
@media(prefers-reduced-motion:reduce){body input[type="checkbox"],body input[type="checkbox"]::before{transition:none}}
@media(forced-colors:active){body input[type="checkbox"]{appearance:auto;-webkit-appearance:auto;forced-color-adjust:auto}body input[type="checkbox"]::before{display:none}}

/* Product editor groups identity, operational fields, switches and imagery. */
dialog:has(#product-form){width:min(1000px,calc(100vw - 30px))}
.product-form-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:22px;align-items:start}
.product-form-main,.product-form-side{display:grid;gap:16px;min-width:0}
.product-form-section{min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff}
.product-form-section h3{font-size:14px;margin:0 0 12px;color:var(--ink)}
#product-form .form-grid{gap:10px 16px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#product-form label{font-size:12px;margin:0;min-width:0}
#product-form input:not([type="checkbox"]),#product-form select{min-width:0;width:100%;min-height:40px;margin-top:6px;padding:9px 11px;font-size:13px}
#product-form .form-hint{font-size:11px;line-height:1.5;margin-top:5px}
#product-form .product-auto-sku{margin-top:10px;font-weight:600;font-size:12px}
.product-toggle-list{display:grid;gap:16px}
#product-form .product-toggle{align-items:flex-start;gap:10px}
.product-toggle input{margin-top:1px!important}
.product-toggle span{min-width:0}
.product-toggle strong,.product-toggle small{display:block}
.product-toggle strong{font-size:12px;line-height:1.5}
.product-toggle small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.5;margin-top:3px}
#product-form .product-image-preview{width:100%;height:150px;object-fit:contain;margin:0 0 14px;background:#f9fdfb}
.product-image-empty{display:grid;place-items:center;min-height:115px;margin-bottom:14px;padding:16px;border:1px dashed #d3e7df;border-radius:8px;background:#f9fdfb;color:var(--muted);font-size:12px;text-align:center}
#product-form input[type="file"]{padding:8px;font-size:11px}
#product-form input[type="file"]::file-selector-button{border:0;border-radius:5px;padding:6px 8px;margin-right:8px;background:var(--purple-bg);color:var(--primary-dark);font:inherit;font-weight:700;cursor:pointer}
#product-form .product-remove-image{margin-top:12px}
#product-form .form-actions{position:sticky;bottom:0;z-index:1;background:#fff;padding:16px 0 0;margin-top:20px}
@media(max-width:760px){.product-form-layout{grid-template-columns:1fr;gap:18px}.product-form-side{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}}
@media(max-width:520px){dialog:has(#product-form){width:calc(100vw - 20px)}dialog:has(#product-form) .modal-body{padding:16px}.product-form-side,#product-form .form-grid{grid-template-columns:1fr}.product-form-section{padding:14px}.product-form-main,.product-form-side{gap:16px}#product-form .span-2{grid-column:auto}#product-form .form-actions{gap:8px;padding-top:14px}#product-form .form-actions button{flex:1;justify-content:center}}

.table-sort-button{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:inherit;cursor:pointer}
.table-sort-arrow{flex:none;font-size:14px;color:#a2a4b6}
th[aria-sort=ascending] .table-sort-arrow,th[aria-sort=descending] .table-sort-arrow{color:var(--primary-dark)}
.table-sort-button:hover{color:var(--primary-dark)}

.text-right .table-sort-button{justify-content:flex-end}

.status-badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
/* Pembelian barang */
.purchase-workspace{width:100%;min-width:0}
.purchase-workspace .required-field-marker,.purchase-workspace .required-fields-note{display:none}
.purchase-cart-panel{padding:20px;min-width:0}
.purchase-cart-panel .form-grid{gap:12px}
.purchase-cart-panel .purchase-fields{grid-template-columns:repeat(5,minmax(0,1fr))}
.purchase-cart-panel label{font-size:12px;margin-bottom:12px}
.purchase-card-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.purchase-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.purchase-card-actions .btn-primary,.purchase-card-actions .btn-secondary{font-size:13px;min-height:39px;padding:9px 12px}
.purchase-cart-scroll{max-height:55vh;overflow:auto;margin-bottom:16px}
.purchase-cart-scroll table{min-width:720px}
.purchase-cart-scroll th{position:sticky;top:0;background:#fff;z-index:1}
.purchase-cart-scroll td{padding:10px 8px;vertical-align:middle}
.purchase-cart-scroll td:first-child{width:40%;min-width:180px;overflow-wrap:anywhere}
.purchase-current-stock{white-space:nowrap;font-weight:800}
.purchase-cart-scroll input[name=quantity]{width:100px;padding:8px}
.purchase-cart-scroll input[name=unit_cost]{width:140px;padding:8px}
.purchase-cart-scroll .row-icon-btn{width:30px;height:30px}
.purchase-save{width:100%}
.purchase-selector .product-plus{font-size:12px;min-width:23px;width:auto;padding:0 4px}
.purchase-selector .product-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.purchase-selector .toolbar{flex-wrap:wrap}
.purchase-catalog-pagination{margin-top:16px}
.purchase-selector-footer{display:flex;justify-content:flex-end;position:sticky;bottom:0;z-index:2;margin-top:20px;padding:16px 0 0;border-top:1px solid var(--line);background:#fff}
.purchase-selector .search-box{flex:1;min-width:200px}
dialog:has(#purchase-import-form){width:min(850px,calc(100vw - 32px))}
dialog:has(#purchase-selector){width:min(1100px,calc(100vw - 32px))}
@media(max-width:1100px){.purchase-cart-panel .purchase-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.purchase-cart-panel{padding:16px}.purchase-cart-panel .purchase-fields{grid-template-columns:minmax(0,1fr)}.purchase-selector .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Navigasi workspace: grup sesuai alur kerja, konten menu bergulir sendiri. */
.sidebar{overflow:hidden;padding:24px 16px 14px}
.sidebar .brand,.sidebar .workspace-badge,.sidebar .sidebar-bottom{flex-shrink:0}
.sidebar .workspace-badge{margin:20px 0 16px;padding:10px}
#navigation{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;scrollbar-width:thin;scrollbar-color:#dbe9e3 transparent}
.nav-group{margin-bottom:8px}
.nav-group summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;cursor:pointer;padding:10px 12px;color:#63677e;font-size:12px;font-weight:800;border-radius:7px}
.nav-group summary::-webkit-details-marker{display:none}
.nav-group summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-right:3px}
.nav-group[open] summary::after{transform:rotate(45deg)}
.nav-group summary:hover{background:#f6fdfa;color:var(--primary-dark)}
.nav-group summary:focus-visible{outline:3px solid #a6eace;outline-offset:-3px}
.nav-group.has-active summary{color:var(--primary-dark)}
.nav-group .nav-link{min-height:38px;padding:9px 12px;margin-bottom:3px;gap:10px;font-size:13px;font-weight:700;white-space:normal}
.nav-group .nav-link svg{width:17px;height:17px;flex-shrink:0}
.nav-group .nav-link span{min-width:0;overflow-wrap:anywhere}
.sidebar .sidebar-bottom{margin-top:0;padding:12px 10px 0;border-top:1px solid var(--line)}
.sidebar-unit-link{display:block;font-size:12px;font-weight:700}
.sidebar .template-credit{text-align:left;margin-top:8px;font-size:11px}
@media(max-width:680px){.purchase-card-actions{width:100%;justify-content:flex-end}.purchase-card-actions .btn-primary,.purchase-card-actions .btn-secondary{flex:0 0 auto}.sidebar{max-width:calc(100vw - 40px)}}

.product-select-cell{width:42px;text-align:center}
.product-select-cell input{width:17px;height:17px;accent-color:var(--primary-strong);cursor:pointer}
/* Table selection uses native square checkboxes, including indeterminate state. */
.table-wrap table input[type="checkbox"]:not([role="switch"]){appearance:auto;-webkit-appearance:auto;width:17px;min-width:17px;max-width:17px;height:17px;min-height:17px;flex:0 0 17px;border:initial;border-radius:0;background:initial;accent-color:var(--primary-strong);transition:none}
.table-wrap table input[type="checkbox"]:not([role="switch"])::before{content:none;display:none}
.product-bulk-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.product-bulk-actions[hidden],#delete-selected-products[hidden]{display:none}
@media(max-width:680px){.product-bulk-actions{gap:8px}.product-bulk-actions .btn-danger{font-size:12px;padding:8px 10px}}

.menu-layout{display:grid;gap:16px}.menu-group{padding:18px}.menu-group .section-header{margin-bottom:12px}.menu-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.menu-item-title{flex:1;min-width:100px;overflow-wrap:anywhere}.menu-item-title small{display:block;color:var(--muted)}.menu-item-icon svg{width:20px;height:20px}.menu-drag-handle{cursor:grab}.menu-drag-handle:active{cursor:grabbing}.menu-drop-empty{padding:16px;border:1px dashed var(--line);border-radius:8px}.menu-group .table-actions .btn-secondary{padding:5px 9px}.menu-group:has(.menu-drag-handle:active){outline:2px solid var(--primary-strong)}
@media(max-width:600px){.menu-item{flex-wrap:wrap}.menu-item .table-actions{margin-left:auto}.menu-group .section-header{flex-wrap:wrap;gap:10px}}

.pagination{justify-content:space-between;flex-wrap:wrap;gap:10px}.pagination-pages{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;margin-left:auto;max-width:100%}.pagination-pages button[aria-current=page]{cursor:default}.pagination-summary{color:var(--muted);font-size:12px;white-space:nowrap}.pagination-length{display:flex;align-items:center;margin:0;white-space:nowrap}.pagination-length select{width:86px;height:42px;min-height:42px;margin-top:0;padding:9px 30px 9px 10px;font-size:14px}
.toolbar:has(.page-length-top) .search-box input{height:42px;min-height:42px;padding-top:9px;padding-bottom:9px;font-size:14px}
@media(max-width:600px){.pagination{justify-content:space-between}.pagination-summary{text-align:left}.pagination-length{margin-left:auto}}
.pagination-length.page-length-top{flex:0 0 auto;min-width:0;margin:0}.ai-history-toolbar .page-length-top{flex:0 0 auto;min-width:0}
.error-ticket{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:16px 0}.error-ticket small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.form-error+.error-ticket{justify-content:flex-start}.error-ticket button{flex-shrink:0}
.klinora-select-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.klinora-select-control{position:relative;display:inline-block;width:100%;min-width:0;vertical-align:middle}
.klinora-select-trigger{display:flex;width:100%;min-height:42px;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid #e3ede9;border-radius:7px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;text-align:left;line-height:1.4}
.klinora-select-trigger:focus-visible{outline:3px solid #a6eace;outline-offset:2px}
.klinora-select-trigger [data-klinora-select-value]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.klinora-select-chevron{width:8px;height:8px;flex:0 0 8px;border-right:1.5px solid #7f8190;border-bottom:1.5px solid #7f8190;transform:rotate(45deg) translateY(-2px)}
.klinora-select-popup{position:fixed;z-index:1200;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dce8e3;border-radius:8px;background:#fff;box-shadow:0 12px 30px #25283c26}
.klinora-select-popup[hidden]{display:none}
.klinora-select-search{width:calc(100% - 16px);min-height:38px;margin:8px;padding:8px 10px;border:1px solid #dce8e3;border-radius:6px;background:#fff;font-size:13px}
.klinora-select-options{min-height:0;overflow:auto;padding:4px}
.klinora-select-option{display:block;width:100%;padding:9px 10px;border:0;border-radius:5px;background:#fff;color:var(--ink);font-size:13px;text-align:left;overflow-wrap:anywhere}
.klinora-select-option:hover,.klinora-select-option.is-active{background:var(--purple-bg);color:var(--primary-dark)}
.klinora-select-option.is-selected{font-weight:800}
.klinora-select-option:disabled{color:var(--muted);cursor:not-allowed}
.klinora-select-group{padding:7px 10px 4px;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}
.klinora-select-empty{margin:0;padding:12px;color:var(--muted);font-size:13px;text-align:center}
.scope-select .klinora-select-control{flex:1;width:auto;max-width:280px}
.scope-select>svg+.klinora-select-native+.klinora-select-control .klinora-select-trigger{padding-left:40px}
.product-filters .scope-select .klinora-select-control{max-width:310px}
.pos-toolbar .klinora-select-control{flex:1;width:auto;max-width:none}
.form-grid label>.klinora-select-control{display:block;width:100%;margin-top:6px}
#product-form .klinora-select-trigger{min-height:40px;font-size:13px}
@media(max-width:680px){.scope-select .klinora-select-control,.product-filters .scope-select .klinora-select-control{width:100%;max-width:none}}
.tour-trigger{display:inline-flex;align-items:center;gap:7px;font-weight:800;font-size:12px;color:var(--primary-dark);min-height:38px}
.tour-trigger svg{width:20px;height:20px}
#guided-tour{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden;color:var(--ink)}
#guided-tour::backdrop{background:transparent;backdrop-filter:none}
#guided-tour.walkthrough-unanchored{background:rgba(25,23,42,.65)}
.walkthrough-spotlight{position:fixed;border:2px solid #adecd2;border-radius:9px;box-shadow:0 0 0 100vmax rgba(25,23,42,.65);pointer-events:none}
.walkthrough-spotlight[hidden]{display:none}
.walkthrough-panel{position:fixed;z-index:1;max-height:calc(100dvh - 32px);overflow:auto;width:380px;background:#fff;border:1px solid #e1f3ec;border-radius:14px;padding:22px;box-shadow:0 16px 60px #112e2240}
.walkthrough-header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--primary-dark);font-size:12px;font-weight:800}
.walkthrough-header .icon-btn{font-size:24px;min-width:32px;min-height:32px}
.walkthrough-counter{font-size:12px;color:#626779;margin:12px 0 8px}
.walkthrough-panel progress{display:block;width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;accent-color:var(--primary-strong);margin-bottom:20px;background:#ebf7f2}
.walkthrough-panel progress::-webkit-progress-bar{background:#ebf7f2}
.walkthrough-panel progress::-webkit-progress-value{background:var(--primary)}
.walkthrough-panel progress::-moz-progress-bar{background:var(--primary)}
.walkthrough-panel h2{font-size:21px;letter-spacing:-.4px;line-height:1.3;margin:0 0 12px}
.walkthrough-panel>p:last-of-type{font-size:14px;line-height:1.7;color:#53596d;margin:0 0 24px}
.walkthrough-footer,.walkthrough-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}
.walkthrough-footer{border-top:1px solid var(--line);padding-top:16px}
.walkthrough-skip{border:0;background:transparent;color:#626779;font-size:12px;padding:8px 0}
.walkthrough-controls .btn-small{font-size:12px;min-height:38px;padding:8px 10px}
@media(max-width:960px){.tour-trigger span{display:none}}
@media(max-width:480px){.topbar .user-avatar{display:none}.walkthrough-panel{padding:18px}.walkthrough-controls{gap:6px}}
@media(max-width:680px){.panel>.toolbar.list-search-toolbar .search-box,.panel>.toolbar.orders-toolbar .search-box{flex:1 1 150px;width:auto;min-width:140px}}

.bulk-select-cell{width:42px;text-align:center}
.bulk-select-cell input{width:17px;height:17px;accent-color:var(--primary-strong);cursor:pointer}
.bulk-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.bulk-actions[hidden]{display:none}
@media(max-width:680px){.bulk-actions .btn-secondary,.bulk-actions .btn-danger{font-size:12px;padding:8px 10px}}
.report-group-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:1100px){.report-group-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:680px){.report-group-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.required-field-marker{display:inline-block;margin-left:.25em;color:#c43d57;font-weight:900;line-height:1;vertical-align:baseline}
.required-fields-note{margin:0 0 14px;color:#6f7283;font-size:12px;font-weight:700;line-height:1.5}
form.form-grid>.required-fields-note{grid-column:1/-1}
.dashboard-stock-alert{margin-top:0;margin-bottom:20px}

.pos-stock-toggle{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;white-space:nowrap;font-size:13px;flex:none}

.profile-link{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;border-radius:8px}
.profile-link:focus-visible{outline:3px solid #a6eace;outline-offset:4px}
.profile-page{max-width:1120px;display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:28px;align-items:start;color:var(--ink)}
.profile-identity{background:#fff;border:1px solid #e3eee9;border-top:4px solid var(--primary-strong);border-radius:12px;padding:28px;min-width:0}
.profile-avatar{display:grid;place-items:center;width:64px;height:64px;background:var(--purple-bg);color:var(--primary-dark);border-radius:16px;font-size:24px;font-weight:900;margin-bottom:18px}
.profile-identity h2{font-size:24px;line-height:1.25;overflow-wrap:anywhere}.profile-username{color:#62677c;margin:6px 0 22px;overflow-wrap:anywhere}
.profile-details{margin:0}.profile-details>div{padding:0 0 18px}.profile-details dt{color:#62677c;font-size:13px;margin-bottom:4px}.profile-details dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.profile-units,.profile-employment{border-top:1px solid #e3eee9;padding-top:20px;margin-top:6px}.profile-units h3,.profile-employment h3{margin-bottom:12px}
.profile-units ul,.profile-employment ul{list-style:none;padding:0;margin:0}.profile-units li{padding:6px 0;overflow-wrap:anywhere}.profile-employment p,.profile-units p{color:#62677c;font-size:13px;margin:5px 0 12px}
.profile-employment li{display:flex;flex-direction:column;gap:3px;padding:8px 0;font-size:13px;overflow-wrap:anywhere}.profile-employment li span{color:#62677c}
.profile-security{background:#fff;border:1px solid #e3eee9;border-radius:12px;padding:30px;min-width:0}.profile-security-heading{border-bottom:1px solid #e3eee9;margin-bottom:24px;padding-bottom:18px}.profile-security-heading h2{font-size:21px}.profile-security-heading p{color:#62677c;margin:6px 0 0}
.profile-password-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.profile-page label{color:#565b70}.profile-page .form-hint{color:#62677c}
.profile-session-note{border-left:3px solid var(--primary-strong);padding:4px 0 4px 15px;margin:8px 0 24px}.profile-session-note strong{font-size:13px}.profile-session-note p{font-size:13px;color:#62677c;margin:5px 0 0;max-width:60ch}
#profile-password-status:empty{display:none}#profile-password-status{font-size:14px;overflow-wrap:anywhere}#profile-password-status[role=alert]{color:#a0322d}.profile-security .form-actions{border-top:1px solid #e3eee9;padding-top:20px;margin-top:20px;justify-content:flex-start}
dialog:has(.people-form){width:min(760px,calc(100vw - 30px))}.people-form-section{border-bottom:1px solid #e3eee9;padding:0 0 22px;margin-bottom:24px}.people-form-section h3{font-size:16px;margin:0 0 5px}.people-form-description{color:#62677c;font-size:13px;margin:0 0 18px;max-width:65ch}
.people-form-section .form-grid{gap:12px 20px}.people-form-section label{margin-bottom:0;color:#565b70}.people-form-section .form-hint{color:#62677c}.people-form-section .access-fieldset{margin:0}.people-form-section .access-options{gap:10px}.people-form-section .access-options label{margin-bottom:8px}
.person-link-summary{padding:12px 16px;border-left:3px solid var(--primary-strong);background:#f6fcfa;color:#565b70;overflow-wrap:anywhere}.person-link-summary strong,.person-link-summary span{display:block}.person-link-summary span{font-size:13px;margin-top:3px}.person-link-summary p{margin:0;font-size:13px}.people-form .form-actions{margin-top:0}.people-form .employee-unit-row input[name=position]{margin-top:6px}
@media(max-width:1100px){.profile-password-fields{grid-template-columns:1fr;gap:0}.profile-page{gap:20px;grid-template-columns:minmax(230px,300px) minmax(0,1fr)}}
@media(max-width:850px){.profile-page{grid-template-columns:1fr}.profile-identity,.profile-security{padding:22px}.profile-password-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}}
@media(max-width:600px){.profile-password-fields{grid-template-columns:1fr;gap:0}.people-form-section .form-grid{grid-template-columns:1fr;gap:16px}.people-form-section .span-2{grid-column:1}.profile-identity,.profile-security{padding:20px}.profile-security .form-actions .btn-primary{width:100%}.people-form .form-actions{flex-wrap:wrap}.people-form .form-actions button{flex:1}.people-form-section{padding-bottom:20px;margin-bottom:20px}}

.account-menu{position:relative}.account-menu>summary{list-style:none;cursor:pointer}.account-menu>summary::-webkit-details-marker{display:none}.account-chevron{color:var(--muted);font-size:16px}
.account-menu nav{position:absolute;top:calc(100% + 14px);right:0;width:190px;max-width:calc(100vw - 28px);padding:8px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 36px #25283c22;z-index:60}
.account-menu nav a,.account-menu nav button{display:block;width:100%;text-align:left;padding:11px 12px;border:0;border-radius:6px;background:transparent;color:var(--ink);font-size:14px;text-decoration:none;cursor:pointer}.account-menu nav a:hover,.account-menu nav button:hover{background:var(--purple-bg)}.account-menu nav a:focus-visible,.account-menu nav button:focus-visible{outline:3px solid #a6eace;outline-offset:-3px}
@media(max-width:480px){.topbar .account-menu .user-avatar{display:grid}.account-menu>summary{min-width:40px;min-height:40px;justify-content:center}.account-chevron{display:none}}

.queue-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;flex-wrap:wrap}
.queue-card-header>small{min-width:0;overflow-wrap:anywhere;line-height:1.4}
.queue-card-actions:has(.order-cancel-btn){grid-template-columns:minmax(0,1fr) 40px}
.queue-card-actions>.order-cancel-btn{width:40px;height:40px;min-height:40px;padding:0}
.order-action-main>.order-cancel-btn{flex:0 0 40px;width:40px;min-width:40px;justify-self:end;padding:0}
.order-refund-confirm{margin-top:14px;align-items:flex-start;line-height:1.5}

.pos-queue-card .queue-entry-time{margin:4px 0;padding:6px 8px}
.pos-queue-card .queue-entry-time time{gap:3px 8px}

/* Independent page controls for the two queue sections. */
.queue-heading{gap:12px;flex-wrap:wrap;align-items:flex-start}.queue-heading-title{display:flex;align-items:center;gap:8px;min-height:34px}.queue-heading-controls{display:flex;align-items:flex-start;gap:8px;margin-left:auto;max-width:100%}.queue-column .pagination-length select{width:66px;height:34px;min-height:34px;font-size:12px;padding:6px 25px 6px 8px}.queue-heading-controls .pagination-length{flex:0 0 auto;margin:0}.queue-pagination{min-width:0}.queue-pagination .pagination{margin:0;gap:4px;flex-direction:column;align-items:flex-end}.queue-pagination .pagination-pages{margin:0;gap:4px;justify-content:flex-end;flex-wrap:wrap}.queue-pagination .pagination-pages button{min-height:34px;padding:6px 9px}.queue-pagination .pagination-summary{order:2;white-space:normal;font-size:10px;text-align:right}
.queue-card-actions.with-payment{grid-template-columns:repeat(2,minmax(0,1fr))}.queue-card-actions.with-payment:has(.order-cancel-btn){grid-template-columns:repeat(2,minmax(0,1fr)) 40px}


.queue-card-identity{display:grid;gap:2px;min-width:0}.queue-card-identity-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}.queue-card-identity-row>strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere;min-width:0}.queue-card-identity-row>small:first-child{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.queue-card-identity-row>time,.queue-card-identity-row>small:last-child{flex-shrink:0;font-size:10px;font-weight:700;text-align:right;white-space:nowrap}.pos-queue-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}.pos-queue-actions .order-cancel-btn{width:29px;height:29px;min-width:29px;padding:4px}

.cart-panel #pos-member-hint:empty{display:none}

.queue-reference{font-size:14px;line-height:1.35;font-weight:800;letter-spacing:.02em;color:#2d805d;background:#e7f9f2;border-radius:5px;padding:3px 6px;overflow-wrap:anywhere;min-width:0}.pos-queue-card-top .queue-reference{font-size:12px}

.queue-toolbar{align-items:center;gap:12px}.queue-toolbar .scope-select{flex:0 1 240px;min-width:160px}.queue-toolbar .search-box{flex:1 1 320px;width:auto;max-width:none;min-width:240px}.queue-toolbar .search-box input{width:100%}.queue-toolbar .date-chip{flex:0 0 auto}@media(max-width:600px){.queue-toolbar .search-box{flex-basis:100%;min-width:0;order:3}.queue-toolbar .scope-select{flex:1 1 auto}}

.queue-card>.queue-card-identity{margin-top:8px}.queue-card .queue-card-identity-row>time,.queue-card .queue-card-identity-row>small:last-child{font-size:12px;font-variant-numeric:tabular-nums}

.login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.login-options a{display:inline-flex;align-items:center;min-height:32px;margin:0;font-size:14px;line-height:1.6;font-weight:700;white-space:nowrap}.login-form .login-options .login-remember{margin:0;line-height:1.6}.reset-back{display:block;margin-top:28px;text-align:center;font-size:14px;font-weight:700}

.dashboard-unit-card{background:var(--unit-bg);color:var(--unit-text);border-color:color-mix(in srgb,var(--unit-color) 18%,white)}.dashboard-unit-card::before{display:none}.dashboard-unit-card h3{color:var(--unit-text);font-weight:800}.dashboard-unit-card p,.dashboard-unit-card .unit-card-footer{color:#4b5563}.dashboard-unit-card p{font-weight:600}.dashboard-unit-card .unit-total,.dashboard-unit-card .unit-card-footer a{color:var(--unit-accent)}.dashboard-unit-card .unit-symbol{background:color-mix(in srgb,var(--unit-color) 15%,white);color:var(--unit-accent)}.dashboard-unit-card .tag{background:#f3f4f6;color:#4b5563}.dashboard-unit-card .tag.green{background:#d1fae5;color:#065f46}.dashboard-unit-card .unit-card-footer{border-color:color-mix(in srgb,var(--unit-color) 18%,white)}.dashboard-unit-card .unit-card-footer a:hover{text-decoration:underline}.dashboard-unit-card a:focus-visible{outline-color:var(--unit-accent)}

.loading-state .spinner.spinner-primary{position:relative;top:auto;right:auto;bottom:auto;left:auto;z-index:auto;margin:0;width:48px;height:48px;background:linear-gradient(to right,#74deb2 10%,rgba(139,92,246,0) 42%)}.loading-state .spinner.spinner-primary::after{background:#fff}@media(prefers-reduced-motion:reduce){.loading-state .spinner.spinner-primary{animation:none;-webkit-animation:none}}

.products-filter-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.products-filter-group .product-filter-field{margin:0;min-width:0}.product-filter-field>span{display:block;margin-bottom:6px;font-size:12px;font-weight:800;color:#626779}.products-filter-group .scope-select{display:flex;width:100%;min-width:0}.products-filter-group .scope-select select,.products-filter-group .scope-select .klinora-select-control{flex:1;width:100%;max-width:none;min-width:0;margin-top:0}.products-search-toolbar{flex-wrap:nowrap}.products-search-toolbar .page-length-top{margin-left:0;flex:none}.panel>.toolbar.products-search-toolbar .search-box{flex:1 1 0;min-width:0;max-width:none;width:auto}.products-search-toolbar .search-box input{width:100%}@media(max-width:680px){.products-filter-group{grid-template-columns:1fr}}

.discount-unit-scope{min-width:0;border:0;padding:0;margin:0 0 12px}
.discount-unit-scope legend{padding:0;margin-bottom:6px;color:#73788c;font-size:12px;font-weight:700}
.discount-unit-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
.discount-unit-option{display:flex;align-items:center;gap:6px;min-width:0;margin:0;color:#73788c;font-size:12px;font-weight:600}
.discount-unit-option span{overflow-wrap:anywhere}
body .discount-unit-option input[type=checkbox]{appearance:auto;-webkit-appearance:auto;display:inline-block;width:16px;min-width:16px;max-width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0;padding:0;border:1px solid #a3a8ba;border-radius:3px;background:#fff;box-shadow:none;accent-color:var(--primary-strong)}
body .discount-unit-option input[type=checkbox]::before{display:none}

.report-stock-alert{display:grid;grid-template-columns:minmax(190px,1fr) auto;align-items:center;gap:16px;margin-top:20px;padding:16px 18px;border:1px solid #f1dfb4;border-left:4px solid #d19a19;border-radius:8px;background:#fffdf7;color:var(--ink)}
.report-stock-alert-head{display:flex;align-items:flex-start;gap:10px}
.report-stock-alert-icon{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:8px;background:#fff1cd;color:#966500}
.report-stock-alert-icon svg{width:18px;height:18px}
.report-stock-alert-head h2{margin:0 0 3px;font-size:15px}
.report-stock-alert-head small{color:var(--muted);line-height:1.4}
dialog:has(.report-stock-table-wrap)[open]{display:flex;flex-direction:column;width:min(1000px,calc(100vw - 30px));max-height:90vh;overflow:hidden}
dialog:has(.report-stock-table-wrap) #modal-content{display:flex;flex-direction:column;min-height:0;max-height:90vh}
dialog:has(.report-stock-table-wrap) .modal-header{flex:none}
dialog:has(.report-stock-table-wrap) .modal-body{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
.report-stock-table-wrap{flex:1;min-height:0;max-height:max(0px,min(60vh,calc(90vh - 280px)));overflow:auto}
.report-stock-table-toolbar{flex-wrap:nowrap;gap:12px;margin-bottom:14px}
.report-stock-search-actions{display:flex;align-items:center;flex:1;gap:10px;min-width:0}
.report-stock-search-actions .search-box{flex:1;max-width:none;min-width:0}
.report-stock-search-actions .btn-primary{flex:none;white-space:nowrap}
.report-stock-table th{position:sticky;top:0;z-index:1}
.report-stock-select-cell{width:56px;text-align:center}
@media(max-width:680px){.report-stock-table-toolbar{flex-wrap:wrap}.report-stock-search-actions{flex:1 1 100%;gap:8px}.report-stock-search-actions .btn-primary{padding:9px 10px;font-size:12px}.report-stock-alert{grid-template-columns:1fr;gap:12px;padding:14px}dialog:has(.report-stock-table-wrap){width:calc(100vw - 20px)}}

/* Template Bootstrap (lite-purple.css) mewarnai tombol dengan ungu; selaraskan dengan tema Klinora. */
.btn-primary,.btn-primary.disabled,.btn-primary:disabled{background-color:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.btn-primary:hover:not(:disabled):not(.disabled),.btn-primary:active,.btn-primary:not(:disabled):not(.disabled):active{background-color:var(--primary-hover);border-color:var(--primary-hover);color:var(--on-primary);box-shadow:none}
.btn-primary:focus,.btn-primary:focus-visible{box-shadow:0 0 0 3px #89d7b766;color:var(--on-primary)}
.btn-primary.disabled,.btn-primary:disabled{opacity:.5}
.btn-outline-primary{color:var(--primary-dark);border-color:var(--primary-strong);background-color:transparent}
.btn-outline-primary:hover,.btn-outline-primary:not(:disabled):not(.disabled):active{background-color:var(--primary);border-color:var(--primary);color:var(--on-primary);box-shadow:none}
.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:var(--primary-dark);background-color:transparent}
.btn-link{color:var(--primary-dark)}
