/* Ficha tecnica de receitas: superficie operacional, densa e responsiva. */
#receitas{padding:28px 32px 40px;}
#receitas .topbar{margin-bottom:16px;align-items:center;}
#receitas .page-title h2{font-size:clamp(34px,3vw,48px);line-height:1.05;}
#receitas .builder-layout{grid-template-columns:minmax(230px,300px) minmax(0,1fr);gap:14px;}
#receitas .builder-card{padding:16px;border-radius:8px;box-shadow:none;}
#receitas .builder-card>h3,#receitas .group-head h3{font-size:18px;}
#receitas .builder-card>p{font-size:11px;line-height:1.4;}
#receitas #masterRecipeList{min-height:440px;padding:0;border:0;background:transparent;}
#receitas .recipe-master-item{min-height:58px;grid-template-columns:28px minmax(0,1fr);padding:6px 10px 6px 4px;border-radius:6px;gap:6px;box-shadow:none;cursor:pointer;content-visibility:auto;contain-intrinsic-size:58px;}
#receitas .recipe-master-item>.drag-handle{display:grid;grid-column:1;grid-row:1;place-items:center;align-self:stretch;width:28px;min-width:28px;min-height:44px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--kc-color-text-muted);font-size:14px;line-height:1;box-shadow:none;cursor:grab;touch-action:none;}
#receitas .recipe-master-item>.drag-handle:hover{background:var(--kc-color-slate-100);color:var(--kc-color-text-secondary);}
#receitas .recipe-master-item>.drag-handle:active{cursor:grabbing;}
#receitas .recipe-master-item>.drag-handle:focus-visible{outline:0;box-shadow:var(--kc-shadow-focus);}
#receitas .recipe-title-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:3px;align-items:center;}
#receitas .recipe-master-title{grid-column:1;min-width:0;font-size:14px;line-height:1.2;}
#receitas .recipe-card-kpis{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;}
#receitas .recipe-master-meta{align-items:center;gap:4px;margin:0;min-width:0;flex:0 1 auto;flex-wrap:nowrap;}
#receitas .meta-pill{padding:3px 6px;border-radius:4px;font-size:9px;}
#receitas .recipe-source-note{margin:0;font-size:9px;line-height:1.2;}

.recipe-category-marker,
.recipe-station-marker,
.recipe-status-marker{display:inline-flex;align-items:center;min-width:0;height:22px;min-height:22px;max-height:22px;font-size:9px;font-weight:var(--kc-font-weight-extrabold);line-height:1;white-space:nowrap;}
.recipe-category-marker{gap:5px;max-width:210px;padding:2px 7px 2px 5px;border:1px solid color-mix(in srgb,var(--recipe-category-color,#64748b) 28%,var(--kc-color-border))!important;border-left:3px solid var(--recipe-category-color,#64748b)!important;border-radius:var(--kc-radius-xs)!important;background:var(--recipe-category-soft,var(--kc-color-slate-50));color:color-mix(in srgb,var(--recipe-category-color,#64748b) 74%,var(--kc-color-slate-900));}
.recipe-category-marker strong{overflow:hidden;font:inherit;text-overflow:ellipsis;white-space:nowrap;}
.recipe-category-dot{flex:0 0 6px;width:6px;height:6px;border-radius:var(--kc-radius-round);background:var(--recipe-category-color,#64748b);}
.recipe-station-marker{gap:4px;padding:2px 4px;color:var(--kc-color-text-secondary);}
.recipe-station-marker svg{flex:0 0 auto;color:var(--kc-color-text-muted);}
.recipe-station-marker span{overflow:hidden;max-width:180px;text-overflow:ellipsis;}
.recipe-status-marker{gap:4px;padding:2px 4px;color:var(--kc-color-text-muted);letter-spacing:.03em;}
.recipe-status-marker>span{flex:0 0 6px;width:6px;height:6px;border-radius:var(--kc-radius-round);background:currentColor;}
.recipe-status-marker.is-active{color:var(--kc-color-success-700);}
.recipe-status-marker.is-test{color:var(--kc-color-warning-700);}
.recipe-status-marker.is-archived{color:var(--kc-color-slate-500);}
button.recipe-category-marker,button.recipe-station-marker,button.recipe-status-marker{font-family:inherit;box-shadow:none;cursor:pointer;}
button.recipe-station-marker,button.recipe-status-marker{border:1px solid transparent!important;border-radius:var(--kc-radius-xs)!important;background:transparent;}
button.recipe-metadata-quick-trigger:hover,button.recipe-metadata-quick-trigger[aria-expanded="true"]{border-color:var(--kc-color-primary-200)!important;background:var(--kc-color-primary-50);}
button.recipe-metadata-quick-trigger:focus-visible{outline:0;box-shadow:var(--kc-shadow-focus);}
.recipe-list-info-row{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;}
.recipe-list-info-row .recipe-source-note{display:flex;align-items:center;flex:0 1 auto;flex-wrap:nowrap;gap:3px;min-width:0;overflow:hidden;}
.recipe-list-info-row .recipe-list-tag{min-height:20px;padding:3px 6px;font-size:9px;white-space:nowrap;}
.recipe-card-kpis>.recipe-cost-summary{flex:0 0 auto;margin:0;}

.recipe-library-tools{display:grid;grid-template-columns:minmax(160px,1.3fr) repeat(4,minmax(0,.7fr));gap:8px;width:100%;max-width:100%;margin:0 0 12px;padding:10px;border:1px solid #d9e2ef;border-radius:7px;background:#f7f9fc;box-sizing:border-box;}
.recipe-mobile-category-filter{display:none;}
.recipe-library-field{min-width:0;}
.recipe-library-field label{display:block;margin:0 0 4px;color:#526176;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;}
.recipe-library-field input,.recipe-library-field select{width:100%!important;min-width:0!important;max-width:100%!important;height:40px;padding:0 10px;border:1px solid #cfd9e6;border-radius:6px;background:#fff;color:#172033;font-size:13px;font-weight:750;box-sizing:border-box;}
.recipe-library-field input:focus,.recipe-library-field select:focus{border-color:#7daaf5;outline:3px solid #e5efff;}
.recipe-filter-select{position:relative;min-width:0;}
.recipe-filter-native{position:absolute!important;width:1px!important;height:1px!important;min-width:1px!important;max-width:1px!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;}
.recipe-filter-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-width:0;height:36px;padding:0 7px;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-xs);background:var(--kc-color-surface);color:var(--kc-color-text);box-shadow:none;}
.recipe-filter-trigger:hover{border-color:var(--kc-color-slate-400);background:var(--kc-color-surface-subtle);}
.recipe-filter-select.is-open .recipe-filter-trigger,.recipe-filter-trigger:focus-visible{border-color:var(--kc-color-primary-300);outline:0;box-shadow:var(--kc-shadow-focus);}
.recipe-filter-chevron{flex:0 0 auto;width:8px;height:8px;margin:0 3px 3px 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .14s ease;}
.recipe-filter-select.is-open .recipe-filter-chevron{margin-top:4px;transform:rotate(225deg);}
.recipe-filter-menu{position:absolute;top:calc(100% + 3px);left:0;right:auto;z-index:120;display:none;width:max-content;min-width:100%;max-width:min(300px,calc(100vw - 24px));max-height:260px;padding:3px;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-lg);overflow:auto;}
.recipe-filter-select.align-end .recipe-filter-menu{right:0;left:auto;}
.recipe-filter-select.is-open .recipe-filter-menu{display:grid;gap:1px;}
#receitas .recipe-filter-option{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:164px;height:30px!important;min-height:30px!important;padding:3px 5px!important;border:1px solid transparent!important;border-radius:var(--kc-radius-xs)!important;background:transparent;color:var(--kc-color-text);text-align:left;box-shadow:none;box-sizing:border-box;}
#receitas .recipe-filter-option:hover,#receitas .recipe-filter-option:focus-visible{border-color:var(--kc-color-primary-200)!important;outline:0;background:var(--kc-color-primary-50);}
.recipe-filter-option[aria-selected="true"]{background:var(--kc-color-slate-50);}
.recipe-filter-check{color:var(--kc-color-primary-700);font-size:13px;font-weight:var(--kc-font-weight-black);}
.recipe-filter-choice{display:inline-flex;align-items:center;min-width:0;gap:5px;min-height:20px;padding:2px 5px;border:1px solid transparent;border-radius:var(--kc-radius-pill);font-size:10px;font-weight:var(--kc-font-weight-extrabold);line-height:1;}
.recipe-filter-choice>span{flex:0 0 7px;width:7px;height:7px;border-radius:var(--kc-radius-round);background:var(--kc-color-slate-400);}
.recipe-filter-choice strong{overflow:hidden;font:inherit;text-overflow:ellipsis;white-space:nowrap;}
.recipe-filter-choice.is-neutral{padding-left:3px;color:var(--kc-color-text-secondary);}
.recipe-filter-choice.is-neutral>span{display:none;}
.recipe-filter-choice.is-station{padding-left:2px;border-color:transparent;background:transparent;color:var(--kc-color-text-secondary);}
.recipe-filter-choice.is-station>span{display:none;}
.recipe-filter-station-icon{flex:0 0 auto;color:var(--kc-color-text-muted);}
.recipe-filter-choice.is-success{border-color:var(--kc-color-success-300);background:var(--kc-color-success-50);color:var(--kc-color-success-800);}
.recipe-filter-choice.is-success>span{background:var(--kc-color-success-600);}
.recipe-filter-choice.is-warning{border-color:var(--kc-color-warning-300);background:var(--kc-color-warning-50);color:var(--kc-color-warning-800);}
.recipe-filter-choice.is-warning>span{background:var(--kc-color-warning-600);}
.recipe-filter-choice.is-danger{border-color:var(--kc-color-danger-300);background:var(--kc-color-danger-50);color:var(--kc-color-danger-800);}
.recipe-filter-choice.is-danger>span{background:var(--kc-color-danger-600);}
.recipe-filter-choice.is-muted{border-color:var(--kc-color-slate-200);background:var(--kc-color-slate-50);color:var(--kc-color-slate-700);}
.recipe-filter-choice.is-tag{border-color:var(--tag-color-border);background:var(--tag-color-soft);color:var(--tag-color);}
.recipe-filter-choice.is-tag>span{background:var(--tag-color);}
.recipe-list-summary{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin:0 0 9px;color:var(--kc-color-text-secondary);font-size:10px;font-weight:var(--kc-font-weight-extrabold);}
.recipe-cost-summary{display:block;margin-top:0;color:var(--kc-color-text-secondary);font-size:9px;font-weight:var(--kc-font-weight-bold);}
.recipe-cost-summary>span{display:flex;align-items:baseline;gap:4px;white-space:nowrap;}
.recipe-cost-summary strong{color:var(--kc-color-text);font-size:10px;}
.recipe-cost-summary .is-pending strong{color:var(--kc-color-warning-700);}
.recipe-task-coverage{display:inline-flex;align-items:center;align-self:center;justify-content:center;gap:4px;height:22px;min-height:22px;max-height:22px;padding:0 7px;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-pill)!important;background:var(--kc-color-surface);color:var(--kc-color-text-muted);font:inherit;font-size:9px;font-weight:var(--kc-font-weight-extrabold);line-height:1;white-space:nowrap;box-shadow:none;}
.recipe-task-coverage svg{width:11px;height:11px;}.recipe-task-coverage.is-configured{border-color:var(--kc-color-success-200)!important;background:var(--kc-color-success-50);color:var(--kc-color-success-700);}.recipe-task-coverage.is-review{border-color:var(--kc-color-danger-300)!important;background:var(--kc-color-danger-50);color:var(--kc-color-danger-700);}.recipe-task-coverage.is-unreviewed{border-color:var(--kc-color-warning-300)!important;background:var(--kc-color-warning-50);color:var(--kc-color-warning-800);font-weight:var(--kc-font-weight-extrabold);opacity:1;}.recipe-task-coverage.is-unreviewed:hover,.recipe-task-coverage.is-unreviewed[aria-expanded="true"]{border-color:var(--kc-color-warning-600)!important;background:var(--kc-color-warning-100);color:var(--kc-color-warning-800);opacity:1;}.recipe-task-coverage.is-not_required{border-color:transparent!important;background:transparent;color:var(--kc-color-text-muted);font-weight:var(--kc-font-weight-bold);}.recipe-task-coverage:focus-visible{outline:0;box-shadow:var(--kc-shadow-focus);opacity:1;}
.recipe-task-quick-menu{position:fixed;z-index:49500;display:flex;width:min(300px,calc(100vw - 24px));max-height:min(200px,calc(100dvh - 24px));flex-direction:column;overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-lg);color:var(--kc-color-text);}
.recipe-task-quick-menu>header{display:flex;align-items:flex-start;justify-content:space-between;flex:0 0 auto;gap:var(--kc-space-3);padding:var(--kc-space-3) var(--kc-space-3) var(--kc-space-2);border-bottom:1px solid var(--kc-color-border);background:var(--kc-color-surface-subtle);}
.recipe-task-quick-menu>header>div{display:grid;min-width:0;gap:2px;}.recipe-task-quick-menu>header small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.035em;text-transform:uppercase;}.recipe-task-quick-menu>header strong{overflow:hidden;font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-black);text-overflow:ellipsis;white-space:nowrap;}
.recipe-task-quick-close{display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;padding:0;border:0;border-radius:var(--kc-radius-sm);background:transparent;color:var(--kc-color-text-muted);box-shadow:none;}.recipe-task-quick-close:hover{background:var(--kc-color-slate-100);color:var(--kc-color-text);}.recipe-task-quick-close svg{width:14px;height:14px;}
.recipe-task-quick-options{display:grid;min-height:0;gap:3px;padding:var(--kc-space-2);overflow-y:auto;overscroll-behavior:contain;}.recipe-task-quick-option{display:grid;width:100%;min-height:54px;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:var(--kc-space-3);padding:8px;border:1px solid transparent;border-radius:var(--kc-radius-md);background:transparent;color:var(--kc-color-text);text-align:left;box-shadow:none;}.recipe-task-quick-option:hover,.recipe-task-quick-option:focus-visible{border-color:var(--kc-color-primary-200);outline:0;background:var(--kc-color-primary-50);}.recipe-task-quick-option>span:last-child{display:grid;min-width:0;gap:2px;}.recipe-task-quick-option strong{font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold);}.recipe-task-quick-option small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-tight);}.recipe-task-quick-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:var(--kc-radius-sm);background:var(--kc-color-primary-100);color:var(--kc-color-primary-700);}.recipe-task-quick-icon.is-muted{background:var(--kc-color-slate-100);color:var(--kc-color-text-secondary);}.recipe-task-quick-icon svg{width:16px;height:16px;}
.recipe-metadata-quick-menu .recipe-task-quick-options{gap:2px;scrollbar-width:thin;scrollbar-color:var(--kc-color-slate-400) var(--kc-color-slate-100);scrollbar-gutter:stable;}
.recipe-metadata-quick-menu .recipe-task-quick-options::-webkit-scrollbar{width:8px;}.recipe-metadata-quick-menu .recipe-task-quick-options::-webkit-scrollbar-track{background:var(--kc-color-slate-100);}.recipe-metadata-quick-menu .recipe-task-quick-options::-webkit-scrollbar-thumb{border:2px solid var(--kc-color-slate-100);border-radius:var(--kc-radius-pill);background:var(--kc-color-slate-400);}
.recipe-metadata-quick-option{height:38px!important;min-height:38px!important;max-height:38px!important;grid-template-columns:minmax(0,1fr) 18px!important;gap:8px!important;padding:4px 6px!important;border-radius:var(--kc-radius-sm)!important;}
.recipe-metadata-quick-option.is-selected{border-color:var(--kc-color-primary-200);background:var(--kc-color-primary-50);}
.recipe-metadata-choice{display:inline-flex;align-items:center;min-width:0;min-height:27px;gap:6px;color:var(--kc-color-text-secondary);font-size:10px;font-weight:var(--kc-font-weight-extrabold);line-height:1;}
.recipe-metadata-choice strong{overflow:hidden;font:inherit;text-overflow:ellipsis;white-space:nowrap;}
.recipe-metadata-choice.is-category{width:max-content;max-width:100%;padding:3px 7px 3px 6px;border:1px solid color-mix(in srgb,var(--recipe-quick-color,#64748b) 28%,var(--kc-color-border));border-left:3px solid var(--recipe-quick-color,#64748b);border-radius:var(--kc-radius-xs);background:var(--recipe-quick-soft,var(--kc-color-slate-50));color:color-mix(in srgb,var(--recipe-quick-color,#64748b) 74%,var(--kc-color-slate-900));}
.recipe-metadata-choice.is-category .recipe-category-dot{background:var(--recipe-quick-color,#64748b);}
.recipe-metadata-choice.is-station svg{flex:0 0 auto;width:14px;height:14px;color:var(--kc-color-text-muted);}
.recipe-metadata-choice.is-status>span{flex:0 0 7px;width:7px;height:7px;border-radius:var(--kc-radius-round);background:currentColor;}
.recipe-metadata-choice.is-status.is-success{color:var(--kc-color-success-700);}.recipe-metadata-choice.is-status.is-warning{color:var(--kc-color-warning-700);}.recipe-metadata-choice.is-status.is-muted{color:var(--kc-color-slate-500);}
.recipe-metadata-quick-check{display:grid;place-items:center;color:var(--kc-color-primary-700);}.recipe-metadata-quick-check svg{width:14px;height:14px;}
.recipe-completeness{display:inline-flex;align-items:center;gap:5px;color:#9a5b00;}
.recipe-completeness.complete{color:#15803d;}

body.recipe-category-drag-active #recipeGroupList .group-tab{position:relative;transition:border-color .14s ease,background-color .14s ease,box-shadow .14s ease,transform .14s ease;}
body.recipe-category-drag-active #recipeGroupList .group-tab:not(.recipe-drop-target){opacity:.78;}
#receitas .recipe-master-item.recipe-category-dragging{opacity:.36;transform:scale(.992);}
#recipeGroupList .group-tab.recipe-drop-target{z-index:2;border-color:var(--entity-color,#2563eb)!important;background:var(--entity-color-soft,#eff6ff)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--entity-color,#2563eb) 18%,transparent)!important;transform:translateX(3px);opacity:1!important;}
#recipeGroupList .group-tab.recipe-drop-target::after{content:"Soltar aqui";position:absolute;right:70px;top:50%;padding:4px 7px;border-radius:999px;background:var(--entity-color,#2563eb);color:#fff;font-size:9px;font-weight:900;line-height:1;transform:translateY(-50%);pointer-events:none;}
#recipeGroupList .group-tab.recipe-drop-saving{pointer-events:none;opacity:.58;}
.recipe-library-notice{position:fixed;right:20px;bottom:20px;z-index:55000;max-width:min(380px,calc(100vw - 32px));padding:11px 14px;border:1px solid #a7dfb8;border-radius:7px;background:#f0fdf4;color:#166534;box-shadow:0 14px 34px rgba(15,23,42,.18);font-size:12px;font-weight:850;line-height:1.35;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .16s ease,transform .16s ease;}
.recipe-library-notice.neutral{border-color:#cbd8e8;background:#f8fafc;color:#334155;}
.recipe-library-notice.visible{opacity:1;transform:translateY(0);}
.recipe-delete-zone{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-5);margin-top:var(--kc-space-6);padding:var(--kc-space-4);border:1px solid var(--kc-color-danger-300);border-radius:var(--kc-radius-md);background:var(--kc-color-danger-50);}
.recipe-delete-zone>div{display:grid;gap:2px;min-width:0;}
.recipe-delete-zone strong{color:var(--kc-color-danger-800);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-black);}
.recipe-delete-zone span{color:var(--kc-color-danger-700);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}
.recipe-delete-zone .kc-button{flex:0 0 auto;}

@media(max-width:1360px){
  .recipe-library-tools{grid-template-columns:repeat(2,minmax(0,1fr));}
  .recipe-library-tools .recipe-library-field:first-child{grid-column:1/-1;}
}

@media (max-width:720px){
  #recipeGroupList .group-tab.recipe-drop-target::after{display:none;}
  .recipe-library-notice{right:16px;bottom:16px;left:16px;max-width:none;text-align:center;}
  #receitas .recipe-title-wrap{grid-template-columns:minmax(0,1fr);}
  #receitas .recipe-card-kpis{grid-column:1;grid-row:auto;justify-content:flex-start;}
  .recipe-list-info-row{grid-row:auto;flex-wrap:wrap;overflow:visible;}
  #receitas .recipe-master-meta{width:100%;flex-wrap:wrap;}
  .recipe-list-info-row .recipe-source-note{flex-wrap:wrap;overflow:visible;}
  .recipe-station-marker span{max-width:120px;}
  .recipe-delete-zone{align-items:stretch;flex-direction:column;}
  .recipe-delete-zone .kc-button{width:100%;}
}

@media(max-width:600px){
  .recipe-library-tools{grid-template-columns:1fr;}
  .recipe-library-tools .recipe-library-field:first-child{grid-column:auto;}
  .recipe-filter-menu,.recipe-filter-select.align-end .recipe-filter-menu{right:auto;left:0;width:100%;max-width:100%;}
  .recipe-task-quick-menu{width:auto;border-radius:var(--kc-radius-xl);box-shadow:0 18px 48px rgba(15,23,42,.24);}
  .recipe-task-quick-menu>header{padding:var(--kc-space-4) var(--kc-space-4) var(--kc-space-3);}
  .recipe-task-quick-options{padding:var(--kc-space-3);padding-bottom:calc(var(--kc-space-3) + env(safe-area-inset-bottom));}
  .recipe-task-quick-option{min-height:60px;}
  .recipe-metadata-quick-menu .recipe-task-quick-options{padding:var(--kc-space-2);padding-bottom:calc(var(--kc-space-2) + env(safe-area-inset-bottom));}
  .recipe-metadata-quick-option{height:42px!important;min-height:42px!important;max-height:42px!important;}
}

@media (prefers-reduced-motion:reduce){
  body.recipe-category-drag-active #recipeGroupList .group-tab,#receitas .recipe-master-item.recipe-category-dragging,.recipe-library-notice{transition:none;}
}

#modalReceita.recipe-sheet-backdrop{position:fixed!important;z-index:50010!important;display:none;align-items:stretch;justify-content:stretch;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;min-height:100dvh;margin:0!important;padding:0!important;background:#f5f7fa;backdrop-filter:none;overflow:hidden;}
#modalReceita.recipe-sheet-backdrop.active{display:flex!important;}
body.recipe-sheet-open #planejamentoProducao,
body.recipe-sheet-open #productionPlanningRoot,
body.recipe-sheet-open .pp-control-menu,
body.recipe-sheet-open .pp-yield-picker-menu,
body.recipe-sheet-open .pp-status-tooltip,
body.recipe-sheet-open .pp-toast-region{visibility:hidden!important;pointer-events:none!important;}
.recipe-sheet{display:flex;align-self:stretch;flex:1 1 auto;flex-direction:column;width:100%;max-width:none;min-width:0;height:auto;min-height:0;max-height:none;margin:0;border:0;border-radius:0;background:#fff;color:#172033;overflow:hidden;}
.recipe-sheet-header{display:flex;align-items:center;justify-content:space-between;width:100%;min-width:0;gap:18px;min-height:76px;padding:12px 24px;border-bottom:1px solid #dce4ee;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.06);box-sizing:border-box;z-index:3;}
.recipe-sheet-title{flex:1 1 0;min-width:0;}
.recipe-sheet-title h3{overflow:hidden;margin:0;color:#0f172a;font-size:22px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap;}
.recipe-sheet-title p{margin:3px 0 0;color:#64748b;font-size:12px;font-weight:750;}
.recipe-save-state{display:block;margin-top:3px;color:#64748b;font-size:10px;font-weight:800;line-height:1.25;}
.recipe-save-state.unsaved{color:#a16207;}
.recipe-save-state.saving{color:#1d4ed8;}
.recipe-save-state.pending{color:#a16207;}
.recipe-save-state.error{color:#b91c1c;}
.recipe-save-state.saved{color:#15803d;}
.recipe-save-notice{position:fixed;top:88px;right:24px;z-index:6;display:flex;align-items:center;gap:9px;max-width:min(360px,calc(100vw - 32px));min-height:44px;padding:9px 13px;border:1px solid #a7dfb8;border-radius:7px;background:#f0fdf4;color:#166534;box-shadow:0 12px 30px rgba(15,23,42,.16);opacity:0;pointer-events:none;transform:translateY(-8px);transition:opacity .18s ease,transform .18s ease;box-sizing:border-box;}
.recipe-save-notice.show{opacity:1;transform:translateY(0);}
.recipe-save-notice>span{display:grid;place-items:center;flex:0 0 auto;width:24px;height:24px;border-radius:50%;background:#16a34a;color:#fff;font-size:14px;font-weight:950;}
.recipe-save-notice strong{font-size:12px;line-height:1.35;}
.recipe-save-notice.error{border-color:#f1b6b6;background:#fff5f5;color:#991b1b;}
.recipe-save-notice.error>span{background:#dc2626;}
.recipe-save-notice.warning{border-color:#f4cf72;background:#fffbeb;color:#854d0e;}
.recipe-save-notice.warning>span{background:#d97706;}
.recipe-sheet-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;}
.recipe-sheet-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 14px;border:1px solid #cfd9e6;border-radius:7px;background:#fff;color:#172033;font-size:13px;font-weight:900;box-shadow:none;}
.recipe-sheet-actions button:hover{background:#f7f9fc;}
.recipe-sheet-actions .primary{border-color:#2563eb;background:#2563eb;color:#fff;}
.recipe-sheet-actions .icon-only{width:42px;padding:0;font-size:19px;}
.recipe-sheet-scroll{flex:1;min-height:0;overflow:auto;background:#f5f7fa;scroll-behavior:smooth;}
.recipe-sheet-content{width:min(1220px,calc(100% - 40px));margin:0 auto;padding:20px 0 48px;}
.recipe-sheet-nav{position:sticky;top:0;z-index:2;display:flex;gap:4px;margin:-1px 0 14px;padding:8px 0;border-bottom:1px solid #dde5ef;background:#f5f7fa;overflow-x:auto;}
.recipe-sheet-nav button{min-height:36px;padding:0 11px;border:0;border-radius:5px;background:transparent;color:#64748b;font-size:12px;font-weight:900;white-space:nowrap;box-shadow:none;}
.recipe-sheet-nav button:hover{background:#e9eef5;color:#172033;}
.recipe-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:8px;border:1px solid #d9e2ef;border-radius:7px;background:#fff;overflow:hidden;}
.recipe-metric{min-width:0;padding:11px 14px;border-right:1px solid #e4eaf1;}
.recipe-metric:last-child{border-right:0;}
.recipe-metric span,.recipe-metric strong,.recipe-metric small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.recipe-metric span{min-height:24px;color:#64748b;font-size:10px;font-weight:900;letter-spacing:.04em;line-height:1.2;text-transform:uppercase;white-space:normal;}
.recipe-metric strong{margin-top:4px;color:#0f172a;font-size:17px;}
.recipe-metric strong em{color:#526176;font-size:.65em;font-style:normal;font-weight:900;}
.recipe-metric small{margin-top:2px;color:#7b8799;font-size:10px;font-weight:750;}
.recipe-metric.warning strong{color:#a16207;}
.recipe-metric.warning small{color:#925b08;}
.recipe-metric.success strong{color:#15803d;}
.recipe-metric.success small{color:#397a50;}
.recipe-metric-yield small{overflow:visible;color:var(--kc-color-text-secondary);line-height:1.35;text-overflow:clip;white-space:normal;}
.recipe-summary-alerts{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 14px;}
.recipe-summary-alerts span{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:27px;padding:4px 9px;border:1px solid #f1d38a;border-radius:999px;background:#fff8dd;color:#815500;font-size:10px;font-weight:850;line-height:1.25;white-space:normal;}
.recipe-summary-alerts span.success{border-color:#b9e5c7;background:#f0fdf4;color:#166534;}
.recipe-summary-alerts svg{flex:0 0 auto;width:13px;height:13px;}
.recipe-sheet-section{margin-top:12px;border:1px solid #d9e2ef;border-radius:7px;background:#fff;overflow:hidden;scroll-margin-top:54px;}
.recipe-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:50px;padding:10px 14px;border-bottom:1px solid #e3e9f1;background:#fbfcfe;}
.recipe-section-head h4{margin:0;color:#172033;font-size:16px;}
.recipe-section-head p{margin:2px 0 0;color:#64748b;font-size:11px;font-weight:750;}
.recipe-section-head button,.recipe-text-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:0 11px;border:1px solid #cbd8e8;border-radius:6px;background:#fff;color:#2459c4;font-size:12px;font-weight:900;box-shadow:none;white-space:nowrap;}
.recipe-section-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.recipe-preparation-time{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 9px;border:1px solid #b9d0f5;border-radius:6px;background:#eef5ff;color:#2459c4;font-size:11px;font-weight:900;white-space:nowrap}
.recipe-preparation-time svg{flex:0 0 auto}
.recipe-preparation-time.pending{border-color:#d8e0ea;background:#f8fafc;color:#64748b}
.recipe-section-body{padding:14px;container-type:inline-size;container-name:recipe-section-body;}
.recipe-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;}
.recipe-field{grid-column:span 4;min-width:0;}
.recipe-field.span-2{grid-column:span 2;}
.recipe-field.span-3{grid-column:span 3;}
.recipe-field.span-6{grid-column:span 6;}
.recipe-field.span-8{grid-column:span 8;}
.recipe-field.span-12{grid-column:1/-1;}
.recipe-field label{display:block;margin:0 0 5px;color:#526176;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;}
.recipe-field input,.recipe-field select,.recipe-field textarea{width:100%;min-height:42px;padding:8px 10px;border:1px solid #cfd9e6;border-radius:6px;background:#fff;color:#172033;font:inherit;font-size:14px;font-weight:700;}
.recipe-field textarea{min-height:76px;resize:vertical;line-height:1.45;}
.recipe-field input:focus,.recipe-field select:focus,.recipe-field textarea:focus,.recipe-table input:focus,.recipe-table select:focus{border-color:#7daaf5;outline:3px solid #e6efff;}
.recipe-field .field-help{display:block;margin-top:4px;color:#7b8799;font-size:9px;font-weight:700;line-height:1.35;}
.recipe-context-select{display:grid;gap:6px;}
.recipe-context-select-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:6px;}
.recipe-context-select-row>button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:42px;padding:0;border:1px solid #cbd8e8;border-radius:6px;background:#f7f9fc;color:#2459c4;box-shadow:none;}
.recipe-context-create{display:grid;grid-template-columns:minmax(0,1fr) auto 36px;gap:5px;align-items:center;padding:6px;border:1px solid #d7e2f1;border-radius:6px;background:#f7f9fc;}
.recipe-context-create input{min-width:0;min-height:36px!important;}
.recipe-context-create button{min-height:36px;padding:0 10px;border:1px solid #2563eb;border-radius:5px;background:#2563eb;color:#fff;font-size:11px;font-weight:900;box-shadow:none;}
.recipe-context-create button.muted{width:36px;padding:0;border-color:#cbd8e8;background:#fff;color:#526176;}
.recipe-inline-warning-final{margin-bottom:10px;padding:9px 11px;border:1px solid #f4ce84;border-radius:6px;background:#fffbeb;color:#8a5200;font-size:10px;font-weight:800;line-height:1.4;}
.recipe-inline-warning-final[hidden]{display:none;}

.recipe-tags-editor{display:grid;gap:8px;padding:9px;border:1px solid #cfd9e6;border-radius:6px;background:#fff;}
.recipe-tags-list{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:28px;}
.recipe-tags-empty{color:#7b8799;font-size:11px;font-weight:700;}
.recipe-tag,.recipe-list-tag{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--tag-color-border,#bdd2f5);border-radius:999px;background:var(--tag-color-soft,#edf4ff);color:var(--tag-color,#2459c4);font-size:10px;font-weight:900;line-height:1;}
.recipe-tag{min-height:28px;padding:3px 4px 3px 9px;}
.recipe-tag button{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--tag-color,#41648f);box-shadow:none;}
.recipe-tag button:hover{background:rgba(255,255,255,.7);color:var(--tag-color,#173f7c);}
.recipe-tag button svg{width:13px;height:13px;}
.recipe-list-tag{padding:4px 7px;}
.recipe-tag-composer{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:7px;}
.recipe-tag-composer input{min-height:38px;}
.recipe-tag-composer .recipe-tag-color{width:42px;height:38px;min-height:38px;padding:3px;border:1px solid #cbd8e8;border-radius:6px;background:#f7f9fc;cursor:pointer;}
.recipe-tag-composer .recipe-tag-color::-webkit-color-swatch-wrapper{padding:0;}
.recipe-tag-composer .recipe-tag-color::-webkit-color-swatch{border:0;border-radius:3px;}
.recipe-tag-composer .recipe-tag-color::-moz-color-swatch{border:0;border-radius:3px;}
.recipe-tag-suggestions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start;padding-top:7px;border-top:1px solid #e4eaf1;}
.recipe-tag-suggestions>span{padding-top:6px;color:#64748b;font-size:9px;font-weight:900;text-transform:uppercase;white-space:nowrap;}
.recipe-tag-suggestions>div{display:flex;flex-wrap:wrap;gap:5px;}
.recipe-tag-suggestions button{min-height:27px;padding:0 9px;border:1px solid var(--tag-color-border,#cfd9e6);border-radius:999px;background:var(--tag-color-soft,#f7f9fc);color:var(--tag-color,#526176);font-size:10px;font-weight:850;box-shadow:none;}
.recipe-tag-suggestions button:hover{filter:saturate(1.15) brightness(.98);}

.recipe-media-layout{display:grid;grid-template-columns:minmax(280px,420px) minmax(0,1fr);gap:14px;}
.recipe-images{width:100%;max-width:420px;min-width:0;}
.recipe-image-main{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1/1;border:1px dashed #c9d5e5;border-radius:7px;background:#f7f9fc;overflow:hidden;}
.recipe-image-main img{width:100%;height:100%;object-fit:cover;}
.recipe-image-adjust{position:absolute;right:var(--kc-space-3);bottom:var(--kc-space-3);z-index:2;display:inline-flex;align-items:center;gap:var(--kc-space-2);min-height:34px;padding:0 var(--kc-space-3);border:1px solid rgba(255,255,255,.78);border-radius:var(--kc-radius-sm);background:rgba(15,23,42,.82);color:var(--kc-color-white);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold);box-shadow:var(--kc-shadow-sm);backdrop-filter:blur(4px);}
.recipe-image-adjust:hover{background:var(--kc-color-slate-900);}
.recipe-image-empty{padding:18px;color:#7b8799;text-align:center;font-size:10px;font-weight:800;}
.recipe-image-add{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;margin-top:8px;}
.recipe-image-add span{color:#64748b;font-size:9px;font-weight:750;line-height:1.35;}
.recipe-image-add button{min-height:38px;padding:0 10px;border-radius:6px;}
.recipe-image-add button:disabled{cursor:not-allowed;opacity:.55;}
.recipe-image-error{margin-top:7px;padding:7px 9px;border:1px solid #fecaca;border-radius:6px;background:#fff1f2;color:#b42318;font-size:10px;font-weight:800;line-height:1.35;}
.recipe-image-thumbs{display:flex;gap:6px;margin-top:8px;overflow-x:auto;}
.recipe-image-thumb{position:relative;flex:0 0 58px;width:58px;aspect-ratio:1/1;border:2px solid transparent;border-radius:6px;background:#eef2f7;overflow:hidden;}
.recipe-image-thumb.principal{border-color:#2563eb;box-shadow:0 0 0 2px #dbeafe;}
.recipe-image-select{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;box-shadow:none;}
.recipe-image-thumb img{display:block;width:100%;height:100%;object-fit:cover;}
.recipe-image-remove{position:absolute;top:3px;right:3px;width:22px;height:22px;padding:0;border:0;border-radius:4px;background:rgba(15,23,42,.78);color:#fff;font-size:13px;}
.recipe-image-crop-editor{display:grid;gap:var(--kc-space-3);margin-top:var(--kc-space-3);padding:var(--kc-space-4);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-md);background:var(--kc-color-primary-50);box-shadow:var(--kc-shadow-xs);}
.recipe-image-crop-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-3);}
.recipe-image-crop-editor>header strong,
.recipe-image-crop-editor>header small{display:block;}
.recipe-image-crop-editor>header strong{color:var(--kc-color-text);font-size:var(--kc-font-size-lg);}
.recipe-image-crop-editor>header small{margin-top:2px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}
.recipe-image-crop-close{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;padding:0;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);color:var(--kc-color-text-secondary);}
.recipe-image-crop-frame{position:relative;display:grid;width:100%;aspect-ratio:1/1;place-items:center;overflow:hidden;border:2px solid var(--kc-color-white);border-radius:var(--kc-radius-sm);background:var(--kc-color-slate-900);box-shadow:0 0 0 1px var(--kc-color-primary-300);cursor:grab;touch-action:none;}
.recipe-image-crop-frame:focus-visible{outline:3px solid var(--kc-color-primary-200);outline-offset:2px;}
.recipe-image-crop-frame.is-dragging{cursor:grabbing;}
.recipe-image-crop-frame img{width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none;}
.recipe-image-crop-frame>span{position:absolute;bottom:var(--kc-space-3);left:50%;padding:var(--kc-space-1) var(--kc-space-3);border-radius:999px;background:rgba(15,23,42,.76);color:var(--kc-color-white);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-bold);white-space:nowrap;pointer-events:none;transform:translateX(-50%);}
.recipe-image-zoom{display:grid;grid-template-columns:auto minmax(0,1fr) 42px;align-items:center;gap:var(--kc-space-3);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold);}
.recipe-image-zoom>span{display:inline-flex;align-items:center;gap:var(--kc-space-2);}
.recipe-image-zoom input{width:100%;accent-color:var(--kc-color-primary-600);}
.recipe-image-zoom output{color:var(--kc-color-primary-700);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-black);text-align:right;}
.recipe-image-crop-editor>footer{display:grid;grid-template-columns:auto 1fr auto auto;gap:var(--kc-space-2);align-items:center;}
.recipe-image-crop-editor>footer .kc-button{min-height:36px;}
.recipe-output-grid{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:10px;align-content:start;}
.recipe-output-grid>.recipe-field{grid-column:span 1;}
.recipe-operational-safety{grid-column:1/-1;padding:12px;border:1px solid #dbe4ef;border-radius:7px;background:#f8fafc}
.recipe-operational-safety-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.recipe-operational-safety h4{display:flex;align-items:center;gap:6px;margin:0;color:#172235;font-size:13px}.recipe-operational-safety p{margin:3px 0 0;color:#66758b;font-size:10px;font-weight:650;line-height:1.4}
.recipe-safety-profiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}
.recipe-safety-profile{position:relative;display:flex;align-items:center;gap:8px;min-height:58px;padding:9px 36px 9px 9px;border:1px solid #d8e1ed;border-radius:6px;background:#fff;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s}
.recipe-safety-profile:hover{border-color:#9bbcf0;background:#f8fbff}.recipe-safety-profile.active{border-color:#72a7f5;background:#edf5ff;box-shadow:0 0 0 2px #dbeafe}
.recipe-safety-profile input{position:absolute;opacity:0;pointer-events:none}.recipe-safety-profile-check{display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;border:2px solid #a8b6ca;border-radius:50%;background:#fff}.recipe-safety-profile.active .recipe-safety-profile-check{border:5px solid #2563eb}
.recipe-safety-profile-copy{display:grid;min-width:0;gap:2px}.recipe-safety-profile-copy b{display:flex;align-items:center;gap:5px;color:#1e293b;font-size:10px}.recipe-safety-profile-copy b em{padding:2px 4px;border-radius:4px;background:#dbeafe;color:#1d4ed8;font-size:7px;font-style:normal;text-transform:uppercase}.recipe-safety-profile-copy small{overflow:hidden;color:#6b7a90;font-size:8px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.recipe-safety-help{position:absolute;right:9px;top:9px;display:grid;place-items:center;width:20px;height:20px;border:1px solid #cad5e3;border-radius:50%;background:#fff;color:#526176;font-size:10px;font-weight:900;cursor:help}.recipe-operational-safety h4 .recipe-safety-help{position:relative;inset:auto;width:18px;height:18px}
.recipe-safety-help::after{content:attr(data-tooltip);position:absolute;z-index:20;right:-8px;bottom:calc(100% + 8px);width:220px;padding:8px 9px;border-radius:5px;background:#172235;color:#fff;font-size:9px;font-weight:650;line-height:1.4;opacity:0;pointer-events:none;transform:translateY(4px);transition:.15s}.recipe-safety-help::before{content:"";position:absolute;z-index:21;right:5px;bottom:calc(100% + 3px);border:5px solid transparent;border-top-color:#172235;opacity:0;transition:.15s}.recipe-safety-help:hover::after,.recipe-safety-help:hover::before,.recipe-safety-help:focus::after,.recipe-safety-help:focus::before{opacity:1;transform:none}
.recipe-operational-safety-note{padding:7px 9px;border-radius:5px;background:#fff8df;color:#765600!important}
.recipe-secondary-list{grid-column:1/-1;display:grid;gap:6px;}
.recipe-secondary-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 120px 34px;gap:6px;align-items:end;padding:8px;border:1px solid #e0e7ef;border-radius:6px;background:#fbfcfe;}
.recipe-secondary-row input,.recipe-secondary-row select{width:100%;height:38px;border:1px solid #cfd9e6;border-radius:5px;padding:0 8px;font-size:13px;}
.recipe-delete-row{width:34px;height:36px;padding:0;border:1px solid #f0b8b8!important;border-radius:5px!important;background:#fff!important;color:#b91c1c!important;font-size:15px!important;}

.recipe-table-wrap{overflow:auto;}
.recipe-table{width:100%;min-width:840px;border-collapse:collapse;table-layout:fixed;}
.recipe-table th{padding:7px 7px;border-bottom:1px solid #d9e2ef;background:#f4f7fb;color:#526176;font-size:9px;font-weight:900;text-align:left;text-transform:uppercase;}
.recipe-table td{padding:5px 6px;border-bottom:1px solid #e5ebf2;vertical-align:middle;}
.recipe-ingredient-control{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:5px;align-items:stretch;}
.recipe-ingredient-control.is-recipe{grid-template-columns:minmax(0,1fr) 34px;}
.recipe-ingredient-select{display:flex;align-items:center;width:100%;min-height:36px;padding:4px 7px;border:1px solid #cfd9e6;border-radius:6px;background:#fff;color:#172033;text-align:left;box-shadow:none;}
.recipe-ingredient-select.has-supporting-text{display:grid;}
.recipe-ingredient-select:hover{border-color:#8eb2e9;background:#f8fbff;}
.recipe-component-name{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--kc-space-2);min-width:0;width:100%;}
.recipe-component-name>b,.recipe-component-name>strong{min-width:0;color:var(--kc-color-text);font-size:var(--kc-font-size-md);font-weight:var(--kc-font-weight-extrabold);line-height:1.15;overflow-wrap:anywhere;}
.recipe-component-base{min-height:20px;padding:2px var(--kc-space-2);border-color:var(--kc-color-border);background:var(--kc-color-surface-muted);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);white-space:nowrap;}
.recipe-component-type{flex:0 0 auto;gap:var(--kc-space-1);min-height:22px;padding:var(--kc-space-1) var(--kc-space-3);font-size:var(--kc-font-size-2xs);white-space:nowrap;}
.recipe-component-type svg{width:var(--kc-icon-size-sm);height:var(--kc-icon-size-sm);}
.recipe-component-type.is-ingredient{border-color:var(--kc-color-success-300);background:var(--kc-color-success-50);color:var(--kc-color-success-800);}
.recipe-component-type.is-recipe{border-color:var(--kc-color-primary-200);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);}
.recipe-component-type.is-compact{width:24px;min-width:24px;min-height:24px;padding:0;justify-content:center;border-radius:5px;}
.recipe-ingredient-select small{margin-top:1px;color:#718096;font-size:8px;font-weight:750;line-height:1.15;overflow-wrap:anywhere;}
.recipe-ingredient-edit,.recipe-picker-edit{display:grid;place-items:center;width:34px;min-width:34px;padding:0;border:1px solid #cfd9e6;border-radius:6px;background:#fff;color:#526176;box-shadow:none;}
.recipe-ingredient-edit:hover,.recipe-picker-edit:hover{border-color:#8eb2e9;background:#edf4ff;color:#1d4ed8;}
.recipe-ingredient-edit:disabled{cursor:not-allowed;opacity:.35;}
.recipe-picker-backdrop{position:fixed;inset:0;z-index:51000;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.52);backdrop-filter:blur(2px);}
.recipe-picker{display:flex;flex-direction:column;width:min(600px,100%);max-height:min(680px,calc(100dvh - 36px));border:1px solid #d7e0eb;border-radius:8px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.25);overflow:hidden;}
.recipe-picker header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #e3e9f1;}
.recipe-picker h4{margin:0;color:#172033;font-size:19px;}
.recipe-picker p{margin:3px 0 0;color:#64748b;font-size:10px;font-weight:750;}
.recipe-picker header>button{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:1px solid #cfd9e6;border-radius:6px;background:#fff;color:#526176;box-shadow:none;}
.recipe-picker-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 16px;border-bottom:1px solid #e3e9f1;background:#f8fafc;}
.recipe-picker-search{min-width:0;}
.recipe-picker-search input{width:100%;height:42px;padding:0 12px;border:1px solid #c7d4e4;border-radius:6px;background:#fff;color:#172033;font-size:14px;font-weight:750;}
.recipe-picker-search input:focus{border-color:#7daaf5;outline:3px solid #e6efff;}
.recipe-picker-create{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:0 12px;border:1px solid #2563eb;border-radius:6px;background:#2563eb;color:#fff;font-size:11px;font-weight:900;box-shadow:none;white-space:nowrap;}
.recipe-picker-legend{grid-column:1/-1;display:flex;align-items:center;gap:var(--kc-space-2);min-height:36px;}
.recipe-picker-filter{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);color:var(--kc-color-text-muted);box-shadow:none;opacity:.48;transition:background-color var(--kc-duration-fast),border-color var(--kc-duration-fast),color var(--kc-duration-fast),opacity var(--kc-duration-fast),transform var(--kc-duration-fast);}
.recipe-picker-filter svg{width:var(--kc-icon-size-md);height:var(--kc-icon-size-md);}
.recipe-picker-filter:hover{opacity:.8;transform:translateY(-1px);}
.recipe-picker-filter:focus-visible{outline:3px solid var(--kc-color-primary-100);outline-offset:2px;}
.recipe-picker-filter.is-active{opacity:1;}
.recipe-picker-filter.is-ingredient.is-active{border-color:var(--kc-color-success-300);background:var(--kc-color-success-50);color:var(--kc-color-success-800);}
.recipe-picker-filter.is-recipe.is-active{border-color:var(--kc-color-primary-200);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);}
.recipe-picker-results{display:grid;flex:1 1 auto;gap:4px;min-height:120px;padding:8px 16px 12px;overflow:auto;contain:layout style;}
.recipe-picker-option-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:4px;content-visibility:auto;contain-intrinsic-size:44px;}
.recipe-picker-option-row.is-recipe{grid-template-columns:minmax(0,1fr);}
.recipe-picker-option{display:flex;align-items:center;gap:var(--kc-space-2);min-height:40px;padding:5px 9px;border:1px solid #dbe3ed;border-radius:6px;background:#fff;color:#172033;text-align:left;box-shadow:none;}
.recipe-picker-option.has-supporting-text{min-height:44px;}
.recipe-picker-option:hover,.recipe-picker-option:focus-visible{border-color:#8eb2e9;background:#edf4ff;outline:0;}
.recipe-picker-option-row.is-selected .recipe-picker-option{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50);box-shadow:inset 0 0 0 1px var(--kc-color-primary-200);}
.recipe-picker-check{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border:2px solid var(--kc-color-border-strong);border-radius:5px;background:var(--kc-color-surface);color:var(--kc-color-white);font-size:13px;font-weight:var(--kc-font-weight-extrabold);line-height:1;}
.recipe-picker-option-row.is-selected .recipe-picker-check{border-color:var(--kc-color-primary-600);background:var(--kc-color-primary-600);}
.recipe-picker-option-content{display:grid;min-width:0;width:100%;}
.recipe-picker-option-title{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--kc-space-2);min-width:0;width:100%;}
.recipe-picker-option-title>b{min-width:0;color:var(--kc-color-text);font-size:var(--kc-font-size-lg);font-weight:var(--kc-font-weight-extrabold);line-height:1.15;overflow-wrap:anywhere;}
.recipe-picker-option small{margin-top:1px;color:#64748b;font-size:9px;font-weight:750;line-height:1.15;overflow-wrap:anywhere;}
.recipe-picker-option-row.is-disabled{opacity:.58;}
.recipe-picker-option:disabled{cursor:not-allowed;}
.recipe-picker-option:disabled:hover{border-color:var(--kc-color-border);background:var(--kc-color-surface);}
.recipe-picker-edit{height:100%;min-height:44px;}
.recipe-picker-empty{padding:30px 12px;color:#718096;font-size:12px;font-weight:800;text-align:center;}
.recipe-picker-result-status{padding:7px 4px 3px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);text-align:center;}
.recipe-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);padding:var(--kc-space-3) var(--kc-space-4);border-top:1px solid var(--kc-color-border);background:var(--kc-color-surface);box-shadow:0 -8px 18px rgba(15,23,42,.05);}
.recipe-picker-footer>span{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-bold);}
.recipe-picker-footer>div{display:flex;gap:var(--kc-space-2);}
.recipe-picker-footer .kc-button{min-height:40px;}
body.recipe-product-editor-open #modalProdutoForm{z-index:52000!important;}
.recipe-table th:nth-child(1){width:27%;}.recipe-table th:nth-child(2){width:17%;}.recipe-table th:nth-child(3){width:10%;}.recipe-table th:nth-child(4){width:13%;}.recipe-table th:nth-child(5){width:16%;}.recipe-table th:nth-child(6){width:11%;}.recipe-table th:nth-child(7){width:40px;}
.recipe-table input,.recipe-table select{width:100%;height:36px;padding:0 8px;border:1px solid #cfd9e6;border-radius:5px;background:#fff;color:#172033;font-size:13px;font-weight:700;}
.recipe-table-output{min-height:34px;padding:4px 6px;border-radius:5px;background:#f5f7fa;color:#334155;font-size:10px;font-weight:800;line-height:1.2;}
.recipe-table-output small{display:block;margin-top:2px;color:#7b8799;font-size:8px;}
.recipe-table-output.warning{background:#fffbeb;color:#965a00;}
.recipe-table-output.success{background:#f0fdf4;color:#166534;}
.recipe-ingredient-help{margin-top:9px;color:#64748b;font-size:9px;font-weight:750;line-height:1.4;}
.recipe-component-guidance{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--kc-space-3);min-width:0;margin:0 0 var(--kc-space-4);padding:var(--kc-space-4)!important;}
.recipe-component-guidance__head{display:flex;align-items:flex-start;gap:var(--kc-space-3);}
.recipe-component-guidance__head>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:var(--kc-radius-md);background:var(--kc-color-warning-100);color:var(--kc-color-warning-800);font-weight:var(--kc-font-weight-black);}
.recipe-component-guidance__head strong,.recipe-component-guidance__head p{display:block;margin:0;}
.recipe-component-guidance__head strong{font-size:var(--kc-font-size-md);line-height:var(--kc-line-height-tight);}
.recipe-component-guidance__head p{margin-top:var(--kc-space-1);font-size:var(--kc-font-size-xs);line-height:var(--kc-line-height-body);}
.recipe-component-guidance__list{display:grid;gap:var(--kc-space-2);min-width:0;}
.recipe-component-guidance__item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--kc-space-3);min-width:0;padding:var(--kc-space-3);border:1px solid var(--kc-color-warning-surface-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);color:var(--kc-color-text);}
.recipe-component-guidance__item strong,.recipe-component-guidance__item small{display:block;}
.recipe-component-guidance__item strong{font-size:var(--kc-font-size-sm);line-height:var(--kc-line-height-tight);}
.recipe-component-guidance__item small{margin-top:var(--kc-space-1);color:var(--kc-color-warning-800);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-bold);line-height:var(--kc-line-height-body);}
.recipe-component-guidance__item p{margin:var(--kc-space-2) 0 0;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs);line-height:var(--kc-line-height-body);}
.recipe-component-guidance__item p b{color:var(--kc-color-text);font-weight:var(--kc-font-weight-black);}
.recipe-component-guidance__item>.kc-button{white-space:normal;}
.recipe-direct-parts{display:grid;gap:var(--kc-space-4);}
.recipe-direct-part{min-width:0;overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);}
.recipe-direct-part>header{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:var(--kc-space-3);min-height:54px;padding:var(--kc-space-2) var(--kc-space-3);border-bottom:1px solid var(--kc-color-border);background:var(--kc-color-primary-50);}
.recipe-part-title{display:block;min-width:0;margin:0;}
.recipe-part-title>input{min-width:0;width:min(100%,420px);height:32px;padding:0 var(--kc-space-2);border:1px solid transparent;border-radius:var(--kc-radius-xs);background:transparent;color:var(--kc-color-primary-800);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.025em;box-shadow:none;}
.recipe-part-title>input:hover{border-color:var(--kc-color-primary-200);background:rgba(255,255,255,.72);}
.recipe-part-title>input:focus{border-color:var(--kc-color-primary-400);outline:3px solid var(--kc-color-primary-100);background:var(--kc-color-surface);}
.recipe-part-count{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-bold);white-space:nowrap;}
.recipe-part-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--kc-space-2);}
.recipe-direct-part .recipe-table-wrap{overflow:auto;}
.recipe-direct-part .recipe-table{border:0;}
.recipe-direct-part .recipe-table th:first-child,.recipe-direct-part .recipe-table td:first-child{padding-left:var(--kc-space-3);}
.recipe-direct-part .recipe-table th:last-child,.recipe-direct-part .recipe-table td:last-child{padding-right:var(--kc-space-3);}
.recipe-part-empty-row .recipe-ingredient-help{margin:0;padding:var(--kc-space-4);text-align:center;}
.recipe-process-part{padding-bottom:0;}
.recipe-part-steps{display:grid;gap:7px;padding:var(--kc-space-3);}
.recipe-process-part-footer{display:flex;justify-content:flex-end;padding:0 var(--kc-space-3) var(--kc-space-3);}
.recipe-step-list-footer{display:flex;align-items:center;flex-wrap:wrap;gap:var(--kc-space-2);margin-top:var(--kc-space-3);}
.recipe-step-list-footer>.recipe-parts-toolbar{margin-top:0;}
.recipe-step-bottom-add{min-width:104px;}
.recipe-parts-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:var(--kc-space-2);margin-top:var(--kc-space-3);}
.recipe-parts-toolbar>small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-bold);}
.recipe-parts-trigger{display:inline-flex;align-items:center;justify-content:center;gap:var(--kc-space-2);min-height:34px;padding:0 var(--kc-space-3);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-sm);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold);box-shadow:none;}
.recipe-parts-trigger:hover{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-100);}

.recipe-preparation-section{background:var(--kc-color-surface-section);}
.recipe-preparation-section>.recipe-section-head{background:var(--kc-color-surface-card);}
.recipe-preparation-body{background:var(--kc-color-surface-section);}
.recipe-steps{display:grid;gap:7px;}
.recipe-step{position:relative;display:grid;gap:var(--kc-space-3);padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface-card);box-shadow:var(--kc-shadow-surface-card);transition:border-color var(--kc-duration-fast),background-color var(--kc-duration-fast),box-shadow var(--kc-duration-fast);}
.recipe-step.phase-preparation{border-left:3px solid #2563eb}.recipe-step.phase-cooking{border-left:3px solid #15803d}.recipe-step.phase-finishing{border-left:3px solid #7e22ce}.recipe-step.phase-storage{border-left:3px solid #b45309}.recipe-step.phase-note{border-left:3px solid #64748b;background:#f8fafc}
.recipe-step:focus-within{border-color:var(--kc-color-primary-300);box-shadow:var(--kc-shadow-focus),var(--kc-shadow-sm);}
.recipe-step.is-new{border-color:var(--kc-color-border-new);background:var(--kc-color-surface-new);box-shadow:inset 0 0 0 1px var(--kc-color-border-new),var(--kc-shadow-focus),var(--kc-shadow-sm);}
.recipe-step.is-new .recipe-step-description textarea{border-color:var(--kc-color-primary-300);}
.recipe-step.is-just-moved{border-color:var(--kc-color-primary-500);background:var(--kc-color-primary-50);box-shadow:0 0 0 3px var(--kc-color-primary-100),var(--kc-shadow-sm);}
.recipe-step.is-just-moved::after{content:"Nova posição";position:absolute;z-index:2;right:var(--kc-space-3);bottom:var(--kc-space-3);padding:3px 7px;border-radius:var(--kc-radius-pill);background:var(--kc-color-primary-700);color:var(--kc-color-white);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);pointer-events:none;}
.recipe-step-toolbar{display:grid;grid-template-columns:34px minmax(150px,1fr) auto auto 36px;align-items:center;gap:var(--kc-space-2);}
.recipe-step-number{display:flex;align-items:center;justify-content:center;width:30px;height:36px;border-radius:5px;background:#edf3fb;color:#30527c;font-size:11px;font-weight:900;}
.recipe-step.phase-note .recipe-step-number{border-radius:50%;background:#e2e8f0;color:#334155;font-family:Georgia,serif;font-size:14px;font-style:italic}
.recipe-step select,.recipe-step input,.recipe-step textarea{width:100%;min-height:38px;border:1px solid var(--kc-color-border-field);border-radius:5px;background:var(--kc-color-surface-field);padding:7px 8px;font-size:13px;font-weight:700;}
.recipe-step select:hover,.recipe-step input:hover,.recipe-step textarea:hover{border-color:var(--kc-color-primary-300);}
.recipe-step-description{display:grid;gap:var(--kc-space-1);min-width:0;margin:0;}
.recipe-step-description>span{color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.04em;text-transform:uppercase;}
.recipe-step textarea{height:56px;min-height:56px;max-height:260px;resize:vertical;overflow:auto;line-height:1.45;transition:min-height var(--kc-duration-fast),border-color var(--kc-duration-fast),box-shadow var(--kc-duration-fast);}
.recipe-step textarea:focus{min-height:108px;}
.recipe-step-order{display:flex;gap:var(--kc-space-1);}
.recipe-step-order button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface-subtle);color:var(--kc-color-text-secondary);box-shadow:none;}
.recipe-step-order button:not(:disabled):hover,.recipe-step-order button:not(:disabled):focus-visible{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);}
.recipe-step-order button:disabled{cursor:not-allowed;opacity:.25;}
.recipe-step-order svg{width:13px;height:13px;}
.recipe-step-quick-meta{display:grid;grid-template-columns:96px auto;align-items:center;gap:var(--kc-space-2);min-width:0;}
.recipe-step-time-field{display:block;min-width:0;margin:0;}
.recipe-step-time-control{display:grid;grid-template-columns:minmax(0,1fr) 34px;overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);}
.recipe-step-time-control .recipe-step-time{min-width:0;border:0;border-radius:0;outline:0;}
.recipe-step-time-control:focus-within{border-color:var(--kc-color-primary-400);box-shadow:var(--kc-shadow-focus);}
.recipe-step-time-control>b{display:flex;align-items:center;justify-content:center;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);}
.recipe-step-image-control{display:flex;align-items:center;gap:var(--kc-space-2);min-width:0;min-height:38px;}
.recipe-step-image-add{display:inline-flex;align-items:center;justify-content:center;gap:var(--kc-space-2);min-height:38px;padding:0 var(--kc-space-3);border:1px dashed var(--kc-color-primary-300);border-radius:var(--kc-radius-sm);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);white-space:nowrap;box-shadow:none;}
.recipe-step-image-add:hover,.recipe-step-image-add:focus-visible{border-style:solid;background:var(--kc-color-primary-100);}
.recipe-step-image-control figure{position:relative;width:86px;aspect-ratio:4/3;margin:0;overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface-muted);}
.recipe-step-image-control figure img{display:block;width:100%;height:100%;object-fit:cover;}
.recipe-step-image-control figure button{position:absolute;top:4px;right:4px;display:grid;width:24px;height:24px;place-items:center;padding:0;border:0;border-radius:var(--kc-radius-round);background:rgba(15,23,42,.78);color:#fff;font-size:15px;line-height:1;box-shadow:none;}
.recipe-step-quick-meta .recipe-step-image-control figure{width:50px;height:38px;aspect-ratio:auto;}
.recipe-step-image-control .recipe-image-error{max-width:360px;margin:0;}
.recipe-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.recipe-preparation-texts-backdrop{position:absolute;z-index:125;inset:0;display:grid;place-items:center;padding:var(--kc-space-5);background:rgba(15,23,42,.56);}
.recipe-preparation-texts-backdrop[hidden]{display:none;}
.recipe-preparation-texts{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(760px,calc(100% - 24px));max-height:min(720px,calc(100dvh - 48px));overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-modal);}
.recipe-preparation-texts-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-4);padding:var(--kc-space-5);border-bottom:1px solid var(--kc-color-border);}
.recipe-preparation-texts-header h4{margin:0;color:var(--kc-color-text);font-size:var(--kc-font-size-xl);font-weight:var(--kc-font-weight-black);}
.recipe-preparation-texts-header p{margin:var(--kc-space-1) 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);line-height:1.4;}
.recipe-preparation-texts-body{min-height:0;overflow:auto;padding:var(--kc-space-4) var(--kc-space-5);}
.recipe-preparation-text-list,.recipe-preparation-text-manager{display:grid;gap:var(--kc-space-2);}
.recipe-preparation-text-option{display:grid;grid-template-columns:112px minmax(0,1fr) 24px;align-items:center;gap:var(--kc-space-3);width:100%;min-height:54px;padding:var(--kc-space-3) var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);color:var(--kc-color-text);text-align:left;box-shadow:none;}
.recipe-preparation-text-option:hover{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50);}
.recipe-preparation-text-option:focus-visible{outline:0;box-shadow:var(--kc-shadow-focus);}
.recipe-preparation-text-option>span{width:max-content;padding:3px 7px;border-radius:var(--kc-radius-pill);background:var(--kc-color-surface-muted);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);text-transform:uppercase;}
.recipe-preparation-text-option>strong{font-size:var(--kc-font-size-sm);line-height:1.35;}
.recipe-preparation-text-option>svg{color:var(--kc-color-primary);}
.recipe-preparation-text-edit{display:grid;grid-template-columns:28px 130px minmax(0,1fr) 36px;align-items:start;gap:var(--kc-space-2);padding:var(--kc-space-2);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface-subtle);}
.recipe-preparation-text-edit>span{display:grid;width:28px;height:38px;place-items:center;border-radius:var(--kc-radius-sm);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-black);}
.recipe-preparation-text-edit select,.recipe-preparation-text-edit textarea{width:100%;min-height:38px;padding:var(--kc-space-2) var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);color:var(--kc-color-text);font:inherit;font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold);}
.recipe-preparation-text-edit textarea{min-height:52px;resize:vertical;line-height:1.35;}
.recipe-preparation-text-edit .recipe-delete-row{width:36px;height:38px;}
.recipe-preparation-text-add{justify-self:start;margin-top:var(--kc-space-2);}
.recipe-preparation-texts-empty{padding:var(--kc-space-6);border:1px dashed var(--kc-color-border-strong);border-radius:var(--kc-radius-md);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);text-align:center;}
.recipe-preparation-texts-footer{display:flex;justify-content:flex-end;gap:var(--kc-space-2);padding:var(--kc-space-4) var(--kc-space-5);border-top:1px solid var(--kc-color-border);background:var(--kc-color-surface-subtle);}
.recipe-print-choice-backdrop{position:absolute;z-index:140;inset:0;display:grid;place-items:center;padding:var(--kc-space-5);background:rgba(15,23,42,.58);backdrop-filter:blur(2px);}.recipe-print-choice-backdrop[hidden]{display:none;}.recipe-print-choice{width:min(620px,calc(100% - 24px));overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-xl);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-modal);}.recipe-print-choice>header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-4);padding:var(--kc-space-5);border-bottom:1px solid var(--kc-color-border);}.recipe-print-choice h4{margin:0;color:var(--kc-color-text);font-size:var(--kc-font-size-2xl);font-weight:var(--kc-font-weight-black);}.recipe-print-choice p{margin:var(--kc-space-2) 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}.recipe-print-choice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-3);padding:var(--kc-space-5);}.recipe-print-choice-options>button{display:grid;justify-items:start;gap:var(--kc-space-2);min-height:132px;padding:var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);color:var(--kc-color-text);font:inherit;text-align:left;box-shadow:var(--kc-shadow-xs);}.recipe-print-choice-options>button:hover,.recipe-print-choice-options>button:focus-visible{border-color:var(--kc-color-primary-400);outline:0;box-shadow:var(--kc-shadow-focus);}.recipe-print-choice-options>button.is-simulated{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50);}.recipe-print-choice-options>button>span{display:grid;width:38px;height:38px;place-items:center;border-radius:var(--kc-radius-sm);background:var(--kc-color-surface-muted);color:var(--kc-color-primary-700);}.recipe-print-choice-options>button>strong{font-size:var(--kc-font-size-md);font-weight:var(--kc-font-weight-extrabold);}.recipe-print-choice-options>button>small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold);}
.recipe-linked-yield-backdrop{position:absolute;z-index:130;inset:0;display:grid;place-items:center;padding:var(--kc-space-5);background:rgba(15,23,42,.58);backdrop-filter:blur(2px);}
.recipe-linked-yield-backdrop[hidden]{display:none;}
.recipe-linked-yield-modal{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(720px,calc(100% - 24px));max-height:min(720px,calc(100dvh - 48px));overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-modal);}
.recipe-linked-yield-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-4);padding:var(--kc-space-5);border-bottom:1px solid var(--kc-color-border);}
.recipe-linked-yield-header h4{margin:var(--kc-space-2) 0 0;color:var(--kc-color-text);font-size:var(--kc-font-size-xl);font-weight:var(--kc-font-weight-black);}
.recipe-linked-yield-header p{margin:var(--kc-space-1) 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);}
.recipe-linked-yield-body{display:grid;gap:var(--kc-space-4);min-height:0;padding:var(--kc-space-4) var(--kc-space-5);overflow:auto;}
.recipe-linked-yield-primary{display:grid;grid-template-columns:minmax(180px,1fr) minmax(120px,.45fr) minmax(120px,.45fr);align-items:end;gap:var(--kc-space-3);padding:var(--kc-space-4);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-md);background:var(--kc-color-primary-50);}
.recipe-linked-yield-primary>div b,.recipe-linked-yield-secondary header b{display:block;color:var(--kc-color-text);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-extrabold);}
.recipe-linked-yield-primary>div small,.recipe-linked-yield-secondary header small{display:block;margin-top:2px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);}
.recipe-linked-yield-primary label>span,.recipe-linked-yield-row label>span{display:block;margin-bottom:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);text-transform:uppercase;}
.recipe-linked-yield-primary input,.recipe-linked-yield-primary select,.recipe-linked-yield-row input,.recipe-linked-yield-row select{width:100%;height:40px;padding:0 var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);color:var(--kc-color-text);font:inherit;font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-bold);}
.recipe-linked-yield-primary input:focus,.recipe-linked-yield-primary select:focus,.recipe-linked-yield-row input:focus,.recipe-linked-yield-row select:focus{border-color:var(--kc-color-primary-400);outline:3px solid var(--kc-color-primary-100);}
.recipe-linked-yield-secondary{display:grid;gap:var(--kc-space-3);}
.recipe-linked-yield-secondary>header{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);}
.recipe-linked-yield-list{display:grid;gap:var(--kc-space-2);}
.recipe-linked-yield-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(110px,.45fr) minmax(110px,.45fr) 36px;align-items:end;gap:var(--kc-space-2);padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface-subtle);}
.recipe-linked-yield-row .recipe-delete-row{width:36px;height:40px;}
.recipe-linked-yield-empty{padding:var(--kc-space-5);border:1px dashed var(--kc-color-border-strong);border-radius:var(--kc-radius-md);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);text-align:center;}
.recipe-linked-yield-error{margin:0;padding:var(--kc-space-3);border:1px solid var(--kc-color-danger-200);border-radius:var(--kc-radius-sm);background:var(--kc-color-danger-50);color:var(--kc-color-danger-700);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold);}
.recipe-linked-yield-footer{display:flex;justify-content:flex-end;gap:var(--kc-space-2);padding:var(--kc-space-4) var(--kc-space-5);border-top:1px solid var(--kc-color-border);background:var(--kc-color-surface-subtle);}
.recipe-scheduled-tasks .recipe-section-body{display:grid;gap:var(--kc-space-4);}
.recipe-task-section-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:var(--kc-space-2);}
.recipe-task-guidance{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:var(--kc-space-3);padding:var(--kc-space-3);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-md);background:var(--kc-color-primary-50);color:var(--kc-color-primary-800);}
.recipe-task-guidance>div{display:grid;place-items:center;width:36px;height:36px;border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);color:var(--kc-color-primary-600);}
.recipe-task-guidance svg{width:var(--kc-icon-size-sm);height:var(--kc-icon-size-sm);}
.recipe-task-guidance p{margin:0;font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}
.recipe-task-guidance strong{font-weight:var(--kc-font-weight-extrabold);}
.recipe-task-template-list{display:grid;gap:var(--kc-space-4);}
.recipe-task-template{overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-xs);transition:border-color var(--kc-duration-fast) var(--kc-ease-standard),opacity var(--kc-duration-fast) var(--kc-ease-standard);}
.recipe-task-template:focus-within{border-color:var(--kc-color-primary-300);box-shadow:0 0 0 3px var(--kc-color-primary-100);}
.recipe-task-template.is-inactive{opacity:.62;}
.recipe-task-template-head{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);padding:var(--kc-space-3) var(--kc-space-4);border-bottom:1px solid var(--kc-color-border);background:var(--kc-color-surface-subtle);}
.recipe-task-template.is-collapsed .recipe-task-template-head{border-bottom:0;}
.recipe-task-template-toggle{display:flex;align-items:center;flex:1 1 auto;min-width:0;gap:var(--kc-space-3);padding:2px;border:0;border-radius:var(--kc-radius-sm);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;}
.recipe-task-template-toggle:hover .recipe-task-template-copy strong{color:var(--kc-color-primary-700);}
.recipe-task-template-toggle:focus-visible{outline:0;box-shadow:var(--kc-shadow-focus);}
.recipe-task-template-copy{display:grid;min-width:0;gap:2px;}
.recipe-task-template-head strong{overflow:hidden;color:var(--kc-color-text);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-extrabold);text-overflow:ellipsis;white-space:nowrap;}
.recipe-task-template-head small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);}
.recipe-task-number{display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;border-radius:var(--kc-radius-sm);background:var(--kc-color-primary-100);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-black);}
.recipe-task-template-caret{display:grid;place-items:center;flex:0 0 auto;width:24px;height:24px;margin-left:auto;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-lg);font-weight:var(--kc-font-weight-black);line-height:1;transition:transform var(--kc-duration-fast) var(--kc-ease-standard);}
.recipe-task-template.is-expanded .recipe-task-template-caret{transform:rotate(180deg);}
.recipe-task-template-panel[hidden]{display:none;}
.recipe-task-template-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--kc-space-2);margin-left:auto;}.recipe-task-order-actions .kc-button--icon{width:36px;height:36px;min-height:36px;padding:0;font-size:var(--kc-font-size-md);font-weight:var(--kc-font-weight-black);}.recipe-task-order-actions .kc-button--icon:disabled{opacity:.35;cursor:not-allowed;}
.recipe-task-active{display:inline-flex;align-items:center;gap:var(--kc-space-1);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold);white-space:nowrap}.recipe-task-active input{width:18px;height:18px;margin:0;accent-color:var(--kc-color-primary)}
.recipe-task-remove{flex:0 0 auto;width:36px;min-width:36px;padding:0!important;color:var(--kc-color-danger-700)!important;}
.recipe-task-remove:hover{background:var(--kc-color-danger-50)!important;}
.recipe-task-template-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--kc-space-3);padding:var(--kc-space-4);}
.recipe-task-context-panel{grid-column:1/-1;overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface-subtle)}
.recipe-task-context-panel>header{display:flex;align-items:baseline;justify-content:space-between;gap:var(--kc-space-3);padding:var(--kc-space-3);border-bottom:1px solid var(--kc-color-border);background:var(--kc-color-primary-50)}
.recipe-task-context-panel>header strong{color:var(--kc-color-primary-800);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-extrabold)}.recipe-task-context-panel>header span{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);text-align:right}
.recipe-task-context-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--kc-space-3);padding:var(--kc-space-3)}
.recipe-task-field{display:block;grid-column:span 4;min-width:0;}
.recipe-task-field.span-3{grid-column:span 3;}.recipe-task-field.span-4{grid-column:span 4;}.recipe-task-field.span-6{grid-column:span 6;}.recipe-task-field.span-8{grid-column:span 8;}.recipe-task-field.span-12{grid-column:1/-1;}
.recipe-task-field>span{display:block;margin-bottom:var(--kc-space-1);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.035em;text-transform:uppercase;}
.recipe-task-field input,.recipe-task-field select,.recipe-task-field textarea{width:100%;min-height:42px;padding:var(--kc-space-2) var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);color:var(--kc-color-text);font:inherit;font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-bold);}
.recipe-task-field textarea{min-height:74px;resize:vertical;line-height:var(--kc-line-height-body);}
.recipe-task-field input:focus,.recipe-task-field select:focus,.recipe-task-field textarea:focus{border-color:var(--kc-color-primary-500);outline:3px solid var(--kc-color-primary-100);}
.recipe-task-field small{display:block;margin-top:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}
.recipe-task-select{position:relative;min-width:0;width:100%;}
.recipe-task-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
.recipe-task-select-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:42px;gap:var(--kc-space-3);padding:var(--kc-space-2) var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);color:var(--kc-color-text);font:inherit;font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-bold);text-align:left;box-shadow:none;cursor:pointer;transition:border-color var(--kc-duration-fast) var(--kc-ease-standard),background-color var(--kc-duration-fast) var(--kc-ease-standard),box-shadow var(--kc-duration-fast) var(--kc-ease-standard);}
.recipe-task-select-trigger:hover{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50);}
.recipe-task-select-trigger:focus-visible,.recipe-task-select-trigger[aria-expanded="true"]{border-color:var(--kc-color-primary-500);outline:0;box-shadow:var(--kc-shadow-focus);}
.recipe-task-select-trigger:disabled{background:var(--kc-color-surface-muted);color:var(--kc-color-text-muted);cursor:not-allowed;opacity:.7;}
.recipe-task-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.recipe-task-select-chevron{flex:0 0 auto;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;color:var(--kc-color-text-secondary);transform:translateY(-2px) rotate(45deg);transition:transform var(--kc-duration-fast) var(--kc-ease-standard);}
.recipe-task-select-trigger[aria-expanded="true"] .recipe-task-select-chevron{transform:translateY(2px) rotate(225deg);}
.recipe-task-select-menu{position:fixed;z-index:50150;display:grid;max-height:min(320px,calc(100dvh - 24px));gap:2px;padding:var(--kc-space-2);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-lg);color:var(--kc-color-text);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--kc-color-slate-400) var(--kc-color-slate-100);}
.recipe-task-select-menu::-webkit-scrollbar{width:8px;}.recipe-task-select-menu::-webkit-scrollbar-track{background:var(--kc-color-slate-100);}.recipe-task-select-menu::-webkit-scrollbar-thumb{border:2px solid var(--kc-color-slate-100);border-radius:var(--kc-radius-pill);background:var(--kc-color-slate-400);}
.recipe-task-select-option{display:grid;grid-template-columns:minmax(0,1fr) 20px;align-items:center;width:100%;min-height:42px;gap:var(--kc-space-2);padding:var(--kc-space-2) var(--kc-space-3);border:1px solid transparent;border-radius:var(--kc-radius-sm);background:transparent;color:var(--kc-color-text-secondary);font:inherit;font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-bold);text-align:left;box-shadow:none;cursor:pointer;}
.recipe-task-select-option:hover,.recipe-task-select-option:focus-visible{border-color:var(--kc-color-primary-200);outline:0;background:var(--kc-color-primary-50);color:var(--kc-color-primary-800);}
.recipe-task-select-option.is-selected{border-color:var(--kc-color-primary-200);background:var(--kc-color-primary-50);color:var(--kc-color-primary-800);font-weight:var(--kc-font-weight-extrabold);}
.recipe-task-select-option:disabled{color:var(--kc-color-text-muted);cursor:not-allowed;opacity:.55;}
.recipe-task-select-option>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.recipe-task-select-check{display:grid;place-items:center;color:var(--kc-color-primary-700);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-black);}
.recipe-task-select-menu.is-mobile{max-height:min(50dvh,420px);padding:var(--kc-space-3);padding-bottom:calc(var(--kc-space-3) + env(safe-area-inset-bottom));border-radius:var(--kc-radius-xl);box-shadow:0 18px 48px rgba(15,23,42,.24);}
.recipe-task-select-menu.is-mobile .recipe-task-select-option{min-height:48px;}
.recipe-task-auto-quantity{display:grid;align-content:center;grid-column:span 6;min-height:88px;padding:var(--kc-space-3);border:1px solid var(--kc-color-success-200);border-radius:var(--kc-radius-sm);background:var(--kc-color-success-50);}.recipe-task-auto-quantity>span{color:var(--kc-color-success-800);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.035em;text-transform:uppercase;}.recipe-task-auto-quantity>strong{margin-top:var(--kc-space-1);color:var(--kc-color-text);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-extrabold);}.recipe-task-auto-quantity>small{margin-top:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}
.recipe-task-calculation-note{display:flex;align-items:center;gap:var(--kc-space-2);grid-column:span 4;min-height:42px;padding:var(--kc-space-2) var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface-muted);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}
.recipe-task-calculation-note.span-3{grid-column:span 3;}.recipe-task-calculation-note.span-12{grid-column:1/-1;}
.recipe-task-calculation-note.span-6{grid-column:span 6;}
.recipe-task-calculation-note svg{flex:0 0 auto;width:var(--kc-icon-size-sm);height:var(--kc-icon-size-sm);color:var(--kc-color-primary-600);}
.recipe-task-component-picker{grid-column:1/-1;min-width:0;margin:0;padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface-subtle)}
.recipe-task-component-picker>legend{padding:0 var(--kc-space-1);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.035em;text-transform:uppercase}.recipe-task-component-picker>p{margin:0 0 var(--kc-space-2);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold)}
.recipe-task-component-picker>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kc-space-2)}.recipe-task-component-picker label{display:flex;align-items:center;gap:var(--kc-space-2);min-width:0;padding:var(--kc-space-2);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);cursor:pointer}.recipe-task-component-picker label:has(input:checked){border-color:var(--kc-color-primary-400);background:var(--kc-color-primary-50);box-shadow:inset 3px 0 0 var(--kc-color-primary-600)}.recipe-task-component-picker input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--kc-color-primary-600)}.recipe-task-component-picker label>span{display:grid;min-width:0}.recipe-task-component-picker strong,.recipe-task-component-picker small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipe-task-component-picker strong{color:var(--kc-color-text);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold)}.recipe-task-component-picker small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold)}.recipe-task-component-empty{grid-column:1/-1;padding:var(--kc-space-3);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);text-align:center}
.recipe-task-unit-input{display:grid;grid-template-columns:minmax(0,1fr) 42px;overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);}
.recipe-task-unit-input input{border:0;border-radius:0;}
.recipe-task-unit-input b{display:flex;align-items:center;justify-content:center;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold);}
.recipe-task-template-summary{display:block;padding:var(--kc-space-2) var(--kc-space-4);border-top:1px solid var(--kc-color-border);background:var(--kc-color-primary-50);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);}
.recipe-task-template-summary strong{color:var(--kc-color-primary-800);font-weight:var(--kc-font-weight-extrabold);}
.recipe-step-task-suggestion{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);padding:var(--kc-space-2) var(--kc-space-3);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-sm);background:var(--kc-color-primary-50)}.recipe-step-task-suggestion>div{display:grid;gap:2px;min-width:0}.recipe-step-task-suggestion strong{color:var(--kc-color-primary-800);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold)}.recipe-step-task-suggestion span{color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold)}.recipe-step-task-suggestion .kc-button{flex:0 0 auto}
.recipe-task-compact-row{display:flex;align-items:center;gap:var(--kc-space-3);min-width:0;min-height:30px;white-space:nowrap;}.recipe-task-compact-row>strong{flex:0 1 auto;min-width:120px;overflow:hidden;color:var(--kc-color-text);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold);text-overflow:ellipsis;}.recipe-task-compact-row>div{display:flex;align-items:center;gap:var(--kc-space-1);min-width:0;overflow:hidden;}.recipe-task-pill{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-pill);background:var(--kc-color-surface);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-bold);white-space:nowrap;}.recipe-task-pill.is-component{border-color:var(--kc-color-primary-200);background:var(--kc-color-primary-50);color:var(--kc-color-primary-800);}.recipe-task-pill.is-quantity{border-color:var(--kc-color-success-300);background:var(--kc-color-success-50);color:var(--kc-color-success-800);}
.recipe-task-empty{display:grid;justify-items:center;gap:var(--kc-space-2);padding:var(--kc-space-8) var(--kc-space-5);border:1px dashed var(--kc-color-border-strong);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface-subtle);text-align:center;}
.recipe-task-empty>div{display:grid;place-items:center;width:46px;height:46px;border-radius:var(--kc-radius-round);background:var(--kc-color-primary-100);color:var(--kc-color-primary-700);}
.recipe-task-empty strong{color:var(--kc-color-text);font-size:var(--kc-font-size-md);font-weight:var(--kc-font-weight-extrabold);}.recipe-task-empty p{max-width:560px;margin:0 0 var(--kc-space-2);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}
.recipe-task-empty-actions{display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--kc-space-2);width:auto!important;height:auto!important;border-radius:0!important;background:transparent!important;color:inherit!important;}.recipe-scheduled-task-view-list{display:grid;gap:var(--kc-space-2);}
.recipe-task-reuse-backdrop{position:absolute;z-index:145;inset:0;display:grid;place-items:center;padding:var(--kc-space-5);background:rgba(15,23,42,.58);backdrop-filter:blur(2px);}.recipe-task-reuse-backdrop[hidden]{display:none;}.recipe-task-reuse{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(760px,calc(100% - 24px));max-height:min(760px,calc(100dvh - 48px));overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-xl);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-modal);}.recipe-task-reuse>header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-4);padding:var(--kc-space-5);border-bottom:1px solid var(--kc-color-border);}.recipe-task-reuse h4{margin:0;color:var(--kc-color-text);font-size:var(--kc-font-size-xl);font-weight:var(--kc-font-weight-black);}.recipe-task-reuse header p{margin:var(--kc-space-1) 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}.recipe-task-reuse-toolbar{display:flex;align-items:end;gap:var(--kc-space-2);padding:var(--kc-space-3) var(--kc-space-5);border-bottom:1px solid var(--kc-color-border);background:var(--kc-color-surface-subtle);}.recipe-task-reuse-toolbar label{flex:1;min-width:0;}.recipe-task-reuse-toolbar label>span{display:block;margin-bottom:var(--kc-space-1);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);text-transform:uppercase;}.recipe-task-reuse-toolbar input{width:100%;height:42px;padding:0 var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);color:var(--kc-color-text);font:inherit;font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-bold);}.recipe-task-reuse-toolbar input:focus{border-color:var(--kc-color-primary-400);outline:3px solid var(--kc-color-primary-100);}.recipe-task-reuse-results{display:grid;align-content:start;gap:var(--kc-space-2);min-height:180px;padding:var(--kc-space-4) var(--kc-space-5);overflow:auto;}.recipe-task-reuse-option,.recipe-task-reuse-target{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--kc-space-3);width:100%;min-height:58px;padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);color:var(--kc-color-text);font:inherit;text-align:left;}.recipe-task-reuse-option:not(:disabled):hover,.recipe-task-reuse-option:not(:disabled):focus-visible,.recipe-task-reuse-target:not(.is-disabled):hover{border-color:var(--kc-color-primary-400);background:var(--kc-color-primary-50);outline:0;}.recipe-task-reuse-option:disabled,.recipe-task-reuse-target.is-disabled{background:var(--kc-color-surface-muted);color:var(--kc-color-text-muted);cursor:not-allowed;opacity:.7;}.recipe-task-reuse-option-main,.recipe-task-reuse-target>span{display:grid;min-width:0;gap:2px;}.recipe-task-reuse-option strong,.recipe-task-reuse-target strong{overflow:hidden;font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-extrabold);text-overflow:ellipsis;white-space:nowrap;}.recipe-task-reuse-option small,.recipe-task-reuse-target small{overflow:hidden;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);text-overflow:ellipsis;white-space:nowrap;}.recipe-task-reuse-component,.recipe-task-reuse-option em,.recipe-task-reuse-target em{padding:3px 7px;border-radius:var(--kc-radius-pill);font-size:var(--kc-font-size-2xs);font-style:normal;font-weight:var(--kc-font-weight-extrabold);white-space:nowrap;}.recipe-task-reuse-component{border:1px solid var(--kc-color-primary-200);background:var(--kc-color-primary-50);color:var(--kc-color-primary-800);}.recipe-task-reuse-option em,.recipe-task-reuse-target em{color:var(--kc-color-text-muted);}.recipe-task-reuse-target{grid-template-columns:20px minmax(0,1fr) auto;cursor:pointer;}.recipe-task-reuse-target input{width:18px;height:18px;margin:0;accent-color:var(--kc-color-primary);}.recipe-task-reuse-empty{padding:var(--kc-space-8) var(--kc-space-4);border:1px dashed var(--kc-color-border-strong);border-radius:var(--kc-radius-md);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);text-align:center;}.recipe-task-reuse>footer{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);padding:var(--kc-space-4) var(--kc-space-5);border-top:1px solid var(--kc-color-border);background:var(--kc-color-surface-subtle);}.recipe-task-reuse>footer>span{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold);}.recipe-task-reuse>footer>div{display:flex;gap:var(--kc-space-2);}
.recipe-scheduled-task-view-card{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:start;gap:var(--kc-space-3);padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface-subtle);}.recipe-task-view-order{display:grid;place-items:center;width:30px;height:30px;border-radius:var(--kc-radius-sm);background:var(--kc-color-primary-100);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-black);}.recipe-scheduled-task-view-card>div{display:grid;min-width:0;gap:var(--kc-space-1);}
.recipe-scheduled-task-view-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-3);}
.recipe-scheduled-task-view-card>header>div{display:flex;align-items:center;flex-wrap:wrap;gap:var(--kc-space-2);}.recipe-scheduled-task-view-card>header strong{color:var(--kc-color-text);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-extrabold);}.recipe-scheduled-task-view-card>header>span{flex:0 0 auto;color:var(--kc-color-primary-700);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold);}
.recipe-scheduled-task-view-card p{margin:0;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}.recipe-scheduled-task-view-card footer{display:flex;align-items:center;flex-wrap:wrap;gap:var(--kc-space-2) var(--kc-space-4);padding-top:var(--kc-space-2);border-top:1px solid var(--kc-color-border);}.recipe-scheduled-task-view-card footer span{display:inline-flex;align-items:center;gap:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);}.recipe-scheduled-task-view-card footer svg{width:13px;height:13px;color:var(--kc-color-primary-600);}
.recipe-validity-list{grid-column:1/-1;display:grid;gap:7px;}
.recipe-validity-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,.65fr) 34px;gap:7px;align-items:end;padding:8px;border:1px solid #dfe6ef;border-radius:6px;background:#fbfcfe;}
.recipe-validity-row label>span{display:block;margin:0 0 4px;color:#526176;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;}
.recipe-validity-row select,.recipe-validity-row input{width:100%;height:38px;padding:0 8px;border:1px solid #cfd9e6;border-radius:5px;background:#fff;color:#172033;font-size:13px;font-weight:750;}
.recipe-validity-days{display:grid;grid-template-columns:minmax(0,1fr) 40px;overflow:hidden;border:1px solid #cfd9e6;border-radius:5px;background:#fff;}
.recipe-validity-days input{border:0;border-radius:0;}
.recipe-validity-days b{display:flex;align-items:center;justify-content:center;color:#64748b;font-size:10px;}
.recipe-validity-actions{grid-column:1/-1;display:flex;justify-content:flex-start;align-items:center;min-height:36px;}
.recipe-validity-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:0 10px;border:1px solid #cbd8e8;border-radius:6px;background:#fff;color:#2459c4;font-size:11px;font-weight:900;box-shadow:none;}
.recipe-validity-actions .recipe-context-create{width:min(520px,100%);}
.recipe-validity-method-button{width:auto!important;min-height:34px!important;}

/* Processos pertencem ao ingrediente; a ficha apenas referencia o processo e seu rendimento. */
.ingredient-process-section{grid-column:1/-1;}
#modalProdutoForm details.ingredient-process-section{overflow:hidden;padding:0!important;}
#modalProdutoForm .ingredient-process-summary::-webkit-details-marker{display:none;}
.ingredient-process-guidance,#modalProdutoForm .ingredient-unit-guidance{display:grid;gap:2px;padding:var(--kc-space-3);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-sm);background:var(--kc-color-primary-50);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}
.ingredient-process-guidance{margin-bottom:var(--kc-space-3);}
.ingredient-process-guidance strong,#modalProdutoForm .ingredient-unit-guidance strong{color:var(--kc-color-primary-800);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold);}
#modalProdutoForm .ingredient-unit-process-warning{margin:0;}
#modalProdutoForm .ingredient-unit-process-warning small{display:block;margin-top:2px;line-height:var(--kc-line-height-body);}
.ingredient-process-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;}
.ingredient-process-head p{margin:0!important;color:var(--kc-color-text-muted)!important;font-size:var(--kc-font-size-xs)!important;font-weight:var(--kc-font-weight-semibold)!important;}
.ingredient-process-list{display:grid;gap:7px;}
.ingredient-process-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,230px) 36px;gap:8px;align-items:end;padding:9px;border:1px solid #dce4ee;border-radius:6px;background:#fbfcfe;}
.ingredient-process-row label{display:block;margin-bottom:4px;color:#526176;font-size:10px;font-weight:900;text-transform:uppercase;}
.ingredient-process-row input{width:100%;height:40px;padding:0 9px;border:1px solid #cfd9e6;border-radius:6px;background:#fff;color:#172033;font-size:13px;font-weight:750;}
.ingredient-process-yield{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;overflow:hidden;border:1px solid #cfd9e6;border-radius:6px;background:#fff;}
.ingredient-process-yield input{border:0;border-radius:0;}
.ingredient-process-yield span{color:#64748b;font-size:12px;font-weight:900;text-align:center;}

.recipe-view-overview{display:grid;grid-template-columns:1fr;margin:0 0 12px;border:1px solid #dce5f0;border-radius:7px;background:#fff;overflow:hidden}
.recipe-view-overview.has-image{grid-template-columns:180px minmax(0,1fr)}
.recipe-view-photo{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;margin:0;background:var(--kc-color-surface-muted)}
.recipe-view-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity var(--kc-duration-fast)}
.recipe-view-photo-arrow{position:absolute;z-index:2;top:50%;display:grid;width:32px;height:32px;place-items:center;padding:0;border:1px solid rgba(255,255,255,.72);border-radius:var(--kc-radius-pill);background:rgba(15,23,42,.64);color:#fff;box-shadow:var(--kc-shadow-sm);transform:translateY(-50%);backdrop-filter:blur(4px)}
.recipe-view-photo-arrow:hover{background:rgba(15,23,42,.82)}
.recipe-view-photo-arrow:focus-visible{outline:0;box-shadow:var(--kc-shadow-focus)}
.recipe-view-photo-arrow.previous{left:8px}.recipe-view-photo-arrow.next{right:8px}
.recipe-view-photo-arrow.previous svg{transform:rotate(-90deg)}.recipe-view-photo-arrow.next svg{transform:rotate(-90deg)}
.recipe-view-photo-count{position:absolute;z-index:2;top:8px;right:8px;padding:3px 7px;border-radius:var(--kc-radius-pill);background:rgba(15,23,42,.68);color:#fff;font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-black);backdrop-filter:blur(4px)}
.recipe-view-photo-dots{position:absolute;z-index:2;right:0;bottom:8px;left:0;display:flex;justify-content:center;gap:5px}
.recipe-view-photo-dots button{width:7px;height:7px;padding:0;border:1px solid rgba(255,255,255,.92);border-radius:var(--kc-radius-pill);background:rgba(15,23,42,.45);box-shadow:none}
.recipe-view-photo-dots button.active{width:18px;background:#fff}
.recipe-view-photo-dots button:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(255,255,255,.58)}
.recipe-view-meta{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0}
.recipe-view-meta>div{min-width:0;padding:14px;border-right:1px solid #e4eaf1}
.recipe-view-meta>div:last-child{border-right:0}.recipe-view-meta .wide{grid-column:1/-1;border-top:1px solid #e4eaf1;border-right:0}
.recipe-view-meta dt{margin-bottom:4px;color:#64748b;font-size:9px;font-weight:900;text-transform:uppercase}
.recipe-view-meta dd{margin:0;color:#142033;font-size:14px;font-weight:850;overflow-wrap:anywhere}
.recipe-view-tags{display:flex;flex-wrap:wrap;gap:5px}.recipe-view-tags span{padding:4px 8px;border:1px solid var(--tag-color-border);border-radius:999px;background:var(--tag-color-soft);color:var(--tag-color);font-size:10px;font-weight:850}
.recipe-overview-ingredients{scroll-margin-top:54px}
.recipe-overview-ingredients-body{padding:5px 14px 9px}
.recipe-overview-ingredients-columns,.recipe-overview-ingredient-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(125px,.32fr) minmax(145px,.38fr) minmax(80px,.2fr);gap:14px;align-items:center}
.recipe-overview-ingredients-columns{min-height:28px;color:#7b8799;font-size:8px;font-weight:900;text-transform:uppercase}
.recipe-overview-ingredient-row{min-height:48px;border-top:1px solid #e9eef4;color:#24344a;font-size:11px}
.recipe-overview-ingredient-name{min-width:0}
.recipe-overview-ingredient-name strong,.recipe-overview-ingredient-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recipe-overview-ingredient-name strong{color:#172033;font-size:12px}
.recipe-overview-ingredient-name small{margin-top:2px;color:#64748b;font-size:9px;font-weight:750}
.recipe-overview-ingredient-row>span{font-weight:850;white-space:nowrap}.recipe-overview-cost{text-align:right}
.recipe-overview-ingredients-empty{margin:0;padding:14px;color:#64748b;font-size:11px;text-align:center}
.recipe-history{display:flex;align-items:center;gap:24px;padding:9px 14px;border-top:1px solid #e3e9f1;background:#fbfcfe}
.recipe-history div{display:flex;align-items:baseline;gap:6px}
.recipe-history span{color:#7b8799;font-size:8px;font-weight:900;text-transform:uppercase}
.recipe-history strong{color:#334155;font-size:10px}
.recipe-operational-history .recipe-section-body{display:grid;gap:var(--kc-space-3)}
.recipe-operational-history-item{display:grid;grid-template-columns:minmax(112px,.25fr) minmax(220px,1fr) auto;align-items:center;gap:var(--kc-space-4);padding:var(--kc-space-3) var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface)}
.recipe-operational-history-date time,.recipe-operational-history-date span{display:block}.recipe-operational-history-date time{color:var(--kc-color-text);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-black)}.recipe-operational-history-date span{margin-top:2px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-bold)}
.recipe-operational-history-item p{margin:0;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body)}
.recipe-operational-history-meta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--kc-space-2)}
.recipe-operational-history-loading{display:flex;align-items:center;justify-content:center;gap:var(--kc-space-3);min-height:82px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-bold)}
.recipe-components-head{align-items:center;flex-wrap:wrap}.recipe-components-title{flex:1 1 190px;min-width:170px}
.recipe-inline-scale{display:grid;grid-template-columns:minmax(88px,108px) minmax(180px,270px) auto auto;align-items:end;gap:7px;min-width:0}
.recipe-inline-scale-field{display:grid;align-content:end;gap:2px;min-width:0}.recipe-inline-scale-field>span{color:var(--kc-color-text-muted);font-size:7px;font-weight:var(--kc-font-weight-black);letter-spacing:.04em;text-transform:uppercase}
.recipe-inline-scale-field input,.recipe-inline-scale-field select{width:100%;min-width:0;height:34px;min-height:34px;padding:0 7px;border:0;border-bottom:1px dashed var(--kc-color-primary-300);border-radius:var(--kc-radius-xs);background:transparent;color:var(--kc-color-text);font-size:11px;font-weight:var(--kc-font-weight-extrabold);box-shadow:none;cursor:text;transition:background var(--kc-duration-fast),box-shadow var(--kc-duration-fast)}
.recipe-inline-scale-field select{padding-right:22px;cursor:pointer}.recipe-inline-scale-field input:hover,.recipe-inline-scale-field select:hover{background:var(--kc-color-primary-50)}.recipe-inline-scale-field input:focus,.recipe-inline-scale-field select:focus{outline:0;background:var(--kc-color-surface);box-shadow:var(--kc-shadow-focus)}
.recipe-inline-scale-output input{font-size:13px;font-weight:var(--kc-font-weight-black)}
.recipe-inline-scale-quick{display:flex;align-items:center;gap:4px}.recipe-section-head .recipe-inline-scale-quick button{min-width:36px;min-height:34px;height:34px;padding:0 8px;border-color:var(--kc-color-border);border-radius:var(--kc-radius-xs);color:var(--kc-color-text-secondary);font-size:9px}.recipe-section-head .recipe-inline-scale-quick button:hover{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50)}.recipe-section-head .recipe-inline-scale-quick button.active{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700)}.recipe-section-head .recipe-inline-scale-quick .recipe-inline-scale-reset{gap:4px;color:var(--kc-color-text-muted)}.recipe-inline-scale-reset svg{width:13px;height:13px}.recipe-section-head .recipe-inline-scale-quick button:disabled{opacity:.4;cursor:not-allowed}
.recipe-inline-scale-summary{display:flex;align-items:stretch;gap:5px}.recipe-inline-scale-summary>span{display:grid;align-content:center;min-width:72px;min-height:34px;padding:4px 7px;border-radius:var(--kc-radius-xs);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700)}.recipe-inline-scale-summary>span:last-child{min-width:106px}.recipe-inline-scale-summary>span.pending{background:var(--kc-color-warning-50);color:var(--kc-color-warning-800)}.recipe-inline-scale-summary small{font-size:7px;font-weight:var(--kc-font-weight-black);line-height:1.15;text-transform:uppercase}.recipe-inline-scale-summary strong{font-size:11px;line-height:1.2}.recipe-inline-scale-summary em{font-size:7px;font-style:normal;font-weight:var(--kc-font-weight-extrabold)}
.recipe-overview-editable{display:flex;align-items:center;width:max-content;max-width:100%;min-height:34px;padding:0 5px;border-bottom:1px dashed var(--kc-color-primary-300);border-radius:var(--kc-radius-xs);background:transparent;cursor:text;transition:background var(--kc-duration-fast),box-shadow var(--kc-duration-fast)}.recipe-overview-editable:hover{background:var(--kc-color-primary-50)}.recipe-overview-editable:focus-within{background:var(--kc-color-surface);box-shadow:var(--kc-shadow-focus)}.recipe-overview-editable input{width:72px;min-width:0;height:32px;min-height:32px;padding:0;border:0!important;background:transparent!important;color:var(--kc-color-text);font-size:11px;font-weight:var(--kc-font-weight-extrabold);box-shadow:none!important}.recipe-overview-editable input::placeholder{color:var(--kc-color-text-muted);opacity:1}.recipe-overview-editable>span{color:var(--kc-color-text-secondary);font-size:10px;font-weight:var(--kc-font-weight-extrabold);white-space:nowrap}.recipe-overview-editable input::-webkit-inner-spin-button,.recipe-overview-editable input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.recipe-overview-editable input[type=number]{appearance:textfield}
.recipe-operational-quantity{display:flex;flex-direction:column;gap:1px;margin-top:5px}.recipe-operational-quantity strong{color:#166534!important;font-size:11px!important}.recipe-operational-quantity small{margin:0!important;color:#64748b!important;font-size:8px!important;line-height:1.3}.recipe-operational-quantity.approximated strong{color:#1d4ed8!important}.recipe-operational-quantity.compact{max-width:170px}
.recipe-view-secondary{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 14px 12px}.recipe-view-secondary span{color:#64748b;font-size:9px;font-weight:900;text-transform:uppercase}.recipe-view-secondary b{padding:4px 7px;border-radius:5px;background:#f1f5f9;color:#334155;font-size:10px}
.recipe-view-steps{display:grid;gap:8px;margin:0;padding:0;list-style:none}.recipe-view-steps li{--phase-color:#15803d;--phase-bg:#ecfdf3;display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;padding:6px 8px;border-left:3px solid var(--phase-color);border-radius:var(--kc-radius-xs);background:var(--phase-bg)}.recipe-view-steps li.phase-preparation{--phase-color:#2563eb;--phase-bg:#eff6ff}.recipe-view-steps li.phase-finishing{--phase-color:#7e22ce;--phase-bg:#faf5ff}.recipe-view-steps li.phase-storage{--phase-color:#b45309;--phase-bg:#fffbeb}.recipe-view-steps li.phase-note{--phase-color:#64748b;--phase-bg:#f8fafc;border:1px dashed #94a3b8;border-left-width:3px}.recipe-view-steps li>span{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:var(--phase-color);color:#fff;font-size:11px;font-weight:900}.recipe-view-steps li.phase-note>span{font-family:Georgia,serif;font-size:14px;font-style:italic}.recipe-view-steps small{display:inline-block;padding:2px 5px;border-radius:var(--kc-radius-xs);background:#fff;color:var(--phase-color);font-size:9px;font-weight:900;text-transform:uppercase}.recipe-view-steps p{margin:3px 0 0;color:#223047;font-size:12px;line-height:1.5}.recipe-view-steps em{color:#64748b;font-size:10px;font-style:normal}
.recipe-view-step-image{width:min(100%,320px);aspect-ratio:4/3;margin:8px 0 1px;overflow:hidden;border:1px solid color-mix(in srgb,var(--phase-color) 24%,#fff);border-radius:var(--kc-radius-sm);background:#fff;}
.recipe-view-step-image img{display:block;width:100%;height:100%;object-fit:cover;}
.recipe-view-steps .recipe-view-part-heading{display:block;margin-top:4px;padding:6px 8px;border-left:3px solid var(--kc-color-primary);background:var(--kc-color-primary-50);color:var(--kc-color-primary-800);font-size:10px;text-transform:uppercase;}
.recipe-overview-part-heading{margin:0;padding:8px 12px;border-top:1px solid var(--kc-color-primary-200);border-bottom:1px solid var(--kc-color-primary-200);background:var(--kc-color-primary-50);color:var(--kc-color-primary-800);font-size:10px;text-transform:uppercase;}
.recipe-view-validity{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}.recipe-view-validity span{padding:6px 8px;border-radius:6px;background:#f1f5f9;color:#334155;font-size:10px}.recipe-view-section .recipe-section-body>p{margin:7px 0;color:#334155;font-size:11px;line-height:1.5}

/* Editor de unidades do ingrediente — simples no uso comum, progressivo nos casos avançados. */
#modalProdutoForm .ingredient-advanced-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-5);}
#modalProdutoForm .ingredient-advanced-heading>div:first-child{min-width:0;}
#modalProdutoForm .ingredient-advanced-heading p{margin:2px 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);line-height:var(--kc-line-height-body);}
#modalProdutoForm .ingredient-advanced-heading .form-section-title{margin-bottom:0;}
#modalProdutoForm .ingredient-primary-unit{display:grid;grid-template-columns:32px minmax(0,1fr) minmax(180px,260px);align-items:center;gap:var(--kc-space-4);padding:var(--kc-space-4);border-color:var(--kc-color-primary-200);border-radius:var(--kc-radius-sm);background:var(--kc-color-primary-50);}
#modalProdutoForm .ingredient-unit-step{display:inline-grid;width:32px;height:32px;place-items:center;border-radius:var(--kc-radius-sm);background:var(--kc-color-primary-600);color:var(--kc-color-white);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-black);}
#modalProdutoForm .ingredient-primary-unit-copy strong,
#modalProdutoForm .ingredient-primary-unit-copy small{display:block;}
#modalProdutoForm .ingredient-primary-unit-copy strong{color:var(--kc-color-text);font-size:var(--kc-font-size-sm);}
#modalProdutoForm .ingredient-primary-unit-copy small{margin-top:2px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);}
#modalProdutoForm .ingredient-primary-unit-slot>div{width:100%;}
#modalProdutoForm .ingredient-primary-unit-slot label{font-size:var(--kc-font-size-xs);}
#modalProdutoForm .ingredient-unit-extras-heading{display:flex;align-items:center;gap:var(--kc-space-3);padding-top:var(--kc-space-1);}
#modalProdutoForm .ingredient-unit-extras-heading strong,
#modalProdutoForm .ingredient-unit-extras-heading small{display:block;}
#modalProdutoForm .ingredient-unit-extras-heading strong{color:var(--kc-color-text);font-size:var(--kc-font-size-sm);}
#modalProdutoForm .ingredient-unit-extras-heading small{margin-top:1px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);}
#modalProdutoForm .ingredient-unit-extras-heading .ingredient-unit-step{border:1px solid var(--kc-color-border-strong);background:var(--kc-color-surface);color:var(--kc-color-text-muted);}
#modalProdutoForm .ingredient-unit-options{display:grid;grid-template-columns:1fr;gap:var(--kc-space-2);}
#modalProdutoForm .ingredient-unit-disclosure{overflow:hidden;padding:0;border-color:var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);}
#modalProdutoForm .ingredient-unit-disclosure[open]{border-color:var(--kc-color-primary-200);box-shadow:var(--kc-shadow-xs);}
#modalProdutoForm .ingredient-unit-disclosure>summary{display:grid;grid-template-columns:28px minmax(0,1fr) auto 18px;align-items:center;gap:var(--kc-space-2);min-height:48px;padding:var(--kc-space-2) var(--kc-space-3);list-style:none;cursor:pointer;user-select:none;}
#modalProdutoForm .ingredient-unit-disclosure>summary::-webkit-details-marker{display:none;}
#modalProdutoForm .ingredient-unit-disclosure>summary:hover{background:var(--kc-color-surface-subtle);}
#modalProdutoForm .ingredient-unit-disclosure>summary:focus-visible{outline:3px solid var(--kc-color-primary-100);outline-offset:-3px;}
#modalProdutoForm .ingredient-unit-option-icon{display:inline-grid;width:28px;height:28px;place-items:center;border-radius:var(--kc-radius-sm);background:var(--kc-color-surface-muted);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-black);}
#modalProdutoForm .ingredient-unit-disclosure.has-items .ingredient-unit-option-icon{background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);}
#modalProdutoForm .ingredient-unit-option-copy strong,
#modalProdutoForm .ingredient-unit-option-copy small{display:block;}
#modalProdutoForm .ingredient-unit-option-copy strong{overflow:hidden;color:var(--kc-color-text);font-size:var(--kc-font-size-xs);text-overflow:ellipsis;white-space:nowrap;}
#modalProdutoForm .ingredient-unit-option-copy small{overflow:hidden;margin-top:1px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);text-overflow:ellipsis;white-space:nowrap;}
#modalProdutoForm .ingredient-unit-count{min-width:25px;justify-content:center;background:var(--kc-color-surface-muted);color:var(--kc-color-text-muted);}
#modalProdutoForm .ingredient-unit-disclosure.has-items .ingredient-unit-count{background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);}
#modalProdutoForm .ingredient-unit-caret{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-lg);font-weight:var(--kc-font-weight-black);transition:transform var(--kc-duration-fast) var(--kc-ease-standard);}
#modalProdutoForm .ingredient-unit-disclosure[open] .ingredient-unit-caret{transform:rotate(180deg);}
#modalProdutoForm .ingredient-unit-panel-body{display:grid;gap:var(--kc-space-3);padding:var(--kc-space-3) var(--kc-space-4) var(--kc-space-4);border-top:1px solid var(--kc-color-border);background:var(--kc-color-surface-subtle);}
#modalProdutoForm .ingredient-unit-panel-action{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);}
#modalProdutoForm .ingredient-unit-panel-action>span{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);}
#modalProdutoForm .ingredient-unit-panel-action .kc-button{flex:none;}
#modalProdutoForm .ingredient-unit-empty{padding:var(--kc-space-3);border:1px dashed var(--kc-color-border-strong);border-radius:var(--kc-radius-sm);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);text-align:center;}
#modalProdutoForm .ingredient-unit-empty[hidden]{display:none;}
#modalProdutoForm .ingredient-measure-list{display:grid;gap:var(--kc-space-3);}
#modalProdutoForm .ingredient-measure-row{display:grid;align-items:end;gap:var(--kc-space-3);padding:var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-sm);background:var(--kc-color-surface);}
#modalProdutoForm .ingredient-measure-row.is-invalid{border-color:var(--kc-color-warning-400);background:var(--kc-color-warning-50);}
#modalProdutoForm .ingredient-usage-row{grid-template-columns:minmax(170px,1fr) auto 130px 130px 38px;}
#modalProdutoForm .ingredient-bridge-row{grid-template-columns:90px 110px 22px 90px 110px minmax(110px,.7fr) 38px;}
#modalProdutoForm .ingredient-package-row{display:block;}
#modalProdutoForm .ingredient-package-main{display:grid;grid-template-columns:minmax(180px,1fr) 92px 112px 120px minmax(150px,.8fr) 38px;align-items:end;gap:var(--kc-space-3);}
#modalProdutoForm .ingredient-package-equivalence{display:grid;align-content:center;min-height:var(--kc-control-height-md);padding:var(--kc-space-2) var(--kc-space-3);border:1px solid var(--kc-color-success-200);border-radius:var(--kc-radius-sm);background:var(--kc-color-success-50);}
#modalProdutoForm .ingredient-package-equivalence span,#modalProdutoForm .ingredient-package-equivalence strong,#modalProdutoForm .ingredient-package-equivalence small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#modalProdutoForm .ingredient-package-equivalence span{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);text-transform:uppercase;}
#modalProdutoForm .ingredient-package-equivalence strong{color:var(--kc-color-success-800);font-size:var(--kc-font-size-sm);}
#modalProdutoForm .ingredient-package-equivalence small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);}
#modalProdutoForm .ingredient-package-equivalence.is-pending{border-color:var(--kc-color-warning-200);background:var(--kc-color-warning-50);}
#modalProdutoForm .ingredient-package-equivalence.is-pending strong{color:var(--kc-color-warning-800);}
#modalProdutoForm .ingredient-package-more{margin-top:var(--kc-space-3);padding-top:var(--kc-space-3);border-top:1px solid var(--kc-color-border);}
#modalProdutoForm .ingredient-package-more>summary{width:max-content;max-width:100%;color:var(--kc-color-primary-700);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold);cursor:pointer;}
#modalProdutoForm .ingredient-package-commercial{display:grid;grid-template-columns:1fr 1fr 1fr;gap:var(--kc-space-3);margin-top:var(--kc-space-3);}
#modalProdutoForm .ingredient-package-commercial .kc-field{min-width:0;}
#modalProdutoForm .ingredient-package-commercial .kc-input,#modalProdutoForm .ingredient-package-commercial .kc-select{box-sizing:border-box;width:100%;min-width:0;}
#modalProdutoForm .ingredient-package-default{grid-column:1/-1;font-size:var(--kc-font-size-xs);}
#modalProdutoForm .ingredient-universal-unit-help{margin:var(--kc-space-2) 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);}
#modalProdutoForm .ingredient-row-link{align-self:center;margin-top:17px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);white-space:nowrap;}
#modalProdutoForm .ingredient-measure-row .kc-field{gap:var(--kc-space-1);}
#modalProdutoForm .ingredient-measure-row .kc-label{margin:0;font-size:var(--kc-font-size-xs);}
#modalProdutoForm .ingredient-measure-row .kc-label span{font-weight:var(--kc-font-weight-semibold);text-transform:none;}
#modalProdutoForm .ingredient-measure-row .kc-input,
#modalProdutoForm .ingredient-measure-row .kc-select{min-height:var(--kc-control-height-md);height:var(--kc-control-height-md);padding:0 var(--kc-space-4);border-radius:var(--kc-radius-sm);font-size:var(--kc-font-size-lg);}
#modalProdutoForm .ingredient-measure-remove{align-self:end;width:38px;min-width:38px;min-height:var(--kc-control-height-md);height:var(--kc-control-height-md);padding:0;}
#modalProdutoForm .ingredient-equation{display:grid;height:var(--kc-control-height-md);place-items:center;color:var(--kc-color-text-muted);font-weight:var(--kc-font-weight-black);}
#modalProdutoForm .ingredient-bridge-estimated{align-self:center;margin-top:17px;font-size:var(--kc-font-size-xs);white-space:nowrap;}
#modalProdutoForm .ingredient-migration-card{margin:0;}
#modalProdutoForm .ingredient-migration-card small{display:block;margin:var(--kc-space-1) 0 var(--kc-space-3);font-size:var(--kc-font-size-xs);line-height:var(--kc-line-height-body);}
#modalProdutoForm .ingredient-migration-card .kc-button{background:var(--kc-color-surface);color:var(--kc-color-warning-800);}
#modalProdutoForm .ingredient-unit-summary{display:flex;align-items:center;flex:0 0 auto;gap:var(--kc-space-2);min-height:34px;max-width:330px;padding:var(--kc-space-2) var(--kc-space-3);border:1px solid var(--kc-color-success-300);border-radius:var(--kc-radius-pill);background:var(--kc-color-success-50);}
#modalProdutoForm .ingredient-unit-summary-icon{display:inline-grid;flex:0 0 20px;width:20px;height:20px;place-items:center;border-radius:50%;background:var(--kc-color-success-600);color:var(--kc-color-white);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-black);}
#modalProdutoForm .ingredient-unit-summary strong,
#modalProdutoForm .ingredient-unit-summary small{display:block;}
#modalProdutoForm .ingredient-unit-summary strong{color:var(--kc-color-success-800);font-size:var(--kc-font-size-xs);}
#modalProdutoForm .ingredient-unit-summary small{overflow:hidden;margin-top:0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);text-overflow:ellipsis;white-space:nowrap;}
#modalProdutoForm .ingredient-unit-summary.is-pending{border-color:var(--kc-color-warning-300);background:var(--kc-color-warning-50);}
#modalProdutoForm .ingredient-unit-summary.is-pending .ingredient-unit-summary-icon{background:var(--kc-color-warning-600);}
#modalProdutoForm .ingredient-unit-summary.is-pending strong{color:var(--kc-color-warning-800);}
#modalProdutoForm .ingredient-brands-section{gap:var(--kc-space-3);}
#modalProdutoForm .ingredient-brands-heading{align-items:center;}
#modalProdutoForm .ingredient-brands-heading .kc-button{flex:none;min-height:30px;}
#modalProdutoForm .ingredient-brand-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kc-space-2);}
#modalProdutoForm .ingredient-brand-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:end;gap:var(--kc-space-1);min-width:0;}
#modalProdutoForm .ingredient-brand-row label{display:grid;min-width:0;margin:0;}
#modalProdutoForm .ingredient-brand-row label>span{margin-bottom:4px;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.025em;text-transform:uppercase;}
#modalProdutoForm .ingredient-brand-row .ingredient-brand-remove{width:34px;min-width:34px;height:40px;min-height:40px;padding:0;}
#modalProdutoForm .ingredient-brands-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);}
#modalProdutoForm .ingredient-brands-foot span{flex:none;color:var(--kc-color-text-secondary);font-weight:var(--kc-font-weight-extrabold);}

@media(max-width:1050px){
  #receitas{padding:22px 20px 34px;}
  #receitas .builder-layout{grid-template-columns:240px minmax(0,1fr);}
  .recipe-library-tools{grid-template-columns:repeat(2,minmax(0,1fr));}
  .recipe-sheet-content{width:calc(100% - 28px);}
  .recipe-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
  .recipe-metric:nth-child(2n){border-right:0;}.recipe-metric:nth-child(n+3){border-top:1px solid #e4eaf1;}
  .recipe-media-layout{grid-template-columns:1fr;}
  #modalProdutoForm .ingredient-bridge-row{grid-template-columns:90px 1fr 22px 90px 1fr 38px;}
  #modalProdutoForm .ingredient-bridge-estimated{grid-column:1/-2;margin-top:0;}
  #modalProdutoForm .ingredient-package-main{grid-template-columns:minmax(150px,1fr) 80px 100px 110px minmax(135px,.8fr) 38px;}
}
@media(max-width:760px){
  #receitas{padding:18px 12px 28px;}
  #receitas .topbar{display:flex;}
  #receitas .builder-layout{grid-template-columns:1fr;}
  #receitas .builder-card:first-child{max-height:none;overflow:visible;padding:var(--kc-space-4);}
  #receitas .builder-card:first-child>h3,#receitas .builder-card:first-child>p{display:none;}
  #receitas #recipeGroupList{display:none;}
  .recipe-mobile-category-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:var(--kc-space-2);}
  .recipe-mobile-category-filter>label{grid-column:1/-1;margin:0;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.04em;text-transform:uppercase;}
  .recipe-mobile-category-filter>select{width:100%;min-width:0;height:44px;}
  .recipe-mobile-category-filter>div{display:flex;gap:var(--kc-space-2);}
  .recipe-mobile-category-filter .kc-button{min-width:72px;height:44px;white-space:nowrap;}
  .recipe-library-tools{grid-template-columns:1fr 1fr;}
  .recipe-library-tools .recipe-library-field:first-child{grid-column:1/-1;}
  .recipe-cost-summary{grid-template-columns:1fr;gap:3px;}
  .recipe-sheet-header{position:relative;min-height:66px;padding:9px 178px 9px 11px;}
  .recipe-sheet-title h3{font-size:17px;}
  .recipe-sheet-title p{font-size:9px;}
  .recipe-sheet-actions{display:contents;}
  .recipe-sheet-actions button{position:absolute;top:50%;width:38px;min-width:38px;min-height:38px;padding:0;font-size:10px;transform:translateY(-50%);}
  .recipe-sheet-actions button:nth-last-child(1){right:11px;}
  .recipe-sheet-actions button:nth-last-child(2){right:54px;}
  .recipe-sheet-actions button:nth-last-child(3){right:97px;}
  .recipe-sheet-actions button:nth-last-child(4){right:140px;}
  .recipe-sheet-actions .icon-only{width:38px;min-width:38px;padding:0;}
  .recipe-sheet-actions .recipe-action-label{display:none;}
  .recipe-sheet input,.recipe-sheet select,.recipe-sheet textarea{font-size:16px;}
  .recipe-sheet-content{width:calc(100% - 20px);padding:10px 0 92px;}
  .recipe-sheet-nav{margin-bottom:9px;padding:6px 0;}
  .recipe-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
  .recipe-metric{padding:9px 10px;border-top:1px solid #e4eaf1;}
  .recipe-metric:nth-child(-n+2){border-top:0;}.recipe-metric:nth-child(2n){border-right:0;}.recipe-metric:nth-child(3){border-right:1px solid #e4eaf1;}
  .recipe-section-head{align-items:flex-start;min-height:46px;padding:9px 10px;}
  .recipe-section-body{padding:10px;}
  .recipe-form-grid{grid-template-columns:1fr 1fr;gap:8px;}
  .recipe-field,.recipe-field.span-2,.recipe-field.span-3,.recipe-field.span-6,.recipe-field.span-8{grid-column:span 1;}
  .recipe-field.span-12,.recipe-field.mobile-full{grid-column:1/-1;}
  .recipe-media-layout{grid-template-columns:1fr;}
  .recipe-output-grid{grid-template-columns:1fr 1fr;}
  .recipe-operational-safety-head{align-items:flex-start;flex-direction:column;}
  .recipe-safety-profiles{grid-template-columns:1fr;}
  .recipe-safety-profile-copy small{white-space:normal;}
  .recipe-secondary-row{grid-template-columns:1fr 82px;}
  .recipe-secondary-row .secondary-unit{grid-column:1/2;}.recipe-secondary-row .recipe-delete-row{grid-column:2/3;grid-row:2;}
  .recipe-table{min-width:0;display:block;}
  .recipe-table thead{display:none;}
  .recipe-table tbody{display:grid;gap:8px;}
  .recipe-table tr{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:9px;border:1px solid #dfe6ef;border-radius:6px;background:#fff;}
  .recipe-table td{display:block;padding:0;border:0;}
  .recipe-table td:nth-child(1),.recipe-table td:nth-child(2),.recipe-table td:nth-child(5),.recipe-table td:nth-child(6){grid-column:1/-1;}
  .recipe-table td::before{display:block;margin-bottom:3px;color:#64748b;font-size:8px;font-weight:900;text-transform:uppercase;}
  .recipe-table td:nth-child(1)::before{content:'Ingrediente ou receita';}.recipe-table td:nth-child(2)::before{content:'Processo';}.recipe-table td:nth-child(3)::before{content:'Qtd. usada';}.recipe-table td:nth-child(4)::before{content:'Medida usada';}.recipe-table td:nth-child(5)::before{content:'Matéria-prima necessária';}.recipe-table td:nth-child(6)::before{content:'Custo';}
  .recipe-table td:last-child{position:absolute;right:20px;}
  .recipe-table tr{position:relative;padding-right:50px;}
  .recipe-direct-part>header{grid-template-columns:minmax(0,1fr) auto;gap:var(--kc-space-2);}
  .recipe-part-title{grid-column:1/-1;}
  .recipe-direct-part>header>.kc-button,.recipe-part-actions{grid-column:1/-1;}
  .recipe-part-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;}
  .recipe-part-actions .kc-button,.recipe-direct-part>header>.kc-button{width:100%;}
  .recipe-component-parts .recipe-part-actions{grid-template-columns:1fr;}
  .recipe-process-part .recipe-part-remove{grid-column:1/-1;}
  .recipe-part-count{grid-column:2;grid-row:2;text-align:right;}
  .recipe-parts-toolbar{display:grid;grid-template-columns:1fr 1fr;}
  .recipe-parts-toolbar.is-single{grid-template-columns:1fr;}
  .recipe-parts-toolbar .kc-button,.recipe-parts-toolbar .recipe-parts-trigger{width:100%;}
  .recipe-parts-toolbar>small{grid-column:1/-1;}
  .recipe-step{grid-template-columns:30px minmax(0,1fr) 34px 34px;}
  .recipe-step select{grid-column:2/3;}.recipe-step textarea{grid-column:1/-1;}.recipe-step .recipe-step-time{grid-column:1/3;}.recipe-step-order{grid-column:3;grid-row:1;}.recipe-step .recipe-delete-row{grid-column:4;grid-row:1;}
  .recipe-step-image-control{grid-column:1/-1;}
  .recipe-validity-row{grid-template-columns:minmax(0,1fr) minmax(135px,.7fr) 34px;}
  .recipe-task-template-grid{gap:var(--kc-space-2);padding:var(--kc-space-3);}
  .recipe-task-field.span-3{grid-column:span 6;}.recipe-task-calculation-note.span-3,.recipe-task-calculation-note.span-6{grid-column:span 6;}
  .recipe-task-field.span-4{grid-column:span 6;}.recipe-task-field.span-6{grid-column:span 6;}.recipe-task-field.span-8{grid-column:1/-1;}
  .recipe-task-component-picker>div{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ingredient-process-head{align-items:flex-start;}
  .ingredient-process-row{grid-template-columns:minmax(0,1fr) 36px;}
  .ingredient-process-row>div:nth-child(2){grid-column:1/2;}.ingredient-process-row>.delete-mini{grid-column:2;grid-row:1;}
  .recipe-view-overview.has-image{grid-template-columns:1fr}.recipe-view-photo{width:min(100%,360px);aspect-ratio:1/1}
  .recipe-view-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-view-meta>div:nth-child(2n){border-right:0}
  .recipe-components-head{display:block}.recipe-components-title{margin-bottom:8px}.recipe-inline-scale{grid-template-columns:minmax(90px,.55fr) minmax(170px,1.25fr) auto auto}
  #modalProdutoForm .ingredient-primary-unit{grid-template-columns:32px minmax(0,1fr);}
  #modalProdutoForm .ingredient-primary-unit-slot{grid-column:2;}
  #modalProdutoForm .ingredient-advanced-heading{align-items:flex-start;flex-direction:column;}
  #modalProdutoForm .ingredient-unit-summary{max-width:100%;}
  #modalProdutoForm .ingredient-unit-options{grid-template-columns:1fr;}
  #modalProdutoForm .ingredient-unit-panel-action{align-items:stretch;flex-direction:column;}
  #modalProdutoForm .ingredient-unit-panel-action .kc-button{width:100%;}
  #modalProdutoForm .ingredient-usage-row,
  #modalProdutoForm .ingredient-package-main{grid-template-columns:1fr 1fr;}
  #modalProdutoForm .ingredient-usage-row .kc-field:first-child,
  #modalProdutoForm .ingredient-package-main .kc-field:first-child{grid-column:1/-1;}
  #modalProdutoForm .ingredient-package-equivalence{grid-column:1/-1;}
  #modalProdutoForm .ingredient-row-link{display:none;}
  #modalProdutoForm .ingredient-package-commercial{grid-template-columns:1fr;}
  #modalProdutoForm .ingredient-bridge-row{grid-template-columns:1fr 1fr;}
  #modalProdutoForm .ingredient-equation{display:none;}
  #modalProdutoForm .ingredient-bridge-estimated{grid-column:1/-1;margin-top:0;}
  #modalProdutoForm .ingredient-measure-remove{grid-column:1/-1;width:100%;}
  #modalProdutoForm .ingredient-brand-list{grid-template-columns:1fr;}
  #modalProdutoForm .ingredient-brands-heading{align-items:stretch;flex-direction:column;}
  #modalProdutoForm .ingredient-brands-heading .kc-button{width:100%;}
  #modalProdutoForm .ingredient-brands-foot{align-items:flex-start;flex-direction:column;gap:var(--kc-space-1);}
}
@media(max-width:600px){
  .recipe-task-reuse-backdrop{align-items:end;padding:0;}.recipe-task-reuse{width:100%;max-height:90dvh;border-width:1px 0 0;border-radius:var(--kc-radius-xl) var(--kc-radius-xl) 0 0;}.recipe-task-reuse>header{padding:var(--kc-space-4);}.recipe-task-reuse-toolbar{align-items:stretch;flex-direction:column;padding:var(--kc-space-3) var(--kc-space-4);}.recipe-task-reuse-toolbar .kc-button{width:100%;}.recipe-task-reuse-results{padding:var(--kc-space-3) var(--kc-space-4);}.recipe-task-reuse-option{grid-template-columns:minmax(0,1fr);gap:var(--kc-space-2);}.recipe-task-reuse-target{grid-template-columns:20px minmax(0,1fr);}.recipe-task-reuse-target em{grid-column:2;justify-self:start;padding:0;}.recipe-task-reuse>footer{align-items:stretch;flex-direction:column;padding:var(--kc-space-3) var(--kc-space-4) calc(var(--kc-space-3) + env(safe-area-inset-bottom));}.recipe-task-reuse>footer>div{display:grid;grid-template-columns:1fr 1fr;}.recipe-task-section-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;}.recipe-task-section-actions .kc-button{width:100%;}.recipe-task-template-actions{flex:1 1 100%;flex-wrap:wrap;margin-left:42px;}.recipe-task-apply{margin-right:auto;}.recipe-task-context-panel>header,.recipe-step-task-suggestion{align-items:stretch;flex-direction:column}.recipe-task-context-panel>header span{text-align:left}.recipe-step-task-suggestion .kc-button{width:100%}
  .recipe-print-choice-backdrop{align-items:end;padding:0;}.recipe-print-choice{width:100%;border-width:1px 0 0;border-radius:var(--kc-radius-xl) var(--kc-radius-xl) 0 0;}.recipe-print-choice>header{padding:var(--kc-space-4);}.recipe-print-choice-options{grid-template-columns:1fr;padding:var(--kc-space-3) var(--kc-space-4) calc(var(--kc-space-4) + env(safe-area-inset-bottom));}.recipe-print-choice-options>button{grid-template-columns:38px minmax(0,1fr);align-items:center;min-height:82px;}.recipe-print-choice-options>button>span{grid-row:1/3;}.recipe-print-choice-options>button>strong,.recipe-print-choice-options>button>small{grid-column:2;}
  .recipe-linked-yield-backdrop{align-items:end;padding:0;}
  .recipe-linked-yield-modal{width:100%;max-height:90dvh;border-width:1px 0 0;border-radius:var(--kc-radius-lg) var(--kc-radius-lg) 0 0;}
  .recipe-linked-yield-header{padding:var(--kc-space-4);}
  .recipe-linked-yield-body{padding:var(--kc-space-3) var(--kc-space-4);}
  .recipe-linked-yield-primary{grid-template-columns:1fr 1fr;}
  .recipe-linked-yield-primary>div{grid-column:1/-1;}
  .recipe-linked-yield-secondary>header{align-items:stretch;flex-direction:column;}
  .recipe-linked-yield-secondary>header .kc-button{width:100%;}
  .recipe-linked-yield-row{grid-template-columns:1fr 1fr 36px;}
  .recipe-linked-yield-row label:first-child{grid-column:1/-1;}
  .recipe-linked-yield-footer{padding:var(--kc-space-3) var(--kc-space-4) calc(var(--kc-space-3) + env(safe-area-inset-bottom));}
  .recipe-linked-yield-footer .kc-button{flex:1;}
  .recipe-preparation-texts-backdrop{align-items:end;padding:0;}
  .recipe-preparation-texts{width:100%;max-height:86dvh;border-width:1px 0 0;border-radius:var(--kc-radius-lg) var(--kc-radius-lg) 0 0;}
  .recipe-preparation-texts-header{padding:var(--kc-space-4);}
  .recipe-preparation-texts-body{padding:var(--kc-space-3) var(--kc-space-4);}
  .recipe-preparation-text-option{grid-template-columns:minmax(0,1fr) 24px;gap:var(--kc-space-2);}
  .recipe-preparation-text-option>span{grid-column:1;}
  .recipe-preparation-text-option>strong{grid-column:1;}
  .recipe-preparation-text-option>svg{grid-column:2;grid-row:1/3;}
  .recipe-preparation-text-edit{grid-template-columns:28px minmax(0,1fr) 36px;}
  .recipe-preparation-text-edit select{grid-column:2;}
  .recipe-preparation-text-edit textarea{grid-column:1/-1;}
  .recipe-preparation-text-edit .recipe-delete-row{grid-column:3;grid-row:1;}
  .recipe-preparation-texts-footer{padding:var(--kc-space-3) var(--kc-space-4) calc(var(--kc-space-3) + env(safe-area-inset-bottom));}
  .recipe-preparation-texts-footer .kc-button{flex:1;}
  .recipe-save-notice{top:auto;right:12px;bottom:12px;left:12px;max-width:none;}
  .recipe-form-grid{grid-template-columns:1fr;}
  .recipe-task-template-head{align-items:flex-start;flex-wrap:wrap;padding:var(--kc-space-3);}
  .recipe-task-template-toggle{flex:1 1 calc(100% - 46px);}
  .recipe-task-template-grid{grid-template-columns:1fr;}
  .recipe-task-context-grid{grid-template-columns:1fr;}
  .recipe-task-component-picker>div{grid-template-columns:1fr;}
  .recipe-task-context-grid .recipe-task-field,.recipe-task-context-grid .recipe-task-field.span-3,.recipe-task-context-grid .recipe-task-field.span-6,.recipe-task-context-grid .recipe-task-field.span-12,.recipe-task-context-grid .recipe-task-calculation-note,.recipe-task-context-grid .recipe-task-calculation-note.span-3{grid-column:1;}
  .recipe-task-field,.recipe-task-field.span-3,.recipe-task-field.span-4,.recipe-task-field.span-6,.recipe-task-field.span-8,.recipe-task-field.span-12,.recipe-task-calculation-note,.recipe-task-calculation-note.span-3,.recipe-task-calculation-note.span-6,.recipe-task-calculation-note.span-12,.recipe-task-auto-quantity,.recipe-task-auto-quantity.span-6{grid-column:1;}
  .recipe-task-template-summary{align-items:flex-start;flex-direction:column;gap:var(--kc-space-1);}
  .recipe-task-compact-row{align-items:center;flex-direction:row;gap:var(--kc-space-2);white-space:nowrap;}.recipe-task-compact-row>strong{flex:0 0 min(42%,150px);min-width:0;}.recipe-task-compact-row>div{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;}
  .recipe-scheduled-task-view-card>header{flex-direction:column;}.recipe-scheduled-task-view-card>header>span{flex:auto;}
  .recipe-field,.recipe-field.span-2,.recipe-field.span-3,.recipe-field.span-6,.recipe-field.span-8,.recipe-field.span-12,.recipe-field.mobile-full{grid-column:1;}
  .recipe-summary-alerts{align-items:stretch;}
  .recipe-summary-alerts span{width:fit-content;border-radius:7px;}
  .recipe-tag-composer{grid-template-columns:minmax(0,1fr) 42px;}
  .recipe-tag-suggestions{grid-template-columns:1fr;gap:3px;}
  .recipe-context-create{grid-template-columns:minmax(0,1fr) 36px;}
  .recipe-context-create input{grid-column:1/-1;}
  .recipe-context-create button:not(.muted){grid-column:1;}
  .recipe-context-create button.muted{grid-column:2;}
  .recipe-overview-ingredients-columns{display:none}
  .recipe-overview-ingredient-row{grid-template-columns:minmax(100px,.9fr) minmax(100px,.9fr) minmax(70px,.55fr);gap:8px;padding:9px 0}
  .recipe-overview-ingredient-name{grid-column:1/-1}
  .recipe-overview-ingredient-row>span,.recipe-overview-editable{display:grid;gap:2px;white-space:normal}
  .recipe-overview-ingredient-row>span::before,.recipe-overview-editable::before{content:attr(data-label);color:#7b8799;font-size:7px;font-weight:900;text-transform:uppercase}
  .recipe-overview-editable{grid-template-columns:minmax(0,1fr) auto;align-items:center}.recipe-overview-editable::before{grid-column:1/-1}.recipe-overview-editable input{width:100%}.recipe-overview-cost{text-align:left}
  .recipe-history{flex-wrap:wrap;gap:8px 18px}
  .recipe-operational-history-item{grid-template-columns:minmax(100px,.3fr) minmax(0,1fr)}.recipe-operational-history-meta{grid-column:1/-1;justify-content:flex-start}
  .recipe-inline-scale{grid-template-columns:minmax(82px,.55fr) minmax(0,1.45fr)}.recipe-inline-scale-quick,.recipe-inline-scale-summary{grid-column:1/-1}.recipe-inline-scale-quick button{flex:1}.recipe-inline-scale-summary>span{flex:1;min-width:0}.recipe-inline-scale-summary>span:last-child{min-width:0}
}
@media(max-width:430px){
  .recipe-mobile-category-filter{grid-template-columns:1fr;}
  .recipe-mobile-category-filter>label{grid-column:1;}
  .recipe-mobile-category-filter>div{display:grid;grid-template-columns:1fr 1fr;}
  .recipe-mobile-category-filter .kc-button{width:100%;}
  .recipe-library-tools{grid-template-columns:1fr;}.recipe-library-tools .recipe-library-field:first-child{grid-column:auto;}
  .recipe-sheet-header{position:relative;gap:6px;padding:8px 156px 8px 9px;}
  .recipe-sheet-title h3{font-size:16px;}
  .recipe-sheet-title p{display:none;}
  .recipe-sheet-actions{position:absolute;right:9px;top:50%;transform:translateY(-50%);flex:0 0 auto;min-width:0;gap:3px;}
  .recipe-sheet-actions button,.recipe-sheet-actions .icon-only{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border-radius:6px;}
  .recipe-form-grid{grid-template-columns:1fr;}.recipe-field,.recipe-field.span-2,.recipe-field.span-3,.recipe-field.span-6,.recipe-field.span-8,.recipe-field.span-12,.recipe-field.mobile-full{grid-column:1;}
  .recipe-output-grid{grid-template-columns:1fr;}.recipe-secondary-list{grid-column:1;}
  .recipe-operational-safety{grid-column:1;padding:10px;}
  .recipe-image-add{grid-template-columns:1fr;}
  .recipe-image-crop-editor{padding:var(--kc-space-3);}
  .recipe-image-crop-editor>footer{grid-template-columns:1fr 1fr;}
  .recipe-image-crop-editor>footer>span{display:none;}
  .recipe-image-crop-editor>footer .kc-button:first-child{grid-column:1/-1;}
  .recipe-tag-composer{grid-template-columns:minmax(0,1fr) 42px;}
  .recipe-context-create{grid-template-columns:minmax(0,1fr) 36px;}
  .recipe-context-create input{grid-column:1/-1;}
  .recipe-context-create button:not(.muted){grid-column:1;}
  .recipe-context-create button.muted{grid-column:2;}
  .recipe-validity-row{grid-template-columns:minmax(0,1fr) 34px;}
  .recipe-validity-row label{grid-column:1;}
  .recipe-validity-row .recipe-delete-row{grid-column:2;grid-row:1;}
  .recipe-picker-backdrop{align-items:end;padding:0;}
  .recipe-picker{width:100%;max-height:82dvh;border-width:1px 0 0;border-radius:8px 8px 0 0;}
  .recipe-picker header{padding:13px 14px;}
  .recipe-picker-toolbar{grid-template-columns:1fr;padding:10px 14px;}
  .recipe-picker-create{width:100%;}
  .recipe-picker-filter{width:40px;height:40px;}
  .recipe-picker-results{padding:8px 14px 14px;}
  .recipe-picker-footer{align-items:stretch;flex-direction:column;padding:10px 14px calc(10px + env(safe-area-inset-bottom));}
  .recipe-picker-footer>div{display:grid;grid-template-columns:1fr 1fr;}
  .recipe-picker-footer .kc-button{width:100%;}
  .recipe-view-meta{grid-template-columns:1fr}.recipe-view-meta>div{border-right:0;border-bottom:1px solid #e4eaf1}.recipe-view-meta>div:last-child{border-bottom:0}
  .recipe-overview-ingredient-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .recipe-overview-ingredient-row>span{text-align:left}
  .recipe-history{display:grid;grid-template-columns:1fr}
  .recipe-operational-history-item{grid-template-columns:1fr;gap:var(--kc-space-2)}.recipe-operational-history-meta{grid-column:auto}.recipe-operational-history-meta .kc-badge{max-width:100%;white-space:normal}
  .recipe-components-title p{font-size:9px}.recipe-inline-scale-reset span{display:none}
}

/* A ficha vive dentro de um editor lateral. A quebra considera a largura real do bloco,
   não apenas a largura da janela, para que nenhuma ação dependa de rolagem horizontal. */
@container (max-width:1150px){
  .recipe-table-wrap,.recipe-direct-part .recipe-table-wrap{overflow:visible;}
  .recipe-table{display:block;min-width:0;}
  .recipe-table thead{display:none;}
  .recipe-table tbody{display:grid;gap:var(--kc-space-2);}
  .recipe-table tr{position:relative;display:grid;grid-template-columns:minmax(210px,1.35fr) minmax(155px,.9fr) minmax(84px,.45fr) minmax(105px,.55fr) 40px;gap:var(--kc-space-2);padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);}
  .recipe-table td{display:block;padding:0!important;border:0;min-width:0;}
  .recipe-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.025em;text-transform:uppercase;}
  .recipe-table td:nth-child(1){grid-column:1;grid-row:1;}
  .recipe-table td:nth-child(2){grid-column:2;grid-row:1;}
  .recipe-table td:nth-child(3){grid-column:3;grid-row:1;}
  .recipe-table td:nth-child(4){grid-column:4;grid-row:1;}
  .recipe-table td:nth-child(5){grid-column:1/4;grid-row:2;}
  .recipe-table td:nth-child(6){grid-column:4/6;grid-row:2;}
  .recipe-table td.recipe-table-action{position:static;grid-column:5;grid-row:1;align-self:end;justify-self:end;}
  .recipe-table td.recipe-table-action::before{content:"";display:block;height:calc(var(--kc-font-size-2xs) + var(--kc-space-1));margin-bottom:var(--kc-space-1);}
  .recipe-table-output{min-height:38px;}
}

@container (max-width:650px){
  .recipe-table tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px;}
  .recipe-table td:nth-child(1){grid-column:1/3;grid-row:1;}
  .recipe-table td.recipe-table-action{grid-column:3;grid-row:1;align-self:start;}
  .recipe-table td.recipe-table-action::before{display:none;}
  .recipe-table td:nth-child(2){grid-column:1/4;grid-row:2;}
  .recipe-table td:nth-child(3){grid-column:1;grid-row:3;}
  .recipe-table td:nth-child(4){grid-column:2/4;grid-row:3;}
  .recipe-table td:nth-child(5){grid-column:1/4;grid-row:4;}
  .recipe-table td:nth-child(6){grid-column:1/4;grid-row:5;}
  .recipe-ingredient-control{grid-template-columns:minmax(0,1fr) 38px;}
  .recipe-ingredient-edit{width:38px;min-width:38px;}
  .recipe-step-toolbar{grid-template-columns:34px minmax(0,1fr) auto 36px;}
  .recipe-step-toolbar>.recipe-step-number{grid-column:1;grid-row:1;}
  .recipe-step-toolbar>select{grid-column:2;grid-row:1;}
  .recipe-step-toolbar>.recipe-step-order{grid-column:3;grid-row:1;}
  .recipe-step-toolbar>.recipe-delete-row{grid-column:4;grid-row:1;}
  .recipe-step-toolbar>.recipe-step-quick-meta{grid-column:1/-1;grid-row:2;grid-template-columns:110px minmax(0,1fr);}
  .recipe-step-image-add{width:100%;min-height:38px;}
  .recipe-step.is-just-moved::after{right:var(--kc-space-2);bottom:var(--kc-space-2);}
}

@container (max-width:430px){
  .recipe-step-toolbar{grid-template-columns:30px minmax(0,1fr) 36px;}
  .recipe-step-number{grid-column:1;grid-row:1;}
  .recipe-step-toolbar>select{grid-column:2;grid-row:1;}
  .recipe-step-toolbar>.recipe-delete-row{grid-column:3;grid-row:1;}
  .recipe-step-order{grid-column:2/4;grid-row:2;justify-content:flex-end;}
  .recipe-step-toolbar>.recipe-step-quick-meta{grid-column:1/4;grid-row:3;grid-template-columns:104px minmax(0,1fr);}
}

/* Proteção para navegadores com zoom ou escala de interface: nesses casos a área útil
   pode encolher antes de a consulta de contêiner refletir a largura visual esperada. */
@media(max-width:1600px) and (min-width:761px){
  .recipe-table-wrap,.recipe-direct-part .recipe-table-wrap{overflow:visible;}
  .recipe-table{display:block;min-width:0;}
  .recipe-table thead{display:none;}
  .recipe-table tbody{display:grid;gap:var(--kc-space-2);}
  .recipe-table tr{position:relative;display:grid;grid-template-columns:minmax(210px,1.35fr) minmax(155px,.9fr) minmax(84px,.45fr) minmax(105px,.55fr) 40px;gap:var(--kc-space-2);padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);}
  .recipe-table td{display:block;padding:0!important;border:0;min-width:0;}
  .recipe-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.025em;text-transform:uppercase;}
  .recipe-table td:nth-child(1){grid-column:1;grid-row:1;}
  .recipe-table td:nth-child(2){grid-column:2;grid-row:1;}
  .recipe-table td:nth-child(3){grid-column:3;grid-row:1;}
  .recipe-table td:nth-child(4){grid-column:4;grid-row:1;}
  .recipe-table td:nth-child(5){grid-column:1/4;grid-row:2;}
  .recipe-table td:nth-child(6){grid-column:4/6;grid-row:2;}
  .recipe-table td.recipe-table-action{position:static;grid-column:5;grid-row:1;align-self:end;justify-self:end;}
  .recipe-table td.recipe-table-action::before{content:"";display:block;height:calc(var(--kc-font-size-2xs) + var(--kc-space-1));margin-bottom:var(--kc-space-1);}
  .recipe-table-output{min-height:38px;}
}

@media(max-width:760px){
  .recipe-component-guidance__item{grid-template-columns:1fr;align-items:stretch;}
  .recipe-component-guidance__item>.kc-button{width:100%;}
  .recipe-table tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px;padding:var(--kc-space-3);padding-right:var(--kc-space-3);}
  .recipe-table td[data-label]::before{content:attr(data-label);}
  .recipe-table td:nth-child(1){grid-column:1/3;grid-row:1;}
  .recipe-table td.recipe-table-action{position:static;grid-column:3;grid-row:1;align-self:start;justify-self:end;}
  .recipe-table td.recipe-table-action::before{display:none;}
  .recipe-table td:nth-child(2){grid-column:1/4;grid-row:2;}
  .recipe-table td:nth-child(3){grid-column:1;grid-row:3;}
  .recipe-table td:nth-child(4){grid-column:2/4;grid-row:3;}
  .recipe-table td:nth-child(5){grid-column:1/4;grid-row:4;}
  .recipe-table td:nth-child(6){grid-column:1/4;grid-row:5;}
  .recipe-step{grid-template-columns:minmax(0,1fr)!important;}
  .recipe-step-toolbar,.recipe-step-description{grid-column:1!important;grid-row:auto!important;}
  .recipe-step-toolbar>select,.recipe-step-description>textarea,.recipe-step-time-control>.recipe-step-time,.recipe-step-toolbar>.recipe-step-order,.recipe-step-toolbar>.recipe-delete-row,.recipe-step-quick-meta>.recipe-step-image-control{grid-column:auto;grid-row:auto;}
  .recipe-step-toolbar{grid-template-columns:34px minmax(0,1fr) auto 36px;}
  .recipe-step-toolbar>.recipe-step-number{grid-column:1;grid-row:1;}
  .recipe-step-toolbar>select{grid-column:2;grid-row:1;}
  .recipe-step-toolbar>.recipe-step-order{grid-column:3;grid-row:1;}
  .recipe-step-toolbar>.recipe-delete-row{grid-column:4;grid-row:1;}
  .recipe-step-toolbar>.recipe-step-quick-meta{grid-column:1/-1;grid-row:2;grid-template-columns:110px minmax(0,1fr);}
  .recipe-step-quick-meta .recipe-step-image-add{width:100%;}
}

@media(max-width:430px){
  .recipe-step-toolbar{grid-template-columns:30px minmax(0,1fr) 36px;}
  .recipe-step-toolbar>.recipe-step-number{grid-column:1;grid-row:1;}
  .recipe-step-toolbar>select{grid-column:2;grid-row:1;}
  .recipe-step-toolbar>.recipe-delete-row{grid-column:3;grid-row:1;}
  .recipe-step-toolbar>.recipe-step-order{grid-column:2/4;grid-row:2;justify-content:flex-end;}
  .recipe-step-toolbar>.recipe-step-quick-meta{grid-column:1/4;grid-row:3;grid-template-columns:104px minmax(0,1fr);}
  .recipe-step-time-control>.recipe-step-time{grid-column:1;grid-row:1;}
}

.recipe-unsaved-backdrop{position:absolute;z-index:120;inset:0;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.55);opacity:0;transition:opacity .16s ease;}
.recipe-unsaved-backdrop[hidden]{display:none;}
.recipe-unsaved-backdrop.active{opacity:1;}
.recipe-unsaved-dialog{width:min(480px,calc(100% - 28px));border:1px solid #d7e0eb;border-radius:8px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.24);}
.recipe-unsaved-dialog>header{padding:18px 18px 8px;}
.recipe-unsaved-dialog h4{margin:0 0 4px;color:#172033;font-size:20px;}
.recipe-unsaved-dialog header p,.recipe-unsaved-message{color:#64748b;font-size:11px;font-weight:700;line-height:1.4;}
.recipe-unsaved-dialog header p{margin:0;}
.recipe-unsaved-message{padding:0 18px 16px;margin:0;}
.recipe-unsaved-dialog>footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 18px;border-top:1px solid #e3e9f1;background:#fbfcfe;}
.recipe-unsaved-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 14px;border:1px solid #d5deea;border-radius:7px;background:#fff;color:#25344a;font-size:11px;font-weight:900;}
.recipe-unsaved-dialog .primary{border-color:#2563eb;background:#2563eb;color:#fff;}
.recipe-unsaved-dialog .danger{border-color:#fecaca;background:#fff;color:#b91b1b;}

#receitas .recipe-master-item.recipe-filter-hidden{display:none!important;}
#recipeGroupList .recipe-group-all{--entity-color:#2563eb;cursor:pointer;}
#recipeGroupList .recipe-group-all .entity-color-dot{background:#2563eb;}
#recipeGroupList .recipe-group-all .group-main{gap:12px;}
#recipeGroupList .recipe-group-uncategorized{--entity-color:#64748b;cursor:pointer;border-style:dashed;background:var(--kc-color-slate-50);}
#recipeGroupList .recipe-group-uncategorized .entity-color-dot{background:#64748b;box-shadow:0 0 0 3px rgba(100,116,139,.1);}
#recipeGroupList .recipe-group-uncategorized .group-main{gap:12px;}
#recipeGroupList .recipe-group-uncategorized.active{border-style:solid;background:color-mix(in srgb,var(--kc-color-primary) 7%,var(--kc-color-surface));}

@media(min-width:1051px){
  #adminApp>.admin-sidebar{z-index:50001;}
  #modalReceita.recipe-sheet-backdrop{left:0!important;right:0!important;width:100vw!important;border-left:0;transition:none;}
}

@media(max-width:600px){
  .recipe-unsaved-backdrop{align-items:end;padding:0;}
  .recipe-unsaved-dialog{width:100%;border-width:1px 0 0;border-radius:8px 8px 0 0;}
  .recipe-unsaved-dialog>footer{display:grid;grid-template-columns:1fr 1fr;padding-bottom:calc(14px + env(safe-area-inset-bottom));}
  .recipe-unsaved-dialog>footer .primary{grid-column:1/-1;grid-row:1;}
}
