.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  margin-bottom: 32px;
  font-weight: 600;
  font-size: 18px;
}

.logo-box {
  width: 100%;
  padding: 0 20%;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  margin: 20px 0 8px 12px;
  letter-spacing: 1px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: all 0.2s;
}

.item-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.menu-item.active {
  background: var(--brand-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(93, 59, 227, 0.3);
}

.icon {
  font-size: 16px;
  width: 20px;
  display: flex;
  justify-content: center;
}

.arrow {
  font-size: 10px;
  opacity: 0.5;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.version-badge {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 10px;
  width: fit-content;
}

/* Sidebar Client Selector */
.sidebar-client-selector {
  padding: 0 4px;
  margin-bottom: 20px;
}

.sidebar-selector-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-left: 4px;
}

.sidebar-select {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.sidebar-select:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.12);
}

.sidebar-select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(93, 59, 227, 0.3);
}

.sidebar-select option {
  background: #1e1b4b;
  color: white;
  padding: 8px;
}

.profile-wrap {
  position: relative;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 6px;
  z-index: 30;
}

.profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-menu-item:hover {
  background: #f8fafc;
}

.menu-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.metric-link {
  text-decoration: none;
}

.metric-link:focus {
  outline: 2px solid rgba(93, 59, 227, 0.5);
  outline-offset: 3px;
}

.metric-link:hover {
  transform: translateY(-1px);
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 13px;
}

.table th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.table tr:hover td {
  background: #fcfcff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-secondary);
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.status-pill.active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
  color: #15803d;
}

.status-pill.active .dot {
  background: #22c55e;
}

.status-pill.inactive {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
  color: #b91c1c;
}

.status-pill.inactive .dot {
  background: #ef4444;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-primary);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background: #f8fafc;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

.actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.logo-thumb {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

/* ── Mobile Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .table th,
  .table td {
    padding: 8px 8px;
    font-size: 12px;
  }

  .btn-outline {
    padding: 8px 10px;
    font-size: 12px;
  }

  .nav-label {
    font-size: 10px;
    margin: 12px 0 6px 12px;
  }

  .logo-box {
    padding: 0 10%;
  }

  .profile-menu {
    right: -10px;
    min-width: 160px;
  }

  .profile-menu {
    right: 0;
  }
}

@media (max-width: 480px) {
  .table th,
  .table td {
    padding: 6px 6px;
    font-size: 11px;
  }
}
