#customer-overview{margin:0 0 28px;padding:24px;scroll-margin-top:110px}
.customer-overview-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.customer-overview-stats article{min-width:0;padding:18px;border:1px solid #bc7d8066;border-radius:16px;background:#591b2d;color:#fff0e3}
.customer-overview-stats small{display:block;font-size:14px;color:#f1d6cf}
.customer-overview-stats strong{display:block;font-size:clamp(22px,3vw,32px);margin:12px 0;overflow-wrap:anywhere}
.customer-overview-stats p{font-size:12px;line-height:1.5;margin:0;color:#e9c6c4}
.customer-next-list{display:grid;gap:10px}.customer-next-list article{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;border-radius:14px;background:#421423;border:1px solid #bc7d8055}
.customer-next-list strong,.customer-next-list small{display:block;overflow-wrap:anywhere}.customer-next-list small{margin-top:7px;color:#dfbcc2}.customer-next-list button{flex-shrink:0}
#customer-overview [hidden],#customer-history-dialog [hidden]{display:none!important}
#customer-history-dialog{box-sizing:border-box;width:min(1000px,94vw);max-width:94vw;max-height:90dvh;overflow:auto;background:#35101f;color:#fff0e3;border:1px solid #bf8c70;border-radius:20px;padding:24px}
#customer-history-dialog::backdrop{background:#160910d9}
#customer-history-dialog h2{margin:0;font-size:22px}#customer-history-dialog p{overflow-wrap:anywhere}
.customer-history-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:12px;margin:18px 0}
.customer-history-filters label{display:grid;gap:6px;min-width:0}.customer-history-filters input,.customer-history-filters select{box-sizing:border-box;width:100%;min-width:0;background:#4d1b2a;color:#fff0e3;border:1px solid #ab7481;border-radius:10px;padding:10px;font-size:16px;color-scheme:dark}
#customer-history-form{gap:12px;margin:16px 0;padding:0}#customer-history-form label{margin:0;padding:0;gap:6px}#customer-history-form input,#customer-history-form select{margin:0}#customer-history-form button{margin:0}
.customer-history-row{border:1px solid #b77b8055;border-radius:14px;background:#421423;padding:18px;margin:12px 0;overflow-wrap:anywhere}.customer-history-row h3{margin:0}.customer-history-phone{font-size:18px}.customer-history-row button{margin-top:12px}
.chat-filter{display:flex;gap:8px;align-items:center;font-size:14px}.chat-filter input{width:18px;height:18px;accent-color:#bd596e}
#chat-dialog .chat-context{display:flex;gap:6px;flex-shrink:0}#chat-dialog .chat-context button{flex:1;min-width:0;font-size:12px;padding:8px 4px;min-height:38px}
#chat-dialog .chat-quick{display:grid;gap:4px;flex-shrink:0;font-size:12px}#chat-dialog .chat-quick select{width:100%;min-width:0;max-width:100%;padding:8px;border:1px solid #a16a7770;background:#4d1b2a;color:#fff0e3;border-radius:10px;font-size:16px}
.chat-welcome{padding:10px 12px;margin:0 0 12px;color:#f1d6cf;border:1px solid #b77b8055;border-radius:12px;text-transform:none;line-height:1.5}.chat-unanswered-state{font-size:12px;color:#ffd48c}
@media(max-width:650px){.customer-overview-stats{grid-template-columns:1fr;gap:10px}.customer-overview-stats article{padding:14px}.customer-overview-stats strong{margin:7px 0}.customer-next-list article{align-items:stretch;flex-direction:column;gap:12px}.customer-history-filters{grid-template-columns:1fr 1fr}.customer-history-filters label:nth-child(3),.customer-history-filters>button{grid-column:1/-1}#customer-history-dialog{padding:16px}.customer-history-row{padding:14px}#customer-history-dialog .discover-heading{align-items:start;gap:10px}#customer-history-dialog h2{font-size:18px}}
@media(max-width:650px){#customer-overview{padding:16px}#customer-overview>.discover-heading{flex-wrap:wrap;gap:12px}#customer-history-totals{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#customer-history-totals article{padding:10px}#customer-history-totals small{font-size:12px}#customer-history-totals p{font-size:11px}#customer-history-totals strong{font-size:24px}}
