#telebatBalansPage {
  --tas-radius: 14px;
  --tas-border: #dbe7f5;
  --tas-bg: #f6f9fc;
  --tas-card: rgba(255, 255, 255, 0.8);
  --tas-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --tas-shadow-soft: 0 4px 10px rgba(15, 23, 42, 0.06);
}

#telebatBalansPage .tas-shell {
  display: grid;
  gap: 12px;
}

#telebatBalansPage .tas-hero,
#telebatBalansPage .tas-control-card,
#telebatBalansPage .tas-section {
  border: 1px solid var(--tas-border);
  border-radius: var(--tas-radius);
  background: var(--tas-card);
  backdrop-filter: blur(6px);
  box-shadow: var(--tas-shadow-soft);
  padding: 12px;
}

#telebatBalansPage .tas-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 55%, #e8f1ff 100%);
}

#telebatBalansPage .tas-hero h2 {
  margin: 0 0 4px 0;
  color: #0f172a;
  font-size: 20px;
}

#telebatBalansPage .tas-hero p {
  margin: 0;
  color: #475569;
  font-size: 12px;
}

#telebatBalansPage .tas-status {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

#telebatBalansPage .tas-premium-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#telebatBalansPage .tas-btn,
#telebatBalansPage .tas-chip {
  width: auto;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid #cdddf0;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

#telebatBalansPage .tas-btn:hover,
#telebatBalansPage .tas-chip:hover { transform: translateY(-1px); }
#telebatBalansPage .tas-btn:active,
#telebatBalansPage .tas-chip:active { transform: translateY(0); }

#telebatBalansPage .tas-btn-soft-blue {
  color: #0f3b73;
  border-color: #9ec5f8;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 52%, #bfdbfe 100%);
}

#telebatBalansPage .tas-btn-soft-rose {
  color: #7f1d1d;
  border-color: #f9a8d4;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 55%, #fecdd3 100%);
}

#telebatBalansPage .tas-btn-soft-neutral {
  color: #334155;
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 48%, #edf2f7 100%);
}

#telebatBalansPage .anbar-label-row .anbar-open-picker-btn {
  width: auto;
  min-width: 0;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #c4b5fd;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #4c1d95;
  font-size: 11px;
  font-weight: 600;
}

#telebatBalansPage .tas-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#telebatBalansPage .tas-kpi {
  border: 1px solid #d7e4f4;
  border-radius: var(--tas-radius);
  background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: var(--tas-shadow-soft);
  padding: 10px;
  display: grid;
  gap: 6px;
}

#telebatBalansPage .tas-kpi-label { font-size: 11px; color: #64748b; }
#telebatBalansPage .tas-kpi-value {
  margin-top: 2px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 2px 6px rgba(148, 163, 184, 0.22);
}
#telebatBalansPage .tas-kpi-sub { margin-top: 2px; font-size: 11px; color: #475569; }

#telebatBalansPage .tas-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#telebatBalansPage .tas-chip.is-active {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

#telebatBalansPage .tas-chart-grid,
#telebatBalansPage .tas-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#telebatBalansPage .tas-chart-card,
#telebatBalansPage .tas-insight-card {
  border: 1px solid #d7e4f4;
  border-radius: var(--tas-radius);
  background: #fff;
  box-shadow: var(--tas-shadow-soft);
  padding: 10px;
}

#telebatBalansPage .tas-chart-card h4,
#telebatBalansPage .tas-insight-card h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #334155;
}

#telebatBalansPage .tas-chart-sub {
  margin: -2px 0 8px 0;
  font-size: 11px;
  color: #64748b;
}

#telebatBalansPage .tas-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#telebatBalansPage .tas-section-head h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #0f172a;
}

#telebatBalansPage .tas-section-head p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
}

#telebatBalansPage .tas-chart-canvas-wrap {
  position: relative;
  height: 260px;
}

#telebatBalansPage .tas-chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

#telebatBalansPage .tas-insight-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #0f172a;
}

#telebatBalansPage .tas-insight-list li { margin: 4px 0; }

#telebatBalansPage .tas-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#telebatBalansPage .tas-stat-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid #d7e4f4;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72) 48%, rgba(241, 245, 249, 0.92) 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  padding: 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  cursor: context-menu;
}

#telebatBalansPage .tas-stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

#telebatBalansPage .tas-stat-card.is-active {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.55), 0 16px 34px rgba(14, 116, 144, 0.15);
}

#telebatBalansPage .tas-stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#telebatBalansPage .tas-stat-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
}

#telebatBalansPage .tas-stat-count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 5px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

#telebatBalansPage .tas-stat-sub {
  margin: 10px 0 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #475569;
}

#telebatBalansPage .tas-stat-blue { background: linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.76)); }
#telebatBalansPage .tas-stat-rose { background: linear-gradient(145deg, rgba(255, 241, 242, 0.96), rgba(254, 205, 211, 0.78)); }
#telebatBalansPage .tas-stat-amber { background: linear-gradient(145deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.82)); }
#telebatBalansPage .tas-stat-emerald { background: linear-gradient(145deg, rgba(236, 253, 245, 0.96), rgba(209, 250, 229, 0.8)); }
#telebatBalansPage .tas-stat-violet { background: linear-gradient(145deg, rgba(245, 243, 255, 0.96), rgba(221, 214, 254, 0.8)); }
#telebatBalansPage .tas-stat-slate { background: linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.84)); }
#telebatBalansPage .tas-stat-teal { background: linear-gradient(145deg, rgba(240, 253, 250, 0.96), rgba(153, 246, 228, 0.72)); }

#telebatBalansPage .tas-context-menu {
  position: fixed;
  z-index: 40;
  min-width: 240px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

#telebatBalansPage .tas-context-menu-btn {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

#telebatBalansPage .tas-context-menu-btn + .tas-context-menu-btn {
  margin-top: 6px;
}

#telebatBalansPage .tas-context-menu-btn-secondary {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
  color: #9a3412;
}

#telebatBalansPage .tas-table-wrap {
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  max-height: 68vh;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d7e4f4;
  border-radius: var(--tas-radius);
  background: #fff;
  padding-bottom: 2px;
}

#telebatBalansPage .tas-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 1320px;
  font-size: 10.5px;
}

#telebatBalansPage .tas-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f8fbff 0%, #ecf4ff 100%);
  border-bottom: 1px solid #d7e4f4;
  color: #1e293b;
  font-weight: 700;
}

#telebatBalansPage .tas-table th,
#telebatBalansPage .tas-table td {
  padding: 6px 6px;
  border-right: 1px solid rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(15, 23, 42, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  text-align: left;
}

#telebatBalansPage .tas-table th:last-child,
#telebatBalansPage .tas-table td:last-child {
  border-right: 0;
}

#telebatBalansPage .tas-table tbody tr:nth-child(odd) { background: #fafcff; }
#telebatBalansPage .tas-table tbody tr:hover { background: #edf6ff; }

#telebatBalansPage .tas-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
#telebatBalansPage .tas-table th.is-filterable { cursor: pointer; }

#telebatBalansPage .tas-table th:nth-child(1),
#telebatBalansPage .tas-table td:nth-child(1) { width: 36px; min-width: 36px; }
#telebatBalansPage .tas-table th:nth-child(2),
#telebatBalansPage .tas-table td:nth-child(2) { width: 56px; min-width: 56px; }
#telebatBalansPage .tas-table th:nth-child(3),
#telebatBalansPage .tas-table td:nth-child(3) { width: 186px; min-width: 186px; }
#telebatBalansPage .tas-table th:nth-child(4),
#telebatBalansPage .tas-table td:nth-child(4) { width: 132px; min-width: 132px; }
#telebatBalansPage .tas-table th:nth-child(5),
#telebatBalansPage .tas-table td:nth-child(5),
#telebatBalansPage .tas-table th:nth-child(6),
#telebatBalansPage .tas-table td:nth-child(6),
#telebatBalansPage .tas-table th:nth-child(7),
#telebatBalansPage .tas-table td:nth-child(7) { width: 54px; min-width: 54px; }
#telebatBalansPage .tas-table th:nth-child(8),
#telebatBalansPage .tas-table td:nth-child(8),
#telebatBalansPage .tas-table th:nth-child(9),
#telebatBalansPage .tas-table td:nth-child(9),
#telebatBalansPage .tas-table th:nth-child(10),
#telebatBalansPage .tas-table td:nth-child(10) { width: 84px; min-width: 84px; }
#telebatBalansPage .tas-table th:nth-child(11),
#telebatBalansPage .tas-table td:nth-child(11),
#telebatBalansPage .tas-table th:nth-child(12),
#telebatBalansPage .tas-table td:nth-child(12) { width: 76px; min-width: 76px; }
#telebatBalansPage .tas-table th:nth-child(13),
#telebatBalansPage .tas-table td:nth-child(13) { width: 96px; min-width: 96px; }
#telebatBalansPage .tas-table th:nth-child(14),
#telebatBalansPage .tas-table td:nth-child(14) { width: 68px; min-width: 68px; }
#telebatBalansPage .tas-table th:nth-child(15),
#telebatBalansPage .tas-table td:nth-child(15) { width: 118px; min-width: 118px; }
#telebatBalansPage .tas-table th:nth-child(16),
#telebatBalansPage .tas-table td:nth-child(16) { width: 82px; min-width: 82px; }
#telebatBalansPage .tas-table th:nth-child(17),
#telebatBalansPage .tas-table td:nth-child(17),
#telebatBalansPage .tas-table th:nth-child(18),
#telebatBalansPage .tas-table td:nth-child(18) { width: 92px; min-width: 92px; }

#telebatBalansPage .tas-table th:nth-child(3),
#telebatBalansPage .tas-table td:nth-child(3),
#telebatBalansPage .tas-table th:nth-child(4),
#telebatBalansPage .tas-table td:nth-child(4),
#telebatBalansPage .tas-table th:nth-child(13),
#telebatBalansPage .tas-table td:nth-child(13),
#telebatBalansPage .tas-table th:nth-child(15),
#telebatBalansPage .tas-table td:nth-child(15) {
  white-space: normal;
  text-overflow: clip;
  line-height: 1.3;
}

#telebatBalansPage .tas-table th:nth-child(n+4):nth-child(-n+18),
#telebatBalansPage .tas-table td:nth-child(n+4):nth-child(-n+18),
#telebatBalansPage .tas-table td.num:nth-child(n+4):nth-child(-n+18) {
  text-align: center;
}

#telebatBalansPage .tas-table-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 10px;
}

#telebatBalansPage .tas-column-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.24);
}

#telebatBalansPage .tas-column-card {
  width: 360px;
  max-width: 92vw;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #d7e4f4;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

#telebatBalansPage .tas-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#telebatBalansPage .tas-column-head h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #0f172a;
}

#telebatBalansPage .tas-column-head p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
}

#telebatBalansPage .tas-column-body {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 8px;
  background: #f8fbff;
}

#telebatBalansPage .tas-column-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  padding: 5px 2px;
  border-bottom: 1px dashed #dbe7f5;
}

#telebatBalansPage .tas-column-row:last-child {
  border-bottom: 0;
}

#telebatBalansPage .tas-column-label {
  font-size: 12px;
  color: #0f172a;
}

#telebatBalansPage .tas-column-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#telebatBalansPage .tas-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
}

#telebatBalansPage .tas-badge-risk { color: #b91c1c; background: #fee2e2; border-color: #fca5a5; }
#telebatBalansPage .tas-badge-mid { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
#telebatBalansPage .tas-badge-good { color: #166534; background: #dcfce7; border-color: #86efac; }
#telebatBalansPage .tas-badge-neutral { color: #475569; background: #f1f5f9; border-color: #cbd5e1; }

#telebatBalansPage .tas-empty {
  border: 1px dashed #cbd5e1;
  border-radius: var(--tas-radius);
  padding: 26px;
  text-align: center;
  color: #64748b;
  background: #f8fbff;
}

#telebatBalansPage .tas-loading { padding: 8px 4px; }
#telebatBalansPage .tas-loader {
  width: 28px; height: 28px; border-radius: 999px; border: 3px solid #dbeafe; border-top-color: #3b82f6;
  animation: tas-spin 0.8s linear infinite; margin-bottom: 8px;
}
#telebatBalansPage .tas-skeleton-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#telebatBalansPage .tas-skeleton-card {
  height: 78px; border-radius: 12px;
  background: linear-gradient(90deg, #eef3f9 25%, #f8fbff 37%, #eef3f9 63%);
  background-size: 300% 100%;
  animation: tas-shimmer 1.4s infinite;
}

#telebatBalansPage .excel-filter-sort button,
#telebatBalansPage .excel-filter-footer button,
#telebatBalansPage .excel-filter-close {
  width: auto; min-width: 0; padding: 5px 10px; border-radius: 999px;
}

@keyframes tas-spin { to { transform: rotate(360deg); } }
@keyframes tas-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (max-width: 1080px) {
  #telebatBalansPage .tas-kpi-grid,
  #telebatBalansPage .tas-chart-grid,
  #telebatBalansPage .tas-insight-grid,
  #telebatBalansPage .tas-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #telebatBalansPage .tas-table { min-width: 1240px; font-size: 10px; }
}

@media (max-width: 760px) {
  #telebatBalansPage .tas-kpi-grid,
  #telebatBalansPage .tas-chart-grid,
  #telebatBalansPage .tas-insight-grid,
  #telebatBalansPage .tas-stat-grid,
  #telebatBalansPage .tas-skeleton-grid { grid-template-columns: 1fr; }
  #telebatBalansPage .tas-table { min-width: 1160px; font-size: 9.5px; }
  #telebatBalansPage .tas-chart-canvas-wrap { height: 230px; }
  #telebatBalansPage .tas-section-head { flex-direction: column; }
}
