/**
 * home_dashboard_pro.css
 * Phối màu chuẩn thương hiệu từ Logo TPD ToolTax:
 *   - Xanh lá chủ đạo (P & dấu tích): #00a859 (hover #008f4c, đậm #007a40)
 *   - Xanh dương thương hiệu (T & ToolTax): #2828a0
 *   - Cam điểm nhấn (D & 4.0): #ff8430
 * Độc lập hoàn toàn, không sửa Vue bundle public/js/app.js.
 */

:root {
  --tpd-primary: #00a859;
  --tpd-primary-hover: #008f4c;
  --tpd-primary-dark: #007a40;
  --tpd-primary-soft: #eafaf1;
  --tpd-primary-border: #86efac;
  --tpd-brand-blue: #2828a0;
  --tpd-brand-orange: #ff8430;
  --tpd-slate-900: #0f172a;
  --tpd-slate-800: #1e293b;
  --tpd-slate-700: #334155;
  --tpd-slate-600: #475569;
  --tpd-slate-500: #64748b;
  --tpd-slate-400: #94a3b8;
  --tpd-border: #e2e8f0;
  --tpd-bg: #f1f5f9;
  --tpd-surface: #ffffff;
}

/* =========================================================================
   1. TRANG ĐĂNG NHẬP (/login) & ĐĂNG KÝ (/register) — PHỐI MÀU LOGO TPD
   ========================================================================= */
.view-login,
.view-register {
  min-height: 100vh !important;
  width: 100% !important;
  padding: 28px 20px !important;
  background: #ffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  overflow-y: auto !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tpd-auth-hero {
  width: 470px;
  min-height: 530px;
  padding: 40px 38px;
  background: radial-gradient(circle at 92% 18%, rgb(0 75 133), #034a83 34%), linear-gradient(196deg, #0281c4 0%, #0681c4 52%, #0057a6 100%);
  color: #ffffff;
  border-radius: 20px 0 0 20px;
  border: 1px solid rgba(3, 74, 131, 0.25);
  border-right: none;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.view-register .tpd-auth-hero {
  height: 540px;
  min-height: 540px;
  align-self: center;
}

.tpd-auth-hero::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -65px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 132, 48, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.tpd-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.tpd-auth-hero h2 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.32;
  color: #ffffff;
  margin-bottom: 12px;
}

.tpd-auth-hero p.tpd-auth-lead {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 24px;
}

.tpd-auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tpd-auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
}

.tpd-auth-feat-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tpd-auth-hero-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.view-login .form,
.view-register .form {
  width: 435px !important;
  min-height: 530px;
  padding: 38px 36px !important;
  background: #ffffff !important;
  color: var(--tpd-slate-800) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #e2e8f0;
  position: relative;
  z-index: 2;
}

/* Trang Đăng nhập: 2 cột cao bằng nhau khít liền mạch */
.view-login.tpd-auth-enhanced .form {
  border-radius: 0 20px 20px 0 !important;
}

/* Trang Đăng ký: khung phải cao hơn khung trái -> bo tròn đủ cả 4 góc (bao gồm 2 góc trái trên & dưới) */
.view-register.tpd-auth-enhanced .form {
  min-height: 650px;
  padding: 30px 36px !important;
  border-radius: 20px !important;
  box-shadow: -6px 0 20px rgba(15, 23, 42, 0.08), 0 20px 50px rgba(15, 23, 42, 0.14) !important;
}

.view-login .form .logo img,
.view-register .form .logo img {
  height: 70px !important;
  width: auto;
  object-fit: contain;
}

.view-login .form .title,
.view-register .form .title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--tpd-brand-blue) !important;
  margin-bottom: 22px !important;
  letter-spacing: -0.01em;
}

.view-login .form .form-group label,
.view-register .form .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tpd-slate-700);
  margin-bottom: 6px;
}

.view-login .form .form-group sup,
.view-register .form .form-group sup {
  color: var(--tpd-brand-orange);
  font-weight: 700;
}

.view-login .form .form-control,
.view-register .form .form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 14px;
  color: var(--tpd-slate-900);
  padding: 8px 13px;
  transition: all 0.18s ease;
}

.view-login .form .form-control:focus,
.view-register .form .form-control:focus {
  background: #ffffff;
  border-color: var(--tpd-primary);
  box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.16);
}

.tpd-pw-wrap {
  position: relative;
}

.tpd-pw-toggle {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 28px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--tpd-slate-500);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  z-index: 3;
}

.tpd-pw-toggle:hover {
  color: var(--tpd-primary);
  background: var(--tpd-primary-soft);
}

.view-login .form .btn-primary.btn-block,
.view-register .form .btn-primary.btn-block {
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00a859 0%, #008748 100%) !important;
  border: none !important;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 20px rgba(0, 168, 89, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 8px;
}

.view-login .form .btn-primary.btn-block:hover,
.view-register .form .btn-primary.btn-block:hover {
  background: linear-gradient(135deg, #00b862 0%, #00944f 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 168, 89, 0.38);
}

.view-login .form a,
.view-register .form a {
  color: var(--tpd-primary);
  font-weight: 700;
}

.view-login .form a:hover,
.view-register .form a:hover {
  color: var(--tpd-brand-orange);
}

@media (max-width: 920px) {
  .tpd-auth-hero {
    display: none !important;
  }
  .view-login.tpd-auth-enhanced .form,
  .view-register.tpd-auth-enhanced .form {
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 435px !important;
    min-height: auto;
  }
}

/* =========================================================================
   2. KHUNG NGOÀI DASHBOARD (.view-dashboard — SIDEBAR & TOP HEADER)
   ========================================================================= */
.view-dashboard .sidebar .sidebar-wrapper {
  background: #ffffff !important;
  border-right: 1px solid var(--tpd-border) !important;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.02);
}

.view-dashboard .sidebar .sidebar-header {
  height: 52px !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--tpd-border) !important;
  display: flex;
  align-items: center;
}

.view-dashboard .sidebar .sidebar-inner {
  padding: 10px 8px !important;
  height: calc(100% - 52px) !important;
}

.view-dashboard .sidebar .sidebar-inner ul li {
  margin-bottom: 3px !important;
}

.view-dashboard .sidebar .sidebar-inner ul li a {
  border-radius: 8px !important;
  padding: 9px 12px !important;
  color: var(--tpd-slate-700) !important;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.view-dashboard .sidebar .sidebar-inner ul li a em {
  width: 20px;
  text-align: center;
  font-size: 15px !important;
  margin-right: 10px !important;
  color: var(--tpd-slate-500);
  transition: color 0.15s ease;
}

.view-dashboard .sidebar .sidebar-inner ul li a:hover {
  background-color: #f1f5f9 !important;
  color: var(--tpd-slate-900) !important;
}

.view-dashboard .sidebar .sidebar-inner ul li a:hover em {
  color: var(--tpd-primary);
}

.view-dashboard .sidebar .sidebar-inner ul li a.router-link-active:not([href="/"]),
.view-dashboard .sidebar .sidebar-inner ul li a.router-link-exact-active {
  background-color: var(--tpd-primary-soft) !important;
  color: var(--tpd-primary-dark) !important;
  font-weight: 600;
  border-left: 3px solid var(--tpd-primary) !important;
}

.view-dashboard .sidebar .sidebar-inner ul li a.router-link-active:not([href="/"]) em,
.view-dashboard .sidebar .sidebar-inner ul li a.router-link-exact-active em {
  color: var(--tpd-primary) !important;
}

.view-dashboard .sidebar.sidebar-mini {
  top: 52px !important;
}

.view-dashboard .sidebar.sidebar-mini .sidebar-inner {
  padding: 8px 4px !important;
}

.view-dashboard .sidebar.sidebar-mini ul li a {
  justify-content: center;
  padding: 9px 0 !important;
}

.view-dashboard .sidebar.sidebar-mini ul li a em {
  margin-right: 0 !important;
}

.view-dashboard .main-content header {
  height: 52px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tpd-border) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  align-items: center;
}

.view-dashboard .main-content header .title {
  font-size: 16.5px !important;
  font-weight: 700 !important;
  color: var(--tpd-slate-900);
  padding: 10px 16px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-dashboard .main-content header .title .float-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.view-dashboard .main-content header .title .btn-secondary {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--tpd-slate-700);
  font-weight: 600;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12.5px;
}

.view-dashboard .main-content header .title .btn-secondary:hover {
  background: var(--tpd-primary-soft);
  border-color: var(--tpd-primary-border);
  color: var(--tpd-primary-dark);
}

.view-dashboard .main-content header .user {
  border-left: 1px solid var(--tpd-border) !important;
  height: 100%;
}

.view-dashboard .main-content header .user .name {
  font-size: 13.5px !important;
  font-weight: 600;
  color: var(--tpd-slate-800);
}

.view-dashboard .main-content #content {
  margin-top: 52px !important;
  background-color: var(--tpd-bg) !important;
  padding: 16px 18px 80px !important;
}

.view-dashboard .main-content #content .warning-notify {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  border-left: 4px solid #f59e0b !important;
  color: #92400e !important;
  font-size: 13.5px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* =========================================================================
   3. TRANG CHỦ DASHBOARD MỚI (.view-main -> #tpdHomeProRoot)
   ========================================================================= */
.view-main.tpd-home-pro-ready > .row,
.view-main.tpd-home-pro-ready > .card {
  display: none !important;
}

.tpd-hp-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--tpd-slate-900);
}

/* HERO BANNER THEO MÀU XANH LÁ CHỦ ĐẠO CỦA LOGO TPD (#00a859) */
.tpd-hp-hero {
  background: radial-gradient(circle at 92% 18%, rgba(255, 132, 48, 0.22), transparent 34%),
    linear-gradient(196deg, #0281c4 0%, #0091ff 52%, #0085ff 100%);
  border-radius: 14px;
  padding: 18px 22px;
  color: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(2, 129, 196, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.tpd-hp-hero::before {
  content: "";
  position: absolute;
  top: -65px;
  right: -45px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.tpd-hp-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.tpd-hp-welcome-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-shadow: 0 1px 2px rgba(0, 60, 30, 0.15);
}

.tpd-hp-welcome-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.tpd-hp-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tpd-hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.tpd-hp-pill.pill-emerald {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.tpd-hp-pill.pill-amber {
  background: rgba(255, 132, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.tpd-hp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
  z-index: 1;
}

.tpd-hp-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.tpd-hp-act-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.48);
  color: #ffffff;
  transform: translateY(-1px);
}

.tpd-hp-act-btn.act-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #007a40;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 70, 35, 0.18);
}

.tpd-hp-act-btn.act-primary:hover {
  background: #f0fdf4;
  color: #006635;
}

/* 4 KPI CARDS */
.tpd-hp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1199px) {
  .tpd-hp-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .tpd-hp-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.tpd-hp-kpi-card {
  background: var(--tpd-surface);
  border: 1px solid var(--tpd-border);
  border-radius: 13px;
  padding: 15px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tpd-hp-kpi-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.tpd-hp-kpi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tpd-hp-kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tpd-slate-500);
  margin-bottom: 4px;
}

.tpd-hp-kpi-val {
  font-size: 23px;
  font-weight: 800;
  color: var(--tpd-slate-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tpd-hp-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-teal { background: var(--tpd-primary-soft); color: var(--tpd-primary); }
.icon-amber { background: #fff7ed; color: #ea580c; }
.icon-blue { background: #eef2ff; color: var(--tpd-brand-blue); }
.icon-indigo { background: #fef3c7; color: #b45309; }

.tpd-hp-kpi-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--tpd-slate-600);
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.tpd-hp-mini-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.tpd-hp-mini-bar-sell { background: var(--tpd-primary); height: 100%; }
.tpd-hp-mini-bar-buy { background: var(--tpd-brand-blue); height: 100%; }
.tpd-hp-mini-bar-pkg { background: linear-gradient(90deg, var(--tpd-brand-blue), var(--tpd-primary)); height: 100%; }

.tpd-hp-flag-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tpd-hp-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.tag-purple { background: #f3e8ff; color: #7e22ce; }
.tag-amber { background: #fef3c7; color: #b45309; }
.tag-red { background: #fee2e2; color: #b91c1c; }
.tag-gray { background: #f1f5f9; color: #475569; }
.tag-teal { background: var(--tpd-primary-soft); color: var(--tpd-primary-dark); }
.tag-blue { background: #dbeafe; color: #1d4ed8; }

.tpd-hp-kpi-link {
  color: var(--tpd-primary-dark);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none !important;
  cursor: pointer;
}

.tpd-hp-kpi-link:hover {
  color: var(--tpd-brand-orange);
  text-decoration: underline !important;
}

/* MAIN 2-COLUMN GRID (LEFT BUSINESS TABLE EXPANDED + NARROWER RIGHT NEWS) */
.tpd-hp-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 14px;
  align-items: start;
}

@media (max-width: 1280px) {
  .tpd-hp-main-grid {
    grid-template-columns: minmax(0, 1fr) 275px;
  }
}

@media (max-width: 1080px) {
  .tpd-hp-main-grid {
    grid-template-columns: 1fr;
  }
}

.tpd-hp-panel {
  background: var(--tpd-surface);
  border: 1px solid var(--tpd-border);
  border-radius: 13px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tpd-hp-panel-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--tpd-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: #ffffff;
}

.tpd-hp-panel-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tpd-slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.tpd-hp-biz-toolbar {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--tpd-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tpd-hp-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.tpd-hp-search-wrap input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 32px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  color: var(--tpd-slate-900);
  outline: none;
}

.tpd-hp-search-wrap input:focus {
  border-color: var(--tpd-primary);
  box-shadow: 0 0 0 2px rgba(0, 168, 89, 0.14);
}

.tpd-hp-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--tpd-slate-400);
  pointer-events: none;
}

.tpd-hp-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tpd-hp-fchip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--tpd-slate-600);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tpd-hp-fchip:hover {
  border-color: var(--tpd-primary);
  color: var(--tpd-primary-dark);
}

.tpd-hp-fchip.active {
  background: var(--tpd-primary);
  border-color: var(--tpd-primary);
  color: #ffffff;
}

.tpd-hp-sort-select {
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: var(--tpd-slate-700);
  outline: none;
}

/* REVENUE PERIOD SWITCHER */
.tpd-hp-panel-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tpd-hp-rev-periods {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.tpd-hp-rpill {
  border: none;
  background: transparent;
  color: var(--tpd-slate-600);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.tpd-hp-rpill:hover {
  color: var(--tpd-primary-dark);
}

.tpd-hp-rpill.active {
  background: var(--tpd-primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 168, 89, 0.25);
}

/* BUSINESS TABLE */
.tpd-hp-table-scroll {
  max-height: 480px;
  overflow-y: auto;
  overflow-x: auto;
}

.tpd-hp-biz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tpd-hp-biz-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: var(--tpd-slate-600);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 9px 10px;
  border-bottom: 1px solid var(--tpd-border);
  white-space: nowrap;
}

.tpd-hp-th-sub {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
  color: var(--tpd-primary-dark);
  background: var(--tpd-primary-soft);
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0;
}

.tpd-hp-biz-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s ease;
  cursor: pointer;
}

.tpd-hp-biz-table tbody tr:hover {
  background: #f0fdf4;
}

.tpd-hp-biz-table tbody td {
  padding: 9px 10px;
  vertical-align: middle;
}

.tpd-hp-biz-name {
  font-weight: 700;
  color: var(--tpd-slate-900);
  font-size: 12.5px;
  line-height: 1.35;
  margin-bottom: 3px;
}

.tpd-hp-biz-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--tpd-slate-500);
}

.tpd-hp-mst-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: var(--tpd-primary-dark);
  background: var(--tpd-primary-soft);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--tpd-primary-border);
}

.tpd-hp-addr-trunc {
  max-width: 230px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpd-hp-rev-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tpd-hp-rev-sell {
  font-weight: 700;
  font-size: 12.5px;
  color: #0369a1;
  line-height: 1.3;
}

.tpd-hp-rev-sell.is-zero {
  color: var(--tpd-slate-400);
  font-weight: 600;
}

.tpd-hp-rev-buy {
  font-size: 11px;
  color: var(--tpd-slate-500);
  margin-top: 2px;
}

.tpd-hp-rev-buy b {
  color: var(--tpd-slate-600);
  font-weight: 600;
}

.tpd-hp-total-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--tpd-primary-dark);
  background: var(--tpd-primary-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.tpd-hp-sub-counts {
  font-size: 11px;
  color: var(--tpd-slate-500);
  margin-top: 3px;
  white-space: nowrap;
}

.tpd-hp-row-btns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tpd-hp-open-btn {
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--tpd-primary);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
}

.tpd-hp-open-btn:hover {
  background: var(--tpd-primary-hover);
}

.tpd-hp-cfg-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--tpd-slate-600) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  text-decoration: none !important;
}

.tpd-hp-cfg-btn:hover {
  border-color: var(--tpd-primary);
  color: var(--tpd-primary-dark) !important;
  background: var(--tpd-primary-soft);
}

/* NEWS LIST (RIGHT COLUMN) */
.tpd-hp-news-list {
  max-height: 530px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tpd-hp-news-item {
  display: flex;
  gap: 9px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--tpd-slate-900) !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.tpd-hp-news-item:hover {
  border-color: var(--tpd-primary-border);
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.tpd-hp-news-thumb {
  width: 62px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.tpd-hp-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpd-hp-news-body {
  flex: 1;
  min-width: 0;
}

.tpd-hp-news-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tpd-slate-900);
  line-height: 1.35;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpd-hp-news-desc {
  font-size: 11.5px;
  color: var(--tpd-slate-500);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.tpd-hp-news-time {
  font-size: 11px;
  color: var(--tpd-slate-400);
  font-weight: 500;
}

.tpd-hp-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--tpd-slate-500);
  font-size: 13px;
}
