:root {
  color-scheme: dark;
  --preview-page: #000000;
  --preview-shell: #191c24;
  --preview-card: #191c24;
  --preview-border: #313743;
  --preview-text: #ffffff;
  --preview-muted: #8f9ab9;
  --preview-success: #00d66b;
  --preview-info: #7751ff;
  --preview-warning: #ffb400;
  --preview-danger: #ff3654;
  font-family: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  scrollbar-width: none;
  background: var(--preview-page);
  color: var(--preview-text);
  font-size: 14px;
  line-height: 1.35;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

button,
table {
  font: inherit;
}

button,
a {
  pointer-events: none;
}

.container-scroller {
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 224px;
  padding: 72px 0 18px;
  border-right: 1px solid #262b35;
  background: var(--preview-shell);
}

.sidebar-brand-wrapper {
  position: fixed;
  z-index: 21;
  top: 0;
  left: 0;
  display: flex;
  width: 224px;
  height: 68px;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid #262b35;
  background: var(--preview-shell);
  font-weight: 800;
}

.sidebar-brand-wrapper img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.nav-category {
  padding: 18px 20px 10px;
  color: #787f9b;
  font-size: 12px;
}

.nav-link {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  margin-right: 12px;
  padding: 10px 20px;
  border-left: 3px solid transparent;
  border-radius: 0 24px 24px 0;
  color: #8c96b2;
  text-decoration: none;
}

.nav-link.active {
  border-left-color: #169cff;
  background: #0d0f14;
  color: #ffffff;
  font-weight: 700;
}

.menu-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #242936;
  color: var(--preview-success);
  font-size: 11px;
}

.menu-icon svg,
.nav-item svg,
.btn-navbar-toggler svg,
.btn .mdi svg {
  display: block;
  width: 18px;
  height: 18px;
}

.page-body-wrapper {
  min-height: 100vh;
  margin-left: 224px;
}

.navbar {
  position: fixed;
  z-index: 19;
  top: 0;
  right: 0;
  left: 224px;
  display: flex;
  height: 68px;
  border-bottom: 1px solid #262b35;
  background: var(--preview-shell);
}

.navbar-brand-wrapper {
  display: none;
}

.navbar-menu-wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.navbar-spacer {
  flex: 1;
}

.btn-navbar-toggler {
  min-width: 64px;
  border: 0;
  border-right: 1px solid #262b35;
  background: transparent;
  color: #a6afc5;
  font-size: 20px;
}

.navbar-nav-right {
  display: flex;
  align-items: stretch;
}

.navbar-nav-right > * {
  display: inline-flex;
  min-width: 58px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #262b35;
}

.navbar-nav-right .portal-online {
  color: var(--preview-success);
}

.navbar-nav-right .portal-credit {
  min-width: 86px;
  font-size: 17px;
  font-weight: 700;
}

.navbar-nav-right .portal-theme-status,
.navbar-nav-right .portal-line-spacing {
  color: #e3e8ef;
}

.main-panel {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding-top: 68px;
}

.content-wrapper {
  flex: 1;
  padding: 12px;
  background: var(--preview-page);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

.grid-margin {
  margin-bottom: 10px;
  padding: 0 5px;
}

.col-md-12 {
  width: 100%;
}

.portal-dashboard-row > .col-md-4 {
  width: 33.333%;
}

.portal-dashboard-row > .portal-rate-column {
  width: 100%;
}

.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--preview-border);
  border-radius: 4px;
  background: var(--preview-card);
}

.card-body {
  padding: 10px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.portal-banner-card {
  border: 0;
  background: transparent;
}

.portal-banner-row {
  display: flex;
}

.portal-banner-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: 4px;
  object-fit: cover;
}

@media (min-width: 992px) {
  .portal-banner-card img {
    max-width: 960px;
  }
}

.chart-wrap {
  width: 100%;
  overflow: hidden;
}

.bandwidth-chart {
  display: block;
  width: 100%;
  height: 145px;
}

.chart-grid {
  fill: none;
  stroke: #07090d;
  stroke-width: 1;
}

.chart-labels {
  fill: #adb4c6;
  font-size: 10px;
}

.chart-download,
.chart-upload {
  fill: none;
  stroke-width: 2;
}

.chart-download {
  stroke: #ff001f;
}

.chart-upload {
  stroke: #2929ff;
}

.bnwd {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding-top: 6px;
  font-size: 12px;
  font-weight: 700;
}

.text-success,
.clientInfo td:first-child {
  color: var(--preview-success);
}

.text-info {
  color: var(--preview-info);
}

.text-muted {
  color: var(--preview-muted);
}

.session-status {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px;
  border-bottom: 1px solid #bcc2cf;
}

.session-status h4 {
  margin: 0;
}

.session-main {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  padding: 8px 0;
}

.session-duration {
  display: flex;
  min-width: 0;
  flex: 1 1 150px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.session-duration .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.session-duration h3 {
  margin: 0;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.session-duration h6 {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 400;
}

.session-actions {
  flex: 0 1 140px;
}

.btn {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-weight: 600;
}

.session-actions .btn {
  width: 100%;
  font-size: 17px;
}

.session-actions .btn + .btn {
  margin-top: 9px;
}

.btn-outline-warning {
  color: var(--preview-warning);
}

.btn-outline-info {
  color: var(--preview-info);
}

.btn-outline-success {
  color: var(--preview-success);
}

.btn-outline-danger {
  color: var(--preview-danger);
}

.reserve-duration {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
  color: #6e6e85;
  font-size: 11px;
}

.portal-balance-card {
  margin-top: 10px;
}

.balance-layout {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  padding: 5px 0;
}

.balance-values {
  min-width: 0;
  flex: 1 1 150px;
  padding: 5px 15px;
  text-align: center;
}

.balance-values h3 {
  margin: 0;
  font-size: 24px;
}

.balance-values h6 {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 400;
}

.portal-vendo-list {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 4px;
  margin-top: 10px;
}

.portal-vendo-list .dropdown {
  width: min(100%, 168px);
}

.portal-vendo-list .dropdown-toggle {
  display: inline-flex;
  width: 100%;
  min-width: 115px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--preview-success);
  border-radius: 6px;
  background: rgba(0, 214, 107, 0.08);
  color: var(--preview-success);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.portal-vendo-list .dropdown-toggle::after {
  width: 0;
  height: 0;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
}

.portal-vendo-list .vendo-list-help {
  margin-top: 0;
  font-size: 11px;
}

.coin-action {
  flex: 1 1 140px;
  max-width: 180px;
}

.coin-action .btn {
  width: 100%;
  min-height: 62px;
  font-weight: 800;
}

.coin-action .mdi svg {
  display: block;
  width: 40px;
  height: 40px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-actions .btn {
  min-width: 0;
  flex: 1 1 145px;
}

.quick-actions .mdi {
  margin-left: auto;
}

.table-title {
  padding: 5px;
  border-bottom: 1px solid #c8ced9;
}

.clientInfo,
.table {
  width: 100%;
  border-collapse: collapse;
}

.clientInfo td {
  padding: 3px 0;
  overflow-wrap: anywhere;
}

.clientInfo td:first-child {
  width: 38%;
  padding-right: 10px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table th,
.table td {
  padding: 7px;
  border: 2px solid #050608;
  color: #9ba6c3;
  text-align: left;
  white-space: nowrap;
}

.table th {
  color: #d5dbea;
}

.footer {
  display: grid;
  justify-items: center;
  padding: 30px 12px 20px;
  font-size: 12px;
}

.footer a {
  color: #00c875;
}

@media (min-width: 1180px) {
  .portal-dashboard-row > .portal-session-column {
    width: 34%;
  }

  .portal-dashboard-row > .portal-actions-column {
    width: 32%;
  }

  .portal-dashboard-row > .portal-client-column {
    width: 34%;
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    display: none;
  }

  .page-body-wrapper {
    margin-left: 0;
  }

  .navbar {
    left: 0;
  }

  .navbar-brand-wrapper {
    display: flex;
    width: 130px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-right: 1px solid #262b35;
  }

  .navbar-brand-wrapper img {
    display: block;
    width: 100%;
    max-width: 140px;
    height: auto;
    max-height: 46px;
    object-fit: contain;
  }

  .portal-dashboard-row > .col-md-4,
  .portal-dashboard-row > .portal-rate-column {
    width: 100%;
  }
}

@media (max-width: 479.98px) {
  html,
  body {
    font-size: 12px;
  }

  .navbar {
    height: 60px;
    border-radius: 0;
    box-shadow: none;
  }

  .main-panel {
    padding-top: 60px;
  }

  .navbar-brand-wrapper {
    width: 212px;
    flex: 0 0 212px;
    justify-content: flex-start;
    padding: 7px 0 8px 18px;
    border-right: 0;
  }

  .navbar-brand-wrapper img {
    width: 134px;
    max-width: none;
    height: 45px;
    max-height: none;
  }

  .navbar-nav-right > * {
    min-width: 0;
    flex: 0 0 34px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }

  .navbar-nav-right > .portal-theme-status svg {
    width: 17px;
    height: 17px;
  }

  .navbar-nav-right > .portal-online svg {
    width: 15px;
    height: 15px;
  }

  .navbar-nav-right .portal-credit {
    min-width: 0;
    flex-basis: 60px;
    padding: 0;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
  }

  .navbar-nav-right > .portal-line-spacing {
    flex-basis: 38px;
  }

  .navbar-nav-right > .portal-line-spacing svg {
    width: 14px;
    height: 14px;
  }

  .btn-navbar-toggler,
  .navbar-spacer {
    display: none;
  }

  .content-wrapper {
    padding: 8px;
  }

  .row {
    margin-inline: -4px;
  }

  .grid-margin {
    padding-inline: 4px;
    margin-bottom: 8px;
  }

  .card-title {
    font-size: 16px;
  }

  .bandwidth-chart {
    height: 120px;
  }

  .session-main { gap: 8px; }

  .session-duration h3 {
    font-size: 22px;
  }

  .session-actions {
    flex-basis: 98px;
  }

  .session-actions .btn {
    font-size: 14px;
  }

  .balance-values h3 {
    font-size: 22px;
  }

  .coin-action .btn {
    padding-inline: 8px;
  }

  .quick-actions .btn {
    min-height: 40px;
    flex-basis: calc(50% - 4px);
    padding-inline: 8px;
    font-size: 11px;
  }
}

@media (max-width: 379.98px) {
  .navbar-brand-wrapper {
    width: calc(100% - 166px);
    flex-basis: calc(100% - 166px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
