body[data-active-tab="cotizador"] #summaryPanel { display:none; }
body[data-active-tab="cotizador"] .mini-metric { display:none; }
body[data-active-tab="cotizador"] .brand-info p { display:none; }
body[data-active-tab="cotizador"] .header-primary { grid-template-columns:minmax(0,1fr) auto; }
body[data-active-tab="cotizador"] .header-metrics { min-width:0; padding:0; border:0; box-shadow:none; background:none; }
body[data-active-tab="cotizador"] #layoutMain { min-width:0; }
section#panel-cotizador { border:0; border-radius:0; box-shadow:none; padding:24px; }
#quotingApp { --cq-ink:#172c43; --cq-muted:#5c6b79; --cq-line:#dce2e7; color:var(--cq-ink); font-size:14px; letter-spacing:0; min-width:0; }
#quotingApp * { letter-spacing:0; }
#quotingApp h2, #quotingApp h3, #quotingApp p { margin:0; }
#quotingApp h2 { font-size:24px; line-height:1.3; }
#quotingApp h3 { font-size:16px; color:var(--cq-ink); font-weight:700; text-transform:none; line-height:1.4; }
.cq-header, .cq-section-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
#quotingApp .cq-header p { font-size:13px; margin-top:5px; color:var(--cq-muted); }
.cq-tabs { display:flex; gap:22px; border-bottom:1px solid var(--cq-line); margin:20px 0 0; align-items:center; }
.cq-tabs button { background:none; color:var(--cq-muted); border:0; border-bottom:3px solid transparent; padding:12px 1px; cursor:pointer; border-radius:0; font:inherit; font-weight:600; }
.cq-tabs button[aria-current] { color:#102b4c; border-bottom-color:#f97316; }
.cq-tabs #cq-refresh { margin-left:auto; padding:9px; }
.cq-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(290px,340px); gap:32px; align-items:start; }
.cq-section { padding:23px 0; border-bottom:1px solid var(--cq-line); min-width:0; }
#quotingApp .cq-section h3 { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.cq-section h3 > span { display:inline-flex; align-items:center; justify-content:center; width:25px; height:25px; flex:none; border-radius:50%; background:#edf1f5; color:#465769; font-size:12px; }
.cq-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px 18px; }
.cq-grid-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.cq-wide { grid-column:1/-1; }
.cq-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
#quotingApp label { font-size:12px; color:#425264; line-height:1.45; font-weight:600; text-transform:none; }
#quotingApp input:not([type="checkbox"]), #quotingApp select, #quotingApp textarea { width:100%; min-width:0; max-width:100%; border:1px solid #d3d9df; border-radius:5px; background:#fffdf4; color:#172c43; font:inherit; padding:10px 11px; box-shadow:none; height:41px; outline-offset:2px; }
#quotingApp textarea { height:auto; resize:vertical; line-height:1.5; }
#quotingApp input::placeholder { color:#78848e; font-size:12px; }
#quotingApp :is(input,select,textarea):focus { outline:2px solid #27669a; border-color:#27669a; }
#quotingApp button:focus-visible, #quotingApp summary:focus-visible, #quotingApp a:focus-visible { outline:2px solid #27669a; outline-offset:3px; }
#quotingApp .cq-check { display:flex; align-items:flex-start; gap:8px; font-weight:500; margin:15px 0 0; }
#quotingApp input[type="checkbox"] { width:17px; height:17px; flex:none; accent-color:#1b684c; margin:1px 0 0; }
.cq-inline-checks { display:flex; flex-wrap:wrap; gap:0 24px; }
.cq-route-row { display:grid; grid-template-columns:minmax(140px,1.5fr) minmax(90px,1fr) minmax(100px,1fr); gap:14px; padding:12px 0; align-items:center; border-bottom:1px solid #eef1f3; }
.cq-route-row strong { font-size:13px; font-weight:600; }
.cq-route-row span { display:block; color:var(--cq-muted); margin-top:5px; font-size:12px; }
.cq-route-meta { margin-top:16px; }
.cq-section-heading .cq-link { font-size:12px; display:inline-flex; align-items:center; gap:6px; margin-bottom:16px; text-decoration:none; color:#245f8d; }
#quotingApp .cq-details { border:0; border-top:1px solid var(--cq-line); border-radius:0; padding:0; margin:18px 0 0; background:transparent; box-shadow:none; }
#quotingApp .cq-details > summary { cursor:pointer; padding:15px 0; border:0; border-radius:0; color:#425264; font-size:13px; font-weight:600; background:transparent; text-transform:none; }
#quotingApp .cq-details > summary::marker { color:#60778a; }
#quotingApp .cq-note { font-size:12px; color:var(--cq-muted); line-height:1.5; margin-top:12px; }
.cq-results { border-left:1px solid var(--cq-line); padding:24px 0 0 24px; min-width:0; }
.cq-result-top { padding:16px; background:#ecf4ef; border-top:3px solid #39856b; }
.cq-status { color:#9a4f07; font-size:12px; font-weight:600; margin-bottom:22px; }
.cq-status.is-ready { color:#246445; }
.cq-eyebrow { display:block; font-size:11px; color:#526b5e; font-weight:700; }
.cq-price { display:block; font-size:28px; line-height:1.35; font-weight:700; margin:5px 0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.cq-subtle { color:var(--cq-muted); font-size:12px; }
.cq-totals { margin:17px 0; display:grid; gap:11px; }
.cq-totals > div { display:flex; justify-content:space-between; gap:15px; align-items:baseline; line-height:1.4; }
.cq-totals dt { color:var(--cq-muted); font-size:12px; }
.cq-totals dd { margin:0; text-align:right; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.cq-total { padding-top:12px; border-top:1px solid var(--cq-line); }
.cq-total dt, .cq-total dd { color:var(--cq-ink); font-weight:700; }
.cq-profit { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:17px 0; border-block:1px solid var(--cq-line); }
.cq-profit span { font-size:11px; color:var(--cq-muted); display:block; }
.cq-profit strong { font-size:18px; display:block; margin-top:7px; overflow-wrap:anywhere; }
.cq-secondary { background:#f6f7f9; padding:13px; }
.cq-actions { display:grid; gap:10px; margin-top:20px; }
#quotingApp .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:39px; border-radius:5px; font-size:13px; padding:10px 14px; background:#102b4c; color:#fff; border:1px solid #102b4c; box-shadow:none; text-transform:none; line-height:1.4; white-space:normal; }
#quotingApp .btn.secondary { background:#fff; color:#102b4c; border-color:#cfd7df; }
#quotingApp .btn:disabled { opacity:.48; cursor:not-allowed; transform:none; }
#quotingApp svg { width:17px; height:17px; flex:none; }
.cq-message { margin:17px 0; color:#256042; background:#edf6ef; padding:12px 14px; border-left:3px solid #498c69; line-height:1.5; overflow-wrap:anywhere; }
.cq-message[hidden] { display:none; }
.cq-message.cq-error { color:#a3332a; border-color:#c15247; background:#fff1ef; }
.cq-save-state { color:var(--cq-muted); font-size:11px; line-height:1.5; margin:12px 0 20px; overflow-wrap:anywhere; }
.cq-issues { padding:13px; background:#fff7e8; margin-top:16px; }
.cq-issues strong { font-size:12px; color:#845112; }
.cq-issues ul { padding-left:15px; margin:10px 0 0; color:#845112; display:grid; gap:7px; }
.cq-issues button { font:inherit; font-size:11px; line-height:1.5; padding:0; text-align:left; border:0; color:#795329; background:none; cursor:pointer; }
.cq-issues button:hover { text-decoration:underline; }
.cq-settings, .cq-history { padding-top:25px; }
.cq-config-note { border-left:3px solid #e0a744; background:#fff7e8; color:#765322; padding:12px 14px; margin:18px 0; font-size:12px; line-height:1.5; }
#quotingApp .cq-profile { margin-top:0; }
#quotingApp .cq-profile summary { color:#172c43; font-size:15px; padding:20px 0; }
.cq-profile summary span { font-weight:400; font-size:12px; color:#7b632a; margin-left:14px; }
.cq-profile .cq-check { margin-bottom:20px; }
.cq-search { max-width:440px; margin:20px 0; }
.cq-table-wrap { overflow-x:auto; max-width:100%; }
.cq-table { width:100%; border-collapse:collapse; font-size:13px; }
.cq-table th { padding:12px 10px; font-size:11px; text-align:left; background:#f2f4f6; color:#536474; }
.cq-table td { border-bottom:1px solid #e1e6ea; padding:15px 10px; vertical-align:top; max-width:380px; overflow-wrap:anywhere; }
.cq-table strong { font-weight:600; display:block; }
.cq-table small { display:block; color:var(--cq-muted); font-size:11px; margin-top:6px; line-height:1.5; }
.cq-money { white-space:nowrap; font-variant-numeric:tabular-nums; }
.cq-table td:last-child { white-space:nowrap; }
.cq-icon-button { background:none; border:1px solid #d5dde3; border-radius:4px; width:34px; height:34px; display:inline-flex; justify-content:center; align-items:center; cursor:pointer; color:#254d6b; margin-left:4px; }
.cq-empty { padding:36px 0; color:var(--cq-muted); }
@media (min-width:1400px) { .cq-results { position:sticky; top:24px; } }
@media (max-width:1050px) {
  .cq-workspace { gap:22px; grid-template-columns:minmax(0,1fr) minmax(270px,300px); }
  .cq-grid-three { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cq-results { padding-left:18px; }
}
@media (max-width:800px) {
  body[data-active-tab="cotizador"] .header-primary { display:flex; flex-wrap:nowrap; justify-content:space-between; }
  body[data-active-tab="cotizador"] .brand-bar { min-width:120px; flex:1; }
  body[data-active-tab="cotizador"] .brand-info { display:none; }
  body[data-active-tab="cotizador"] .brand-logo { width:136px; height:auto; max-width:100%; }
  body[data-active-tab="cotizador"] .header-metrics { flex:0 0 auto; width:auto; }
  section#panel-cotizador { padding:18px 14px; }
  .cq-workspace { display:flex; flex-direction:column; gap:4px; }
  #cq-form { width:100%; }
  .cq-results { border-left:0; border-top:2px solid var(--cq-line); width:100%; padding:20px 0 0; }
  .cq-issues ul { grid-template-columns:1fr; }
  .cq-header .btn { padding:9px 10px; }
  .cq-profile summary span { display:block; margin:7px 0 0; }
}
@media (max-width:480px) {
  .cq-grid, .cq-grid-three { grid-template-columns:1fr; }
  .cq-route-row { grid-template-columns:1fr 1fr; gap:10px; }
  .cq-route-row > div:first-child { grid-column:1/-1; }
  .cq-route-row span { display:inline; margin-left:8px; }
  #quotingApp .cq-header h2 { font-size:21px; }
  #quotingApp .cq-header p { font-size:11px; }
}
@media print {
  body[data-active-tab="cotizador"] #panel-cotizador { display:none; }
}
