@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=DM+Serif+Display:ital@0;1&display=swap');
:root{--green:#254d40;--green-dark:#17392f;--green-soft:#e7eee8;--ink:#28332c;--muted:#8c9289;--line:#e9eae2;--bg:#f7f8f2;--cream:#eff0e7;--orange:#d2834f;--serif:'DM Serif Display',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px var(--sans);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;transition:background .18s,transform .18s;border:0;background:none;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:4px}button:hover{filter:brightness(.97)}a{color:inherit}svg.icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.app-layout{display:grid;grid-template-columns:206px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--cream);position:fixed;inset:0 auto 0 0;width:206px;border-right:1px solid var(--line);padding:35px 20px 20px;display:flex;flex-direction:column;z-index:30}.brand{font-family:var(--serif);font-size:43px;letter-spacing:-2.5px;line-height:1;color:var(--green);display:flex;gap:3px;align-items:baseline;padding:0 12px 30px}.brand-domain{font-size:.56em;letter-spacing:-1px;color:var(--orange)}.store-switch{border:1px solid var(--line);border-radius:11px;padding:11px 9px;display:flex;align-items:center;gap:9px;text-align:left;width:100%;margin-bottom:28px;background:var(--surface)}.store-icon{background:var(--surface);border:1px solid var(--line);width:32px;height:34px;display:grid;place-items:center;border-radius:7px}.store-name{font-size:11px;font-weight:650}.store-location{font-size:10px;color:var(--muted);margin-top:3px}.nav-label{font-size:9px;font-weight:600;color:var(--muted);letter-spacing:1.7px;padding:0 14px;margin-bottom:13px}.nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 13px;color:var(--muted);font-size:12px;border-radius:8px;width:100%;text-align:left}.nav-item .icon{width:17px;height:17px}.nav-item.active{background:var(--green);color:var(--on-accent);box-shadow:0 5px 12px #254d4012}.nav-item .count{margin-left:auto;font-size:9px;background:var(--cream);padding:3px 6px;border-radius:4px;color:var(--muted)}.nav-item.active .count{background:var(--on-accent);color:var(--green)}.sidebar-bottom{margin-top:auto;padding-top:40px}.sidebar-note{border:1px solid var(--line);border-radius:11px;padding:15px 13px;background:var(--green-soft);position:relative;margin-bottom:20px}.sidebar-note .sun{font-size:20px;color:var(--muted)}.sidebar-note strong{display:block;font-size:11px;margin:8px 0 5px}.sidebar-note p{font-size:10px;line-height:1.7;color:var(--muted);margin:0 0 7px}.sidebar-note button{font-size:10px;font-weight:600;padding:0;display:flex;align-items:center;gap:6px}.sidebar-note button .icon{width:13px}.side-separator{height:1px;background:var(--cream);margin:14px 0}.profile{display:flex;gap:9px;align-items:center;padding:5px}.avatar{width:34px;height:34px;border-radius:50%;background:var(--cream);color:var(--muted);display:grid;place-items:center;font-size:11px;flex-shrink:0;font-weight:650}.profile strong{display:block;font-size:11px}.profile small{font-size:9px;color:var(--muted)}.profile .icon{margin-left:auto;width:15px;color:var(--muted)}.main{grid-column:2;min-width:0}.topbar{height:83px;border-bottom:1px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:15px}.breadcrumb{font-size:11px;display:flex;align-items:center;gap:12px;color:var(--muted)}.breadcrumb .icon{width:14px}.breadcrumb strong{color:var(--ink);font-weight:500}.topbar-right{display:flex;align-items:center;gap:20px}.date{font-size:11px;color:var(--muted);display:flex;gap:7px;align-items:center}.date .icon{width:15px}.connection{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px}.status-dot{width:6px;height:6px;border-radius:100%;background:var(--success);display:inline-block}.icon-btn{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--line);background:var(--surface);flex-shrink:0}.icon-btn .icon{width:16px}.notification{position:relative}.notification:after{content:'';position:absolute;width:4px;height:4px;background:var(--orange);border:2px solid var(--surface);right:7px;top:6px;border-radius:50%}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 336px;min-height:calc(100vh - 83px)}.catalog{padding:28px 30px 35px;min-width:0}.intro{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:25px}.eyebrow{font-size:9px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase;font-weight:600;margin:0 0 8px}.intro h1,.page-heading h1{font:32px var(--serif);letter-spacing:-.6px;line-height:1.2;margin:0 0 8px}.intro h1 em{font-weight:400;color:var(--muted)}.subtext{font-size:11px;color:var(--muted);margin:0;line-height:1.6}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:10px 13px;font-size:11px;background:var(--surface);font-weight:500;white-space:nowrap}.secondary .icon{width:15px;height:15px}.held-btn{position:relative;align-self:flex-start;margin-top:6px}.badge-number{font-size:9px;background:var(--green-soft);color:var(--green);padding:2px 5px;border-radius:4px}.search-row{display:flex;gap:10px;margin-bottom:22px}.searchbox{position:relative;flex:1;display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:0 13px;gap:10px;height:42px}.searchbox .icon{width:16px;color:var(--muted)}.searchbox input{border:0;outline:none;min-width:0;background:transparent;width:100%;font-size:11px;color:var(--ink)}.searchbox input::placeholder{color:var(--muted)}.key{border:1px solid var(--line);border-radius:4px;padding:2px 5px;color:var(--muted);font-size:9px}.filter-btn{width:42px;height:42px;background:var(--surface);border:1px solid var(--line);border-radius:9px;display:grid;place-items:center}.filter-btn .icon{width:16px}.tag-filters{display:flex;gap:8px;margin-bottom:26px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.tag-filter{padding:11px 15px;border:1px solid var(--line);border-radius:8px;display:flex;gap:8px;align-items:center;font-size:11px;white-space:nowrap;background:transparent;color:var(--muted)}.tag-filter .icon{width:15px;height:15px}.tag-filter.active{background:var(--green-soft);border-color:var(--line);color:var(--green);font-weight:600}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-heading h2{font-size:13px;font-weight:600;margin:0;display:flex;gap:8px;align-items:center}.section-heading h2 .icon{width:15px;height:15px;color:var(--muted)}.section-heading span{color:var(--muted);font-size:10px}.sort-btn{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:5px;padding:0}.sort-btn .icon{width:12px;height:12px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product{padding:7px;text-align:left;border:1px solid var(--line);border-radius:13px;background:var(--surface);overflow:hidden;position:relative;transition:transform .2s,border-color .2s,box-shadow .2s}.product:hover{transform:translateY(-3px);border-color:var(--line);box-shadow:0 8px 20px #254d4009}.product-photo{height:154px;position:relative;overflow:hidden;border-radius:8px;background:var(--cream)}.product-photo img{width:100%;height:100%;object-fit:cover;transition:transform .5s}.product:hover img{transform:scale(1.045)}.product-tag{position:absolute;top:9px;left:9px;border-radius:4px;background:var(--surface);color:var(--muted);padding:4px 6px;font-size:8px;font-weight:600;backdrop-filter:blur(5px)}.product-tag.popular{background:var(--green-soft);color:var(--green)}.product-tag.low{background:var(--warning-soft);color:var(--warning)}.product-details{padding:12px 5px 6px}.product-details h3{font-size:12px;font-weight:600;margin:0 0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-details p{font-size:9px;color:var(--muted);margin:0 0 12px}.product-price-row{display:flex;align-items:center;justify-content:space-between}.price{font-size:12px;font-weight:650;color:var(--green)}.add-product{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--muted)}.add-product .icon{width:13px;height:13px}.catalog-footer{font-size:9px;color:var(--muted);margin-top:24px;display:flex;gap:7px;align-items:center}.catalog-footer .icon{width:12px;height:12px}.cart-panel{background:var(--surface);border-left:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:calc(100vh - 83px);min-height:700px}.cart-top{padding:27px 23px 0}.cart-heading{display:flex;align-items:center;justify-content:space-between}.cart-heading h2{font-size:16px;letter-spacing:-.3px;margin:0}.order-number{font-size:9px;background:var(--cream);color:var(--muted);border-radius:5px;padding:5px 7px}.cart-meta{font-size:9px;color:var(--muted);margin:8px 0 18px}.order-types{padding:4px;background:var(--cream);display:flex;gap:3px;border-radius:7px}.order-type{flex:1;font-size:10px;padding:8px 2px;color:var(--muted);border-radius:4px}.order-type.active{background:var(--surface);box-shadow:0 2px 5px #00000008;color:var(--green);font-weight:500}.customer-button{display:flex;justify-content:space-between;align-items:center;width:100%;border:1px dashed var(--line);border-radius:7px;padding:11px;margin:16px 0 0;color:var(--muted);background:var(--surface);font-size:10px}.customer-button span{display:flex;align-items:center;gap:7px}.customer-button .icon{width:14px;height:14px}.cart-items{padding:0 23px;overflow-y:auto;flex:1;min-height:120px}.cart-items-heading{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);padding:23px 0 12px;border-bottom:1px solid var(--line)}.cart-items-heading button{padding:0;font-size:9px;color:var(--muted)}.cart-item{display:flex;gap:10px;padding:17px 0;border-bottom:1px solid var(--line);align-items:flex-start}.cart-thumb{width:49px;height:55px;border-radius:7px;object-fit:cover;flex-shrink:0}.cart-item-info{flex:1;min-width:0}.cart-item-name{font-size:11px;font-weight:600;line-height:1.3;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cart-item-desc{font-size:9px;color:var(--muted);margin:5px 0 9px}.quantity{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:5px;gap:8px;font-size:10px;height:23px}.quantity button{font-size:12px;width:21px;height:23px;padding:0;color:var(--muted)}.item-total{font-size:11px;white-space:nowrap;padding-top:1px;font-weight:500}.note-button{display:flex;align-items:center;gap:6px;font-size:9px;color:var(--muted);padding:17px 0}.note-button .icon{width:13px;height:13px}.cart-bottom{padding:18px 23px 20px;border-top:1px solid var(--line);background:var(--surface)}.bill-line{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);margin-bottom:12px}.bill-line span:last-child{color:var(--muted)}.bill-line.discount button{color:var(--warning);padding:0;font-size:10px;display:flex;gap:4px;align-items:center}.bill-line.discount .icon{width:12px;height:12px}.total-line{display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-top:1px dashed var(--line);margin-top:16px}.total-line span{font-size:12px}.total-line strong{font-size:24px;font-weight:600;letter-spacing:-1px;color:var(--green)}.payment-methods{display:flex;gap:7px;margin-bottom:14px}.payment-method{flex:1;border:1px solid var(--line);border-radius:7px;display:flex;justify-content:center;align-items:center;gap:6px;font-size:9px;padding:10px 2px;color:var(--muted)}.payment-method .icon{width:14px;height:14px}.payment-method.active{background:var(--green-soft);border-color:var(--green);color:var(--green)}.primary{background:var(--green);color:var(--on-accent);display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;padding:13px 20px;font-size:12px;font-weight:500}.primary .icon{width:16px;height:16px}.charge-btn{width:100%;display:flex;justify-content:space-between;padding:16px;border-radius:8px;font-size:12px}.cart-bottom-caption{display:flex;justify-content:center;align-items:center;gap:5px;font-size:8px;color:var(--muted);margin-top:11px}.cart-bottom-caption .icon{width:10px;height:10px}.content-page{padding:30px;max-width:1600px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.page-heading h1{font-size:34px}.page-heading p{font-size:12px;color:var(--muted);margin:8px 0 0}.page-actions{display:flex;gap:8px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px}.stat-card.featured{background:var(--green);color:var(--on-accent);border-color:var(--green)}.stat-title{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.featured .stat-title{color:var(--on-accent)}.stat-title .icon{width:16px;height:16px}.stat-value{font-size:29px;font-weight:500;letter-spacing:-1px;margin:16px 0 8px}.stat-foot{font-size:10px;color:var(--muted)}.featured .stat-foot{color:var(--on-accent)}.stat-foot .up{color:var(--success)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:22px}.panel-header{padding:21px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:15px}.panel-header h2{font-size:14px;font-weight:600;margin:0}.panel-header small{font-size:10px;color:var(--muted)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}th{background:var(--surface);color:var(--muted);font-size:9px;letter-spacing:.6px;font-weight:500;text-transform:uppercase;padding:13px 22px;border-bottom:1px solid var(--line)}td{padding:16px 22px;font-size:11px;border-bottom:1px solid var(--line)}tr:last-child td{border-bottom:0}td strong{font-size:11px;font-weight:600}.product-cell{display:flex;align-items:center;gap:12px}.product-cell img{width:38px;height:40px;border-radius:6px;object-fit:cover}.product-cell small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:9px;background:var(--success-soft);color:var(--success)}.pill.amber{background:var(--warning-soft);color:var(--warning)}.pill.gray{background:var(--cream);color:var(--muted)}.pill.red{background:var(--danger-soft);color:var(--danger)}.table-action{padding:5px;font-size:10px;color:var(--muted);display:flex;align-items:center;gap:5px}.table-action .icon{width:14px}.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:20px}.toolbar .searchbox{max-width:340px}.toolbar select,.form-field select{border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted);padding:12px;font-size:11px}.empty-state{padding:50px 15px;text-align:center;color:var(--muted)}.empty-state .icon{width:34px;height:34px;margin-bottom:13px}.empty-state h3{font-size:14px;color:var(--muted);font-weight:500}.empty-state p{font-size:11px}.dashboard-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:22px}.chart{display:flex;align-items:flex-end;gap:13px;height:230px;padding:25px 25px 30px;position:relative;background:repeating-linear-gradient(to top,transparent,transparent 49px,var(--cream) 49px,var(--cream) 50px)}.bar-group{height:100%;display:flex;flex:1;align-items:flex-end;position:relative;justify-content:center}.bar{background:var(--green);border-radius:5px 5px 0 0;width:65%;min-width:10px;transition:height .5s}.bar.highlight{background:var(--green-dark)}.bar-group small{position:absolute;bottom:-20px;font-size:9px;color:var(--muted)}.bar-group:hover .bar{background:var(--green-dark)}.chart-caption{display:flex;gap:15px;font-size:10px;color:var(--muted);padding:15px 25px;border-top:1px solid var(--line)}.top-seller{display:flex;align-items:center;gap:13px;padding:15px 22px;border-bottom:1px solid var(--line)}.top-seller img{width:40px;height:42px;object-fit:cover;border-radius:7px}.top-seller div{flex:1}.top-seller strong{font-size:11px;font-weight:500}.top-seller small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.top-seller>span{font-size:11px}.rank{font-size:10px;color:var(--muted)}.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.person-card{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:23px}.person-card .avatar{width:47px;height:47px;font-size:14px;margin-bottom:16px}.person-card h3{font-size:15px;font-weight:500;margin:0 0 5px}.person-card p{font-size:11px;color:var(--muted);margin:0 0 16px}.person-card .detail-line{display:flex;justify-content:space-between;font-size:10px;margin:12px 0;color:var(--muted)}.person-card .secondary{width:100%;margin-top:12px}.settings-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.form-field label{font-size:11px;color:var(--muted)}.form-field input,.form-field textarea,.form-field select{padding:12px;border:1px solid var(--line);border-radius:7px;outline:none;width:100%;background:var(--surface);color:var(--ink);font-size:12px}.form-field input:focus,.form-field textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent)}.form-field textarea{resize:vertical;min-height:80px}.form-field input[type=color]{height:42px}.form-field .hint{color:var(--muted);font-size:10px;line-height:1.6}.panel-body{padding:22px}.receipt-preview{font-family:monospace;background:var(--surface);border:1px dashed var(--line);max-width:280px;margin:auto;padding:27px;line-height:1.8;font-size:11px}.receipt-preview h3{font-family:var(--serif);font-size:30px;text-align:center;margin:0;color:var(--green)}.receipt-preview p{text-align:center;color:var(--muted);font-size:9px}.receipt-line{display:flex;justify-content:space-between}.receipt-line.total{border-top:1px dashed var(--line);margin-top:13px;padding-top:12px;font-weight:bold}dialog{border:1px solid var(--line);border-radius:17px;width:480px;max-width:calc(100vw - 30px);padding:0;background:var(--surface);box-shadow:0 24px 90px #122a2a28;color:var(--ink);max-height:92vh}dialog::backdrop{background:#1c302c73;backdrop-filter:blur(4px)}.modal-head{padding:24px 25px 17px;display:flex;justify-content:space-between;align-items:flex-start}.modal-head h2{font:27px var(--serif);letter-spacing:-.4px;margin:0}.modal-head p{font-size:11px;color:var(--muted);margin:7px 0 0}.modal-body{padding:0 25px 25px}.modal-footer{padding:17px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;background:var(--surface)}.modal-product-photo{width:100%;height:200px;object-fit:cover;border-radius:10px;margin-bottom:20px}.option-label{font-size:10px;color:var(--muted);margin:18px 0 9px;display:block}.option-group{display:flex;gap:8px}.option-btn{border:1px solid var(--line);padding:11px;flex:1;border-radius:7px;font-size:11px;display:flex;flex-direction:column;gap:5px;align-items:center}.option-btn small{color:var(--muted);font-size:9px}.option-btn.active{border-color:var(--green);background:var(--green-soft);color:var(--green)}.option-btn input{display:none}.payment-amount{text-align:center;padding:10px 0 25px}.payment-amount small{display:block;color:var(--muted);font-size:11px}.payment-amount strong{font-size:47px;font-weight:500;color:var(--green);letter-spacing:-2px;display:block;margin-top:7px}.cash-presets{display:flex;gap:7px;margin:0 0 20px}.cash-presets button{border:1px solid var(--line);border-radius:6px;flex:1;padding:9px;font-size:10px}.change-line{display:flex;justify-content:space-between;padding:15px;background:var(--green-soft);border-radius:7px;font-size:12px;margin-bottom:20px}.success-icon{width:65px;height:65px;border-radius:50%;background:var(--success-soft);color:var(--success);display:grid;place-items:center;margin:10px auto 20px}.success-icon .icon{width:30px;height:30px}.success-content{text-align:center}.success-content h2{font:32px var(--serif);margin:0}.success-content>p{font-size:11px;color:var(--muted);margin:10px 0 25px}.success-content .receipt-preview{margin-bottom:20px}.list-button{display:flex;width:100%;gap:12px;align-items:center;text-align:left;padding:16px 0;border-bottom:1px solid var(--line)}.list-button>div{flex:1}.list-button strong{font-size:12px}.list-button small{display:block;font-size:10px;color:var(--muted);margin-top:6px}.list-button>span{font-size:12px;color:var(--green)}.list-button .icon{width:15px}.notice{background:var(--warning-soft);padding:13px 15px;border-radius:8px;color:var(--warning);font-size:10px;line-height:1.8;margin-bottom:20px}.toast-message{position:fixed;inset:auto;top:calc(env(safe-area-inset-top,0px) + 16px);left:50%;margin:0;width:max-content;max-width:min(560px,calc(100vw - 32px));border:0;overflow-wrap:anywhere;overflow:visible;transform:translate(-50%,-12px);z-index:100;background:var(--green-dark);color:var(--on-accent);padding:14px 23px;border-radius:10px;box-shadow:0 6px 35px #1c3c3025;display:flex;align-items:center;gap:10px;font-size:12px;opacity:0;transition:all .2s;pointer-events:none}.toast-message.show{opacity:1;transform:translate(-50%,0)}.toast-message .icon{width:17px}.mobile-menu{display:none}.mobile-cart-toggle{display:none}.segmented{display:flex;gap:4px;background:var(--cream);border-radius:7px;padding:4px}.segmented button{font-size:10px;padding:8px 12px;border-radius:4px;color:var(--muted)}.segmented button.active{background:var(--surface);color:var(--green);box-shadow:0 1px 5px #00000005}.danger{color:var(--danger)}.toggle-row{display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid var(--line);gap:20px}.toggle-row strong{font-size:11px;font-weight:500}.toggle-row p{font-size:10px;color:var(--muted);margin:5px 0 0}.toggle{height:22px;width:38px;border-radius:20px;background:var(--cream);padding:3px;flex-shrink:0}.toggle:after{content:'';display:block;width:16px;height:16px;border-radius:50%;background:var(--surface);transition:transform .2s}.toggle.on{background:var(--success)}.toggle.on:after{transform:translateX(16px)}.no-results{grid-column:1/-1}.table-detail{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}.table-detail div{padding:13px;background:var(--surface);border-radius:7px;font-size:11px}.table-detail small{display:block;font-size:9px;color:var(--muted);margin-bottom:7px}@media(min-width:1600px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog{padding:32px 38px}.product-photo{height:185px}.workspace{grid-template-columns:minmax(0,1fr) 370px}.cart-top,.cart-items{padding-left:27px;padding-right:27px}.cart-bottom{padding:20px 27px}.intro h1{font-size:38px}.product-details h3{font-size:13px}}@media(max-width:1200px){.app-layout{grid-template-columns:175px minmax(0,1fr)}.sidebar{width:175px;padding-left:13px;padding-right:13px}.workspace{grid-template-columns:minmax(0,1fr) 305px}.catalog{padding:26px 23px}.intro h1{font-size:27px}.product-grid{gap:12px}.product-photo{height:132px}.tag-filter{padding:10px 12px}.cart-top,.cart-items{padding-left:20px;padding-right:20px}.cart-bottom{padding:18px 20px}.held-btn{font-size:10px;padding:9px}.intro{gap:7px}.brand{font-size:40px}.topbar{padding:0 23px}.product-details h3{font-size:11px}.people-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:1100px){.app-layout{grid-template-columns:76px minmax(0,1fr)}.sidebar{width:76px;padding:28px 12px 16px;align-items:center}.brand{font-size:33px;letter-spacing:-3px;padding:0 0 30px}.brand-dot{width:5px;height:5px}.nav-item span,.nav-label,.store-switch,.sidebar-note,.profile>div:not(.avatar),.profile>.icon,.side-separator{display:none}.nav-item{padding:15px;justify-content:center}.nav-item .icon{width:20px;height:20px}.nav{width:100%;gap:8px}.sidebar-bottom{width:100%}.sidebar-bottom .nav-item{margin-bottom:14px}.profile{padding:0;justify-content:center}.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.product-grid{gap:12px}.catalog{padding:25px 22px}.product-photo{height:135px}.date{display:none}.settings-grid{grid-template-columns:1fr}.intro h1{font-size:27px}.held-btn span.label{display:none}}@media(max-width:820px){.workspace{grid-template-columns:minmax(0,1fr) 280px}.catalog{padding:23px 18px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.intro h1{font-size:25px}.topbar{height:70px;padding:0 20px}.cart-panel{height:calc(100vh - 70px)}.cart-top,.cart-items{padding-left:17px;padding-right:17px}.cart-bottom{padding:15px 17px}.product-photo{height:145px}.content-page{padding:24px 20px}.page-heading h1{font-size:29px}.page-actions .secondary{display:none}.people-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.app-layout{display:block}.main{width:100%}.sidebar{transform:translateX(-100%);width:206px;align-items:stretch;box-shadow:15px 0 60px #123a2c25;transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar.open .nav-item span,.sidebar.open .nav-label,.sidebar.open .store-switch,.sidebar.open .sidebar-note,.sidebar.open .profile>div:not(.avatar),.sidebar.open .profile>.icon,.sidebar.open .side-separator{display:block}.sidebar.open .nav-item{justify-content:flex-start;padding:12px}.sidebar.open .brand{padding:0 12px 30px;letter-spacing:-2px;justify-content:flex-start}.sidebar.open .profile{justify-content:flex-start;padding:5px}.sidebar.open .store-switch{display:flex}.mobile-menu{display:inline-grid;margin-right:4px;width:30px;height:30px;place-items:center}.topbar{height:64px;padding:0 17px}.breadcrumb{gap:7px}.breadcrumb>.icon{display:none}.topbar-right{gap:11px}.connection{font-size:9px}.workspace{display:block;min-height:calc(100vh - 64px)}.catalog{padding:25px 20px 100px}.intro{margin-bottom:23px}.intro h1{font-size:31px}.intro .eyebrow{font-size:8px}.intro .subtext{font-size:10px}.held-btn span.label{display:inline}.held-btn{padding:8px 9px}.product-grid{gap:13px}.product-photo{height:167px}.tag-filters{margin-bottom:24px;gap:7px}.tag-filter{font-size:10px;padding:10px 13px}.product-details h3{font-size:12px}.cart-panel{display:none;position:fixed;inset:64px 0 0;height:calc(100dvh - 64px);min-height:0;z-index:25;overflow:hidden;border:0}.cart-panel.mobile-open{display:flex}.cart-top{padding:22px 24px 0}.cart-items{padding:0 24px}.cart-bottom{padding:18px 24px}.mobile-cart-toggle{display:flex;position:fixed;bottom:18px;left:20px;right:20px;z-index:26;border-radius:9px;padding:16px 20px;background:var(--green);color:var(--on-accent);align-items:center;justify-content:space-between;box-shadow:0 5px 25px #17392f38;font-size:12px}.mobile-cart-toggle .icon{width:18px}.mobile-cart-toggle>span{display:flex;align-items:center;gap:10px}.mobile-cart-toggle.hide{display:none}.cart-heading .close-mobile{display:inline-flex}.cart-panel .cart-meta{margin-bottom:14px}.content-page{padding:25px 18px 35px}.page-heading{align-items:flex-start}.page-heading h1{font-size:29px}.page-heading p{font-size:10px;max-width:230px}.page-heading .primary{padding:11px;font-size:10px;white-space:nowrap}.stats-grid{gap:10px}.stat-card{padding:16px}.stat-value{font-size:26px}.stat-title{font-size:10px}.stat-foot{font-size:9px}.people-grid{grid-template-columns:1fr}.page-heading .segmented button{font-size:9px;padding:7px}.page-heading .segmented{margin-top:5px}.toolbar{flex-wrap:wrap}.toolbar .searchbox{max-width:none}.toolbar select{font-size:10px}.dashboard-grid{gap:0}.panel-header{padding:18px}.panel-header h2{font-size:12px}.panel-header small{font-size:9px}td,th{padding:14px 18px}.form-grid{grid-template-columns:1fr;gap:0}.toast-message{width:max-content;max-width:90vw;font-size:11px}.settings-grid{gap:0}.intro{gap:5px}.intro .held-btn .icon{display:none}.date{display:none}}.close-mobile{display:none}@media print{body>*{display:none!important}body>dialog{display:block!important;position:static;width:100%;max-width:none;border:0;box-shadow:none}.modal-head,.modal-footer,.modal-body>button,.success-content>p,.success-content>h2,.success-icon{display:none!important}.receipt-preview{border:0}.modal-body{padding:0}}
.store-switch>div{flex:1;min-width:0}.store-switch>.icon{width:12px;height:12px}.store-name{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.store-location{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subtext>.icon{width:12px;height:12px;vertical-align:middle;margin:4px 3px 4px 0}.pill>.icon{width:11px;height:11px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.subtext,.page-heading p{color:var(--muted)}.product-details p{color:var(--muted);font-size:10px}.cart-item-desc{color:var(--muted)}.date,.breadcrumb{color:var(--muted)}.eyebrow,.nav-label{color:var(--muted)}.bill-line{color:var(--muted)}.cart-bottom-caption{color:var(--muted)}.nav-item{color:var(--muted)}.nav-item.active{color:var(--on-accent)}.form-field label{color:var(--muted)}
@media(max-width:640px){.topbar{position:sticky;top:0;z-index:35}.sidebar{z-index:40;visibility:hidden}.sidebar.open{visibility:visible}body.cart-is-open{overflow:hidden}.product-details p{min-height:27px}.quantity{height:29px}.quantity button{width:28px;height:29px}}

.cart-panel{min-height:0}.cart-items{min-height:80px}@media(max-height:850px) and (min-width:641px){.sidebar-note{display:none}.sidebar-bottom{padding-top:15px}}
.boot-loading{display:grid;min-height:100dvh;place-content:center;text-align:center}.boot-loading .brand{justify-content:center}.boot-loading p{font-size:12px;color:var(--muted)}.welcome-layout{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.welcome-story{background:var(--green-soft);padding:48px 60px 30px;display:flex;flex-direction:column;border-right:1px solid var(--line)}.welcome-story .brand{padding:0}.welcome-copy{max-width:475px;margin:auto;padding:65px 0 40px}.welcome-copy h1{font:clamp(40px,4.2vw,68px)/1.12 var(--serif);letter-spacing:-1.5px;margin:15px 0 22px}.welcome-copy h1 em{color:var(--muted)}.welcome-copy>p:not(.eyebrow){font-size:13px;line-height:1.9;color:var(--muted)}.welcome-photo{height:200px;margin-top:35px;position:relative;border-radius:100px 100px 12px 12px;overflow:hidden;max-width:420px}.welcome-photo img{width:100%;height:100%;object-fit:cover;filter:brightness(.8)}.welcome-photo>span{position:absolute;left:25px;bottom:22px;color:var(--muted);font:26px/1.15 var(--serif)}.welcome-photo>span em{font-weight:400;color:var(--muted)}.welcome-foot,.welcome-main-foot{font-size:10px;color:var(--muted);line-height:1.8}.welcome-main{display:flex;flex-direction:column;background:var(--surface);padding:60px 55px 30px;min-width:0}.welcome-form{width:100%;max-width:400px;margin:auto;padding:30px 0 60px}.welcome-icon{width:49px;height:49px;background:var(--green-soft);border:1px solid var(--line);color:var(--green);border-radius:12px;display:grid;place-items:center;margin-bottom:30px}.welcome-icon .icon{width:22px;height:22px}.welcome-form h2{font:42px var(--serif);letter-spacing:-1px;margin:10px 0 16px}.welcome-intro{font-size:12px;line-height:1.9;color:var(--muted);margin:0 0 30px}.welcome-perks{display:flex;flex-direction:column;gap:19px;padding:30px 0;color:var(--muted);font-size:11px}.welcome-perks span{display:flex;align-items:center;gap:11px}.welcome-perks .icon{width:15px;height:15px}.welcome-legal{border-top:1px solid var(--line);padding-top:20px;font-size:10px;color:var(--muted);line-height:1.9}.welcome-main-foot{text-align:center}.welcome-account{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding-bottom:23px;margin-bottom:35px}.welcome-account>div{flex:1;min-width:0}.welcome-account strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.welcome-account small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.welcome-account>a{color:var(--muted);padding:8px}.workspace-list{display:flex;flex-direction:column;gap:10px;margin-bottom:30px}.workspace-card{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:18px;text-align:left;width:100%}.workspace-card>span:nth-child(2){flex:1}.workspace-card strong{display:block;font-size:13px;font-weight:550}.workspace-card small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.workspace-card>.icon{width:17px;color:var(--muted)}.workspace-symbol{width:38px;height:38px;background:var(--cream);display:grid;place-items:center;border-radius:9px;color:var(--green)}.workspace-card:hover{background:var(--surface);border-color:var(--green)}.create-workspace{border-top:1px solid var(--line);padding-top:25px}.create-workspace h3{font:22px var(--serif);margin:0 0 20px}.checkbox-label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px;margin-bottom:13px;cursor:pointer}.checkbox-label input{accent-color:var(--green);width:15px;height:15px}.checkbox-label small{font-size:10px;color:var(--muted)}.invite-card{padding:15px;border:1px solid var(--warning);background:var(--warning-soft);border-radius:9px;display:flex;align-items:center;gap:13px;margin:10px 0 18px}.invite-card>div{flex:1}.invite-card strong{font-size:12px;display:block}.invite-card small{font-size:9px;color:var(--muted);margin-top:5px;display:block}.invite-card .secondary{font-size:10px;padding:9px}.invitations-list{margin-bottom:25px}.workspace-chooser{padding-top:0}.profile{width:100%;text-align:left}.profile>div:not(.avatar){min-width:0;flex:1}.profile strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:105px}.secondary[href]{text-decoration:none}.sync-error{color:var(--warning)!important}.sync-error .status-dot{background:var(--danger)}@media(max-width:1050px){.welcome-story{padding:35px}.welcome-main{padding:40px 35px 25px}.welcome-copy h1{font-size:48px}.welcome-copy>p:not(.eyebrow){font-size:12px}.welcome-foot{font-size:9px}}@media(max-width:700px){.welcome-layout{grid-template-columns:1fr}.welcome-story{padding:25px 25px 0;border:0;background:var(--green-soft)}.welcome-story .brand{font-size:36px;padding:0}.welcome-copy{margin:0;padding:32px 0 27px}.welcome-copy h1{font-size:40px;margin:10px 0 0}.welcome-copy .eyebrow{font-size:8px}.welcome-copy>p:not(.eyebrow),.welcome-photo,.welcome-foot{display:none}.welcome-main{padding:30px 25px 25px}.welcome-form{padding:0 0 30px;max-width:500px}.welcome-form h2{font-size:33px}.welcome-icon{display:none}.welcome-intro{font-size:11px;margin-bottom:23px}.welcome-form>.eyebrow{display:none}.welcome-main-foot{font-size:9px}.welcome-account{margin-bottom:25px}.welcome-legal{font-size:10px}.welcome-story .welcome-copy h1 br{display:none}.welcome-story .welcome-copy h1{font-size:35px}.welcome-perks{gap:16px}.welcome-main .workspace-chooser{margin-top:0}.profile strong{max-width:110px}.welcome-copy h1 em{margin-left:6px}}

.tag-list{max-height:260px;overflow:auto;margin-bottom:22px}.tag-list-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}.tag-list-row>span{display:flex;align-items:center;gap:9px;overflow-wrap:anywhere;min-width:0;font-size:12px}.tag-list-row .icon{width:15px;height:15px;color:var(--muted);flex-shrink:0}.tag-list-row small{font-size:10px;color:var(--muted);white-space:nowrap}.tag-filter{max-width:240px;overflow-wrap:anywhere;white-space:normal!important;text-align:left}.tag-filters{overflow-x:auto;max-width:100%}

.tag-list-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.tag-delete .icon{color:var(--danger)}.tag-delete-confirm{background:var(--danger)}.tag-delete-confirm:hover{background:var(--danger)}@media(pointer:coarse){.tag-delete{min-width:44px;min-height:44px}}

.tag-icon-field,.product-tags-field{border:0;padding:0;margin:0 0 20px;min-width:0}.tag-icon-field legend,.product-tags-field legend{font-size:11px;color:var(--muted);font-weight:500;padding:0;margin-bottom:10px}.tag-icon-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:7px}.tag-icon-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:58px;padding:10px 5px;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--muted)}.tag-icon-choice .icon{width:20px;height:20px}.tag-icon-choice span{font-size:10px;line-height:1.3}.tag-icon-choice.active{background:var(--green-soft);border-color:var(--green);color:var(--green)}.product-tags-field legend small{font-weight:400;font-size:10px;color:var(--muted);margin-left:6px}.product-tags-choices{display:flex;flex-wrap:wrap;gap:8px;max-height:200px;overflow:auto;padding:3px 1px}.product-tag-choice{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:11px;line-height:1.6;min-width:0;max-width:100%;overflow-wrap:anywhere;cursor:pointer}.product-tag-choice:has(input:checked){background:var(--green-soft);border-color:var(--green);color:var(--green)}.product-tag-choice input{accent-color:var(--green);margin:0;flex-shrink:0}.product-tag-choice .icon{width:15px;height:15px;flex-shrink:0}.product-new-tag{margin:0 0 22px;border:1px solid var(--line);border-radius:8px;padding:12px}.product-new-tag summary{font-size:11px;color:var(--muted);cursor:pointer}.product-new-tag[open] summary{margin-bottom:16px}.product-new-tag .subtext{font-size:10px}.product-tag-labels{display:flex;flex-wrap:wrap;gap:5px;max-width:260px;white-space:normal}.product-tag-label{display:inline-flex;align-items:center;gap:5px;background:var(--green-soft);border-radius:5px;padding:4px 7px;font-size:10px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.product-tag-label .icon{width:12px;height:12px;flex-shrink:0}@media(pointer:coarse){.tag-icon-choice,.product-tag-choice{min-height:44px}.tag-list-actions .icon-btn{min-width:44px;min-height:44px}}@media(max-width:420px){.tag-list-actions{gap:6px}.tag-list-row{gap:10px}.tag-icon-choice span{font-size:11px}}

.google-auth{margin-bottom:14px}.google-button{min-height:42px;max-width:400px;overflow:hidden}.google-auth-error:empty{display:none}.google-auth-error{font-size:11px;line-height:1.7;color:var(--warning);margin:12px 0 0}.account-signout{color:var(--muted);background:transparent;border:0;padding:8px;cursor:pointer}
i.icon{width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0}i.icon:before{font-size:inherit}.secondary i.icon,.table-action i.icon{font-size:16px}.tag-icon-choices{max-height:280px;overflow:auto;margin-top:12px;grid-template-columns:repeat(auto-fill,minmax(75px,1fr))}.tag-icon-choice span{overflow-wrap:anywhere;max-width:100%}.business-tabs{display:flex;gap:6px;padding:5px;background:var(--green-soft);border-radius:10px;margin-bottom:28px;overflow:auto}.business-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 17px;border-radius:7px;color:var(--muted);white-space:nowrap;font-size:12px}.business-tabs button.active{background:var(--surface);color:var(--green);box-shadow:0 2px 8px #254d4010}.location-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.location-card{padding:25px}.location-card h2{font:24px var(--serif);margin:20px 0 8px}.location-card p{min-height:22px;font-size:12px;color:var(--muted)}.location-card .pill{float:right}.location-symbol{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;background:var(--green-soft);border-radius:12px;color:var(--green)}.location-symbol .icon{font-size:26px}.recipe-line,.document-line{display:flex;gap:10px;align-items:center;margin:8px 0}.recipe-line .form-field:first-child,.document-line .form-field:first-child{flex:2}.recipe-line .form-field,.document-line .form-field{flex:1;min-width:0}.recipe-line .icon-btn,.document-line .icon-btn{margin-top:10px}.cell-note{display:block;font-size:10px;color:var(--muted);margin-top:6px;max-width:280px;overflow-wrap:anywhere}.pos-location-control{display:flex;flex-direction:column;gap:6px;min-width:125px;margin-left:auto}.pos-location-control label,.cashier-select{font-size:10px;color:var(--muted)}.pos-location-control select,.cashier-select select{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:9px;font-size:11px;max-width:200px}.cashier-select{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.cashier-select select{max-width:175px}.camera-frame{aspect-ratio:4/3;background:var(--green-dark);border-radius:12px;overflow:hidden;margin-bottom:14px}.camera-frame video,.camera-frame img{width:100%;height:100%;object-fit:cover}.camera-frame [hidden]{display:none}.camera-buttons{display:flex;gap:8px;margin-top:14px}.attendance-cell{display:flex;align-items:center;gap:10px;font-size:11px}.attendance-thumb{width:42px;height:42px;object-fit:cover;border-radius:8px}.photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.photo-pair img{width:100%;border-radius:10px}.evidence-photo{width:100%;border-radius:12px}.calendar-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:12px}.shift-calendar{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));min-width:840px;background:var(--surface);gap:1px}.calendar-day-name{padding:13px;font-size:11px;font-weight:600;text-align:center;background:var(--cream)}.calendar-day{min-height:150px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px;background:var(--surface)}.shift-calendar.week .calendar-day{min-height:400px}.calendar-day.today{background:var(--green-soft)}.calendar-date{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;margin-bottom:12px}.calendar-date button{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.calendar-shift{width:100%;display:flex;flex-direction:column;gap:5px;text-align:left;padding:10px 8px;background:var(--green-soft);border-left:3px solid var(--green);border-radius:5px;margin:6px 0;font-size:10px}.calendar-shift strong{font-size:11px}.calendar-shift small{color:var(--muted);line-height:1.5}.payroll-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}.business-details{border:1px solid var(--line);border-radius:8px;padding:14px;margin:14px 0}.business-details summary{cursor:pointer;font-size:12px;font-weight:600;color:var(--green)}.business-details[open] summary{margin-bottom:14px}.business-details .hint{line-height:1.7;margin-bottom:14px}.payslip .bill-line{font-size:12px;margin:12px 0}.payslip h3{font:22px var(--serif);margin:24px 0 16px}.payslip .total-line{margin:20px 0}.payroll-issues li{font-size:12px;line-height:1.8}.rules-copy p{font-size:12px;line-height:1.8}.rules-copy a{color:var(--green);text-decoration:underline}.operation-busy #app,.operation-busy #modal{pointer-events:none}.operation-busy{cursor:progress}.toolbar>.form-field{margin:0;min-width:140px}.toolbar{flex-wrap:wrap}.modal-body:has(.table-wrap){overflow-x:auto}.modal-head h2{overflow-wrap:anywhere}#modal:has(.payroll-issues),#modal:has(.table-wrap){width:min(1100px,94vw);max-width:1100px}.sidebar{overflow-y:auto}.sidebar-bottom{padding-top:20px}.sidebar-note{display:none}.people-grid .table-action{margin-bottom:10px}.hint{display:block;line-height:1.6}
@media(max-width:700px){.business-tabs{margin-bottom:22px}.business-tabs button{padding:11px 12px;font-size:11px}.recipe-line,.document-line{flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:10px}.document-line .form-field:first-child,.recipe-line .form-field:first-child{flex-basis:100%}.intro{flex-wrap:wrap}.pos-location-control{order:3;margin-left:0;flex-basis:100%;flex-direction:row;align-items:center;gap:10px}.pos-location-control select{flex:1;max-width:none}.tag-icon-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.location-card{padding:20px}.payroll-actions .secondary{flex:1}.business-tabs .icon{display:none}.toolbar>.form-field{width:100%}.toolbar>.form-field select{width:100%}}
@media print{body:has(dialog[open]) #app{display:none!important}dialog[open]{position:static;width:100%!important;max-width:none!important;max-height:none!important;border:0;padding:0}dialog[open] .modal-footer,dialog[open] .modal-head>button,dialog[open] .table-action{display:none!important}dialog[open] .modal-body{overflow:visible!important}dialog::backdrop{background:var(--surface)}.table-wrap{overflow:visible!important}table{font-size:9px}.payslip{max-width:620px;margin:auto}}

[hidden]{display:none!important}

/* Shared control sizing keeps labels, selects and toolbar actions aligned. */
select{min-height:42px;min-width:0;line-height:1.4;text-overflow:ellipsis}
.store-switch>div{min-width:0;flex:1}.store-name,.store-location{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-icon{flex-shrink:0}.store-switch>.icon{margin-left:auto}
.intro{flex-wrap:wrap;align-items:flex-start;gap:18px}.pos-intro-copy{flex:1 1 250px;min-width:0}.pos-controls{display:flex;align-items:flex-end;gap:10px;flex:1 1 250px;justify-content:flex-end;min-width:0}.pos-location-control{flex:1;max-width:240px;min-width:0;gap:7px;margin:0;flex-direction:column;align-items:stretch}.pos-location-control select{width:100%;max-width:none;height:42px;padding:10px 12px;color:var(--ink)}.pos-location-control label{line-height:1.4}.pos-controls .held-btn{align-self:auto;min-height:42px;margin:0;flex-shrink:0}.inventory-location-row{display:flex;margin-bottom:18px}.inventory-location-row .form-field{margin:0;width:min(100%,320px)}.inventory-location-row select{height:42px}.toolbar{align-items:center;flex-wrap:wrap}.toolbar .searchbox{min-width:180px}.toolbar .secondary,.toolbar>select{min-height:42px}.toolbar>.form-field{margin:0}.cashier-select select{min-width:0;flex:1;min-height:34px;height:34px;max-width:200px}
/* Reserve space for selected items and keep controls comfortable to tap. */
.cart-panel{display:flex;height:calc(100dvh - 83px);min-height:0;overflow:hidden}.cart-top{padding:16px 20px 0;flex-shrink:0}.cart-meta{margin:6px 0 10px}.cashier-select{margin:8px 0}.customer-button{margin-top:10px;padding:9px 11px}.cart-items{padding:0 20px 10px;min-height:100px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;flex:1 1 0}.cart-items-heading{position:sticky;top:0;background:var(--surface);z-index:1;padding:14px 0 10px;font-size:10px}.cart-item{gap:12px;padding:14px 0;align-items:flex-start;flex-shrink:0}.cart-thumb{width:44px;height:48px;object-fit:cover;border-radius:7px;flex-shrink:0}.cart-item-info{min-width:0}.cart-item-name{font-size:13px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}.cart-item-desc{font-size:11px;line-height:1.5;margin:4px 0 10px;overflow-wrap:anywhere}.cart-item-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.quantity{height:34px;gap:6px;font-size:12px;flex-shrink:0}.quantity button{height:34px;width:32px;font-size:17px}.quantity>span{min-width:18px;text-align:center}.item-total{font-size:12px;padding:0;font-weight:600}.cart-bottom{flex:0 0 auto;padding:10px 20px 14px}.cart-bill-details>summary{font-size:11px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;cursor:pointer;min-height:30px;list-style:none}.cart-bill-details>summary::-webkit-details-marker{display:none}.cart-bill-details>summary .icon{width:14px;height:14px}.cart-bill-details[open]{padding-bottom:4px}.cart-bill-details .bill-line{margin:9px 0;font-size:11px}.total-line{padding:10px 0;margin-top:4px}.total-line strong{font-size:24px}.payment-methods{margin-bottom:10px}.payment-method{min-height:38px;font-size:10px}.charge-btn{padding:13px 16px;min-height:44px}.cart-bottom-caption{margin-top:8px}.note-button{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.cart-items:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
/* Item visuals use one saved icon and color everywhere an item is shown. */
.item-icon-visual{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:6px}.item-icon-visual>.icon{font-size:28px;width:28px;height:28px}.product-photo>.item-icon-visual{width:100%;height:100%;border-radius:8px}.product-photo>.item-icon-visual>.icon{font-size:64px;width:64px;height:64px}.product-cell>.item-icon-visual{width:38px;height:40px}.item-icon-visual.cart-thumb>.icon{font-size:26px;width:26px;height:26px}.item-icon-visual.modal-product-photo{display:flex;width:100%;height:200px;margin-bottom:20px;border-radius:10px}.item-icon-visual.modal-product-photo>.icon{font-size:70px;width:70px;height:70px}.item-appearance{margin:20px 0;border:1px solid var(--line);border-radius:10px;padding:16px;min-width:0}.item-appearance>legend{font-size:12px;color:var(--green);padding:0 6px}.item-appearance .tag-icon-field{margin:0}.item-appearance-preview{margin-top:12px}.appearance-thumb{width:84px;height:84px;object-fit:cover;border-radius:10px}.item-icon-visual.appearance-thumb>.icon{font-size:40px;width:40px;height:40px}.item-appearance input[type=color]{width:100%;padding:5px;height:44px}
.weekly-plans{margin-top:24px}.weekly-plan-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.weekly-plan-row:first-child{padding-top:0}.weekly-plan-row:last-child{border:0;padding-bottom:0}.weekly-plan-row>div{min-width:0}.weekly-plan-row strong{font-size:13px;overflow-wrap:anywhere}.weekly-plan-row p{font-size:12px;color:var(--muted);margin:7px 0;line-height:1.6}.weekly-plan-row small{font-size:11px;color:var(--muted)}.weekly-plan-row button{flex-shrink:0}.weekly-plans .panel-header small{display:block;margin-top:7px;line-height:1.6}.calendar-rest{background:var(--cream);border:1px dashed var(--line);border-radius:5px;padding:9px 8px;margin:6px 0;display:flex;flex-direction:column;gap:5px;line-height:1.5}.calendar-rest strong{font-size:11px}.calendar-rest span{font-size:10px;color:var(--muted)}.schedule-toolbar{gap:8px}.page-actions{flex-wrap:wrap;justify-content:flex-end}
@media(min-width:641px) and (max-height:720px){.cart-top{padding-top:12px}.cart-meta,.cart-bottom-caption{display:none}.cart-bottom{padding-bottom:10px}.cart-top .customer-button{margin-top:8px}.cart-item{padding:12px 0}.cart-top .order-type{padding:7px 2px}}
@media(max-width:820px){.cart-panel{height:calc(100dvh - 70px)}.pos-controls{justify-content:flex-start;flex-basis:100%}.cart-top,.cart-items,.cart-bottom{padding-left:16px;padding-right:16px}}
@media(max-width:640px){.cart-panel{display:none;position:fixed;inset:0;height:100dvh;width:100%;max-height:none;min-height:0;border:0;z-index:60;padding:env(safe-area-inset-top) 0 0}.cart-panel.mobile-open{display:flex}.cart-top{padding:14px 20px 0}.cart-items{padding:0 20px 10px;min-height:100px}.cart-bottom{padding:10px 20px max(12px,env(safe-area-inset-bottom))}.cart-panel .cart-meta{margin:6px 0 8px}.cart-panel .quantity{height:36px}.cart-panel .quantity button{width:36px;height:36px}.cart-panel .payment-method{min-height:40px}.cart-heading .close-mobile{display:inline-flex}.pos-controls{gap:10px;align-items:flex-end}.pos-location-control{flex-direction:column;align-items:stretch;flex-basis:auto;max-width:none}.pos-intro-copy{flex-basis:100%}.intro .held-btn .icon{display:inline-flex}.pos-controls .held-btn .label{display:none}.weekly-plan-row{align-items:flex-start;flex-direction:column;gap:10px}.weekly-plan-row button{width:100%}.page-heading{flex-wrap:wrap}.page-actions{width:100%;justify-content:flex-start}.page-actions .secondary{display:inline-flex}.page-actions .primary,.page-actions .secondary{flex:1}.calendar-shift,.calendar-rest{line-height:1.5}.schedule-toolbar strong{font-size:12px}}
@media(max-width:640px) and (max-height:650px){.cart-meta,.cart-bottom-caption{display:none}.cart-top .cart-meta{display:none}.cart-top{padding-top:10px}.cart-bottom{padding-top:6px;padding-bottom:8px}.cart-top .customer-button{margin-top:6px}.cart-item{padding:12px 0}.cart-panel .payment-method{min-height:34px;padding:8px 2px}.cart-panel .total-line{padding:6px 0}.cart-panel .charge-btn{min-height:40px;padding:11px}.cart-top .order-type{padding:6px 2px}}
@media(max-height:480px){.cart-panel.mobile-open{overflow-y:auto}.cart-panel.mobile-open .cart-items{flex:0 0 180px;min-height:180px}.cart-panel.mobile-open .cart-bottom{overflow:visible}}
.cart-item-controls{flex-wrap:wrap;row-gap:8px}.cart-item-controls .item-total{margin-left:auto}

.top-seller>.item-icon-visual{width:40px;height:42px;border-radius:7px}

/* Tablet-first workspace. The menu and cart share the viewport; each list scrolls. */
:root{--rail-width:72px;--topbar-height:64px}
html{scroll-padding-top:var(--topbar-height)}
body{min-width:min(320px,100%)}
button,input,select,textarea,a{touch-action:manipulation}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--warning);outline-offset:3px}
.app-layout{grid-template-columns:var(--rail-width) minmax(0,1fr);min-height:100dvh}
.main,.catalog,.content-page,.panel,.panel-body,.form-grid,.form-field{min-width:0;max-width:100%}
.sidebar{width:var(--rail-width);padding:18px 8px 12px;align-items:center;overflow-y:auto;overscroll-behavior:contain}
.sidebar .brand{font-size:29px;letter-spacing:-1.7px;padding:4px 0 24px;gap:1px;justify-content:center}
.sidebar .brand-domain{font-size:15px;letter-spacing:-.6px}
.sidebar .nav{width:100%;gap:5px}
.sidebar .nav-item{padding:12px;min-height:46px;justify-content:center}
.sidebar .nav-item .icon{width:21px;height:21px;font-size:21px}
.sidebar .nav-item span,.sidebar .nav-label,.sidebar .store-switch,.sidebar .profile>div:not(.avatar),.sidebar .profile>.icon,.sidebar .side-separator{display:none}
.sidebar .sidebar-bottom{width:100%;padding-top:14px}
.sidebar .sidebar-bottom .nav-item{margin:0 0 5px}
.sidebar .profile{justify-content:center;min-height:44px;padding:4px}
.sidebar-note{display:none!important}.sidebar-close,.nav-backdrop,.mobile-menu{display:none}
.topbar{height:var(--topbar-height);position:sticky;top:0;padding:0 20px;z-index:30;gap:12px}
.breadcrumb{min-width:0;gap:8px;font-size:12px}.breadcrumb strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-right{gap:12px;flex-shrink:0}.connection{font-size:11px}.date{display:none}
.icon-btn{width:44px;height:44px;min-width:44px;min-height:44px}.icon-btn .icon{width:18px;height:18px;font-size:18px}
.primary,.secondary,.filter-btn{min-height:44px;font-size:13px}.primary{padding:12px 18px}.secondary{padding:10px 13px}
select,.form-field select,.form-field input:not([type=checkbox]):not([type=radio]),.searchbox{min-height:44px}
.form-field input,.form-field select,.form-field textarea{font-size:14px;line-height:1.5;min-width:0}
.form-field label{font-size:12px;line-height:1.5}.form-field .hint,.hint{font-size:11px}
.searchbox{min-width:0;height:44px}.searchbox input{font-size:14px}.filter-btn{width:44px;min-width:44px;height:44px}
/* Size each row from its cards so a long catalog scrolls instead of squeezing rows. */
.product-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));grid-auto-rows:max-content;gap:12px;align-content:start}
.product{min-width:0;min-height:0;touch-action:manipulation}.product-photo{height:auto;aspect-ratio:4/3}
.product-details{padding:10px 5px 5px}.product-details h3{font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:2.8em;margin-bottom:5px}
.product-details p{font-size:11px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3em;margin-bottom:10px}
.price{font-size:14px}.add-product{width:30px;height:30px;flex-shrink:0}.product-tag{font-size:10px;max-width:calc(100% - 16px)}
.catalog .section-heading{min-width:0;gap:10px;flex-wrap:wrap}.catalog .section-heading h2{min-width:0;max-width:100%;font-size:13px;flex:1;flex-wrap:wrap;line-height:1.5}
.catalog .section-title{min-width:0;overflow-wrap:anywhere;color:var(--ink);font-size:13px}.catalog #product-count{white-space:nowrap;font-size:11px}
.catalog .sort-btn{min-height:36px;max-width:100%;font-size:12px;text-align:left;flex-shrink:0}
.pos-controls{gap:10px;align-items:flex-end;flex:1 1 240px;justify-content:flex-start;min-width:0}.pos-location-control{order:0;min-width:0;max-width:none;flex:1;flex-basis:0;flex-direction:column;align-items:stretch}
.pos-location-control label{font-size:11px}.pos-location-control select{font-size:13px;height:44px}.pos-controls .held-btn{height:44px;font-size:12px;margin:0}.pos-controls .held-btn .icon{display:inline-flex}.pos-controls .held-btn .label{display:inline}
/* Tags never shrink. Swipe the row or open the searchable complete list. */
.pos-tag-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-width:0;max-width:100%;align-items:start}
.pos-tag-bar .tag-filters{display:flex;flex-wrap:nowrap;align-items:stretch;gap:8px;min-width:0;max-width:100%;margin:0;padding:0 0 8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--muted) var(--cream);scroll-padding-inline:2px}
.pos-tag-bar .tag-filters::-webkit-scrollbar{height:5px}.pos-tag-bar .tag-filters::-webkit-scrollbar-thumb{background:var(--muted);border-radius:5px}
.pos-tag-bar .tag-filter{flex:0 0 auto;min-height:44px;max-width:220px;padding:10px 13px;gap:8px;font-size:13px;white-space:nowrap!important;overflow:hidden;line-height:1.4}
.tag-filter .tag-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.tag-filter .icon{font-size:17px;width:17px;height:17px}
.all-tags-button{min-width:44px;max-width:150px;height:44px;white-space:nowrap;background:var(--surface)}.all-tags-button .badge-number{font-size:10px}
.pos-tag-choices{display:grid;gap:8px;margin-top:16px}.pos-tag-choice{display:flex;align-items:center;gap:12px;padding:13px;min-height:48px;width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;text-align:left}
.pos-tag-choice>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}.pos-tag-choice small{color:var(--muted);font-size:12px}.pos-tag-choice.active{background:var(--green-soft);border-color:var(--green);color:var(--green)}
/* Give selected items the largest share of the order panel. */
.cart-panel{display:flex;position:relative;top:auto;height:100%;min-height:0;max-height:none;overflow:hidden;width:auto;border-left:1px solid var(--line);padding:0}
.cart-top{padding:12px 16px 0;flex:0 1 auto;min-height:0;max-height:42%;overflow-y:auto;overscroll-behavior:contain}
.cart-heading{gap:8px;min-height:44px}.cart-heading h2{font-size:16px;flex:1;min-width:0}.order-number{font-size:10px;white-space:nowrap;padding:4px 5px}.cart-heading .close-mobile{display:none}
.cart-hold{min-height:44px;min-width:50px;justify-content:center;font-size:12px;gap:5px}.cart-hold .icon{width:15px;height:15px;font-size:15px}.cart-meta{display:none}
.order-settings{margin:0 0 8px}.order-settings>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;font-size:12px;cursor:pointer;list-style:none;color:var(--muted)}.order-settings>summary::-webkit-details-marker{display:none}.order-settings>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-settings>summary>.icon{width:14px;height:14px;font-size:14px}.order-settings[open]{padding-bottom:6px}.cashier-select{font-size:12px;margin:4px 0 10px}.cashier-select select{font-size:13px;height:44px;min-height:44px;max-width:210px}
.cart-top .customer-button{font-size:12px;min-height:44px;margin:0;padding:10px}.customer-button>span{min-width:0;text-align:left;overflow-wrap:anywhere}
.order-types{margin-bottom:8px}.cart-top .order-type{font-size:12px;min-height:38px;padding:8px 3px}
.cart-items{flex:1 1 0;min-height:130px;padding:0 16px 8px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.cart-items-heading{padding:10px 0;font-size:11px;min-height:44px}.cart-items-heading button{min-height:32px;padding:6px;font-size:12px}.cart-item{gap:10px;padding:14px 0}.cart-item-name{font-size:14px;line-height:1.45}.cart-item-desc{font-size:12px;line-height:1.5}.cart-thumb{width:40px;height:44px}
.cart-item-controls{flex-wrap:wrap;gap:8px 12px}.quantity{height:42px;gap:5px;font-size:13px}.quantity button{width:40px;height:42px;font-size:20px}.quantity>span{min-width:22px}.item-total{font-size:13px}.note-button{min-height:44px;font-size:12px;padding:12px 0}.note-button .icon{width:16px;height:16px}
.cart-bottom{flex:0 1 auto;max-height:45%;overflow-y:auto;overscroll-behavior:contain;padding:6px 16px 12px}.cart-bottom-caption{display:none}
.cart-bill-details>summary{min-height:36px;font-size:12px}.cart-bill-details .bill-line{font-size:12px;margin:10px 0}.bill-line.discount button{min-height:36px;font-size:12px}.cart-bottom .total-line{padding:8px 0;margin:0}.cart-bottom .total-line>span{font-size:13px}.cart-bottom .total-line strong{font-size:24px}
.payment-methods{gap:7px;margin-bottom:8px}.cart-panel .payment-method{font-size:12px;min-height:44px;padding:9px 2px;gap:5px}.charge-btn{font-size:14px;min-height:48px;padding:13px}.mobile-cart-toggle{display:none}
/* Tables and forms contain their overflow; headings and toolbars can wrap. */
.content-page{padding:24px;overflow-wrap:anywhere}.page-heading{flex-wrap:wrap;align-items:flex-start;margin-bottom:24px;gap:16px}.page-heading>div:first-child{flex:1;min-width:min(100%,240px)}.page-heading p{max-width:none;font-size:13px;line-height:1.6}.page-heading h1{font-size:32px}
.page-actions{max-width:100%;flex-wrap:wrap;gap:8px}.page-actions .secondary{display:inline-flex}.page-heading .primary{font-size:13px;padding:12px 16px;white-space:normal}
.toolbar{gap:10px;flex-wrap:wrap;align-items:center;min-width:0}.toolbar .searchbox{flex:1 1 220px;max-width:none;min-width:min(180px,100%)}.toolbar>select{max-width:100%;flex:0 1 auto;font-size:13px}.toolbar .secondary{white-space:normal}.toolbar>.form-field{width:auto;flex:1 1 180px;min-width:0}
.table-wrap{width:100%;max-width:100%;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.table-wrap:focus-visible,.calendar-scroll:focus-visible{outline:2px solid var(--green);outline-offset:-2px}.table-wrap table{min-width:600px}.table-wrap th{font-size:11px}.table-wrap td,.table-wrap td strong{font-size:13px}.table-wrap td,.table-wrap th{padding:14px 16px}.table-action{min-height:44px;font-size:12px;padding:8px;gap:7px}.product-cell{max-width:320px;white-space:normal;min-width:160px}.product-cell>div{min-width:0}.product-cell strong{overflow-wrap:anywhere}.product-cell small,.cell-note{font-size:11px}.pill{font-size:11px;line-height:1.5}.panel-header{flex-wrap:wrap}.panel-header h2{font-size:15px}.panel-header small{font-size:12px}
.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-card{min-width:0;padding:18px}.stat-value{font-size:28px;overflow-wrap:anywhere}.stat-title{font-size:12px;gap:8px}.stat-foot{font-size:11px;line-height:1.5}.people-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}.location-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}.person-card{min-width:0}.person-card p{font-size:13px}.person-card .detail-line{font-size:12px}.settings-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.business-tabs{flex-wrap:wrap;overflow:visible;gap:6px}.business-tabs button{flex:1 1 auto;min-height:44px;font-size:13px;white-space:normal;padding:10px 13px}.business-tabs .icon{display:inline-flex;font-size:18px}
.shift-calendar{grid-template-columns:repeat(7,minmax(132px,1fr));min-width:924px}.calendar-day{min-width:0;overflow-wrap:anywhere}.calendar-date button{min-width:36px;min-height:36px}.calendar-shift{min-height:60px;font-size:12px}.calendar-shift strong{font-size:13px}.calendar-rest strong{font-size:12px}.calendar-rest span,.calendar-shift small{font-size:11px}.calendar-day-name{position:sticky;top:0;z-index:1}.weekly-plan-row{flex-wrap:wrap}.weekly-plan-row button{white-space:normal}.schedule-toolbar strong{font-size:14px}
/* Inventory columns keep a readable width instead of crushing tag text. */
.table-wrap .inventory-table{min-width:960px;overflow-wrap:normal}
.inventory-table .product-cell{min-width:200px}
.inventory-table .product-tag-labels{width:220px;max-width:none}
.inventory-table .product-tag-label{flex:0 0 auto;max-width:100%;word-break:normal}
.inventory-table .pill{white-space:nowrap}
.inventory-scroll-hint{margin:0;padding:12px 16px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:normal}
@media(min-width:1200px){.inventory-scroll-hint{display:none}}
/* Dialog actions stay reachable with long forms and an on-screen keyboard. */
dialog{width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;margin:auto}
.modal-head{position:sticky;top:0;z-index:3;background:var(--surface);padding:20px 20px 16px;gap:12px}.modal-head>div{min-width:0}.modal-head h2{font-size:27px}.modal-head p{font-size:12px;line-height:1.6}.modal-head>.icon-btn{flex-shrink:0}.modal-body{padding:0 20px 20px;min-width:0}.modal-footer{position:sticky;bottom:0;z-index:3;flex-wrap:wrap;gap:8px;padding:12px 20px;background:var(--surface)}.modal-footer button{white-space:normal;flex:0 1 auto;min-width:0}.modal-body .table-wrap{max-width:100%}.list-button{min-height:48px;min-width:0;gap:12px}.list-button>div{min-width:0}.list-button strong,.list-button small{overflow-wrap:anywhere}.option-btn{min-height:48px;min-width:0;font-size:13px}.cash-presets{flex-wrap:wrap}.cash-preset{flex:1 1 80px;min-height:44px}.tag-icon-choice{min-height:68px}.tag-icon-choice .icon{font-size:24px}.product-tag-choice{min-height:44px;font-size:12px}.tag-icon-field .searchbox{position:sticky;top:0;background:var(--surface);z-index:1}.tag-icon-choice span{font-size:11px}
@media(min-width:700px) and (min-height:560px){
  body.pos-active{overflow:hidden}
  body.pos-active .app-layout{height:100dvh;min-height:0;overflow:hidden}
  body.pos-active .main{display:grid;grid-template-rows:var(--topbar-height) minmax(0,1fr);height:100dvh;min-height:0}
  body.pos-active .workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,33vw,360px);height:100%;min-height:0;overflow:hidden}
  body.pos-active .catalog{display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr);gap:14px;padding:18px;min-height:0;overflow:hidden}
  body.pos-active .catalog>.intro,body.pos-active .catalog>.search-row,body.pos-active .catalog>.section-heading{margin:0}
  body.pos-active .catalog>.catalog-footer{display:none}
  body.pos-active .catalog>.product-grid{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 4px 16px 0;min-height:0;align-items:start}
  body.pos-active .pos-intro-copy{flex:1 1 150px}
  body.pos-active .intro{gap:12px;align-items:flex-end}
  body.pos-active .intro h1{font-size:26px;margin:0}
  body.pos-active .intro .eyebrow,body.pos-active .intro .subtext{display:none}
  body.pos-active .pos-controls{flex:1 1 230px}
  body.pos-active .cart-panel{display:flex}
  body.pos-active .product:hover{transform:none}
}
@media(min-width:1400px){
  :root{--rail-width:206px}
  .sidebar{padding:26px 18px 18px;align-items:stretch}
  .sidebar .brand{font-size:42px;letter-spacing:-2.5px;justify-content:flex-start;padding:4px 12px 28px}.sidebar .brand-domain{font-size:23px;letter-spacing:-1px}
  .sidebar .nav-item{justify-content:flex-start;padding:12px 13px;font-size:13px}.sidebar .nav-item span,.sidebar .nav-label,.sidebar .profile>div:not(.avatar),.sidebar .profile>.icon,.sidebar .side-separator{display:block}.sidebar .store-switch{display:flex}.sidebar .profile{justify-content:flex-start}.sidebar .store-name{font-size:12px}.sidebar .store-location{font-size:10px}
  .date{display:flex;font-size:12px}.content-page{padding:30px}
}
@media(min-width:700px) and (max-width:999px) and (min-height:560px){
  body.pos-active .catalog{padding:14px;gap:12px}
  body.pos-active .intro h1{font-size:23px}
  body.pos-active .pos-controls{flex-basis:100%}.pos-controls .held-btn .label{display:none}
  body.pos-active .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.pos-active .product-details p{display:none}
  body.pos-active .product-details h3{font-size:13px}
  .all-tags-button>span:not(.badge-number){display:none}.all-tags-button .badge-number{display:none}.all-tags-button{padding:10px;max-width:44px}
}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.content-page{padding:22px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:820px){.page-actions{width:100%;justify-content:flex-start}.page-actions .primary,.page-actions .secondary{flex:1 1 160px}.form-grid{grid-template-columns:1fr;gap:0}.business-tabs button{flex-basis:calc(50% - 6px)}.weekly-plan-row{align-items:flex-start;flex-direction:column}.weekly-plan-row button{width:100%}}
/* Phones, narrow split-screen windows and short landscape screens use an order drawer. */
@media(max-width:699px),(max-height:559px){
  .app-layout{display:block;min-height:100dvh}.main{width:100%;min-width:0}.mobile-menu{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;margin:0}
  .sidebar{position:fixed;inset:0 auto 0 0;width:min(300px,calc(100vw - 48px));max-width:none;align-items:stretch;padding:18px 20px;transform:translateX(-100%);visibility:hidden;z-index:70;box-shadow:16px 0 60px #17392f30;transition:transform .18s,visibility .18s}
  .sidebar.open{transform:none;visibility:visible}.sidebar-close{display:inline-flex;position:absolute;right:12px;top:12px}.sidebar .brand,.sidebar.open .brand{justify-content:flex-start;font-size:38px;letter-spacing:-2px;padding:5px 0 24px}.sidebar .brand-domain{font-size:21px}
  .sidebar .nav-item,.sidebar.open .nav-item{justify-content:flex-start;padding:12px;font-size:14px;gap:14px}.sidebar .nav-item span,.sidebar .nav-label,.sidebar .profile>div:not(.avatar),.sidebar .profile>.icon,.sidebar .side-separator{display:block}.sidebar .store-switch,.sidebar.open .store-switch{display:flex}.sidebar .store-name{font-size:13px}.sidebar .store-location{font-size:11px}.sidebar .profile,.sidebar.open .profile{justify-content:flex-start}.sidebar .profile strong{font-size:13px;max-width:150px}.sidebar .profile small{font-size:11px}
  .nav-is-open .nav-backdrop{display:block;position:fixed;inset:0;z-index:65;background:#17392f66;backdrop-filter:blur(2px)}body.nav-is-open,body.cart-is-open{overflow:hidden}
  .topbar{padding:0 12px;gap:8px}.breadcrumb{gap:8px;flex:1}.breadcrumb>.icon,.breadcrumb>span{display:none}.topbar-right{gap:7px}.connection{font-size:10px}.connection .status-dot{display:none}
  .workspace{display:block;min-height:0}.catalog{display:block;padding:20px 16px calc(104px + env(safe-area-inset-bottom));overflow:visible}.intro{margin:0 0 18px;gap:16px}.pos-intro-copy{flex-basis:100%}.intro h1{font-size:29px}.intro .eyebrow{font-size:9px}.intro .subtext{font-size:12px}.pos-controls{flex-basis:100%;flex-wrap:nowrap;gap:10px}.pos-controls .held-btn .label{display:inline}.pos-location-control{flex-basis:0;flex-direction:column;max-width:none}.search-row{margin-bottom:16px}.pos-tag-bar{margin-bottom:16px;gap:8px}.all-tags-button>span{display:none}.all-tags-button{max-width:44px;padding:10px}.pos-tag-bar .tag-filter{max-width:200px;font-size:13px}
  .catalog .section-heading{margin-bottom:14px}.catalog .section-heading h2{flex-basis:100%}.catalog .section-title{max-width:100%}.catalog .sort-btn{min-height:36px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-details h3{font-size:14px}.product-details p{font-size:11px}.product-photo{height:auto;aspect-ratio:4/3}.catalog-footer{font-size:11px;line-height:1.6}
  .cart-panel{display:none;position:fixed;inset:0;z-index:60;height:100dvh;max-height:100dvh;width:100%;padding:env(safe-area-inset-top) 0 0;min-height:0;overflow:hidden;border:0;flex-direction:column;background:var(--surface)}.cart-panel.mobile-open{display:flex}.cart-heading .close-mobile{display:inline-flex}.cart-top{padding:10px 16px 0;max-height:40%}.cart-items{padding:0 16px 8px;min-height:130px;flex:1 1 0}.cart-bottom{padding:6px 16px max(12px,env(safe-area-inset-bottom));max-height:45%;flex:0 1 auto;overflow-y:auto}.cart-thumb,.item-icon-visual.cart-thumb{display:inline-flex;width:40px;height:44px}.cart-panel .quantity{height:44px}.cart-panel .quantity button{width:44px;height:44px}.cart-panel .payment-method{min-height:44px;font-size:12px}.cart-panel .total-line{padding:8px 0}.cart-panel .charge-btn{min-height:48px;padding:13px;font-size:14px}
  .mobile-cart-toggle{display:flex;position:fixed;z-index:40;left:16px;right:16px;bottom:max(14px,env(safe-area-inset-bottom));align-items:center;justify-content:space-between;gap:12px;background:var(--green);color:var(--on-accent);min-height:56px;padding:14px 18px;border-radius:10px;font-size:14px}.mobile-cart-toggle.hide{display:none}.mobile-cart-toggle>span{display:flex;align-items:center;gap:8px}.mobile-cart-toggle strong{white-space:nowrap}
  .content-page{padding:20px 16px 32px}.page-heading{gap:14px;margin-bottom:20px}.page-heading h1{font-size:29px}.page-heading>div:first-child{flex-basis:100%}.page-heading .primary{min-height:44px;font-size:13px;white-space:normal;max-width:100%}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-value{font-size:26px}.stat-title{font-size:11px}.stat-foot{font-size:11px}.people-grid{grid-template-columns:1fr}.toolbar .searchbox{flex-basis:100%}.toolbar>select{flex:1 1 150px;width:auto;min-width:0}.toolbar>.secondary{flex:1 1 120px;margin-left:0!important}.inventory-location-row .form-field{width:100%}.panel-body{padding:18px}.panel-header{padding:16px}.table-wrap td,.table-wrap th{padding:13px 14px}.settings-grid{gap:16px}.table-detail{gap:14px}.segmented{max-width:100%;display:flex;flex-wrap:wrap}.segmented button{min-height:44px;flex:1;font-size:12px!important}.form-grid{grid-template-columns:1fr;gap:0}
  dialog,#modal:has(.table-wrap),#modal:has(.payroll-issues){width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.modal-head{padding:16px;gap:10px}.modal-head h2{font-size:25px}.modal-body{padding:0 16px 18px}.modal-footer{padding:10px 16px;gap:8px}.modal-footer button{flex:1 1 120px;min-height:44px;font-size:13px}.modal-product-photo,.item-icon-visual.modal-product-photo{height:160px}.option-group{flex-wrap:wrap}.option-btn{flex:1 1 100px}.tag-icon-choices{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));max-height:240px}.tag-list-row{flex-wrap:wrap;gap:10px}.tag-list-actions{margin-left:auto}.tag-list-actions .icon-btn{width:44px;height:44px}.product-tags-choices{max-height:240px}.recipe-line,.document-line{flex-wrap:wrap;align-items:flex-end}.recipe-line .form-field:first-child,.document-line .form-field:first-child{flex-basis:100%}.recipe-line .form-field,.document-line .form-field{flex:1 1 100px;margin-bottom:10px}.recipe-line .icon-btn,.document-line .icon-btn{margin:0 0 10px}.toast-message{font-size:12px;max-width:calc(100vw - 32px)}
}
@media(min-width:500px) and (max-width:699px) and (min-height:560px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-height:559px){
  .intro .eyebrow,.intro .subtext{display:none}.intro .pos-intro-copy{flex:1 1 180px}.intro .pos-controls{flex:1 1 300px}.catalog{padding-top:14px}.cart-panel.mobile-open{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,42%);grid-template-rows:auto minmax(0,1fr);gap:0}.cart-panel .cart-top{grid-column:1;grid-row:1;max-height:40dvh;overflow:auto}.cart-panel .cart-items{grid-column:1;grid-row:2;min-height:0;flex:initial;overflow:auto}.cart-panel .cart-bottom{grid-column:2;grid-row:1 / -1;max-height:100%;border-top:0;border-left:1px solid var(--line);padding:12px 16px;overflow:auto}.cart-panel .cart-heading .close-mobile{position:fixed;right:10px;top:8px;z-index:2}.cart-panel .cart-heading{padding-right:0}.cart-bottom .cart-bill-details{margin-top:38px}.cart-panel .order-types{margin:0}.cart-panel .cart-item{padding:10px 0}
}
@media(max-width:420px){.product-grid{gap:10px}.product{padding:6px}.product-details{padding:9px 3px 4px}.product-details p{display:none}.product-details h3{font-size:13px}.topbar-right .connection{max-width:66px;line-height:1.35}.price{font-size:13px}.pos-controls .held-btn .label{display:none}.catalog .key{display:none}.stat-value{font-size:24px}.cart-item-controls{gap:8px}.modal-head h2{font-size:23px}.modal-footer{padding-inline:12px}.charge-btn span{overflow-wrap:anywhere}}
@media(pointer:coarse){.product:hover{transform:none;box-shadow:none}.sort-btn,.table-action,.cash-preset,.account-signout{min-height:44px}.quantity button{width:44px;height:44px}.quantity{height:44px}.tag-icon-choice,.product-tag-choice{min-height:48px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
@media print{body.pos-active,body.cart-is-open{overflow:visible}body.pos-active .app-layout,body.pos-active .main{height:auto;overflow:visible}dialog[open]{max-height:none!important;overflow:visible!important}.modal-head,.modal-footer{position:static}.nav-backdrop,.mobile-cart-toggle{display:none!important}}
@media(min-width:700px) and (min-height:560px) and (max-height:740px){body.pos-active .catalog{gap:10px;padding:14px}body.pos-active .pos-intro-copy{display:none}body.pos-active .pos-controls{flex-basis:100%}body.pos-active .product-details p{display:none}body.pos-active .product-photo{aspect-ratio:16/9}body.pos-active .product-details h3{min-height:2.8em;font-size:13px}body.pos-active .catalog .section-heading{min-height:30px}body.pos-active .catalog .sort-btn{min-height:30px}}
@media(pointer:coarse){.form-field input,.form-field select,.form-field textarea,.searchbox input,.pos-location-control select,.cashier-select select{font-size:16px}}

.sidebar .brand{flex-direction:column;align-items:center;gap:2px}
@media(min-width:1400px){.sidebar .brand{flex-direction:row;align-items:baseline;gap:3px}}
@media(max-width:699px),(max-height:559px){.sidebar .brand,.sidebar.open .brand{flex-direction:row;align-items:baseline;gap:3px}}
@media(pointer:coarse){.calendar-date button{min-width:44px;min-height:44px}}

/* Focus mode keeps the current order and filters intact; only workspace chrome changes. */
.focus-toggle{flex:0 0 auto;white-space:nowrap;gap:7px;min-height:44px}
.focus-toggle[aria-pressed=true]{background:var(--green);border-color:var(--green);color:var(--on-accent)}
body.pos-focus .sidebar,body.pos-focus .topbar,body.pos-focus .nav-backdrop,
body.pos-focus .pos-intro-copy,body.pos-focus .catalog>.section-heading,
body.pos-focus .catalog>.catalog-footer,body.pos-focus .product-details>p,
body.pos-focus .product-tag.popular{display:none!important}
body.pos-focus .app-layout{grid-template-columns:minmax(0,1fr)}
body.pos-focus .main{grid-column:1}
body.pos-focus .intro{margin-bottom:14px}
body.pos-focus .pos-controls{flex:1 1 100%;justify-content:flex-end;gap:10px}
body.pos-focus .pos-location-control{margin-right:auto;max-width:280px}
body.pos-focus .product-photo{aspect-ratio:4/3}
@media(min-width:700px) and (min-height:560px){
  body.pos-active.pos-focus .main{grid-template-rows:minmax(0,1fr)}
  body.pos-active.pos-focus .catalog{grid-template-rows:auto auto auto minmax(0,1fr);gap:12px}
  body.pos-active.pos-focus .catalog>.intro{margin:0}
}
@media(max-width:699px),(max-height:559px){
  body.pos-focus .catalog{padding-top:max(14px,env(safe-area-inset-top))}
  body.pos-focus .pos-location-control{max-width:none}
  body.pos-focus .focus-toggle{font-size:12px;padding:10px}
  body.pos-focus .pos-controls .held-btn .label{display:none}
}

/* Owner-only migration review shares the existing dialog and visual language. */
#modal.history-modal{width:min(1200px,96vw);max-width:1200px}
.history-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:20px 0}
.history-counts>div{padding:12px;border:1px solid var(--border,var(--line));border-radius:10px}
.history-counts strong{display:block;font-size:21px}.history-counts span{font-size:12px}
.history-controls{display:flex;gap:14px;flex-wrap:wrap;margin:20px 0}.history-controls label{flex:1;min-width:180px}
.history-controls input,.history-controls select{display:block;width:100%;padding:10px;margin-top:6px;border:1px solid var(--line);border-radius:8px}
.history-upload{display:inline-flex;gap:10px;align-items:center;flex-wrap:wrap}.history-upload input{max-width:260px}
.history-fields{min-width:260px;max-width:500px;white-space:normal}.history-fields dt{font-weight:600;margin-top:8px}.history-fields dd{margin:3px 0;overflow-wrap:anywhere}
.history-provenance{margin-top:20px}.history-provenance pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.history-paging{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px}
#history-rows td{max-width:260px;white-space:normal;overflow-wrap:anywhere}#history-status{margin-top:12px}

/* Stock adjustments: compact controls and history cards also fit a phone. */
.inventory-heading-actions{display:flex;flex-wrap:wrap;gap:10px}.inventory-heading-actions button{white-space:nowrap}
.adjustment-toolbar{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:18px}.adjustment-toolbar .form-field{width:250px;max-width:100%;margin:0}.adjustment-toolbar .hint{flex:1;min-width:180px}
.adjustment-entry{padding:20px 24px;border-bottom:1px solid var(--line)}.adjustment-entry:last-child{border-bottom:0}.adjustment-entry-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.adjustment-entry-heading>div{min-width:0;overflow-wrap:anywhere}.adjustment-entry-heading .pill{flex-shrink:0}.adjustment-entry-details{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:12px;margin:14px 0 9px}.adjustment-note{font-size:12px;line-height:1.6;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.adjustment-meta{color:var(--muted);font-size:11px;line-height:1.6;overflow-wrap:anywhere}.adjustment-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:20px;font-size:12px}
.adjustment-preview{display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:16px;margin:14px 0 20px}.adjustment-preview>div{flex:1;min-width:100px}.adjustment-preview small{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}.adjustment-preview strong{font-size:18px;overflow-wrap:anywhere}.adjustment-preview p{flex-basis:100%;font-size:12px;line-height:1.5;margin:0}.adjustment-error{color:var(--danger)}
@media(max-width:600px){.inventory-heading-actions{width:100%}.inventory-heading-actions button{flex:1}.adjustment-toolbar{gap:10px}.adjustment-toolbar .form-field{width:100%}.adjustment-toolbar .hint{margin:0}.adjustment-entry{padding:16px}.adjustment-entry-details{gap:8px}.adjustment-entry-details span{width:100%}}

/* Searchable entity pickers stay inside the viewport, including dialogs and carts. */
.search-field{min-width:0}.search-picker{position:relative;min-width:0;width:100%}.search-picker-control{position:relative}.search-picker-control>input{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:10px 32px 10px 12px;font:inherit;line-height:1.5;text-overflow:ellipsis}.search-picker-control>span{position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted)}.search-picker-control>input:focus{outline:2px solid var(--green);outline-offset:1px}.search-picker-options{position:fixed;z-index:100;max-height:280px;overflow-y:auto;overscroll-behavior:contain;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 26px #17392f26;padding:5px}.search-picker-options[hidden]{display:none}.search-picker-options>[role=option]{display:block;width:100%;min-height:44px;padding:10px;text-align:left;border-radius:6px;overflow-wrap:anywhere;white-space:normal;font-size:13px;line-height:1.5}.search-picker-options>[role=option]:hover,.search-picker-options>.picker-active{background:var(--green-soft)}.search-picker-options>[aria-selected=true]{font-weight:600;color:var(--green)}.search-picker-status{padding:10px;color:var(--muted);font-size:11px;line-height:1.5}.pos-location-control .form-field,.cashier-select .form-field{margin:0;width:100%}.cashier-select{display:block}.toolbar>.search-field{flex:0 1 240px;min-width:180px}.pos-location-control .search-picker-control>input{font-size:13px}.adjustment-line{margin:8px 0 16px;padding:14px;min-width:0;border:1px solid var(--line);border-radius:12px}.adjustment-line>legend{font-size:12px;font-weight:600;color:var(--green);padding:0 6px}.adjustment-line-heading{display:flex;gap:8px;align-items:flex-end}.adjustment-line-heading>.form-field{flex:1;min-width:0}.adjustment-line-heading>.icon-btn{flex-shrink:0;margin-bottom:20px}.adjustment-line .adjustment-preview{margin:0}.adjustment-line .adjustment-preview strong{font-size:16px}.adjustment-add{margin-bottom:20px}.adjustment-group-title{font-size:15px;color:var(--green);margin:0 0 14px}.adjustment-group-line+.adjustment-group-line{border-top:1px solid var(--line);margin-top:12px;padding-top:14px}
@media(max-width:600px){.toolbar>.search-field{flex-basis:100%;width:100%}.adjustment-line{padding:12px}.adjustment-line .form-grid{grid-template-columns:1fr}.search-picker-control>input{font-size:16px}.adjustment-line-heading>.icon-btn{width:44px;min-height:44px}}

/* A shared location context and compact, touch-friendly row actions. */
.inventory-context{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--line)}.inventory-context>div:first-child{min-width:0}.inventory-context strong{display:block;font-size:16px;color:var(--green)}.inventory-context small{display:block;margin-top:5px;font-size:11px;color:var(--muted)}.inventory-context>.form-field{flex:0 1 300px;margin:0;min-width:180px}.inventory-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px;white-space:nowrap}.inventory-row-actions .icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;border-radius:8px;color:var(--green)}.inventory-row-actions .icon-btn:hover,.inventory-row-actions .icon-btn:focus-visible{background:var(--green-soft)}.inventory-row-actions .icon-btn .icon{font-size:18px;width:18px;height:18px}.inventory-actions-cell{width:144px;padding:8px}.table-wrap .inventory-table{min-width:780px}.inventory-table .product-cell{min-width:165px}.inventory-table .product-tag-labels{width:160px}.movement-toolbar>.form-field{min-width:190px;margin:0}.movement-coverage{line-height:1.6;margin:0 0 16px}.movement-entry{border-bottom:1px solid var(--line)}.movement-entry:last-child{border:0}.movement-entry>summary{list-style:none;display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,.55fr) minmax(140px,.7fr) 20px;gap:18px;align-items:center;padding:16px 20px;cursor:pointer;min-height:80px}.movement-entry>summary::-webkit-details-marker{display:none}.movement-entry>summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px}.movement-entry small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:5px}.movement-item{min-width:0;overflow-wrap:anywhere}.movement-item strong{font-size:13px}.movement-change{font-weight:600;font-size:15px}.movement-change small{font-weight:400}.stock-out{color:var(--warning)}.stock-in{color:var(--green)}.movement-time{font-size:12px;line-height:1.5}.movement-expand{color:var(--muted)}.movement-entry[open] .movement-expand{transform:rotate(180deg)}.movement-details{padding:0 20px 18px;background:var(--surface)}.movement-details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:0;padding-top:16px}.movement-details dt{color:var(--muted);font-size:11px;margin-bottom:5px}.movement-details dd{margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.movement-details .adjustment-note{margin-bottom:0;padding-top:12px}
@media(max-width:600px){.inventory-context{gap:12px;align-items:flex-start;flex-wrap:wrap}.inventory-context>.form-field{flex-basis:100%;width:100%}.movement-entry>summary{grid-template-columns:minmax(0,1fr) auto 18px;gap:8px 12px;padding:14px 16px}.movement-time{grid-column:1 / 3;grid-row:2;font-size:11px;display:flex;gap:6px;flex-wrap:wrap}.movement-time small{display:inline;margin:0}.movement-expand{grid-column:3;grid-row:1 / 3}.movement-change{text-align:right;font-size:13px}.movement-details{padding-inline:16px}.movement-details dl{grid-template-columns:1fr;gap:12px}.movement-toolbar>.form-field{width:100%}}

/* Shared team context and combined planned/actual attendance. */
.schedule-toolbar { flex-wrap: wrap; gap: 10px; }
.attendance-view-switch { display: flex; gap: 4px; }
.attendance-view-switch .active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.attendance-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); }
.attendance-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border: 1px dashed currentColor; border-radius: 3px; }
.attendance-legend .actual-legend::before { background: var(--ink); border-style: solid; }
.calendar-shift.calendar-actual { background: var(--ink); color: var(--surface); border: 1px solid var(--ink); border-left-width: 4px; }
.calendar-shift.calendar-actual strong, .calendar-shift.calendar-actual span, .calendar-shift.calendar-actual small { color: inherit; opacity: 1; }
.calendar-shift:not(.calendar-actual) { border-style: dashed; }
.calendar-actual span { white-space: normal; overflow-wrap: anywhere; }
.attendance-cell a { text-decoration: underline; color: var(--green); }
.attendance-history { padding: 12px 0; border-bottom: 1px solid var(--line); }
.attendance-history p { margin: 6px 0; font-size: 13px; }
.attendance-detail h3 { margin: 16px 0 8px; }
.team-attendance-page .page-actions { flex-wrap: wrap; }
@media(max-width: 700px) { .schedule-toolbar > strong { font-size: 13px; } .attendance-view-switch { width: 100%; } .attendance-view-switch button { flex: 1; } .team-attendance-page .page-actions { display: flex; gap: 8px; width: 100%; } .team-attendance-page .page-actions button { flex: 1 1 145px; } }

@media(max-width:820px){.team-attendance-page .page-actions .secondary{display:inline-flex}}

/* Daily earnings shares the workspace palette and remains readable on tablets. */
.earnings-toolbar{display:grid;grid-template-columns:repeat(4,minmax(125px,1fr));gap:12px;align-items:end;margin:0 0 20px}.earnings-toolbar .form-field{margin:0;min-width:0}.earnings-toolbar input,.earnings-toolbar select{width:100%;min-width:0}.earnings-toolbar-actions{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end}.earnings-summary{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 0}.earnings-summary>div{display:flex;flex-direction:column;gap:8px}.earnings-summary>div:last-child{align-items:flex-end;text-align:right}.earnings-summary small,.earnings-summary span:not(.pill){font-size:11px;color:var(--muted)}.earnings-summary strong{font-size:32px;color:var(--ink)}.daily-earnings-table{min-width:830px;width:100%}.daily-earnings-total{background:var(--cream)}.daily-earnings-total th{color:var(--ink);font-weight:650;text-transform:none;letter-spacing:0}.daily-earnings-total small{display:block;margin-top:5px;color:var(--muted);font-size:10px;font-weight:400}.daily-earnings-total td{color:var(--ink)}.earnings-explanation{line-height:1.7;margin:12px 0 20px}.earnings-reconciliation>summary,.earnings-pay-rules>summary{padding:18px 20px;font-weight:600;cursor:pointer;color:var(--ink)}.earnings-reconciliation>summary span,.earnings-pay-rules>summary span{font-size:11px;font-weight:400;color:var(--muted);margin-left:12px}.earnings-reconciliation .panel-body>.hint{margin-top:0;line-height:1.7}.earnings-reconciliation .secondary{margin-top:15px}.earnings-pay-rules{margin-top:18px}.earnings-review-notes{padding:12px 16px;margin-bottom:16px;background:var(--warning-soft);color:var(--warning);border-radius:8px;font-size:12px;line-height:1.7}.earnings-review-notes summary{cursor:pointer}.payroll-page .payroll-actions{margin-top:20px;flex-wrap:wrap}
@media(max-width:700px){.earnings-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.earnings-summary{align-items:flex-start;gap:12px}.earnings-summary strong{font-size:27px}.earnings-summary>div:last-child{max-width:45%}.earnings-reconciliation>summary span{display:block;margin:7px 0 0}.earnings-toolbar-actions button{flex:1}.payroll-page .page-heading{flex-wrap:wrap;gap:16px}}

/* No-hours rows stay usable for adjustments while showing no numeric values. */
.daily-earnings-table .earnings-no-hours td{background:var(--bg);color:var(--muted)}.daily-earnings-table .earnings-no-hours strong,.daily-earnings-table .earnings-no-hours .table-action{color:var(--muted)}.earnings-toolbar-actions .earnings-no-hours-toggle{flex:1 1 auto;min-width:0;margin:0 auto 0 0;align-self:center;white-space:nowrap}.earnings-toolbar-actions .earnings-no-hours-toggle input{width:16px;height:16px;flex:0 0 16px;accent-color:var(--green)}
@media(max-width:700px){.earnings-toolbar-actions{flex-wrap:wrap}.earnings-toolbar-actions .earnings-no-hours-toggle{flex:1 0 100%;margin-bottom:4px}}

/* Visible feedback belongs inside the dialog's top layer. */
.modal-feedback{margin:0 20px 16px;padding:12px 14px;border-radius:8px;background:var(--green-soft);color:var(--green);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.modal-feedback[hidden]{display:none}.modal-feedback.error{background:var(--danger-soft);color:var(--danger)}
.field-error{display:block;color:var(--danger);font-size:11px;line-height:1.5}
.form-field [aria-invalid=true]{border-color:var(--danger);box-shadow:0 0 0 2px var(--danger-soft)}
.earnings-table-controls{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:14px}
.earnings-table-options{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.earnings-table-options .earnings-no-hours-toggle{margin:0;min-width:0;font-size:12px;line-height:1.5}
.earnings-table-options .earnings-no-hours-toggle input{width:16px;height:16px;flex:0 0 16px;accent-color:var(--green)}
.earnings-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px}
.earnings-pagination>span{color:var(--muted);font-size:12px;text-align:center}
.earnings-day-toggle{display:inline-flex;align-items:center;gap:9px;text-align:left;font-weight:600;min-height:44px}
.earnings-day-toggle .icon{width:16px;flex-shrink:0}.earnings-day-toggle small{font-weight:400}
.daily-earnings-table tr[hidden]{display:none}.payroll-pay-rule{display:flex;gap:5px;margin-top:7px;font-size:11px}
.daily-earnings-total .pay-rule-marker{display:flex;align-items:center;gap:5px;color:var(--green);font-weight:500}
@media(max-width:700px){.earnings-table-controls{padding:14px}.earnings-pagination{flex-wrap:wrap}.earnings-pagination>span{order:-1;flex-basis:100%}.earnings-pagination>button{flex:1}.modal-feedback{margin-left:16px;margin-right:16px}}

.people-section-heading{margin:30px 0 18px;gap:12px;flex-wrap:wrap}.people-section-heading h2{min-width:0}.person-inactive{background:var(--bg)}.person-card .detail-line strong{text-align:right;overflow-wrap:anywhere}

.attendance-pay-summary{padding:14px 16px;border:1px solid var(--line);border-radius:9px;margin:18px 0;background:var(--bg)}.attendance-pay-summary h3{margin-top:0}.attendance-pay-summary p{font-size:12px;line-height:1.6}.attendance-pay-summary .notice{margin-bottom:0}.overtime-pending{color:var(--warning)}#overtime-form>.secondary{margin-bottom:16px}

.toast-message:not(.show){visibility:hidden}.toast-message::backdrop{background:transparent;backdrop-filter:none;pointer-events:none}

@media print{#toast{display:none!important}}

/* Item color choices stay usable on touch screens and follow the shop palette. */
.item-background-field{border:0;padding:0;margin:0 0 18px;min-width:0}
.item-background-field>legend{font-size:12px;margin-bottom:10px}
.item-color-palette{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;max-width:440px}
.item-color-swatch{border:1px solid var(--line);border-radius:8px;min-height:44px;min-width:0;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.item-color-swatch .icon{visibility:hidden}
.item-color-swatch[aria-pressed=true]{outline:2px solid var(--green);outline-offset:1px}
.item-color-swatch[aria-pressed=true] .icon{visibility:visible}
.item-custom-color{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap;font-size:12px}
.item-appearance .item-custom-color input[type=color]{width:52px;height:44px;flex:0 0 52px;padding:4px}
.item-custom-color>span{font-size:11px;color:var(--muted)}
.item-sample-photos{margin-top:16px}.item-sample-photos summary{cursor:pointer;margin-bottom:12px;font-size:12px}
.item-appearance input[type=file]{max-width:100%;width:100%;min-width:0;font-size:12px}
#p-photo-status{overflow-wrap:anywhere}
@media(max-width:420px){.item-color-palette{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Keep hidden table labels inside their horizontal scroll region. */
.table-wrap{position:relative;min-width:0}

/* The dialog owns scrolling while open; its header and actions stay in view. */
@media screen{
  html:has(#modal[open]),body:has(#modal[open]){overflow:hidden;overscroll-behavior:none}
  #modal[open]{display:flex;flex-direction:column;min-width:0;min-height:0;max-inline-size:calc(100% - 32px);overflow:hidden}
  #modal[open]>.modal-head,#modal[open]>.modal-footer{position:static;flex:0 0 auto;min-width:0}
  #modal[open]>.modal-head{max-height:35dvh;overflow-y:auto}
  #modal[open]>.modal-body{flex:1 1 auto;min-height:0;max-width:100%;overflow:auto;overscroll-behavior:contain}
  #modal[open]>.modal-feedback{flex:0 1 auto;max-height:25dvh;overflow:auto}
  #modal[open] fieldset{min-inline-size:0}
  #modal[open] input,#modal[open] select,#modal[open] textarea{min-width:0;max-width:100%}
  #modal[open] .form-grid>*{min-width:0}
}
@media screen and (max-width:700px){
  #modal[open]{max-inline-size:calc(100% - 16px)}
  #modal[open] input:not([type=checkbox]):not([type=radio]):not([type=color]),#modal[open] select,#modal[open] textarea{font-size:16px}
}

/* Keep saved options attached to their item and amounts legible on narrow receipts. */
.receipt-line{gap:10px;align-items:baseline}
.receipt-line>:first-child{min-width:0;overflow-wrap:anywhere}
.receipt-line>:last-child{flex-shrink:0;white-space:nowrap}
.receipt-options{display:block;font-size:inherit}

/* Twelve two-hour buckets retain readable labels across the full local day. */
.chart-full-day{gap:8px;padding-left:18px;padding-right:18px}
.chart-full-day .bar-group{min-width:0}
.chart-full-day .bar-group small{white-space:nowrap}

/* Inventory panels begin with a heading, so expose a visible keyboard stop. */
.inventory-tabpanel:focus-visible{outline:2px solid var(--warning);outline-offset:3px}

/* Selected POS choices remain distinguishable without color. */
.order-type[aria-pressed="true"],.payment-method[aria-pressed="true"],
.tag-filter[aria-pressed="true"] .tag-name,.option-btn[data-custom-choice][aria-pressed="true"]{
 text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;
}

/* Keep the selling context legible when zoom or the cart narrows the catalog.
   Actions wrap instead of consuming the searchable location's entire width. */
body.pos-active .pos-controls{flex-wrap:wrap}
.pos-controls>.held-btn{min-height:44px}
.pos-controls>.pos-location-control{flex:1 1 240px;min-width:min(220px,100%);max-width:100%}
.pos-location-control .search-picker-options{overflow-x:hidden}
@media(max-width:699px),(max-height:559px){
  body.pos-active .intro>.pos-controls{flex-basis:100%}
}
@media(max-width:699px){
  .pos-controls>.pos-location-control{flex-basis:100%}
  .pos-location-control .search-picker-control>input{font-size:16px}
}
@media(pointer:coarse){
  .pos-location-control .search-picker-control>input{font-size:16px}
}

/* POS rows must use the whole card's content height, not divide the remaining
   scrollport height. Keep media and details in normal, non-shrinking flow. */
body.pos-active .catalog>.product-grid{grid-auto-rows:max-content}
body.pos-active .product-grid>.product{display:flex;flex-direction:column;height:max-content;min-height:min-content}
body.pos-active .product-grid .product-photo{width:100%;flex:none}
body.pos-active .product-grid .product-details{width:100%;min-width:0;flex:none}
body.pos-active .product-grid .product-details p{overflow-wrap:anywhere}
body.pos-active .product-grid .product-price-row{gap:8px}
body.pos-active .product-grid .price{min-width:0;overflow-wrap:anywhere}

/* References can be 120 unbroken characters. Keep their whole value selectable
   and readable in narrow dialogs and the existing print receipt. */
.receipt-line.receipt-reference{display:block}
.receipt-line.receipt-reference>span{display:block;min-width:0;overflow-wrap:anywhere}
.receipt-line.receipt-reference>span+span{font-family:monospace;user-select:text;white-space:normal}

/* Transfer receipts keep each item and its three explicit outcomes together. */
.transfer-receipt-line{border:1px solid var(--line);border-radius:10px;padding:14px;margin:0 0 16px;min-width:0}.transfer-receipt-line legend{font-weight:600;max-width:100%;overflow-wrap:anywhere;padding:0 6px}.transfer-receipt-line>p{margin:0 0 12px;color:var(--muted)}.transfer-receipt-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.transfer-receipt-inputs .form-field{min-width:0;margin-bottom:0}.transfer-discrepancy-confirm{display:flex;align-items:flex-start;gap:10px;line-height:1.6}.transfer-discrepancy-confirm input{flex:none;margin-top:5px}.transfer-history article{border-top:1px solid var(--line);padding:12px 0;overflow-wrap:anywhere}.transfer-receipt-note{white-space:pre-wrap;overflow-wrap:anywhere}.transfer-history li{margin:6px 0}@media(max-width:600px){.transfer-receipt-inputs{grid-template-columns:1fr}.transfer-receipt-line{padding:12px}.transfer-discrepancy-confirm{font-size:13px}}

/* Period-specific stock ledger controls retain space for labelled date inputs. */
.movement-toolbar{flex-wrap:wrap}.movement-toolbar .searchbox{flex:1 1 280px}.movement-toolbar>.form-field{flex:1 1 200px;min-width:0}.movement-period{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:18px 0}.movement-period .form-field{flex:1 1 220px;margin:0;min-width:0}.movement-period button{min-height:40px}.movement-export-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:14px 0}.movement-export-controls [role=status]{flex:1 1 220px;font-size:12px;line-height:1.5}.movement-export-controls button[hidden]{display:none}#movement-context{overflow-wrap:anywhere}

/* Applied sales periods and unapplied date drafts stay distinct at every width. */
.report-periods{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.report-periods .active{outline:2px solid var(--ink);outline-offset:1px}
.report-dates{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.report-dates .form-field{margin:0;flex:1 1 180px;max-width:260px}
.report-dates input{min-width:0;width:100%}
.report-context{font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin:14px 0 20px}
.chart-date-range{overflow-x:auto;gap:10px;padding-bottom:80px}
.chart-date-range .bar-group{min-width:48px;flex:1}
.chart-date-range .bar-group small{top:calc(100% + 8px);bottom:auto;white-space:normal;overflow-wrap:anywhere;max-width:82px;line-height:1.25}
.report-footer{flex-wrap:wrap;gap:10px}
@media(max-width:600px){.report-dates .form-field{max-width:none;flex-basis:calc(50% - 6px)}.report-dates button{flex:1 1 auto}.report-periods .secondary{flex:1 1 auto}}

/* A report-only scope; never the Inventory or POS location control. */
.report-location{max-width:640px;min-width:0}.report-location .search-field{margin-bottom:8px}.report-location .hint{overflow-wrap:anywhere;line-height:1.6}

/* Employee selections stay readable below narrow single-line comboboxes. */
.search-picker-selection{display:block;margin-top:6px;white-space:normal;overflow-wrap:anywhere;line-height:1.5;color:var(--muted)}

/* Audit history uses bounded, wrapping details on phones and tablets. */
.activity-filters{padding:18px;display:grid;grid-template-columns:minmax(180px,2fr) minmax(150px,1fr) minmax(120px,1fr);gap:14px;align-items:end;margin-bottom:16px}
.activity-filters .form-field{margin:0;min-width:0}.activity-filters input,.activity-filters select{width:100%;min-width:0}.activity-search{grid-column:1/-1;max-width:none}.activity-filter-actions{display:flex;gap:8px;flex-wrap:wrap}.activity-coverage{margin:14px 0 20px;line-height:1.7}
.activity-list{display:grid;gap:10px}.activity-entry{margin:0;min-width:0;overflow:hidden}.activity-entry summary{list-style:none;display:flex;align-items:center;gap:14px;padding:18px;cursor:pointer}.activity-entry summary::-webkit-details-marker{display:none}.activity-entry summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px}.activity-entry summary>.icon{flex-shrink:0}.activity-entry[open] summary>.icon{transform:rotate(180deg)}
.activity-entry-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;background:var(--green-soft);color:var(--green);border-radius:12px}.activity-entry-title{display:grid;gap:4px;min-width:0;flex:1}.activity-entry-title strong{font-size:14px;overflow-wrap:anywhere}.activity-entry-title>span,.activity-entry-title small,.activity-entry time{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.activity-entry time{max-width:170px;text-align:right;line-height:1.7}.activity-action{text-transform:capitalize;font-weight:600}.activity-entry-body{padding:0 18px 18px}.activity-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding:16px 0;overflow-wrap:anywhere}.activity-meta code{word-break:break-all}.activity-meta .secondary{margin-left:auto}
.activity-diff{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:12px}.activity-diff-head,.activity-diff-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr) minmax(0,2fr)}.activity-diff-head{background:var(--bg);font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.activity-diff-row{border-top:1px solid var(--line);font-size:12px}.activity-diff-row>*,.activity-diff-head>*{padding:12px;min-width:0;overflow-wrap:anywhere}.activity-diff-row>div{border-left:1px solid var(--line)}.activity-diff-row pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.6;font-family:inherit;max-height:300px;overflow:auto}.activity-diff-row small{display:none}.activity-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
@media(max-width:700px){.activity-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}.activity-filter-actions{grid-column:1/-1}.activity-entry summary{gap:10px;padding:14px;flex-wrap:wrap}.activity-entry-title{flex-basis:calc(100% - 80px)}.activity-entry time{max-width:none;text-align:left;padding-left:48px;flex:1}.activity-entry-body{padding:0 12px 12px}.activity-meta{align-items:flex-start;flex-direction:column}.activity-meta .secondary{margin-left:0}.activity-diff-head{display:none}.activity-diff-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.activity-diff-row>strong{grid-column:1/-1;background:var(--bg)}.activity-diff-row>div{border-left:0;border-top:1px solid var(--line)}.activity-diff-row>div+div{border-left:1px solid var(--line)}.activity-diff-row small{display:block;color:var(--muted);font-size:10px;margin-bottom:6px}.activity-diff-row pre{max-height:220px}}
/* Delivery records belong to order operations, never the payment receipt. */
.delivery-fulfillment{overflow-wrap:anywhere}
@media print{.delivery-fulfillment{display:none!important}}

/* Reusable options use the workspace palette and remain operable on narrow screens. */
.modifier-manager-row{display:flex;align-items:center;gap:9px;padding:13px 0;border-bottom:1px solid var(--line)}
.modifier-manager-row>div{flex:1;min-width:0;overflow-wrap:anywhere}
.modifier-manager-row strong,.modifier-manager-row small{display:block}
.modifier-manager-row small,.product-modifier-choice small{font-size:11px;color:var(--muted);margin-top:5px}
.modifier-choice-row,.product-modifier-settings{margin:15px 0;padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0}
.modifier-choice-row legend,.product-modifier-settings legend{font-size:12px;font-weight:600;padding:0 5px}
.modifier-choice-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(95px,.55fr);gap:12px}
.modifier-choice-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.modifier-choice-actions .checkbox-label{margin:0}
.product-modifier-list{max-height:260px;overflow:auto;margin-top:10px}
.product-modifier-choice{padding:9px 0;align-items:start;overflow-wrap:anywhere}
.product-modifier-choice[hidden]{display:none}
.product-modifier-choice small{display:block}
@media(max-width:420px){.modifier-choice-inputs{grid-template-columns:1fr}.modifier-manager-row{flex-wrap:wrap}.modifier-manager-row>div{flex-basis:100%}.modifier-choice-actions{align-items:flex-start;flex-wrap:wrap}}

/* Store-defined POS choices use the same native pressed-button pattern. */
.modifier-pos-group {margin-block:16px;min-width:0}
.modifier-pos-group .option-label {white-space:normal;overflow-wrap:anywhere}
.modifier-pos-group .option-btn {overflow-wrap:anywhere;white-space:normal}
.option-btn[data-modifier-choice][aria-pressed="true"] {text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
#modifier-price-breakdown {overflow-wrap:anywhere;line-height:1.7}

/* Drawer reconciliation keeps long saved labels and audit IDs readable. */
.cash-session-summary, .cash-addendum, .cash-history-list { overflow-wrap:anywhere; }
.cash-tender-wrap { margin:16px 0; }
.cash-tender-wrap table { min-width:540px; }
.cash-tender-wrap th, .cash-tender-wrap td { white-space:normal; }
.cash-addendum { border-top:1px solid var(--line); padding:14px 0; }
.cash-history-list .list-button { width:100%; text-align:left; gap:12px; }
.cash-history-list .list-button > span { min-width:0; }

/* Reviewed CSV catalog maintenance is separate from inventory/report exports. */
.catalog-import-saving #app{pointer-events:none}.catalog-import-saving{cursor:progress}
.catalog-import-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.catalog-import-destination{overflow-wrap:anywhere}.catalog-import-source{margin:16px 0}.catalog-import-source summary{cursor:pointer;font-weight:600;font-size:13px;margin-bottom:8px}
.catalog-import-source textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:120px;font:12px/1.6 monospace;white-space:pre;overflow:auto}
.catalog-import-review{font-size:13px;line-height:1.6}.catalog-import-review h3{font-size:20px;margin-top:20px}.catalog-import-review code,.catalog-import-review pre{white-space:pre-wrap;overflow-wrap:anywhere}
.catalog-import-table{max-height:55vh;border:1px solid var(--line);border-radius:8px}.catalog-import-table table{min-width:650px;width:100%}.catalog-import-table th{position:sticky;top:0;background:var(--surface);z-index:1}.catalog-import-table td{vertical-align:top}.catalog-import-table td:first-child{min-width:90px}.catalog-import-table td:nth-child(2){min-width:170px}.catalog-import-table tr:focus{outline:3px solid var(--green);outline-offset:-3px}.catalog-import-table .notice{margin:8px 0}
.catalog-import-change{display:grid;grid-template-columns:minmax(90px,1fr) minmax(100px,2fr) 15px minmax(100px,2fr);gap:8px;padding:7px 0;border-bottom:1px solid var(--line)}.catalog-import-change code{font-size:12px}.catalog-import-approval{margin:20px 0;align-items:flex-start}.catalog-import-review .table-action{text-align:left;white-space:normal}.catalog-import-review ul{padding-left:20px;max-height:220px;overflow:auto}
@media(max-width:640px){.catalog-import-tools button{flex:1 1 160px;min-height:44px}.catalog-import-table{max-height:50dvh}.catalog-import-review{font-size:12px}}

/* Cart ingredient advice stays inside the existing scrollable items pane. */
.cart-stock{min-width:0;margin:0 0 12px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);font-size:12px;line-height:1.6;overflow-wrap:anywhere;flex-shrink:0}
.cart-stock-warning{border-left:4px solid var(--ink)}
.cart-stock-summary{font-weight:600;margin:0}
.cart-stock-details>summary{cursor:pointer;min-height:44px;padding:10px 0;white-space:normal}
.cart-stock-content{max-height:240px;max-height:min(240px,35dvh);overflow-y:auto;overscroll-behavior:contain;padding:0 4px 4px;min-width:0}
.cart-stock-content p{margin:6px 0}.cart-stock-content ul{margin:8px 0;padding-left:18px}.cart-stock-content li{margin:8px 0}
.cart-stock-shortages>li+li{border-top:1px solid var(--line);padding-top:8px}
.cart-stock-caveat{color:var(--muted)}
.cart-stock-details>summary:focus-visible,.cart-stock-content:focus-visible{outline:2px solid var(--green);outline-offset:2px}

.cart-item-line{display:block;color:var(--muted);font-size:11px;line-height:1.5}

/* Ingredient planning estimates stay readable inside the existing dialog. */
.ingredient-cost-editor,.recipe-cost-estimate{margin-top:24px;padding-top:18px;border-top:1px solid var(--border);min-width:0}
.ingredient-cost-editor h3,.recipe-cost-estimate h3{margin-bottom:10px}
.ingredient-cost-editor fieldset{border:0;padding:0;min-width:0;margin:16px 0}
.ingredient-cost-editor p,.recipe-cost-estimate p{overflow-wrap:anywhere;margin:10px 0}
.ingredient-cost-rows{max-height:320px;overflow:auto}
.ingredient-cost-rows article{padding:12px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
.ingredient-cost-total{padding:12px;background:var(--bg);border-radius:8px}
@media(max-width:520px){.ingredient-cost-editor .form-grid{grid-template-columns:1fr}}

/* Placeholders match each data section and remain quiet across shop themes. */
.data-skeleton{display:block;min-width:0;width:100%;overflow:hidden;padding:18px 0}
.skeleton-shapes{display:block;min-width:0}
.skeleton-block{display:block;flex:none;max-width:100%;border-radius:6px;background:var(--line);background:color-mix(in srgb,var(--ink) 11%,var(--surface,var(--bg)));animation:skeleton-pulse 1.7s ease-in-out infinite}
.skeleton-line{height:12px;min-width:20px}.skeleton-line+.skeleton-line{margin-top:10px}
.skeleton-value{height:30px;width:100px}.skeleton-chip{width:88px;height:36px;border-radius:18px}
.skeleton-copy{display:block;flex:1;min-width:0}
.skeleton-avatar{width:42px;height:42px;border-radius:11px}.skeleton-amount{width:58px;height:16px}
.skeleton-row{display:flex;align-items:center;gap:16px;padding:18px;border-bottom:1px solid var(--line)}
.skeleton-row:last-child{border-bottom:0}
.data-skeleton--value{display:inline-block;width:auto;max-width:100%;padding:4px 0;vertical-align:middle}
.data-skeleton--chips .skeleton-shapes{display:flex;gap:10px;overflow:hidden}
.data-skeleton--products .skeleton-shapes,.data-skeleton--cards .skeleton-shapes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:16px}
.skeleton-card{display:block;overflow:hidden;border:1px solid var(--line);border-radius:13px;padding:12px;background:var(--surface,var(--bg))}
.skeleton-card .skeleton-copy{padding:14px 2px 4px}.skeleton-image{width:100%;aspect-ratio:1.2;border-radius:8px}
.data-skeleton--cards .skeleton-card{min-height:160px}.data-skeleton--cards .skeleton-shapes{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.data-skeleton--form .skeleton-shapes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px;padding:18px}
.skeleton-field{display:block;min-width:0}.skeleton-input{height:42px;width:100%;margin-top:10px}
.data-skeleton--chart{padding:28px 24px 12px}.data-skeleton--chart .skeleton-shapes{display:flex;align-items:flex-end;gap:12px;height:220px;border-bottom:1px solid var(--line)}
.skeleton-bar{flex:1;width:auto;border-radius:5px 5px 0 0}
.data-skeleton--calendar .skeleton-shapes{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:18px}
.skeleton-day{height:72px;width:100%;border-radius:7px}
.skeleton-table-row td{height:66px}.skeleton-table-row .skeleton-line{height:13px}
.stat-value .data-skeleton,.badge-number .data-skeleton,.count .data-skeleton,.cart-meta .data-skeleton{padding:0;vertical-align:middle}
.badge-number .skeleton-value,.count .skeleton-value{width:18px;height:12px}.cart-meta .skeleton-value{height:14px;width:68px}
.product-grid>.data-skeleton{grid-column:1/-1;min-height:260px}.cart-panel>.data-skeleton{min-height:250px}
.data-load-error{display:flex;align-items:center;justify-content:center;gap:12px;min-height:88px;padding:18px;color:var(--danger,var(--ink));font-size:12px;flex-wrap:wrap}
.settings-tabs{flex-wrap:nowrap;margin-bottom:24px}.settings-tabs button{flex:1 1 0;min-width:0;white-space:normal}
.settings-tabpanel{min-width:0;max-width:100%;outline-offset:4px}.settings-activity .page-heading{margin-top:4px}.settings-activity .page-heading h2{font-family:var(--serif);font-size:27px;font-weight:400;margin:8px 0}
.settings-page>.page-heading{margin-bottom:20px}.settings-tabpanel>.data-skeleton--form{max-width:900px}
@keyframes skeleton-pulse{0%,100%{opacity:.55}50%{opacity:1}}
@media(max-width:600px){.data-skeleton--form .skeleton-shapes{grid-template-columns:1fr;padding:16px}.data-skeleton--chart .skeleton-shapes{height:180px;gap:8px}.skeleton-day{height:52px}.settings-tabs{gap:4px;padding:4px}.settings-tabs button{padding:11px 8px;font-size:12px}.settings-tabs .icon{display:none}.skeleton-row{gap:12px;padding:15px 12px}}
@media(prefers-reduced-motion:reduce){.skeleton-block{animation:none;opacity:.75}}
/* Page names live in navigation; keep only working controls above the content. */
.page-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:16px}
.page-toolbar:empty,.page-toolbar:not(:has(button:not([hidden]))){display:none}
.page-toolbar .page-actions{flex-wrap:wrap}
.page-toolbar .inventory-heading-actions{margin-left:auto}
@media(max-width:700px){
  .page-toolbar{justify-content:flex-start;gap:8px;margin-bottom:14px}
  .page-toolbar .page-actions{width:100%;gap:8px}
  .page-toolbar .page-actions>button{flex:1 1 auto}
}
