/* Each service remains outlined, including when it is not selected. */
#calculator { border: 2px solid #9aaec4; }
#calculator > .tabs { gap: 10px; padding: 10px; background: #f3f6fa; border: 1px solid #b7c6d6; }
#calculator > .tabs > button { border: 2px solid #6f89a6; border-radius: 4px; background: #fff; color: #263f59; }
#calculator > .tabs > button[aria-selected="true"] { border-color: #234d89; background: #305a9d; color: #fff; }
#calculator > .tabs > button:hover { border-color: #234d89; }
#calculator > .tabs > button:focus-visible { outline: 3px solid #85ace0; outline-offset: 3px; }
.paper #doc-client { font-weight: 800 !important; }
#earth-doc-measures .earth-doc-cell:nth-child(odd) .earth-doc-value { text-align: right; }
body[data-quote-type="work"] #document #doc-service { font-size: 14px; letter-spacing: .6px; }
body[data-quote-type="work"] #document #rows td:nth-child(2) { font-size: 12px; }
@media (max-width: 480px) {
  body[data-quote-type="work"] #document #doc-service { font-size: 12px; }
  body[data-quote-type="work"] #document #rows td:nth-child(2) { font-size: 11px; }
}

#calculator>.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#calculator>.tabs>button{width:100%;min-height:58px;font-size:12px;text-transform:uppercase}
#sale-catalog{display:grid;gap:12px;margin-top:16px}.sale-card{border:1px solid #9aaec4;padding:12px;background:#fff}.sale-card[aria-pressed=true]{border:2px solid #305a9d;background:#edf3fb}.sale-card img{width:100%;height:150px;object-fit:contain;background:#f5f6f8}.sale-card strong{display:block;margin:8px 0}.sale-price{color:#305a9d;font-size:19px}.sale-card button{margin-top:10px;width:100%}.sale-photos{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.sale-photos img{width:calc(33.333% - 8px);height:140px;object-fit:contain;border:1px solid #dce3eb}.sale-photo-empty{background:#edf1f6;padding:24px;text-align:center;color:#64717e}
@media print{.sale-photos img{height:32mm}.sale-photos{break-inside:avoid}}
/* SELECCIÓN Y DESCUENTO DE EQUIPOS NUEVOS Y USADOS. */
#sale-fields{margin:18px 0 24px}
#sale-fields>.group-title{margin:0 0 20px;padding-bottom:14px}
#sale-fields>label{background:#fff9e6;border:1px solid #e5d391;border-radius:6px;padding:15px 16px;margin:0 0 14px;line-height:1.5;font-size:12px;letter-spacing:.25px}
#sale-fields>label input,#sale-fields>label select{margin-top:9px;background:#fff;border:1px solid #becbd9;min-height:46px}
#sale-fields #sale-message{margin:16px 0 22px;line-height:1.6}
#sale-fields #single-discount{padding:16px;background:#fff9e6;border:1px solid #e5d391;border-radius:6px;gap:16px;margin:22px 0 0!important;align-items:start}
#sale-fields #single-discount label{font-size:12px;line-height:1.5;letter-spacing:.25px}
#sale-fields #single-discount input,#sale-fields #single-discount select{background:#fff;border:1px solid #becbd9;min-height:46px;margin-top:9px}
body[data-quote-type="sale-new"] #calculator>.warning,body[data-quote-type="sale-used"] #calculator>.warning{margin:20px 0 26px;border-radius:4px;line-height:1.7}
@media(max-width:480px){#sale-fields #single-discount{grid-template-columns:1fr;gap:14px}#sale-fields>label{padding:13px}}

/* FICHA COMERCIAL: DATOS, FOTO PRINCIPAL Y GALERÍA LINEAL. */
#doc-sale-photos{margin:18px 0 20px;break-inside:avoid}
.sale-quote-overview{display:grid;grid-template-columns:1fr 1.15fr;gap:18px;align-items:stretch}
.sale-quote-details{border:1px solid #9aaec4;padding:12px 14px;background:#f7f9fc}
.sale-quote-details h4{margin:0 0 9px;color:#305a9d;font-size:12px;letter-spacing:.7px}
.sale-quote-data-row{display:grid;grid-template-columns:36% 8px minmax(0,1fr);gap:5px;font-size:10px;padding:5px 0;border-bottom:1px solid #dce3eb;align-items:baseline}
.sale-quote-data-row:last-child{border-bottom:0}.sale-quote-data-row>span:first-child{font-weight:400}.sale-quote-data-row>strong{overflow-wrap:anywhere;text-align:left}
.sale-quote-main-photo{border:1px solid #9aaec4;display:flex;align-items:center;justify-content:center;background:#fff;min-width:0;padding:8px;color:#64717e;font-size:11px}
.sale-quote-main-photo img{width:100%;height:285px;object-fit:contain}
.sale-quote-photo-strip{display:flex;flex-wrap:nowrap;gap:9px;margin:12px 0 0}.sale-quote-photo-strip img{flex:1 1 0;min-width:0;width:0;height:110px;object-fit:contain;border:1px solid #c6d1de;background:#fff;padding:4px}
body[data-quote-type^="sale-"] .paper>.summary{margin-top:4px}
@media print{#doc-sale-photos{margin:3mm 0 4mm}.sale-quote-overview{gap:4mm}.sale-quote-details{padding:2mm 3mm}.sale-quote-details h4{font-size:8pt;margin-bottom:2mm}.sale-quote-data-row{font-size:7pt;padding:1mm 0}.sale-quote-main-photo img{height:64mm}.sale-quote-photo-strip{gap:2mm;margin-top:3mm}.sale-quote-photo-strip img{height:24mm}}

.sale-quote-specifications{border:1px solid #c6d1de;margin-top:12px;padding:10px 14px;background:#f7f9fc}.sale-quote-specifications h4{font-size:11px;color:#305a9d;margin:0 0 8px}.sale-quote-specifications ul{display:grid;grid-template-columns:1fr 1fr;gap:6px 20px;padding-left:16px;margin:0;font-size:10px;line-height:1.5}.sale-quote-price-breakdown{display:flex;flex-wrap:wrap;gap:6px 18px;margin:9px 0 0;font-size:9px;color:#64717e}@media print{.sale-quote-specifications{padding:2mm 3mm;margin-top:3mm}.sale-quote-specifications h4{font-size:7pt}.sale-quote-specifications ul{font-size:6.5pt;gap:1mm 4mm}.sale-quote-price-breakdown{font-size:6pt}}

#new-equipment-filters{background:#fff9e6;border:1px solid #e5d391;border-radius:6px;padding:16px;margin-bottom:16px;gap:16px}#new-equipment-filters label{font-size:12px;line-height:1.5}#new-equipment-filters select{background:#fff;min-height:46px;border:1px solid #becbd9;margin-top:9px}.sale-card .sale-card-tax{font-size:11px;line-height:1.6;color:#64717e;border-top:1px solid #dce3eb;padding-top:9px}

/* REDES JUNTO A IMPRIMIR Y WHATSAPP; MISMO DISEÑO EN IMPRESIÓN. */
.paper .confirmation-note{display:flex;align-items:center;justify-content:space-between;gap:12px}
.doc-actions-left,.doc-actions-right{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.paper .confirmation-note .badge{flex:1;max-width:none}
.paper .confirmation-note .doc-icon-action{width:auto;height:auto;min-width:42px;flex:0 0 auto}
.doc-social-link{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#305a9d;font-size:8px;font-weight:700;text-decoration:none}
.doc-social-link svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
.doc-instagram-qr img{width:40px;height:40px;object-fit:contain}
@media(max-width:600px){.paper .confirmation-note{gap:5px}.doc-actions-left,.doc-actions-right{gap:5px}.doc-social-link{font-size:7px}.doc-instagram-qr img{width:32px;height:32px}}
@media print{.paper .confirmation-note{display:flex!important;justify-content:space-between!important;gap:3mm}.paper .confirmation-note .doc-icon-action{display:inline-flex!important;min-width:8mm;min-height:8mm;padding:1mm;font-size:5pt}.doc-actions-left,.doc-actions-right{gap:2mm}.doc-social-link{font-size:5pt}.doc-social-link svg{width:5mm;height:5mm}.doc-instagram-qr img{width:10mm;height:10mm}#estimate-next{display:none!important}}
#document.paper .confirmation-note{display:flex;align-items:center;justify-content:space-between;gap:12px}
#document.paper .confirmation-note .doc-icon-action{width:auto;height:auto;min-width:42px;flex:0 0 auto}
#document.paper .confirmation-note .badge{flex:1;max-width:none}
#document .doc-actions-left,#document .doc-actions-right{display:flex;align-items:center;gap:10px;flex:0 0 auto}
@media print{#document.paper .confirmation-note{display:flex!important;justify-content:space-between!important;gap:3mm}#document.paper .confirmation-note .doc-icon-action{display:inline-flex!important;width:auto;height:auto;min-width:8mm;min-height:8mm;padding:1mm;font-size:5pt}#document .doc-actions-left,#document .doc-actions-right{gap:2mm}}

/* DESCRIPCIÓN AMPLIA EN VENTA DE EQUIPOS, INCLUIDA EN EL PDF CLONADO. */
#document.sale-description-wide>.table-wrap>table{table-layout:fixed;width:100%}
#document.sale-description-wide>.table-wrap th:nth-child(1){width:46%}
#document.sale-description-wide>.table-wrap th:nth-child(2){width:8%}
#document.sale-description-wide>.table-wrap th:nth-child(3){width:8%}
#document.sale-description-wide>.table-wrap th:nth-child(4){width:4%}
#document.sale-description-wide>.table-wrap th:nth-child(6),#document.sale-description-wide>.table-wrap th:nth-child(7){width:17%}
#document.sale-description-wide #rows td:first-child{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;line-height:1.5;padding-right:12px}
#document.sale-description-wide>.table-wrap th,#document.sale-description-wide>.table-wrap td{padding-left:6px;padding-right:6px}
