/* ===== USE COISAS V38 - Produção, Financeiro e Receitas ===== */
.legacy-internal-view,.legacy-internal-nav{display:none!important}
.workspace-tabs{display:flex;gap:6px;flex-wrap:wrap;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:5px;margin-bottom:16px;width:max-content;max-width:100%}
.workspace-tab-btn{border:0;background:transparent;color:var(--muted);padding:9px 14px;border-radius:9px;font-weight:800;cursor:pointer}
.workspace-tab-btn.active{background:var(--gold);color:#15110a}
.workspace-tab-panel{display:none}.workspace-tab-panel.active{display:block}
.embedded-workspace-panel{display:block!important}.embedded-workspace-panel>.subpage-head{margin-top:0}
.finance-workspace-head{align-items:flex-end}.finance-workspace-head #financeMonthHost{display:flex;align-items:flex-end}
.recipe-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.recipe-kpi{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:14px;display:grid;gap:3px}
.recipe-kpi span{font-size:.76rem;color:var(--muted)}.recipe-kpi strong{font-size:1.55rem}.recipe-kpi small{color:var(--muted)}
.recipe-layout{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(480px,1.35fr);gap:14px;align-items:start}
.recipe-library-panel,.recipe-detail-panel{min-width:0}.recipe-panel-head{gap:12px;align-items:flex-start}.recipe-panel-head h3{margin:0 0 3px}
.recipe-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:8px;margin-bottom:10px}.recipe-toolbar input,.recipe-toolbar select{min-width:0}
.recipe-list{display:grid;gap:7px;max-height:620px;overflow:auto;padding-right:2px}
.recipe-card{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;background:var(--panel2);border:1px solid var(--line);border-radius:11px;padding:11px 12px;color:var(--text);cursor:pointer}
.recipe-card:hover,.recipe-card.active{border-color:color-mix(in srgb,var(--gold) 62%,var(--line));background:color-mix(in srgb,var(--gold) 7%,var(--panel2))}
.recipe-card-main{display:grid;gap:2px;min-width:0}.recipe-card-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipe-card-main small{color:var(--muted);font-size:.76rem}
.recipe-card-status{flex:0 0 auto;font-size:.7rem;font-weight:900;border-radius:999px;padding:4px 7px;border:1px solid var(--line)}
.recipe-card-status.ok{color:#76d99a}.recipe-card-status.warn{color:var(--gold)}.recipe-card-status.neutral{color:var(--muted)}
.recipe-empty-list,.recipe-empty-state{min-height:180px;display:grid;place-content:center;text-align:center;gap:5px;color:var(--muted);padding:20px}.recipe-empty-list strong,.recipe-empty-state strong{color:var(--text)}
.recipe-detail-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.recipe-detail-head h3{margin:3px 0 4px}.recipe-detail-category{font-size:.7rem;font-weight:900;color:var(--gold);text-transform:uppercase;letter-spacing:.04em}.recipe-detail-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.recipe-validation{margin:12px 0;padding:9px 11px;border-radius:9px;border:1px solid var(--line);font-size:.82rem}.recipe-validation.ok{color:#8ce1a8;border-color:#245d38;background:#10261a}.recipe-validation.warn{color:#ffd36b;border-color:#6f551b;background:#2a2311}.recipe-validation.neutral{color:var(--muted)}
.recipe-notes{padding:9px 0;color:var(--muted)}
.recipe-ingredient-table{display:grid;border:1px solid var(--line);border-radius:11px;overflow:hidden}.recipe-ingredient-row{display:grid;grid-template-columns:minmax(170px,1fr) 150px 130px;gap:10px;align-items:center;padding:10px 11px;border-bottom:1px solid var(--line)}.recipe-ingredient-row:last-child{border-bottom:0}.recipe-ingredient-row.header{background:var(--panel2);font-size:.72rem;font-weight:900;color:var(--muted);text-transform:uppercase}.recipe-ingredient-row>span{display:grid;gap:1px}.recipe-ingredient-row small{color:var(--muted)}
.recipe-empty-items{padding:16px;color:var(--muted)}.recipe-cost-line{display:flex;justify-content:space-between;gap:12px;padding:11px 2px;font-size:.9rem}.recipe-cost-line span{color:var(--muted)}
.recipe-simulator{margin-top:8px;padding-top:14px;border-top:1px solid var(--line)}.recipe-simulator h4{margin:0}.recipe-simulator-head small{color:var(--muted)}.recipe-target-field{margin-top:10px;display:flex;align-items:center;gap:8px;max-width:360px}.recipe-target-field input{width:150px}.recipe-simulation-summary{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0 8px;padding:8px 10px;background:var(--panel2);border-radius:9px;color:var(--muted)}.recipe-simulation-summary strong{color:var(--text)}.recipe-simulation-list{display:grid;gap:5px}.recipe-simulation-list>div{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid var(--line);border-radius:9px}.recipe-simulation-list span{color:var(--muted)}
.recipe-modal-form{width:min(940px,calc(100vw - 28px))}.recipe-yield-fields{display:grid;grid-template-columns:1fr 110px;gap:8px}.recipe-editor-section{margin-top:14px;border-top:1px solid var(--line);padding-top:14px}.recipe-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.recipe-editor-head h4{margin:0 0 3px}.recipe-items-editor{display:grid;gap:7px}.recipe-item-editor-row{display:grid;grid-template-columns:minmax(250px,1fr) 130px 100px 38px;gap:8px;align-items:end;padding:9px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.recipe-item-editor-row label{min-width:0}.recipe-item-editor-row select,.recipe-item-editor-row input{width:100%;min-width:0}.recipe-item-remove{margin-bottom:1px}.recipe-editor-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px;padding:10px 11px;border-radius:9px;background:var(--panel2);font-size:.82rem}.recipe-editor-summary .ok{color:#82dda0}.recipe-editor-summary .warn{color:#ffd36b}.recipe-editor-summary .neutral{color:var(--muted)}
@media(max-width:980px){.recipe-layout{grid-template-columns:1fr}.recipe-list{max-height:none}.recipe-kpis{grid-template-columns:1fr 1fr}.recipe-ingredient-row{grid-template-columns:minmax(150px,1fr) 120px 110px}}
@media(max-width:760px){.workspace-tabs{width:100%;overflow:auto;flex-wrap:nowrap}.workspace-tab-btn{white-space:nowrap}.recipe-kpis{grid-template-columns:1fr}.recipe-toolbar{grid-template-columns:1fr}.recipe-detail-head,.recipe-editor-head{flex-direction:column}.recipe-detail-actions{justify-content:flex-start}.recipe-ingredient-row.header{display:none}.recipe-ingredient-row{grid-template-columns:1fr;gap:3px}.recipe-item-editor-row{grid-template-columns:1fr 1fr 90px 38px}.recipe-item-editor-row label:first-child{grid-column:1/-1}.recipe-yield-fields{grid-template-columns:1fr 100px}.finance-workspace-head{align-items:flex-start}}
