.box {
  margin-bottom: 20px;
}

.revenue-growth{
  height: 284px;
}
.revenue-growth .reality-chart {
  position: relative;
  top: -50px;
}
.rtl .knob {
    margin-left: 0;
    margin-right: -116px;
}

.avatar-sm {
    width: 59px;
    height: 59px;
    line-height: 29px;
    font-size: 0.7143rem;
}
.recent{

  height:382px;
}

/*-----------Dashboard-3-----------*/

.first-section .first-plan {
    border-radius: 5px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.first-section .first-plan .bg-img {
    width: 30%;
    position: absolute;
    opacity: 0.1;
    transform: rotate(0deg);
    right: 0px;
    bottom: -2px;
}
.rtl .first-section .first-plan {
    border-radius: 5px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.rtl .first-section .first-plan .bg-img {
    width: 30%;
    position: absolute;
    opacity: 0.1;
    transform: rotate(0deg);
    left: 0px;
    right: auto;
    bottom: -2px;
}


.chargingstation
{
  height:446px;
}

hr {
  color: #D3D3D3;
}

.smartcharging
{
  height:391px;
}

.button1
{
  background-color: white;
  color: grey;
}

.button1:hover
{
  background-color: #0052cc;
  color:white;
}

.activecharging
{
  height:130px;
}
.newusers
{
  height:130px;
}

.selectcars
{
  height:225px;
}

.availablestation
{
  color:#4B0082;
}

.occupiedstation
{
  color:#ff9920;
}

.totalbooked
{
  color:#04a08b;
}

.dallasboxmainmini
{
  height:504px;
}
.secondbox
{
  height:81px;
}

@media only screen and (max-width: 1600px) {
  .carflag {
    height:46px;
  }
  .dallasbox {
    height:504px;
  }
  .occupancy {
    height:191px;
  }

}

@media only screen and (max-width: 1440px) {
  .dallasbox {
    height:499px;
  }
}


@media only screen and (max-width: 1399px) {
  .dallasbox {
    height:auto;
  }
  .occupancy {
    height:192px;
  }
}

@media only screen and (max-width: 1194px) {
  .carflag {
    height:48px;
  }
  .income
  {
    height:165px;
  }
  .occupancy {
    height:auto;
  }
  .activecharging
  {
  height:124px;
  }
  .newusers
  {
  height:124px;
  }

}

@media only screen and (max-width: 1112px) {
  .income
  {
    height:164px;
  }
  .activecharging
  {
  height:122px;
  }
  .newusers
  {
  height:122px;
  }
  .dallasboxmainmini
  {
  height:auto;
  }

}

@media only screen and (max-width: 475px) {
  .teslabutton {

    margin: 10px 0px;
    
      }
}
/* Sidebar mini (collapsed): ikon di tengah, ukuran tetap, chevron disembunyikan */
@media (min-width: 768px) {
  .sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
  }
  .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > svg.feather {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
  }
  .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .sidebar-chevron {
    display: none;
  }
  /* flyout submenu saat hover tetap tampil walau grup sedang tertutup */
  .sidebar-mini.sidebar-collapse .sidebar-menu > li > .treeview-menu {
    max-height: none !important;
  }
}

/* Submenu sidebar: item aktif berwarna biru (template hanya mewarnai bila menu induk ikut .active) */
.sidebar-menu .treeview-menu > li > a.sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 5px 6px 16px;
  border-radius: 8px;
}
/* template menggeser semua span di link menu 3px ke bawah (.sidebar-menu li > a > span { top: 3px });
   di submenu ikon & teks sudah dipusatkan flex, jadi geseran itu membuat jarak atas-bawah tidak rata */
.sidebar-menu .treeview-menu > li > a.sidebar-sublink > span {
  top: 0;
}
.sidebar-subicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  background: rgba(0, 82, 204, 0.06);
  color: inherit;
}
.sidebar-menu .treeview-menu > li.active > a.sidebar-sublink {
  color: #0052cc !important;
  font-weight: 600;
  background: rgba(0, 82, 204, 0.08);
}
.sidebar-menu .treeview-menu > li.active > a.sidebar-sublink .sidebar-subicon {
  background: #0052cc;
  color: #fff;
}
.sidebar-menu .treeview-menu > li.active > a.sidebar-sublink .sidebar-subicon svg {
  stroke: #fff;
}
.dark-skin .sidebar-menu .treeview-menu > li.active > a.sidebar-sublink {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}
.light-skin .sidebar-menu .treeview-menu > li > a.sidebar-sublink:hover {
  color: #0052cc !important;
  background: rgba(0, 82, 204, 0.05);
}

/* Navbar admin: judul halaman di sebelah tombol menu */
.main-header .navbar-page-title {
  display: flex;
  align-items: center;
  margin-left: 12px;
}
.main-header .navbar-page-title h4 {
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50vw;
}
@media (max-width: 575px) {
  .main-header .navbar-page-title h4 { font-size: 1rem; max-width: 40vw; }
}

/* Tombol bulat navbar (mode gelap/terang) seukuran avatar pengguna */
.main-header .navbar-custom-menu .navbar-nav { align-items: center; gap: 10px; }
/* Tombol mode & avatar sama-sama dipusatkan di tinggi navbar; margin/ukuran 45px bawaan template untuk
   item terakhir (avatar) dinetralkan agar keduanya sejajar */
.main-header .navbar-custom-menu .navbar-nav > li.navbar-skin-item,
.main-header .navbar-custom-menu .navbar-nav > li.user-menu {
  display: flex;
  align-items: center;
}
.main-header .navbar-custom-menu .navbar-nav > li.user-menu > a.dropdown-toggle {
  margin: 0 !important;
  padding: 0 !important;
  width: 36px !important;
  height: 36px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.navbar-round-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 82, 204, 0.1);
  color: #0052cc;
  cursor: pointer;
  transition: background 0.15s;
}
.navbar-round-btn:hover { background: rgba(0, 82, 204, 0.18); }
.dark-skin .navbar-round-btn { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Breadcrumb pengganti judul di area konten */
/* Baris breadcrumb + tombol aksi: padding kiri/kanan 20px = tepi box di .content (padding 20px),
   sehingga breadcrumb lurus dengan tepi kiri box dan tombol lurus dengan tepi kanannya */
.content-header.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 38px;
  padding: 16px 20px 0;
  box-sizing: content-box;
}
.page-breadcrumb .page-header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  font-size: .925rem; /* sama dengan .btn-sm template */
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 575px) {
  .page-breadcrumb .page-header-action span { display: none; }
  .page-breadcrumb .page-header-action { width: 36px; padding: 0; justify-content: center; }
}
.page-breadcrumb .breadcrumb { background: transparent; padding: 0; font-size: 0.85rem; }
.page-breadcrumb .breadcrumb-item a { color: #0052cc; text-decoration: none; }
.page-breadcrumb .breadcrumb-item.active { color: #7a8599; }
.main-header .navbar-custom-menu .navbar-nav > li.user-menu { margin-right: 12px; }

/* ===== Dokumen cetak (rapor, buku induk) ===== */
.print-doc {
  background: #fff;
  color: #111;
  max-width: 210mm;
  margin: 0 auto 24px;
  padding: 18mm 16mm;
  font-size: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.print-doc h3 { font-size: 15px; font-weight: 700; text-align: center; margin: 0 0 12px; letter-spacing: .5px; }
.print-doc h4 { font-size: 13px; font-weight: 700; margin: 16px 0 6px; }
.print-doc table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.print-doc .doc-table th, .print-doc .doc-table td { border: 1px solid #555; padding: 4px 6px; vertical-align: top; }
.print-doc .doc-table th { background: #f1f3f6; text-align: center; font-weight: 600; }
.print-doc .doc-meta td { padding: 1px 4px; }
.print-doc .doc-sign { display: flex; justify-content: space-between; margin-top: 28px; text-align: center; }
.print-doc .doc-sign > div { width: 45%; }
.print-doc .doc-sign .sign-space { height: 60px; }
.print-doc .doc-kop { text-align: center; border-bottom: 3px double #333; padding-bottom: 8px; margin-bottom: 14px; }
.print-doc .doc-kop .kop-name { font-size: 16px; font-weight: 700; text-transform: uppercase; }
.print-page-break { page-break-after: always; break-after: page; }

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; }
  .main-header, .main-sidebar, .page-breadcrumb, .no-print, .control-sidebar, footer { display: none !important; }
  .content-wrapper, .content { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .print-doc { box-shadow: none; margin: 0; max-width: none; }
}

/* ===== Halaman login ===== */
.auth-scene {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(1200px 600px at 85% 30%, rgba(255,255,255,0.75), transparent 60%),
    linear-gradient(180deg, #d4eafd 0%, #e8f4fe 45%, #cfe5fa 100%);
}
.auth-swoosh {
  position: absolute; top: -260px; left: -220px; width: 1100px; height: 560px;
  border-radius: 0 0 60% 40%; background: rgba(255,255,255,0.55); transform: rotate(-8deg);
}
.auth-cloud { position: absolute; color: #fff; opacity: 0.85; pointer-events: none; }
.auth-cloud-1 { width: 220px; top: 60px; right: 20%; }
.auth-cloud-2 { width: 170px; top: 250px; left: 16%; opacity: 0.7; }
.auth-cloud-3 { width: 200px; top: 260px; right: 12%; opacity: 0.75; }
.auth-cloud-4 { width: 380px; top: 230px; right: -90px; opacity: 0.9; }
.auth-school {
  position: absolute; left: 0; bottom: 120px; width: min(36vw, 560px); opacity: 0.95; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 98%), linear-gradient(to bottom, #000 80%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 55%, transparent 98%), linear-gradient(to bottom, #000 80%, transparent);
  mask-composite: intersect;
}
.auth-books { position: absolute; right: 2vw; bottom: 110px; width: min(26vw, 420px); pointer-events: none; }
.auth-waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 190px; pointer-events: none; }

.auth-brand {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 22px;
  padding: 36px 48px 0; color: #0d3b8a; font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: 0.2px;
}
.auth-brand img { height: 92px; width: auto; }
.auth-brand-sep { width: 2px; height: 76px; background: #0d3b8a; opacity: 0.8; }

.auth-main {
  position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 8px 16px 28px;
}
.auth-card {
  position: relative; overflow: hidden; width: 100%; max-width: 560px;
  padding: 26px 44px 22px; border-radius: 28px;
  background: rgba(255,255,255,0.86); border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 30px 60px -20px rgba(13,59,138,0.28), 0 0 0 8px rgba(255,255,255,0.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.auth-card::before {
  content: ''; position: absolute; top: -120px; right: -120px; width: 260px; height: 260px;
  border-radius: 50%; background: linear-gradient(135deg, rgba(120,180,240,0.35), rgba(200,228,252,0.15));
}
.auth-card-head { position: relative; text-align: center; margin-bottom: 18px; }
.auth-card-logo { height: 104px; width: auto; filter: drop-shadow(0 4px 6px rgba(13,59,138,0.18)); }
.auth-card-head h1 { margin: 8px 0 0; font-size: 2.3rem; font-weight: 800; color: #0d3b8a; letter-spacing: -0.5px; }
.auth-card-head p { margin: 0; color: #334155; font-size: 1.05rem; }
.auth-divider { position: relative; width: 200px; height: 2px; margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, #c6d6ea 30%, #c6d6ea 70%, transparent); }
.auth-divider span { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: #1a73e8; transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(255,255,255,0.9); }

.auth-alert { position: relative; border-radius: 12px; padding: 10px 14px; font-size: 0.85rem; margin-bottom: 12px; }
.auth-alert-danger { background: #fdecec; color: #b42318; border: 1px solid #f6caca; }
.auth-alert-info { background: #eaf3fe; color: #0d3b8a; border: 1px solid #c8def9; }

.auth-field {
  position: relative; display: flex; align-items: center; gap: 14px; height: 54px; margin: 0 0 16px;
  padding: 0 18px 0 22px; border-radius: 16px; background: rgba(255,255,255,0.9);
  border: 1px solid #dbe5f0; transition: border-color .15s, box-shadow .15s; cursor: text;
}
.auth-field:focus-within { border-color: #1a73e8; box-shadow: 0 0 0 4px rgba(26,115,232,0.12); }
.auth-field > i { width: 22px; text-align: center; font-size: 1.15rem; color: #475569; }
.auth-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 1rem; color: #0f172a; padding-left: 10px; }
.auth-field input::placeholder { color: #8b97a8; }
.auth-eye { border: 0; background: none; padding: 4px; color: #64748b; font-size: 1.05rem; cursor: pointer; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 20px; }
.auth-check { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: #334155; font-size: 0.92rem; cursor: pointer; }
.auth-check input[type="checkbox"] {
  position: static !important; left: auto !important; opacity: 1 !important; margin: 0;
  width: 18px; height: 18px; accent-color: #1a73e8; cursor: pointer;
}
.auth-link { border: 0; background: none; padding: 0; color: #1565c0; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }

.auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 58px;
  border: 0; border-radius: 18px; color: #fff; font-size: 1.15rem; font-weight: 600;
  background: linear-gradient(90deg, #1d7cf0 0%, #0b4fb5 100%);
  box-shadow: 0 12px 24px -10px rgba(11,79,181,0.6); transition: filter .15s, transform .15s;
}
.auth-submit i { font-size: 1.3rem; }
.auth-submit:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.75; }

.auth-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e3eaf3; text-align: center; color: #334155; font-size: 0.92rem; }

.auth-powered { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 28px; color: #334155; font-size: 1rem; }
.auth-powered-logo { display: inline-flex; align-items: center; gap: 6px; color: #0d3b8a; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }

@media (max-width: 1100px) {
  .auth-school, .auth-books { opacity: 0.35; }
}
@media (max-width: 767px) {
  .auth-school, .auth-books, .auth-cloud-3, .auth-cloud-4 { display: none; }
  .auth-brand { padding: 20px 16px 0; gap: 12px; font-size: 0.95rem; }
  .auth-brand img { height: 52px; }
  .auth-brand-sep { height: 44px; }
  .auth-card { padding: 22px 20px 18px; border-radius: 22px; }
  .auth-card-logo { height: 80px; }
  .auth-card-head h1 { font-size: 1.8rem; }
  .auth-card-head p { font-size: 0.92rem; }
  .auth-waves { height: 110px; }
  .auth-powered { margin-top: 20px; font-size: 0.9rem; }
  .auth-powered-logo { font-size: 1.3rem; }
}

/* ===== Logo header & footer ===== */
.main-header .logo { display: flex !important; align-items: center; gap: 10px; }
.main-header .logo .logo-mini { display: inline-flex; align-items: center; }
.main-header .brand-crest { height: 44px; width: auto; display: block; filter: drop-shadow(0 2px 3px rgba(13,59,138,0.18)); }
.main-header .logo .brand-text { display: inline-flex !important; flex-direction: column; line-height: 1.15 !important; padding-left: 0; min-width: 0; }
.brand-text .brand-name { font-size: 1.15rem; font-weight: 800; color: #0d3b8a; letter-spacing: -0.3px; }
.brand-text .brand-sub { font-size: 0.72rem; font-weight: 500; color: #64748b; white-space: nowrap; }
.dark-skin .brand-text .brand-name { color: #fff; }
.dark-skin .brand-text .brand-sub { color: rgba(255,255,255,0.6); }
.sidebar-mini.sidebar-collapse .main-header .logo { justify-content: center; }
.sidebar-mini.sidebar-collapse .main-header .brand-crest { height: 38px; }
@media (min-width: 768px) {
  .sidebar-mini.sidebar-collapse .main-header .logo > .brand-text { display: none !important; }
}

.app-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.app-powered { display: inline-flex; align-items: center; gap: 8px; color: #64748b; font-size: 0.85rem; }
.app-powered-logo { display: inline-flex; align-items: center; gap: 4px; color: #0d3b8a; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.3px; }
.dark-skin .app-powered-logo { color: #fff; }
@media (max-width: 767px) {
  .app-footer { justify-content: center; text-align: center; }
}

/* Footer konten selalu di dasar layar meski isi halaman pendek */
.wrapper { display: flex; flex-direction: column; min-height: 100vh !important; }
/* template.min.js memasang min-height inline (tinggi layar - footer) tanpa memperhitungkan
   margin-top header, sehingga footer terdorong keluar layar; tinggi diatur lewat flex. */
.wrapper > .content-wrapper { flex: 1 0 auto; min-height: 0 !important; }
.wrapper > .main-footer { flex-shrink: 0; }

/* ===== DataTable admin (components/DataTable.js) ===== */
:root {
  --dt-head-bg: #eef2f8; --dt-head-text: #8a94a6; --dt-text: #1f2937; --dt-border: #edf0f5; --dt-hover: #f7f9fc;
  --dt-page-border: #d9dfe8; --dt-page-text: #9aa3b2; --dt-accent: #2f80ed;
  --tab-idle: #dfe5ef; --tab-idle-2: #d3dbe8; --tab-idle-text: #8a94a6; --tab-active-text: #1f2937;
}
.dark-skin {
  --dt-head-bg: rgba(255,255,255,0.06); --dt-head-text: #9aa6b8; --dt-text: #e5e9f0; --dt-border: rgba(255,255,255,0.07); --dt-hover: rgba(255,255,255,0.04);
  --dt-page-border: rgba(255,255,255,0.15); --dt-page-text: #9aa6b8; --dt-accent: #5b9dff;
  --tab-idle: rgba(255,255,255,0.08); --tab-idle-2: rgba(255,255,255,0.05); --tab-idle-text: #9aa6b8; --tab-active-text: #fff;
}
.app-datatable .rdt_TableHeadRow { overflow: hidden; }
.app-datatable .rdt_TableCell .btn { border-radius: 4px; font-weight: 500; }
.app-datatable .rdt_TableCell .btn-xs, .app-datatable .rdt_TableCell .btn-sm { padding: 3px 10px; font-size: 12px; line-height: 1.4; }

.dt-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 4px 4px; width: 100%; }
.dt-pagination-info { display: flex; align-items: center; gap: 12px; color: var(--dt-page-text); font-size: 13px; }
.dt-page-size { height: 30px; padding: 0 8px; border: 1px solid var(--dt-page-border); border-radius: 4px; background: transparent; color: var(--dt-text); font-size: 13px; }
.dt-pages { display: flex; align-items: center; gap: 8px; }
.dt-page {
  min-width: 26px; height: 26px; padding: 0 6px; border: 1px solid var(--dt-page-border); border-radius: 3px;
  background: transparent; color: var(--dt-page-text); font-size: 13px; line-height: 24px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.dt-page i { font-size: 10px; }
.dt-page:hover:not(:disabled) { border-color: var(--dt-accent); color: var(--dt-accent); }
.dt-page.active { border-color: var(--dt-accent); color: var(--dt-accent); font-weight: 600; }
.dt-page:disabled { opacity: 0.45; cursor: default; }
.dt-page-gap { color: var(--dt-page-text); font-size: 11px; letter-spacing: 1px; padding: 0 4px; }
@media (max-width: 575px) { .dt-pagination { justify-content: center; } }

/* ===== Tab bergaya folder di atas card (components/CardTabs.js) ===== */
.card-tabs { display: flex; align-items: flex-end; padding-left: 0; margin-bottom: -1px; overflow-x: auto; scrollbar-width: none; }
.card-tabs::-webkit-scrollbar { display: none; }
.card-tab {
  position: relative; flex-shrink: 0; border: 0; background: none; height: 46px; padding: 0 34px 0 22px;
  margin-right: -14px; color: var(--tab-idle-text); font-size: 0.9rem; font-weight: 500; cursor: pointer;
}
.card-tab > span { position: relative; z-index: 1; white-space: nowrap; }
/* sisi kiri tegak membulat, sisi kanan miring */
.card-tab::before, .card-tab::after { content: ''; position: absolute; top: 6px; bottom: 0; background: var(--tab-idle); transition: background .15s, top .15s; }
.card-tab::before { left: 0; right: 30px; border-radius: 12px 0 0 0; }
.card-tab::after { right: 4px; width: 46px; border-radius: 0 12px 0 0; transform: skewX(14deg); transform-origin: bottom; }
.card-tab:nth-child(even)::before, .card-tab:nth-child(even)::after { background: var(--tab-idle-2); }
.card-tab:hover:not(.active) { color: var(--tab-active-text); }
.card-tab.active { color: var(--tab-active-text); font-weight: 600; }
.card-tab.active::before, .card-tab.active::after { top: 0; background: #fff; }
.dark-skin .card-tab.active::before, .dark-skin .card-tab.active::after { background: #0E0E23; }
.box.box-tabbed { border-top-left-radius: 0 !important; }

/* Tabel HTML biasa (thead.table-light) diserasikan dengan DataTable */
.box .table > thead.table-light > tr > th {
  background: var(--dt-head-bg); color: var(--dt-head-text); font-size: 13px; font-weight: 500;
  border-bottom: 0; padding-top: 12px; padding-bottom: 12px;
}
.box .table > thead.table-light > tr > th:first-child { border-radius: 8px 0 0 8px; }
.box .table > thead.table-light > tr > th:last-child { border-radius: 0 8px 8px 0; }
.box .table > tbody > tr > td { border-color: var(--dt-border); }

/* ===== Loading ===== */
@keyframes line-loader-slide {
  0% { left: -35%; width: 35%; }
  50% { width: 45%; }
  100% { left: 100%; width: 35%; }
}
.line-loader { position: relative; height: 3px; overflow: hidden; background: rgba(47,128,237,0.15); border-radius: 3px; }
.line-loader::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -35%; width: 35%; border-radius: 3px;
  background: linear-gradient(90deg, #2f80ed, #56ccf2); animation: line-loader-slide 1.1s ease-in-out infinite;
}

/* Tabel: garis di bawah judul kolom, baris diredupkan */
.app-dt-wrap { position: relative; }
.app-dt-wrap .rdt_TableHeadRow { position: relative; }
.app-dt-wrap.is-loading .rdt_TableHeadRow::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #2f80ed 40%, #56ccf2 60%, transparent) no-repeat;
  background-size: 40% 100%; animation: dt-line 1.1s ease-in-out infinite;
}
@keyframes dt-line { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
.app-dt-wrap.is-loading .rdt_TableBody { opacity: 0.45; pointer-events: none; transition: opacity .15s; }
.app-dt-wrap.is-loading .dt-pagination { opacity: 0.6; pointer-events: none; }
.dt-loading-text { padding: 32px; color: var(--dt-head-text); font-size: 13px; }

/* Overlay konten (halaman tanpa tabel) */
.content-loading {
  position: absolute; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-start;
  background: rgba(238, 242, 248, 0.55); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px);
  animation: content-loading-in .15s ease-out;
}
.dark-skin .content-loading { background: rgba(14, 14, 35, 0.55); }
.content-loading-line { position: absolute; top: 0; left: 0; right: 0; border-radius: 0; }
.content-loading-card {
  position: sticky; top: 40vh; margin-top: 120px; display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 12px; background: #fff; color: #334155; font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(13, 59, 138, 0.25);
}
.dark-skin .content-loading-card { background: #1c1c36; color: #e5e9f0; }
.content-loading-spinner {
  width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(47,128,237,0.2); border-top-color: #2f80ed;
  animation: content-spin .7s linear infinite;
}
@keyframes content-spin { to { transform: rotate(360deg); } }
@keyframes content-loading-in { from { opacity: 0; } to { opacity: 1; } }

/* ===== Banner tenant (sesi bantuan, langganan, pengumuman Asalink) ===== */
.tenant-banners { padding: 16px 30px 0; display: flex; flex-direction: column; gap: 8px; }
.tenant-banners:empty { display: none; }
.tenant-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; }
.tenant-banner > i { font-size: 1rem; }
.tenant-banner-support { background: #4c1d95; color: #fff; }
.tenant-banner-danger { background: #fdecec; color: #b42318; border: 1px solid #f6caca; }
.tenant-banner-warning { background: #fff7e6; color: #8a5300; border: 1px solid #ffe2a8; }
.tenant-banner-info { background: #eaf3fe; color: #0d3b8a; border: 1px solid #c8def9; }
.dark-skin .tenant-banner-danger { background: rgba(180,35,24,0.18); color: #ffb4ab; border-color: transparent; }
.dark-skin .tenant-banner-warning { background: rgba(255,170,0,0.14); color: #ffd27a; border-color: transparent; }
.dark-skin .tenant-banner-info { background: rgba(77,124,255,0.15); color: #b9cdff; border-color: transparent; }
@media (max-width: 767px) { .tenant-banners { padding: 12px 12px 0; } .tenant-banner { flex-wrap: wrap; } }

/* ===== Konsol platform ===== */
.stat-card { height: calc(100% - 20px); }
.stat-card .stat-label { color: var(--dt-head-text); font-size: 0.8rem; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; margin: 2px 0; }
.stat-card .stat-hint { font-size: 0.78rem; color: var(--dt-head-text); }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.85rem; }
.bar-row .bar-label { width: 140px; flex-shrink: 0; }
.bar-row .bar-track { display: block; flex: 1; height: 8px; border-radius: 4px; background: var(--dt-head-bg); overflow: hidden; }
.bar-row .bar-fill { display: block; height: 100%; border-radius: 4px; background: #2f80ed; }
.bar-row .bar-value { width: 48px; text-align: right; font-weight: 600; }
.growth-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.growth-chart .g-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.growth-chart .g-bar { width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; background: #2f80ed; min-height: 2px; }
.growth-chart .g-label { font-size: 0.68rem; color: var(--dt-head-text); }
.status-pill { display: inline-block; white-space: nowrap; padding: 2px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-trial { background: #eaf3fe; color: #1565c0; }
.status-aktif { background: #e7f6ec; color: #1e7b3b; }
.status-ditangguhkan { background: #fff3e0; color: #b45309; }
.status-berhenti { background: #f1f1f1; color: #616161; }
.status-belum { background: #f5f5f5; color: #9e9e9e; }

/* ===== Utility classes for Modern Layouts (Tailwind-compatible) ===== */
.min-h-screen { min-height: 100vh; }
.pb-10 { padding-bottom: 2.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.25rem; }
.p-3\.5 { padding: 0.875rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pb-4 { padding-bottom: 1rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.flex-1 { flex: 1 1 0%; }

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 992px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-50\/50 { background-color: rgba(248, 250, 252, 0.5); }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-blue-50\/30 { background-color: rgba(239, 246, 255, 0.3); }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-gradient-to-br { background-image: linear-gradient(135deg, var(--tw-gradient-from, #2563eb) 0%, var(--tw-gradient-to, #1d4ed8) 100%); }
.from-blue-600 { --tw-gradient-from: #2563eb; }
.to-blue-700 { --tw-gradient-to: #1d4ed8; }

.text-white { color: #ffffff; }
.text-blue-600 { color: #2563eb; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.hover\:text-slate-900:hover { color: #0f172a; }

.border { border-width: 1px; border-style: solid; border-color: #e2e8f0; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-dashed { border-style: dashed; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-200\/80 { border-color: rgba(226, 232, 240, 0.8); }
.border-slate-200\/60 { border-color: rgba(226, 232, 240, 0.6); }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-500 { border-color: #3b82f6; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }

.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.border-collapse { border-collapse: collapse; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }

.focus-within\:ring-2:focus-within {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.focus-within\:ring-blue-500\/20:focus-within {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.transition-colors { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.hover\:bg-slate-50\/50:hover { background-color: rgba(248, 250, 252, 0.5); }

.bg-amber-50\/80 { background-color: rgba(254, 243, 199, 0.8); }
.border-amber-200 { border-color: #fde68a; }
.bg-emerald-50\/80 { background-color: rgba(236, 253, 245, 0.8); }
.border-emerald-200 { border-color: #a7f3d0; }
.bg-sky-50\/80 { background-color: rgba(240, 249, 255, 0.8); }
.border-sky-200 { border-color: #bae6fd; }
.border-danger\/25 { border-color: rgba(220, 53, 69, 0.25); }
