.coach-foods{max-width:1100px}.coach-foods h1{margin:0}.food-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.food-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.food-filters input,.food-filters select{margin:0;min-width:180px;flex:1}.food-filters select,.food-editor select,.food-editor textarea{font:inherit;padding:11px;border:1px solid #bbcfc1;border-radius:8px;background:white;color:#183832}.food-filters button{background:#e7f1ea;color:#20503b}.food-list{border:1px solid #dce5df;border-radius:12px;background:#fff;overflow:hidden}.food-list-head,.food-list-row{display:grid;grid-template-columns:minmax(180px,2.4fr) repeat(5,minmax(68px,1fr)) 60px;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid #e6ece8}.food-list-head{font-size:12px;color:#627268;background:#f8faf8;font-weight:700}.food-list-row:last-child{border-bottom:0}.food-list-row strong{font-size:14px}.food-list-row small{display:block;color:#627268;font-size:11px}.food-list-row span:not(:first-child){font-size:13px}.food-list-row button{padding:6px;font-size:12px;background:#e7f1ea;color:#20503b;border-color:transparent}.food-page-controls{display:flex;gap:10px;align-items:center;margin-top:14px}.food-page-controls button{padding:7px 12px}.food-editor{border:0;border-radius:18px;width:min(760px,95vw);max-height:90vh;padding:24px;box-shadow:0 20px 70px #1235}.food-editor::backdrop{background:#102c3a66}.food-editor-head{display:flex;justify-content:space-between;align-items:center}.food-editor-head h2{margin:0}.food-editor-head button{background:#e7f1ea;color:#20503b;border:0}.food-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.food-editor label{display:block;font-size:13px;font-weight:600}.food-editor input,.food-editor select{display:block;width:100%;margin:5px 0 0}.food-editor fieldset{border:1px solid #dce5df;border-radius:10px;margin:18px 0;padding:12px}.food-editor legend{font-weight:700}.food-editor .diet-flags{display:flex;flex-wrap:wrap;gap:8px}.food-editor .diet-flags label{padding:8px;background:#f2f6f3;border-radius:8px;font-weight:400}.food-editor .diet-flags input{display:inline;width:auto;margin:0 5px 0 0}.food-editor-actions{display:flex;justify-content:flex-end;gap:8px}.food-editor-actions button:first-child{background:#e7f1ea;color:#20503b}.food-editor [role=alert]{color:#99421a}@media(max-width:720px){.food-list-head{display:none}.food-list-row{grid-template-columns:repeat(3,1fr)}.food-list-row>div{grid-column:1/-1}.food-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.food-editor details{border:1px solid #dce5df;border-radius:10px;margin:18px 0;padding:12px}.food-editor details summary{cursor:pointer;font-weight:700;color:#20503b}.food-editor details .food-editor-grid{margin-top:14px}

@media(max-width:720px){.food-list-row span[data-label]::before{content:attr(data-label) ' ';display:block;color:#627268;font-size:10px;font-weight:600}.food-list-row span[data-label]{font-variant-numeric:tabular-nums}}

.food-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.food-toolbar-actions button:first-child{background:#e7f1ea;color:#20503b}.food-excel-preview{background:#f8faf8;border:1px solid #dce5df;border-radius:12px;padding:16px;margin:14px 0 20px}.food-excel-preview h2{font-size:19px;margin:0 0 8px}.food-excel-preview p{margin:8px 0}.food-excel-warning{color:#8b5016}.food-excel-summary{font-weight:700}.food-excel-preview details{border-top:1px solid #dce5df;padding:9px 0}.food-excel-preview summary{cursor:pointer;font-weight:700}.food-excel-preview ul{list-style:none;padding:0;margin:8px 0;max-height:290px;overflow:auto}.food-excel-preview li{padding:7px 0;border-bottom:1px solid #e6ece8;font-size:13px}.food-excel-preview li small{display:block;color:#627268;margin-top:3px}@media(max-width:720px){.food-toolbar{align-items:flex-start;flex-direction:column}.food-toolbar-actions{width:100%}.food-toolbar-actions button{flex:1}}
.food-excel-preview label{display:flex;align-items:flex-start;gap:6px;font-size:13px}.food-excel-preview input[type=checkbox]{width:16px;min-width:16px;height:16px;margin:2px 0}.food-excel-preview table{width:100%;font-size:12px;table-layout:fixed;border-collapse:collapse}.food-excel-preview td{overflow-wrap:anywhere;padding:6px;border-bottom:1px solid #dce5df}.food-excel-preview li details{padding:6px 0}.food-excel-preview>button{margin:8px 8px 0 0}
.food-excel-dialog{box-sizing:border-box;border:0;border-radius:18px;width:min(1000px,95vw);max-height:90vh;padding:24px;color:#183832;background:#fff;box-shadow:0 20px 70px #1235;overflow:auto}.food-excel-dialog::backdrop{background:#102c3a66}.food-excel-dialog .food-editor-head{gap:12px;margin-bottom:18px}.food-excel-dialog h2{overflow-wrap:anywhere}.food-excel-actions{display:flex;gap:8px;flex-wrap:wrap}.food-excel-dialog button{font:inherit;cursor:pointer;padding:10px 16px;border:1px solid #bbcfc1;border-radius:9px;background:#386449;color:white}.food-excel-dialog button:disabled{opacity:.55;cursor:default}.food-excel-dialog .food-editor-head button{background:#e7f1ea;color:#20503b}.coach-foods>p[role=status] button{font-size:13px;padding:6px 10px;margin-left:8px}@media(max-width:720px){.food-excel-dialog{padding:16px}.food-excel-actions button{flex:1}.food-excel-dialog .food-excel-preview{padding:12px}}
.food-editor-actions .food-delete{margin-right:auto;color:#a33a29;background:#fff1ec;padding:8px 12px}.food-delete-confirm{border-top:1px solid #dce5df;margin-top:14px;padding-top:10px}.food-delete-confirm button{margin-right:8px}.food-delete-confirm button:last-child{background:#a33a29;color:white}
