.food-quality-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) 190px 210px;gap:10px;padding:0 20px 14px}.food-quality-summary{display:flex;gap:10px;flex-wrap:wrap;padding:0 20px 16px}.food-quality-summary span{border:1px solid var(--line,#dce5dc);border-radius:999px;padding:6px 10px;background:var(--surface,#fff);font-size:13px}.quality-badge{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;white-space:nowrap}.quality-badge.validado{background:#e7f3e7;color:#285c2d}.quality-badge.a_rever{background:#fff2d9;color:#8a5700}.quality-badge.incompleto{background:#f7e4e4;color:#8a2e2e}.quality-note{max-width:320px;white-space:normal;font-size:12px;line-height:1.35}.table-card td small{display:block;margin-top:3px;color:var(--muted,#6e776f)}
@media(max-width:900px){.food-quality-toolbar{grid-template-columns:1fr}.quality-note{max-width:220px}}
.food-photo-admin{border-top:1px solid var(--line,#dce5dc);margin-top:22px;padding-top:18px}
.food-photo-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.food-photo-head h3{margin:0 0 4px}.food-photo-head p{margin:0;color:var(--muted,#657065)}
.food-photo-preview{max-width:360px;border:1px solid var(--line,#dce5dc);border-radius:14px;background:#fff;padding:10px;margin:12px 0 18px}.food-photo-preview img{display:block;width:100%;max-height:280px;object-fit:contain;border-radius:10px}
.photo-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;white-space:nowrap;background:#eef4ec;color:#315535}.photo-status.validada{background:#e6f3e7;color:#1f612a}.photo-status.a_rever{background:#fff3dd;color:#8b5800}.photo-status.absent{background:#f2f3f2;color:#727772;font-weight:600}
.food-quality-toolbar{grid-template-columns:minmax(260px,1fr) minmax(150px,190px) minmax(150px,210px) minmax(160px,210px)}
@media(max-width:900px){.food-quality-toolbar{grid-template-columns:1fr 1fr}.food-photo-head{display:block}.food-photo-head .photo-status{margin-top:8px}}
@media(max-width:600px){.food-quality-toolbar{grid-template-columns:1fr}}

/* 7B.3C.4 food catalog lifecycle */
.food-lifecycle-banner{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--border,#d9dfd6);border-radius:10px;margin:0 0 14px;background:#fafcf9}.food-lifecycle-banner.inactive{opacity:.82}.food-lifecycle-banner span,.food-lifecycle-note{font-size:.82em;color:#667066}.food-lifecycle-admin{margin-top:18px;padding-top:16px;border-top:1px solid #dfe5dd}.food-duplicate-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.food-quality-toolbar select#table-food-availability{min-width:130px}@media(max-width:700px){.food-duplicate-tools{grid-template-columns:1fr}}

/* 7B.3C.2 food catalog management & editability */
.food-catalog-head{gap:18px;align-items:center}.food-catalog-head .primary{flex:0 0 auto}
.food-editor-form{display:block}.food-nutrient-section{border:1px solid var(--line,#dce5dc);border-radius:12px;margin:12px 0;background:var(--surface,#fff);overflow:hidden}.food-nutrient-section>summary{cursor:pointer;font-weight:700;padding:12px 14px;background:#f7faf6;list-style:none}.food-nutrient-section>summary::-webkit-details-marker{display:none}.food-nutrient-section>summary:after{content:'▾';float:right;color:var(--muted,#687269)}.food-nutrient-section:not([open])>summary:after{content:'▸'}.food-nutrient-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}.food-editor-note{font-size:12px;color:var(--muted,#687269);margin:8px 0 14px}.food-editor-form>.form-actions{justify-content:flex-end}
@media(max-width:900px){.food-catalog-head{align-items:flex-start}.food-nutrient-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.food-catalog-head{display:block}.food-catalog-head .primary{margin-top:12px;width:100%}.food-nutrient-grid{grid-template-columns:1fr}}

/* 7B.3E.5A — contextual visual portions */
.food-portion-admin{margin-top:18px}.portion-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0}.portion-admin-card{border:1px solid var(--line);border-radius:12px;padding:8px;background:#fff;display:grid;gap:8px}.portion-admin-card img{width:100%;height:130px;object-fit:contain;border-radius:9px;background:#f5f7f3}.portion-admin-card-copy{display:grid;gap:3px}.portion-admin-card-copy small{color:var(--muted)}.portion-admin-actions{display:flex;gap:10px;justify-content:flex-end}.portion-add-panel{margin-top:12px;border:1px solid var(--line);border-radius:12px;padding:10px}.portion-add-panel summary{cursor:pointer;font-weight:800;color:var(--green)}

/* 7B.3F.2A — equivalents management UI */
.food-catalog-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.equiv-manager{min-width:min(1040px,88vw)}.equiv-manager-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) minmax(220px,1fr) 170px;gap:10px;margin:16px 0}.equiv-group-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.equiv-group-meta span{border:1px solid var(--line,#dce5dc);border-radius:999px;padding:6px 10px;background:#f8faf7;font-size:12px}.equiv-table td{vertical-align:middle}.equiv-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.equiv-state{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:700}.equiv-state.active{background:#e7f3e7;color:#285c2d}.equiv-state.a_rever{background:#fff2d9;color:#8a5700}.equiv-state.excluded{background:#f2f3f2;color:#6b716c}.equiv-add-panel{margin-top:16px;border:1px solid var(--line,#dce5dc);border-radius:12px;padding:12px}.equiv-add-panel>summary{cursor:pointer;font-weight:800}.equiv-add-search{display:grid;grid-template-columns:1fr auto;gap:10px;margin:12px 0}.equiv-add-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid var(--line,#dce5dc);padding:10px 0}.equiv-add-row small{display:block;color:var(--muted,#687269);margin-top:3px}
.modal:has(.equiv-manager) .modal-card{width:min(1400px,94vw);max-height:88vh;overflow:hidden;display:flex;flex-direction:column}.modal:has(.equiv-manager) #modal-body{min-height:0;overflow:hidden}.equiv-manager{min-width:0;width:100%;display:flex;flex-direction:column;min-height:0;max-height:calc(88vh - 54px)}.equiv-manager-toolbar{grid-template-columns:minmax(280px,1.25fr) minmax(220px,1fr) minmax(150px,.55fr)}#equiv-list{min-height:0;overflow:hidden}.equiv-manager .table-scroll{max-height:52vh;overflow-y:auto;overflow-x:hidden;border:1px solid var(--line,#dce5dc);border-radius:10px}.equiv-table{table-layout:fixed;width:100%}.equiv-table th,.equiv-table td{padding-left:10px;padding-right:10px}.equiv-table th:nth-child(1),.equiv-table td:nth-child(1){width:31%}.equiv-table th:nth-child(2),.equiv-table td:nth-child(2){width:8%;white-space:nowrap}.equiv-table th:nth-child(3),.equiv-table td:nth-child(3){width:7%;white-space:nowrap}.equiv-table th:nth-child(4),.equiv-table td:nth-child(4){width:9%;white-space:nowrap}.equiv-table th:nth-child(5),.equiv-table td:nth-child(5){width:11%;white-space:nowrap}.equiv-table th:nth-child(6),.equiv-table td:nth-child(6){width:10%;white-space:nowrap}.equiv-table th:nth-child(7),.equiv-table td:nth-child(7){width:24%}.equiv-table td:first-child{overflow-wrap:anywhere}.equiv-actions{flex-wrap:nowrap}.equiv-actions .text-btn{white-space:nowrap}@media(max-width:1050px){.modal:has(.equiv-manager) .modal-card{width:min(980px,96vw)}.equiv-table th:nth-child(1),.equiv-table td:nth-child(1){width:27%}.equiv-table th:nth-child(7),.equiv-table td:nth-child(7){width:28%}.equiv-actions{flex-wrap:wrap}}@media(max-width:800px){.modal:has(.equiv-manager) .modal-card{width:96vw;max-height:92vh;overflow:auto}.modal:has(.equiv-manager) #modal-body,.equiv-manager{overflow:visible;max-height:none}.equiv-manager-toolbar{grid-template-columns:1fr}.equiv-manager .table-scroll{max-height:58vh;overflow:auto}.equiv-table{table-layout:auto;min-width:820px}.equiv-add-row{align-items:flex-start}.food-catalog-head-actions{width:100%}}@media(max-width:600px){.food-catalog-head-actions>*{width:100%}.equiv-add-search{grid-template-columns:1fr}}
