/* TabLam Admin UI — Production Consolidated Stylesheet (Version 1.0.4) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


:root {
   color-scheme: light;

   /* ==========================================================================
     TabLam Official Green Brand Palette
     ========================================================================== */
   --tablam-forest: #0B4D2D;
   /* Forest Green */
   --tablam-emerald: #0E7A46;
   /* Emerald Green (Vibrant, Clear Green) */
   --tablam-emerald-hover: #095932;
   /* Darker Emerald on Hover */
   --tablam-mint: #34D399;
   /* Mint Green */
   --tablam-mint-soft: #D1FAE5;
   /* Light Mint */
   --tablam-offwhite: #F8FAF8;
   /* Background Off White */
   --tablam-charcoal: #1F2937;
   /* Charcoal Text */
   --tablam-charcoal-muted: #4B5563;
   /* Muted Charcoal */

   /* ==========================================================================
     Semantic Theme Tokens (Light Mode - Clear Visible Green)
     ========================================================================== */
   --primary: #0E7A46;
   /* Primary is Vivid Emerald Green */
   --primary-hover: #095932;
   /* Hover Green */
   --secondary: #0B4D2D;
   /* Forest Green */
   --secondary-hover: #073820;
   --accent: #34D399;
   /* Mint Green */
   --accent-soft: #D1FAE5;
   /* Light Mint */
   --primary-soft: #D1FAE5;
   /* Light Mint Background */

   --bg: #F8FAF8;
   /* Off White */
   --surface: #FFFFFF;
   /* Pure White */
   --surface-alt: #F0FDF4;
   /* Very Subtle Soft Mint Canvas */
   --text: #1F2937;
   /* Charcoal */
   --muted: #4B5563;
   /* Muted */
   --border: #E5E7EB;
   /* Border */
   --border-focus: #0E7A46;
   /* Emerald Green Focus Border */
   --sidebar: #FFFFFF;
   --button-text: #FFFFFF;

   /* Semantic Feedback */
   --success: #0E7A46;
   --warning: #D97706;
   --danger: #DC2626;
   --info: #0E7A46;

   /* Subtle Ambient Shadows */
   --shadow: 0 1px 3px rgba(14, 122, 70, 0.06), 0 1px 2px rgba(14, 122, 70, 0.04);
   --shadow-lg: 0 10px 25px -5px rgba(14, 122, 70, 0.1), 0 8px 10px -6px rgba(14, 122, 70, 0.05);

   /* Dimensions & Metrics */
   --r: 8px;
   --card-r: 12px;
   --header-h: 68px;
   --sidebar-w: 260px;
   --sidebar-narrow: 76px;
   --content-w: 1600px;
   --transition: 180ms ease;
   --font: 'Poppins', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme=dark] {
   color-scheme: dark;

   /* ==========================================================================
     TabLam Dark Mode Tokens (Glowing Mint Green)
     ========================================================================== */
   --primary: #34D399;
   /* Mint Green (Bright, highly visible) */
   --primary-hover: #6EE7B7;
   /* Soft Mint */
   --secondary: #6EE7B7;
   --secondary-hover: #A7F3D0;
   --accent: #34D399;
   --accent-soft: rgba(52, 211, 153, 0.15);
   --primary-soft: rgba(52, 211, 153, 0.15);

   --bg: #071F16;
   /* Deep Pine Canvas */
   --surface: #0B2D20;
   /* Dark Forest Surface */
   --surface-alt: #123B2A;
   /* Elevated Surface */
   --text: #F8FAF8;
   /* Off White */
   --muted: #A7C4B3;
   /* Sage */
   --border: #24543D;
   /* Deep Forest Borders */
   --border-focus: #34D399;
   --sidebar: #0B2D20;
   --button-text: #071F16;

   /* Semantic Feedback */
   --success: #34D399;
   --warning: #FBBF24;
   --danger: #F87171;
   --info: #6EE7B7;

   /* Shadows */
   --shadow: 0 2px 9px rgba(0, 0, 0, 0.25);
   --shadow-lg: 0 14px 50px rgba(0, 0, 0, 0.5);
}*,*::before,*::after{box-sizing:border-box}html{font-family:var(--font);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{display:block}img{display:block;max-width:100%}table{border-collapse:collapse;width:100%}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--primary);outline-offset:3px}::selection{background:var(--primary-soft)}
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.6px;
  color: var(--text);
}

h2 {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--text);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--text);
}

small, .small {
  font-size: 12px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.subheading {
  font-size: 13px;
  color: var(--muted);
}

.num {
  font-variant-numeric: tabular-nums;
}
/* ==========================================================================
   TabLam Layout & Application Shell Styles
   ========================================================================== */

.app {
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  z-index: 30;
  display: flex;
  flex-direction: column;
  transition: width var(--transition), transform var(--transition);
}

.sidebar-head {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.brand-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  object-fit: cover;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
  color: var(--text);
}

.brand-text span {
  color: var(--primary);
}

.sidebar-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 12px;
  flex: 1;
}

.nav-group-label {
  padding: 16px 12px 6px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.nav-group-label.group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: var(--r);
  transition: background var(--transition), color var(--transition);
}

.nav-group-label.group-toggle:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.nav-group-label.group-toggle span {
  font-size: 14px;
  font-weight: 400;
}

.nav-link, .nav-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: var(--r);
  font-weight: 500;
  font-size: 13.5px;
  text-align: left;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.nav-link:hover, .nav-group-btn:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

[data-theme=dark] .nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-link .ico, .nav-group-btn .ico {
  flex: none;
}

.nav-group-btn .chev {
  margin-left: auto;
}

.sidebar-foot {
  padding: 16px 14px;
  border-top: 1px solid var(--border);
}

.trial-box {
  background: var(--primary-soft);
  border-radius: var(--card-r);
  padding: 14px;
  border: 1px solid rgba(14, 122, 70, 0.12);
}

.trial-box strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.trial-box p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* Content Wrap */
.content-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-left var(--transition);
  background-color: var(--bg);
}

/* Topbar */
.topbar {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb strong {
  color: var(--text);
  font-weight: 600;
}

/* Main Content */
.main {
  padding: 26px 28px 42px;
  max-width: var(--content-w);
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.page-head h1 {
  margin: 0 0 6px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

/* Layout Grid */
.grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.cols-2 {
  grid-template-columns: 1.6fr 1fr;
}

.cols-half {
  grid-template-columns: 1fr 1fr;
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Collapsed Sidebar */
.sidebar-collapsed .sidebar {
  width: var(--sidebar-narrow);
}

.sidebar-collapsed .content-wrap {
  margin-left: var(--sidebar-narrow);
}

.sidebar-collapsed .sidebar .hide-collapsed,
.sidebar-collapsed .sidebar .nav-group-label,
.sidebar-collapsed .sidebar .chev {
  display: none;
}

.sidebar-collapsed .sidebar .nav-link,
.sidebar-collapsed .sidebar .nav-group-btn {
  justify-content: center;
  padding: 10px 0;
}

.sidebar-collapsed .sidebar-head {
  padding: 0 20px;
}

.sidebar-collapsed .sidebar-foot {
  display: none;
}

.mobile-overlay {
  display: none;
}

/* Footer */
.footer {
  padding: 18px 28px 26px;
  margin-left: var(--sidebar-w);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.sidebar-collapsed .footer {
  margin-left: var(--sidebar-narrow);
}
/* ==========================================================================
   TabLam UI Component System
   ========================================================================== */

/* Icons */
.ico {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.btn, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 100ms ease;
}

.btn:hover, .icon-btn:hover {
  background: var(--surface-alt);
  border-color: rgba(14, 122, 70, 0.25);
  color: var(--text);
}

.btn:active, .icon-btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--button-text);
}

.btn.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--button-text);
}

.btn.primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
}

.btn.ghost:hover {
  background: var(--surface-alt);
  border-color: var(--border);
}

.btn.danger {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
}

.btn.danger:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: var(--danger);
}

.btn.sm {
  min-height: 31px;
  padding: 0 10px;
  font-size: 12px;
}

.btn[disabled], .icon-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.icon-btn {
  width: 38px;
  padding: 0;
  flex: none;
}

/* Avatars */
.avatar {
  width: 35px;
  height: 35px;
  flex: none;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.avatar.lg {
  height: 52px;
  width: 52px;
  font-size: 16px;
}

.avatar.green {
  background: var(--primary-soft);
  color: var(--primary);
}

.avatar.amber {
  background: #fef3c7;
  color: #b45309;
}

.avatar.purple {
  background: #ede9fe;
  color: #6d28d9;
}

.avatar.pink {
  background: #fce7f3;
  color: #be185d;
}

/* Cards & Surfaces */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-r);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.card-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Stat & KPI Cards */
.stat {
  padding: 20px;
  position: relative;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.stat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 10px;
}

[data-theme=dark] .stat-icon {
  color: var(--accent);
}

.stat-value {
  font-weight: 750;
  letter-spacing: -1.1px;
  font-size: 28px;
  margin: 12px 0 7px;
  color: var(--text);
}

.delta {
  font-size: 12px;
  color: var(--success);
  font-weight: 700;
}

/* Badges & Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  background: var(--surface-alt);
  color: var(--muted);
}

.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag.green, .tag.blue, .tag.brand {
  background: var(--primary-soft);
  color: var(--primary);
}

.tag.amber {
  background: #fef3c7;
  color: #a16207;
}

.tag.red {
  background: #fee2e2;
  color: #b91c1c;
}

[data-theme=dark] .tag.green,
[data-theme=dark] .tag.blue,
[data-theme=dark] .tag.brand {
  background: rgba(52, 211, 153, 0.15);
  color: #6EE7B7;
}

[data-theme=dark] .tag.amber {
  background: #493917;
  color: #fde68a;
}

[data-theme=dark] .tag.red {
  background: #4c2023;
  color: #fca5a5;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.table {
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  background: var(--surface);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: var(--surface-alt);
}

.table th button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: inherit;
  cursor: pointer;
}

.table-person {
  display: flex;
  gap: 10px;
  align-items: center;
}

.table-person strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.table-person small {
  display: block;
  color: var(--muted);
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 18px;
}

/* Forms & Inputs */
.form-control, .select, .textarea {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  padding: 8px 12px;
  width: 100%;
  outline-offset: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .select:focus, .textarea:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.textarea {
  min-height: 94px;
  resize: vertical;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field {
  min-width: 0;
}

.field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.field input[aria-invalid=true] {
  border-color: var(--danger);
}

.searchbox {
  position: relative;
  min-width: 195px;
  flex: 1;
  max-width: 350px;
}

.searchbox input {
  padding-left: 36px;
}

.searchbox .ico {
  position: absolute;
  top: 10px;
  left: 11px;
  color: var(--muted);
}

/* Pagination */
.pagination {
  border-top: 1px solid var(--border);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.pagination .buttons {
  display: flex;
  gap: 6px;
}

/* Empty State */
.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  display: block;
  color: var(--text);
  margin: 10px 0 4px;
}

/* Charts & Legends */
.chart-holder {
  width: 100%;
  position: relative;
  min-height: 228px;
}

.chart-holder svg {
  width: 100%;
  height: 230px;
  overflow: visible;
}

.chart-holder svg text {
  font-family: var(--font);
  font-size: 11px;
  fill: var(--muted);
}

.legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.legend i {
  width: 8px;
  height: 8px;
  display: inline-block;
  background: var(--primary);
  border-radius: 3px;
  margin-right: 6px;
}

.legend i.second {
  background: var(--tablam-mint, var(--accent));
}

[data-theme=dark] .legend i {
  background: var(--primary);
}

[data-theme=dark] .legend i.second {
  background: var(--secondary);
}

/* Bar Charts & Visual Overrides (Guaranteed Green) */
.bar-chart {
  height: 230px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 15px 0 0;
}

div[aria-label*="Bar chart"] > div > div,
.bar-chart .bar-fill,
.bar-fill {
  background: #34D399 !important; /* TabLam Mint Green */
  border-radius: 5px 5px 0 0;
}

div[aria-label*="Bar chart"] > div:last-child > div,
.bar-chart .bar-fill.active,
.bar-fill.active {
  background: #0E7A46 !important; /* TabLam Vivid Emerald Green */
}

[data-theme=dark] div[aria-label*="Bar chart"] > div > div,
[data-theme=dark] .bar-chart .bar-fill,
[data-theme=dark] .bar-fill {
  background: #0E7A46 !important; /* TabLam Emerald Green */
}

[data-theme=dark] div[aria-label*="Bar chart"] > div:last-child > div,
[data-theme=dark] .bar-chart .bar-fill.active,
[data-theme=dark] .bar-fill.active {
  background: #34D399 !important; /* TabLam Mint Green */
}

/* Activity Feeds */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}

.activity-item .dot {
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
  margin: 6px 0 0 4px;
  flex: none;
  box-shadow: 0 0 0 5px var(--primary-soft);
}

.activity-item strong {
  font-size: 13px;
  display: block;
  color: var(--text);
}

.activity-item p {
  margin: 2px 0;
  font-size: 12px;
  color: var(--muted);
}

.activity-item time {
  font-size: 11px;
  color: var(--muted);
}

.product-thumb {
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  border-radius: 8px;
  color: var(--muted);
}

/* Dropdowns & Popovers */
.dropdown-wrap {
  position: relative;
}

.dropdown {
  position: absolute;
  z-index: 45;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-r);
  box-shadow: var(--shadow-lg);
  width: 270px;
  padding: 8px;
}

.dropdown a, .dropdown button, .dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: var(--r);
  text-align: left;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
}

.dropdown a:hover, .dropdown button:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Modals & Dialogs */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 31, 22, 0.65);
  backdrop-filter: blur(2px);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: min(100%, 570px);
  max-height: min(88vh, 800px);
  display: flex;
  flex-direction: column;
}

.modal-head, .modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 22px;
}

.modal-head {
  border-bottom: 1px solid var(--border);
}

.modal-foot {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

.modal-head h2 {
  font-size: 17px;
  margin: 0;
}

.modal-content {
  padding: 22px;
  overflow: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

/* Toast Notifications */
.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 9px;
  z-index: 120;
  max-width: 360px;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: var(--text);
}

.toast.error {
  border-left-color: var(--danger);
}

/* Notices & Alerts */
.notice {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}

.notice.info {
  border-color: rgba(14, 122, 70, 0.25);
  background: var(--primary-soft);
  color: var(--text);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}

.tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected=true] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

[data-theme=dark] .tab[aria-selected=true] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item button {
  width: 100%;
  padding: 15px 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
}

.accordion-item div {
  padding-bottom: 15px;
  color: var(--muted);
}

/* Switch & Toggles */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.switch input {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
}

/* Settings Rows */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
  border: 0;
}

.settings-row strong {
  font-size: 13px;
  display: block;
  color: var(--text);
}

.settings-row small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.demo-watermark {
  display: inline-flex;
  padding: 4px 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  border-radius: 99px;
  font-weight: 700;
}

/* Authentication Page */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}

.auth-side {
  background: var(--tablam-forest, #0B4D2D);
  color: #FFFFFF;
  padding: 8vw 6vw;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.auth-side h1 {
  font-size: 40px;
  line-height: 1.15;
  max-width: 470px;
  color: #FFFFFF;
}

.auth-side p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--bg);
}

.auth-box {
  width: min(100%, 410px);
  background: var(--surface);
  padding: 36px 32px;
  border-radius: var(--card-r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.auth-box h1 {
  font-size: 26px;
  color: var(--text);
}

.auth-box form {
  display: grid;
  gap: 16px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.kbd {
  border: 1px solid var(--border);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-alt);
}
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-3{gap:12px}.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-5{margin-top:20px}.mb-0{margin-bottom:0}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.text-right{text-align:right}.text-center{text-align:center}.w-full{width:100%}.fw-700{font-weight:700}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
/* ==========================================================================
   TabLam Brand Theme Overrides
   ========================================================================== */

/* Dark Mode Overrides */
html[data-theme=dark] .auth-side {
  background: #071F16;
  border-right: 1px solid #24543D;
}

html[data-theme=dark] .brand-icon {
  background: transparent;
}

html[data-theme=dark] .btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--button-text);
}

html[data-theme=dark] .btn.primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--button-text);
}

html[data-theme=dark] .nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
}

html[data-theme=dark] .trial-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

html[data-theme=dark] .demo-box {
  background: var(--surface-alt) !important;
  border-color: var(--border) !important;
}

html[data-theme=dark] .tag.blue {
  background: var(--primary-soft);
  color: var(--primary);
}
@media(max-width:1199px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cols-2{grid-template-columns:1fr}.main{padding:22px}}@media(max-width:767px){.sidebar{transform:translateX(-100%);width:min(290px,85vw)!important}.content-wrap,.sidebar-collapsed .content-wrap{margin-left:0}.footer,.sidebar-collapsed .footer{margin-left:0}.sidebar.mobile-open{transform:translateX(0)}.mobile-overlay.open{display:block;position:fixed;inset:0;background:#02061799;z-index:25}.sidebar-collapsed .sidebar .hide-collapsed,.sidebar-collapsed .sidebar .nav-group-label,.sidebar-collapsed .sidebar .chev{display:initial}.sidebar-collapsed .sidebar .nav-link,.sidebar-collapsed .sidebar .nav-group-btn{justify-content:flex-start}.main{padding:18px 14px 32px}.topbar{padding:0 14px}.topbar-right{gap:5px}.topbar .desktop-search{display:none}.page-head{flex-wrap:wrap}.stats-grid,.cols-half,.cols-3{grid-template-columns:1fr}.card-body{padding:16px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.pagination{flex-wrap:wrap}.auth-page{grid-template-columns:1fr}.auth-side{display:none}.auth-main{min-height:100vh}.footer{padding:14px}.nav-group-label{display:block!important}}@media(max-width:479px){.page-head h1{font-size:23px}.breadcrumb{font-size:11px}.card-head{padding:14px}.stat-value{font-size:25px}.toolbar{padding:12px}.searchbox{min-width:100%;max-width:none}.modal-content{padding:15px}.page-actions{width:100%}.page-actions .btn{flex:1}.topbar-right .avatar{display:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
