.customers-screen{display:grid;gap:12px}.customers-total-card{display:grid;gap:4px;padding:16px;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:10px;background:var(--card)}.customers-total-card span{font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.06em}.customers-total-card strong{font-size:28px;color:var(--navy)}.customers-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.customers-toolbar input,.customer-form input,.customer-payment-form input,.credit-sale-card select{width:100%;min-height:46px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--navy);padding:9px 11px;font:inherit}.customer-form{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--card)}.customer-form h3{margin:0}.customer-form label,.customer-payment-form label{display:grid;gap:5px;font-size:12px;font-weight:650;color:var(--navy)}.customers-list{display:grid;gap:8px}.customer-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;padding:13px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--navy);font:inherit}.customer-row strong,.customer-row span{display:block}.customer-row small{display:block;margin-top:3px;color:var(--muted)}.customer-row-balance{text-align:right}.customer-row-balance strong{font-size:18px}.customer-row.is-inactive{opacity:.6}.customer-back{margin:0;justify-self:start}.customer-profile{display:grid;gap:13px}.customer-profile-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.customer-profile-head h2{margin:0}.customer-profile-head p{margin:3px 0 0;color:var(--muted)}.customer-balance{min-width:135px;text-align:right}.customer-balance span,.customer-balance strong{display:block}.customer-balance span{font-size:10px;color:var(--muted)}.customer-balance strong{font-size:25px}.account-paid{color:#16804b}.customer-payment-form{display:grid;gap:9px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--card)}.customer-account-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.customer-history{display:grid;gap:9px}.customer-history h3{margin:5px 0 0}.customer-history-card{padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--card)}.customer-history-card header{display:flex;justify-content:space-between;gap:8px}.customer-history-card header time{color:var(--muted);font-size:11px}.customer-history-card .account-values{display:grid;grid-template-columns:1fr auto;gap:4px 10px;margin-top:9px;font-size:13px}.customer-history-card .account-values strong{text-align:right}.customer-items{margin:9px 0 0;padding:8px 0 0;border-top:1px dashed var(--line);display:grid;gap:4px;font-size:12px}.customer-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.customer-payment-card{border-left:4px solid #1fa855}.customer-payment-card.reversed{border-left-color:#b42318;opacity:.72}.customer-payment-card .reverse-payment-btn{margin-top:9px;width:100%}.customer-receipt-card{max-width:430px}.customer-receipt{font-family:Arial,sans-serif;color:#111;background:#fff;padding:8px}.customer-receipt h2,.customer-receipt p{text-align:center;margin:4px 0}.customer-receipt .receipt-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin:7px 0}.customer-receipt .receipt-rule{border-top:1px dashed #555;margin:10px 0}.customer-receipt-actions{display:grid;gap:8px;margin-top:12px}.credit-sale-card select{margin:5px 0 6px}.credit-sale-card .fa-inline-svg,#creditSaleBtn .fa-inline-svg{width:18px;height:18px;fill:currentColor;vertical-align:-3px;margin-right:6px}@media(max-width:560px){.customer-profile-head{display:grid}.customer-balance{text-align:left}.customer-account-actions{grid-template-columns:1fr}.customers-toolbar{grid-template-columns:minmax(0,1fr) 88px}}@media print{body.customer-receipt-printing>*{display:none!important}body.customer-receipt-printing #customerReceiptModal{display:block!important;position:static;background:#fff}body.customer-receipt-printing #customerReceiptModal .modal-card{box-shadow:none;border:0;max-width:none}body.customer-receipt-printing .customer-receipt-actions{display:none!important}}

/* v2.10.43 · Clientes: listado, modal y recordatorios de cobro */
.customer-refresh-btn svg{width:21px;height:21px;fill:currentColor;display:block;margin:auto}.customers-total-card{grid-template-columns:1fr auto;align-items:center;padding:18px 20px;border-radius:14px;box-shadow:0 3px 12px #19364a0a}.customers-total-card>div{display:grid;gap:4px}.customers-total-card small{color:var(--muted);font-size:12px}.customers-total-card strong{font-size:30px}.customer-search-wrap{position:relative}.customer-search-wrap>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;fill:var(--muted);pointer-events:none}.customers-toolbar .customer-search-wrap input{padding-left:41px;min-height:48px}.customer-new-btn{min-height:48px;padding:0 17px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px}.customer-new-btn svg{width:18px;height:18px;fill:currentColor}.customer-create-card{position:relative;max-width:500px}.customer-modal-close{position:absolute;right:12px;top:10px;width:40px;height:40px;border:0;background:transparent;color:var(--muted);font-size:30px;line-height:1}.customer-modal-title{display:flex;gap:12px;align-items:flex-start;padding-right:30px;margin-bottom:14px}.customer-modal-title h2{margin:0}.customer-modal-title p{margin:3px 0 0;line-height:1.35}.customer-modal-icon{width:43px;height:43px;flex:0 0 auto;border-radius:12px;display:grid;place-items:center;background:#e8f3ff;color:var(--blue-dark)}.customer-modal-icon svg{width:23px;height:23px;fill:currentColor}.customer-optional{font-weight:500;color:var(--muted)}.customer-create-actions{margin-top:18px}.customer-create-actions .tall{margin-top:0;min-height:50px}.customer-row{display:grid;grid-template-columns:1fr;padding:0;overflow:hidden;border-radius:13px;box-shadow:0 2px 8px #19364a0a}.customer-row.has-balance{border-left:4px solid #e5a11a}.customer-row-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 15px}.customer-row-info{min-width:0}.customer-row-info>strong{font-size:16px}.customer-row-balance strong{font-size:20px}.customer-notified{display:flex!important;align-items:center;gap:5px;margin-top:7px;color:#16804b;font-size:11px;font-weight:750}.customer-notified svg{width:14px;height:14px;fill:currentColor;flex:0 0 auto}.customer-row-actions{display:flex;justify-content:flex-end;gap:7px;padding:9px 12px;background:#f8fbfe;border-top:1px solid var(--line)}.customer-row-actions button{min-height:38px;border-radius:9px;padding:7px 11px;font-size:11px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:6px}.customer-view-btn{border:1px solid #bad4ee;background:#fff;color:var(--blue-dark)}.customer-view-btn svg{width:16px;height:16px;fill:currentColor}.customer-whatsapp-btn{border:1px solid #b8dfc8;background:#effaf4;color:#08794c}.customer-whatsapp-btn .whatsapp-icon{width:18px;height:18px;display:block}.customer-whatsapp-btn .whatsapp-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.customers-list{margin-top:2px}
@media(max-width:560px){.customers-toolbar{grid-template-columns:minmax(0,1fr) auto}.customer-new-btn{width:48px;padding:0}.customer-new-btn span{display:none}.customer-row-actions{display:grid;grid-template-columns:1fr 1fr}.customer-row-actions button:only-child{grid-column:1/-1}.customer-create-card{padding:20px}.customers-total-card{padding:15px}.customers-total-card strong{font-size:27px}}
@media(max-width:380px){.customer-row-actions{grid-template-columns:1fr}.customer-row-actions button:only-child{grid-column:auto}.customer-row-main{padding:12px}.customer-row-balance strong{font-size:18px}}

.credit-sale-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--soft,#f7fafc);margin:10px 0}.credit-sale-summary span{color:var(--muted);font-size:12px}.credit-sale-summary strong{text-align:right;color:var(--navy)}.credit-sale-summary strong:last-child{font-size:18px}

#creditSaleBtn.credit-sale-attention{border-color:var(--blue);background:rgba(27,126,168,.08);color:var(--navy);box-shadow:0 0 0 2px rgba(27,126,168,.08)}#creditSaleBtn.credit-sale-attention:hover{background:rgba(27,126,168,.13)}

/* v2.10.47 — acción de venta a cuenta: jerarquía visual sin alterar el flujo */
#creditSaleBtn{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) 24px;align-items:center;gap:12px;min-height:70px;margin-top:12px;padding:10px 14px;text-align:left;border:1px solid #b8d0e3;border-radius:12px;background:linear-gradient(180deg,#f8fbfe 0%,#eef5fa 100%);color:var(--navy);box-shadow:0 2px 8px rgba(25,54,74,.07);transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .08s ease}
#creditSaleBtn:hover{border-color:#6f9fbe;background:linear-gradient(180deg,#fff 0%,#edf6fb 100%);box-shadow:0 5px 14px rgba(25,54,74,.10)}
#creditSaleBtn:active{transform:scale(.99)}
#creditSaleBtn .credit-sale-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#dfeef8;color:#315f7c}
#creditSaleBtn .credit-sale-icon .fa-inline-svg{width:19px;height:19px;margin:0;fill:currentColor}
#creditSaleBtn .credit-sale-copy{min-width:0;display:grid;gap:3px}
#creditSaleBtn .credit-sale-copy small{font-size:10px;line-height:1;color:#6b7d8c;font-weight:800;letter-spacing:.09em}
#creditSaleBtn .credit-sale-copy strong{font-size:15px;line-height:1.2;color:var(--navy);font-weight:850;letter-spacing:.01em}
#creditSaleBtn .credit-sale-chevron{font-size:29px;line-height:1;color:#7890a2;font-weight:400;text-align:center;transform:translateY(-1px)}
#creditSaleBtn.credit-sale-attention{border-color:#7ba9c7;background:linear-gradient(180deg,#f7fbfe 0%,#e8f3f9 100%);color:var(--navy);box-shadow:0 3px 10px rgba(27,126,168,.10)}
#creditSaleBtn.credit-sale-attention:hover{background:linear-gradient(180deg,#fff 0%,#e5f1f8 100%)}
@media(max-width:560px){#creditSaleBtn{min-height:66px;grid-template-columns:42px minmax(0,1fr) 20px;padding:9px 12px;gap:10px}#creditSaleBtn .credit-sale-icon{width:39px;height:39px}#creditSaleBtn .credit-sale-copy strong{font-size:14px}}

/* v2.10.48 · Aislamiento visual del modal Cobrar cuenta pendiente */
#cashPendingModal .cash-pending-card{width:min(92vw,520px);max-height:min(88dvh,720px);overflow:auto;padding:22px;border-radius:18px}
#cashPendingModal .cash-pending-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
#cashPendingModal .cash-pending-head h2{margin:0 0 5px;font-size:22px;line-height:1.15;color:var(--navy)}
#cashPendingModal .cash-pending-head p{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
#cashPendingModal .cash-pending-close{position:static!important;display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--muted)!important;box-shadow:none!important}
#cashPendingModal .cash-pending-close:hover{background:#f2f6fa!important;color:var(--navy)!important}
#cashPendingModal .cash-pending-close>svg{position:static!important;display:block!important;width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;transform:none!important;fill:currentColor!important;stroke:none!important;margin:0!important}
#cashPendingModal .cash-pending-search{position:relative!important;display:block!important;margin:18px 0 0!important;height:46px!important}
#cashPendingModal .cash-pending-search>svg{position:absolute!important;z-index:2!important;left:14px!important;top:50%!important;width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;transform:translateY(-50%)!important;fill:var(--muted)!important;stroke:none!important;margin:0!important;pointer-events:none!important}
#cashPendingModal .cash-pending-search>input{display:block!important;width:100%!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0 13px 0 42px!important;border:1px solid var(--line)!important;border-radius:11px!important;background:#fff!important;color:var(--navy)!important;font:inherit!important;font-size:14px!important;box-sizing:border-box!important}
#cashPendingModal .cash-pending-search>input:focus{outline:none!important;border-color:var(--blue)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 13%,transparent)!important}
#cashPendingModal .cash-pending-help{display:block!important;margin:7px 2px 12px!important;color:var(--muted)!important;font-size:11px!important;line-height:1.35!important}
#cashPendingModal .cash-pending-results{display:grid!important;gap:8px!important;max-height:260px!important;overflow:auto!important;margin:0!important;padding:0 2px 1px 0!important}
#cashPendingModal .cash-pending-result{position:static!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:58px!important;margin:0!important;padding:10px 12px!important;border:1px solid var(--line)!important;border-radius:11px!important;background:#fff!important;color:var(--navy)!important;text-align:left!important;font:inherit!important;box-shadow:none!important;cursor:pointer!important}
#cashPendingModal .cash-pending-result:hover,#cashPendingModal .cash-pending-result:focus-visible{border-color:#9ec5e8!important;background:#f6faff!important;outline:none!important}
#cashPendingModal .cash-pending-result>span{display:grid!important;gap:2px!important;min-width:0!important}
#cashPendingModal .cash-pending-result>span>strong{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important;color:var(--navy)!important}
#cashPendingModal .cash-pending-result>span>small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--muted)!important;font-size:11px!important;font-weight:500!important}
#cashPendingModal .cash-pending-result>strong{display:block!important;white-space:nowrap!important;font-size:17px!important;color:var(--blue-dark)!important}
#cashPendingModal .cash-pending-empty{padding:20px 12px!important;border:1px dashed var(--line)!important;border-radius:11px!important;color:var(--muted)!important;text-align:center!important;font-size:13px!important}
#cashPendingModal .cash-pending-form{margin-top:15px!important;padding-top:15px!important;border-top:1px solid var(--line)!important}
#cashPendingModal .cash-pending-selected{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:16px!important;padding:13px!important;border-radius:11px!important;background:#f5f8fb!important}
#cashPendingModal .cash-pending-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
@media(max-width:560px){#cashPendingModal .cash-pending-card{width:calc(100vw - 20px);padding:18px;border-radius:16px}#cashPendingModal .cash-pending-head h2{font-size:20px}#cashPendingModal .cash-pending-results{max-height:34dvh}#cashPendingModal .cash-pending-actions{grid-template-columns:1fr}}

/* v2.10.49 · Blindaje final del modal contra reglas SVG globales */
#cashPendingModal .cash-pending-card svg{box-sizing:border-box!important;min-width:0!important;min-height:0!important}
#cashPendingModal .cash-pending-head .cash-pending-close>svg{width:16px!important;height:16px!important}
#cashPendingModal .cash-pending-search>svg{width:17px!important;height:17px!important}
#cashPendingModal .cash-pending-results button{font-family:inherit!important}

/* v2.10.52 · Clientes compactos + acciones seguras */
.customers-list{gap:6px}
.customer-row{border-radius:10px;box-shadow:none;overflow:hidden}
.customer-row-main{min-height:54px;padding:8px 11px;gap:10px}
.customer-row-info>strong{font-size:14px;line-height:1.2}
.customer-row-info>small{margin-top:2px;font-size:11px;line-height:1.2}
.customer-row-balance span{font-size:11px;line-height:1.1}
.customer-row-balance strong{font-size:16px;line-height:1.15}
.customer-notified{margin-top:4px;font-size:10px}
.customer-row-actions{padding:5px 8px;gap:6px;min-height:0}
.customer-row-actions button{min-height:31px;padding:5px 9px;border-radius:7px;font-size:10px}
.customer-row-actions button svg{width:13px;height:13px}
.customer-delete-btn{border:1px solid #efc2c2;background:#fff;color:#a12626}
.customer-delete-btn:hover{background:#fff3f3;border-color:#dfa1a1}
.customer-create-actions button:disabled{opacity:.62;cursor:wait}
@media(min-width:700px){
  .customer-row{grid-template-columns:minmax(0,1fr) auto;align-items:stretch}
  .customer-row-actions{border-top:0;border-left:1px solid var(--line);align-items:center;background:#fbfdff}
  .customer-row-actions button{white-space:nowrap}
}
@media(max-width:560px){
  .customer-row-main{padding:9px 10px}
  .customer-row-actions{display:flex;flex-wrap:wrap}
  .customer-row-actions button{flex:1 1 auto}
}

.credit-sale-concept{width:100%;min-height:46px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--navy);padding:9px 11px;font:inherit}.credit-sale-card>label{display:grid;gap:5px;font-size:12px;font-weight:650;color:var(--navy)}.credit-sale-card>label small{font-weight:400;color:var(--muted)}.customer-sale-concept{margin-top:9px;padding:8px 9px;border-radius:8px;background:#f8fafc;border:1px solid var(--line);display:grid;gap:2px}.customer-sale-concept span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.customer-sale-concept strong{font-size:13px;font-weight:600;color:var(--navy)}
.credit-sale-date{width:100%;min-height:46px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--navy);padding:9px 11px;font:inherit}.customer-purchase-date{margin-top:9px;display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center;font-size:12px}.customer-purchase-date span{color:var(--muted)}.customer-purchase-date strong{font-weight:650}.customer-purchase-date button{border:0;background:transparent;color:var(--blue);font:inherit;font-size:11px;font-weight:700;cursor:pointer;padding:4px}@media(max-width:560px){.customer-purchase-date{grid-template-columns:1fr auto}.customer-purchase-date span{grid-column:1/-1}.customer-purchase-date button{justify-self:end}}

/* v2.10.81 · Privacidad individual de saldos, importe y ojo en una sola línea */
.customers-amount-inline{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}.customers-privacy-btn{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--navy);cursor:pointer;padding:0}.customers-privacy-btn-small{width:28px;height:28px;flex-basis:28px;border-color:transparent;background:transparent}.customers-privacy-btn:hover{background:#f3f8fc;border-color:var(--line)}.customers-privacy-icon{position:relative;width:16px;height:16px;display:block}.customers-privacy-icon svg{width:16px;height:16px;display:block;fill:currentColor}.customers-privacy-btn.is-hidden .customers-privacy-icon::after{content:'';position:absolute;left:-1px;top:7px;width:18px;border-top:2px solid currentColor;transform:rotate(-45deg);transform-origin:center}.customers-privacy-btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px}[data-private-amount].is-private-hidden{font-size:0!important;letter-spacing:0}[data-private-amount].is-private-hidden::after{content:'••••••';font-size:18px;letter-spacing:2px;color:var(--navy)}#customersTotalPending.is-private-hidden::after{font-size:24px}.customer-row-balance{display:grid;justify-items:end;gap:1px}.customer-row-balance .customers-amount-inline strong{font-size:18px}

/* v2.10.82 · Total pendiente: importe + ojo realmente inline */
.customers-total-card>.customers-amount-inline{display:flex!important;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}

/* v2.10.83 · recordatorio confirmado hoy */
.customer-whatsapp-btn.customer-whatsapp-sent,.customer-whatsapp-btn.customer-whatsapp-sent:disabled{opacity:1;cursor:default;background:#f2f5f6;border-color:#cbd8dd;color:#526b75;box-shadow:none}.customer-whatsapp-btn.customer-whatsapp-sent .whatsapp-icon{color:#526b75}
/* v2.10.84 · saldo a favor */
.credit-store-credit-option{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid #b9dfc7;border-radius:8px;background:#f0faf4;color:#155d35;font-size:12px;font-weight:700}.credit-store-credit-option input{width:auto;min-height:auto;margin:0}.credit-store-credit-option strong{margin-left:auto}.customer-balance.account-credit strong{color:#16804b}

/* v2.10.87 · Confirmación propia para recordatorios de WhatsApp */
.customer-whatsapp-confirm-card{width:min(100%,400px);padding:25px 24px 22px;text-align:center}.customer-whatsapp-confirm-icon{width:48px;height:48px;margin:0 auto 13px;border-radius:14px;background:#eaf8f0;color:#168653}.customer-whatsapp-confirm-icon svg{width:25px;height:25px}.customer-whatsapp-confirm-card h2{margin:0;color:var(--navy);font-size:20px;line-height:1.3}.customer-whatsapp-confirm-card>p{margin:9px auto 19px;max-width:330px;font-size:13px;line-height:1.45}.customer-whatsapp-confirm-actions{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:9px}.customer-whatsapp-confirm-actions button{min-height:50px;margin:0;border-radius:12px}.customer-whatsapp-confirm-actions .whatsapp-share-btn{font-size:13px}.customer-whatsapp-confirm-actions .secondary{font-size:13px}@media(max-width:430px){.customer-whatsapp-confirm-card{padding:22px 18px 18px}.customer-whatsapp-confirm-card h2{font-size:18px}.customer-whatsapp-confirm-actions{grid-template-columns:1fr}.customer-whatsapp-confirm-actions button{min-height:52px}}

/* PORTAL.2: access controls extend the existing customer cards, without a new column. */
.customer-portal-access{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:10px;margin-top:10px;border-top:1px solid #dce5e9;width:100%}.customer-portal-label{font-size:11px;color:#62777e}.customer-portal-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#f6f9fa;border:1px solid #cddce1;border-radius:9px;padding:9px 12px;min-height:40px;color:#355d6b;font-size:12px;font-weight:600}.customer-portal-btn .fa-inline-svg{width:16px;height:16px;fill:currentColor;stroke:none}.customer-portal-dialog{width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid #cddce1;border-radius:18px;background:#fff;color:#243d46;box-shadow:0 22px 70px #17313f35}.customer-portal-dialog::backdrop{background:#13283280}.customer-portal-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:20px}.customer-portal-heading h2{font-size:20px;line-height:1.3;margin:0;overflow-wrap:anywhere}.customer-portal-heading>[data-portal-close]{background:transparent;border:1px solid #d8e2e6;border-radius:8px;padding:7px 10px;font-size:12px;min-height:36px;color:#4e6870}.customer-portal-eyebrow{font-size:10px;letter-spacing:1.4px;color:#6b828a;margin:0 0 7px}.customer-portal-state{padding:10px 12px;background:#f2f7f8;border:1px solid #dde8ea;border-radius:10px;font-size:13px;font-weight:600}.customer-portal-help{font-size:12px;color:#60767e;line-height:1.6;margin:12px 0}.customer-portal-dialog label{display:grid;gap:7px;font-size:12px;color:#486670;margin:12px 0}.customer-portal-dialog input:not([type=checkbox]){width:100%;min-width:0;border:1px solid #cbdce2;border-radius:8px;padding:10px;background:#fff;color:#254d5d;font:inherit;min-height:42px}.customer-portal-dialog input[readonly]{font-size:11px}.customer-portal-dialog .customer-portal-check{display:flex;align-items:flex-start;gap:9px;line-height:1.5}.customer-portal-check input{width:17px;height:17px;flex:0 0 auto}.customer-portal-actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.customer-portal-actions button,.customer-portal-dialog form button{min-height:42px;padding:9px 13px;border-radius:9px;font-size:12px;white-space:normal}.customer-portal-dialog [data-portal-notice]{padding:11px 12px;background:#fff3e9;color:#81542f;border:1px solid #ead6c2;border-radius:9px;font-size:12px}.customer-portal-dialog h3{font-size:16px;margin:20px 0 10px}@media(max-width:600px){.customer-portal-access{align-items:stretch}.customer-portal-label{width:100%}.customer-portal-btn{width:100%;justify-content:center}.customer-portal-dialog{padding:20px 17px;max-height:calc(var(--credit-viewport-height,100dvh) - 24px)}.customer-portal-actions{display:grid;grid-template-columns:1fr;width:100%}.customer-portal-actions button{width:100%}.customer-portal-dialog form button{width:100%}}

.customer-row>.customer-portal-access{grid-column:1/-1;margin:0;padding:10px 13px;box-sizing:border-box}

/* CLIENTES-UI: only the pending-sale selector and its reused creation popup. */
body.credit-flow-open{overflow:hidden}
#creditSaleModal,#customerCreateModal.credit-origin{padding:12px;overflow:hidden;top:var(--credit-viewport-top,0px);bottom:auto;height:var(--credit-viewport-height,100dvh)}
#creditSaleModal .credit-sale-card{display:flex;flex-direction:column;max-height:calc(var(--credit-viewport-height,100dvh) - 24px);padding:18px;width:min(100%,430px);min-height:0}
.credit-picker-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0}.credit-picker-heading h2{margin:0;font-size:21px}.credit-picker-heading button{width:44px;flex:0 0 44px;min-width:44px;min-height:44px;font-size:22px;padding:6px}
.credit-sale-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 3px 8px}.credit-sale-scroll>label{display:block;font-size:12px;margin-top:12px;font-weight:600}.credit-sale-scroll>p{font-size:13px;line-height:1.4}.credit-sale-card>.modal-actions{flex-shrink:0;padding-top:10px;border-top:1px solid var(--line)}.credit-sale-card>.modal-actions .tall{margin-top:0;min-height:46px;font-size:12px}
.credit-customer-results{display:grid;gap:6px;max-height:210px;overflow-y:auto;margin-top:8px}.credit-customer-result{display:grid;gap:4px;min-height:54px;width:100%;padding:10px 12px;text-align:left;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--navy);font:inherit;overflow-wrap:anywhere}.credit-customer-result strong{font-weight:600;font-size:14px}.credit-customer-result small{font-size:12px}.credit-customer-result:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.credit-customer-selected{display:grid;gap:5px;padding:12px;margin-top:10px;border:1px solid #b8d0e3;border-radius:9px;background:#f8fbfe;overflow-wrap:anywhere}.credit-customer-selected small{font-size:12px}.credit-add-customer{display:flex;align-items:center;gap:7px;min-height:44px;margin-top:8px}
#customerCreateModal.credit-origin .modal-card{max-height:calc(var(--credit-viewport-height,100dvh) - 24px);overflow-y:auto;overscroll-behavior:contain;padding:20px}
#customerCreateModal.credit-origin .customer-create-actions{position:sticky;bottom:-20px;background:var(--card);padding:10px 0 20px;margin-bottom:-20px}.credit-sale-scroll input{max-width:100%;min-width:0}

/* CLIENTES-UI.2: a quiet, theme-aware surface for selectable customers. */
.credit-customer-result{background:color-mix(in srgb,var(--card) 94%,var(--navy) 6%);border-color:color-mix(in srgb,var(--line) 85%,var(--navy) 15%);transition:background .12s,border-color .12s}
.credit-customer-result:hover,.credit-customer-result:focus-visible{background:color-mix(in srgb,var(--card) 90%,var(--navy) 10%)}
.credit-customer-result:active{background:color-mix(in srgb,var(--card) 87%,var(--navy) 13%)}
#cashPendingModal .cash-pending-result{grid-template-columns:minmax(0,1fr)!important}
.customers-followup-filter{display:flex;gap:5px;margin:10px 0;flex-wrap:wrap}
.customers-followup-filter button{border:1px solid var(--line);border-radius:9px;background:var(--card,#fff);color:var(--muted);font:inherit;font-size:12px;padding:7px 12px;min-height:36px;cursor:pointer}
.customers-followup-filter button[aria-pressed="true"]{border-color:var(--blue);color:var(--blue-dark);background:var(--soft,#f4f8fc)}
.customers-followup-filter button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.customer-row.has-balance{border-left:1px solid var(--line)}
.customer-row.needs-followup{border-left:4px solid #d5a451}
.customer-followup-meta{display:flex;gap:3px 14px;flex-wrap:wrap;margin-top:6px}
.customer-followup-meta span{font-size:11px;color:var(--muted);font-weight:400;line-height:1.4;overflow-wrap:anywhere}
.customer-followup-badge{display:flex!important;align-items:center;gap:5px;margin-top:5px;color:#8a652b;font-size:11px;font-weight:500}
.customer-followup-badge i{flex-shrink:0}
.customers-total-card>div{min-width:0}
@media(max-width:560px){.customer-followup-meta{display:grid;gap:2px}.customer-followup-meta span{font-size:10px}}

/* Comprobante existente: papel legible y acciones fuera del área de captura. */
#customerReceiptPrintable .customer-receipt{box-sizing:border-box;width:58mm;max-width:100%;margin:0 auto;padding:12px;font-size:14px;line-height:1.45;overflow-wrap:anywhere;border:1px solid #e5e7eb}
#customerReceiptPrintable .customer-receipt h2{font-size:18px;line-height:1.25;margin:6px 0}
#customerReceiptPrintable .receipt-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;font-size:13px}
#customerReceiptPrintable .receipt-row strong{max-width:115px;text-align:right;overflow-wrap:anywhere}
#customerReceiptPrintable .customer-receipt-logo{display:block;width:48px;height:48px;object-fit:contain;margin:0 auto 6px}
#customerReceiptPrintable .customer-receipt-paid{padding:10px 0;margin:12px 0;border-block:1px solid #333;font-size:16px;letter-spacing:.02em}
#customerReceiptPrintable .customer-receipt-legend{margin-top:12px;font-size:12px;line-height:1.4}
#customerReceiptModal .customer-receipt-card{max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow-y:auto}
#customerReceiptPrintable .customer-receipt p{color:#111}

/* COBRANZA.2: mismas fuentes y mismo abono, dos presentaciones. */
.customer-pending-total{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-block:1px solid var(--line);font-size:14px}
.customer-pending-value{color:#a74444;font-weight:500}
.customer-contribution-warning{grid-column:1/-1;color:var(--muted);line-height:1.4;font-size:12px}
.customer-receipt-formats{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}
.customer-receipt-formats button{min-width:0;padding:9px 8px;font-weight:500}
.customer-receipt-formats [aria-pressed="true"]{background:var(--bg);border-color:var(--blue);color:var(--blue-dark)}
#customerReceiptNotice:empty{display:none}
#customerReceiptNotice{margin:8px 0;font-size:12px;line-height:1.4}
#customerReceiptModal .customer-receipt-card.is-account{width:min(100%,680px);max-width:680px}
#customerReceiptPrintable .customer-receipt h3{font-size:14px;line-height:1.4;font-weight:500;margin:10px 0 7px}
#customerReceiptPrintable .customer-receipt .customer-receipt-state{padding:9px 0;margin:12px 0;border-block:1px solid #d4d9df;color:#354252;font-size:15px;font-weight:500}
#customerReceiptPrintable .customer-receipt-state strong{font-weight:inherit}
#customerReceiptPrintable .customer-receipt .customer-receipt-paid{color:#23694c;border-color:#b8d5c7;background:#f4faf6}
#customerReceiptPrintable .customer-receipt .is-reversed{color:#a74444}
#customerReceiptPrintable .receipt-applied-order{display:grid;gap:3px;padding:8px 0;border-bottom:1px dashed #dedede;min-width:0;font-size:13px;overflow-wrap:anywhere}
#customerReceiptPrintable .customer-receipt-account{width:100%;max-width:620px;padding:16px;font-size:14px}
#customerReceiptPrintable .customer-receipt-account .receipt-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);font-size:14px}
#customerReceiptPrintable .customer-receipt-account .receipt-row strong{max-width:none}
#customerReceiptPrintable .receipt-pending-order{margin:10px 0;padding:10px 0;border-bottom:1px solid #e5e7eb;break-inside:avoid}
#customerReceiptPrintable .receipt-pending-order header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:13px}
#customerReceiptPrintable .receipt-pending-order p{text-align:left;font-size:14px;margin:5px 0 8px}
#customerReceiptPrintable .receipt-pending-order .account-values{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 8px;font-size:13px;overflow-wrap:anywhere}
#customerReceiptPrintable .receipt-pending-order .account-values strong{text-align:right;min-width:0;font-weight:500}
#customerReceiptPrintable .customer-receipt .receipt-observed{font-size:12px;line-height:1.4;color:#586572}
#customerReceiptPrintable .receipt-current-total{padding:10px 0;border-block:1px solid #ddd}
@media(max-width:420px){#customerReceiptModal .customer-receipt-card.is-account{padding:14px}#customerReceiptPrintable .customer-receipt-account{padding:12px}}
