/* SuperBam Brand Colors - Updated 2025-10-29 04:47 - AdminSubNav Fix */

/* AdminSubNav - Compact tab navigation */
.admin-subnav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0;
  height: auto;
  flex-shrink: 0;
}

.admin-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  height: 36px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--gray-600);
  background: var(--white);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid var(--gray-300);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.admin-subnav-link:hover {
  color: var(--superbam-primary);
  background: var(--gray-50);
  border-color: var(--superbam-primary-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-subnav-link-active {
  color: var(--white) !important;
  background: var(--superbam-primary) !important;
  border-color: var(--superbam-primary) !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
  font-weight: 600 !important;
}

.admin-subnav-link-active:hover {
  color: var(--white) !important;
  background: var(--superbam-primary-dark) !important;
  border-color: var(--superbam-primary-dark) !important;
}
:root {
  /* Primary Brand Colors */
  --superbam-primary: #6366f1;
  --superbam-primary-light: #8b5cf6;
  --superbam-primary-dark: #4f46e5;
  --superbam-secondary: #3b82f6;
  --superbam-accent: #8b5cf6;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;

  /* Semantic Colors */
  --success: #10b981;
  --success-light: #34d399;
  --success-dark: #059669;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --warning-dark: #d97706;
  --error: #ef4444;
  --error-light: #f87171;
  --error-dark: #dc2626;
  --info: #3b82f6;
  --info-light: #60a5fa;
  --info-dark: #2563eb;

  /* Legacy color mappings for backward compatibility */
  --amber-200: #fde68a;
  --amber-500: var(--warning);
  --amber-900: var(--warning-dark);
  --black: var(--gray-950);
  --blue-200: #bfdbfe;
  --blue-500: var(--info);
  --blue-900: #1e3a8a;
  --green-200: #bbf7d0;
  --green-500: var(--success);
  --green-900: var(--success-dark);
  --indigo-200: #c7d2fe;
  --indigo-500: var(--superbam-primary);
  --indigo-900: var(--superbam-primary-dark);
  --red-200: #fecaca;
  --red-500: var(--error);
  --red-900: var(--error-dark);
  --white: #ffffff;

  /* Brand Gradients */
  --gradient-primary: linear-gradient(135deg, var(--superbam-primary) 0%, var(--superbam-primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--superbam-secondary) 0%, var(--superbam-primary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--superbam-accent) 0%, var(--superbam-primary) 100%);
}

* {
  box-sizing: border-box;
}
html {
  font-size: 12pt;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:link {
  text-decoration: none;
}

button,
.button {
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--superbam-primary);
  padding: 12px 24px;
  background: var(--superbam-primary);
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
button:hover,
.button:hover {
  background: var(--superbam-primary-dark);
  border-color: var(--superbam-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

input[readonly] {
  visibility: hidden;
  position: absolute;
  height: 0;
  width: 0;
}

#dash > * > * {
  max-width: 1020px;
  margin: 0 auto;
  width: 100%;
}

#dash > header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#dash > header > div {
  display: flex;
  align-items: center;
  overflow: visible;
  max-height: 2.5rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  gap: 1rem;
  width: 100%;
  /* background: black; */
  /* border-top: 1px solid black; */
  /* letter-spacing: 1px; */
  /* color: #888; */
}

#dash > header a:first-child {
  margin-right: auto;
}

#dash > header a:not(:first-child) {
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.8);
  overflow: visible;
  transition: all 0.2s ease;
}

#dash > header a:not(:first-child):hover {
  opacity: 1;
  color: var(--white);
}

#dash > header button {
  border: 0;
  max-width: 30ch;
  text-overflow: ellipsis;
  overflow-x: hidden;
  white-space: nowrap;
  font-weight: 700;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  transition: all 0.2s ease;
}

#dash > header button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 8px;
}

#dash > main {
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
  width: 100%;
  background: #ccc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#dash > footer {
  min-height: 8rem;
  height: 100%;
  border-top: 3px solid black;
}

#dash section,
.panel {
  background: white;
  border: 2px solid black;
  border-bottom: 3px solid black;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-style: italic;
}
h1 {
  font-size: 2rem;
}

* {
  color: inherit;
}

.google-btn {
  display: inline-block;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
  background-color: #4285f4;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}
.google-btn img {
  vertical-align: middle;
  margin-right: 10px;
  height: 24px;
}
.google-btn:hover {
  background-color: #357ae8;
}

.hidden {
  visibility: hidden;
  height: 0;
  width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
}
table th,
table td {
  vertical-align: middle;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 12rem;
  padding: 0.1rem 0.75rem;
  width: 0;
}
table th {
  text-transform: capitalize;
  padding: 0.25rem 0.75rem;
  letter-spacing: 1px;
  background: #eee;
}

.box {
  /*
  background: #151515;
  */
  padding: 1rem 4rem 3rem;
  border: 2px solid #444;
  border-radius: 5px;
  letter-spacing: 2px;
  font-weight: 500;
  /* font-style: italic; */
  text-transform: uppercase;
}

/* Alert */

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  height: fit-content;
  line-height: 1rem;
  font-weight: bold;
}

.alert-info {
  background-color: var(--blue-200);
  color: var(--blue-900);
}

.alert-secondary {
  background-color: var(--gray-200);
  color: var(--gray-900);
}

.alert-success {
  background-color: var(--green-200);
  color: var(--green-900);
}

.alert-warning {
  background-color: var(--amber-200);
  color: var(--amber-900);
}

.alert-error {
  background-color: var(--red-200);
  color: var(--red-900);
}

/* Layout */

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--gray-50);
}

.layout-header {
  margin: 24px 0;
  position: relative;
}

.layout-header h1 {
  font-size: 45px;
}

.layout-header p {
  margin-bottom: 0;
  color: #555;
}

.container {
  display: flex;
  flex-direction: column;
  max-width: none;
  flex-grow: 1;
  margin: 0;
  padding: 24px 48px;
}

.container-md {
  max-width: none;
  width: 100%;
}

.container-lg {
  max-width: none;
  width: 100%;
}

.centered-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

div.navbar,
.layout .navbar,
.navbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 32px;
  height: 70px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%) !important;
  background-color: #1e1b4b !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Logo Styling */
.navbar > a {
  display: flex;
  align-items: center;
  height: 100%;
}

#logo {
  height: 35px;
  width: auto;
  transition: opacity 0.2s ease;
  transform: scale(0.85);
  transform-origin: center center;
}

#logo:hover {
  opacity: 0.8;
}

.navbar-links {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 24px;
  height: 100%;
}

.navbar-portals {
  display: flex;
  gap: 8px;
  flex-grow: 1;
  margin-left: 24px;
  align-items: center;
  height: 100%;
}

.navbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  height: 38px;
  line-height: 1;
}

.navbar-link:hover {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.navbar-link-active {
  color: var(--white) !important;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
}

/* Portals */

.portal-container {
  display: flex;
  flex-grow: 1;
  gap: 24px;
  height: 100%;
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 300px;
  min-width: 200px;
  flex-shrink: 0;
  padding: 1rem;
  margin-top: 42px;
  border-radius: 6px;
}

.portal-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.sidebar-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding: 0 16px;
}

.sidebar-group-links {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  margin-left: .75rem;
}

/* Tighter spacing for submenu items within groups */
.sidebar-group-links .navbar-link {
  padding: 4px 16px;
}

.sidebar-item-icon {
  margin-bottom: 2px;
}

.sidebar-item-sub-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  color: var(--gray-500);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

/* LayoutHeader */

.breadcrumbs {
  margin-left: 6px;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: small;
  color: var(--gray-500);
}

.breadcrumb:hover {
  color: black;
}

.breadcrumb:not(:first-child)::before {
  content: " / "
}

.usr-badge-usr {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--superbam-primary);
  border-radius: 8px;
  background-color: var(--superbam-primary);
  color: var(--white);
  width: fit-content;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--superbam-primary-dark);
  border-color: var(--superbam-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn.btn-md {
  padding: 0.5rem 1rem;
}

.btn.btn-sm {
  padding: 0.25rem 0.5rem;
}

.btn.btn-disabled {
  background-color: var(--gray-500);
  border-color: var(--gray-500);
  pointer-events: none;
}

/* Button Variants */

.btn.btn-secondary {
  background-color: var(--white);
  color: var(--superbam-primary);
  border: 1px solid var(--gray-300);
}

.btn.btn-secondary:hover {
  background-color: var(--gray-50);
  border-color: var(--superbam-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn.btn-secondary.btn-disabled {
  color: var(--gray-500);
}

.btn.btn-destructive {
  background-color: var(--error);
  color: var(--white);
  border: 1px solid var(--error);
}

.btn.btn-destructive:hover {
  background-color: var(--error-dark);
  border-color: var(--error-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--superbam-primary);
}

.btn.btn-ghost:hover,
.btn.btn-ghost:focus {
  background-color: var(--gray-100);
  border-color: transparent;
  transform: translateY(-1px);
}

.action-table {
  border: 2px solid var(--gray-500);
  border-collapse: unset;
  border-spacing: 0;
}

.action-table thead th {
  border: none;
  border-bottom: 2px solid var(--gray-500);
}

.action-table tbody td {
  border: none;
  background-color: transparent;
}

table:not(.charts-css).action-table tbody tr:nth-child(odd) {
  background-color: white;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 12px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--gray-500);
  border-radius: 6px;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 100px;
}

.form-group label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: bold;
}

.form-group-hint {
  margin: 6px 0;
  font-size: 14px;
  color: var(--gray-500);
}

.empty-callout {
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background-color: #eee;
  color: #333;
  border-radius: 6px;
}

/* TrackedStat */

.tracked-stat {
  display: flex;
  justify-content: space-between;
  background-color: white;
  width: 100%;
}

.tracked-stat-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tracked-stat-header {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.tracked-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  margin-right: 12px;
  border-radius: 4px;
  background-color: var(--gray-200);
}

.tracked-stat-values {
  display: flex;
  flex-direction: column;
  margin-left: 44px;
}

.tracked-stat-sum {
  margin-top: 24px;
  font-size: 60px;
}

.tracked-stat-total {
  margin-top: 12px;
  font-size: 24px;
  color: var(--gray-500);
}

.tracked-stat-table.line {
  max-width: 360px;
  margin: 0;
  margin-top: auto;
}

.tracked-stat-table th {
  font-size: 14px;
  color: var(--gray-500);
}

/* InlineForm */

.inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 35px;
}

/* TODO: Pull most of these into global input? */
.inline-form input,
.inline-form select {
  flex-grow: 1;
  height: 100%;
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--gray-400);
  border-radius: 6px;
  font-size: 1rem;
}

/* PagerButtons */

.pager-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 35px;
}

.pager-btns-group {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 35px;
}

.pager-btn {
  margin: 0 6px;
}

/* PageSection */

.page-section {
  margin-bottom: 18px;
}

/* SectionHeader */

.section-header {
  position: relative;
  margin-bottom: 24px;
}

.section-header p {
  margin-bottom: 0;
}

.header-actions {
  position: absolute;
  top: 0;
  right: 0;
}

/* User Roles */

.user-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background-color: var(--gray-200);
  margin-bottom: 6px;
  border-radius: 6px;
}

.user-role span {
  font-weight: bold;
}

.user-role .warning {
  margin: 8px 0;
  color: var(--gray-500)
}

.user-add-role-form {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

/* FeedItem */
.feed-item {
  display: flex;
  gap: 24px;
  padding: 12px;
  border-bottom: 2px solid #eee;
  margin-bottom: 12px;
  border-radius: 6px;
  background-color: white;
}

.feed-item img {
  height: 128px;
  border-radius: 6px;
}

.feed-item-details {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 12px;
  flex-grow: 1;
}

/* Badge */

.badge {
  height: fit-content;
  min-width: fit-content;
  width: fit-content;
  padding: 3px 8px;
  font-size: smaller;
  text-transform: uppercase;
  /* border: 1px solid var(--gray-500); */
  border-radius: 6px;
  background-color: var(--gray-200);
  color: var(--gray-500);
  font-weight: bold;
}

/* ConfirmationDialog */

.confirmation-dialog {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;;
  border: 2px solid var(--gray-200);
  background-color: white;
  border-radius: 12px;
}

.confirmation-dialog-actions {
  display: flex;
  justify-content: space-between;
}

/* Table */


.styled-table {
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
  font-family: sans-serif;
  min-width: 400px;
  overflow: hidden;
}

.styled-table tr {
  height: 3rem;
  background-color: var(--white);
}

.styled-table thead tr {
  height: 2.5rem;
  color: var(--gray-500);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.styled-table thead th {
  background-color: transparent;
}

.styled-table thead th,
.styled-table tbody td {
    background-color: transparent;
    border: none;
}

.styled-table tbody tr {
  background-color: var(--white);
}

.styled-table tbody tr:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
}

.styled-table tbody tr a {
  text-decoration: underline;
  font-weight: bold;
}

/* Override global 12rem cap for DataTable — its columns use Tailwind widths */
.data-table th,
.data-table td {
  max-width: none;
}

/* Apply styling to anchor tags by default */
.data-table tbody tr a {
  text-decoration: underline;
  font-weight: 600;
}

/* Empty Message */

.empty-message {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  justify-content: center;
  align-items: center;
  color: var(--gray-500);
  border: 1px dashed var(--gray-200);
  border-radius: 6px;
}

/* Card */

.card {
  background-color: var(--white);
  border-radius: 6px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.card-header-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.card-description {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.card-content {
  padding: 1rem;
}

.card-action {
  color: var(--blue-500);
  font-weight: 500;
  font-size: 0.875rem;
}

.card-action:hover {
  color: var(--blue-900);
}

.card-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--gray-200);
}

/* DetailItem */

.detail-item {
  display: flex;
  margin-bottom: 0.5rem;
  min-height: 1.5rem;
  gap: 0.5rem;
}

.detail-item.detail-item-row {
  align-items: center;
  justify-content: space-between;
}

.detail-item.detail-item-col {
  flex-direction: column;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item-label {
  font-size: small;
  font-weight: bold;
  color: var(--gray-500);
}

.detail-item-null {
  font-size: small;
  font-weight: bold;
  color: var(--gray-500);
}

.detail-item-text {
  font-size: small;
  font-weight: bold;
}

.detail-item-text a {
  text-decoration: underline;
}

/* Dialog */

.dialog-container {
  position: relative;
  display: inline-block;
}

.dialog {
  padding: 0;
  margin: 0;
  border: none;
  width: 100%;
  max-width: 28rem;
  background-color: transparent;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 6px;
}

.dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.dialog-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  cursor: pointer;
  color: var(--gray-500);
}

.dialog-close:hover {
  background-color: var(--gray-200);
  color: var(--gray-900);
}

/* Popover */

.popover-container {
  position: relative;
  display: inline-block;
}

.popover {
  position: absolute;
  z-index: 100;
  display: none;
  border-radius: 6px;
  background-color: transparent; /* Card provides background */
  width: max-content;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
}

.popover.popover-top {
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
}

.popover.popover-bottom {
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
}

.popover.popover-left {
  right: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
}

.popover.popover-right {
  left: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
}

.popover.popover-visible {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog[open] {
  animation: fadeIn 0.15s ease-out;
}

.popover.popover-visible {
  animation: fadeIn 0.15s ease-out;
}

.btn-icon {
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ClientSbAssetTable */

.table-filter-row th {
  padding: 0.5rem;
  vertical-align: top;
  border-top: none;
  border-bottom: 1px solid var(--gray-200);
  background-color: white;
}

.filter-select-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.filter-select {
  width: 100%;
  padding: 0.25rem 0.5rem;
  padding-right: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  background-color: white;
}

.filter-select:focus {
  border-color: var(--blue-500);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.filter-dropdown {
  width: 100%;
}

.filter-clear-btn {
  position: absolute;
  right: 0.25rem;
  display: none;
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0 0.25rem;
  z-index: 2;
}

.clear-all-filters-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.5rem;
}

.search-container {
  width: 100%;
  max-width: 300px;
  position: relative;
}

.filter-search-input {
  width: 100%;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-search-input:focus {
  border-color: var(--blue-500);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.filterable-assets-table .sortable {
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.filterable-assets-table .sortable.active {
  font-weight: 600;
  color: var(--indigo-500);
}

.filterable-assets-table .sortable:hover {
  color: var(--indigo-500);
}

.filterable-assets-table .header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
}


.filterable-assets-table .sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.sort-chevrons {
  transition: opacity 0.2s;
  line-height: 0.5;
}

.sortable:hover .sort-chevrons {
  opacity: 1 !important;
}

/* Notifications */

.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}

.notification:first-child {
  padding-top: 0;
}

.notification:last-child {
  padding-bottom: 0;
}

.notification + .notification {
  border-top: 1px solid var(--gray-200);
}

/* Compact variant for popover */
.notification-compact {
  padding: 10px 0;
  gap: 10px;
}

.notification-compact:first-child {
  padding-top: 0;
}

.notification-compact:last-child {
  padding-bottom: 0;
}

.notification-compact .notification-content {
  font-size: 0.875rem;
  line-height: 1;
}

/* "full" variant for user notifications page */
.notification-full {
  padding: 16px 0;
}

.notification-full:first-child {
  padding-top: 0;
}

.notification-full:last-child {
  padding-bottom: 0;
}

.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px; /* Slight adjustment to align with first line of text */
}

.notification-full .notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.notification-info .notification-icon {
  background: var(--blue-200);
  color: var(--blue-900);
}

.notification-warning .notification-icon {
  background: var(--amber-200);
  color: var(--amber-900);
}

.notification-error .notification-icon {
  background: var(--red-200);
  color: var(--red-900);
}

.notification-success .notification-icon {
  background: var(--green-200);
  color: var(--green-900);
}

.notification-default .notification-icon {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* Body content */
.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-content {
  color: var(--gray-900);
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-top: 4px;
  word-wrap: break-word;
}

.notification-meta {
  color: var(--gray-500);
  font-size: 0.8125rem;
  margin-top: 4px;
  font-weight: 400;
}

.notification-actions {
  margin-top: 8px;
}

.notification-actions a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.notification-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--gray-500);
}

.notification-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.notification-empty-text {
  font-size: 0.9375rem;
  font-weight: 400;
}

/* View all button container */
.notification-view-all {
  padding-top: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.notification-view-all .btn {
  width: 100%;
  justify-content: center;
}

.notifications-page .notification {
  padding: 1rem 0;
}

.notifications-page .notification:first-child {
  padding-top: 0;
}

.notifications-page .notification:last-child {
  padding-bottom: 0;
}

/* Responsive styles for notifications page */
@media (max-width: 480px) {
  .notification {
    gap: 10px;
  }

  .notification-icon {
    width: 20px;
    height: 20px;
  }

  .notification-full .notification-icon {
    width: 24px;
    height: 24px;
  }

  .notification-content {
    font-size: 0.875rem; /* 14px */
  }

  .notification-compact .notification-content {
    font-size: 0.8125rem; /* 13px */
  }
}


/* Force navbar dark background - highest specificity */
body div.layout div.navbar,
body #dash header,
html body div.navbar,
html body .navbar {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%) !important;
  background-color: #1e1b4b !important;
}

/* Clean sidebar styling */
.portal-sidebar,
.sidebar-group,
.sidebar-group-links,
.portal-container .portal-sidebar,
div.portal-sidebar,
div.sidebar-group,
div.sidebar-group-links {
  background: var(--white);
}


/* Navbar portal buttons styling */
.navbar-portals .navbar-link,
.navbar-portals a.navbar-link {
  color: var(--white) !important;
  background: transparent !important;
}

.navbar-portals .navbar-link:hover,
.navbar-portals a.navbar-link:hover {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.navbar-portals .navbar-link-active,
.navbar-portals a.navbar-link-active {
  color: var(--white) !important;
  background: var(--superbam-primary-light) !important;
}

/* Horizontal navbar (top) - dark background, white text */
.navbar .navbar-link,
.navbar a.navbar-link,
div.navbar .navbar-link,
div.navbar a.navbar-link,
.navbar .navbar-link[style],
.navbar a.navbar-link[style],
div.navbar .navbar-link[style],
div.navbar a.navbar-link[style],
.layout .navbar .navbar-link,
.layout .navbar a.navbar-link,
.layout div.navbar .navbar-link,
.layout div.navbar a.navbar-link {
  color: rgba(255, 255, 255, 0.8) !important;
  background: transparent !important;
}

/* Vertical sidebar - white background, dark text */
.portal-sidebar .navbar-link,
.portal-sidebar a.navbar-link,
.sidebar-group-links .navbar-link,
.sidebar-group-links a.navbar-link,
div.sidebar-group-links .navbar-link,
div.sidebar-group-links a.navbar-link,
.portal-container .navbar-link,
.portal-container a.navbar-link {
  color: var(--gray-700) !important;
  background: transparent !important;
  justify-content: flex-start !important;
  padding: 8px 16px !important;
  margin: 2px 0 !important;
  border-radius: 6px !important;
}

/* Horizontal navbar hover - white text on dark background */
.navbar .navbar-link:hover,
.navbar a.navbar-link:hover,
div.navbar .navbar-link:hover,
div.navbar a.navbar-link:hover,
.navbar .navbar-link[style]:hover,
.navbar a.navbar-link[style]:hover,
div.navbar .navbar-link[style]:hover,
div.navbar a.navbar-link[style]:hover,
.layout .navbar .navbar-link:hover,
.layout .navbar a.navbar-link:hover,
.layout div.navbar .navbar-link:hover,
.layout div.navbar a.navbar-link:hover {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Vertical sidebar hover - dark text on white background */
.portal-sidebar .navbar-link:hover,
.portal-sidebar a.navbar-link:hover,
.sidebar-group-links .navbar-link:hover,
.sidebar-group-links a.navbar-link:hover,
div.sidebar-group-links .navbar-link:hover,
div.sidebar-group-links a.navbar-link:hover,
.portal-container .navbar-link:hover,
.portal-container a.navbar-link:hover {
  color: var(--superbam-primary) !important;
  background: var(--gray-100) !important;
}

/* Horizontal navbar active - white text on dark background */
.navbar .navbar-link-active,
.navbar a.navbar-link-active,
div.navbar .navbar-link-active,
div.navbar a.navbar-link-active,
.navbar .navbar-link-active[style],
.navbar a.navbar-link-active[style],
div.navbar .navbar-link-active[style],
div.navbar a.navbar-link-active[style],
.layout .navbar .navbar-link-active,
.layout .navbar a.navbar-link-active,
.layout div.navbar .navbar-link-active,
.layout div.navbar a.navbar-link-active {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  font-weight: 600;
}

/* Vertical sidebar active - dark text on white background */
.portal-sidebar .navbar-link-active,
.portal-sidebar a.navbar-link-active,
.sidebar-group-links .navbar-link-active,
.sidebar-group-links a.navbar-link-active,
div.sidebar-group-links .navbar-link-active,
div.sidebar-group-links a.navbar-link-active,
.portal-container .navbar-link-active,
.portal-container a.navbar-link-active {
  color: var(--superbam-primary) !important;
  background: var(--gray-200) !important;
  font-weight: 600;
}

/* Priority badges */
.priority-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
}
.priority-red {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.priority-yellow {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}
.priority-green {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Workload summary table */
.workload-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.workload-table td a {
  font-weight: 500;
}
.workload-row-warning {
  background: #fffbeb;
}
.priority-breakdown {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}
button.priority-badge {
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
button.priority-badge:hover {
  opacity: 0.8;
}
button.breakdown-active {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Breakdown detail sub-panel */
.breakdown-detail-row td {
  background: #f9fafb;
}
.breakdown-detail-content {
  max-height: 320px;
  overflow-y: auto;
}

/* Alignment badges */
.alignment-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
}
.alignment-ok {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.alignment-misaligned {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.alignment-idle {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

/* Assignment checkbox alignment */
.assignment-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Assignment action bar (below table) */
.assignment-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  opacity: 0.5;
  transition: opacity 0.15s ease;
}
.assignment-action-bar.has-selection {
  opacity: 1;
}
.assignment-action-bar .selected-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  min-width: 80px;
}
