:root{--green:#203f36;--orange:#d56a43;--ink:#1b2822;--muted:#7d857f;--line:#e7eae5;--bg:#f5f6f2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 system-ui,-apple-system,sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0;background:#edf0ea;color:var(--ink);border-radius:12px;padding:11px 15px;font-weight:650;min-height:44px}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #d5a06d;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-1px}h2{font-size:20px;letter-spacing:-.5px}h3{font-size:15px}.primary{background:var(--green);color:white}.soft{background:#fff;border:1px solid var(--line)}.danger{color:#ab3c32}small,.muted{color:var(--muted)}.top{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:10px 22px;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:10px}.brand img{width:36px;height:36px;object-fit:contain}.profile{border-radius:50%;width:38px;height:38px;min-height:38px;background:#e8eee6;padding:0}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(720px,100%);display:flex;background:#fff;border:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;z-index:15;box-shadow:0 -5px 25px #203f3608}.bottom button{flex:1;background:transparent;font-size:11px;display:grid;justify-items:center;gap:3px;padding:5px}.bottom button span{font-size:23px;line-height:1.2}.bottom button.active{background:#eaf0e8;color:var(--green)}#app{max-width:1050px;margin:auto;padding:22px 20px 110px}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:10px}.page-head p{font-size:12px;color:var(--muted);margin-top:3px}.search{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px 15px;outline:0}.search:focus{border-color:var(--green)}.chips{display:flex;gap:6px;overflow:auto;padding:12px 0;scrollbar-width:none}.chips button{white-space:nowrap;min-height:34px;font-size:12px;padding:7px 13px;background:white;border:1px solid var(--line)}.chips button.active{background:var(--green);color:white;border-color:var(--green)}.list{display:grid;gap:10px}.order-card{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;padding:16px;background:#fff;border:1px solid var(--line);border-radius:16px}.order-card small{display:block;font-weight:400;margin-top:3px}.order-card strong{display:block;text-align:right;font-size:17px}.badge{display:inline-block;font-size:10px;font-weight:650;letter-spacing:.3px;text-transform:uppercase;padding:4px 8px;border-radius:6px;background:#eef1e8;color:#50634d;margin-bottom:6px}.badge.paid{background:#e2f1e6;color:#2a6b41}.badge.bill_generated{background:#fff0d7;color:#936b27}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.food{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);padding:12px;border-radius:14px;min-width:0}.food img{width:72px;height:72px;object-fit:cover;border-radius:10px}.food .copy{flex:1;min-width:0}.food small{display:block;font-size:11px}.food strong{display:block;margin-top:6px}.food button{background:#eaf0e8;color:var(--green);min-width:54px;padding:9px}.cart-float{position:fixed;bottom:88px;left:50%;transform:translateX(-50%);width:min(680px,calc(100% - 32px));padding:15px 18px;display:flex;justify-content:space-between;background:var(--green);color:white;border-radius:14px;z-index:11;box-shadow:0 6px 22px #203f3620}label{display:grid;gap:6px;font-size:12px;font-weight:600;margin-bottom:14px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px;background:#fff;color:var(--ink);min-height:44px}input:focus,textarea:focus,select:focus{outline:2px solid #a4b6a5}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--green)}.check{display:flex;align-items:center;gap:9px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.row small{display:block}.qty{display:flex;align-items:center;gap:13px}.qty button{padding:3px;width:34px;min-height:34px}.total{font-size:20px;border-bottom:0}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.actions>*{flex:1;white-space:nowrap;text-align:center;text-decoration:none}.actions a{padding:12px;border-radius:12px;background:#eaf0e8;font-weight:650;color:var(--green)}dialog{border:0;border-radius:24px 24px 0 0;padding:0;width:min(620px,100%);max-width:100%;max-height:92dvh;position:fixed;inset:auto 0 0;margin:0 auto;box-shadow:0 -10px 60px #0002}dialog::backdrop{background:#12251e66;backdrop-filter:blur(3px)}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.sheet-head button{font-size:24px;padding:0;width:36px;min-height:36px;background:#f2f3ef}#sheet-body{padding:20px 20px calc(24px + env(safe-area-inset-bottom))}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:12px}.panel h3{margin-bottom:15px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.empty{text-align:center;padding:65px 20px;color:var(--muted)}.empty h3{color:var(--ink);margin-bottom:6px}.login{max-width:380px;padding:28px;margin:8vh auto}.identity{text-align:center;margin-bottom:30px}.identity img{width:68px;height:68px;object-fit:contain;margin-bottom:12px}.identity p{color:var(--muted);font-size:13px;margin-top:5px}.login button{width:100%}#login-error{color:#a33434;font-size:13px;margin-top:12px}#toast{position:fixed;z-index:99;top:14px;left:50%;transform:translateX(-50%);background:#203f36;color:#fff;border-radius:12px;max-width:92%;padding:12px 18px;display:none;font-size:13px}.receipt{max-width:390px;margin:auto;background:white;color:#1b2822;font:12px/1.5 system-ui,sans-serif}.receipt header{text-align:center;padding-bottom:14px;border-bottom:1px dashed #bbb}.receipt header img{width:52px;height:52px;object-fit:contain}.receipt h2{font-size:22px}.receipt header p{font-size:11px;margin:3px 0;white-space:pre-line}.receipt table{width:100%;border-collapse:collapse;margin:12px 0}.receipt th{text-align:left;font-size:10px;border-bottom:1px dashed #bbb;padding:7px 3px}.receipt td{padding:8px 3px;border-bottom:1px solid #eee;vertical-align:top}.receipt td small{display:block}.receipt td:last-child,.receipt th:last-child{text-align:right}.receipt .row{padding:5px 0;border:0}.receipt .total{border-top:1px dashed #bbb;margin-top:7px;padding-top:9px;font-size:17px}.receipt footer{text-align:center;border-top:1px dashed #bbb;margin-top:14px;padding-top:12px;font-size:11px}.loading{padding:60px;text-align:center;color:var(--muted)}@media(max-width:620px){#app{padding:18px 14px 110px}.top{padding:10px 16px}.cards{grid-template-columns:1fr}.food img{width:64px;height:64px}.two{gap:10px}h1{font-size:24px}}@media print{body{background:white}body>*:not(dialog){display:none!important}dialog{display:block!important;position:static;border:0;box-shadow:none;width:100%;max-height:none;border-radius:0}.sheet-head,#sheet-body>*:not(.receipt){display:none!important}#sheet-body{padding:0}.receipt{max-width:78mm}a{display:none!important}@page{margin:8mm}}
/* Settings */
.settings-heading{margin-bottom:22px}.settings-role{font-size:11px;font-weight:650;padding:6px 11px;background:#e9eee6;color:#52694f;border-radius:30px}.settings-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:16px;align-items:start}.settings-card{background:white;border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:0 3px 14px #203f3603}.settings-card-title{display:flex;gap:12px;align-items:center;margin-bottom:22px}.settings-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:#f0f3ec;color:#51624d;font-size:20px}.settings-card-title h3{font-size:15px;margin:0}.settings-card-title p{font-size:12px;color:var(--muted);margin-top:3px}.logo-upload-card{display:flex;align-items:center;gap:16px;padding:17px;background:#f8f9f5;border:1px dashed #d6ded1;border-radius:16px;margin-bottom:23px}.logo-preview-wrap{width:82px;height:82px;flex:0 0 82px;background:#fff;border:1px solid #e4e9df;border-radius:18px;display:grid;place-items:center;overflow:hidden;box-shadow:0 3px 8px #203f3605}.logo-preview-wrap img{width:70px;height:70px;object-fit:contain}.logo-preview-wrap span{font-size:30px;color:var(--green)}.logo-preview-wrap [hidden]{display:none}.logo-upload-copy{min-width:0}.logo-upload-copy>b{font-size:13px}.logo-upload-copy p{font-size:11px;color:var(--muted);margin:3px 0 10px}.logo-upload-actions{display:flex;gap:6px;align-items:center}.logo-upload-button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:7px 11px;border-radius:8px;margin:0;background:white;border:1px solid #dce3d6;color:var(--green);font-size:11px;cursor:pointer}.logo-upload-button:hover{border-color:var(--green)}#cancel-logo{font-size:11px;min-height:32px;padding:5px 8px;background:transparent}#cancel-logo[hidden]{display:none}.logo-upload-copy small{display:block;margin-top:7px;font-size:10px;overflow-wrap:anywhere}.file-input-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.logo-upload-card:focus-within{border-color:var(--green)}.settings-card label{font-size:12px;color:#586157;margin-bottom:16px}.settings-card input,.settings-card textarea{border-color:#e1e6dd;border-radius:10px;padding:11px 12px;font-size:13px;background:#fff}.settings-card input::placeholder,.settings-card textarea::placeholder{color:#a1a89e}.settings-card textarea{resize:vertical;min-height:72px}.settings-card .two label{margin-bottom:0}.charge-setting{display:grid;grid-template-columns:1fr auto 74px;gap:12px;align-items:center;padding:17px 0;border-bottom:1px solid #eef0eb}.charge-setting:first-of-type{padding-top:0}.charge-setting b{font-size:13px}.charge-setting small{display:block;font-size:11px;margin-top:3px}.settings-card .switch{display:block;position:relative;width:36px;height:22px;margin:0}.switch input{position:absolute;opacity:0;width:36px;height:22px;min-height:0;margin:0;inset:0;cursor:pointer;z-index:1}.switch>span{display:block;width:36px;height:22px;border-radius:22px;background:#dce2d7;transition:background .15s}.switch>span:after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 4px #0002;transition:transform .15s}.switch input:checked+span{background:var(--green)}.switch input:checked+span:after{transform:translateX(14px)}.switch:focus-within{outline:2px solid #9cafa0;outline-offset:3px;border-radius:22px}.percent-input{display:flex;align-items:center;border:1px solid #e1e6dd;border-radius:9px;padding-right:10px;font-size:12px;color:var(--muted)}.percent-input input{width:100%;min-width:0;border:0;min-height:38px;padding:7px 8px;text-align:center;appearance:textfield}.percent-input input::-webkit-inner-spin-button{appearance:none}.settings-card .footer-field{margin-top:22px;margin-bottom:0}.settings-save{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0 6px}.settings-save>span{font-size:11px;color:var(--muted)}.settings-save button{padding:12px 19px;display:flex;align-items:center;gap:20px;font-size:12px}.settings-tools{margin-top:22px}.settings-tools>h3{font-size:12px;color:#8b9385;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}.settings-tool,.settings-tools summary{display:flex;gap:13px;align-items:center;width:100%;border:0;border-bottom:1px solid #eef0eb;background:white;padding:14px 0;text-align:left;list-style:none;font-weight:400;border-radius:0;cursor:pointer;min-height:68px}.settings-tools summary::-webkit-details-marker{display:none}.settings-tool>span:nth-child(2),.settings-tools summary>span:nth-child(2){flex:1}.settings-tool b,.settings-tools summary b{font-size:13px}.settings-tool small,.settings-tools summary small{display:block;font-size:11px;margin-top:3px}.settings-tool i,.settings-tools summary i{font-size:22px;font-style:normal;color:#929b8d;transition:transform .15s}.settings-tools details[open] summary i{transform:rotate(90deg)}.settings-detail-form{padding:18px 0 8px 49px;max-width:470px}.settings-detail-form button{font-size:12px}.settings-tools details:last-child summary{border-bottom:0}.settings-tools .settings-icon{background:#f6f7f3}.settings-card .primary:disabled{opacity:.5}
@media(max-width:700px){.settings-layout{grid-template-columns:1fr;gap:12px}.settings-card{padding:18px;border-radius:17px}.settings-card-title{margin-bottom:18px}.settings-save{position:sticky;bottom:82px;background:#f5f6f2ee;backdrop-filter:blur(10px);padding:12px 0;z-index:3}.settings-tools{margin-top:12px}.logo-upload-card{padding:13px;gap:12px}.logo-preview-wrap{width:72px;height:72px;flex-basis:72px}.logo-preview-wrap img{width:62px;height:62px}.logo-upload-copy p{font-size:10px}.settings-detail-form{padding-left:0}.settings-heading{margin-bottom:17px}.settings-save>span{font-size:10px}.charge-setting{grid-template-columns:1fr auto 68px;gap:10px}}
.category-picker{padding:0;border:0;margin:0 0 18px}.category-picker legend{font-size:12px;font-weight:650;margin-bottom:9px}.category-picker legend small{font-weight:400;margin-left:6px;font-size:11px}.category-picker>div{display:flex;flex-wrap:wrap;gap:7px}.category-picker label{display:block;margin:0;cursor:pointer}.category-picker input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.category-picker label span{display:block;border:1px solid #e1e6dd;border-radius:9px;padding:8px 12px;font-size:12px;background:#fff}.category-picker input:checked+span{background:#eaf0e8;color:var(--green);border-color:#809a7c}.category-picker input:focus-visible+span{outline:2px solid var(--green)}.product-image-card{margin:4px 0 20px}.product-image-card .logo-preview-wrap img{object-fit:cover;width:100%;height:100%}.product-save-row{display:flex;gap:8px;justify-content:space-between;margin-top:18px}.product-save-row .primary{flex:1}.category-manage-list{padding-left:49px}.category-manage-list button{font-size:11px;padding:6px 10px;min-height:34px;background:#fbefed}.category-manage-list b{font-size:12px}@media(max-width:700px){.category-manage-list{padding-left:0}}
.finance-period{display:flex;align-items:center;justify-content:space-between;gap:8px}.finance-period .chips{padding:0;margin-bottom:12px}.expense-shortcut{background:transparent;color:var(--green);font-size:11px;padding:4px;white-space:nowrap;min-height:34px;margin-bottom:12px}.finance-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:7px}.finance-summary>div{background:#fff;border:1px solid var(--line);padding:14px;border-radius:13px;min-width:0}.finance-summary small{display:block;font-size:10px}.finance-summary strong{display:block;margin-top:6px;font-size:19px;letter-spacing:-.6px;overflow-wrap:anywhere}.finance-summary .net{background:#edf3e9;border-color:#dce7d4}.finance-hint{font-size:10px;color:var(--muted);line-height:1.5;margin:0 0 10px}.finance-breakdown{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:10px;color:#70806b;margin-bottom:17px}.finance-dates{display:flex;gap:8px;align-items:end;margin-bottom:12px}.finance-dates label{flex:1;margin:0;min-width:0;font-size:11px}.finance-dates input{font-size:12px;min-width:0}.finance-dates button{font-size:12px}.expense-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.expense-head>span{font-size:12px;color:var(--muted)}.expense-head button{font-size:12px}.expense-remove{display:block;background:transparent;color:#a44c43;font-size:10px;padding:5px 0;margin-left:auto;min-height:30px}@media(max-width:620px){.finance-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.finance-summary>div{padding:12px}.finance-summary strong{font-size:20px}.finance-period .chips{gap:4px}.finance-period .chips button{padding:6px 9px;font-size:10px}.expense-shortcut{font-size:10px}}
.staff-access-list{padding:8px 0 4px 49px}.staff-access-row{display:flex;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid var(--line)}.staff-access-avatar{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex:0 0 36px;background:#edf1e9;color:var(--green);font-weight:700}.staff-access-copy{min-width:0;flex:1}.staff-access-copy b{font-size:13px}.staff-access-copy small{display:block;font-size:11px;overflow-wrap:anywhere}.staff-access-status{display:inline-block;font-size:10px;margin-top:5px;padding:2px 7px;border-radius:5px}.staff-access-status.enabled{background:#e7f1e3;color:#427039}.staff-access-status.disabled{background:#f3e9e6;color:#965047}.staff-status-action{font-size:11px;padding:7px 10px;min-height:34px;background:#f2f4ee}.staff-status-action.danger{background:#fcf0ee}@media(max-width:700px){.staff-access-list{padding-left:0}.staff-access-avatar{display:none}.staff-access-row{gap:8px}}
#review-form .iti{width:100%;font-size:13px}#review-form .iti__country-list{font-size:12px}#review-form .iti__selected-country{border-radius:10px 0 0 10px}#review-form .iti__dropdown-content{border-radius:12px;border-color:var(--line)}#review-form .iti input{min-height:44px}#review-form .iti__search-input{font-size:13px}

#review-form .iti__flag,#review-form .iti__globe{display:none!important}
/* iPhone/iPad: readable inputs prevent Safari focus zoom; native date controls stay inside their grid cells. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}input,select,textarea{box-sizing:border-box;max-width:100%;min-width:0}input[type=date],input[type=datetime-local],input[type=time]{display:block;width:100%;min-width:0;max-width:100%;min-inline-size:0;inline-size:100%;-webkit-appearance:none;appearance:none;text-align:left}input::-webkit-date-and-time-value{text-align:left;min-width:0}input::-webkit-datetime-edit{padding:0;min-width:0}.two>* ,.finance-dates>*,.settings-layout>*,.charge-setting>*,.percent-input{min-width:0}#sheet-body,form,fieldset{min-width:0}.iti{max-width:100%;min-width:0}dialog{max-width:100vw;max-height:92dvh}textarea{resize:vertical}
@media(hover:none),(pointer:coarse),(max-width:820px){body input,body select,body textarea,.settings-card input,.settings-card select,.settings-card textarea,.percent-input input,.finance-dates input,#review-form .iti input,#review-form .iti__search-input{font-size:16px!important;line-height:1.35}input[type=date],input[type=datetime-local],input[type=time]{min-height:44px}.finance-dates{flex-wrap:wrap}.finance-dates label{flex:1 1 110px}.finance-dates button{flex:0 0 auto}.charge-setting{grid-template-columns:minmax(0,1fr) auto 78px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}#sheet-body{padding-bottom:calc(24px + env(safe-area-inset-bottom))}.top{padding-top:max(10px,env(safe-area-inset-top));height:auto;min-height:64px}}
@supports(-webkit-touch-callout:none){body input,body select,body textarea{font-size:16px!important}input[type=date],input[type=datetime-local],input[type=time]{min-width:0!important;min-inline-size:0!important;width:100%!important;max-width:100%!important}dialog{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}}

.menu-qty{display:flex;align-items:center;gap:6px;background:#eaf0e8;border-radius:10px;flex:0 0 auto}.food .menu-qty button,.menu-qty button{width:32px;min-width:32px;min-height:38px;padding:4px;background:transparent;color:var(--green)}.menu-qty b{min-width:18px;text-align:center;font-size:13px}.option-count{font-size:12px;white-space:nowrap}.option-count small{font-size:9px;color:inherit;margin-top:2px}.food .copy h3{overflow-wrap:anywhere}

.quantity-context{display:grid;justify-items:end;gap:5px;flex:0 0 auto}.quantity-change{display:block!important;font-size:10px!important;line-height:1.4;color:#52694f!important;max-width:150px}.quantity-context .quantity-change{text-align:right}

.quantity-change{display:flex!important;flex-wrap:wrap;gap:3px 9px;font-size:10px!important;line-height:1.5;margin-top:4px;color:#7d857f!important;max-width:none}.quantity-change>span{white-space:nowrap}.quantity-change b{font-weight:600}.quantity-change .quantity-added{color:#397044}.quantity-change .quantity-reduced{color:#a06039}.quantity-context .quantity-change{display:grid!important;gap:1px;text-align:right}

.quantity-change{display:flex!important;align-items:center;gap:5px;margin-top:4px;font-size:10px!important;color:#90978c!important;line-height:1.4}.quantity-context .quantity-change{display:flex!important;justify-content:flex-end;flex-wrap:wrap;max-width:150px}.quantity-change .quantity-added,.quantity-change .quantity-reduced{padding:2px 5px;border-radius:4px;font-size:9px;font-weight:550}.quantity-change .quantity-added{background:#eef4e9;color:#527746}.quantity-change .quantity-reduced{background:#f8eee9;color:#986647}

.cart-line-meta{display:flex!important;flex-wrap:wrap;gap:4px 10px;font-size:11px;margin-top:3px}

.cart-float>span:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.cart-float small{font-size:12px;font-weight:500}button:disabled{opacity:.4;cursor:default}

.report-tools{display:flex;gap:7px;flex-wrap:wrap}.report-tools button{font-size:12px;padding:9px 12px;white-space:nowrap}.finance-period{flex-wrap:wrap;gap:8px}.delete-order-link{display:block;margin:22px auto 0;padding:9px 14px;background:transparent;color:#a94b40;font-size:12px;border:0}.export-preview{text-align:center}.export-file-icon{display:grid;place-items:center;width:62px;height:72px;margin:0 auto 18px;background:#edf3ec;color:#244e3d;border:1px solid #d9e5d9;border-radius:13px;font-size:16px;font-weight:750}.export-preview>p{margin:8px 0 18px;font-size:13px}.export-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#f5f7f2;border-radius:14px;padding:18px 8px;gap:6px}.export-stats b{display:block;font-size:18px;overflow-wrap:anywhere}.export-stats span{display:block;font-size:11px;color:#788074;margin-top:6px}.export-includes{text-align:left;display:grid;gap:10px;padding:22px 0}.export-includes span{font-size:13px;color:#687163}.export-includes span:before{content:'✓';margin-right:9px;color:#416c50}@media(max-width:480px){.report-tools{width:100%;justify-content:flex-end}.report-tools button{padding:8px 12px}.export-stats b{font-size:16px}}

.export-download-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.export-download-actions button{padding:13px 9px;font-size:13px;font-weight:650}

.food img{flex:0 0 auto;background:#f2f0e9;aspect-ratio:1;display:block}

/* Consistent vector navigation, independent of platform glyph fonts. */
.bottom button{gap:5px;min-height:56px;font-size:11px;font-weight:650;line-height:1.2;border-radius:14px}.bottom .nav-icon{display:block;width:23px;height:23px;flex-shrink:0}.bottom button.active .nav-icon{stroke-width:2}.cart-float{bottom:calc(88px + env(safe-area-inset-bottom))}.cart-float small{color:#d4e2da}

/* Focused ordering and clear, secondary business reporting. */
.business-overview{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:16px;padding:0 14px}.business-overview>summary{cursor:pointer;font-weight:650;font-size:13px;padding:14px 0;min-height:48px}.business-overview>summary span{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:2px}.business-overview[open]>summary{border-bottom:1px solid var(--line);margin-bottom:14px}.category-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--line);margin:10px 0 14px;text-align:left;font-size:13px}.category-trigger>span:last-child{font-size:20px}.category-list{display:grid;gap:6px}.category-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;background:transparent;text-align:left;min-height:50px;padding:12px}.category-list button.selected{background:#eaf0e8;color:var(--green)}.category-list small{font-weight:500}.confirm-copy{font-size:14px;line-height:1.6;color:#58665e;margin-bottom:14px}.qty,.menu-qty{flex-shrink:0}#cart-lines .row>div:first-child{min-width:0}#cart-lines h3{overflow-wrap:anywhere}.cards{padding-bottom:95px}

.resume-order{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;margin-bottom:14px;background:#e8f0e8;color:var(--green);font-size:13px}.resume-order small{color:#526b5c;white-space:nowrap}.resume-order small span{margin-left:8px}.business-overview summary span{overflow-wrap:anywhere}

.review-items-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}.review-items-head>b{font-size:13px}.review-items-head button{font-size:12px;min-height:44px;padding:9px 13px}.review-line-end{display:grid;justify-items:end;gap:8px;flex-shrink:0}.line-amount{font-size:14px}.review-line-end .qty{gap:8px}.review-line-end .qty button{width:44px;min-height:44px}.review-line-end .qty b{min-width:20px;text-align:center;font-size:14px}.review-empty{padding:20px 0;color:var(--muted);font-size:13px;border-bottom:1px solid var(--line)}
@media(max-width:380px){#cart-lines .row{flex-wrap:wrap}#cart-lines .review-line-end{display:flex;align-items:center;justify-content:space-between;width:100%}}
@media(max-width:480px){#review-form>.two{grid-template-columns:1fr;gap:0}}

/* Order details: clear item hierarchy with a compact summary and actions. */
.order-identity{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:20px}.order-reference{display:block;font-size:11px;font-weight:600;letter-spacing:.2px;margin-bottom:6px;color:#6e7c74}.order-identity h2{font-size:20px;line-height:1.35;overflow-wrap:anywhere}.order-identity p{font-size:12px;color:var(--muted);margin-top:4px}.order-identity .badge{margin:0;flex-shrink:0;font-size:10px;padding:5px 9px}.order-items-caption{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);padding:0 0 8px}.order-items-caption b{font-weight:600}.order-detail-items{border-top:1px solid var(--line)}.order-detail-line{display:flex;align-items:center;gap:10px;padding:15px 0;border-bottom:1px solid var(--line)}.order-item-qty{display:grid;place-items:center;width:30px;min-width:30px;height:30px;border:1px solid #e2e8df;border-radius:9px;background:#f6f8f3;color:var(--green);font-size:12px;font-weight:700}.order-item-copy{flex:1;min-width:0}.order-item-copy b{display:block;font-size:14px;line-height:1.4;overflow-wrap:anywhere}.order-item-copy small{display:block;font-size:11px;margin-top:3px}.order-detail-line>strong{flex-shrink:0;font-size:14px;font-variant-numeric:tabular-nums}.order-total-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;margin:18px 0;padding:16px;background:#edf3ee;border:1px solid #e1e9e1;border-radius:13px}.order-total-card>span{font-size:13px;font-weight:650}.order-total-card>strong{font-size:24px;letter-spacing:-.7px}.order-total-card>div{grid-column:1/-1;display:flex;justify-content:space-between;padding-top:8px;border-top:1px solid #dce5dd;font-size:12px}.order-discount{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}.order-discount>span{font-size:13px;font-weight:600}.order-discount small{display:block;font-size:10px;font-weight:400;margin-top:2px}.order-discount>div{display:flex;align-items:center;width:116px;max-width:45%;border:1px solid var(--line);border-radius:10px;background:#fff;padding-left:12px;color:#7d857f}.order-discount input{border:0;background:transparent;min-width:0;text-align:right;padding:10px 12px 10px 4px;font-size:16px}.order-discount>div:focus-within{outline:2px solid #a4b6a5}.order-discount input:focus{outline:none}.order-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.order-detail-actions>button:only-child{grid-column:1/-1}.order-detail-actions button{min-height:48px;padding:12px 8px;font-size:13px}.order-detail-note{font-size:12px;color:#68766d;padding:10px 0;overflow-wrap:anywhere}.order-detail-note span{font-weight:600;margin-right:8px}.order-detail+.delete-order-link{margin:12px auto 0;min-height:44px;font-size:11px;font-weight:500;color:#9a5b52}.order-detail .soft{border-color:#dce4da}


/* Business overview */
.business-overview{padding:0;border-radius:20px;overflow:hidden}
.business-overview>summary{padding:18px 20px;min-height:64px;list-style:none;display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;font-size:15px}
.business-overview>summary::-webkit-details-marker{display:none}
.business-overview>summary:before{content:'›';font-size:23px;line-height:1;transition:transform .2s}
.business-overview[open]>summary:before{transform:rotate(90deg)}
.business-overview>summary span{margin:0 0 0 auto;font-size:12px;text-align:right}
.business-overview[open]>summary{margin:0;border-bottom:1px solid var(--line)}
.overview-content{padding:16px;display:grid;gap:14px}
.overview-content .finance-period{display:block}
.overview-content .chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px;margin:0;gap:3px;background:#f2f5ef;border-radius:12px}
.overview-content .chips button{min-height:42px;padding:8px 3px;border:0;border-radius:9px;font-size:11px;white-space:nowrap;background:transparent}
.overview-content .chips button.active{background:var(--green);color:white;box-shadow:0 2px 5px #163d2520}
.overview-net{background:var(--green);color:white;border-radius:15px;padding:19px 20px;display:grid;gap:8px}
.overview-net>div{display:grid;gap:5px}
.overview-net span{font-size:12px;color:#dce8e0}
.overview-net strong{font-size:32px;line-height:1.2;letter-spacing:-1px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.overview-net small{font-size:11px;color:#dce8e0}
.overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.overview-metrics>div{display:grid;gap:7px;padding:14px;background:#fafbf8;border:1px solid var(--line);border-radius:12px;min-width:0}
.overview-metrics span{font-size:11px;color:#66736a}
.overview-metrics strong{font-size:20px;line-height:1.25;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.overview-metrics .overview-unpaid{background:#fff9ed;border-color:#eee1c8}
.overview-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:12px;font-weight:650}
.overview-section-title small{font-size:11px;font-weight:400;color:var(--muted)}
.overview-payments{padding:2px 0}
.overview-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.overview-methods>div{display:grid;gap:5px;min-width:0}
.overview-methods span{font-size:11px;color:var(--muted)}
.overview-methods strong{font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.overview-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:14px;border-top:1px solid var(--line)}
.overview-actions button{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:12px;color:var(--green)}
.overview-actions button:hover{background:#edf3e9}
.overview-calculation{font-size:11px;color:var(--muted)}
.overview-calculation summary{cursor:pointer;padding:5px 0;min-height:32px}
.overview-calculation p{margin:5px 0;line-height:1.6}
@media(max-width:480px){.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-metrics .overview-unpaid{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}.business-overview>summary{padding:16px}.overview-actions button{font-size:11px;padding:10px}.overview-net strong{font-size:30px}}
@media(prefers-reduced-motion:reduce){.business-overview>summary:before{transition:none}}

/* Settings and catalog management */
.settings-heading h1{letter-spacing:-.8px}
.settings-layout{gap:18px}
.settings-card{border-radius:20px;box-shadow:0 4px 20px #203f3605}
.settings-card-title{padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:18px}
.settings-card-title h3{font-size:16px}
.settings-icon{background:#eaf1eb;color:var(--green);border-radius:12px;width:40px;height:40px;flex-basis:40px}
.settings-tools{padding:18px 22px}
.settings-tools>h3{letter-spacing:.06em;font-size:11px;margin-bottom:4px}
.settings-tool,.settings-tools summary{min-height:78px;padding:16px 4px;gap:14px}
.settings-tool b,.settings-tools summary b{font-size:14px}
.settings-tool:hover,.settings-tools summary:hover{background:#f8faf6}
.settings-detail-form{max-width:none;margin-top:8px;padding:16px;background:#f7f9f5;border:1px solid var(--line);border-radius:14px}
.settings-detail-form h3{font-size:14px}
.settings-detail-form button{min-height:44px;width:100%}
.settings-detail-form input{background:#fff}
.settings-save{border-top:1px solid var(--line);margin-top:2px;padding:14px 0}
.settings-save button{min-height:46px;font-size:13px}
.staff-access-row{gap:12px;padding:15px 0}
.staff-access-copy{min-width:0;overflow-wrap:anywhere}
.staff-status-action{min-height:44px}
.logo-upload-card{background:#f7f9f5;border-style:solid}
.logo-upload-button{min-height:44px}
.settings-card label{line-height:1.5}
.settings-card input:focus-visible,.settings-card textarea:focus-visible,.settings-card select:focus-visible{outline:2px solid var(--green);outline-offset:2px}
button:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}
#sheet[data-management=true]{background:#f8faf6}
#sheet[data-management=true] .sheet-head{padding:18px 22px;border-bottom:1px solid var(--line)}
#sheet[data-management=true] .sheet-head h2{font-size:19px;letter-spacing:-.4px}
#sheet[data-management=true] .sheet-head button{width:44px;min-height:44px;border-radius:14px}
#sheet[data-management=true] #sheet-body{padding:18px 20px 26px}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.catalog-toolbar>div{display:grid;gap:5px}
.catalog-toolbar b{font-size:15px}
.catalog-toolbar small{color:var(--muted);font-size:11px;line-height:1.5}
.catalog-toolbar .primary{min-height:44px;white-space:nowrap;padding:10px 14px;font-size:12px}
.catalog-filters{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px;margin-bottom:16px}
.catalog-filters input,.catalog-filters select{background:white;min-width:0;font-size:13px}
.catalog-rows{display:grid;gap:9px}
.catalog-row{display:flex;align-items:center;gap:10px;padding:12px;background:white;border:1px solid var(--line);border-radius:15px}
.catalog-row img{width:46px;height:46px;object-fit:cover;border-radius:10px;flex-shrink:0}
.catalog-copy{display:grid;gap:4px;min-width:0;flex:1}
.catalog-copy b{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.catalog-copy small{font-size:11px;line-height:1.4;color:var(--muted)}
.catalog-state{font-size:10px;color:#386448;font-weight:600}
.catalog-state.unavailable{color:#9a6431}
.drag-handle{padding:0;width:28px;min-width:28px;min-height:44px;font-size:23px;background:transparent;color:#89958d;cursor:grab;touch-action:none}
.is-dragging{background:#edf4ec;border-color:#74947e;box-shadow:0 5px 14px #203f361a}
.is-dragging .drag-handle{cursor:grabbing}
.catalog-actions{display:flex;align-items:center;gap:3px;flex-wrap:wrap;justify-content:flex-end;max-width:124px}
.catalog-actions button{min-height:44px;padding:6px 10px;font-size:12px;background:#f0f4ed;color:var(--green)}
.catalog-actions .catalog-move{width:30px;padding:4px;min-height:36px;background:transparent;color:#66796c}
.catalog-actions button:disabled{opacity:.3;cursor:default}
.catalog-feedback{font-size:12px;min-height:18px;color:var(--green);margin:12px 0 0}
.catalog-form{padding:18px;background:#fff;border:1px solid var(--line);border-radius:17px}
.catalog-form label{font-size:12px;line-height:1.5}
.catalog-form input,.catalog-form textarea,.catalog-form select{font-size:14px;border-radius:11px}
.catalog-form .category-picker>div{gap:8px}
.catalog-form .category-picker label span{min-height:42px;display:flex;align-items:center}
.catalog-availability{padding:12px;background:#f4f7f1;border-radius:11px;min-height:48px}
.catalog-form-footer{position:sticky;bottom:-26px;display:flex;gap:10px;padding:14px 0 calc(14px + env(safe-area-inset-bottom));margin-top:8px;background:white;z-index:1}
.catalog-form-footer>button{min-height:46px;flex:1;font-size:13px}
.catalog-form-footer .soft{background:#f0f3ec;color:var(--green)}
.catalog-delete{display:block;margin:6px auto 0;background:transparent;color:#a3332e;min-height:44px;font-size:12px;padding:10px}
.catalog-variants{padding:16px;background:#fff;border:1px solid var(--line);border-radius:16px;margin-top:14px}
.catalog-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.catalog-section-heading h3{font-size:14px}
.catalog-section-heading button,.catalog-variants .row button{min-height:44px;font-size:12px;background:#eef4eb;color:var(--green)}
.catalog-variants .muted{font-size:12px;line-height:1.6;margin-top:10px}
.catalog-delete-preview{background:#fff;padding:20px;border:1px solid #ebd5d0;border-radius:14px}
.catalog-delete-preview b{font-size:16px}
.catalog-delete-preview p{font-size:13px;line-height:1.6;margin:10px 0 0;color:var(--muted)}
.catalog-form-footer .danger{background:#a3332e;color:white}
@media(max-width:480px){.settings-tools{padding:16px}.settings-save{bottom:82px}.settings-save>span{max-width:130px}.catalog-row{flex-wrap:wrap;gap:8px;padding:10px}.catalog-row .catalog-actions{margin-left:auto;max-width:none}.catalog-row img{width:40px;height:40px}.catalog-filters{grid-template-columns:1fr}.catalog-form{padding:14px}#sheet[data-management=true] #sheet-body{padding:14px 14px 26px}.catalog-form .two{grid-template-columns:1fr}.catalog-toolbar{align-items:flex-start}.catalog-toolbar small{max-width:160px}}
.catalog-row.is-drop-target{outline:2px dashed #74947e;outline-offset:2px}
.drag-handle{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.drag-handle:active{cursor:grabbing}

/* Mobile search takes the visual viewport; results scroll above the keyboard. */
.dish-search-bar{display:flex;align-items:center;gap:10px}.dish-search-field{flex:1;min-width:0}.dish-search-field input{font-size:16px}.dish-search-bar>button{display:none}.dish-search-active{overflow:hidden;overscroll-behavior:none}.dish-search-active>.top,.dish-search-active>.bottom{display:none}.dish-search-active #app{position:fixed;top:var(--dish-search-top,0px);left:0;right:0;width:100%;max-width:none;height:var(--dish-search-height,100dvh);margin:0;padding:max(10px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom));z-index:20;background:var(--bg);display:flex;flex-direction:column;overflow:hidden}.dish-search-active #app>.page-head,.dish-search-active #choose-category{display:none}.dish-search-active .dish-search-bar{flex-shrink:0;padding:0 0 10px}.dish-search-active .dish-search-bar>button{display:block;background:transparent;padding:10px 6px;color:var(--green);font-size:14px;min-width:48px;min-height:44px}.dish-search-active #dish-search{min-height:46px;font-size:16px;scroll-margin-top:0}.dish-search-active #foods{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;align-content:start;padding:2px 0 10px}.dish-search-active #cart-button{flex-shrink:0}.dish-search-active .cart-float{position:static;transform:none;width:100%;margin-top:6px;padding:12px 14px;min-height:46px;border-radius:12px;box-shadow:none;font-size:13px}.dish-search-active .food{align-self:start}.dish-search-active dialog{z-index:30}

/* Category browsing stays within reach while preserving room for dishes. */
.menu-fab{position:fixed;right:max(16px,calc((100vw - 1010px)/2));bottom:calc(88px + env(safe-area-inset-bottom));z-index:14;display:flex;align-items:center;gap:8px;min-height:48px;padding:12px 19px;border:1px solid #ffffff24;border-radius:16px;background:var(--green);color:#fff;box-shadow:0 6px 20px #203f3630;font-size:14px}
.menu-fab>span:first-child{font-size:21px;line-height:1}
#app:has(.cart-float) .menu-fab{bottom:calc(164px + env(safe-area-inset-bottom))}
#app:has(.menu-fab) #foods{padding-top:12px;padding-bottom:150px}
.dish-search-active .menu-fab{display:none}
.menu-edit-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;font-size:13px}
.menu-edit-bar button{font-size:12px;padding:8px 12px}
.dish-search-active .menu-edit-bar{display:none}
#sheet[data-category-menu=true]{inset:auto 16px calc(146px + env(safe-area-inset-bottom)) auto;width:min(340px,calc(100% - 32px));max-height:calc(100dvh - 170px - env(safe-area-inset-bottom));margin:0;border-radius:20px;box-shadow:0 12px 45px #102a2240}
body:has(#app .cart-float) #sheet[data-category-menu=true]{bottom:calc(222px + env(safe-area-inset-bottom));max-height:calc(100dvh - 246px - env(safe-area-inset-bottom))}
#sheet[data-category-menu=true] .sheet-head{padding:13px 16px}
#sheet[data-category-menu=true] .sheet-head h2{font-size:17px}
#sheet[data-category-menu=true] #sheet-body{padding:6px 10px 12px}
#sheet[data-category-menu=true] .category-list{gap:2px}
#sheet[data-category-menu=true] .category-list button{padding:12px;min-height:48px;font-size:13px;border-radius:12px;gap:12px}
#sheet[data-category-menu=true] .category-list button span{overflow-wrap:anywhere}
#sheet[data-category-menu=true] .category-list small{font-size:12px;flex-shrink:0}
@media(min-width:1050px){#sheet[data-category-menu=true]{right:calc((100vw - 1010px)/2)}}
@media print{.menu-fab{display:none!important}}

/* Compact cart summary leaves more room for dishes. */
.cart-float{align-items:center;min-height:48px;gap:12px;padding:10px 14px;border-radius:14px;font-size:13px}
.cart-float>.cart-summary{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;text-align:left}
.cart-item-count{font-size:12px;font-weight:500;color:#d4e2da;white-space:nowrap}
.cart-divider{color:#9fb5aa;font-weight:400}
.cart-summary strong{font-size:15px;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cart-review-action{display:flex;align-items:center;gap:7px;flex-shrink:0;white-space:nowrap;font-size:13px}
#app:has(.cart-float) .menu-fab{bottom:calc(148px + env(safe-area-inset-bottom))}
body:has(#app .cart-float) #sheet[data-category-menu=true]{bottom:calc(206px + env(safe-area-inset-bottom));max-height:calc(100dvh - 230px - env(safe-area-inset-bottom))}
.dish-search-active .cart-float{min-height:48px;padding:10px 14px}

.cart-float>span.cart-summary{flex-direction:row;align-items:center;gap:8px}
/* Soft ordering actions match the menu's sage and white palette. */
.menu-fab{background:#fff;color:var(--green);border:1px solid #d6e1d7;box-shadow:0 4px 14px #203f3612;font-weight:650}
.menu-fab:hover{background:#f1f6ef}
.menu-fab>span:first-child{color:#4b6b59}
.cart-float{background:#e8f0e9;color:var(--green);border:1px solid #cfddd2;box-shadow:0 4px 16px #203f3610}
.cart-float .cart-item-count{color:#526c5d}
.cart-float .cart-divider{color:#8da193}
.cart-float .cart-summary strong{color:var(--green)}
.cart-float .cart-review-action{font-weight:700}
.cart-review-action>span{display:grid;place-items:center;width:24px;height:24px;background:#fff;border-radius:8px;color:var(--green)}
.cart-float:hover{background:#dfeae1}

/* Keep browsing controls available without crowding the dishes. */
.dish-search-bar{position:sticky;top:var(--ordering-header-height,64px);z-index:9;background:var(--bg);padding:8px 0 10px;margin-top:-8px}
.dish-search-active .dish-search-bar{position:relative;top:auto;margin-top:0}
.menu-fab{overflow:hidden;transition:padding .18s ease,gap .18s ease}
.menu-fab>span:last-child{max-width:58px;overflow:hidden;white-space:nowrap;opacity:1;transition:max-width .18s ease,opacity .12s ease}
.menu-fab.is-scrolling{padding:12px;gap:0}
.menu-fab.is-scrolling>span:last-child{max-width:0;opacity:0}
.food .option-count{max-width:112px}
.food small.selected-size-summary{font-size:10px;line-height:1.45;font-weight:500;white-space:normal;overflow-wrap:anywhere;color:#42614e}
.menu-diet-label{font-size:10px;line-height:1.3;font-weight:600;color:#42694b}
.menu-diet-label[hidden]{display:none}
.brand:has(.menu-diet-label:not([hidden])){display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:10px;row-gap:1px}
.brand:has(.menu-diet-label:not([hidden])) img{grid-column:1;grid-row:1/3}
.brand:has(.menu-diet-label:not([hidden])) b,.brand:has(.menu-diet-label:not([hidden])) .menu-diet-label{grid-column:2}
.brand:not(:has(img)):has(.menu-diet-label:not([hidden])){grid-template-columns:minmax(0,1fr)}
.brand:not(:has(img)):has(.menu-diet-label:not([hidden])) b,.brand:not(:has(img)):has(.menu-diet-label:not([hidden])) .menu-diet-label{grid-column:1}
@media(prefers-reduced-motion:reduce){.menu-fab,.menu-fab>span:last-child{transition:none}}

/* Keep wheel and touch scrolling inside the open category menu. */
html:has(#sheet[open][data-category-menu=true]),
body:has(#sheet[open][data-category-menu=true]){overflow:hidden;overscroll-behavior:none}
#sheet[data-category-menu=true]{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}

/* Compact order review with optional details and a visible save action. */
#sheet[data-review=true]{background:#fafbf8}
#sheet[data-review=true] .sheet-head{padding:12px 16px}
#sheet[data-review=true] .sheet-head h2{font-size:18px}
#sheet[data-review=true] .sheet-head button{width:44px;min-height:44px;font-size:23px;border-radius:13px}
#sheet[data-review=true] #sheet-body{padding:0}
.review-content{padding:12px 16px}
.review-contact,.review-note{background:#fff;border:1px solid var(--line);border-radius:13px}
.review-contact summary,.review-note summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 12px;cursor:pointer;list-style:none;font-size:12px;font-weight:650}
.review-contact summary::-webkit-details-marker,.review-note summary::-webkit-details-marker{display:none}
.review-contact summary:before,.review-note summary:before{content:'+';color:#587261;font-size:17px;font-weight:500}
.review-contact[open] summary:before,.review-note[open] summary:before{content:'−'}
.review-contact summary small,.review-note summary small{margin-left:auto;font-size:11px;font-weight:400;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.review-contact-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 12px 12px}
.review-contact-fields label{font-size:11px;margin:0;min-width:0}
.review-contact-fields input,.review-note-field input{min-height:44px;padding:9px 11px;font-size:16px}
.review-content .review-items-head{margin:4px 0 0;gap:8px}
.review-content .review-items-head button{background:transparent;color:var(--green);padding:8px 0 8px 10px;min-height:44px;font-size:12px}
#cart-lines .review-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}
.review-item-copy{min-width:0;overflow-wrap:anywhere}
.review-item h3{font-size:13px;line-height:1.4;font-weight:650;margin:0 0 4px}
.review-item .cart-line-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;font-size:11px;line-height:1.5}
.review-item .review-size{padding:2px 6px;border-radius:5px;background:#e8f0e9;color:#41624d;font-size:10px}
.review-item .review-line-end{display:grid;gap:3px;justify-items:end;min-width:110px}
.review-item .line-amount{font-size:14px;font-variant-numeric:tabular-nums}
.review-item .qty{gap:0;border:1px solid #dbe5d9;border-radius:11px;background:#edf3e9;overflow:hidden}
.review-item .qty button{width:40px;min-height:44px;background:transparent;padding:0;border-radius:0;color:var(--green);font-size:19px}
.review-item .qty b{min-width:26px;font-size:13px;color:var(--green);font-variant-numeric:tabular-nums}
.review-note{margin-top:12px}
.review-note-field{margin:0;padding:0 12px 12px}
.review-submit-footer{position:sticky;bottom:0;z-index:1;background:#fff;border-top:1px solid var(--line);padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
.review-save-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.review-save-row>div{display:grid;gap:2px;min-width:0}
.review-save-row small{font-size:11px}
.review-save-row strong{font-size:21px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.review-save-row button{display:flex;align-items:center;justify-content:center;gap:14px;min-height:46px;background:#e8f0e9;border:1px solid #cfddd2;color:var(--green);padding:11px 18px;font-size:13px;flex-shrink:0}
.review-submit-footer p{font-size:10px;color:var(--muted);margin-top:8px;line-height:1.4}
.review-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:480px){.review-contact-fields{grid-template-columns:1fr}}

.review-phone-error{grid-column:1/-1;font-size:11px;line-height:1.4;color:#a3332e}
/* Lighter review controls retain generous touch targets. */
#sheet[data-review=true]{background:#fff}
#sheet[data-review=true] .sheet-head{padding:6px 16px}
#sheet[data-review=true] .sheet-head h2{font-size:17px;font-weight:650}
#sheet[data-review=true] .sheet-head button{position:relative;isolation:isolate;width:44px;min-height:44px;padding:0;background:transparent;font-size:21px}
#sheet[data-review=true] .sheet-head button:before{content:'';position:absolute;inset:6px;z-index:-1;background:#f1f4ee;border-radius:10px}
.review-content{padding:2px 16px 8px}
.review-contact,.review-note{border:0;border-radius:0;background:transparent}
.review-contact{border-bottom:1px solid #edf0eb}
.review-contact summary,.review-note summary{padding:4px 0;min-height:44px;font-size:12px;font-weight:600}
.review-contact summary:before,.review-note summary:before{font-size:16px}
.review-contact summary small,.review-note summary small{font-size:10px;color:#828b84}
.review-contact-fields{padding:10px 12px 12px;margin-bottom:10px;background:#f8faf6;border:1px solid #e9eee5;border-radius:12px}
.review-content .review-items-head{margin:0}
.review-content .review-items-head>b{font-size:12px;font-weight:600}
.review-content .review-items-head button{font-size:11px;font-weight:600}
#cart-lines .review-item{padding:6px 0;gap:10px}
.review-item h3{font-size:13px;line-height:1.4;font-weight:600}
.review-item .review-size{padding:0;background:transparent;border-radius:0;font-size:11px;font-weight:600}
.review-item .review-size+span:before{content:'·';margin-right:6px;color:#9ca89e}
.review-item .review-line-end{min-width:108px;gap:0}
.review-item .line-amount{font-size:13px;font-weight:650}
.review-item .qty{border:0;background:transparent;overflow:visible;gap:0;border-radius:0}
.review-item .qty button{position:relative;isolation:isolate;width:44px;min-height:44px;font-size:18px;background:transparent;border-radius:10px}
.review-item .qty button:before{content:'';position:absolute;inset:6px;z-index:-1;border:1px solid #dce6d8;background:#f1f6ed;border-radius:9px}
.review-item .qty button:enabled:active:before{background:#e2ecdf}
.review-item .qty b{min-width:20px;font-size:12px;font-weight:600}
.review-note{margin-top:2px}
.review-note-field{padding:0 0 8px}
.review-submit-footer{padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
.review-save-row{gap:12px}
.review-save-row strong{font-size:20px;font-weight:700}
.review-save-row small{font-size:10px}
.review-save-row button{position:relative;isolation:isolate;min-height:44px;gap:8px;padding:0 12px;border:0;background:transparent;font-size:12px;font-weight:650;border-radius:10px}
.review-save-row button:before{content:'';position:absolute;inset:4px 0;z-index:-1;background:#e8f0e9;border:1px solid #d5e1d7;border-radius:10px}
.review-save-row button:enabled:active:before{background:#dce8de}
.review-submit-footer p{margin-top:6px;font-size:10px}

/* Focus starts on the dialog heading, with keyboard focus retained on controls. */
#sheet-title[tabindex="-1"]:focus{outline:none}
#sheet[data-review=true] .sheet-head h2{letter-spacing:-.025em}
#sheet[data-review=true] .sheet-head button:before{inset:8px;border-radius:50%;background:#f1f4ee}
.review-items-count{font-size:11px;font-weight:500;color:#6e7d72;margin-left:3px;font-variant-numeric:tabular-nums}
#cart-lines .review-item{border-bottom-color:#edf0eb}
.review-save-row button:before{background:#e3eee4;border-color:#d2dfd4}

/* Order details share the compact review sheet styling. */
#sheet[data-order-details=true] .sheet-head{padding:6px 16px}
#sheet[data-order-details=true] .sheet-head h2{font-size:17px;font-weight:650;letter-spacing:-.025em}
#sheet[data-order-details=true] #close-sheet{position:relative;isolation:isolate;width:44px;min-height:44px;padding:0;background:transparent;font-size:21px}
#sheet[data-order-details=true] #close-sheet:before{content:'';position:absolute;inset:8px;border-radius:50%;background:#f1f4ee;z-index:-1}
#sheet[data-order-details=true] #sheet-body{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
#sheet[data-order-details=true] .order-identity{align-items:center;padding-bottom:14px;gap:12px}
#sheet[data-order-details=true] .order-identity h2{font-size:18px;line-height:1.3;font-weight:650;letter-spacing:-.3px;color:var(--green)}
#sheet[data-order-details=true] .order-identity p{font-size:12px;margin-top:4px;color:#5d7063}
#sheet[data-order-details=true] .order-identity .order-phone{font-size:11px;margin-top:2px;color:var(--muted)}
#sheet[data-order-details=true] .order-identity .badge{font-size:9px;padding:4px 7px}
#sheet[data-order-details=true] .order-items-caption{padding-bottom:6px}
#sheet[data-order-details=true] .order-detail-line{gap:8px;padding:10px 0;border-bottom-color:#edf0eb}
#sheet[data-order-details=true] .order-item-qty{width:26px;min-width:26px;height:26px;border-radius:8px;font-size:11px}
#sheet[data-order-details=true] .order-item-copy b{font-size:13px;font-weight:600;line-height:1.4}
#sheet[data-order-details=true] .order-item-copy small{font-size:11px;margin-top:2px}
#sheet[data-order-details=true] .order-detail-line>strong{font-size:13px;font-weight:650}
#sheet[data-order-details=true] .order-total-card{margin:12px 0;padding:10px 12px;border-radius:11px;background:#f0f5ef;border-color:#e0e8de;gap:5px}
#sheet[data-order-details=true] .order-total-card>span{font-size:12px;font-weight:600}
#sheet[data-order-details=true] .order-total-card>strong{font-size:20px;letter-spacing:-.4px}
#sheet[data-order-details=true] .order-discount{margin:0 0 8px;min-height:44px;scroll-margin:80px 0 20px}
#sheet[data-order-details=true] .order-discount>span{display:flex;align-items:center;gap:6px;font-size:12px}
#sheet[data-order-details=true] .order-discount small{display:inline;font-size:10px;margin:0}
#sheet[data-order-details=true] .order-discount>div{width:108px;border-color:#dce5d8}
#sheet[data-order-details=true] .order-discount input{min-height:44px;font-size:16px;padding:9px 10px 9px 4px}
#sheet[data-order-details=true] .order-discount>div:focus-within{outline:2px solid #829c88;outline-offset:1px}
#sheet[data-order-details=true] .order-detail-actions{gap:10px}
#sheet[data-order-details=true] .order-detail-actions button{position:relative;isolation:isolate;min-height:44px;padding:0 10px;font-size:12px;border:0;background:transparent;color:var(--green);border-radius:10px}
#sheet[data-order-details=true] .order-detail-actions button:before{content:'';position:absolute;inset:4px 0;z-index:-1;border:1px solid #dce5d9;border-radius:10px;background:#fff}
#sheet[data-order-details=true] .order-detail-actions button.primary:before{background:#e3eee4;border-color:#d2dfd4}
#sheet[data-order-details=true] .delete-order-link{margin:4px auto 0;padding:8px 12px;min-height:40px;font-size:11px}
.sheet-keyboard-done[hidden]{display:none!important}
#sheet .sheet-head button.sheet-keyboard-done{background:transparent;color:var(--green);font-size:12px;font-weight:650;padding:8px 10px;width:auto;min-height:44px;border-radius:10px}
#sheet .sheet-head button.sheet-keyboard-done:before{display:none}
#sheet .sheet-head h2{flex:1;min-width:0}
#sheet[data-keyboard=true]{bottom:var(--sheet-keyboard-bottom,0px);max-height:var(--sheet-visible-height,92dvh);overscroll-behavior:contain;scroll-padding:72px 0 16px}

/* Keep the item total and quantity on the same baseline. */
#cart-lines .review-item{grid-template-columns:minmax(0,1fr);gap:2px;padding:9px 0}
#cart-lines .review-item-copy h3{margin:0;font-size:13px;line-height:1.4}
.review-item-metadata{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;margin-top:2px}
.review-item-metadata .cart-line-meta{display:inline-flex}
.review-item-metadata .cart-line-meta:empty{display:none}
.review-item-metadata .quantity-change{display:inline-flex!important;max-width:none;margin:0;font-size:10px!important;gap:4px}
.review-item-metadata:has(.cart-line-meta:empty):not(:has(.quantity-change)){display:none}
#cart-lines .review-item .review-line-end{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;width:100%}
#cart-lines .review-item .line-amount{font-size:15px;font-weight:650;line-height:1.3;letter-spacing:-.2px;font-variant-numeric:tabular-nums;color:var(--ink)}
#sheet[data-order-details=true] #discount{direction:ltr;text-align:right}

/* Stable receipt columns in preview and print. */
.receipt table{table-layout:fixed}.receipt th:first-child{width:45%}.receipt th:nth-child(2){width:10%}.receipt th:nth-child(3){width:21%}.receipt th:last-child{width:24%}.receipt td:first-child{overflow-wrap:anywhere}.receipt td:not(:first-child),.receipt th:not(:first-child){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.receipt .row>span:last-child,.receipt .total>b:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.receipt td{padding:9px 2px}.receipt td small{margin-top:2px}.receipt footer{line-height:1.6}

/* Compact Orders and Bills, with one clear status and readable dates. */
.records-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.records-heading h1{font-size:22px;letter-spacing:-.6px;line-height:1.3}
.records-heading>span{font-size:12px;color:#68776e;font-weight:500}
.records-page>.search{font-size:14px;min-height:46px;padding:11px 14px}
.records-filters{padding:12px 0;gap:7px}
.records-filters button{min-height:38px;padding:8px 13px;border-radius:11px;font-size:12px;line-height:1.3}
.records-page .business-overview{border-radius:13px;margin-bottom:12px}
.records-page .business-overview>summary{min-height:48px;padding:11px 14px;font-size:13px;gap:8px}
.records-page .business-overview>summary span{font-size:11px}
.record-card{display:grid;gap:10px;padding:14px 15px;border-radius:15px;font-weight:400;line-height:1.4;min-width:0;transition:border-color .15s,box-shadow .15s}
.record-card:hover{border-color:#cbd9ce;box-shadow:0 3px 12px #203f3608}
.record-top,.record-reference,.record-bottom,.record-amount{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}
.record-reference{justify-content:flex-start;flex-wrap:wrap;gap:5px 8px}
.record-reference>b{font-size:18px;line-height:1.2;letter-spacing:-.4px;color:var(--green)}
.record-location{font-size:11px;color:#657269;background:#f3f6f1;border-radius:6px;padding:3px 6px;overflow-wrap:anywhere}
.record-top>.badge{margin:0;font-size:9px;letter-spacing:.2px;padding:4px 7px;flex-shrink:0;text-transform:none}
.record-top>.badge.cancelled{background:#f8eeeb;color:#98594d}
.record-customer{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.record-items{display:grid;gap:3px;color:#43574b;font-size:12px;min-width:0}
.record-items>span{display:block;overflow-wrap:anywhere}
.record-items em{font-style:normal;color:#7b857e;font-size:11px}
.record-items .record-more{font-size:11px;color:#77827b}
.record-bottom{border-top:1px solid #eef1eb;padding-top:10px;align-items:flex-end}
.record-date{display:flex;align-items:center;flex-wrap:wrap;gap:3px 8px;color:#737f77;font-size:11px;min-width:0}
.record-quantity{border-left:1px solid #dce3dc;padding-left:8px;white-space:nowrap}
.record-amount{flex-shrink:0;gap:10px;align-items:center}
.record-amount strong{font-size:18px;letter-spacing:-.3px;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.2}
.record-amount>span{font-size:23px;color:#819389;line-height:1}
@media(max-width:360px){.record-card{padding:12px;gap:9px}.record-location{font-size:10px}.record-amount strong{font-size:16px}.record-date{font-size:10px}.record-reference>b{font-size:17px}}
@media(prefers-reduced-motion:reduce){.record-card{transition:none}}

.record-card{grid-template-columns:minmax(0,1fr);justify-content:normal}
@media(min-width:760px){.records-page #order-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}

.record-items{font-size:13px;line-height:1.5}.record-date{font-size:12px}.record-top>.badge{font-size:10px}


/* Voice and clear actions stay inside each search field, within thumb reach. */
.voice-search-field{position:relative;min-width:0}
.voice-search-field>.search{font-size:16px;min-height:48px;padding-right:52px}
.voice-search-field.has-search>.search{padding-right:96px}
.voice-search-field input::-webkit-search-cancel-button{display:none;-webkit-appearance:none}
.search-tools{position:absolute;right:3px;top:2px;height:44px;display:flex;align-items:center;gap:0}
.search-tools button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border-radius:10px;background:transparent;color:#507063;flex-shrink:0}
.search-tools button:hover{background:#edf3ed}
.search-tools .search-clear{font-size:25px;font-weight:400;color:#7a857d}
.search-tools button[hidden],.voice-search-status[hidden]{display:none!important}
.search-mic svg{width:21px;height:21px}
.is-listening .search-mic{background:#e4eee5;color:#244d3c}
.is-listening>.search{border-color:#8eaa95}
.voice-search-status{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:5px;padding:0 4px;color:#52705d;font-size:12px;line-height:1.4}
.voice-search-status>span:before{content:'';display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#5e886b}
.voice-search-status .voice-cancel{min-height:36px;padding:4px 8px;background:transparent;color:var(--green);font-size:12px}
.dish-search-bar{align-items:flex-start}
.dish-search-bar>#dish-search-done{flex-shrink:0}
.records-page .voice-search-field>.search{font-size:14px}
@media print{.search-tools,.voice-search-status{display:none!important}}

/* A single voice panel stays near the thumb, outside the scrolling menu. */
.voice-bottom-panel{position:fixed;z-index:70;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(430px,calc(100% - 24px));max-height:65dvh;overflow:auto;padding:18px;background:#fff;border:1px solid #dce6dd;border-radius:22px;box-shadow:0 12px 60px #18392b30;color:var(--ink)}
.voice-bottom-panel[hidden]{display:none!important}
.voice-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.voice-panel-eyebrow{display:block;font-size:9px;font-weight:700;letter-spacing:1.3px;color:#789081;margin-bottom:3px}
.voice-panel-head h2{font-size:21px;letter-spacing:-.5px;line-height:1.3}
.voice-panel-close{flex-shrink:0;display:grid;place-items:center;width:44px;min-height:44px;padding:0;background:#f2f6ef;font-size:26px;font-weight:400;border-radius:50%;color:#526f60}
.voice-visual{display:flex;justify-content:center;align-items:center;gap:5px;height:62px;margin:13px 0 8px}
.voice-visual>span{height:12px;width:5px;border-radius:5px;background:#7da38a;transform-origin:center}
.voice-visual>span:nth-child(2),.voice-visual>span:nth-child(4){height:24px}.voice-visual>span:nth-child(3){height:36px;background:#315e46}
.voice-bottom-panel[data-phase=recording] .voice-visual>span{animation:voice-wave .8s ease-in-out infinite alternate}.voice-bottom-panel[data-phase=recording] .voice-visual>span:nth-child(even){animation-delay:.25s}.voice-bottom-panel[data-phase=recording] .voice-visual>span:nth-child(3){animation-delay:.4s}
.voice-bottom-panel[data-phase=loading] .voice-visual>span,.voice-bottom-panel[data-phase=processing] .voice-visual>span{animation:voice-wait 1.2s ease-in-out infinite alternate}
.voice-message{font-size:13px;line-height:1.6;text-align:center;color:#65796d;margin-bottom:16px;overflow-wrap:anywhere}
.voice-panel-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #edf1e9}
.voice-panel-actions label{margin:0;gap:3px;font-size:10px;color:#7a8b7f;font-weight:500}
.voice-language{min-height:38px;padding:5px 26px 5px 9px;font-size:13px;background:#f7f9f4;border-color:#e0e8dd;border-radius:9px;min-width:116px}
.voice-panel-actions>.voice-cancel{min-height:44px;padding:8px 18px;background:#eaf1e7;border:1px solid #dae6d6;border-radius:12px;color:#315641;font-size:13px}
.voice-privacy-note{display:block;font-size:10px;text-align:center;color:#92a094;margin-top:12px}
.voice-suggestions{display:grid;gap:7px;margin-bottom:12px}.voice-suggestions:empty{display:none}
.voice-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;text-align:left;border:1px solid #e1e9dd;background:#f6f9f2;border-radius:11px;padding:10px 12px;font-size:13px;font-weight:600;color:#355640}
@keyframes voice-wave{to{transform:scaleY(.35)}}@keyframes voice-wait{to{opacity:.3}}
@media(max-width:820px){body.dish-search-active .voice-bottom-panel{bottom:calc(16px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.voice-visual>span{animation:none!important}}
@media print{.voice-bottom-panel{display:none!important}}
