/* Shine Sales / Historial v4 */
body.cf-history-view #calculatorScreen,
body.cf-history-view #cfPartnerScreen,body.cf-history-view .cf-demo-privacy{display:none!important}
body.cf-history-view #cfCalculatorNavButton,
body.cf-history-view #cfPartnerNavButton{background:transparent;color:#e3eee8;border-color:transparent}
body.cf-history-view #cfHistoryNavButton{background:#fff;color:#003725;border-color:#fff}
.cf-history-screen{width:100%;max-width:1660px;margin-inline:auto;color:#003725}
.cf-history-hero{border:1px solid #dce7f7;border-radius:18px;background:linear-gradient(105deg,#eaf3ff,#f7faff);padding:26px clamp(18px,2.4vw,34px);display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 9px 24px rgba(0,55,37,.05)}
.cf-history-hero p{margin:0 0 5px;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#276447}
.cf-history-hero h1{margin:0 0 7px;font-size:clamp(26px,2.8vw,36px);color:#003725}
.cf-history-hero span{color:#5d746b;font-size:13px}
.cf-history-hero button,.cf-history-controls button{border-radius:10px;border:1px solid #b6cec2;background:#fff;color:#003725;font:inherit;font-size:13px;font-weight:750;padding:10px 14px;cursor:pointer}
.cf-history-controls{border:1px solid #deebe4;border-radius:14px;background:#fff;padding:15px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:15px 0}
.cf-history-controls label{display:grid;gap:6px;color:#365a4c;font-weight:750;font-size:12px;min-width:170px;flex:1}
.cf-history-controls input,.cf-history-controls select{width:100%;height:39px;border:1px solid #bfd3c8;border-radius:9px;background:#fff;padding:7px 11px;color:#003725;font:inherit}
.cf-history-feedback{font-size:13px;min-height:18px;margin:8px 2px;color:#286a4d}
.cf-history-feedback.is-error{color:#a52c2c}
.cf-history-rows{display:grid;gap:11px}
.cf-history-item{background:white;border:1px solid #deebe4;border-radius:14px;padding:17px 19px;box-shadow:0 6px 17px rgba(0,55,37,.035);min-width:0}
.cf-history-item-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.cf-history-item-title{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.cf-history-item-title small{font-size:11px;color:#647f70;font-weight:700}
.cf-history-item-title strong{font-size:16px;color:#003725}
.cf-history-item-title span{font-size:12px;color:#697f74}
.cf-history-state span{display:inline-block;white-space:nowrap;border-radius:999px;padding:7px 11px;background:#edf4ff;color:#3a66eb;font-size:11px;font-weight:750}
.cf-history-item-detail{display:flex;flex-wrap:wrap;gap:9px 20px;margin-top:14px;padding-top:12px;border-top:1px solid #e6efea;color:#264a3b;font-size:12px;font-weight:700}
.cf-history-item-footer{margin-top:10px;font-size:11px;color:#70857a}
.cf-history-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 3px;color:#5f776a;font-size:12px}
.cf-history-pager div{display:flex;gap:8px}
.cf-history-controls button:disabled,.cf-history-hero button:disabled{opacity:.5;cursor:not-allowed}
.cf-history-empty{padding:24px;border:1px dashed #c8d9d0;border-radius:12px;color:#718176;background:white;text-align:center}
@media(max-width:700px){.cf-history-hero{flex-direction:column;align-items:flex-start}.cf-history-controls label{min-width:100%}.cf-history-item-head{flex-direction:column}.cf-history-state span{white-space:normal}}

.cf-history-more{border-top:1px solid #e6efea;margin-top:11px;padding-top:9px;color:#476658;font-size:12px;overflow-wrap:anywhere}
.cf-history-more summary{cursor:pointer;font-weight:750;color:#003725;width:max-content;max-width:100%}
.cf-history-more p{margin:8px 0;white-space:pre-wrap}
.cf-history-more ul{padding-left:20px;margin:7px 0}
