/* v9.6 — Báo cáo tổng kết Campaign */
body.ucrp-mode .app-shell{display:none!important}
body.ucrp-mode{background:#eef2f7}
#ucrpRoot[hidden]{display:none}
.ucrp-page{max-width:1240px;margin:0 auto;padding:18px 20px 40px;color:#102a43}
.ucrp-empty{max-width:560px;margin:15vh auto;padding:28px;background:#fff;border-radius:14px;text-align:center}
.ucrp-toolbar{position:sticky;top:0;z-index:5;display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #dce6f1;border-radius:12px;padding:10px 14px;margin-bottom:12px;box-shadow:0 4px 14px rgba(16,42,67,.06)}
.ucrp-toolbar label{display:flex;gap:6px;align-items:center;font-size:13px;font-weight:600;color:#334e68}
.ucrp-spacer{flex:1}
.ucrp-warn{background:#fff4e5;border:1px solid #f5d38a;color:#7a4b00;border-radius:10px;padding:10px 14px;margin-bottom:10px;font-size:13px}
.ucrp-note{background:#f0f6ff;border:1px solid #d6e4f7;color:#243b53;border-radius:10px;padding:8px 14px;margin-bottom:10px;font-size:12.5px}
.ucrp-head{display:flex;justify-content:space-between;gap:20px;align-items:center;background:linear-gradient(120deg,#102a43,#1f4d84);color:#fff;border-radius:16px;padding:22px 26px;margin-bottom:14px}
.ucrp-kicker{font-size:11px;letter-spacing:.14em;color:#9fb3c8;font-weight:800}
.ucrp-head h1{margin:4px 0 6px;font-size:26px;line-height:1.2}
.ucrp-head p{margin:2px 0;color:#d9e2ec;font-size:13px}
.ucrp-logo{height:56px;border-radius:10px;background:#fff;padding:4px}
.ucrp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:14px}
.ucrp-card{background:#fff;border:1px solid #dce6f1;border-top:3px solid #2f6fed;border-radius:12px;padding:12px 14px;min-width:0}
.ucrp-card.cyan{border-top-color:#17a6bb}.ucrp-card.green{border-top-color:#23aa79}.ucrp-card.purple{border-top-color:#8b77dc}.ucrp-card.amber{border-top-color:#d69e2e}
.ucrp-card span{display:block;font-size:12px;color:#627d98;font-weight:600}
.ucrp-card b{display:block;font-size:24px;margin:4px 0 2px;color:#102a43;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ucrp-card b small{font-size:13px;color:#7b8794}
.ucrp-card>small{font-size:11px;color:#7b8794}
.ucrp-two{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.ucrp-panel{background:#fff;border:1px solid #dce6f1;border-radius:14px;padding:16px 18px;min-width:0}
.ucrp-panel h3{margin:0 0 12px;font-size:15px}
.ucrp-panel h3 small{font-weight:500;color:#7b8794;font-size:12px;margin-left:6px}
.ucrp-progress{margin-bottom:12px}
.ucrp-progress-top{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.ucrp-progress-top b small{color:#7b8794;font-weight:500}
.ucrp-progress>small{font-size:11px;color:#7b8794}
.ucrp-track{height:9px;background:#eef2f7;border-radius:99px;overflow:hidden;margin:5px 0 3px}
.ucrp-track i{display:block;height:100%;background:#2f6fed;border-radius:99px}
.ucrp-track i.ok{background:#23aa79}.ucrp-track i.mid{background:#2f6fed}.ucrp-track i.low{background:#d69e2e}
.ucrp-funnel{display:grid;grid-template-columns:150px 1fr 52px;gap:10px;align-items:center;font-size:13px;margin-bottom:6px}
.ucrp-funnel b{text-align:right}
.ucrp-ins{margin:0;padding-left:18px;font-size:13px;line-height:1.6;color:#243b53}
.ucrp-top h4{margin:0 0 10px;font-size:15px}
.ucrp-toprow{display:grid;grid-template-columns:22px minmax(90px,170px) 1fr 82px;gap:8px;align-items:center;font-size:12.5px;margin-bottom:6px}
.ucrp-rank{width:20px;height:20px;border-radius:50%;background:#eef4ff;color:#2f6fed;font-weight:800;font-size:11px;display:flex;align-items:center;justify-content:center}
.ucrp-topname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.ucrp-toptrack{height:10px;background:#eef2f7;border-radius:99px;overflow:hidden}
.ucrp-toptrack i{display:block;height:100%;background:linear-gradient(90deg,#2f6fed,#17a6bb);border-radius:99px}
.ucrp-toprow b{text-align:right;font-variant-numeric:tabular-nums}
.ucrp-muted{color:#7b8794;font-size:13px}
.ucrp-tablewrap{overflow-x:auto;margin-bottom:14px}
.ucrp-table{width:100%;border-collapse:collapse;font-size:12px}
.ucrp-table th,.ucrp-table td{padding:7px 8px;border-bottom:1px solid #e6ecf3;text-align:left;vertical-align:top}
.ucrp-table th{background:#f5f8fc;color:#486581;font-weight:700;white-space:nowrap}
.ucrp-table .r{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ucrp-table tfoot td{background:#f5f8fc;border-top:2px solid #d5dce6}
.ucrp-table a{color:#1f4d84}
.ucrp-table tr.ucrp-dim td{color:#9aa5b1}
.ucrp-notecell{max-width:260px}
.ucrp-foot{font-size:11px;color:#7b8794;text-align:center;margin-top:8px}
@media(max-width:900px){.ucrp-two{grid-template-columns:1fr}.ucrp-head{flex-direction:column;align-items:flex-start}}
@media print{
  @page{size:A4 landscape;margin:10mm}
  body.ucrp-mode{background:#fff}
  .no-print,#toast{display:none!important}
  .ucrp-page{max-width:none;padding:0}
  .ucrp-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .ucrp-track i,.ucrp-toptrack i,.ucrp-card,.ucrp-rank,.ucrp-table th{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .ucrp-cards{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
  .ucrp-card{padding:8px 10px}.ucrp-card b{font-size:18px}
  .ucrp-two{gap:8px;margin-bottom:8px}
  .ucrp-panel{padding:10px 12px;break-inside:avoid}
  .ucrp-progress{margin-bottom:6px}
  .ucrp-head{padding:14px 18px;margin-bottom:8px}
  .ucrp-tablewrap{break-inside:auto}
  .ucrp-tablewrap{overflow:visible}
}
.ucrp-table th{text-transform:none;letter-spacing:0}
