:root {
  --dash-radius: 22px;
  color-scheme: light;
}

html[data-theme='light'] {
  --dash-bg: #f4f6fb;
  --dash-surface: #ffffff;
  --dash-surface-alt: #f9fafb;
  --dash-border: rgba(15, 23, 42, 0.08);
  --dash-primary: #4f46e5;
  --dash-primary-soft: rgba(79, 70, 229, 0.16);
  --dash-accent: #22d3ee;
  --dash-danger: #f87171;
  --dash-text: #0f172a;
  --dash-muted: #4b5563;
  --dash-soft-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
  --dash-hover-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

html[data-theme='dark'] {
  color-scheme: dark;
  --dash-bg: #0f172a;
  --dash-surface: #101a2b;
  --dash-surface-alt: #15223a;
  --dash-border: rgba(148, 163, 184, 0.14);
  --dash-primary: #8b5cf6;
  --dash-primary-soft: rgba(139, 92, 246, 0.18);
  --dash-accent: #38bdf8;
  --dash-danger: #fda4af;
  --dash-text: #e2e8f0;
  --dash-muted: #94a3b8;
  --dash-soft-shadow: 0 28px 50px rgba(15, 23, 42, 0.55);
  --dash-hover-shadow: 0 36px 64px rgba(15, 23, 42, 0.6);
}

body.dashboard-body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(130% 130% at 0% 0%, rgba(79, 70, 229, 0.18) 0%, transparent 45%),
    radial-gradient(110% 110% at 100% 0%, rgba(34, 211, 238, 0.16) 0%, transparent 40%),
    var(--dash-bg);
  color: var(--dash-text);
  overflow-x: hidden;
}

.dashboard-layout {
  position: relative;
  width: 100%;
  min-height: 100vh;
  isolation: isolate;
  z-index: 1;
  background:
    radial-gradient(140% 140% at 0% 0%, color-mix(in srgb, var(--dash-primary) 16%, transparent) 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--dash-accent) 14%, transparent) 0%, transparent 48%),
    var(--dash-bg);
}

html[data-theme='dark'] .dashboard-layout {
  background:
    radial-gradient(150% 150% at -10% -10%, color-mix(in srgb, var(--dash-primary) 24%, transparent) 0%, transparent 60%),
    radial-gradient(130% 130% at 110% -20%, color-mix(in srgb, var(--dash-accent) 20%, transparent) 0%, transparent 58%),
    var(--dash-bg);
}

.dashboard-main {
  background: transparent;
  animation: dashFadeUp 0.45s ease both;
}

.dashboard-content-scroll {
  backdrop-filter: blur(4px);
}

.dashboard-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(1.4rem, 2.8vw, 2.6rem);
}

.dashboard-content > .content,
.dashboard-content > section.content {
  position: relative;
  background: var(--dash-surface);
  border-radius: var(--dash-radius);
  border: 1px solid var(--dash-border);
  box-shadow: var(--dash-soft-shadow);
  padding: clamp(1.35rem, 2.5vw, 2.2rem);
  color: var(--dash-text);
}

.dashboard-content > .content::before,
.dashboard-content > section.content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.11), rgba(34, 211, 238, 0.09));
  opacity: 0.7;
  pointer-events: none;
  border-radius: var(--dash-radius);
}

.dashboard-content .table-responsive {
  padding: clamp(1rem, 2.4vw, 2rem);
  border-radius: 24px;
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  box-shadow: var(--dash-soft-shadow);
  margin-bottom: clamp(1.4rem, 2.4vw, 2.6rem);
}

html[data-theme='dark'] .dashboard-content .table-responsive {
  background: color-mix(in srgb, var(--dash-surface) 86%, rgba(15, 23, 42, 0.82));
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: var(--dash-hover-shadow);
}

.dashboard-content .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  margin-bottom: 0;
}

.dashboard-content .table thead tr {
  background: linear-gradient(120deg, color-mix(in srgb, var(--dash-primary) 24%, transparent) 0%, color-mix(in srgb, var(--dash-accent) 18%, transparent) 100%);
  color: #fff;
}

html[data-theme='dark'] .dashboard-content .table thead tr {
  background: linear-gradient(120deg, color-mix(in srgb, var(--dash-primary) 45%, rgba(15, 23, 42, 0.6)) 0%, color-mix(in srgb, var(--dash-accent) 30%, rgba(15, 23, 42, 0.6)) 100%);
}

.dashboard-content .table thead th {
  padding: 0.95rem 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  white-space: nowrap;
}

.dashboard-content .table tbody tr {
  background: var(--dash-surface-alt);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.dashboard-content .table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--dash-surface-alt) 94%, rgba(255, 255, 255, 0.06));
}

.dashboard-content .table tbody tr + tr {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-content .table tbody tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
  background: color-mix(in srgb, var(--dash-surface-alt) 82%, rgba(79, 70, 229, 0.08));
}

html[data-theme='dark'] .dashboard-content .table tbody tr {
  background: color-mix(in srgb, var(--dash-surface) 88%, rgba(15, 23, 42, 0.7));
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme='dark'] .dashboard-content .table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--dash-surface) 92%, rgba(15, 23, 42, 0.65));
}

html[data-theme='dark'] .dashboard-content .table tbody tr:hover {
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.65);
  background: color-mix(in srgb, var(--dash-primary) 22%, rgba(15, 23, 42, 0.75));
}

.dashboard-content .table tbody td {
  padding: 0.95rem 1.2rem;
  border: none;
  color: var(--dash-text);
  vertical-align: middle;
}

.dashboard-content .table tbody td:first-child {
  font-weight: 600;
}

.dashboard-content .table tbody td:last-child {
  text-align: right;
  white-space: nowrap;
}

.dashboard-content .table tbody td .btn,
.dashboard-content .table tbody td .label {
  font-size: 0.82rem;
  border-radius: 9999px;
}

.dashboard-content .table.table-bordered {
  border: none;
}

.dashboard-content .table.table-striped > tbody > tr:nth-of-type(odd) {
  --bs-table-accent-bg: transparent;
}

.dashboard-content .dataTables_wrapper .row:first-child {
  margin-bottom: 1.2rem;
}

.dashboard-content .dataTables_wrapper .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--dash-muted);
}

.dashboard-content .dataTables_wrapper .dataTables_filter input[type="search"] {
  border-radius: 9999px;
  border: 1px solid var(--dash-border);
  background: var(--dash-surface);
  color: var(--dash-text);
  padding: 0.45rem 1.1rem;
  min-width: 220px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-content .dataTables_wrapper .dataTables_filter input[type="search"]:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--dash-primary) 55%, var(--dash-border) 45%);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

html[data-theme='dark'] .dashboard-content .dataTables_wrapper .dataTables_filter input[type="search"] {
  background: color-mix(in srgb, var(--dash-surface) 88%, rgba(15, 23, 42, 0.78));
  border-color: rgba(148, 163, 184, 0.28);
}

.dashboard-content .dataTables_wrapper .dataTables_length label {
  font-weight: 600;
  color: var(--dash-muted);
}

.dashboard-content .dataTables_wrapper .dataTables_length select {
  border-radius: 9999px;
  border: 1px solid var(--dash-border);
  background: var(--dash-surface);
  color: var(--dash-text);
  padding: 0.3rem 1.1rem 0.3rem 0.8rem;
}

html[data-theme='dark'] .dashboard-content .dataTables_wrapper .dataTables_length select {
  background: color-mix(in srgb, var(--dash-surface) 88%, rgba(15, 23, 42, 0.78));
  border-color: rgba(148, 163, 184, 0.28);
}

.dashboard-content .dataTables_wrapper .dataTables_paginate {
  margin-top: 1.4rem;
}

.dashboard-content .dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 0.35rem 0.8rem;
  margin: 0 0.2rem;
  color: var(--dash-muted) !important;
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dashboard-content .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dashboard-content .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: color-mix(in srgb, var(--dash-primary) 18%, transparent);
  border-color: color-mix(in srgb, var(--dash-primary) 32%, transparent);
  color: var(--dash-text) !important;
}

.dashboard-content .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.45;
}

@media (max-width: 768px) {
  .dashboard-content .table-responsive {
    padding: 1rem;
  }

  .dashboard-content .table thead th,
  .dashboard-content .table tbody td {
    padding: 0.75rem 0.85rem;
  }

  .dashboard-content .dataTables_wrapper .dataTables_filter input[type="search"] {
    min-width: 0;
    width: 100%;
  }
}
.dashboard-content .content-header {
  position: relative;
  border-bottom: 1px solid rgba(100, 116, 139, 0.16);
  margin: -0.6rem -0.6rem 1.6rem;
  padding: 0.85rem 0.6rem 1.6rem;
  z-index: 1;
}

.dashboard-content .content-header h1,
.dashboard-content .content-header h2,
.dashboard-content .content-header .page-title {
  color: var(--dash-text);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dashboard-layout table,
.dashboard-layout table th,
.dashboard-layout table td {
  color: #0f172a;
}

html[data-theme='dark'] .dashboard-layout table,
html[data-theme='dark'] .dashboard-layout table th,
html[data-theme='dark'] .dashboard-layout table td {
  color: var(--dash-text);
}

.dashboard-content .small-box,
.dashboard-content .info-box,
.dashboard-content .box,
.dashboard-content .card,
.dashboard-content .panel {
  border-radius: 20px;
  border: 1px solid var(--dash-border);
  background: var(--dash-surface-alt);
  box-shadow: var(--dash-soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: var(--dash-text);
}

.dashboard-content .small-box:hover,
.dashboard-content .info-box:hover,
.dashboard-content .box:hover,
.dashboard-content .card:hover,
.dashboard-content .panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--dash-hover-shadow);
  border-color: rgba(79, 70, 229, 0.26);
}

.dashboard-content .small-box .inner,
.dashboard-content .info-box .info-box-content,
.dashboard-content .box .box-body {
  color: var(--dash-text);
}

.dashboard-content .small-box .icon {
  color: rgba(79, 70, 229, 0.35);
  transform: scale(0.92);
  transition: transform 0.3s ease, color 0.3s ease;
}

.dashboard-content .small-box:hover .icon {
  transform: scale(1.02);
  color: rgba(79, 70, 229, 0.55);
}

.dashboard-content .btn,
.dashboard-content button {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.58rem 1.3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-content .btn-primary,
.dashboard-content .btn.btn-primary {
  background: linear-gradient(135deg, var(--dash-primary), var(--dash-accent));
  border-color: transparent;
  color: #ffffff;
}

.dashboard-content .btn:hover,
.dashboard-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.24);
}

.dashboard-sidebar {
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.12);
  color: var(--dash-text);
}

.dashboard-sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem 1.25rem 1.6rem;
  gap: 1.35rem;
}

.dashboard-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.2);
  text-decoration: none;
  color: var(--dash-text);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-sidebar__brand:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.32);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

 .dashboard-sidebar__logo,
.dashboard-sidebar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(34, 211, 238, 0.78));
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dashboard-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-sidebar__brand-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dash-text);
}

.dashboard-sidebar__brand-sub {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--dash-muted);
}

.dashboard-sidebar__status {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
}

.dashboard-sidebar__profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.dashboard-sidebar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(34, 211, 238, 0.7));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dashboard-sidebar__profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-sidebar__profile-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dash-text);
}

.dashboard-sidebar__profile-role {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--dash-muted);
}

.dashboard-sidebar__menu {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.dashboard-sidebar__menu #side-bar {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dashboard-sidebar__menu #side-bar::-webkit-scrollbar { width: 6px; }
.dashboard-sidebar__menu #side-bar::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.3);
  border-radius: 999px;
}

.dashboard-sidebar__menu a.tw-flex {
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid transparent;
  color: var(--dash-muted) !important;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dashboard-sidebar__menu a.tw-flex:hover,
.dashboard-sidebar__menu a.tw-flex:focus {
  background: rgba(79, 70, 229, 0.2) !important;
  color: var(--dash-text) !important;
  border-color: rgba(79, 70, 229, 0.35);
  transform: translateX(4px);
}

.dashboard-sidebar__menu .tw-bg-gray-200,
.dashboard-sidebar__menu .tw-text-primary-700 {
  background: rgba(79, 70, 229, 0.22) !important;
  color: var(--dash-text) !important;
  border-color: rgba(79, 70, 229, 0.4);
}

.dashboard-sidebar__menu .chiled {
  margin: 0.45rem 0 0 0.35rem;
  padding-left: 1.2rem;
  border-left: 1px dashed rgba(148, 163, 184, 0.35);
}

.dashboard-sidebar__menu .chiled a {
  color: var(--dash-muted) !important;
  padding: 0.35rem 0;
}

.dashboard-sidebar__menu .chiled a:hover {
  color: var(--dash-text) !important;
}

.dashboard-sidebar__footer {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.18);
  color: var(--dash-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.scrolltop {
  right: 2rem;
  bottom: 2rem;
  background: rgba(79, 70, 229, 0.2);
  border-radius: 9999px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.scrolltop .scroll.icon { color: var(--dash-primary); }


html[data-theme='dark'] body.dashboard-body {
  background:
    radial-gradient(130% 130% at 0% 0%, rgba(139, 92, 246, 0.16) 0%, transparent 45%),
    radial-gradient(110% 110% at 100% 0%, rgba(14, 165, 233, 0.16) 0%, transparent 40%),
    var(--dash-bg);
  color: var(--dash-text);
}

html[data-theme='dark'] .dashboard-content > .content,
html[data-theme='dark'] .dashboard-content > section.content {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: var(--dash-soft-shadow);
}

html[data-theme='dark'] .dashboard-content > .content::before,
html[data-theme='dark'] .dashboard-content > section.content::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(56, 189, 248, 0.09));
  opacity: 0.35;
}

html[data-theme='dark'] .dashboard-content .content-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-theme='dark'] .dashboard-sidebar__inner {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.78));
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-theme='dark'] .dashboard-sidebar__brand {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
}

html[data-theme='dark'] .dashboard-sidebar__brand:hover {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.65);
}

html[data-theme='dark'] .dashboard-sidebar__menu a.tw-flex {
  background: rgba(129, 140, 248, 0.12) !important;
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--dash-muted) !important;
}

html[data-theme='dark'] .dashboard-sidebar__menu a.tw-flex:hover,
html[data-theme='dark'] .dashboard-sidebar__menu a.tw-flex:focus {
  background: rgba(129, 140, 248, 0.26) !important;
  color: var(--dash-text) !important;
  border-color: rgba(129, 140, 248, 0.4);
}

html[data-theme='dark'] .dashboard-sidebar__menu .tw-bg-gray-200,
html[data-theme='dark'] .dashboard-sidebar__menu .tw-text-primary-700 {
  background: rgba(129, 140, 248, 0.3) !important;
  color: var(--dash-text) !important;
  border-color: rgba(129, 140, 248, 0.45);
}

html[data-theme='dark'] .dashboard-sidebar__menu .chiled {
  border-left: 1px dashed rgba(148, 163, 184, 0.35);
}

html[data-theme='dark'] .dashboard-sidebar__footer {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--dash-muted);
}

.dashboard-theme-toggle {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.dashboard-theme-toggle:hover,
.dashboard-theme-toggle:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
  outline: none;
}

html[data-theme='light'] .dashboard-theme-toggle {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

html[data-theme='light'] .dashboard-theme-toggle:hover,
html[data-theme='light'] .dashboard-theme-toggle:focus {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.35);
}

html[data-theme='dark'] .dashboard-theme-toggle {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.55);
}

html[data-theme='dark'] .dashboard-theme-toggle:hover,
html[data-theme='dark'] .dashboard-theme-toggle:focus {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
}

html[data-theme='dark'] .dashboard-header ul[role="menu"] {
  background: var(--dash-surface);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.5);
  color: var(--dash-text);
}

html[data-theme='dark'] .dashboard-header ul[role="menu"] a {
  color: var(--dash-muted) !important;
}

html[data-theme='dark'] .dashboard-header ul[role="menu"] a:hover {
  background: rgba(129, 140, 248, 0.18) !important;
  color: var(--dash-text) !important;
}

html[data-theme='dark'] .dashboard-header ul[role="menu"] .tw-text-gray-900 {
  color: var(--dash-text) !important;
}

html[data-theme='dark'] .dashboard-header ul[role="menu"] .tw-text-gray-600 {
  color: var(--dash-muted) !important;
}

html[data-theme='dark'] .dashboard-main .tw-bg-white,
html[data-theme='dark'] .dashboard-main .tw-bg-gray-50,
html[data-theme='dark'] .dashboard-main .tw-bg-gray-100 {
  background-color: rgba(15, 23, 42, 0.72) !important;
  color: var(--dash-text);
}

html[data-theme='dark'] .dashboard-main .tw-text-gray-900,
html[data-theme='dark'] .dashboard-main .tw-text-slate-900 {
  color: var(--dash-text) !important;
}

html[data-theme='dark'] .dashboard-main .tw-text-gray-700,
html[data-theme='dark'] .dashboard-main .tw-text-gray-600,
html[data-theme='dark'] .dashboard-main .tw-text-gray-500 {
  color: var(--dash-muted) !important;
}

html[data-theme='dark'] .dashboard-main .tw-border-gray-200,
html[data-theme='dark'] .dashboard-main .tw-border-gray-300 {
  border-color: rgba(148, 163, 184, 0.25) !important;
}

html[data-theme='dark'] .scrolltop {
  background: rgba(129, 140, 248, 0.2);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.5);
}

html[data-theme='dark'] .scrolltop .scroll.icon {
  color: var(--dash-text);
}
@keyframes dashFadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes dashFadeDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1023px) {
  .dashboard-content {
    padding: 1.2rem 1rem 1.6rem;
  }
  .dashboard-content > .content,
  .dashboard-content > section.content {
    padding: 1rem 1.1rem 1.35rem;
    border-radius: 18px;
  }
}












.dashboard-content .table tfoot tr {
  background: color-mix(in srgb, var(--dash-surface-alt) 85%, rgba(79, 70, 229, 0.12));
  color: var(--dash-text);
  border-top: 1px solid color-mix(in srgb, var(--dash-border) 80%, rgba(79, 70, 229, 0.18));
}

.dashboard-content .table tfoot td,
.dashboard-content .table tfoot th {
  border: none;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--dash-text) 85%, var(--dash-muted) 15%);
}

.dashboard-content .table tfoot td:first-child,
.dashboard-content .table tfoot th:first-child {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dash-text);
}

html[data-theme='dark'] .dashboard-content .table tfoot tr {
  background: color-mix(in srgb, var(--dash-primary) 35%, rgba(15, 23, 42, 0.8));
  color: #f8fafc;
  border-top: 1px solid color-mix(in srgb, var(--dash-primary) 45%, rgba(15, 23, 42, 0.55));
}

html[data-theme='dark'] .dashboard-content .table tfoot td,
html[data-theme='dark'] .dashboard-content .table tfoot th {
  color: #e2e8f0;
}

html[data-theme='dark'] .dashboard-content .table tfoot td:first-child,
html[data-theme='dark'] .dashboard-content .table tfoot th:first-child {
  color: #f8fafc;
}

.dashboard-content .dataTables_wrapper .dataTables_info {
  color: color-mix(in srgb, var(--dash-muted) 85%, var(--dash-text) 15%);
  font-weight: 600;
  margin-top: 1rem;
}

html[data-theme='dark'] .dashboard-content .dataTables_wrapper .dataTables_info {
  color: color-mix(in srgb, var(--dash-text) 92%, rgba(226, 232, 240, 0.9));
}
.dashboard-content .table tfoot tr.bg-gray,
.dashboard-content .table tfoot tr.bg-gray td,
.dashboard-content .table tfoot tr.bg-gray th {
  background: transparent !important;
  color: var(--dash-text);
}

html[data-theme='dark'] .dashboard-content .table tfoot tr.bg-gray,
html[data-theme='dark'] .dashboard-content .table tfoot tr.bg-gray td,
html[data-theme='dark'] .dashboard-content .table tfoot tr.bg-gray th {
  background: transparent !important;
  color: #f8fafc;
}
.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--dash-primary) 28%, transparent) 0%, color-mix(in srgb, var(--dash-accent) 18%, transparent) 50%, rgba(255, 255, 255, 0.94) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--dash-primary) 25%, var(--dash-border) 75%);
  box-shadow: 0 22px 48px rgba(79, 70, 229, 0.22);
  color: #f8fafc;
  backdrop-filter: blur(12px);
}

.dashboard-header a,
.dashboard-header button,
.dashboard-header summary,
.dashboard-header svg {
  color: inherit;
}

html[data-theme='dark'] .dashboard-header {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--dash-primary) 35%, rgba(15, 23, 42, 0.85)) 0%, color-mix(in srgb, var(--dash-accent) 25%, rgba(15, 23, 42, 0.85)) 55%, rgba(15, 23, 42, 0.92) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--dash-primary) 40%, rgba(15, 23, 42, 0.65));
  box-shadow: 0 26px 54px rgba(2, 6, 23, 0.7);
  color: #e2e8f0;
}

.dashboard-header__control {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.dashboard-header__control:hover,
.dashboard-header__control:focus {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
}

html[data-theme='dark'] .dashboard-header__control {
  background: rgba(30, 41, 59, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: #e2e8f0;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.65);
}

html[data-theme='dark'] .dashboard-header__control:hover,
html[data-theme='dark'] .dashboard-header__control:focus {
  background: rgba(51, 65, 85, 0.88);
  border-color: rgba(148, 163, 184, 0.45);
}

.dashboard-header__chip {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #f8fafc;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

.dashboard-header__chip:hover,
.dashboard-header__chip:focus {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.42);
}

html[data-theme='dark'] .dashboard-header__chip {
  background: rgba(45, 55, 72, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.38);
  color: #e2e8f0;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.68);
}
html[data-theme='dark'] .dashboard-header__chip:hover,
html[data-theme='dark'] .dashboard-header__chip:focus {
  background: rgba(71, 85, 105, 0.92);
  border-color: rgba(148, 163, 184, 0.5);
}

.dashboard-header__menu {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
  color: var(--dash-text);
  overflow: hidden;
}

html[data-theme='dark'] .dashboard-header__menu {
  background: color-mix(in srgb, var(--dash-surface) 90%, rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.75);
  color: #e2e8f0;
}

.dashboard-header__menu-item {
  color: color-mix(in srgb, var(--dash-text) 88%, var(--dash-muted) 12%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dashboard-header__menu-item:hover,
.dashboard-header__menu-item:focus {
  background: color-mix(in srgb, var(--dash-primary) 15%, transparent);
  color: var(--dash-text);
  transform: translateX(2px);
}

html[data-theme='dark'] .dashboard-header__menu-item {
  color: color-mix(in srgb, var(--dash-text) 90%, rgba(226, 232, 240, 0.65));
}

html[data-theme='dark'] .dashboard-header__menu-item:hover,
html[data-theme='dark'] .dashboard-header__menu-item:focus {
  background: color-mix(in srgb, var(--dash-primary) 28%, transparent);
  color: #f8fafc;
}
