.recipe-error{padding:10px 14px;background:#fff5f4;border-radius:9px;flex:0 0 auto;max-height:90px;overflow:auto;line-height:1.5}
.recipe-list-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:12px;align-items:end;flex-shrink:0}.recipe-list-table{min-width:800px}
.recipe-editor{display:flex;flex:1;min-height:0;flex-direction:column;padding:18px 20px;gap:14px;overflow:hidden}.recipe-editor-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-shrink:0}.recipe-editor-heading h2{font-size:17px}
.recipe-identity{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(140px,1fr) 150px;gap:16px;flex-shrink:0}.recipe-tabs{overflow-x:auto}.recipe-tabs button{flex-shrink:0}
.recipe-panes{flex:1;min-height:0;display:flex;overflow:hidden}.recipe-pane{flex:1;min-width:0;overflow:auto;padding:2px}.recipe-pane h3{margin-bottom:9px}.recipe-items-pane{display:flex;flex-direction:column;gap:12px;overflow:hidden}
.recipe-add-row{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(180px,1fr) auto auto;align-items:end;gap:10px;flex-shrink:0}.recipe-items-table{min-width:740px}.recipe-items-table th:nth-child(2){width:150px}.recipe-items-table th:nth-child(3){width:95px}.recipe-items-table th:nth-child(4){width:140px}.recipe-items-table td{vertical-align:middle}.recipe-items-table input,.recipe-items-table select{width:100%;max-width:170px}.recipe-items-table small{display:block;font-size:11px;color:#718096;margin-top:5px}.recipe-items-table strong{font-weight:600;color:#14213d}.recipe-each{font-size:10px}
.recipe-result-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}.recipe-result-table th,.recipe-result-table td,.recipe-comparison th,.recipe-comparison td{font-size:11px;padding:7px 8px}.recipe-result-table tbody th,.recipe-comparison tbody th{white-space:normal;background:transparent;font-weight:400}.recipe-result-table td,.recipe-comparison td{text-align:right;font-variant-numeric:tabular-nums}.recipe-result-table thead,.recipe-comparison thead{position:static}
.recipe-calculation-state{font-size:11px;line-height:1.5;margin-bottom:12px;overflow-wrap:anywhere}.recipe-method-note{font-size:11px;color:#718096;line-height:1.6;margin-top:12px;max-width:850px}.recipe-product-card{padding:16px;border:1px solid #dce4ef;background:#f8fafd;border-radius:12px}.recipe-product-card>label{margin-top:12px}.recipe-product-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.recipe-product-comparison{font-size:12px;line-height:1.5;margin:14px 0;color:#52617a}.recipe-product-comparison>p{margin-bottom:10px}.recipe-product-card>button{white-space:normal;width:100%}
.recipe-retention-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0;max-width:850px}.recipe-retention-fields input{text-align:right}.recipe-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e5eaf1;padding-top:14px;flex-shrink:0}
@media(max-width:1200px){.recipe-add-row{grid-template-columns:minmax(100px,.6fr) minmax(160px,1fr) auto}.recipe-add-row>button:last-child{grid-column:3}.recipe-result-grid{grid-template-columns:1fr}.recipe-editor{padding:14px}.recipe-result-grid>div{min-width:0}}
@media(max-width:720px){.recipe-identity{grid-template-columns:1fr 100px;gap:10px}.recipe-identity>label:first-child{grid-column:1/-1}.recipe-add-row{grid-template-columns:1fr 1fr}.recipe-add-row>button:last-child{grid-column:auto}.recipe-retention-fields{grid-template-columns:1fr 1fr}.recipe-footer>.hint{display:none}.recipe-footer{justify-content:flex-end}.recipe-tabs button{padding:9px 11px;font-size:11px}.recipe-editor-heading>.hint{max-width:140px;text-align:right}}

.recipe-ingredient-cost{padding:14px;margin:14px 0;border:1px solid #dce4ef;border-radius:10px;background:#f8fafd}.recipe-ingredient-cost>p{margin:8px 0;line-height:1.5}.recipe-ingredient-cost .hint{font-size:11px}.recipe-ingredient-cost table{width:100%;margin:10px 0}

.recipe-result-table thead th:not(:first-child),.recipe-comparison thead th:not(:first-child){text-align:right}.recipe-result-table thead th:first-child,.recipe-result-table tbody th,.recipe-comparison th:first-child{text-align:left}
.recipe-identity{grid-template-columns:minmax(160px,1.4fr) minmax(150px,1fr) minmax(180px,1.2fr) 100px}.recipe-identity input[readonly]{background:#f3f6fa}.recipe-identity .hint{line-height:1.4;font-size:10px}
@media(max-width:900px){.recipe-identity{grid-template-columns:1fr 1fr}}@media(max-width:600px){.recipe-identity{grid-template-columns:1fr}.recipe-identity>label:first-child{grid-column:auto}}

.recipe-list-toolbar{grid-template-columns:minmax(180px,1fr) auto auto auto}#recipeBulkResult{max-height:180px;overflow:auto;flex-shrink:0;font-size:12px;line-height:1.5}#recipeBulkResult ul{margin:8px 0 0;padding-left:20px}@media(max-width:900px){.recipe-list-toolbar{grid-template-columns:1fr 1fr}.recipe-list-toolbar>label{grid-column:1/-1}}

.recipe-labeling{display:grid;gap:12px;padding:14px;border:1px solid #e5eaf1;border-radius:6px;margin:12px 0}.recipe-labeling .tech-enabled{display:flex;flex-direction:row;align-items:center;gap:8px}.recipe-labeling input[type=checkbox]{width:auto}.recipe-loss-pending{color:#a45400;font-weight:600}#recipeConfirmLoss{margin-top:5px;width:100%;white-space:normal}#recipe-pane-productions .tech-grid{margin:15px 0}#recipeProductionAdd{margin-bottom:14px}#recipeINC{margin-top:18px}

/* Consulta compacta: a paginação fica dentro da lista de ingredientes. */
.recipe-add-row{grid-template-columns:minmax(95px,.65fr) minmax(100px,.7fr) minmax(180px,1.5fr) auto;gap:8px}.recipe-ingredient-actions{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}.recipe-ingredient-actions button{white-space:nowrap}
@media(max-width:1100px){.recipe-add-row{grid-template-columns:minmax(95px,.7fr) minmax(100px,.7fr) minmax(180px,1.5fr)}.recipe-ingredient-actions{grid-column:1/-1;justify-self:end}}
@media(max-width:720px){.recipe-add-row{grid-template-columns:1fr 1fr}.recipe-add-row>label:nth-child(3){grid-column:1/-1}.recipe-ingredient-actions{grid-column:1/-1;justify-self:stretch;justify-content:flex-end}.recipe-ingredient-actions button{padding-left:10px;padding-right:10px}}
