/* «Cotizaciones» del panel del cliente (prefijo .cq). Diseño de la maqueta 66: indicadores, filtros, tarjetas de cotización y columna derecha. */
.cp2-greeting h1:has(.cq-h1-i){display:flex;align-items:center;gap:14px}
.cq-h1-i{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#e8f0ff;color:#1a64f0;flex:none}
.cq-h1-i svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.cq{--cq-ink:#0b1b3d;--cq-muted:#667691;--cq-line:#e3eaf4;--cq-blue:#0b63f6;display:grid;grid-template-columns:minmax(0,1fr) 312px;gap:18px;align-items:start;color:var(--cq-ink);font-size:14px}
.cq *{box-sizing:border-box}
.cq h2,.cq h3,.cq p,.cq ul,.cq ol{margin:0;letter-spacing:0}
.cq p{font-size:inherit;line-height:inherit}
.cq ul,.cq ol{padding:0;list-style:none}
.cq-main,.cq-side{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.cq-i{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cq-i .cq-fill{fill:currentColor;stroke:none}.cq-i .cq-mark{stroke:#fff;stroke-width:2.2}
.cq .cq-muted{color:var(--cq-muted);font-size:13px}
.cq-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Indicadores */
.cq-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cq-kpi{display:flex;align-items:center;gap:11px;padding:14px 12px;border:1px solid var(--cq-line);border-radius:16px;background:#fff;box-shadow:0 6px 22px rgba(11,31,77,.05);min-width:0}
.cq-kpi-i{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;flex:none}
.cq-kpi-i .cq-i{width:25px;height:25px}
.cq-kpi>div{display:grid;gap:2px;min-width:0;line-height:1.2}
.cq-kpi strong{font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1}
.cq-kpi b{font-size:13.5px;font-weight:600;color:var(--cq-ink);line-height:1.2}
.cq-kpi small{font-size:11.5px;color:var(--cq-muted);line-height:1.25}
.cq-kpi.is-blue .cq-kpi-i{background:#eaf1ff;color:#2f6bff}.cq-kpi.is-blue strong{color:#1a64f0}
.cq-kpi.is-amber .cq-kpi-i{background:#fff2d8;color:#f09a00}.cq-kpi.is-amber strong{color:#f09a00}
.cq-kpi.is-green .cq-kpi-i{background:#e3f6ea;color:#22a45d}.cq-kpi.is-green strong{color:#1f9d57}
.cq-kpi.is-red .cq-kpi-i{background:#ffe6e6;color:#e5484d}.cq-kpi.is-red strong{color:#e03a3f}
.cq-kpi.is-skeleton,.cq-skel{height:84px;border-radius:16px;border:1px solid var(--cq-line);background:linear-gradient(90deg,#eef3fa,#f8fafd,#eef3fa) 0 0/200% 100%;animation:cq-shimmer 1.3s linear infinite}
.cq-skel{height:300px}
@keyframes cq-shimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.cq-kpi.is-skeleton,.cq-skel{animation:none}}

/* Filtros */
.cq-filters{display:grid;grid-template-columns:minmax(230px,3fr) repeat(4,minmax(84px,1fr)) 150px;gap:10px;align-items:end;padding:12px 14px;border:1px solid var(--cq-line);border-radius:16px;background:#fff}
.cq-search,.cq-sort{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border:1px solid #d5dfee;border-radius:10px;background:#fff;color:#6f82a4;min-width:0}
.cq-search:focus-within,.cq-sort:focus-within,.cq .cq-f select:focus{border-color:var(--cq-blue);box-shadow:0 0 0 3px rgba(11,99,246,.14);outline:0}
.cq .cq-search input{flex:1;min-width:0;width:100%;height:auto;border:0;border-radius:0;outline:0;box-shadow:none;background:none;font:inherit;font-size:13.5px;color:var(--cq-ink);padding:0}
.cq-search input::placeholder{color:#8a9ab6}
.cq-search input::-webkit-search-cancel-button{cursor:pointer}
.cq-f{display:grid;gap:4px;min-width:0}
.cq-f>span{font-size:12px;color:var(--cq-muted);padding-left:2px;white-space:nowrap}
.cq .cq-f select{width:100%;height:40px;border:1px solid #d5dfee;border-radius:10px;background-color:#fff;font:inherit;font-size:13.5px;color:var(--cq-ink);padding:0 8px;cursor:pointer;min-width:0;text-overflow:ellipsis}
.cq .cq-sort select{width:auto;min-width:0;flex:1;height:36px;border:0;border-radius:0;box-shadow:none;padding:0 2px;font:inherit;font-size:13.5px;font-weight:600;outline:0;background-color:transparent;color:var(--cq-ink);cursor:pointer}
.cq-sort{padding:0 8px 0 12px}.cq-sort .cq-i{width:17px;height:17px;color:var(--cq-ink)}

/* Lista de cotizaciones */
.cq-list{display:grid;gap:10px}
.cq-card{display:grid;grid-template-columns:112px minmax(0,1fr) 150px 150px 136px;gap:14px;align-items:center;padding:12px 14px;border:1px solid var(--cq-line);border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(11,31,77,.04)}
.cq-photo{display:block;width:112px;height:92px;border-radius:10px;object-fit:cover;background:#dbe8f6}
.cq-info{min-width:0;display:grid;gap:5px}
.cq .cq-code{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:800;letter-spacing:0;color:var(--cq-ink);line-height:1.25}
.cq-new{font-style:normal;background:var(--cq-blue);color:#fff;font-size:11px;font-weight:700;padding:2px 9px;border-radius:6px;line-height:1.4}
.cq .cq-title{font-size:14px;font-weight:500;line-height:1.3;overflow-wrap:anywhere;color:var(--cq-ink)}
.cq-tags{display:flex;flex-wrap:wrap;gap:3px 11px;font-size:12px;color:#587099}
.cq-tags li{display:inline-flex;align-items:center;gap:4px;min-width:0}
.cq-tags .cq-i{width:11px;height:11px;color:#2f6bff}.cq-tags .cq-i.is-down{transform:rotate(90deg)}
.cq-pro{display:flex;align-items:center;gap:7px;min-width:0;font-size:13px}
.cq-pro b{font-weight:700;white-space:nowrap}.cq-pro span{color:var(--cq-muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cq-av{width:26px;height:26px;border-radius:50%;object-fit:cover;flex:none;background:#dbe8f6}
.cq-av.is-ini{display:grid;place-items:center;background:#dfeaff;color:#1a4fb3;font-size:10.5px;font-weight:800}
.cq-dates{display:grid;gap:10px;align-content:center;min-width:0}
.cq-dates>div{display:flex;gap:8px;align-items:flex-start;min-width:0}
.cq-dates .cq-i{width:17px;height:17px;color:#4d78c8;margin-top:1px}
.cq-dates span{display:grid;gap:1px;line-height:1.25;min-width:0}
.cq-dates small{font-size:11.5px;color:var(--cq-muted)}.cq-dates b{font-size:13px;font-weight:600}
.cq-amount{display:grid;gap:3px;justify-items:start;align-content:center;min-width:0}
.cq-amount strong{font-size:23px;font-weight:800;letter-spacing:-.01em;line-height:1.15;margin-top:5px}
.cq-amount>small{font-size:11.5px;color:var(--cq-muted)}
.cq-adv{display:grid;gap:1px;margin-top:5px;padding:5px 10px;border-radius:8px;background:#e9f1ff;color:#46618f;font-size:11.5px;line-height:1.25}
.cq-adv b{font-size:13px;color:#274a86}
.cq-adv.is-paid{display:flex;align-items:center;gap:7px;background:#e3f6ea;color:#2a7a4d}.cq-adv.is-paid .cq-i{color:#22a45d;width:16px;height:16px}.cq-adv.is-paid span{display:grid}.cq-adv.is-paid b{color:#1d6b3f}
.cq-actions{display:grid;gap:8px;align-content:center}

/* Estado */
.cq-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 11px 4px 8px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.3;white-space:nowrap}
.cq-chip .cq-i{width:15px;height:15px}
.cq-chip.is-pending{background:#fff1d6;color:#a96000}.cq-chip.is-pending .cq-i{color:#f09a00}
.cq-chip.is-soon{background:#fff4dc;color:#a96000;box-shadow:inset 0 0 0 1px #f4c869}.cq-chip.is-soon .cq-i{color:#e58f00}
.cq-chip.is-changes{background:#eee7ff;color:#5b34b5}.cq-chip.is-changes .cq-i{color:#7a4de0}
.cq-chip.is-ok{background:#ddf5e7;color:#14703f}.cq-chip.is-ok .cq-i{color:#22a45d}
.cq-chip.is-bad{background:#ffe2e2;color:#b32525}.cq-chip.is-bad .cq-i{color:#e5484d}
.cq-chip.is-expired{background:#e3eeff;color:#2457c5}.cq-chip.is-expired .cq-i{color:#3b78e8}

/* Botones */
.cq-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 12px;border:1.5px solid var(--cq-blue);border-radius:9px;background:#fff;color:var(--cq-blue);font:inherit;font-size:13px;font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.cq-btn .cq-i{width:16px;height:16px}
.cq-btn:hover{background:#eef4ff}.cq-btn:focus-visible,.cq-link:focus-visible,.cq-x:focus-visible,.cq-act-code:focus-visible{outline:3px solid rgba(11,99,246,.35);outline-offset:2px}
.cq-btn.is-main{background:var(--cq-blue);color:#fff}.cq-btn.is-main:hover{background:#0a54d0}
.cq-btn.is-bad{border-color:#d93a3a;color:#c62828}.cq-btn.is-bad:hover{background:#fff0f0}
.cq-btn.is-block{width:100%}
.cq-btn:disabled{opacity:.6;cursor:progress}
.cq-link{display:inline-flex;align-items:center;gap:5px;margin-left:auto;border:0;background:none;padding:0;color:var(--cq-blue);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.cq-link .cq-i{width:15px;height:15px}.cq-link:hover{text-decoration:underline}

/* Vacío y error */
.cq-empty{display:grid;justify-items:center;gap:8px;text-align:center;padding:38px 20px;border:1px dashed #c9d8ee;border-radius:16px;background:#fff}
.cq-empty>.cq-i{width:40px;height:40px;color:#7a9bd6}.cq-empty strong{font-size:16px}.cq .cq-empty-text{max-width:420px;color:var(--cq-muted);font-size:13.5px}
.cq-empty-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:6px}

/* Columna derecha */
.cq-box{display:grid;gap:12px;padding:16px;border:1px solid var(--cq-line);border-radius:16px;background:#fff;box-shadow:0 6px 22px rgba(11,31,77,.05);min-width:0}
.cq-head{display:flex;align-items:center;gap:10px;min-width:0}
.cq .cq-head h2{font-size:16px;font-weight:800;line-height:1.25;color:var(--cq-ink)}
.cq-head-i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e8f0ff;color:var(--cq-blue);flex:none}.cq-head-i .cq-i{width:17px;height:17px}
.cq-last-top{display:flex;gap:12px;align-items:flex-start}
.cq-last-top img{width:112px;height:124px;border-radius:10px;object-fit:cover;background:#dbe8f6;flex:none}
.cq-last-top>div{display:grid;gap:6px;min-width:0;justify-items:start}.cq-last-top>div>.cq-pro{justify-self:stretch}
.cq .cq-last-top h3{font-size:16px;font-weight:800;color:var(--cq-ink);line-height:1.25}
.cq .cq-last-dates{display:flex;align-items:center;gap:8px;color:#4a5f86;font-size:13px}.cq-last-dates .cq-i{width:16px;height:16px;color:#4d78c8}.cq-last-dates i{font-style:normal;margin:0 3px}
.cq .cq-last-total{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;color:var(--cq-ink)}.cq-last-total strong{font-size:27px;font-weight:800;letter-spacing:-.01em;line-height:1}.cq-last-total small{color:var(--cq-muted);font-size:12.5px}
.cq-act-list{display:grid;gap:0}
.cq-act{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding-bottom:16px}
.cq-act:last-child{padding-bottom:0}
.cq-act:not(:last-child)::after{content:"";position:absolute;left:16px;top:36px;bottom:2px;width:2px;background:#e4ecf7;border-radius:2px}
.cq-act-i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e8f0ff;color:var(--cq-blue)}.cq-act-i .cq-i{width:17px;height:17px}
.cq-act.is-ok .cq-act-i,.cq-act.is-bad .cq-act-i{background:none}.cq-act.is-ok .cq-act-i .cq-i,.cq-act.is-bad .cq-act-i .cq-i{width:34px;height:34px}
.cq-act.is-ok .cq-act-i{color:#22a45d}.cq-act.is-bad .cq-act-i{color:#e5484d}
.cq-act>div{display:grid;gap:2px;min-width:0}
.cq .cq-act-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 8px;align-items:baseline;color:var(--cq-ink)}
.cq-act-top b{font-size:13.5px;font-weight:800}.cq-act-top time{font-size:11.5px;color:var(--cq-muted);white-space:nowrap;margin-left:auto}
.cq-act-code{justify-self:start;border:0;background:none;padding:0;color:var(--cq-blue);font:inherit;font-size:12px;font-weight:800;cursor:pointer}.cq-act-code:hover{text-decoration:underline}
.cq .cq-act-text{font-size:12.5px;color:#5b6e8f;line-height:1.4}
.cq-tip{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:16px 38px 16px 16px;border:1px solid #d6e6ff;border-radius:16px;background:#eaf3ff}
.cq-tip-i{display:grid;place-items:center;width:34px;height:34px;color:#1a64f0}.cq-tip-i .cq-i{width:28px;height:28px}
.cq .cq-tip h2{font-size:15px;font-weight:800;color:#0b3d91;margin:0 0 4px;line-height:1.25}
.cq .cq-tip-text{font-size:12.5px;line-height:1.45;color:#4a5f86}
.cq-tip .cq-link{margin:8px 0 0}
.cq-x{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:26px;height:26px;border:0;border-radius:7px;background:none;color:#4a5f86;cursor:pointer}.cq-x:hover{background:rgba(11,99,246,.1)}.cq-x .cq-i{width:16px;height:16px}

/* Detalle y confirmaciones (dentro de la ventana del panel) */
.modal:has(.cq-detail){width:min(900px,96vw);max-width:min(900px,96vw)}
/* La hoja se dibuja dentro del panel, que tiene reglas globales para los párrafos: se devuelven los colores propios de la hoja. */
.cq-sheet .qsh-ban p{color:#fff}
.cq-sheet .qsh-notes,.cq-sheet .qsh-thanks p{color:#3b5075}.cq-sheet .qsh-none{color:#5b6f92}
.cq-detail,.cq-confirm{--cq-ink:#0b1b3d;--cq-muted:#667691;--cq-line:#e3eaf4;--cq-blue:#0b63f6;color:var(--cq-ink)}
.cq-detail *,.cq-confirm *{box-sizing:border-box}
.cq-detail .cq-i,.cq-confirm .cq-i{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cq-detail .cq-i .cq-fill{fill:currentColor;stroke:none}.cq-detail .cq-i .cq-mark{stroke:#fff;stroke-width:2.2}
.cq-d-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:12px}
.cq-detail .cq-d-dates{color:var(--cq-muted);font-size:13px;margin:0}
.cq-detail .cq-d-note{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#f1f6ff;color:#3d5686;font-size:13px}
.cq-gallery{display:flex;gap:8px;overflow-x:auto;margin:0 0 14px;padding:0;list-style:none}.cq-gallery img{display:block;width:110px;height:80px;object-fit:cover;border-radius:9px}
.cq-sheet{overflow-x:auto}
.cq-d-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--cq-line)}
.cq-detail .cq-d-actions{position:sticky;bottom:-1px;background:#fff;padding-bottom:4px}
.cq-confirm .cq-lead{margin:0 0 10px;line-height:1.45;color:#1f2d4d;font-size:14px}
.cq-confirm .cq-conf{color:#1f2d4d;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;padding:10px 12px;border-radius:10px;background:#f1f6ff}
.cq-conf span{flex:1 1 220px;font-weight:600}.cq-conf b{font-size:20px;font-weight:800}.cq-conf small{color:var(--cq-muted)}
.cq-confirm .cq-fine{color:var(--cq-muted);font-size:13px;margin:0 0 10px}
.cq-note{display:grid;gap:6px;margin:10px 0 0;font-size:13px;color:var(--cq-muted)}
.cq-confirm .cq-note textarea{width:100%;min-height:92px;padding:10px 12px;border:1px solid #d5dfee;border-radius:10px;font:inherit;font-size:14px;color:var(--cq-ink);resize:vertical}
.cq-confirm .cq-note textarea:focus{border-color:var(--cq-blue);box-shadow:0 0 0 3px rgba(11,99,246,.14);outline:0}
.cq-confirm .cq-err{margin:8px 0 0;padding:8px 10px;border-radius:8px;background:#ffe9e9;color:#a52121;font-size:13px}
.cq-detail .cq-btn,.cq-confirm .cq-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 14px;border:1.5px solid var(--cq-blue);border-radius:9px;background:#fff;color:var(--cq-blue);font:inherit;font-size:13.5px;font-weight:700;text-decoration:none;cursor:pointer}
.cq-detail .cq-btn.is-main,.cq-confirm .cq-btn.is-main{background:var(--cq-blue);color:#fff}
.cq-detail .cq-btn.is-bad,.cq-confirm .cq-btn.is-bad{border-color:#d93a3a;color:#c62828}
.cq-confirm .cq-btn:disabled{opacity:.6;cursor:progress}
.cq-detail .cq-chip,.cq-detail .cq-pro{font-size:13px}

/* Pantallas medianas: la tarjeta pasa a dos filas y la columna derecha baja */
@media (max-width:1400px){
 .cq-filters{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(130px,auto)}.cq-search{grid-column:1/-1}
 .cq-card{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"photo info info" "dates amount actions";gap:12px 16px;align-items:start}
 .cq-photo{grid-area:photo;width:100%;height:112px}.cq-info{grid-area:info}.cq-dates{grid-area:dates}.cq-amount{grid-area:amount}.cq-actions{grid-area:actions}
}
@media (max-width:1400px) and (min-width:1181px){
 .cq-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1180px){
 .cq{grid-template-columns:minmax(0,1fr)}
 .cq-side{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .cq-side .cq-tip{grid-column:1/-1}
}
@media (max-width:900px){
 .cq-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cq-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cq-search{grid-column:1/-1}.cq-sort{grid-column:1/-1}
 .cq-side{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
 .cq-kpi{padding:12px;gap:10px}.cq-kpi-i{width:44px;height:44px}.cq-kpi strong{font-size:26px}
 .cq-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"photo" "info" "dates" "amount" "actions"}
 .cq-photo{height:150px}
 .cq-dates{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cq-actions{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
 .cq-last-top img{width:96px;height:112px}
 .cq-d-actions .cq-btn{flex:1 1 150px}
 .cp2-greeting h1:has(.cq-h1-i){gap:10px}.cq-h1-i{width:38px;height:38px}.cq-h1-i svg{width:22px;height:22px}
}

/* Página «Cotización recibida» (maqueta 67): prefijo .cqd, dentro de .cq (dobles clases para ganarle a las reglas globales del panel) */
.cp2-page-head:has(.cp-eyebrow:empty):not(:has(.portal-top-actions)){display:none}
.cp2-greeting .cqd-back{display:inline-flex;align-items:center;gap:6px;margin:0 0 8px;padding:0;border:0;background:none;color:#0b63f6;font:inherit;font-size:13.5px;font-weight:600;line-height:1.2;cursor:pointer}
.cp2-greeting .cqd-back .cq-i{width:16px;height:16px}.cp2-greeting .cqd-back:hover{text-decoration:underline}
.cp2-greeting .cqd-back:focus-visible{outline:3px solid rgba(11,99,246,.35);outline-offset:3px;border-radius:4px}
.cq.cqd{grid-template-columns:minmax(0,1fr) minmax(400px,35%);gap:18px}
/* El encabezado se acomoda en dos filas: arriba las acciones de la cuenta; abajo, el camino de regreso, el título y el subtítulo a todo el ancho (como la maqueta) */
@media (min-width:901px){
 body[data-page="panel"] .portal-topbar.cp2-top:has(.cqd-back){flex-wrap:wrap;gap:4px 18px;padding-top:10px}
 .cp2-top:has(.cqd-back) .cp2-top-actions{order:-1;flex:1 1 100%;justify-content:flex-end;margin-left:0}
 .cp2-top:has(.cqd-back) .cp2-greeting{flex:1 1 100%}
}
.cqd-left{container-type:inline-size}
.cqd-right{container-type:inline-size}
.cqd-left,.cqd-right{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;align-content:start}
.cqd .cqd-card{border:1px solid var(--cq-line);border-radius:16px;background:#fff;box-shadow:0 6px 22px rgba(11,31,77,.05);padding:16px;min-width:0}
.cqd .cqd-head{display:flex;align-items:center;gap:10px;margin:0 0 12px;min-width:0}
.cqd .cqd-head h2{font-size:16.5px;font-weight:800;line-height:1.25;color:var(--cq-ink);margin:0}
.cqd-hi{display:grid;place-items:center;width:24px;height:24px;color:#1a64f0;flex:none}.cqd-hi .cq-i{width:22px;height:22px}
.cqd .cqd-more{margin-left:auto;border:0;background:none;padding:0;color:var(--cq-blue);font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.cqd .cqd-more:hover{text-decoration:underline}
.cqd .cqd-muted{color:var(--cq-muted);font-size:13px}

/* Banner del piscinero */
.cqd .cqd-banner{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"env main dates chip" "note note note note";gap:12px 18px;align-items:center;padding:16px 18px}
.cqd-env{grid-area:env;display:grid;place-items:center;width:84px;height:84px;border-radius:16px;background:#e6efff;color:#2f6bff;align-self:start}.cqd-env .cq-i{width:40px;height:40px;stroke-width:1.6}
.cqd-env.is-approved{background:#ddf5e7;color:#22a45d}.cqd-env.is-rejected{background:#ffe6e6;color:#e5484d}.cqd-env.is-expired{background:#e3eeff;color:#3b78e8}.cqd-env.is-changes{background:#eee7ff;color:#7a4de0}
.cqd-env .cq-fill{fill:currentColor}.cqd-env .cq-mark{stroke:#fff}
.cqd-bn-main{grid-area:main;display:grid;gap:8px;min-width:0}
.cqd .cqd-bn-main h2{font-size:19px;font-weight:800;line-height:1.25;margin:0;color:var(--cq-ink)}
.cqd-bn-pro{display:flex;align-items:center;gap:12px;min-width:0}
.cqd-bn-pro .cq-av{width:52px;height:52px;font-size:15px}
.cqd-bn-pro>div{display:grid;gap:3px;min-width:0}
.cqd .cqd-bn-name{color:var(--cq-ink);display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;font-size:15px;margin:0}.cqd-bn-name b{font-weight:800}.cqd-bn-name span{color:var(--cq-muted)}
.cqd .cqd-bn-rep{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;font-size:13px;color:var(--cq-muted);margin:0}.cqd-bn-rep b{color:var(--cq-ink);font-weight:700}
.cqd-stars{display:inline-flex;gap:1px}.cqd-stars .cq-i{width:16px;height:16px;stroke:#c9d3e3;fill:#e7edf6;stroke-width:1.2}.cqd-stars .cq-i.is-on{stroke:#f4a300;fill:#f7b500}
.cqd-bn-dates{grid-area:dates;display:flex;align-items:stretch;gap:0}
.cqd-bn-dates>div{display:flex;gap:8px;align-items:flex-start;padding:0 12px;border-left:1px solid var(--cq-line);min-width:0;width:146px}
.cqd-bn-dates .cq-i{width:19px;height:19px;color:#4d78c8;margin-top:1px}
.cqd-bn-dates span{display:grid;gap:1px;line-height:1.25}.cqd-bn-dates small{font-size:11.5px;color:var(--cq-muted)}.cqd-bn-dates b{font-size:13px;font-weight:600}
.cqd-bn-chip{grid-area:chip}
.cqd .cqd-bn-note{grid-area:note;display:flex;align-items:center;gap:8px;font-size:12.5px;color:#587099;margin:0}.cqd-bn-note .cq-i{width:17px;height:17px;color:#2f6bff}

@container (max-width:860px){
 .cqd .cqd-banner{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"env main chip" "env dates dates" "note note note"}
 .cqd-bn-dates>div:first-child{border-left:0;padding-left:0}
 .cqd-bn-dates>div{width:auto}
}

/* Tarjeta de la cotización */
.cqd .cqd-quote{padding:0;overflow:hidden;container-type:inline-size}
.cqd-qh{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,46%);align-items:stretch;min-height:104px}
.cqd-qt{display:flex;gap:14px;align-items:flex-start;padding:18px 0 8px 18px;min-width:0}
.cqd-doc{display:grid;place-items:center;width:40px;height:40px;color:#1a64f0;flex:none}.cqd-doc .cq-i{width:34px;height:34px;stroke-width:1.5}
.cqd-qt>div{display:grid;gap:5px;min-width:0}
.cqd .cqd-qt h2{font-size:23px;font-weight:800;line-height:1.2;letter-spacing:-.01em;margin:0;color:var(--cq-ink);overflow-wrap:anywhere}
.cqd .cqd-sub{font-size:15.5px;color:#4a5f86;margin:0;overflow-wrap:anywhere}
.cqd .cqd-place{display:flex;align-items:center;gap:7px;font-size:13.5px;color:#4a5f86;margin:2px 0 0}.cqd-place .cq-i{width:17px;height:17px;color:#6b7f9f}
.cqd-ban{position:relative;overflow:hidden;min-height:104px}
.cqd-ban img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 38%);mask-image:linear-gradient(90deg,transparent 0,#000 38%)}
.cqd .cqd-ban p{position:absolute;right:16px;bottom:12px;margin:0;color:#fff;font-size:15px;font-weight:700;line-height:1.25;text-align:right;text-shadow:0 1px 8px rgba(0,30,70,.55)}
.cqd .cqd-sec{padding:6px 18px 0}
.cqd .cqd-sec h3{display:flex;align-items:center;gap:9px;font-size:16.5px;font-weight:800;margin:10px 0;color:var(--cq-ink)}.cqd-sec h3 .cq-i{width:22px;height:22px;color:#1a64f0}
.cqd-tw{overflow-x:auto;border:1px solid #e3eaf4;border-radius:8px}
.cqd-table{width:100%;border-collapse:collapse;font-size:13.5px}
.cqd-table th{padding:9px 12px;background:#f1f5fb;color:#587099;font-size:12.5px;font-weight:600;text-align:left;white-space:nowrap}
.cqd-table td{padding:9px 12px;border-top:1px solid #e8eef7;vertical-align:middle;color:var(--cq-ink)}
.cqd-table .n{text-align:center;white-space:nowrap}
.cqd-it{display:flex;align-items:center;gap:11px;min-width:0}
.cqd-ti{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#e8f0ff;color:#2f6bff;flex:none}.cqd-ti .cq-i{width:19px;height:19px}
.cqd-itx{display:grid;gap:1px;min-width:0}.cqd-itx b{font-size:13.5px;font-weight:700;line-height:1.3}.cqd-itx small{font-size:12px;color:var(--cq-muted);line-height:1.3}
.cqd-itx em{font-style:normal;margin-left:6px;padding:1px 7px;border-radius:999px;background:#eef3fb;color:#587099;font-size:11px;font-weight:600;white-space:nowrap}
.cqd-sched{display:grid;gap:1px;margin-top:5px;font-size:12px;line-height:1.35;color:var(--cq-muted)}.cqd-sched i{font-style:normal;font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--cq-ink)}
.cqd-qty{display:inline-block;min-width:56px;padding:4px 10px;border:1px solid #d5dfee;border-radius:6px;background:#fff;font-weight:600}
.cqd .cqd-none{padding:18px;color:var(--cq-muted);margin:0}
.cqd-sum{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr) minmax(0,.85fr);gap:0;margin-top:16px;border-top:1px solid #e3eaf4}
.cqd-cond{padding:16px 18px;min-width:0}
.cqd .cqd-cond h3{display:flex;align-items:center;gap:9px;font-size:16.5px;font-weight:800;margin:0 0 10px;color:var(--cq-ink)}.cqd-cond h3 .cq-i{width:22px;height:22px;color:#1a64f0}
.cqd-cond ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px}
.cqd-cond li{display:flex;align-items:flex-start;gap:7px;font-size:12.5px;line-height:1.35;color:#3f5479}.cqd-cond li .cq-i{width:14px;height:14px;color:#1d9d57;margin-top:2px;stroke-width:2.4}
.cqd .cqd-notes{margin:10px 0 0;font-size:12.5px;line-height:1.45;color:#3f5479;overflow-wrap:anywhere}
.cqd-when{display:grid;align-content:center;gap:14px;padding:16px 18px;background:#f1f6ff;min-width:0}
.cqd-when>div{display:flex;gap:10px;align-items:flex-start}.cqd-when .cq-i{width:24px;height:24px;color:#2f6bff}
.cqd-when span{display:grid;gap:2px;line-height:1.3}.cqd-when small{font-size:12px;color:#587099}.cqd-when b{font-size:14px;font-weight:700}
.cqd-total{display:grid;align-content:center;justify-items:center;gap:3px;padding:16px 14px;background:#e9f1ff;text-align:center;min-width:0}
.cqd-total>small{font-size:13px;color:#46618f;font-weight:600}.cqd-total>small:last-of-type{font-weight:500}
.cqd-total strong{font-size:34px;font-weight:800;letter-spacing:-.02em;line-height:1.1;color:#0b63f6}
.cqd-total dl{display:grid;gap:2px;width:100%;margin:8px 0 0;padding-top:8px;border-top:1px solid #cfdcf3;font-size:12px;color:#587099}
.cqd-total dl div{display:flex;justify-content:space-between;gap:10px}.cqd-total dt,.cqd-total dd{margin:0}
@container (max-width:720px){.cqd-sum{grid-template-columns:repeat(2,minmax(0,1fr))}.cqd-cond{grid-column:1/-1}}
@container (max-width:470px){.cqd-sum{grid-template-columns:minmax(0,1fr)}.cqd-cond ul{grid-template-columns:minmax(0,1fr)}.cqd-qh{grid-template-columns:minmax(0,1fr)}.cqd-ban{min-height:120px}.cqd-qt{padding-right:16px}}

/* Columna derecha */
.cqd-big{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:64px;margin:0 0 10px;padding:8px 16px;border:1.5px solid;border-radius:10px;font:inherit;text-align:left;cursor:pointer;transition:filter .15s,background .15s}
.cqd-big>span:last-child{display:grid;gap:1px}
.cqd-big b{font-size:16.5px;font-weight:800;line-height:1.2}.cqd-big small{font-size:12.5px;line-height:1.2;opacity:.92}
.cqd-big-i{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;flex:none}.cqd-big-i .cq-i{width:36px;height:36px}
.cqd-big.is-ok{background:#16a34a;border-color:#16a34a;color:#fff}.cqd-big.is-ok:hover{filter:brightness(.94)}.cqd-big.is-ok .cq-fill{fill:#fff}.cqd-big.is-ok .cq-mark{stroke:#16a34a}
.cqd-big.is-line{background:#fff;border-color:#4d86f5;color:#0b63f6}.cqd-big.is-line:hover{background:#eef4ff}.cqd-big.is-line .cqd-big-i .cq-i{width:30px;height:30px;stroke-width:1.7}
.cqd-big:focus-visible,.cqd-half:focus-visible,.cqd-pay-btn:focus-visible,.cqd-reject:focus-visible,.cqd-more:focus-visible,.cqd-prev button:focus-visible,.cqd-file:focus-visible{outline:3px solid rgba(11,99,246,.35);outline-offset:2px}
.cqd-pair2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cqd-half{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 10px;border:1.5px solid #4d86f5;border-radius:10px;background:#fff;color:#0b3d91;font:inherit;font-size:14.5px;font-weight:700;text-decoration:none;cursor:pointer}.cqd-half:hover{background:#eef4ff}
.cqd-half .cq-i{width:22px;height:22px;color:#0b63f6}
.cqd .cqd-reject{display:block;margin:12px auto 0;border:0;background:none;padding:2px 4px;color:#b32525;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.cqd-done{display:flex;align-items:center;gap:12px;margin:0 0 10px;padding:12px 14px;border-radius:10px}.cqd-done .cq-i{width:30px;height:30px}.cqd-done span{display:grid;gap:2px}.cqd-done b{font-size:15.5px}.cqd-done small{font-size:12.5px;line-height:1.3}
.cqd-done.is-ok{background:#e1f6ea;color:#14703f}.cqd-done.is-ok .cq-i{color:#22a45d}.cqd-done.is-bad{background:#ffe7e7;color:#a32020}.cqd-done.is-bad .cq-i{color:#e5484d}
.cqd-done.is-expired{background:#e6efff;color:#2457c5}.cqd-done.is-changes{background:#eee7ff;color:#5b34b5}.cqd-done.is-changes .cq-i{color:#7a4de0}
.cqd-pay{display:grid;gap:3px;padding:12px 14px;border:1px solid var(--cq-line);border-radius:12px;margin:0 0 12px}
.cqd-pay small{font-size:12.5px;color:#46618f}
.cqd-pay strong{font-size:31px;font-weight:800;letter-spacing:-.01em;line-height:1.15;color:var(--cq-ink)}
.cqd-pay.is-paid{display:flex;align-items:center;gap:12px;background:#e1f6ea;border-color:#bfe8cf}.cqd-pay.is-paid>.cq-i{width:34px;height:34px;color:#22a45d}.cqd-pay.is-paid span{display:grid;gap:2px}.cqd-pay.is-paid small{color:#2a7a4d}.cqd-pay.is-paid strong{font-size:26px;color:#14703f}
.cqd-pay-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;border:0;border-radius:9px;background:#0b63f6;color:#fff;font:inherit;font-size:15.5px;font-weight:800;cursor:pointer}.cqd-pay-btn:hover{background:#0a54d0}.cqd-pay-btn:disabled{opacity:.6;cursor:progress}
.cqd-pay-btn .cq-i{width:22px;height:22px}
.cqd .cqd-secure{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:12px 0 0;font-size:12.5px;color:#587099}.cqd-secure>.cq-i{width:15px;height:15px;color:#6b7f9f}
.cqd-pm{display:inline-flex;flex-wrap:wrap;gap:5px;margin-left:auto}.cqd-pm i{font-style:normal;padding:2px 7px;border:1px solid #d5dfee;border-radius:5px;font-size:11px;font-weight:800;color:#1a3a8a;line-height:1.3}
.cqd .cqd-nopay{margin:0;font-size:13.5px;line-height:1.5;color:#3f5479}
.cqd-msg-top{display:flex;align-items:center;gap:10px;margin:0 0 10px;min-width:0}
.cqd-msg-top .cq-av{width:44px;height:44px;font-size:13px}
.cqd .cqd-msg-top p{color:var(--cq-ink);display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;margin:0;font-size:14px;min-width:0}.cqd-msg-top b{font-weight:800}.cqd-msg-top p span{color:var(--cq-muted)}
.cqd-msg-top time{margin-left:auto;font-size:12px;color:var(--cq-muted);text-align:right}
.cqd-bubble{padding:14px 16px;border-radius:12px;background:#eff3f9}.cqd .cqd-bubble p{margin:0;font-size:13.5px;line-height:1.55;color:#4a5b78;overflow-wrap:anywhere}.cqd .cqd-bubble p.is-empty{color:var(--cq-muted);font-style:italic}
.cqd-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
@container (max-width:470px){.cqd-two{grid-template-columns:minmax(0,1fr)}}
.cqd-two .cqd-card{padding:12px}.cqd-two .cqd-head h2{font-size:14.5px}.cqd-two .cqd-hi,.cqd-two .cqd-hi .cq-i{width:20px;height:20px}
.cqd-flist{display:flex;flex-wrap:wrap;gap:8px}
.cqd-ph,.cqd-file{display:grid;gap:5px;padding:6px;border:1px solid var(--cq-line);border-radius:10px;min-width:0}
.cqd-ph{flex:2 1 96px}.cqd-ph ul{display:flex;flex-wrap:wrap;gap:4px}.cqd-ph li{display:block;flex:0 0 calc(50% - 2px)}
.cqd-ph img{display:block;width:100%;height:40px;border-radius:6px;object-fit:cover;background:#dbe8f6}
.cqd-ph small,.cqd-file small{font-size:11px;line-height:1.25;color:var(--cq-muted)}
.cqd-file{flex:1 1 66px;justify-items:center;text-align:center;text-decoration:none;color:var(--cq-ink)}.cqd-file:hover{background:#f4f8ff}
.cqd-fi{display:grid;place-items:center;width:34px;height:40px;border-radius:6px;background:#e8f0ff;color:#2f6bff}.cqd-fi .cq-i{width:22px;height:22px}
.cqd-file b{font-size:11.5px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.cqd-prev ul{display:grid;gap:8px}
.cqd-prev button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center;width:100%;padding:8px 10px;border:1px solid var(--cq-line);border-radius:10px;background:#fff;font:inherit;text-align:left;color:var(--cq-ink);cursor:pointer}.cqd-prev button:hover{background:#f4f8ff}
.cqd-pc{position:relative;padding-left:12px;font-size:12px;font-weight:800;white-space:nowrap}
.cqd-pc::before{content:"";position:absolute;left:0;top:50%;margin-top:-3px;width:6px;height:6px;border-radius:50%;background:#2f6bff}
.cqd-pdt{padding-left:12px;font-size:11px;color:var(--cq-muted)}
.cqd-prev strong{font-size:13px;font-weight:800;justify-self:end;white-space:nowrap}
.cqd-prev .cq-chip{justify-self:end;padding:2px 8px 2px 6px;font-size:10.5px}.cqd-prev .cq-chip .cq-i{width:12px;height:12px}

@media (max-width:1180px){
 .cq.cqd{grid-template-columns:minmax(0,1fr)}
 .cqd-right{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .cqd-right .cqd-two{grid-column:1/-1}
}
@media (max-width:760px){
 .cqd-right{grid-template-columns:minmax(0,1fr)}
 .cqd-two{grid-template-columns:minmax(0,1fr)}
 .cqd .cqd-banner{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"env main" "chip chip" "dates dates" "note note";padding:14px}
 .cqd-env{width:60px;height:60px;border-radius:13px}.cqd-env .cq-i{width:30px;height:30px}
 .cqd-bn-dates{flex-wrap:wrap;gap:10px 0}.cqd-bn-dates>div{padding:0 14px 0 0;border-left:0}.cqd-bn-dates>div+div{padding-left:14px;border-left:1px solid var(--cq-line)}
 .cqd .cqd-bn-main h2{font-size:17px}
 .cqd .cqd-qt h2{font-size:20px}
 .cqd-qh{grid-template-columns:minmax(0,1fr)}.cqd-ban{min-height:120px}.cqd-qt{padding-right:16px}
}
@media (max-width:640px){
 .cqd-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .cqd-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 8px;padding:10px 12px;border-top:1px solid #e8eef7}.cqd-table tbody tr:first-child{border-top:0}
 .cqd-table td{border:0;padding:0}
 .cqd-table td:first-child{grid-column:1/-1}
 .cqd-table td.n{display:grid;gap:2px;text-align:left;white-space:normal;font-size:13px}.cqd-table td.n::before{content:attr(data-l);font-size:11px;color:var(--cq-muted)}
 .cqd .cqd-sec{padding:4px 12px 0}.cqd-cond,.cqd-when,.cqd-total{padding:14px 12px}
 .cqd-total strong{font-size:30px}
 .cqd-pair2{grid-template-columns:minmax(0,1fr)}
}
