.cross-recipe-page .cross-recipe-fields { display: grid; grid-template-columns: minmax(0,2fr) minmax(120px,1fr); gap: 14px; align-items: end; }
.cross-recipe-page label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
body .app-shell .cross-recipe-page :is(input:not([type=checkbox]),select) { box-sizing: border-box; width: 100%; min-width: 0; height: 44px !important; min-height: 44px !important; max-height: none !important; }
.cross-recipe-page .cross-recipe-configuration { display: flex; flex-direction: column; gap: 20px; }
.cross-recipe-page .erp-checkbox-label { flex-direction: row; align-items: center; min-height: 44px; gap: 8px; }
.cross-recipe-page .erp-checkbox-label input { width: 20px; height: 20px; accent-color: #245e8b; }
body .app-shell .cross-recipe-page textarea { box-sizing: border-box; width: 100%; height: auto !important; min-height: 100px !important; }
.cross-recipe-page .cross-recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cross-recipe-page .erp-action-button { min-height: 44px; }
.cross-recipe-page .cross-recipe-table { max-width: 100%; margin-top: 12px; }
.cross-budget-breakdown .ai-budget-lines-table { min-width: 0; }
.cross-budget-breakdown .ai-budget-lines-table td:first-child { overflow-wrap: anywhere; }
.cross-budget-amount,
.cross-budget-breakdown .ai-budget-summary-list dd { white-space: nowrap; }
.cross-budget-breakdown .ai-budget-summary-list :is(dt, dd) { min-width: 0; }
.cross-budget-breakdown > p { margin-top: 12px; }
@media(max-width:800px) {
 .cross-budget-breakdown .ai-budget-lines-table td:first-child { font-weight: 700; }
 .cross-budget-breakdown .ai-budget-lines-table td:last-child { justify-items: start; }
}
@media(max-width:720px) {
 .cross-recipe-page .cross-recipe-fields { grid-template-columns: minmax(0,1fr); }
 .cross-recipe-page .cross-recipe-actions > * { width: 100%; justify-content: center; }
}
.cross-recipe-page { --erp-ui-control-height: 44px; --erp-action-height: 44px; display: flex; flex-direction: column; gap: 16px; }
.cross-recipe-page h2 { margin: 0 0 16px; }
.cross-model-selected { display: grid; grid-template-columns: 100px minmax(0,1fr) auto; align-items: center; gap: 18px; }
.cross-model-selected img { width: 100px; height: 100px; object-fit: contain; background: white; border: 1px solid #dbe4ee; border-radius: 10px; }
.cross-model-selected strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.cross-model-selected small { display: block; color: #64748b; margin-top: 6px; }
.cross-model-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cross-budget-line-description { margin-top: 10px; min-width: 0; }
.cross-budget-line-description summary { color: #245e8b; cursor: pointer; font-weight: 600; }
.cross-budget-line-description > div { margin-top: 12px; white-space: pre-line; line-height: 1.6; font-size: .92rem; overflow-wrap: anywhere; }
.cross-model-catalog-popup { --erp-action-height: 44px; --erp-ui-control-height: 44px; }
.cross-model-catalog { min-width: 0; }
.cross-model-catalog > label { display: block; margin-bottom: 8px; font-weight: 600; }
body .erp-popup .cross-model-catalog input { width: 100%; box-sizing: border-box; height: 44px !important; min-height: 44px !important; max-height: none !important; }
.cross-model-count { margin: 10px 0 14px; color: #64748b; }
.cross-model-results { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,190px),1fr)); gap: 14px; max-height: 58vh; overflow-y: auto; padding: 3px; }
.cross-model-card { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; min-width: 0; border: 2px solid #dbe4ee; border-radius: 12px; background: white; text-align: left; font: inherit; color: #15273b; cursor: pointer; touch-action: manipulation; }
.cross-model-card img { width: 100%; height: 145px; object-fit: contain; }
.cross-model-card strong { font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.cross-model-card small { margin-top: auto; color: #64748b; }
.cross-model-card[aria-pressed="true"] { border-color: var(--erp-soft-border); background: var(--erp-soft-surface); }
.cross-model-card:focus-visible { outline: 3px solid #1264a3; outline-offset: 2px; }
.cross-model-card:disabled { opacity: .6; cursor: default; }
.cross-recipe-page .recipe-visual-options { grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); }
.cross-recipe-page .recipe-visual-option-empty { grid-column: 1 / -1; min-height: 44px; }
.cross-recipe-page .recipe-visual-selector .recipe-visual-option { box-sizing: border-box; justify-content: flex-start; padding: 0; overflow: hidden; gap: 0; background: white; }
.cross-recipe-page .recipe-visual-selector .recipe-visual-option img { display: block; box-sizing: border-box; width: 100%; max-width: 100%; flex-shrink: 0; height: clamp(180px,22vw,250px); aspect-ratio: auto; max-height: none; object-fit: contain; padding: 16px; background: transparent; filter: drop-shadow(0 5px 7px rgba(34,30,26,.12)); }
.cross-recipe-page .recipe-visual-selector .recipe-visual-option-label { box-sizing: border-box; width: 100%; padding: 13px 16px; margin-top: auto; color: #1a2c3a; background: transparent; line-height: 1.45; }
.cross-recipe-page .recipe-visual-selector:has(img[src*="perfil-120"]) .recipe-visual-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cross-recipe-page .recipe-visual-check { top: 8px; bottom: auto; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: white; color: #1264a3; }
.cross-recipe-page .recipe-visual-check:empty { display: none; }
.cross-recipe-page .recipe-visual-option-empty { padding-right: 40px; }
.cross-option-help { margin: -8px 0 0; color: #475569; line-height: 1.5; font-size: .92rem; }
.cross-render-note { color: #64748b; font-size: .9rem; }
.cross-recipe-page .cross-budget-group { min-width: 0; display: grid; gap: 8px; }
.cross-recipe-page .cross-budget-group-heading { margin: 0; }
.cross-recipe-page .cross-budget-group-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  box-sizing: border-box;
  text-align: start;
  font: inherit;
  line-height: 1.25;
  color: var(--erp-action-secondary, #1764a5);
  border: 1px solid transparent;
  border-radius: var(--erp-action-radius, 12px);
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.cross-recipe-page .cross-budget-group-toggle:focus-visible { outline: 2px solid #1264a3; outline-offset: 2px; }
.cross-recipe-page .cross-budget-group-title { grid-column: 1; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.cross-recipe-page .cross-budget-group-summary { grid-column: 1; color: var(--erp-muted, #475569); font-size: .9rem; overflow-wrap: anywhere; }
.cross-recipe-page .cross-budget-group-chevron { grid-column: 2; grid-row: 1 / span 2; display: grid; color: #1264a3; }
.cross-recipe-page .cross-budget-group-toggle[aria-expanded="true"] .cross-budget-group-chevron { transform: rotate(90deg); }
.cross-recipe-page .cross-budget-group-content {
  padding: 16px; min-width: 0; margin: 0;
  border: 1px solid var(--erp-template-border, #d5e0ea);
  border-radius: var(--erp-template-radius, 10px);
  background: var(--erp-template-surface, #fff);
}
.cross-recipe-page .cross-budget-group-content[hidden] { display: none; }
.cross-recipe-page .cross-budget-group-content > .recipe-visual-selector { margin-top: 0; }
.cross-recipe-page .cross-budget-group-content > .recipe-visual-selector > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cross-price-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 14px; margin: 20px 0; }
.cross-price-option { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 2px solid #b8cbdc; border-radius: 12px; background: #f7fafc; color: #15273b; font: inherit; text-align: left; cursor: pointer; min-height: 180px; }
.cross-price-option[aria-pressed="true"] { border-color: #1264a3; background: #e8f3fb; box-shadow: 0 0 0 1px #1264a3; }
.cross-price-option:focus-visible { outline: 3px solid #1264a3; outline-offset: 3px; }
.cross-price-option:disabled { opacity: .65; cursor: wait; }
.cross-price-option > strong:first-child { font-size: 1.35rem; }
.cross-price-unit-cost, .cross-price-cross-sale { line-height: 1.5; overflow-wrap: anywhere; }
.cross-price-cross-sale { font-weight: 600; color: #245e8b; }
.cross-price-option[aria-pressed="true"] .cross-price-selection-label { color: #c2410c; font-weight: 700; }
.cross-price-model-comparison { display: flex; flex-direction: column; gap: 6px; line-height: 1.5; overflow-wrap: anywhere; }
.cross-model-selector > .cross-model-selected + .cross-model-selected { margin-top: 12px; }
.cross-additional-costs { border: 1px solid #cbd7e3; border-radius: 12px; padding: 18px; }
.cross-cost-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cross-cost-tabs button { min-height: 44px; height: auto; max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; padding: 10px 18px; border: 1px solid #b8cbdc; border-radius: 8px; background: #f7fafc; color: #15273b; font: inherit; font-weight: 600; cursor: pointer; }
.cross-cost-tabs button[aria-selected="true"] { background: var(--erp-soft-surface); border-color: var(--erp-soft-border); color: var(--erp-soft-text); }
.cross-cost-tabs button:focus-visible { outline: 3px solid #1264a3; outline-offset: 3px; }
.cross-material-row { display: grid; grid-template-columns: minmax(150px,2fr) minmax(80px,.65fr) minmax(130px,1fr) auto auto; align-items: end; gap: 12px; margin-bottom: 14px; }
.cross-material-row > label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cross-additional-total { margin-top: 18px; padding-top: 14px; border-top: 1px solid #dbe4ee; }
@media(max-width:720px) { .cross-material-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .cross-material-row > label:first-child { grid-column: 1 / -1; } .cross-cost-tabs > button { flex: 1 1 180px; } }
.cross-recipe-page,
.cross-recipe-page > :is(header,section),
.cross-model-selector,
.cross-model-selected > div,
.cross-model-catalog,
.cross-model-card { min-width: 0; max-width: 100%; box-sizing: border-box; }
.cross-recipe-page :is(h1,h2,p,legend,.recipe-visual-option-label),
.cross-model-selected :is(strong,small),
.cross-model-card :is(strong,small),
.cross-model-catalog > label,
.cross-model-count { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
@media(max-width:600px) {
 .cross-recipe-page .recipe-visual-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .cross-model-selected { grid-template-columns: 76px minmax(0,1fr); gap: 12px; }
 .cross-model-selected img { width: 76px; height: 76px; }
 .cross-model-selected > button { grid-column: 1 / -1; width: 100%; }
 .cross-model-actions { grid-column: 1 / -1; }
 .cross-model-actions > button { flex: 1 1 150px; justify-content: center; }
 .cross-model-results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .cross-model-card { padding: 9px; }
 .cross-model-card img { height: 110px; }
}
