/* Grafik ringkas menu Pelanggan: donat sumber chat, batang status, cincin rata-rata balas */
.pel-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pc-card { position: relative; overflow: hidden; padding: 18px 18px 16px; transition: transform .25s ease, box-shadow .25s ease; animation: pcIn .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.pel-charts .pc-card:nth-child(2) { animation-delay: .08s; }
.pel-charts .pc-card:nth-child(3) { animation-delay: .16s; }
.pc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(31, 24, 56, .12); }
.pc-h h3 { margin: 0; font-size: 14px; font-weight: 700; }
.pc-h small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

.pc-donut, .pc-ring { position: relative; width: 150px; height: 150px; margin: 12px auto 4px; }
.pc-svg { width: 100%; height: 100%; display: block; }
.pc-track { fill: none; stroke: #EEEAF6; stroke-width: 3.4; }
.pc-arc { fill: none; stroke-width: 3.4; stroke-linecap: round; transition: stroke-dasharray 1s cubic-bezier(.2, .8, .2, 1), stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1), stroke .4s ease; }
.pc-arc { stroke: #0891B2; }
.pc-web { stroke: #0891B2; }
.pc-wa { stroke: #25A866; }
.pc-ok .pc-arc { stroke: #25A866; }
.pc-warn .pc-arc { stroke: #E39B2E; }
.pc-alert .pc-arc { stroke: #D2392B; }
.pc-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.pc-c b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.pc-c small { color: var(--muted); font-size: 11px; }

.pc-leg { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.pc-leg li { display: flex; align-items: center; gap: 8px; }
.pc-leg b { margin-left: auto; font-variant-numeric: tabular-nums; }
.pc-leg em { width: 44px; text-align: right; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.pc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pc-dot.wa { background: #25A866; }
.pc-dot.web { background: #0891B2; }

.pc-bars { display: grid; gap: 16px; margin-top: 14px; }
.pc-bl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 12.5px; }
.pc-bl b { font-variant-numeric: tabular-nums; font-weight: 700; }
.pc-tr { height: 10px; border-radius: 999px; background: #EEEAF6; overflow: hidden; }
.pc-tr i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #8B7BFF, #0891B2); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.pc-bar[data-k="wait"] .pc-tr i { background: linear-gradient(90deg, #FF8A7A, #D2392B); animation: pcPulse 1.6s ease-in-out infinite; }
.pc-bar[data-k="unread"] .pc-tr i { background: linear-gradient(90deg, #FFD27A, #E39B2E); }
.pc-bar[data-k="done"] .pc-tr i { background: linear-gradient(90deg, #5FD39A, #25A866); }

@keyframes pcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pcPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .pc-card, .pc-arc, .pc-tr i, .pc-bar[data-k="wait"] .pc-tr i { animation: none !important; transition: none !important; }
}

/* Kartu KPI Pelanggan: tampilan modern dengan bar progres dan animasi masuk */
.pel-kpis .stat { position: relative; padding: 16px 16px 16px; border-radius: 18px; background: linear-gradient(160deg, #FFFFFF 0%, #FAF9FE 100%); transition: transform .25s ease, box-shadow .25s ease; animation: pcIn .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.pel-kpis .stat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 24, 56, .12); }
.pel-kpis .stat b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pel-kpis .stat small { font-size: 12px; }
.pel-kpis .kpi-total { animation-delay: .00s; } .pel-kpis .kpi-online { animation-delay: .05s; } .pel-kpis .kpi-unread { animation-delay: .10s; }
.pel-kpis .kpi-wait { animation-delay: .15s; } .pel-kpis .kpi-avg { animation-delay: .20s; } .pel-kpis .kpi-done { animation-delay: .25s; }
.kpi-bar { display: block; height: 5px; margin-top: 10px; border-radius: 99px; background: #EEEAF6; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #8B7BFF, #0891B2); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.kpi-avg .kpi-bar i { background: linear-gradient(90deg, #FFD27A, #E39B2E); }
.kpi-done .kpi-bar i { background: linear-gradient(90deg, #7FE0AE, #25A866); }
.kpi-alert .kpi-bar i { background: linear-gradient(90deg, #FF8A7A, #D2392B); animation: pcPulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pel-kpis .stat, .kpi-bar i, .kpi-alert .kpi-bar i { animation: none !important; transition: none !important; } }
