/* Joy OS 2.0 · Meals. Scoped to the existing module; legacy dialogs retain their contracts. */
.mw{--md-ink:#173D34;--md-green:#28735B;--md-muted:#586F65;--md-bg:#F5F7F6;--md-border:#DCE7E1;--md-gold:#D8A65C;max-width:1280px;margin:0 auto;color:var(--md-ink);font-family:Inter,'Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.55;padding-bottom:32px}
.mw *{box-sizing:border-box;min-width:0}.mw [hidden]{display:none!important}.mw h1,.mw h2,.mw h3,.mw p{margin:0}.mw h1{font-size:clamp(26px,2.8vw,36px);font-weight:720;line-height:1.3;letter-spacing:-.8px}.mw h2{font-size:19px;line-height:1.4;font-weight:700}.mw h3{font-size:16px}.mw p,.mw small{color:var(--md-muted)}.mw small{font-size:12px;line-height:1.5}.mw svg{width:20px;height:20px;flex:none}.mw button,.mw input,.mw select,.mw textarea{font-family:inherit;font-size:14px;color:var(--md-ink);border-radius:8px}.mw button{min-height:40px;cursor:pointer;font-weight:600;transition:background .15s,border-color .15s;box-shadow:none}.mw button:hover:not(:disabled){background:#E9F1EC;border-color:#8BA999}.mw button:disabled{cursor:default;opacity:.55}.mw :is(button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #AD762F;outline-offset:3px}.mw input:not([type=checkbox]),.mw select,.mw textarea{background:#fff;border:1px solid #B8CFC1;min-height:42px;padding:10px 12px;box-shadow:none}.mw input[type=checkbox]{width:18px;height:18px;accent-color:#28735B}.mw .mw-eyebrow{color:#5B7368;letter-spacing:1.8px;font-size:10px;font-weight:750}.mw .mw-heading{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;margin:0 0 24px;min-height:136px;padding:0;border:0;gap:20px}.mw-heading h1{margin:9px 0 8px}.mw-heading p{font-size:14px;line-height:1.7}.md-brand-art{position:relative;display:flex;align-items:center;justify-content:center;width:210px;height:130px;flex:none;background:radial-gradient(ellipse at 50% 50%,#E2EBE4 0%,transparent 70%)}.md-plate{width:110px;height:110px;border:1px solid #D4E1D6;border-radius:50%;background:#FEFDF7;box-shadow:0 10px 16px #173D340C;display:grid;place-items:center;transform:rotate(-12deg)}.md-plate:before{content:'';position:absolute;inset:12px;border:1px solid #DCE7D7;border-radius:50%}.md-plate span{background:#E9EEDF;border-radius:50%;height:60px;width:60px;display:grid;place-items:center}.md-plate svg{width:32px;height:32px;color:#496C42}.md-art-label{position:absolute;bottom:8px;right:-3px;font-size:8px;letter-spacing:1.2px;background:#173D34;color:#FFF7DC;border:1px solid #244E40;border-radius:4px;padding:5px 9px;transform:rotate(-5deg)}
.mw .mw-toolbar{display:flex;align-items:center;gap:16px;padding:14px 16px;margin:0 0 20px;border:1px solid var(--md-border);border-radius:12px;background:#fff;box-shadow:0 2px 8px #173D3403}.mw .mw-week-nav{gap:10px}.mw .mw-week-nav>button{width:36px;min-width:36px;height:36px;min-height:36px;padding:5px;border-color:var(--md-border);background:white}.mw .mw-week-nav>.mw-this-week{width:auto;white-space:nowrap;padding:0 12px;background:var(--md-bg)}.mw .mw-week-label{min-width:210px}.mw .mw-week-label strong{font-size:17px;line-height:1.35;letter-spacing:0}.mw .mw-week-label label{font-size:11px;margin-top:3px;gap:7px}.mw .mw-week-label input{padding:0;min-height:24px;width:118px;font-size:11px;border:0;background:transparent}.mw .mw-meals{margin-left:auto;padding:3px;border-radius:8px;background:#F0F4F1;gap:0}.mw .mw-meals button{min-height:35px;padding:6px 15px;font-size:13px;border:0;border-radius:6px;white-space:nowrap}.mw .mw-meals button[aria-pressed=true]{background:var(--md-ink);color:#fff;box-shadow:none}.mw .mw-save-status{font-size:11px;white-space:normal;max-width:135px;color:var(--md-green)}.mw .mw-save-status.is-draft{color:#805A1B}.mw .mw-feedback{margin:12px 0;padding:12px 16px;border-radius:8px;font-size:13px}
.md-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.md-metric{padding:19px 20px;border:1px solid var(--md-border);border-radius:12px;background:#fff;min-height:148px}.md-metric>div{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--md-muted);font-size:12px;font-weight:600}.md-metric>div svg{color:#4C795F}.md-metric>strong{display:block;font-size:35px;font-weight:650;line-height:1.3;margin:11px 0 5px;font-variant-numeric:tabular-nums;letter-spacing:-1px}.md-metric>strong.is-money{font-size:28px;letter-spacing:-.8px;line-height:1.625}.md-metric>small{display:block;font-size:11px}.md-metric.primary{background:var(--md-ink);border-color:var(--md-ink);color:#fff}.md-metric.primary>div,.md-metric.primary>small,.md-metric.primary svg{color:#C4DCCF}.md-metric.attention{background:#FBF6E9;border-color:#E9D9B8}.md-metric.attention>div,.md-metric.attention>strong,.md-metric.attention>div svg{color:#77541D}
.md-week-pulse{display:grid;grid-template-columns:1fr 1.4fr;gap:24px;align-items:center;border:1px solid var(--md-border);border-radius:12px;padding:20px;background:#fff;margin-bottom:24px}.md-week-pulse>div:first-child{display:flex;align-items:center;gap:12px}.md-icon-tile{display:grid;place-items:center;width:42px;height:42px;background:#EDF3EF;color:var(--md-green);border-radius:10px;flex:none}.md-week-pulse h2{font-size:15px}.md-week-pulse p{font-size:11px;margin-top:3px}.md-bars{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.md-bar>div:first-child{display:flex;justify-content:space-between;align-items:center;font-size:11px}.md-bar strong{font-size:14px}.md-bar-track{height:6px;border-radius:4px;background:#EAF0EC;margin:6px 0}.md-bar-track>span{display:block;height:100%;border-radius:4px;background:var(--md-green);min-width:0;transition:width .2s}.md-bar small{font-size:10px}.md-bar.closed .md-bar-track{background:repeating-linear-gradient(45deg,#DCE3DE,#DCE3DE 2px,#F5F7F6 2px,#F5F7F6 5px)}
.md-tabs{display:flex;gap:4px;border-bottom:1px solid var(--md-border);margin:0 0 20px;overflow:auto}.md-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;padding:12px 18px;white-space:nowrap;color:var(--md-muted);font-size:13px}.md-tabs button[aria-current=page]{border-bottom-color:var(--md-green);color:var(--md-ink);background:#EBF2ED}.md-tabs svg{width:17px;height:17px}.md-tabs button svg:last-child:not(:first-child){width:12px;height:12px}
.mw[data-section=attendance] :is(.mw-pricing,.mw-menu-panel,.mw-sheet-preview,.mw-preview),.mw[data-section=kitchen] :is(.mw-panel:not(.mw-menu-panel),.mw-month-entry),.mw[data-section=finance] :is(.mw-holiday-policy,.mw-month-entry,.mw-panel,.mw-pricing,.mw-summary,.mw-sheet-preview,.mw-preview){display:none}
.mw .mw-holiday-policy{font-size:11px;margin:0 0 16px;gap:7px;color:var(--md-muted);align-items:center}.mw .mw-holiday-policy svg{width:15px;height:15px}.mw .mw-month-entry{padding:14px 16px;border-radius:10px;background:#EDF3EF;border:1px solid #D5E3D9;margin:0 0 16px;gap:12px}.mw .mw-month-entry strong{font-size:13px}.mw .mw-month-entry p{font-size:11px;margin:4px 0 0}.mw .mw-manage-roster{padding:8px 12px;font-size:12px;font-weight:650;border-radius:8px;background:#fff;border:1px solid var(--md-border);min-height:38px;white-space:normal}.mw .mw-panel{border:1px solid var(--md-border);border-radius:12px;overflow:hidden;box-shadow:none;background:#fff;margin:0 0 20px}.mw .mw-panel-heading{padding:20px 20px 14px;gap:16px}.mw .mw-panel-heading p{font-size:12px;margin:5px 0 0}.mw .mw-roster-count{font-size:11px;padding:5px 10px;background:#EDF3EF}.mw .mw-list-tools{gap:8px}.mw .mw-filters{padding:0 20px 16px;gap:10px}.mw .mw-search{max-width:360px;flex:1}.mw .mw-search input{padding-left:38px;height:40px;min-height:40px;font-size:12px}.mw .mw-search svg{width:17px;height:17px}.mw .mw-filters select{font-size:12px;min-height:40px;max-width:155px}.mw .mw-selected-only{font-size:12px;gap:6px}.mw .mw-staff-jump,.mw .mw-notes-toggle{font-size:12px;padding:8px 10px;min-height:36px}.mw .mw-table-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain;overscroll-behavior-y:auto;touch-action:pan-x pan-y pinch-zoom}.mw .mw-table-scroll table{min-width:690px;table-layout:fixed}.mw .mw-table-scroll th,.mw .mw-table-scroll td{padding:14px 10px;border-color:#E5ECE7}.mw .mw-table-scroll th:first-child{width:210px;background:#FAFCFA;position:sticky;left:0;z-index:1}.mw .mw-table-scroll thead th{background:#F1F5F2}.mw .mw-day-name{gap:5px;align-items:baseline;justify-content:center}.mw .mw-day-name>span{font-size:11px}.mw .mw-day-name>strong{font-size:23px}.mw .mw-day-name small{font-size:10px}.mw .mw-day-select{font-size:9px;gap:5px;margin-top:10px;justify-content:center}.mw .mw-day-select input{width:16px;height:16px}.mw .mw-column-status{font-size:10px;margin-top:7px;color:#5C7365}.mw .mw-student{gap:12px}.mw .mw-student strong{font-size:14px}.mw .mw-student small{font-size:11px}.mw .mw-master{font-size:13px;gap:12px}.mw .mw-master small{font-size:10px}.mw .mw-day-check{min-height:24px}.mw .mw-table-scroll td.is-selected{background:#EFF7F1}.mw .mw-table-scroll tfoot th{font-size:12px}.mw .mw-table-scroll tfoot th small{font-size:10px}.mw .mw-staff-row input{max-width:70px;min-height:36px;height:36px;padding:4px 8px}.mw .mw-student-totals td{font-size:16px}.mw .mw-total-row td{font-size:20px;background:#EEF4F0}.mw .mw-table-footer{padding:12px 20px;font-size:10px;gap:12px}.mw .mw-table-scroll .is-closed{background:#F3F4F3!important;color:#64736A}.mw .mw-closure-name{font-size:10px}.mw .mw-swipe{display:none;padding:0 16px 10px;font-size:11px}
.mw .mw-summary{background:var(--md-ink);border:0;color:#fff;border-radius:12px;padding:20px;margin:20px 0}.mw .mw-summary h2{font-size:18px;color:#fff}.mw .mw-summary .mw-eyebrow{color:#B7CEC0;font-size:9px}.mw .mw-summary-title{gap:16px;align-items:center;margin-bottom:16px}.mw .mw-week-total strong{font-size:32px;color:#fff}.mw .mw-week-total span{color:#C4DCCF;font-size:10px}.mw .mw-day-cards{gap:10px}.mw .mw-day-cards>div{border:1px solid #456458;background:#244B3E;color:#fff;padding:12px;border-radius:8px}.mw .mw-day-cards span,.mw .mw-day-cards small{color:#D0E0D6;font-size:10px}.mw .mw-day-cards strong{font-size:23px;line-height:1.3;color:#fff;margin:5px 0}.mw .mw-summary-actions{border-color:#456458;margin-top:16px;padding-top:16px;gap:16px}.mw .mw-summary-actions p{color:#C4DCCF;font-size:11px;max-width:360px}.mw .mw-summary-actions>div{gap:8px;flex-wrap:wrap}.mw .mw-summary-actions button{padding:9px 12px;font-size:12px;min-height:40px;border-radius:8px}.mw .mw-summary .mw-save{background:#E7C486;color:#173D34;border-color:#E7C486}.mw .mw-summary .mw-image{background:#fff;color:#173D34;border-color:#fff}.mw .mw-summary .mw-copy{background:transparent;border-color:#829E8C;color:#fff}.mw .mw-summary-actions svg{width:16px;height:16px}.mw[data-section=attendance] .mw-summary .mw-day-cards{display:none}.mw[data-section=attendance] .mw-summary-title{margin-bottom:0}.mw[data-section=attendance] .mw-summary-actions{margin-top:12px;padding-top:12px}
.mw .mw-pricing{display:grid;grid-template-columns:1fr 200px 200px;gap:24px;border-radius:12px;background:#fff;border:1px solid var(--md-border);padding:20px;margin:0 0 20px}.mw .mw-pricing h2{font-size:18px}.mw .mw-pricing p{font-size:11px;margin-top:6px;max-width:440px}.mw .mw-pricing label{font-size:12px;min-width:0}.mw .mw-pricing input{width:100%;margin:6px 0 2px}.mw .mw-price-total{min-width:0}.mw .mw-price-total>span{font-size:12px}.mw .mw-price-total strong{font-size:27px;line-height:1.5}.mw .mw-menu-heading{padding:20px}.mw .mw-menu-heading p{font-size:12px}.mw .mw-menu-progress{font-size:11px}.mw .mw-menu-day{padding:14px 20px;grid-template-columns:70px minmax(0,1fr) 70px;gap:16px}.mw .mw-menu-dishes textarea{font-size:13px;min-height:64px}.mw .mw-menu-date strong{font-size:13px}.mw .mw-menu-date span{font-size:11px}.mw .mw-menu-count strong{font-size:24px}.mw .mw-menu-count span{font-size:11px}.mw .mw-menu-footnote{font-size:11px;padding:14px 20px}.mw .mw-sheet-preview{border-radius:12px;padding:20px;border-color:var(--md-border);margin:20px 0;background:#fff}.mw .mw-sheet-heading h2{font-size:18px}.mw .mw-sheet-heading>span{font-size:11px}.mw .mw-preview{border-radius:8px;padding:14px 16px;border-color:var(--md-border);background:#EDF3EF}.mw .mw-preview summary{font-size:12px}.mw .mw-preview pre{font-size:12px;white-space:pre-wrap;word-break:break-word}
.md-finance>header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.md-finance h2{margin:5px 0 6px}.md-finance>header p{font-size:12px}.md-finance>header label{font-size:12px;display:grid;gap:5px}.md-finance-settings{display:flex;align-items:center;gap:20px;padding:16px 20px;border:1px solid var(--md-border);border-radius:10px;background:#fff;margin-bottom:20px}.md-finance-settings label{font-size:12px;display:flex;align-items:center;gap:12px;flex-shrink:0}.md-finance-settings input{width:110px}.md-finance-settings p{font-size:11px;max-width:410px}.md-finance-settings>svg{margin-left:auto;color:var(--md-muted)}.md-finance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.md-finance-kpis article{padding:20px 16px;background:#fff;border:1px solid var(--md-border);border-radius:10px}.md-finance-kpis span{font-size:12px;color:var(--md-muted)}.md-finance-kpis strong{display:block;font-size:25px;letter-spacing:-.7px;margin:12px 0;font-variant-numeric:tabular-nums}.md-finance-kpis small{font-size:10px}.md-finance-kpis article.md-profit{background:#EAF2E8;border-color:#C8DBC1}.md-finance-kpis article.loss{background:#FDF0EC;border-color:#EDC3B4;color:#922F24}.md-finance-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.md-finance-grid section{background:#fff;border:1px solid var(--md-border);border-radius:10px;padding:20px}.md-finance-grid p{font-size:11px;margin-top:16px}.md-breakdown>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.md-breakdown>div>span{font-size:10px;background:#F5EAD3;color:#795719;border-radius:5px;padding:3px 8px}.md-budget-bar{height:14px;border-radius:4px;background:#E9C68C;margin:24px 0 20px;overflow:hidden}.md-budget-bar>span{height:100%;display:block;background:#28735B;border-radius:0;padding:0!important}.md-breakdown dl{margin:0}.md-breakdown dl>div{display:flex;justify-content:space-between;border-bottom:1px solid #E8EEE9;padding:8px 0;font-size:12px;gap:12px}.md-breakdown dd{font-weight:700;margin:0}.md-checklist>div{display:flex;align-items:center;gap:10px;margin-top:17px;font-size:12px}.md-checklist svg{width:17px;height:17px;color:#4F745A}.md-month-table{padding:20px;background:#fff;border:1px solid var(--md-border);border-radius:10px;overflow:auto;margin-bottom:16px}.md-month-table table{width:100%;border-collapse:collapse;margin-top:16px;font-size:12px}.md-month-table th,.md-month-table td{text-align:right;border-bottom:1px solid #E4ECE6;padding:12px 8px;white-space:nowrap}.md-month-table th:first-child{text-align:left}.md-month-table thead{background:#F5F7F6;color:var(--md-muted)}.md-method{font-size:12px;border:1px solid var(--md-border);border-radius:8px;padding:12px 16px;margin-bottom:20px;background:#F0F4F1}.md-method p{font-size:11px;margin-top:10px}.md-state{text-align:center;min-height:220px;padding:40px 24px;border:1px dashed #B8CFC1;border-radius:12px;background:#FBFCFB;margin:20px 0}.md-state>svg{width:32px;height:32px;color:#69816D;margin-bottom:12px}.md-state h3{font-size:17px}.md-state p{font-size:12px;max-width:430px;margin:10px auto 0}.md-state button{margin-top:16px;padding:9px 16px;background:#173D34;color:#fff;border:0}.md-warning{padding:14px;border:1px solid #D6B779;background:#FFF7E3;border-radius:8px;color:#765018!important}.mw .mw-loading{padding:60px 24px;border-radius:12px;background:#fff;font-size:14px}
@media(max-width:1050px){.md-week-pulse{grid-template-columns:1fr 1.2fr;gap:16px}.md-metric{padding:16px}.md-metric>div{font-size:11px}.md-metric>strong.is-money{font-size:24px}.mw .mw-toolbar{flex-wrap:wrap}.mw .mw-save-status{max-width:none}.mw .mw-filters{flex-wrap:wrap}.mw .mw-staff-jump{margin-left:auto}.md-finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.mw .mw-pricing{grid-template-columns:1fr 150px}.mw .mw-price-total{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between}.mw .mw-summary-actions{flex-wrap:wrap}.mw .mw-summary-actions>div{margin-left:0}}
@media(max-width:700px){.mw{font-size:13px;padding-bottom:16px}.mw .mw-heading{min-height:110px;gap:0;margin-bottom:16px}.mw h1{font-size:27px;letter-spacing:-.5px}.mw-heading p{font-size:12px;max-width:250px}.mw .mw-eyebrow{font-size:9px;letter-spacing:1.4px}.md-brand-art{width:78px;height:90px}.md-plate{width:72px;height:72px}.md-plate:before{inset:8px}.md-plate span{width:42px;height:42px}.md-plate svg{width:24px;height:24px}.md-art-label{display:none}.mw .mw-toolbar{padding:12px;gap:12px;margin-bottom:16px}.mw .mw-week-nav{width:100%;gap:7px}.mw .mw-week-label{min-width:0;flex:1}.mw .mw-week-label strong{font-size:14px}.mw .mw-week-nav>.mw-this-week{padding:0 9px;font-size:12px}.mw .mw-meals{margin-left:0}.mw .mw-meals button{font-size:12px;padding:5px 16px}.mw .mw-save-status{margin-left:auto;max-width:160px;font-size:10px}.md-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.md-metric{padding:14px;min-height:130px}.md-metric>strong{font-size:30px;line-height:1.3;margin:9px 0 4px}.md-metric>strong.is-money{font-size:23px;line-height:1.7}.md-metric>div{font-size:11px}.md-metric>div svg{width:17px;height:17px}.md-metric>small{font-size:10px}.md-week-pulse{grid-template-columns:1fr;padding:16px;gap:18px;margin-bottom:16px}.md-bars{gap:13px}.md-week-pulse p{font-size:10px}.md-week-pulse h2{font-size:14px}.md-tabs{gap:0;margin-bottom:16px}.md-tabs button{padding:12px 10px;font-size:12px;gap:5px;flex:1}.md-tabs svg{width:15px;height:15px}.md-tabs button>svg:last-child:not(:first-child){display:none}.mw .mw-holiday-policy{font-size:10px;align-items:flex-start;line-height:1.6}.mw .mw-month-entry{padding:12px;align-items:center;gap:10px}.mw .mw-month-entry strong{font-size:12px}.mw .mw-month-entry p{display:none}.mw .mw-month-entry button{font-size:10px;max-width:115px;padding:7px 9px}.mw .mw-panel-heading{padding:16px 14px 12px;align-items:flex-start;gap:10px}.mw h2{font-size:17px}.mw .mw-panel-heading p{font-size:11px}.mw .mw-list-tools{flex-direction:column-reverse;align-items:flex-end;flex:none}.mw .mw-roster-count{font-size:9px;padding:3px 7px}.mw .mw-list-tools button{font-size:10px;min-height:32px;padding:6px 8px}.mw .mw-filters{padding:0 14px 12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.mw .mw-search{grid-column:1 / -1;max-width:none}.mw .mw-filters select{max-width:100%;width:100%;font-size:11px}.mw .mw-selected-only{font-size:11px;justify-content:flex-end}.mw .mw-staff-jump{margin:0;text-align:left;justify-content:flex-start}.mw .mw-notes-toggle{justify-self:end}.mw .mw-swipe{display:block}.mw .mw-table-scroll table{min-width:640px}.mw .mw-table-scroll th:first-child{width:155px}.mw .mw-table-scroll th,.mw .mw-table-scroll td{padding:12px 8px}.mw .mw-table-footer{padding:12px 14px;flex-direction:column;align-items:flex-start;gap:3px;font-size:10px}.mw .mw-summary{padding:16px}.mw .mw-summary h2{font-size:16px}.mw .mw-summary-actions>div{display:grid;grid-template-columns:1fr 1fr;width:100%}.mw .mw-summary-actions .mw-save{grid-column:1 / -1}.mw .mw-summary-actions button{font-size:11px;padding:10px 8px;justify-content:center}.mw .mw-summary-actions p{font-size:10px;max-width:none}.mw .mw-summary-actions{gap:12px}.mw .mw-day-cards{gap:6px;grid-template-columns:repeat(5,minmax(0,1fr))}.mw .mw-day-cards>div{padding:8px 5px;text-align:center}.mw .mw-day-cards>div>span{font-size:10px;display:block}.mw .mw-day-cards>div>span small{display:none}.mw .mw-day-cards strong{font-size:20px}.mw .mw-day-cards>div>small{font-size:9px}.mw .mw-pricing{padding:16px;grid-template-columns:1fr;gap:14px}.mw .mw-pricing label{display:grid;grid-template-columns:1fr 110px;align-items:center}.mw .mw-pricing label small{grid-column:2}.mw .mw-pricing p{font-size:11px}.mw .mw-price-total{grid-column:1}.mw .mw-price-total strong{font-size:24px}.mw .mw-menu-heading{padding:16px;align-items:flex-start;gap:10px}.mw .mw-menu-heading h2{font-size:17px}.mw .mw-menu-heading p{font-size:11px}.mw .mw-menu-progress{font-size:10px;max-width:85px;flex:none}.mw .mw-menu-day{padding:14px;grid-template-columns:42px minmax(0,1fr) 32px;gap:10px}.mw .mw-menu-dishes textarea{font-size:12px;min-height:84px;padding:9px}.mw .mw-menu-date strong{font-size:12px}.mw .mw-menu-date span{font-size:10px}.mw .mw-menu-count strong{font-size:20px}.mw .mw-menu-count span{font-size:9px}.mw .mw-menu-footnote{font-size:10px;padding:12px 14px}.mw .mw-sheet-preview{padding:12px;overflow:hidden}.mw .mw-sheet-heading{flex-wrap:wrap;gap:7px}.mw .mw-sheet-heading h2{font-size:16px}.mw .mw-sheet-heading>span{font-size:10px}.md-finance>header{align-items:flex-start;gap:12px;flex-wrap:wrap}.md-finance>header>div{width:100%}.md-finance>header label{display:flex;align-items:center;gap:12px;width:100%;font-size:11px}.md-finance>header input{margin-left:auto;max-width:185px}.md-finance>header p{font-size:11px}.md-finance-settings{padding:14px;gap:10px;flex-wrap:wrap}.md-finance-settings label{font-size:11px;flex:1;justify-content:space-between}.md-finance-settings input{width:105px}.md-finance-settings p{font-size:10px;order:2;flex-basis:100%}.md-finance-settings>svg{display:none}.md-finance-kpis{gap:10px}.md-finance-kpis article{padding:14px}.md-finance-kpis span{font-size:11px}.md-finance-kpis strong{font-size:23px;margin:10px 0}.md-finance-kpis small{font-size:10px}.md-finance-grid{grid-template-columns:1fr}.md-finance-grid section{padding:16px}.md-month-table{padding:14px}.md-month-table table{font-size:10px}.md-month-table th,.md-month-table td{padding:10px 4px}.md-state{padding:32px 18px}.md-state h3{font-size:16px}.md-state p{font-size:11px}.md-method{font-size:11px;padding:12px}.md-method p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.mw *{transition:none!important;scroll-behavior:auto!important}}

.md-budget-bar.incomplete{background:repeating-linear-gradient(45deg,#E7ECE8,#E7ECE8 4px,#FAFCFA 4px,#FAFCFA 8px)}.md-budget-incomplete{display:block;font-size:11px;color:#765719!important;margin-top:12px}

/* Let vertical gestures reach the page; the phone table only needs horizontal scrolling. */
@media(max-width:700px){.mw .mw-table-scroll{max-height:none;overscroll-behavior-y:auto}.mw .mw-panel-heading{flex-direction:row}.mw .mw-panel-heading>div:first-child{flex:1}.mw .mw-list-tools{max-width:110px}.mw .mw-master small,.mw .mw-staff-row th small{display:block}}

/* The date row scrolls vertically with the students. Only names stay fixed horizontally. */
.mw .mw-table-scroll thead th{position:relative;top:auto}
.mw .mw-table-scroll thead th:first-child{position:sticky;left:0;top:auto;z-index:4}
/* The production workspace keeps every existing route and permission. Theme only the meals page. */
body.meals-page{background:#F5F7F6}
body.meals-page #workspace-menu{background:#173D34;color:#F4F7F2;border-color:#294F43}
body.meals-page #workspace-menu .brand{color:#F4F7F2}
body.meals-page #workspace-menu .brand b{background:#F4F2E7;color:#173D34}
body.meals-page #workspace-menu :is(.brand small,.profile small,.menu-more-label,.menu-group h2){color:#B9CFC4}
body.meals-page #workspace-menu :is(nav button,summary,.menu-subitems button){color:#D3E2DA}
body.meals-page #workspace-menu :is(.menu-icon,.menu-chevron){color:#B3CCBD}
body.meals-page #workspace-menu :is(nav button:hover,summary:hover,nav button.active,details.has-current:not([open])>summary){background:#2D5446;color:#FFFFFF}
body.meals-page #workspace-menu nav button.active .menu-icon{color:#E1EBDD}
body.meals-page #workspace-menu :is(.menu-primary,.menu-subitems,.profile){border-color:#385B4E}
body.meals-page #workspace-menu .avatar{background:#E2EBDF;color:#173D34}
body.meals-page #workspace-menu .menu-close{background:#2D5446;color:#FFFFFF}

/* Isolate module navigation, headings and tables from the legacy workspace shell. */
.mw nav.md-tabs{display:flex;flex-direction:row;flex-wrap:nowrap;margin:0 0 20px;gap:4px}
.mw nav.md-tabs button{width:auto;flex:0 0 auto;min-height:44px;margin:0;padding:12px 18px;font-size:13px}
.mw nav.md-tabs button span{margin:0;font-size:inherit}
.mw .md-finance>header{height:auto;min-height:0;padding:0;border:0;color:var(--md-ink);gap:20px;flex-wrap:wrap}
.mw .md-finance>header>div{display:block;width:auto;flex:1;min-width:240px}
.mw .md-finance>header h2{margin:5px 0 6px}
.mw .md-budget-bar>span{background:var(--md-green);border-radius:0}
.mw .md-month-table table{table-layout:auto;min-width:0;margin-top:16px}
.mw .md-month-table table th,.mw .md-month-table table td{padding:12px 8px;border:0;border-bottom:1px solid var(--md-border);line-height:1.6;text-align:right}
.mw .md-month-table table th:first-child{width:auto;position:static;text-align:left}
@media(max-width:700px){.mw nav.md-tabs{gap:0;margin-bottom:16px}.mw nav.md-tabs button{flex:1;padding:12px 8px;font-size:12px}.mw .md-finance>header{gap:12px}.mw .md-finance>header>div{width:100%;min-width:0;flex-basis:100%}.mw .md-month-table table th,.mw .md-month-table table td{padding:10px 4px}}
/* Owner-only individual monthly fees. Scoped to avoid Portal shell selectors. */
.mw .md-student-fee-entry{align-items:center;gap:16px}.mw .md-student-fee-entry>div{flex:1}.mw .md-student-fee-entry strong{font-size:15px}.mw .md-student-fee-entry p{margin:5px 0 0}.mw .md-student-fee-entry button{flex-shrink:0;min-height:44px;border:1px solid var(--md-border);border-radius:10px;background:white;padding:10px 16px;color:var(--md-ink);font-family:inherit;font-size:14px;font-weight:600}
.mw .mf-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid var(--md-border);border-radius:16px;background:#fff;color:var(--md-ink);box-shadow:0 24px 80px #173d3426;overscroll-behavior:auto}
.mw .mf-dialog::backdrop{background:#142d2866;backdrop-filter:blur(3px)}
.mw .mf-dialog *{box-sizing:border-box}.mw .mf-heading{display:flex;gap:14px;align-items:center}.mw .mf-heading>div{flex:1;min-width:0}.mw .mf-heading h2{font-size:24px;margin:5px 0 0;line-height:1.3}.mw .mf-dialog button{font:inherit;font-size:13px;font-weight:600;min-height:44px;background:#fff;border:1px solid var(--md-border);border-radius:9px;padding:9px 13px;color:var(--md-ink);cursor:pointer}.mw .mf-dialog button:disabled{opacity:.5;cursor:default}.mw .mf-dialog .mf-close{font-size:24px;min-width:44px;border:0}.mw .mf-dialog input{width:100%;min-height:44px;padding:10px 12px;font:inherit;border:1px solid #adc1b5;border-radius:9px;background:white;color:var(--md-ink)}
.mw .mf-dialog :is(input,button):focus-visible{outline:3px solid #28735b;outline-offset:3px}.mw .mf-dialog input[aria-invalid=true]{border-color:#a2362d}.mw .mf-intro,.mw .mf-footnote{font-size:13px;line-height:1.75;color:#52685e;margin:16px 0}.mw .mf-carry{display:flex;gap:12px;background:#f0f5f1;border:1px solid var(--md-border);border-radius:10px;padding:12px 14px}.mw .mf-carry svg{width:20px;height:20px;flex-shrink:0;margin-top:2px}.mw .mf-carry p{margin:0;font-size:13px;line-height:1.7}.mw .mf-toolbar{display:flex;align-items:end;gap:16px;justify-content:space-between;margin:22px 0 12px}.mw .mf-toolbar label{width:60%;font-size:12px;font-weight:600}.mw .mf-toolbar input{display:block;margin-top:6px}.mw .mf-toolbar>span{font-size:12px;color:#52685e;padding-bottom:13px}.mw .mf-row{display:flex;align-items:center;gap:16px;padding:18px 0;border-top:1px solid var(--md-border)}.mw .mf-person{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.mw .mf-person strong{font-size:16px;display:block;overflow-wrap:anywhere}.mw .mf-person small{display:block;font-size:12px;color:#52685e;margin:5px 0}.mw .mf-avatar{display:grid;place-items:center;background:#eaf1ec;border-radius:12px;width:42px;height:42px;flex-shrink:0;font-size:18px;font-weight:600}.mw .mf-source{font-size:11px;color:#486d54}.mw .mf-source.missing{color:#8a5b12}.mw .mf-amount{width:196px;flex-shrink:0}.mw .mf-amount label>span{font-size:11px;display:block;margin-bottom:6px;color:#52685e}.mw .mf-amount input{font-size:19px;font-weight:600;letter-spacing:.02em}.mw .mf-presets{display:flex;gap:6px;margin-top:7px}.mw .mf-presets button{flex:1;padding:5px 10px;min-height:36px;background:#f5f7f6;font-size:11px}.mw .mf-footer{border-top:1px solid var(--md-border);padding-top:18px;display:flex;gap:16px;justify-content:space-between;align-items:center}.mw .mf-footer>div:first-child{min-width:0}.mw .mf-footer strong{display:block;font-size:14px;line-height:1.5}.mw .mf-footer span{display:block;font-size:11px;color:#52685e;line-height:1.6;margin-top:4px}.mw .mf-footer>div:last-child{display:flex;gap:6px;flex-wrap:wrap}.mw .mf-dialog .mf-primary{background:var(--md-ink);color:white;border-color:var(--md-ink)}.mw .mf-empty{padding:24px 0;color:#52685e;font-size:14px;line-height:1.7}.mw .mf-feedback,.mw .mf-confirm{border:1px solid #adc1b5;background:#f0f5f1;border-radius:10px;padding:12px 14px;margin:12px 0;font-size:13px;line-height:1.6}.mw .mf-feedback.is-error,.mw .mf-invalid{color:#932f26}.mw .mf-feedback.is-error{border-color:#dfb4af;background:#fff4f1}.mw .mf-confirm p{margin:4px 0 12px}.mw .mf-confirm>div{display:flex;gap:8px}.mw .mf-invalid{font-size:12px}.mw .mf-dialog [hidden]{display:none!important}
@media(max-width:700px){.mw .md-student-fee-entry{flex-wrap:wrap}.mw .md-student-fee-entry>div{min-width:180px}.mw .md-student-fee-entry>button{width:100%}.mw .mf-dialog{padding:20px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.mw .mf-heading h2{font-size:21px}.mw .mf-heading .md-icon-tile{display:none}.mw .mf-toolbar{align-items:start;flex-direction:column;gap:8px}.mw .mf-toolbar label{width:100%}.mw .mf-toolbar>span{padding:0}.mw .mf-row{gap:12px;align-items:flex-start}.mw .mf-avatar{display:none}.mw .mf-amount{width:134px}.mw .mf-footer{align-items:stretch;flex-direction:column}.mw .mf-footer>div:last-child{justify-content:flex-end}.mw .mf-presets button{min-height:44px}}
