:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#263431;background:#f4f5f1;font-size:15px}*{box-sizing:border-box}body{margin:0}header{padding:28px 5%;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #dde3dc}h1{font-size:28px;margin:7px 0 0;font-weight:650}h2{font-size:19px;margin:0 0 10px}.eyebrow{font-size:12px;letter-spacing:2px;color:#697b70}p{color:#6b766d;font-size:13px;line-height:1.7}label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#59685e}.identity{display:flex;align-items:center;gap:12px}.notice{padding:12px 5%;background:#fff2dc;color:#855e2a;font-size:13px}main{max-width:1480px;margin:auto;padding:30px 5%}.toolbar,.filters,.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar p{margin:0}.filters{align-items:end}input,select,button{font:inherit;border-radius:8px;padding:10px 12px;border:1px solid #cfd7d0;background:white;color:inherit}button{background:#365d4a;color:white;border-color:#365d4a;cursor:pointer;white-space:nowrap}button:hover{filter:brightness(.94)}button:disabled{opacity:.5;cursor:wait}.secondary{background:white;color:#405549;border-color:#ccd7ce}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:26px 0}.stat{background:white;border:1px solid #e0e5dd;border-radius:12px;padding:20px}.stat strong{display:block;font-size:30px;margin:10px 0 0}.stat span{font-size:13px;color:#68776c}.columns{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px}.section-head>span{font-size:12px;color:#7a867d}.panel{padding:23px;background:white;border:1px solid #e0e5dd;border-radius:12px;margin-bottom:18px}.order{background:white;border:1px solid #e0e5dd;border-radius:12px;margin:12px 0;padding:22px}.order h3{font-size:18px;margin:0}.order .meta{font-size:13px;color:#6c7b70;margin:10px 0}.badge{padding:5px 9px;border-radius:5px;background:#edf3ed;color:#47604c;font-size:12px}.approval{background:#fff0d7;color:#925c16}.allergy{background:#fff1ea;border-left:3px solid #c57852;padding:11px 12px;font-size:14px;margin-top:14px}.pending-change{background:#fff5de;padding:12px;margin-top:12px;color:#775a26;font-size:13px}.actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:18px}.actions button{font-size:13px;padding:8px 12px}.empty{padding:70px 24px;text-align:center;background:#fff;border:1px dashed #cbd6cb;border-radius:12px;margin-top:12px;color:#6b7b70}.sumrow{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf0ea}.sumrow small{color:#7a837b}.sumrow strong{font-size:17px}dialog{border:0;border-radius:14px;padding:28px;max-width:620px;width:calc(100% - 28px);box-shadow:0 25px 90px #10251f30}dialog::backdrop{background:#213a3259}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.wide{grid-column:1/-1}.formfoot{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:26px}.formfoot span{font-size:12px;color:#758073}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#273f32;color:#fff;padding:14px 22px;border-radius:9px;max-width:90%;display:none;z-index:10}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7}.audit-row{font-size:13px;border-bottom:1px solid #edf0ea;padding:12px 0}.audit-row button{margin-left:12px;font-size:12px}.hint{margin-top:6px}[hidden]{display:none!important}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c8a664;outline-offset:2px}@media(max-width:950px){.toolbar{align-items:start;flex-direction:column}.columns{grid-template-columns:1fr}aside{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stats{gap:8px}.stat{padding:15px}.filters{flex-wrap:wrap}}@media(max-width:550px){header{padding:20px;align-items:start;gap:18px;flex-direction:column}main{padding:24px 16px}.notice{line-height:1.7}.stats{grid-template-columns:1fr 1fr}.filters{gap:8px}.filters label{max-width:145px}input,select{width:100%}.identity select{width:auto}.columns,aside{display:block}.order{padding:16px}.section-head{align-items:start}.formgrid{grid-template-columns:1fr}.wide{grid-column:auto}.formfoot{align-items:start;flex-direction:column}dialog{padding:20px}}
nav{display:flex;gap:6px;border-bottom:1px solid #dce3da;padding-bottom:14px;margin-bottom:28px;overflow:auto}nav button{background:transparent;color:#637267;border-color:transparent}nav button.active{background:#365d4a;color:white}.tags{display:flex;gap:6px;flex-wrap:wrap}.tags span{font-size:12px;background:#f1f4ef;padding:5px 8px;border-radius:4px}.giftrow{margin-top:12px}.gift{display:inline-block;font-size:12px;background:#fff1dc;color:#795f2b;padding:6px 8px;border-radius:4px;margin:4px 5px 4px 0}.gift.verified{background:#eaf1e8;color:#496442}.muted{font-size:12px;color:#7c887b}fieldset{border:1px solid #d9e0d6;border-radius:8px;padding:14px}legend{font-size:13px;color:#59685e}.check{display:inline-flex;flex-direction:row;align-items:center;margin:7px 12px 12px 0}.check input{width:auto}.editOnly label{margin-top:12px}#actionForm>label{margin:18px 0}#detailDialog{max-width:880px}.batch{border-bottom:1px solid #ddd;padding:14px 0}.batchrow{font-size:13px;line-height:1.8;padding:12px 0;border-bottom:1px dashed #e0e5dc}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:14px;border-bottom:1px solid #e4e8e0}th{background:#f3f5ef}details{margin:12px 0;padding:12px;background:#f4f6f1}.toolbar>.filters{flex-wrap:wrap;justify-content:flex-end}.toolbar{align-items:flex-start}.toolbar>div:first-child{min-width:160px}@media(max-width:550px){nav{gap:0}nav button{font-size:13px;padding:9px}.toolbar>.filters{justify-content:flex-start}.identity{width:100%}.identity select{max-width:230px}fieldset .check{width:auto}}

.notice-changes{background:#f4f6f1;border-radius:8px;padding:8px 14px}.notice-change{display:grid;grid-template-columns:100px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #e0e6dc;font-size:14px;overflow-wrap:anywhere}.notice-change:last-child{border-bottom:0}.notice-change b{color:#597461;margin:0 6px}@media(max-width:550px){.notice-change{grid-template-columns:1fr;gap:6px}}

#urgentBanner{position:sticky;top:0;z-index:4;background:#fff0e8;border:2px solid #bb4738;border-radius:10px;padding:14px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}#urgentBanner strong{color:#a13227;font-size:19px}#urgentBanner p{margin:5px 0}.urgent-card{border-left:6px solid #bb4738!important}.destination{display:inline-block;padding:6px 10px;border-radius:6px;font-size:14px;margin-right:6px}.destination.dest-fuyou{background:#f4d9e8;color:#70244a}.destination.dest-fuqing{background:#dceaf9;color:#224d82}.destination.dest-other{background:#ffebbd;color:#705215}.order.dest-fuyou{border-left:6px solid #b04b82}.order.dest-fuqing{border-left:6px solid #427bb2}.order.dest-other{border-left:6px solid #b78a23}.watch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}.watch{background:white;color:#354a3b;border:1px solid #ccd7ce;text-align:left;white-space:normal;display:grid;gap:8px}.watch span,.watch small{font-size:12px}.watch-alert{background:#fff0e8;border:2px solid #b54732}.watch-alert b{color:#a23928;font-size:12px}#mealWatch{margin-top:22px}@media(max-width:650px){.watch-grid{grid-template-columns:1fr 1fr}#urgentBanner strong{font-size:16px}}

.form-feedback{position:sticky;bottom:0;padding:12px 14px;background:#fff0e8;color:#8a321b;border:1px solid #dba48e;border-radius:8px;font-weight:600;z-index:2}

.approval-preview{background:#edf3ed;color:#365d4a;padding:12px;border-radius:8px}

.product-row{padding:16px;margin-bottom:14px;border:1px solid #cbd5d1;border-radius:12px;background:#f7faf8}.product-row h3{margin-top:0}

.kitchen-arrangement{border-top:1px dashed #b3bdb7;margin-top:12px;padding-top:12px}.quantity-warning,[data-quantity-warning]{background:#fff4cf;color:#6d4c00;padding:10px;border-radius:8px}

/* Staff workspace: calm surfaces, readable cards, thumb-friendly controls. */
:root{color:#203a33;background:#f3f6f4;font-size:15px;--accent:#245b4c;--line:#e1e9e4;--muted:#687c72}body{line-height:1.5}header{padding:22px max(24px,4vw);background:#fcfdfc}h1{font-size:25px;letter-spacing:-.5px}h2{font-weight:650}button{min-height:44px;border-radius:11px;background:var(--accent);border-color:var(--accent);font-weight:550}input,select{min-height:46px;border-color:#d6e1da;border-radius:10px;background:#fff;font-size:16px;min-width:0}label{font-size:13px;font-weight:500;color:#50665c}main{padding:22px 4%;max-width:1440px}.notice{background:#edf2ee;color:#68786e;font-size:12px;padding:8px 4%}.order,.panel,.stat{border-color:var(--line);box-shadow:0 3px 14px #25463604;border-radius:16px}.order{padding:20px;margin:12px 0}.order h3{font-size:17px}.badge{border-radius:20px;white-space:nowrap;font-size:11px;flex-shrink:0}.stats{gap:10px;margin:20px 0}.stat{padding:16px}.stat strong{font-size:28px;letter-spacing:-1px;margin-top:4px}.toolbar>.filters{gap:10px;flex:1}.filters label{min-width:100px;max-width:180px}.search-filter{flex:1;min-width:160px!important}.allergy{border-radius:9px;background:#fdf2ec;margin-top:12px;font-size:13px}.tags span{border-radius:20px;padding:4px 9px;background:#edf3ef}.actions button{min-height:44px;white-space:normal}.actions{gap:8px}.giftrow:empty,.actions:empty{display:none}.minor-details{padding:0;background:transparent;margin:8px 0}.minor-details summary{font-size:12px;color:#71877b}.minor-details p{margin:6px 0}.support-panel{background:white;border:1px solid var(--line);border-radius:14px;padding:16px;margin:0 0 12px}.support-panel summary{font-size:15px;font-weight:600;cursor:pointer}.form-section{margin:20px 0 0;font-size:16px;border-top:1px solid var(--line);padding-top:18px}.form-section span{font-size:11px;letter-spacing:1px;color:#8a9e92;margin-right:8px}.form-section:first-child{border:0;margin:0}.product-row{background:#fbfdfb;border-color:#dce6df}.product-row h3{font-size:15px}.product-row [data-line-total]{color:#245b4c;font-weight:550}.kitchen-arrangement p{font-size:12px}.formfoot{position:sticky;bottom:-28px;background:#fff;padding:16px 0;margin-top:20px;border-top:1px solid var(--line);z-index:3}.formfoot button{min-width:140px}dialog{max-height:92dvh;overflow-y:auto;overscroll-behavior:contain}summary{cursor:pointer;min-height:28px}#nav{gap:4px}#nav button{border-radius:10px}#urgentBanner{position:relative;top:auto;border:1px solid #edbbaa;background:#fff3eb;padding:14px}#urgentBanner strong{font-size:16px}#urgentBanner p{font-size:12px}.urgent-card{border-left-width:4px!important}.notice-changes{padding:4px 12px}.notice-change{font-size:13px}#planPreview details{background:transparent;padding:4px;margin:4px 0}#planPreview{background:#f0f5f1;color:#456452}#tariffList p{padding:12px;border-bottom:1px solid var(--line);display:flex;gap:8px;align-items:center;flex-wrap:wrap}#financeResult .order p{overflow-wrap:anywhere}.tablewrap{max-width:100%}th,td{padding:12px;white-space:nowrap}#toast{z-index:100;box-shadow:0 8px 30px #17362c25}
@media(max-width:760px){
 header{padding:18px 16px;gap:12px;flex-direction:row;align-items:center}header .eyebrow{display:none}h1{font-size:20px;margin:0}.identity{width:auto;display:block}.identity label{font-size:10px;margin-bottom:3px}.identity select{max-width:154px;font-size:12px;min-height:36px;padding:6px 8px}main{padding:16px 12px calc(94px + env(safe-area-inset-bottom))}.notice{padding:7px 16px;font-size:11px}#nav{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:6;display:flex;justify-content:space-evenly;background:#fffffff5;border-top:1px solid #dfe8e1;border-bottom:0;box-shadow:0 -4px 24px #25463508;padding:8px 6px calc(8px + env(safe-area-inset-bottom));overflow-x:auto;gap:2px;backdrop-filter:blur(18px)}#nav button{min-height:46px;font-size:12px;padding:10px 8px;flex:1;white-space:nowrap}#nav button.active{background:#e7f0eb;color:#20533f}#nav span:not(:empty){display:inline-block;border-radius:9px;min-width:17px;font-size:10px;background:#ac4d35;color:white;padding:1px 4px;margin-left:2px}.toolbar{gap:14px}.toolbar>div:first-child{min-width:0}.toolbar h2{font-size:20px;margin-bottom:4px}.toolbar p{font-size:12px}.toolbar>.filters{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.filters label,.search-filter{width:100%;max-width:none!important;min-width:0!important}.toolbar>.filters>label:first-child{grid-column:1/-1}.toolbar>.filters #new{grid-column:1/-1;min-height:48px}.toolbar>.filters #refresh{align-self:stretch}.filters{width:100%;flex-wrap:wrap;align-items:end}.filters>*{min-width:0;max-width:100%}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.stat{padding:12px 14px;border-radius:13px}.stat strong{font-size:25px}.stat span{font-size:11px}.columns{display:block}.order{padding:16px;border-radius:14px}.order .section-head{gap:8px;align-items:start}.order h3{font-size:16px;overflow-wrap:anywhere}.order .meta{font-size:12px;line-height:1.8}.destination{font-size:11px;padding:4px 7px;margin-right:4px}.order.dest-fuyou,.order.dest-fuqing,.order.dest-other{border-left-width:4px}.actions{justify-content:stretch;display:flex}.actions button{flex:1;min-width:90px;font-size:13px}.tags{gap:5px}.tags span{font-size:11px}.watch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.watch{border-radius:12px;padding:12px;min-height:100px}.watch strong{font-size:16px}.watch span,.watch small,.watch b{font-size:11px}.watch-alert{border-width:1px}#urgentBanner{margin-bottom:14px;gap:8px}#urgentBanner>div{flex:1 1 100%}#urgentBanner button{flex:1;font-size:12px;min-height:40px}#urgentBanner p{margin-bottom:0}.support-panel{padding:14px}aside{display:block;margin-top:18px}#planList{border-radius:12px;background:#eaf1ec;padding:12px;font-size:13px}.formgrid{grid-template-columns:1fr;gap:14px}.wide{grid-column:1/-1}dialog{width:100%;max-width:none;max-height:100dvh;height:100dvh;margin:0;border-radius:0;padding:16px 16px max(16px,env(safe-area-inset-bottom));box-shadow:none}dialog .section-head{position:sticky;top:-16px;background:white;z-index:4;padding:12px 0;border-bottom:1px solid var(--line);margin-bottom:12px;align-items:center}dialog h2{font-size:18px;margin:0}dialog .section-head button{font-size:13px;min-height:40px}dialog .hint{font-size:12px}dialog fieldset{padding:12px;min-width:0}.form-section{font-size:15px;margin-top:14px}.product-row{padding:12px;border-radius:12px}.product-row .formgrid{grid-template-columns:1fr}.formfoot{bottom:-16px;flex-direction:column;gap:8px;padding:12px 0 calc(12px + env(safe-area-inset-bottom))}.formfoot span{font-size:11px}.formfoot button{width:100%;min-height:48px}.form-feedback{bottom:100px}.check{min-height:40px;margin:4px 10px 4px 0}.check input{width:20px;height:20px;min-height:20px;accent-color:var(--accent)}#planMeals{display:grid;grid-template-columns:repeat(3,1fr)}#planMeals[hidden]{display:none!important}#planMeals legend{grid-column:1/-1}.notice-change{grid-template-columns:1fr;gap:4px}.notice-change span{overflow-wrap:anywhere}#notices>.order>button{width:100%;margin-top:12px}#toast{bottom:calc(84px + env(safe-area-inset-bottom));font-size:13px;width:max-content;max-width:calc(100% - 32px)}#view-finance>.filters{display:grid;grid-template-columns:1fr 1fr}.formgrid input,.formgrid select{width:100%}#view-reports .panel{padding:14px}#view-reports .filters{display:grid;grid-template-columns:1fr 1fr}.quantity-warning{font-size:12px}.order details{border-radius:8px}#financeResult .actions{display:grid;grid-template-columns:1fr 1fr}body[data-role=manager] #nav button{font-size:11px;padding:8px 5px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.workspace-heading #new{min-height:44px}.filter-more{width:100%;margin:0;padding:10px 12px;border-radius:10px;background:#ebf1ed}.filter-more>summary{font-size:12px;color:#566e61}.filter-more .filters{margin-top:12px}#view-orders .toolbar{flex-wrap:wrap}.workspace-heading+ .filters{width:100%}.kitchen-arrangement [data-quantity-warning].matched{background:#eaf3ed;color:#335e46}@media(max-width:760px){.toolbar>.filters>label:first-child{grid-column:auto}.filter-more{grid-column:1/-1}.filter-more .filters{display:grid;grid-template-columns:1fr 1fr}.filter-more .search-filter{grid-column:1/-1}#stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#stats .stat{padding:10px 8px}#stats .stat span{display:block;min-height:32px;font-size:10px}#stats .stat strong{font-size:23px}.workspace-heading #new{font-size:12px;padding:10px 12px}.workspace-heading #scope{max-width:205px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.workspace-heading h2{font-size:19px}}

.finance-verified{border-color:#b9d4c3}.verified-badge{background:#e4f2e8;color:#236442}.verification-complete{padding:10px 12px;border-radius:10px;background:#edf6ef;color:#315e43;font-size:12px}.finance-verified .section-head h3{flex:1}
.correction-tasks{background:#fff7e9;border:1px solid #e6cfab;border-radius:14px;padding:14px;margin:16px 0}.correction-tasks>summary{font-weight:650;color:#805522}#correctionForm>label{margin:18px 0}#priceCorrectionTasks .order>button{width:100%}

#mealQuery,#forecast{margin:18px 0;padding:18px;border:1px solid #e2e8e5;border-radius:16px;background:#fff}#mealQuery>summary{font-weight:700;padding:8px 0;cursor:pointer}#mealQuery .filters{margin:12px 0}.compact-workspace .columns{display:block}.compact-workspace .columns>aside{display:none}.plan-filters{margin:16px 0}#plans h3 small{display:block;font-size:12px;font-weight:400;color:#64756f;margin-top:6px}#plans>article>details{margin-top:12px}#plans>article>details>summary{color:#60766b;cursor:pointer}.prep-channel{padding:14px 0;border-top:1px solid #e6ece8}.prep-channel small{font-size:12px;margin-left:4px}#planCount{color:#62766c;font-size:13px}#forecast .stats{grid-template-columns:repeat(4,minmax(0,1fr))}#mealQuery{min-width:0}#orderPlan{max-width:100%}@media(max-width:760px){#forecast .stats{grid-template-columns:repeat(2,minmax(0,1fr))}#planList,#mealQuery,#forecast{padding:14px}.plan-filters>label{flex:1;min-width:125px}.compact-workspace #planList{border-top:3px solid #537b68}}

.product-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 8px}.product-tabs button{background:#f1f4f2;color:#466154;border:1px solid #d8e2dc;padding:10px 14px}.product-tabs button[aria-pressed="true"]{background:#345c49;color:white;border-color:#345c49}.product-badge{display:inline-block;font-size:12px;line-height:1.4;border-radius:6px;padding:4px 7px;margin:0 4px 6px 0}.product-meal{background:#e7f0e9;color:#32563f}.product-herbal{background:#f1e9f7;color:#6c4082}.product-soup{background:#fff0d9;color:#89510b}@media(max-width:760px){.product-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.product-tabs button{padding:10px 5px;font-size:13px}}

.product-group{margin:20px 0 28px}.group-title{padding:12px 14px;border-radius:10px;display:flex;justify-content:space-between;gap:8px;align-items:center}.group-title small{font-size:12px;font-weight:400}.product-group>details>summary{padding:12px;cursor:pointer;color:#436b59}
.diet-absolute{background:#fff0ee;color:#952b21;border-left:4px solid #bf3d31;padding:10px;border-radius:6px;font-weight:600}.diet-restriction{background:#fff7dc;color:#715516;border-left:4px solid #d2a12e;padding:8px;border-radius:6px}.diet-preference{background:#eaf5ec;color:#346a42;border-left:4px solid #609975;padding:8px;border-radius:6px}.diet-execution{margin:12px 0}.diet-pending{border:2px dashed #d69029;padding:10px;margin:10px 0;border-radius:10px}#dietTagChoices fieldset{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}#dietTagChoices label{flex:1 1 150px}#dietProfiles pre{white-space:pre-wrap;word-break:break-all;font-size:12px}#dietDialog{max-width:700px}#dietForm>label,#dietLinkForm>label{display:flex;flex-direction:column;gap:6px;margin:12px 0}#dietDialog .actions{position:sticky;bottom:0;background:white;padding:12px 0}@media(max-width:760px){#dietDialog{width:100%;max-width:100%;max-height:100dvh;height:100dvh;margin:0;border-radius:0}#dietProfiles h3{font-size:16px}}

/* Compact tag management: the entire card opens its editor. */
.diet-tag-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.diet-tag-toolbar p{margin:0}.diet-tag-toolbar button{flex-shrink:0}.diet-tag-group{margin:18px 0}.diet-tag-group h3{display:flex;align-items:center;gap:10px;font-size:15px;margin:0 0 8px}.diet-tag-group h3 small{font-size:12px;font-weight:400;color:#6b766d}.diet-tag-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.diet-tag-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;min-height:64px;padding:11px 12px;border:1px solid #dde4df;border-top:3px solid #609975;border-radius:10px;background:#fff;color:#263431;text-align:left;white-space:normal;overflow-wrap:anywhere}.diet-tag-card strong{font-size:14px;line-height:1.4}.diet-tag-description{font-size:12px;line-height:1.5;color:#64716a}.diet-tag-card.tag-level-absolute{border-top-color:#bf3d31}.diet-tag-card.tag-level-restriction{border-top-color:#d2a12e}.diet-tag-card.tag-inactive{background:#f2f3f1;border-top-color:#a7b0aa}.diet-tag-status{font-size:11px;color:#68736c;background:#e3e7e3;padding:2px 5px;border-radius:4px}.diet-tag-card:focus-visible{outline:2px solid #365d4a;outline-offset:2px}@media(max-width:1000px){.diet-tag-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){#dietTagSettings{padding:12px}.diet-tag-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.diet-tag-card{padding:10px;min-height:64px}.diet-tag-toolbar{align-items:flex-start;flex-wrap:wrap}.diet-tag-toolbar p{font-size:12px}.diet-tag-toolbar button{min-height:40px;padding:8px 12px}.diet-tag-group{margin:14px 0}}

#dietTagSettings .diet-tag-card{min-height:48px;justify-content:center}

.diet-profile-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.diet-profile-tags>span{font-size:12px;padding:5px 8px;overflow-wrap:anywhere}.diet-profile-filters{justify-content:flex-start;margin:16px 0;flex-wrap:wrap}.diet-profile-filters label{flex:1;min-width:140px}#dietProfiles .order>details{margin-top:10px}

#plans .section-head{flex-wrap:wrap}#plans .section-head [data-plan-diet]{font-size:13px;min-height:40px;padding:8px 12px}
#employeeList{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.employee-card{min-width:0;border:1px solid #dfe5df;border-radius:12px;background:white;padding:14px;overflow-wrap:anywhere}.employee-card h3{font-size:16px;margin:0}.employee-card .section-head{flex-wrap:wrap}.employee-card p{margin:10px 0}#employeeDialog{max-width:700px}@media(max-width:760px){#employeeList{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.employee-card{padding:10px}.employee-card button{white-space:normal;font-size:12px;min-height:40px}.employee-card h3{font-size:14px}#view-employees>.toolbar{flex-wrap:wrap}#employeeDialog{max-width:100%;width:100%}}

#customerRows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.customer-card{min-width:0;overflow-wrap:anywhere}.customer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.customer-heading h3{margin:0}.customer-card p{margin:10px 0}@media(max-width:760px){#customerRows{grid-template-columns:1fr}}

/* Shared layout safeguards for desktop, tablets and phones. */
html{scroll-padding-bottom:100px}body{overflow-wrap:anywhere}header>*,.toolbar>*,.section-head>*,.customer-heading>*,.workspace-heading>*,.formgrid>*,.filters>*{min-width:0}
button{white-space:normal;line-height:1.45;max-width:100%;touch-action:manipulation}button:disabled{cursor:not-allowed}input,select,textarea{max-width:100%}textarea{font:inherit}fieldset{min-width:0}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{flex-wrap:wrap;justify-content:flex-start;row-gap:12px}.filters label{flex:1 1 140px;max-width:220px}.section-head,.customer-heading,.workspace-heading{flex-wrap:wrap;align-items:flex-start}.section-head h3,.customer-heading h3{flex:1 1 180px;line-height:1.55}.badge{white-space:normal;max-width:100%;line-height:1.5}.group-title{flex-wrap:wrap}.group-title small{line-height:1.6}.sumrow{gap:12px;flex-wrap:wrap}.sumrow>*{min-width:0}.identity{flex-wrap:wrap;justify-content:flex-end}.identity select{max-width:260px}.tablewrap{overscroll-behavior-inline:contain;border-radius:10px}th,td{line-height:1.6}.formfoot{position:static;flex-wrap:wrap;bottom:auto;gap:12px}.form-feedback{position:static;margin:12px 0}dialog{scrollbar-gutter:stable;max-height:calc(100dvh - 32px)}dialog .section-head{position:static;top:auto}#dietDialog .actions{position:static}.actions>button{overflow-wrap:anywhere}summary{line-height:1.6;padding-block:4px}.check{line-height:1.5}.check input{flex-shrink:0}#customerRows .panel{margin-bottom:0}#customerRows{margin:16px 0}#customerSearch{min-width:0}.employee-card button{width:100%}
@media(min-width:761px){#nav{flex-wrap:wrap;overflow:visible;row-gap:8px}header{gap:24px}.toolbar>.filters{justify-content:flex-start}.toolbar>div:first-child{flex-shrink:0}dialog .section-head{gap:16px}dialog .section-head h2{flex:1}}
@media(max-width:760px){
 header{align-items:flex-start;flex-wrap:wrap;gap:12px}header>div:first-child{flex:1 1 145px}header .identity{display:flex;flex:0 1 auto;max-width:100%;gap:8px}.identity label{font-size:12px}.identity select{max-width:190px;font-size:14px;min-height:44px}header h1{font-size:20px;line-height:1.4}main{padding-bottom:calc(100px + env(safe-area-inset-bottom))}#nav{justify-content:flex-start;scroll-padding-inline:10px;padding-inline:10px;scrollbar-width:thin}#nav button,body[data-role=manager] #nav button{flex:0 0 auto;min-width:80px;min-height:48px;font-size:13px;padding:10px 12px;white-space:nowrap}#nav button:focus-visible{outline-offset:-3px}.filters label{max-width:none;flex:1 1 130px}#view-customers>.filters,#view-employees>.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#view-customers>.filters>label:first-child,#view-employees>.filters>label:first-child{grid-column:1/-1}.workspace-heading #scope{max-width:none;overflow:visible;white-space:normal;text-overflow:clip}.section-head h3,.customer-heading h3{flex-basis:150px}.panel{padding:16px}.formgrid{grid-template-columns:minmax(0,1fr)}dialog{max-height:100dvh;scrollbar-gutter:auto;padding-bottom:max(24px,env(safe-area-inset-bottom))}dialog .section-head{position:static;padding:0 0 12px;gap:10px}dialog .section-head h2{flex:1 1 180px;line-height:1.5}dialog .section-head button{flex:0 0 auto;min-height:44px}.formfoot{position:static;padding:16px 0;gap:12px}.formfoot button{min-width:0;width:100%}.actions button{min-width:min(120px,100%);line-height:1.5}#financeResult .actions{grid-template-columns:repeat(2,minmax(0,1fr))}#financeResult .actions button{min-width:0}.check{min-height:44px}p,.order .meta{font-size:14px}.tags span,.stat span{font-size:12px}.watch span,.watch small,.watch b{font-size:12px}#toast{max-height:35dvh;overflow:auto}#employeeList{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:360px){#stats{grid-template-columns:repeat(2,minmax(0,1fr))}#employeeList{grid-template-columns:minmax(0,1fr)}.actions button{flex-basis:45%}#planMeals{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Checkboxes must not inherit full-width text-input sizing. */
.formgrid input[type=checkbox],.formgrid input[type=radio],label.check input[type=checkbox],label.check input[type=radio]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;flex:0 0 20px;padding:0;margin:0;accent-color:var(--accent)}label.check{display:inline-flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:9px;white-space:normal;max-width:100%}

/* Shared business workspace: mobile-first, no hidden finance columns. */
.shared-workspace{max-width:1100px;margin:auto}.shared-workspace label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:10px 0}.shared-actions{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.shared-actions>*{min-width:0}.shared-card{border:1px solid #dce5e0;border-radius:14px;padding:16px;margin:12px 0;background:#fff;overflow-wrap:anywhere}.shared-card p{margin:8px 0;line-height:1.65}.shared-workspace input,.shared-workspace select,.shared-workspace button{min-height:44px;max-width:100%;font-size:16px}.shared-workspace input,.shared-workspace select{width:100%;box-sizing:border-box}.shared-workspace .shared-check{display:flex;flex-direction:row;align-items:flex-start}.shared-workspace .shared-check input{width:20px;min-height:20px;flex:0 0 20px}.shared-workspace [data-feedback]{padding:12px;border-radius:10px;background:#edf4f0;overflow-wrap:anywhere}.shared-workspace [data-customers]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}.shared-workspace .shared-actions label{flex:1 1 170px}@media(max-width:600px){.shared-workspace .shared-actions button{flex:1 1 auto}.shared-workspace .panel{padding:14px}.shared-card{padding:12px}.shared-workspace{padding-bottom:70px}}

/* Shared employee UI conventions, including all existing business screens. */
:root{--brand:#356854;--muted:#687b71;--line:#dfe7e1;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#263e32;background:#f5f7f5}
button,input,select,textarea{font:inherit;max-width:100%;box-sizing:border-box}button{min-height:44px;line-height:1.5;border-radius:10px;touch-action:manipulation}button:not(.secondary):not(.danger):not(.timeline-slot):not(.timeline-event):not(.cal-event){background-color:var(--brand)}button.secondary{background:#fff;color:var(--brand);border:1px solid var(--line)}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8db5a0;outline-offset:2px}button:disabled{cursor:wait}input:not([type=checkbox]):not([type=radio]),select,textarea{min-height:44px;font-size:16px}label{line-height:1.6;min-width:0}h1,h2,h3,p,td{overflow-wrap:anywhere}.panel,.order,.customer-card{border-radius:14px;border-color:var(--line);box-shadow:0 3px 14px #244a3104}.filters,.actions,.titlebar,.toolbar,.section-head,.panel-head{gap:12px;flex-wrap:wrap}.table-wrap,.tablewrap{max-width:100%;overflow-x:auto}dialog{width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:24px;border:1px solid var(--line);border-radius:18px;overflow:auto}dialog::backdrop{background:#16312566}dialog button,td button{white-space:normal}.form-foot,.formfoot{position:static!important;gap:12px!important;flex-wrap:wrap}.form-foot button,.formfoot button{min-width:100px}#toast{position:fixed;z-index:10000;left:50%;right:auto;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);padding:14px 20px;border-radius:12px;background:#244d3a;color:#fff;overflow-wrap:anywhere}
.ys-entry,.login{box-sizing:border-box;max-width:420px;width:calc(100% - 40px);margin:14vh auto 8vh;padding:36px 28px;background:white;border:1px solid var(--line);border-radius:20px;text-align:center;box-shadow:0 16px 48px #244a3107}.ys-entry h1,.login h2{font-size:23px;letter-spacing:0;margin:18px 0}.ys-entry p,.login p{font-size:15px;line-height:1.8;color:var(--muted)}.ys-entry small{color:var(--muted)}.ys-loader{margin:24px auto;width:28px;height:28px;border:3px solid #e4ece6;border-top-color:var(--brand);border-radius:50%;animation:ys-spin .9s linear infinite}@keyframes ys-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.ys-loader{animation:none}}
#ys-boot{position:fixed;inset:0;z-index:9999;background:#f5f7f5;overflow:auto}#ys-boot[hidden]{display:none}.ys-timeline{list-style:none;margin:16px;padding:0 0 0 18px;border-left:2px solid #dbe6df}.ys-timeline li{position:relative;padding:0 0 24px 8px}.ys-timeline li:before{content:'';position:absolute;left:-24px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--brand)}.ys-timeline time,.ys-timeline span{display:block;font-size:13px;color:var(--muted);margin-bottom:5px}.ys-timeline strong{display:block;font-size:15px}.ys-timeline p{line-height:1.7;margin:7px 0}.ys-query{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.ys-query input{flex:1 1 180px}.ys-query select{flex:0 1 180px}
@media(max-width:760px){dialog{padding:18px;max-height:calc(100dvh - 16px)}.titlebar h2,.toolbar h2{font-size:22px}.form-foot button,.formfoot button{flex:1 1 120px}.actions button{flex:0 1 auto;min-width:0}.filters{display:flex;flex-wrap:wrap}.filters>label{flex:1 1 140px}.grid,.formgrid{gap:16px}.panel-head,.row,.panel-body{padding:16px}.ys-entry,.login{margin-top:10vh;padding:28px 22px}.workspace{padding:18px 14px}header{height:auto;min-height:76px;padding:16px;flex-wrap:wrap}}
/* Shared menu layout: desktop side navigation, mobile top selector. */
#ys-mobile-menu{display:none}#nav button{background:transparent!important;color:#355746!important}#nav button.active{background:#e7f0e9!important;color:#244d3a!important} .layout>aside{background:#fff;color:#263e32;border-right:1px solid var(--line)}.layout>aside small,.sidebar-foot{color:#687b71}.layout>aside nav button{background:transparent!important;color:#355746}.layout>aside nav button.active{background:#e7f0e9!important;color:#244d3a;border-left-color:#356854}
@media(min-width:761px){body>main:has(>#nav){display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;max-width:1500px}body>main>#nav{display:flex;flex-direction:column;align-items:stretch;grid-column:1;grid-row:1/100;position:sticky;top:20px;align-self:start;border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px;overflow:visible}body>main>#nav button{text-align:left;flex:none;margin:0;min-width:0}body>main>section,body>main>#urgentBanner{grid-column:2}.layout>aside{padding:28px 16px}.layout>aside h1{font-size:21px;letter-spacing:0}}
@media(max-width:760px){#ys-mobile-menu{display:flex;flex-direction:column;padding:12px 16px;gap:6px;background:white;border-bottom:1px solid var(--line);color:#687b71;font-size:13px}#ys-mobile-menu select{width:100%;color:#263e32}body>main>#nav{display:none!important}body>main{padding-bottom:24px}.layout>aside{padding:16px}.layout>aside h1{font-size:20px;letter-spacing:0}.mobile-navigation{color:#687b71}.mobile-navigation select{color:#263e32}}

/* One presentation standard for both applications; business rules stay in their existing handlers. */
:root{--brand:#356854;--accent:#356854;--muted:#687b71;--line:#dfe7e1;color:#263e32;background:#f5f7f5;font-size:16px}
body{color:#263e32;background:#f5f7f5}h2{font-size:24px;line-height:1.45}h3{font-size:18px;line-height:1.5}label{color:#405b4c;font-size:14px}button{font-size:14px;font-weight:500;padding:10px 16px;border-radius:10px;min-height:44px}input:not([type=checkbox]):not([type=radio]),select,textarea{border:1px solid var(--line);border-radius:10px;padding:11px 12px;color:#263e32}button[hidden],[hidden]{display:none!important}.titlebar,.toolbar,.ys-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin:0 0 20px}.titlebar h2,.toolbar h2,.ys-page-head h2{margin:0 0 8px;font-size:24px}.titlebar p,.toolbar p,.ys-page-head p{margin:0;color:var(--muted);font-size:14px;line-height:1.7}.ys-page-head .actions{margin:0}.ys-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;padding:16px;border:1px solid var(--line);border-radius:14px;background:white;margin:16px 0}.ys-filters label{display:flex;flex-direction:column;gap:8px;flex:1 1 180px;max-width:none}.ys-filters input,.ys-filters select{width:100%}.ys-staff-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))!important;gap:16px!important;margin:16px 0}
.ys-staff-card{display:flex;flex-direction:column;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;min-width:0;box-shadow:none}.ys-staff-card .ys-card-top{display:flex;justify-content:space-between;gap:12px;align-items:start}.ys-staff-card h3{margin:0;font-size:18px}.ys-status{display:inline-block;border-radius:7px;padding:4px 8px;background:#edf4ee;color:#356854;font-size:12px;line-height:1.5;white-space:nowrap}.ys-status.off{background:#f1f2f1;color:#687b71}.ys-staff-card dl{display:grid;gap:9px;margin:0}.ys-staff-card dl>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;font-size:14px;line-height:1.6}.ys-staff-card dt{color:var(--muted)}.ys-staff-card dd{margin:0;overflow-wrap:anywhere}.ys-staff-card .actions{display:flex;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}.ys-staff-card .actions button{flex:1 1 110px;width:auto!important;min-width:0}.ys-records{padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;margin:20px 0}.ys-records>summary{font-size:16px;font-weight:600;cursor:pointer;min-height:36px}.ys-record{display:block!important;padding:16px!important;border:1px solid var(--line)!important;background:white;border-radius:12px;margin:12px 0}.ys-record strong{display:block;font-size:16px}.ys-record p{margin:7px 0;line-height:1.7;font-size:14px}.ys-record time{color:var(--muted);font-size:13px}.ys-record details{margin-top:10px}.ys-record pre{white-space:pre-wrap;overflow-wrap:anywhere}.ys-empty{padding:28px 16px;text-align:center;color:var(--muted);font-size:14px}.ys-record-list{margin:16px 0}.ys-record-list>.ys-record:first-child{margin-top:0}
.ys-nav{scrollbar-width:thin}.ys-nav button{border:1px solid transparent!important;border-radius:10px!important;min-height:44px!important;color:#355746!important;background:transparent!important;white-space:nowrap!important}.ys-nav button.active{background:#e7f0e9!important;border-color:#d5e4d9!important;color:#244d3a!important}.ys-nav button:focus-visible{outline-offset:-3px!important}.ys-nav button span:empty{display:none}.ys-nav button span:not(:empty){margin-left:4px}
@media(min-width:761px){.layout{display:grid;grid-template-columns:226px minmax(0,1fr)}.layout>aside{position:sticky;top:0;height:100vh;overflow:auto}.layout>aside nav.ys-nav{display:flex!important;flex-direction:column!important;gap:8px}.ys-staff-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important}}
@media(max-width:760px){#ys-mobile-menu,.mobile-navigation,.sidebar-foot{display:none!important}.layout{display:block}.layout>aside{display:block;height:auto;min-height:0;padding:16px;border-bottom:1px solid var(--line)}.layout>aside h1{margin:0;font-size:20px}.layout>aside small{display:none}.layout>aside nav.ys-nav,body>main>#nav.ys-nav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;justify-content:flex-start!important;position:fixed!important;z-index:900;inset:auto 0 0 0!important;width:100%;height:auto!important;gap:8px!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;margin:0!important;background:#fff!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-inline:contain;box-shadow:0 -4px 20px #244a3108;scroll-padding-inline:12px;-webkit-overflow-scrolling:touch}.ys-nav button{flex:0 0 auto!important;width:auto!important;min-width:88px!important;text-align:center!important;padding:10px 14px!important;font-size:14px!important}.workspace,body>main{padding:18px 14px calc(100px + env(safe-area-inset-bottom))!important}.main>footer,#filing-footer{padding-bottom:calc(90px + env(safe-area-inset-bottom))}#toast{bottom:calc(88px + env(safe-area-inset-bottom))!important}.ys-staff-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.ys-staff-card{padding:16px}.ys-filters{padding:14px}.ys-page-head .actions{width:100%}.ys-page-head .actions button{flex:1}.ys-records{padding:14px}.ys-record{padding:14px!important}dialog{margin:auto!important;max-height:calc(100dvh - 24px);width:calc(100% - 24px)}
/* Shared detail, filter and table conventions for corresponding functions. */
.panel,.order,.customer-card{border:1px solid var(--line);border-radius:14px;box-shadow:none}.actions{gap:8px}.filters,.ys-query{align-items:end}.badge{border-radius:7px;font-size:12px;padding:4px 8px;line-height:1.5}.formgrid,.form-grid{gap:16px}.formgrid>label,.form-grid>label{gap:8px}.table-wrap table,.tablewrap table{font-size:14px}th{background:#f3f6f3;color:var(--muted)}td,th{padding:14px 16px;border-color:var(--line)}

/* Customer, approval and finance lists share the same card and filter language. */
#customerRows,.ys-customer-list tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:16px;margin:16px 0}.ys-customer-list table,.ys-customer-list tbody,.ys-customer-list tr,.ys-customer-list td{width:auto}.ys-customer-list table{display:block}.ys-customer-list thead{display:none}.ys-customer-list tr,#customerRows>.customer-card{display:block;padding:20px;background:#fff;border:1px solid var(--line);border-radius:14px;margin:0}.ys-customer-list td{display:block;border:0;padding:5px 0;min-height:0;overflow-wrap:anywhere}.ys-customer-list td:before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;margin-bottom:3px}.ys-customer-list td:empty{display:none}.ys-customer-list .panel{padding:0;border:0;background:transparent}.ys-customer-list .panel-head{border:0;padding:16px 0}.ys-customer-list .table-wrap{overflow:visible}.customer-query-bar,.customer-query-advanced{gap:12px}.customer-query{background:white;border:1px solid var(--line);border-radius:14px;padding:16px;margin:16px 0}.ys-approval-list>.row,#approvals>.order{display:block;margin:12px 0;padding:20px;border:1px solid var(--line);border-radius:14px;background:white}.ys-approval-list>.row>.actions{margin-top:16px}.ys-approval-list>.row p{line-height:1.7}.ys-approval-list.panel{padding:0;border:0;background:transparent}.ys-approval-list>.panel-head{padding:16px 0;border:0}.ys-finance-page .metrics,.ys-finance-page .stats{gap:16px}.ys-finance-page .metric,.ys-finance-page .stat{border-radius:14px;padding:20px}
@media(max-width:760px){#customerRows,.ys-customer-list tbody{grid-template-columns:minmax(0,1fr)}.ys-customer-list tr,#customerRows>.customer-card,.ys-approval-list>.row,#approvals>.order{padding:16px}.ys-customer-list td{display:block!important;padding:5px 0!important}.ys-customer-list td:before{width:auto!important;position:static!important}.customer-query{padding:14px}}

.ys-staff-filters,#view-employees>.ys-staff-filters{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:12px!important;align-items:end}.ys-staff-filters>label,#view-employees>.ys-staff-filters>label{margin:0;max-width:none;min-width:0}.ys-staff-filters>label:first-child,#view-employees>.ys-staff-filters>label:first-child{grid-column:1/-1}.ys-staff-filters>button{width:auto;min-width:64px}.ys-staff-filters>label:not(:first-child){grid-column:1}.ys-page-head>.actions{align-items:center}.ys-staff-card .actions button{font-size:14px;font-weight:500}
@media(max-width:760px){.layout>aside>div:first-child{display:none}.layout>aside{padding:0;border:0}.layout .main>header{min-height:76px;padding:16px;gap:12px}.layout .main>header .eyebrow{display:none}.layout .main>header h2{font-size:20px;margin:0}.layout .main>header>div:first-child{flex:1 1 130px}.layout .main>header>div:nth-child(2){flex:0 1 auto}.layout .main>header select{max-width:150px}.layout .main>header .staff-role-switch{flex:1 1 140px}}

#employeeSyncDialog{height:fit-content;min-height:0;inset:0;margin:auto;width:min(610px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px;overflow:auto}#employeeSyncDialog h2{font-size:22px;margin:0 0 12px;color:#244b3e}#employeeSyncDialog textarea{width:100%;min-height:110px;height:110px}#employeeSyncDialog .actions{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #dce5e1;padding-top:18px;gap:10px}#employeeSyncDialog .actions button{width:100%;min-height:44px}

}

/* Dietary tag management: neutral cards with clear category accents. */
#dietTagSettings .diet-tag-card{--tag-accent:#64748b;background:#fff;color:#334155;border:1px solid #e2e8f0;border-left:3px solid var(--tag-accent);border-radius:9px;min-height:48px;padding:11px 12px;box-shadow:none;transition:background .15s,border-color .15s}
#dietTagSettings .diet-tag-card.tag-level-absolute{--tag-accent:#c65b60}
#dietTagSettings .diet-tag-card.tag-level-restriction{--tag-accent:#b78b35}
#dietTagSettings .diet-tag-card.tag-level-preference{--tag-accent:#6983a5}
#dietTagSettings .diet-tag-card strong{color:inherit;font-size:14px;font-weight:500;line-height:1.5}
#dietTagSettings .diet-tag-card:hover{background:#f8fafc;color:#1e293b;border-color:#cbd5e1;border-left-color:var(--tag-accent)}
#dietTagSettings .diet-tag-card:active{background:#f1f5f9;color:#1e293b}
#dietTagSettings .diet-tag-card:focus-visible{outline:2px solid #64748b;outline-offset:2px}
#dietTagSettings .diet-tag-card.tag-inactive{--tag-accent:#cbd5e1;background:#f8fafc;color:#64748b}
#dietTagSettings .diet-tag-status{background:#eef1f5;color:#64748b}
#dietTagSettings .diet-tag-group h3{color:#334155;font-weight:600}
#dietTagSettings .diet-tag-group h3 small{color:#64748b}

#paymentMethodDialog{height:fit-content;min-height:0;inset:0;margin:auto;width:min(610px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px;overflow:auto}#paymentMethodForm>label{margin:14px 0;gap:8px}#paymentMethodForm textarea{width:100%;min-height:80px}#paymentMethodForm .actions{padding-top:12px;border-top:1px solid var(--line)}#orderPaymentLabel{margin:8px 0 20px;gap:8px}#orderPaymentHint{color:#687b71;font-size:12px}#financePaymentLabel{margin:16px 0;gap:8px}#paymentMethodSettings .sumrow{align-items:center}

/* Order workspace: neutral reading surfaces; colour reserved for status. */
#view-orders #planList{background:#fff;border:1px solid #dce2e8;border-top:1px solid #dce2e8;border-radius:16px;padding:18px;color:#243041}
#view-orders #planList>summary{font-size:16px;font-weight:650;color:#243041;padding:6px 0 14px}
#view-orders .plan-filters{padding:14px;background:#f7f8fa;border:1px solid #e5e9ef;border-radius:12px;gap:12px}
#view-orders label,#view-orders #planCount{color:#536174}
#view-orders .order{background:#fff;color:#243041;border:1px solid #dce2e8;border-radius:14px;box-shadow:0 2px 8px #16243505}
#view-orders .order h3{color:#1e293b;font-weight:650}
#view-orders .order p,#view-orders .order .meta,#view-orders #plans h3 small{color:#536174}
#view-orders #plans>article>details{background:#f7f8fa;border:1px solid #e5e9ef;border-radius:10px;padding:12px;margin-bottom:0}
#view-orders #plans>article>details>summary{color:#334155;font-size:14px;font-weight:550;min-height:32px}
#view-orders .order .actions{padding-top:14px;border-top:1px solid #e5e9ef}
#view-orders #plans .actions button{background:#fff;color:#334155;border:1px solid #cbd5e1;min-height:44px}
#view-orders #plans .actions button:hover{background:#f1f5f9;filter:none}
#view-orders .filter-more{background:#f7f8fa;border:1px solid #e5e9ef}
#view-orders .order .badge:not(.approval){background:#f1f5f9;color:#475569}
#view-orders .order .tags span{background:#f1f5f9;color:#475569}
#view-orders .product-meal{background:#f1f5f9;color:#334155}
@media(max-width:760px){#view-orders #planList{padding:14px}#view-orders .order{padding:16px}#view-orders .plan-filters{padding:12px}#view-orders #plans .actions button{flex:1 1 130px}}

/* Meal audit cards are navigation surfaces, not primary action buttons. */
#mealWatch button.watch{background:#fff;color:#334155;border:1px solid #d8e0e8;border-radius:14px;padding:18px;gap:10px;align-content:start;box-shadow:0 2px 8px #16243505;filter:none}
#mealWatch button.watch strong{color:#1e293b;font-size:17px;font-weight:650}
#mealWatch button.watch span,#mealWatch button.watch small{color:#475569;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
#mealWatch button.watch:hover{background:#f8fafc;border-color:#94a3b8}
#mealWatch button.watch-alert{background:#fff7f5;border:1px solid #e9b3a8;border-left:4px solid #c24132}
#mealWatch button.watch-alert:hover{background:#fff0ec;border-color:#c24132}
#mealWatch button.watch-alert b{color:#a52e23;font-size:14px;line-height:1.6}
#mealWatch button.watch:focus-visible{outline:3px solid #64748b;outline-offset:3px}
@media(max-width:760px){#mealWatch .watch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#mealWatch button.watch{padding:14px;gap:8px}#mealWatch button.watch span,#mealWatch button.watch small,#mealWatch button.watch-alert b{font-size:13px}}
@media(max-width:360px){#mealWatch .watch-grid{grid-template-columns:1fr}}

/* Compact shared operational surfaces, October 8. */
.ys-nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;margin-left:6px;border-radius:99px;background:#ad4932;color:#fff;font-size:11px;line-height:1;font-weight:650;vertical-align:middle;flex-shrink:0}
.actions{flex-wrap:wrap}.actions>*{min-width:0}.order,.customer-card,.ys-staff-card{overflow-wrap:anywhere}
@media(max-width:760px){
 h2{font-size:21px;line-height:1.4}h3{font-size:17px;line-height:1.45}
 .order,.customer-card,.ys-staff-card,.ys-approval-list>.row{padding:13px!important;border-radius:12px}
 .order p,.customer-card p,.ys-approval-list>.row p{margin:8px 0;line-height:1.55;font-size:14px}
 .order h3,.customer-card h3,.ys-staff-card h3{font-size:17px;margin:0}
 .actions{gap:8px;margin-top:10px}.actions button{padding:8px 10px;min-height:44px;font-size:14px;line-height:1.4;white-space:normal}
 .section-head{gap:8px;flex-wrap:wrap}.section-head>h3{flex:1 1 160px;min-width:0}
 .pending-change,.quantity-warning{padding:10px!important;font-size:13px!important;line-height:1.55!important;margin:8px 0!important}
 .ys-customer-list td{display:grid!important;grid-template-columns:72px minmax(0,1fr);gap:8px;padding:4px 0!important;line-height:1.5;font-size:14px}.ys-customer-list td:before{margin:0;line-height:1.75}
 .ys-customer-list td .actions{margin:0}.ys-customer-list td:empty{display:none!important}
 .ys-finance-page .metric,.ys-finance-page .stat{padding:13px}.ys-staff-card{gap:10px}
}

#mealWatch button.watch[aria-pressed="true"]{background:#e6f1fb;border:2px solid #326a9c;box-shadow:0 0 0 1px #326a9c;color:#183b59}
#mealWatch button.watch[aria-pressed="true"] strong{color:#183b59}
#mealWatch button.watch .watch-selected{display:inline-block;background:#326a9c;color:white;font-size:11px;border-radius:5px;padding:2px 5px;margin-left:5px;line-height:1.4}
#mealWatch button.watch-alert[aria-pressed="true"]{border-left:4px solid #c24132}
#plans .plan-more{margin-top:10px}#plans .plan-more button{margin:5px 6px 0 0;background:white;border:1px solid #cbd5e1;color:#334155;min-height:44px}
@media(max-width:760px){#mealWatch button.watch{padding:12px;gap:6px;border-radius:12px}#mealWatch button.watch strong{font-size:16px}#mealWatch button.watch span,#mealWatch button.watch small,#mealWatch button.watch-alert b{font-size:12px;line-height:1.5}#mealWatch .watch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#mealWatch>p{font-size:12px;margin:8px 0 12px}#view-orders #planList{padding:10px}#view-orders .order .actions{padding-top:10px}#plans .plan-more[open]{display:flex;flex-wrap:wrap;gap:6px}#plans .plan-more summary{width:100%}#plans .plan-more button{flex:1 1 130px;margin:0}}

/* Independent herbal supply period: compact, visible summary. */
.herbal-period{border-top:1px solid #e2e8e5;margin-top:10px;padding-top:10px}
.herbal-period-toggle{display:flex!important;flex-direction:row!important;justify-content:flex-start;align-items:center;gap:8px;font-weight:600}
.herbal-period-toggle input{width:18px!important;height:18px;min-height:0;margin:0;flex:none}
.herbal-period-fields{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)!important;gap:10px!important}
.herbal-period-fields label{min-width:0}.herbal-period-fields input,.herbal-period-fields select{width:100%;min-width:0;box-sizing:border-box}
.herbal-period [data-herbal-summary]{font-size:13px;line-height:1.6;color:#41594e;margin:8px 0;overflow-wrap:anywhere}

.herbal-days-label{display:flex!important;flex-direction:row!important;align-items:center;gap:12px;margin:10px 0!important;font-size:13px}.herbal-days-label input{width:100px!important;min-width:0;min-height:38px;padding:7px 10px}


.ys-field-marker{font-size:12px;font-weight:400;color:#718078;margin-left:4px}.ys-field-marker.ys-required{color:#b23e36;font-weight:700}.ys-invalid{border-color:#b23e36!important;outline:1px solid #b23e3633}.ys-field-error{display:block;color:#a23730;font-size:13px;line-height:1.6;margin:4px 0 8px}.ys-validation-summary{padding:12px 14px;margin:14px 0;border:1px solid #e7bdb8;border-radius:10px;background:#fff5f3;color:#8f302b;overflow-wrap:anywhere}.ys-validation-summary[hidden]{display:none}.ys-error-link{display:block;background:none!important;border:0!important;box-shadow:none!important;color:#963d32!important;text-align:left;padding:5px 0!important;min-height:32px;text-decoration:underline;font-size:14px;white-space:normal;cursor:pointer}

/* Unified approval inbox */
.approval-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.approval-tabs button{background:#f4f1eb;color:#514b43;border:1px solid #ddd6c9;border-radius:12px;padding:11px 15px}.approval-tabs button.active{background:#655c44;color:#fff;border-color:#655c44}.approval-tabs span{display:inline-block;margin-left:8px;min-width:22px;border-radius:20px;background:rgba(128,118,83,.14);padding:1px 6px}.approval-tabs .active span{background:rgba(255,255,255,.2)}.approval-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:16px 0}.approval-filters label{display:grid;gap:6px;font-size:13px;min-width:130px}.approval-filters input,.approval-filters select{max-width:240px;padding:10px;border:1px solid #d8d5cd;border-radius:9px;background:white}.approval-card{padding:18px 0;border-bottom:1px solid #e9e5db}.approval-card-heading{display:flex;justify-content:space-between;gap:12px;align-items:start}.approval-card p{margin:8px 0}.approval-reason{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.approval-card details{margin:12px 0;color:#615d54}.approval-card .actions{margin-top:12px}.approval-pagination{margin:20px 0;justify-content:center}.approval-card .badge{white-space:nowrap}@media(max-width:640px){.approval-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.approval-tabs button{font-size:13px;padding:10px}.approval-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.approval-filters label{min-width:0}.approval-filters input,.approval-filters select{width:100%;max-width:100%;box-sizing:border-box}.approval-card-heading{flex-wrap:wrap}}

.approval-tabs button{background-color:#f0f5f1!important;color:#315643!important;border-color:#d6e1d9}.approval-tabs button.active{background-color:#356854!important;color:#fff!important;border-color:#356854}.approval-tabs span{background:#dce8df}.approval-tabs .active span{background:#ffffff30}.approval-advanced{flex-basis:100%;grid-column:1/-1;font-size:13px;color:#536b5c}.approval-advanced>div{display:flex;flex-wrap:wrap;gap:12px;padding:12px 0}.approval-card dt{font-size:13px;color:#65786b;margin-top:8px}.approval-card dd{margin-left:0}.approval-filters .approval-advanced label{flex:1;min-width:130px}@media(max-width:640px){.approval-advanced>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.approval-filters .approval-advanced label{min-width:0}}
/* Searchable customer options: scoped styles prevent primary-button inheritance. */
.kcp{min-width:0;width:100%;margin-top:5px}.kcp-control{display:flex;align-items:center;gap:6px}.kcp .kcp-control input{flex:1;min-width:0;width:0;margin:0;background:#fff;color:#263431;font-size:14px}.kcp button.kcp-clear{flex:none;min-height:40px;margin:0;padding:8px 12px;background:#fff;color:#365d4a;border:1px solid #d7e1da;border-radius:8px;white-space:nowrap}.kcp-list{max-height:244px;overflow:auto;margin-top:5px;padding:4px;border:1px solid #d7e1da;border-radius:9px;background:#fff;box-shadow:0 4px 12px #1a342612}.kcp-list[hidden]{display:none}.kcp button.kcp-option{display:block;width:100%;min-height:40px;margin:0;padding:9px 10px;border:0;border-radius:6px;background:#fff;color:#263431;text-align:left;font-size:14px;line-height:1.45;font-weight:400;overflow-wrap:anywhere}.kcp button.kcp-option:hover,.kcp button.kcp-option.kcp-highlight,.kcp button.kcp-option[aria-selected=true]{background:#eaf2ec;color:#254d3c}.kcp .kcp-note{display:block;padding:7px 10px;color:#64736b;font-size:12px;line-height:1.5}.kcp input:disabled{background:#f2f4f2;color:#617169}.kcp button:disabled{opacity:.6}

/* Mobile picker is a view in the existing dialog, never a nested modal. */
.kcp-entry{display:none}
@media(max-width:760px){
 .kcp-control{display:none}.kcp button.kcp-entry{display:block;width:100%;min-height:48px;margin:0;padding:12px 14px;text-align:left;white-space:normal;font-size:16px;line-height:1.5;background:#fff;color:#294d3b;border:1px solid #b9ccc0;border-radius:10px}.kcp button.kcp-entry:after{content:' ›';float:right}.kcp button.kcp-entry:disabled{background:#f2f4f2;color:#617169}
 body dialog.kcp-mobile-host{position:fixed!important;inset:0!important;top:var(--kcp-vtop,var(--mw-vtop,0px))!important;bottom:auto!important;width:100%!important;max-width:100%!important;height:var(--kcp-vh,var(--mw-vh,100dvh))!important;max-height:var(--kcp-vh,var(--mw-vh,100dvh))!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;box-sizing:border-box!important;background:#f7faf7}
 .kcp-mobile-host>[inert]{visibility:hidden!important;pointer-events:none!important}
 .kcp-mobile{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;min-height:0;padding:16px 16px max(12px,env(safe-area-inset-bottom));box-sizing:border-box;background:#f7faf7;color:#263e32}
 .kcp-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none}.kcp-mobile .kcp-mobile-head h2{margin:0;font-size:18px}.kcp-mobile-head button{min-height:44px;margin:0;padding:8px 10px;font-size:16px;background:transparent;color:#365d4a}
 .kcp-mobile input[type=search]{display:block;flex:none;width:100%;min-height:48px;margin:0;font-size:16px;padding:12px;border:1px solid #b9ccc0;border-radius:10px;background:white;box-sizing:border-box}
 .kcp-mobile-hint,.kcp-mobile-status{flex:none;margin:0;font-size:13px;line-height:1.5;color:#64736b}
 .kcp-mobile-results{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 .kcp-mobile button.kcp-mobile-option{display:block;width:100%;min-height:56px;margin:0 0 8px;padding:14px;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:16px;font-weight:400;line-height:1.5;border:1px solid #d7e1da;border-radius:10px;background:#fff;color:#263431}.kcp-mobile button.kcp-mobile-option[aria-pressed=true]{border-color:#477b5f;background:#eaf2ec}
 body:has(.kcp-mobile-host[open]) #mw-bottom-nav{visibility:hidden}
}

.kcp-mobile-option>span,.kcp-mobile-option>small{display:block}.kcp-mobile-option>small{margin-top:6px;color:#64736b;font-size:13px;line-height:1.5}

@media(max-width:760px){.kcp-mobile button.kcp-mobile-option{padding:10px 12px;line-height:1.35}.kcp-mobile-option>small{margin-top:3px;line-height:1.3}.kcp-mobile-option>small.kcp-mobile-id{margin-top:2px;font-size:11px;color:#748179}}

/* Compact new-sale sequence editor; original fields are restored for legacy flows. */
#foodSchedule{padding:16px;border:1px solid #cbd5e1;border-radius:14px;min-width:0}
.food-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.food-categories label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #cbd5e1;border-radius:10px;cursor:pointer;background:#fff}
.food-categories label:has(input:checked){border-color:#0f766e;background:#f0fdfa}
.food-categories input{width:20px;height:20px;flex:none}.food-categories small{display:block;margin-top:4px;color:#475569}
.food-start{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.food-end{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}
.food-summary{display:flex;align-items:center;justify-content:space-between;gap:10px}.food-summary p{font-weight:600}.food-summary button{white-space:nowrap}
#foodDetails summary{cursor:pointer;color:#475569;font-size:14px}#foodDetails #planPreview{margin-top:8px}
@media(max-width:600px){.food-start{grid-template-columns:repeat(2,minmax(0,1fr))}.food-start>label:last-child{grid-column:1/-1}.food-categories{gap:8px}.food-categories label{padding:10px 8px}.food-categories small{font-size:12px}.food-summary{align-items:flex-start}}

/* A pending dietary requirement count, never a customer total. */
#nav .diet-nav-entry{position:relative;padding-right:38px!important}
#nav #dietCount{position:absolute;right:7px;top:5px;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;margin:0;border-radius:999px;background:#b42318;color:#fff;font-size:11px;line-height:18px;font-weight:650;pointer-events:none}
#nav #dietCount[hidden]{display:none!important}

.delivery-detail{display:grid;gap:12px}
.delivery-detail>p,.delivery-detail h3{margin:0}
.delivery-detail-balance{border:1px solid #d6e4da;border-radius:12px;background:#f2f7f3;padding:12px 14px}
.delivery-detail-balance p{margin:0 0 4px;color:#2f5844}
.delivery-detail-balance strong{display:inline-block;font-size:23px;margin-left:8px}
.delivery-detail-balance small{font-size:13px;line-height:1.5;color:#586d60}
.delivery-detail-receipt,.delivery-detail-adjust{padding:12px 14px;border:1px solid #dce5df;border-radius:12px}
.delivery-detail>.delivery-detail-adjust{margin:0}
.delivery-detail-receipt h3{font-size:16px}
.delivery-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.delivery-detail-fields label,.delivery-detail label>input,.delivery-detail label>select{min-width:0}
#detail .delivery-detail label:not(.check){display:block;margin:4px 0}
#detail .delivery-detail label>.ys-field-marker{display:inline!important}
.delivery-detail label>input:not([type=checkbox]):not([type=radio]),.delivery-detail label>select{width:100%;min-height:44px}
.delivery-detail-choice,.delivery-detail-subfields{min-width:0;margin:6px 0;padding:0;border:0}
.delivery-detail-choice legend,.delivery-detail-subfields legend{padding:0;font-weight:600;font-size:13px}
.delivery-detail label.check{display:flex;align-items:center;gap:8px;min-height:36px;margin:4px 0}
.delivery-detail-status{padding:8px 0;color:#496858}
@media(max-width:760px){.delivery-detail label>select{font-size:14px;padding-inline:8px}}
@media(max-width:380px){.delivery-detail-fields{grid-template-columns:minmax(0,1fr)}}

/* Deferred purchases retain the existing navigation and compact review rhythm. */
#deferredSalesPanel{padding:18px 22px}#deferredSalesPanel h2{font-size:20px;margin:0}#deferredRows article.panel{padding:14px 16px;margin:10px 0;border-radius:10px}#deferredRows article p{margin:7px 0;line-height:1.6;font-size:13px}#deferredRows .actions{margin-top:8px;gap:8px}#deferredRows .sumrow{padding:0;border:0}#deferredDialog{width:min(600px,calc(100vw - 28px))}#deferredDialog label{margin:9px 0}#deferredMeals{display:flex;gap:12px;flex-wrap:wrap}#deferredModeLabel small{font-weight:400}#deferredCorrection input{width:100%}@media(max-width:600px){#deferredSalesPanel{padding:14px}#deferredSalesPanel>.section-head{gap:10px}#deferredContent>.actions{display:flex;flex-wrap:wrap}#deferredQuery{width:100%;min-width:0}#deferredRows .sumrow{align-items:flex-start;gap:8px}#deferredRows .sumrow strong{max-width:75%}#deferredRows article.panel{padding:12px}#deferredRows .actions{justify-content:flex-start;flex-wrap:wrap}}
