/* Shared visual polish on top of Tabler's default theme, applied once here
   so every page in both portals gets it — no per-page markup changes, no
   workflow changes. Each portal's own theme.css still sets its own accent
   color (--tblr-primary); this file is accent-agnostic. */

/* --- Sidebar / brand --- */
.navbar-brand span {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
}

/* Tenant/platform logo in the sidebar header. Tabler's own reset sets
   `img { height: auto }`, which silently overrides the plain HTML
   `height="32"` attribute on #tenant-logo and lets the image render at its
   full intrinsic size — this is what caused a giant logo to blow out the
   sidebar header into an oversized block. Pin it explicitly instead. */
.navbar-brand img#tenant-logo {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.navbar-vertical .navbar-nav .nav-link {
  border-radius: 6px;
  margin: 2px 8px;
  padding-left: 12px;
}

.nav-item.active .nav-link {
  background-color: rgba(var(--tblr-primary-rgb), 0.16);
  color: #fff;
}

.nav-item .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

/* --- Cards --- */
.card {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.card-table {
  border-radius: 10px;
  overflow: hidden;
}

/* --- Stat cards (dashboards) --- */
.stat-card .card-body {
  padding: 1.25rem 1.5rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--tblr-primary-rgb), 0.15);
  color: var(--tblr-primary);
  font-size: 1.3rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
}

.stat-label {
  color: var(--tblr-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Tables --- */
table.table td,
table.table th {
  vertical-align: middle;
}

table.table thead th {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--tblr-secondary);
}

table.table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* --- Status badges --- */
.status-badge {
  font-weight: 600;
  text-transform: capitalize;
}

/* --- Empty state --- */
.empty-state {
  padding: 3.5rem 1rem;
  text-align: center;
  color: var(--tblr-secondary);
}

.empty-state .empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(var(--tblr-primary-rgb), 0.12);
  color: var(--tblr-primary);
  font-size: 2rem;
}

/* --- Buttons --- */
.btn {
  border-radius: 7px;
  font-weight: 500;
}

/* --- Login card --- */
.page-center .card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
