/* Cotizar only: preserve the public theme, form contract and native select fallback. */
body.quote-builder-page {
  --qb-green: var(--theme-button-color, #0f7c59);
  --qb-text: #193b31;
  --qb-muted: #526b61;
  --qb-border: #b8cbc3;
  --qb-soft-border: #d6e3de;
  --qb-soft: #f7faf9;
}
body.quote-builder-page .quote-builder-section { padding: 16px 0 28px; color: var(--qb-text); }
body.quote-builder-page .quote-builder-head {
  margin-bottom: 14px; padding: 0; gap: 12px;
  flex-direction: row; align-items: center;
}
body.quote-builder-page .quote-builder-head h1 { margin: 0 0 4px; font-size: 23px; font-weight: 650; line-height: 1.25; }
body.quote-builder-page .quote-builder-head p { margin: 0; font-size: 13px; color: var(--qb-muted); line-height: 1.45; }
body.quote-builder-page .quote-request-form-wide { gap: 12px; }
body.quote-builder-page .quote-form-card {
  min-width: 0; padding: 16px; gap: 12px;
  border: 1px solid var(--qb-border); border-radius: 12px;
  background: #fff; box-shadow: 0 3px 12px rgba(25,59,49,.035);
}
body.quote-builder-page .quote-form-title { gap: 12px; align-items: center; flex-direction: row; }
body.quote-builder-page .quote-form-title h2 { margin: 0; font-size: 16px; font-weight: 650; color: var(--qb-text); }
body.quote-builder-page .quote-security-badge {
  min-height: 24px; padding: 3px 8px; border: 1px solid var(--qb-soft-border);
  border-radius: 6px; background: #edf4f1; color: #295e49; font-size: 11px; font-weight: 600;
}
body.quote-builder-page :is(.quote-builder-section, .quote-product-modal, .quote-confirm-modal) .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 7px 12px; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0; text-transform: none; box-shadow: none; white-space: nowrap;
}
body.quote-builder-page :is(.quote-builder-section, .quote-product-modal, .quote-confirm-modal) .btn-outline {
  border: 1px solid #9dbbad !important; background: #fff !important; color: #0d6549 !important;
}
body.quote-builder-page :is(.quote-builder-section, .quote-product-modal, .quote-confirm-modal) .btn-accent {
  border: 1px solid var(--qb-green); background: var(--qb-green); color: var(--theme-on-button, #fff);
}
body.quote-builder-page :is(.quote-builder-section, .quote-product-modal, .quote-confirm-modal) .btn-outline:is(:hover, :focus-visible) { background: #edf4f1 !important; border-color: #689b84 !important; color: #0d6549 !important; }
body.quote-builder-page :is(.quote-builder-section, .quote-product-modal, .quote-confirm-modal) .btn-accent:hover { filter: brightness(.94); }
body.quote-builder-page :is(.quote-builder-section, .quote-product-modal, .quote-confirm-modal) button:disabled { opacity: .65; cursor: not-allowed; }
body.quote-builder-page .quote-guest-document-grid { grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; }
body.quote-builder-page .quote-guest-contact-grid { grid-template-columns: 1.8fr 1.4fr 1fr 1.6fr; gap: 10px; }
body.quote-builder-page .quote-guest-address { grid-column: auto; }
body.quote-builder-page :is(.quote-guest-document-grid, .quote-guest-contact-grid) label { gap: 5px; }
body.quote-builder-page :is(.quote-guest-document-grid, .quote-guest-contact-grid) label > span,
body.quote-builder-page .quote-notes span {
  color: var(--qb-text); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
body.quote-builder-page :is(.quote-guest-document-grid, .quote-guest-contact-grid, .quote-line, .quote-product-modal-search) input:not([type="hidden"]),
body.quote-builder-page .quote-guest-document-grid select {
  width: 100%; min-width: 0; height: 36px; min-height: 36px; padding: 0 10px;
  border: 1px solid var(--qb-border); border-radius: 8px; background: #fff;
  color: var(--qb-text); font-family: inherit; font-size: 13px; font-weight: 400;
}
body.quote-builder-page .quote-guest-contact-grid input[readonly],
body.quote-builder-page .quote-line-price { background: var(--qb-soft) !important; color: var(--qb-muted); }
body.quote-builder-page .quote-builder-section input:disabled { background: #edf4f1; color: var(--qb-muted); }
body.quote-builder-page :is(.quote-builder-section, .quote-product-modal, .quote-confirm-modal) :is(input, textarea, button, summary, a):focus-visible {
  outline: 2px solid var(--qb-green); outline-offset: 2px;
}
body.quote-builder-page .quote-document-status {
  padding: 5px 8px; border: 1px solid var(--qb-soft-border); border-radius: 6px;
  background: var(--qb-soft); color: var(--qb-muted); font-size: 12px; line-height: 1.4;
}
body.quote-builder-page .quote-document-status[data-tone="success"] { background: #edf9f3; border-color: #9bc8af; color: #116b49; }
body.quote-builder-page .quote-document-status[data-tone="error"] { background: #fff3f3; border-color: #e5a8ad; color: #a3232d; }
body.quote-builder-page .quote-document-status[data-tone="loading"] { background: #edf4f1; color: #295e49; }
body.quote-builder-page .quote-guest-privacy-note {
  display: block; padding: 8px 10px; margin: 0; border: 1px solid var(--qb-soft-border);
  border-radius: 7px; background: var(--qb-soft); color: var(--qb-muted); font-size: 11px; line-height: 1.5;
}
body.quote-builder-page .quote-guest-privacy-note strong { font-size: inherit; text-transform: none; letter-spacing: 0; color: var(--qb-text); }
body.quote-builder-page .quote-lines-table { gap: 6px; }
body.quote-builder-page .quote-line {
  grid-template-columns: minmax(180px, 1fr) 70px 85px 110px 110px 32px;
  gap: 10px; padding: 8px 10px; border: 1px solid var(--qb-soft-border); border-radius: 8px;
}
body.quote-builder-page .quote-line-head {
  display: grid; background: #edf4f1; color: var(--qb-text); border-color: var(--qb-border);
  font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0;
}
body.quote-builder-page .quote-line-product strong {
  text-align: left; white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; font-weight: 600;
}
body.quote-builder-page .quote-line-product span { margin-top: 2px; font-size: 11px; color: var(--qb-muted); }
body.quote-builder-page .quote-line-control { min-width: 0; }
body.quote-builder-page .quote-line-control > span { display: none; }
body.quote-builder-page .quote-line-stock {
  min-height: 28px; padding: 3px 6px; border-radius: 6px; background: #edf4f1; color: #295e49;
  font-size: 12px; font-weight: 600; overflow-wrap: anywhere;
}
body.quote-builder-page [data-field-subtotal] { color: var(--qb-text); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
body.quote-builder-page .quote-line-remove {
  width: 30px; height: 30px; border: 1px solid #e5b4b7; border-radius: 7px;
  background: #fff6f6; color: #a3232d; cursor: pointer;
}
body.quote-builder-page .quote-line-remove:hover { background: #fbe8e9; }
body.quote-builder-page .quote-empty-lines { padding: 22px 12px; border-color: var(--qb-border); border-radius: 8px; background: var(--qb-soft); color: var(--qb-muted); font-size: 13px; }
body.quote-builder-page .quote-notes-disclosure { border: 1px solid var(--qb-soft-border); border-radius: 8px; background: var(--qb-soft); }
body.quote-builder-page .quote-notes-disclosure summary { padding: 9px 10px; color: var(--qb-text); font-size: 12px; font-weight: 600; cursor: pointer; }
body.quote-builder-page .quote-notes-disclosure summary span { margin-left: 5px; color: var(--qb-muted); font-size: 11px; font-weight: 400; }
body.quote-builder-page .quote-notes { padding: 0 10px 10px; }
body.quote-builder-page .quote-notes textarea { min-height: 65px; padding: 8px 10px; border: 1px solid var(--qb-border); border-radius: 7px; font-size: 13px; }
body.quote-builder-page .quote-form-footer { flex-direction: row; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--qb-soft-border); }
body.quote-builder-page .quote-total-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 0; border: 0; background: transparent; }
body.quote-builder-page .quote-total-box span { color: var(--qb-muted); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.quote-builder-page .quote-total-box strong { color: var(--qb-text); font-size: 22px; font-weight: 650; }
body.quote-builder-page .quote-total-box small { flex-basis: 100%; font-size: 11px; font-weight: 500; }
body.quote-builder-page :is(.quote-product-modal-dialog, .quote-confirm-dialog) { border: 1px solid #9dbbad; border-radius: 12px; color: var(--qb-text); }
body.quote-builder-page .quote-product-modal-dialog { max-height: calc(100dvh - 32px); }
body.quote-builder-page .quote-product-modal-head { padding: 12px 16px; background: var(--qb-soft); border-color: var(--qb-border); }
body.quote-builder-page :is(.quote-product-modal-head, .quote-confirm-dialog) h2 { font-size: 17px; color: var(--qb-text); font-weight: 650; }
body.quote-builder-page .quote-product-modal-close { width: 30px; height: 30px; border: 1px solid var(--qb-border); border-radius: 7px; color: var(--qb-text); font-size: 15px; }
body.quote-builder-page .quote-product-modal-search { grid-template-columns: minmax(0, 1fr) auto; padding-top: 12px; gap: 8px; }
body.quote-builder-page .quote-product-modal-help { padding-block: 8px; font-size: 11px; color: var(--qb-muted); }
body.quote-builder-page .quote-product-modal-help summary { cursor: pointer; color: #295e49; }
body.quote-builder-page .quote-product-modal-help p { margin: 6px 0 0; line-height: 1.5; }
body.quote-builder-page .quote-product-state { padding: 18px 12px; border-color: var(--qb-border); background: var(--qb-soft); font-size: 13px; color: var(--qb-muted); }
body.quote-builder-page .quote-product-result-row { grid-template-columns: 48px minmax(0, 1fr) auto; border-color: var(--qb-soft-border); border-radius: 8px; gap: 10px; }
body.quote-builder-page .quote-product-result-row img { display: block; width: 48px; height: 48px; border-color: var(--qb-soft-border); border-radius: 6px; }
body.quote-builder-page .quote-product-result-row strong { font-size: 13px; white-space: normal; line-height: 1.4; overflow-wrap: anywhere; }
body.quote-builder-page .quote-product-result-row small { color: var(--qb-muted); font-size: 11px; }
body.quote-builder-page .quote-product-result-row b { color: #0d6549; font-size: 13px; }
body.quote-builder-page .quote-product-result-row:is(:hover, .is-focused) { border-color: #689b84; background: #edf4f1; }
body.quote-builder-page .quote-confirm-dialog p { color: var(--qb-muted); font-size: 13px; }
body.quote-builder-page .quote-confirm-summary { border-color: var(--qb-border); background: var(--qb-soft); color: var(--qb-text); font-size: 13px; }
body.quote-builder-page :is(.sanni-select, .sanni-select-panel) {
  --ss-primary: var(--qb-green); --ss-text: var(--qb-text); --ss-muted: var(--qb-muted);
  --ss-border: var(--qb-border); --ss-border-soft: var(--qb-soft-border); --ss-surface-soft: #edf4f1;
}
body.quote-builder-page .sanni-select-trigger.sanni-select-plain {
  height: 36px; min-height: 36px; border-radius: 8px; font-family: var(--theme-font-family, "Segoe UI", sans-serif) !important; font-size: 13px;
}
body.quote-builder-page .sanni-select-panel { border-color: #9dbbad; border-radius: 10px; }
body.quote-builder-page .sanni-select-option { font-family: var(--theme-font-family, "Segoe UI", sans-serif); font-size: 13px; }
body.quote-builder-page :is(.quote-empty-lines, .quote-total-box small, .sanni-select-panel, .sanni-select-panel *)[hidden] { display: none !important; }
@media (max-width: 1000px) {
  body.quote-builder-page .quote-guest-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.quote-builder-page .quote-line { grid-template-columns: minmax(150px, 1fr) 60px 70px 95px 95px 30px; gap: 6px; }
}
@media (max-width: 700px) {
  body.quote-builder-page .quote-builder-section > .container { width: calc(100% - 24px); }
  body.quote-builder-page .quote-builder-head { align-items: flex-start; }
  body.quote-builder-page .quote-builder-head h1 { font-size: 21px; }
  body.quote-builder-page .quote-builder-head .btn { font-size: 12px; padding-inline: 9px; }
  body.quote-builder-page .quote-form-card { padding: 12px; }
  body.quote-builder-page .quote-guest-document-grid { grid-template-columns: 85px minmax(0, 1fr); }
  body.quote-builder-page .quote-guest-document-grid > button { grid-column: 1/-1; }
  body.quote-builder-page .quote-line { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body.quote-builder-page .quote-line-head { display: none; }
  body.quote-builder-page .quote-line-product { grid-column: 1/-1; grid-row: 1; padding-right: 38px; }
  body.quote-builder-page .quote-line-remove { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
  body.quote-builder-page .quote-line-control { grid-row: 2; }
  body.quote-builder-page .quote-line-control > span { display: block; margin-bottom: 4px; color: var(--qb-muted); font-size: 11px; }
  body.quote-builder-page .quote-line-stock { grid-column: 1/-1; grid-row: 3; justify-self: start; min-height: 24px; }
  body.quote-builder-page .quote-line-stock::before { content: "Stock: "; margin-right: 4px; font-weight: 400; }
  body.quote-builder-page [data-field-subtotal] { grid-column: 3; grid-row: 2; align-self: end; padding-bottom: 10px; }
  body.quote-builder-page [data-field-subtotal]::before { content: "Importe"; display: block; margin-bottom: 12px; color: var(--qb-muted); font-size: 11px; font-weight: 400; }
  body.quote-builder-page .quote-product-modal { padding: 12px; }
  body.quote-builder-page .quote-product-modal-dialog { max-height: calc(100dvh - 24px); }
  body.quote-builder-page .quote-product-result-row { grid-template-columns: 40px minmax(0, 1fr); }
  body.quote-builder-page .quote-product-result-row img { width: 40px; height: 40px; }
  body.quote-builder-page .quote-product-result-row b { grid-column: 2; }
}
@media (max-width: 420px) {
  body.quote-builder-page .quote-builder-head { flex-direction: column; gap: 8px; }
  body.quote-builder-page .quote-guest-contact-grid { grid-template-columns: minmax(0, 1fr); }
  body.quote-builder-page .quote-form-footer { flex-direction: column; align-items: stretch; }
  body.quote-builder-page .quote-confirm-summary { flex-wrap: wrap; }
  body.quote-builder-page .quote-confirm-actions { flex-wrap: wrap; }
}
