.customer-detail-head{display:grid;grid-template-columns:1.35fr .85fr;gap:18px;margin-bottom:16px}.customer-cover{min-height:142px;border-radius:17px;padding:24px;display:flex;align-items:center;gap:18px;background:radial-gradient(circle at 90% 20%,rgba(255,255,255,.16),transparent 28%),linear-gradient(135deg,#0b315f,#1769e0);color:#fff;box-shadow:0 15px 35px rgba(18,68,132,.16)}.customer-cover a{font-size:10px;color:#b9d7ff}.customer-cover h1{font-size:26px;margin:9px 0 8px}.customer-cover p{font-size:10px;color:#d1e4fb;margin:0}.customer-cover p span{padding:5px 8px;border-radius:20px;background:rgba(255,255,255,.13);margin-right:8px}.customer-avatar-v5{width:74px;height:74px;border-radius:20px;display:grid;place-items:center;background:#fff;color:#1769e0;font-size:20px;font-weight:800;box-shadow:0 10px 28px rgba(0,0,0,.14)}.customer-note-compose{position:relative;background:#fff;border:1px solid #dfe7f1;border-radius:17px;padding:18px;box-shadow:0 8px 24px rgba(20,47,82,.05)}.customer-note-compose:before{content:"";position:absolute;left:-10px;top:35px;width:18px;height:18px;background:#fff;border-left:1px solid #dfe7f1;border-bottom:1px solid #dfe7f1;transform:rotate(45deg)}.customer-note-compose label{display:block;font-size:10px;font-weight:800;color:#36516f}.customer-note-compose textarea{display:block;width:100%;resize:vertical;border:0;outline:0;padding:10px 0;font-size:11px;line-height:1.5}.customer-note-compose button{float:right;border:0;background:#eaf3ff;color:var(--blue);border-radius:8px;padding:8px 11px;font-size:9px;font-weight:800;cursor:pointer}.customer-balance-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:15px}.customer-balance-grid article{min-height:92px;border-radius:13px;background:linear-gradient(135deg,#36adda,#2089b7);color:#fff;padding:17px;display:flex;align-items:center;gap:14px;box-shadow:0 9px 24px rgba(24,75,130,.12)}.customer-balance-grid article>span{font-size:27px;opacity:.9}.customer-balance-grid small,.customer-balance-grid strong,.customer-balance-grid em{display:block}.customer-balance-grid small{font-size:9px;opacity:.8}.customer-balance-grid strong{font-size:18px;margin:5px 0}.customer-balance-grid em{font-size:8px;font-style:normal;opacity:.75}.customer-balance-grid .balance-open{background:linear-gradient(135deg,#ff806f,#e75f57)}.customer-balance-grid .balance-purchase{background:linear-gradient(135deg,#4bc89e,#21a779)}.customer-actions-v5{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.customer-actions-v5 a,.customer-actions-v5 button{border:1px solid #dce4ee;background:#fff;color:#344b68;border-radius:9px;padding:9px 12px;font-size:9px;font-weight:800;cursor:pointer;box-shadow:0 4px 12px rgba(15,46,84,.05)}.customer-actions-v5 a:hover,.customer-actions-v5 button:hover{transform:translateY(-1px);border-color:#a8c7ef}.customer-actions-v5 .action-sale{background:#1769e0;color:#fff;border-color:#1769e0}.customer-actions-v5 .action-money{background:#19a675;color:#fff;border-color:#19a675}.customer-actions-v5 form{margin:0}.customer-actions-v5 .action-danger{background:#fff;color:#e14b4b;border-color:#f3c4c4}.customer-actions-v5 .action-danger:hover{background:#e14b4b;color:#fff;border-color:#e14b4b}.customer-detail-grid{display:grid;grid-template-columns:1.25fr .95fr;gap:18px;align-items:start}.customer-main-stack,.customer-side-stack{display:flex;flex-direction:column;gap:18px}.detail-panel{overflow:hidden}.detail-panel-title{padding:15px 18px;background:#102f58;color:#fff;display:flex;justify-content:space-between;align-items:center}.detail-panel-title h2{font-size:12px;margin:0 0 4px;text-transform:uppercase;letter-spacing:.3px}.detail-panel-title p{font-size:9px;color:#a9c0dc;margin:0}.detail-panel-title>span{font-size:9px;background:rgba(255,255,255,.12);padding:6px 8px;border-radius:20px}.compact-empty{padding:27px!important;font-size:10px}.customer-timeline{padding:7px 16px}.customer-timeline>div{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.customer-timeline i{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;font-style:normal;font-weight:800}.customer-timeline i.income{background:#e9f9f3;color:#14a16f}.customer-timeline i.expense{background:#fff0f1;color:#df5360}.customer-timeline p{margin:0;flex:1}.customer-timeline b,.customer-timeline small{display:block;font-size:10px}.customer-timeline small{font-size:8px;color:var(--muted);margin-top:4px}.customer-timeline strong{font-size:10px}.customer-contact dl{display:grid;grid-template-columns:120px 1fr;margin:0;padding:10px 18px 18px}.customer-contact dt,.customer-contact dd{padding:10px 0;border-bottom:1px solid var(--line);font-size:10px}.customer-contact dt{color:var(--muted)}.customer-contact dd{margin:0;font-weight:600}.mini-doc-list,.saved-notes{padding:10px 16px}.mini-doc-list>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.mini-doc-list b,.mini-doc-list small{display:block;font-size:10px}.mini-doc-list small{font-size:8px;color:var(--muted);margin-top:3px}.mini-doc-list strong{font-size:10px}.saved-notes>div{position:relative;padding:12px 28px 12px 12px;background:#fffbea;border:1px solid #f1e8bd;border-radius:9px;margin-bottom:8px}.saved-notes p{font-size:10px;line-height:1.5;margin:0 0 7px}.saved-notes small{font-size:8px;color:#8c8159}.saved-notes form{position:absolute;right:7px;top:7px}.saved-notes button{border:0;background:transparent;color:#a39664;cursor:pointer}.detail-panel table th,.detail-panel table td{padding:12px 15px;font-size:10px}
@media(max-width:1100px){.customer-balance-grid{grid-template-columns:repeat(2,1fr)}.customer-detail-grid{grid-template-columns:1fr}.customer-detail-head{grid-template-columns:1fr}.customer-note-compose:before{display:none}}@media(max-width:650px){.customer-cover{align-items:flex-start}.customer-avatar-v5{width:55px;height:55px;flex:none}.customer-cover h1{font-size:21px}.customer-balance-grid{grid-template-columns:1fr}.customer-actions-v5>*{flex:1;text-align:center;min-width:130px}.customer-contact dl{grid-template-columns:100px 1fr}}
@media print{.sidebar,.topbar,.customer-actions-v5,.customer-note-compose,.saved-notes form{display:none!important}.content{margin:0}.page{padding:0}.customer-detail-head{grid-template-columns:1fr}.customer-detail-grid{grid-template-columns:1fr}.card{box-shadow:none}}