/* TCPN Tool – form tra cứu phạt nguội. Màu chủ đạo theo logo: xanh #1a56db, vàng #f5c400 */
.tcpn{--p:#1a56db;--p2:#123f9e;--y:#f5c400;--ok:#0f9d58;--warn:#d93025;--bd:#dfe3ea;--bg:#f5f7fb;--tx:#1f2430;--mut:#5b6472;
  max-width:760px;margin:0 auto 32px;background:#fff;border:1px solid var(--bd);border-radius:8px;box-shadow:0 8px 28px rgba(18,63,158,.10);overflow:hidden;font-size:16px;color:var(--tx)}
.tcpn *{box-sizing:border-box}
.tcpn [hidden]{display:none!important}
.tcpn__tabs{display:flex;background:var(--bg);border-bottom:1px solid var(--bd)}
.tcpn__tab{flex:1;padding:14px 12px;border:0;background:transparent;font:inherit;font-weight:600;color:var(--mut);cursor:pointer;position:relative;transition:color .15s}
.tcpn__tab.is-active{color:var(--p);background:#fff}
.tcpn__tab.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--p);border-radius:2px 2px 0 0}
.tcpn__form{padding:20px}
.tcpn__row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.tcpn__pill{flex:1 1 120px;position:relative;cursor:pointer}
.tcpn__pill input{position:absolute;opacity:0;inset:0}
.tcpn__pill span{display:block;text-align:center;padding:10px 12px;border:1.5px solid var(--bd);border-radius:5px;font-weight:600;background:#fff;transition:.15s}
.tcpn__pill input:checked+span{border-color:var(--p);background:#eef3ff;color:var(--p);box-shadow:0 0 0 3px rgba(26,86,219,.12)}
.tcpn__pill input:focus-visible+span{outline:2px solid var(--p);outline-offset:2px}
.tcpn__pill--vang input:checked+span{background:#fff8d6;border-color:#d4a700;color:#7a5f00}
.tcpn__pill--xanh input:checked+span{background:#e3f1ff;border-color:#1976d2;color:#0b4f8f}
.tcpn__fields{display:grid;gap:14px;grid-template-columns:1fr}
.tcpn__field{display:block}
.tcpn__label{display:block;font-size:14px;font-weight:600;color:var(--mut);margin-bottom:6px}
.tcpn__form input[type=text]{width:100%;height:56px;padding:0 48px 0 16px;border:1.5px solid var(--bd);border-radius:6px;font:inherit;font-size:22px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx);background:#fff;transition:.15s}
.tcpn__form input[type=text]:focus{outline:0;border-color:var(--p);box-shadow:0 0 0 4px rgba(26,86,219,.15)}
.tcpn__form input[name=tem]{font-size:18px;letter-spacing:.03em}
.tcpn__form input.is-invalid{border-color:var(--warn);box-shadow:0 0 0 4px rgba(217,48,37,.12)}
.tcpn__plate{position:relative;display:block}
/* Nút xoá biển: reset style button của theme (padding làm méo hình tròn), căn tâm SVG bằng flex */
.tcpn__clear{-webkit-appearance:none;appearance:none;box-sizing:border-box;position:absolute;right:12px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0;padding:0;border:0;border-radius:50%;background:#eef1f6;color:#6b7280;font:inherit;line-height:1;cursor:pointer;transition:background .15s,color .15s}
.tcpn__clear svg{display:block;width:14px;height:14px}
.tcpn__clear:hover{background:#dfe5ef;color:#111827}
.tcpn__clear:focus-visible{outline:2px solid var(--p);outline-offset:2px}
.tcpn__hint{margin:10px 0 0;font-size:13px;color:var(--mut)}
.tcpn__turnstile:empty{display:none}
.tcpn__turnstile{margin-top:12px}
.tcpn__submit{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:54px;margin-top:16px;border:0;border-radius:6px;background:var(--p);color:#fff;font:inherit;font-size:17px;font-weight:700;cursor:pointer;transition:.15s;box-shadow:0 6px 16px rgba(26,86,219,.28)}
.tcpn__submit:hover{background:var(--p2)}
.tcpn__submit[disabled]{opacity:.75;cursor:progress}
.tcpn__spinner{width:20px;height:20px;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:tcpn-spin .8s linear infinite}
@keyframes tcpn-spin{to{transform:rotate(360deg)}}
.tcpn__note{margin:12px 0 0;font-size:12.5px;color:var(--mut);text-align:center;line-height:1.5}
.tcpn__status{margin:12px 0 0;padding:12px 14px;border-radius:5px;font-size:14.5px;line-height:1.5}
.tcpn__status--info{background:#eef3ff;color:var(--p2)}
.tcpn__status--error{background:#fdecec;color:#a4241c}
.tcpn__status--ok{background:#e6f6ec;color:#0b6b3a}
.tcpn__demo{margin:0;padding:8px 20px;background:#fff8d6;color:#7a5f00;font-size:12.5px;border-top:1px dashed #e5c94a}
/* Kết quả */
.tcpn__result{padding:0 20px 20px}
.tcpn__sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:14px}
.tcpn__sum-item{padding:12px 14px;background:var(--bg);border-radius:6px}
.tcpn__sum-item b{display:block;font-size:12px;font-weight:600;color:var(--mut);text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.tcpn__sum-item span{font-size:18px;font-weight:700}
.tcpn__badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:14px;font-weight:700}
.tcpn__badge--ok{background:#e6f6ec;color:#0b6b3a}
.tcpn__badge--warn{background:#fdecec;color:#a4241c}
.tcpn__plate-big{display:inline-block;padding:6px 14px;border:2px solid var(--tx);border-radius:4px;font-weight:800;font-size:20px;letter-spacing:.08em;background:#fff}
.tcpn__empty{display:flex;gap:14px;align-items:flex-start;padding:16px;border:1px solid #bfe8cf;background:#f1fbf5;border-radius:6px}
.tcpn__empty-icon{font-size:28px;line-height:1}
.tcpn__empty h4{margin:0 0 4px;font-size:17px}
.tcpn__empty p{margin:0 0 8px;color:var(--mut);font-size:14.5px;line-height:1.55}.tcpn__empty p:last-child{margin-bottom:0}.tcpn__empty a{color:var(--p);font-weight:600;text-decoration:none}.tcpn__empty a:hover{text-decoration:underline}.tcpn__empty-cta{color:var(--tx)}
.tcpn__list{display:grid;gap:12px}
.tcpn__vp{border:1px solid var(--bd);border-radius:6px;overflow:hidden}
.tcpn__vp-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;background:var(--bg);font-weight:700}
.tcpn__vp-head small{font-weight:600;color:var(--mut)}
.tcpn__vp dl{display:grid;grid-template-columns:150px 1fr;gap:6px 12px;margin:0;padding:12px 14px;font-size:15px}
.tcpn__vp dt{color:var(--mut);font-weight:600}
.tcpn__vp dd{margin:0}
@media (max-width:560px){.tcpn__sum{grid-template-columns:1fr 1fr}.tcpn__sum-item span{font-size:16px}.tcpn__plate-big{font-size:17px;padding:4px 10px}.tcpn__vp dl{grid-template-columns:1fr;gap:2px 0}.tcpn__vp dt{margin-top:6px;font-size:13px}}
.tcpn__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.tcpn__btn{flex:1 1 200px;min-height:46px;padding:10px 14px;line-height:1.3;border-radius:5px;border:1.5px solid var(--p);background:#fff;color:var(--p);font:inherit;font-weight:700;cursor:pointer;transition:.15s}
.tcpn__btn:hover{background:#eef3ff}
.tcpn__btn--y{background:var(--y);border-color:var(--y);color:#3d3000}
.tcpn__btn--y:hover{background:#e6b800}
.tcpn__alert{margin-top:14px;padding:16px;border:1px dashed var(--p);border-radius:6px;background:#f7f9ff}
.tcpn__alert h4{margin:0 0 4px;font-size:16px}
.tcpn__alert p{margin:0 0 12px;font-size:14px;color:var(--mut)}
.tcpn__alert-row{display:grid;grid-template-columns:120px 1fr auto;gap:8px}
.tcpn__alert select,.tcpn__alert input{height:44px;border:1.5px solid var(--bd);border-radius:5px;padding:0 12px;font:inherit;font-size:15px}
.tcpn__alert .tcpn__btn{flex:0 0 auto;height:44px;padding:0 18px}
@media (max-width:560px){.tcpn__alert-row{grid-template-columns:1fr}.tcpn__alert .tcpn__btn{width:100%}}
.tcpn__disc{margin:14px 0 0;font-size:12.5px;color:var(--mut);line-height:1.5}
.tcpn--compact .tcpn__form{padding:14px}.tcpn--compact .tcpn__form input[type=text]{height:48px;font-size:18px}.tcpn--compact .tcpn__submit{height:46px}

/* Badge trung tính: chưa có trong dữ liệu (không phải "xe sạch") */
.tcpn__badge--neutral{background:#eef2f7;color:#334155;border:1px solid #cbd5e1}

/* Kết quả dạng bảng dọc: mỗi thông tin một dòng.
   Tiền tố .tcpn để thắng quy tắc bảng bài viết trong .entry-content (tô xanh/căn giữa dòng đầu). */
.tcpn .tcpn__tbl{width:100%;border-collapse:separate;border-spacing:0;margin:0 0 14px;font-size:15px;line-height:1.5;border:1px solid #e3e7ef;border-radius:5px;overflow:hidden}
.tcpn .tcpn__tbl th,.tcpn .tcpn__tbl td{padding:11px 14px;border:0;border-bottom:1px solid #e3e7ef;vertical-align:top;text-align:left;font-size:15px}
.tcpn .tcpn__tbl tr:last-child th,.tcpn .tcpn__tbl tr:last-child td{border-bottom:0}
.tcpn .tcpn__tbl th{width:190px;font-weight:600;color:#4b5563;background:#f5f7fb;white-space:nowrap}
.tcpn .tcpn__tbl td{color:#111827;background:#fff;font-weight:400;word-break:break-word}
/* Dòng đầu: giữ y hệt các dòng khác (ghi đè rule "hàng tiêu đề" của bảng bài viết) */
.tcpn .tcpn__tbl tr:first-child > th{background:#f5f7fb;font-weight:600;text-align:left;vertical-align:top}
.tcpn .tcpn__tbl tr:first-child > td{background:#fff;font-weight:400;text-align:left;vertical-align:top}
.tcpn .tcpn__tbl td a{color:#1a56db;font-weight:600;text-decoration:none}
.tcpn .tcpn__tbl--sum{margin-bottom:18px}
.tcpn .tcpn__vp{margin:0 0 6px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none} /* bỏ khung của layout thẻ cũ */
.tcpn .tcpn__vp-title{margin:16px 0 8px;font-size:17px;font-weight:700;color:#111827}
.tcpn .tcpn__st{display:inline-block;padding:2px 10px;border:1px solid #d93025;border-radius:2px;color:#d93025;font-weight:600;font-size:14px;text-transform:uppercase}
@media (max-width:600px){
  .tcpn .tcpn__tbl th{width:34%;white-space:normal;font-size:14px;padding:10px 10px}
  .tcpn .tcpn__tbl td{font-size:14.5px;padding:10px 10px}
  .tcpn .tcpn__vp-title{font-size:16px}
}

/* Khối chờ kết quả: đếm ngược + giai đoạn + thanh tiến trình */
.tcpn__status--wait{padding:14px 16px}
.tcpn__wait-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;color:var(--p2)}
.tcpn__wait-count{display:inline-flex;align-items:baseline;gap:4px;font-variant-numeric:tabular-nums;font-weight:800;font-size:28px;line-height:1;color:var(--p2)}
.tcpn__wait-count small{font-size:12px;font-weight:600;color:var(--mut)}
.tcpn__wait-msg{margin-top:6px;font-size:14px;line-height:1.5;color:var(--p2)}
.tcpn__wait-msg b{font-variant-numeric:tabular-nums}
.tcpn__wait-bar{margin-top:10px;height:6px;border-radius:3px;background:rgba(26,86,219,.15);overflow:hidden}
.tcpn__wait-bar i{display:block;height:100%;background:var(--p);transition:width .25s linear}
@media (max-width:600px){.tcpn__wait-count{font-size:24px}.tcpn__wait-head{font-size:14px}}
