:root {
  --admin-bg: #f5f7fb;
  --admin-bg-accent: #ffffff;
  --admin-surface: #ffffff;
  --admin-surface-strong: #ffffff;
  --admin-surface-strong-2: #ffffff;
  --admin-text: #111827;
  --admin-text-muted: #6b7280;
  --admin-text-soft: #94a3b8;
  --admin-border: rgba(15, 23, 42, 0.08);
  --admin-border-strong: rgba(15, 23, 42, 0.08);
  --admin-brand-950: #010332;
  --admin-brand-900: #07105f;
  --admin-brand-800: #111e96;
  --admin-brand-700: #1d31d3;
  --admin-brand-600: #2742fd;
  --admin-brand-500: #4d63ff;
  --admin-brand-400: #7081ff;
  --admin-brand-300: #9aa6ff;
  --admin-brand-200: #c4cbff;
  --admin-brand-100: #e0e5ff;
  --admin-brand-50: #f1f3ff;
  --admin-primary: var(--admin-brand-950);
  --admin-primary-action: var(--admin-brand-600);
  --admin-accent: var(--admin-brand-950);
  --admin-accent-strong: var(--admin-brand-600);
  --admin-accent-soft: var(--admin-brand-50);
  --admin-link: var(--admin-brand-600);
  --admin-accent-rgb: 1, 3, 50;
  --admin-focus-rgb: 39, 66, 253;
  --admin-danger: #dc2626;
  --admin-success: #059669;
  --admin-warning: #d97706;
  --admin-shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.06);
  --admin-shadow-md: 0 10px 24px rgba(15, 23, 42, 0.06);
  --admin-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.04);
  --admin-sidebar-width: 15.75rem;
  --admin-sidebar-width-collapsed: 4.9rem;
  --admin-card-icon: #E0E8F0;
}

html {
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --admin-bg: #070b1a;
  --admin-bg-accent: #0b1224;
  --admin-surface: #0f172a;
  --admin-surface-strong: transparent;
  --admin-surface-strong-2: #16213d;
  --admin-text: #e7eeff;
  --admin-text-muted: #98a7c8;
  --admin-text-soft: #7383a4;
  --admin-border: rgba(148, 163, 184, 0.16);
  --admin-border-strong: rgba(148, 163, 184, 0.22);
  --admin-shadow-lg: 0 24px 48px rgba(2, 6, 23, 0.46);
  --admin-shadow-md: 0 18px 38px rgba(2, 6, 23, 0.38);
  --admin-shadow-sm: 0 10px 24px rgba(2, 6, 23, 0.3);
  --admin-card-icon: rgba(77, 99, 255, 0.14);
}

body {
  color: var(--admin-text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--admin-bg);
}

a {
  text-decoration: none;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
[type="reset"]:not(:disabled),
a[href],
[role="button"]:not([aria-disabled="true"]),
label[for],
.btn:not(:disabled):not(.disabled),
.btn-action:not(:disabled):not(.disabled),
.admin-icon-button:not(:disabled):not(.disabled),
[data-bs-toggle]:not(:disabled):not(.disabled),
[data-hs-overlay]:not(:disabled):not(.disabled) {
  cursor: pointer;
}

.lucide,
svg.lucide,
i[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  color: inherit;
}

.admin-switch-control {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem;
  user-select: none;
}

.admin-switch-chip {
  display: inline-flex;
  min-height: 1.625rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-switch-chip--off {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--admin-text-muted);
}

.admin-switch-chip--on {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.16);
  color: var(--admin-success);
}

.admin-switch-visual {
  position: relative;
  display: inline-flex;
  width: 3rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-switch-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.admin-switch-thumb {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-switch-visual.is-active {
  background: rgba(var(--admin-focus-rgb), 0.7);
  box-shadow: inset 0 0 0 1px rgba(var(--admin-focus-rgb), 0.26);
}

.admin-switch-visual.is-active .admin-switch-thumb {
  transform: translateX(1.25rem);
}

[data-admin-switch]:focus + .admin-switch-control .admin-switch-visual {
  box-shadow: inset 0 0 0 1px rgba(var(--admin-focus-rgb), 0.35), 0 0 0 4px rgba(var(--admin-focus-rgb), 0.12);
}

.lucide,
svg.lucide {
  stroke-width: 2.05;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

i[data-lucide] {
  width: 1em;
  height: 1em;
  line-height: 1;
}

.apexcharts-tooltip.apexcharts-theme-light {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 0.9rem !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
  padding: 0.55rem 0.7rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-series-group.apexcharts-active {
  padding: 0.45rem 0.7rem !important;
}

.apexcharts-legend-text {
  color: #64748b !important;
}

.admin-user-page .admin-user-surface,
.admin-user-page .admin-user-soft,
.admin-user-page .admin-user-pill,
.admin-user-page .admin-user-input,
.admin-user-page .admin-user-input-group,
.admin-user-page .admin-user-icon-button {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .admin-user-page .admin-user-surface {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .admin-user-page .admin-user-soft,
html[data-theme="dark"] .admin-user-page .admin-user-pill {
  background: rgba(22, 33, 61, 0.85);
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .admin-user-page .admin-user-input,
html[data-theme="dark"] .admin-user-page .admin-user-input-group {
  background: #020617;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .admin-user-page .admin-user-input::placeholder {
  color: #64748b;
}

html[data-theme="dark"] .admin-user-page .admin-user-icon-button {
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .admin-user-page .admin-user-icon-button:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #e0e5ff;
}

html[data-theme="dark"] .admin-user-page .text-slate-950,
html[data-theme="dark"] .admin-user-page .text-slate-900 {
  color: #f8fafc;
}

html[data-theme="dark"] .admin-user-page .text-slate-600,
html[data-theme="dark"] .admin-user-page .text-slate-500,
html[data-theme="dark"] .admin-user-page .text-slate-400 {
  color: #94a3b8;
}

.container-fluid {
  width: 100%;
  margin-inline: auto;
}

.row {
  --admin-gutter-x: 1.5rem;
  --admin-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--admin-gutter-y) * -1);
  margin-right: calc(var(--admin-gutter-x) / -2);
  margin-left: calc(var(--admin-gutter-x) / -2);
}

.row > * {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-right: calc(var(--admin-gutter-x) / 2);
  padding-left: calc(var(--admin-gutter-x) / 2);
  margin-top: var(--admin-gutter-y);
}

.col {
  flex: 1 0 0%;
}

.col-2 {
  width: 16.666667%;
}

.col-4 {
  width: 33.333333%;
}

.col-6 {
  width: 50%;
}

.col-7 {
  width: 58.333333%;
}

.col-8 {
  width: 66.666667%;
}

.col-12 {
  width: 100%;
}

.g-3 {
  --admin-gutter-x: 1rem;
  --admin-gutter-y: 1rem;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.end-0 {
  right: 0 !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.rounded-circle {
  border-radius: 999px !important;
}

.shadow-sm,
.shadow {
  box-shadow: var(--admin-shadow-sm) !important;
}

.h-100 {
  height: 100% !important;
}

.w-100 {
  width: 100% !important;
}

.w-10 {
  width: 10% !important;
}

.text-center {
  text-align: center !important;
}

.text-end {
  text-align: right !important;
}

.text-white {
  color: #ffffff !important;
}

.text-muted,
.text-secondary {
  color: var(--admin-text-muted) !important;
}

.text-dark {
  color: var(--admin-text) !important;
}

.text-danger {
  color: var(--admin-danger) !important;
}

.text-info {
  color: #06b6d4 !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.opacity-7 {
  opacity: 0.7 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.mx-2 {
  margin-inline: 0.5rem !important;
}

.mx-3 {
  margin-inline: 1rem !important;
}

.ms-1 {
  margin-left: 0.25rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.p-1 {
  padding: 0.25rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.px-0 {
  padding-inline: 0 !important;
}

.px-3 {
  padding-inline: 1rem !important;
}

.px-4 {
  padding-inline: 1.5rem !important;
}

.px-5 {
  padding-inline: 2rem !important;
}

.py-1 {
  padding-block: 0.25rem !important;
}

.py-4 {
  padding-block: 1.5rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-fill > .nav-item,
.nav-fill > li {
  flex: 1 1 0;
}

.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active {
  display: block;
}

.fade {
  transition: opacity 0.18s ease;
}

.tab-pane.fade {
  opacity: 0;
}

.tab-pane.fade.show {
  opacity: 1;
}

.collapse:not(.show) {
  display: none;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.accordion-item {
  border: 1px solid var(--admin-border);
  border-radius: 1rem;
  background: #ffffff;
}

.accordion-header {
  margin: 0;
}

.accordion-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--admin-text);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: left;
}

.accordion-button.collapsed {
  color: var(--admin-text);
}

.accordion-body {
  padding: 0 1.1rem 1.1rem;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  color: inherit;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
}

body.admin-shell {
  min-height: 100vh;
  background: var(--admin-bg);
}

body.admin-shell .text-xs {
  font-size: 0.74rem !important;
}

body.admin-shell .text-xxs {
  font-size: 0.64rem !important;
  letter-spacing: 0.08em;
}

body.admin-shell .text-sm {
  font-size: 0.84rem !important;
}

body.admin-shell .font-weight-bold {
  font-weight: 700 !important;
}

body.admin-shell .font-weight-bolder {
  font-weight: 800 !important;
}

body.admin-shell .text-bold {
  font-weight: 700 !important;
}

body.admin-shell .opacity-6 {
  opacity: 0.6 !important;
}

body.admin-shell .opacity-7 {
  opacity: 0.7 !important;
}

body.admin-shell .max-height-vh-100 {
  min-height: 100vh;
}

body.admin-shell .border-radius-lg {
  border-radius: 1.15rem !important;
}

body.admin-shell .border-radius-md {
  border-radius: 0.8rem !important;
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1010;
}

body.admin-shell .sidenav {
  position: fixed;
  top: 1rem;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  width: min(var(--admin-sidebar-width), calc(100vw - 2rem));
  margin: 0 !important;
  padding: 0.375rem;
  border: 1px solid var(--admin-border) !important;
  border-radius: 1rem !important;
  background: #ffffff;
  box-shadow: var(--admin-shadow-lg);
  overflow: hidden;
  z-index: 1020;
  transition: transform 0.28s ease;
}

body.admin-shell.sidebar-collapsed .sidenav {
  width: var(--admin-sidebar-width-collapsed);
  padding: 0.7rem;
}

body.admin-shell .sidenav-header {
  flex-shrink: 0;
  margin-bottom: 1rem;
}

body.admin-shell.sidebar-collapsed .sidenav-header {
  margin-bottom: 0.7rem;
}

.admin-sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem;
  border-radius: 0.625rem;
  background-color: var(--admin-brand-950);
}

body.admin-shell .sidenav-header .navbar-brand,
body.admin-shell .admin-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.5rem 0.5rem;
}

body.admin-shell.sidebar-collapsed .sidenav-header .navbar-brand,
body.admin-shell.sidebar-collapsed .admin-sidebar-brand {
  justify-content: center;
  gap: 0;
  padding: 0.25rem 0 0.6rem;
}

body.admin-shell .navbar-brand-img,
body.admin-shell .admin-sidebar-logo {
  display: block;
  max-height: 3.15rem !important;
  max-width: 100%;
  width: auto;
  filter: none;
  object-fit: contain;
}

.admin-brand-mark {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  max-width: 100%;
  object-fit: contain;
}

.admin-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.admin-shell.sidebar-collapsed .admin-brand-copy {
  display: none;
}

body.admin-shell.sidebar-collapsed .navbar-brand-img {
  display: none;
}

body.admin-shell.sidebar-collapsed .admin-brand-mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}

.admin-brand-title {
  margin: 0;
  color: var(--admin-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-brand-subtitle {
  margin: 0;
  color: var(--admin-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-sidebar-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.admin-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: none;
}

.admin-sidebar-close-mobile {
  display: none;
}

body.admin-shell .horizontal.dark {
  margin: 0.2rem 0 0.7rem;
  border: 0;
  border-top: 1px solid var(--admin-border);
  opacity: 1;
}

body.admin-shell #sidenav-collapse-main,
body.admin-shell .admin-sidebar-scroll {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  overflow-y: auto;
}

body.admin-shell #sidenav-collapse-main::-webkit-scrollbar,
body.admin-shell .admin-sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

body.admin-shell #sidenav-collapse-main::-webkit-scrollbar-thumb,
body.admin-shell .admin-sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.24);
  border-radius: 999px;
}

body.admin-shell .navbar-nav,
body.admin-shell .admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.18rem;
}

body.admin-shell .admin-sidebar-nav > li,
body.admin-shell .navbar-nav > li {
  display: block;
  width: 100%;
  list-style: none;
}

body.admin-shell .nav-link,
body.admin-shell .admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.375rem;
  border-radius: 0.9rem;
  color: var(--admin-text-muted);
  text-align: left;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

body.admin-shell.sidebar-collapsed .nav-link {
  justify-content: center;
  gap: 0;
  padding-inline: 0.5rem;
}

body.admin-shell .nav-link:hover {
  color: var(--admin-text);
  background: #f8fafc;
}

body.admin-shell .nav-link.active {
  color: var(--admin-accent-strong);
  background: var(--admin-accent-soft);
  box-shadow: none;
}

body.admin-shell .nav-link .icon,
body.admin-shell .nav-link .icon-shape,
body.admin-shell .admin-sidebar-icon,
.sidebar-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  color: inherit !important;
  flex-shrink: 0;
}

body.admin-shell.sidebar-collapsed .nav-link .icon,
body.admin-shell.sidebar-collapsed .nav-link .icon-shape,
body.admin-shell.sidebar-collapsed .admin-sidebar-icon,
body.admin-shell.sidebar-collapsed .sidebar-section-icon {
  margin-inline: auto !important;
}

body.admin-shell .nav-link .icon i,
body.admin-shell .nav-link .icon-shape i,
.sidebar-section-icon i,
body.admin-shell .nav-link .icon .lucide,
body.admin-shell .nav-link .icon-shape .lucide,
.sidebar-section-icon .lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 1;
  font-size: 1rem;
}

body.admin-shell .nav-link.active .icon,
body.admin-shell .nav-link.active .icon-shape {
  background: transparent !important;
  border: none !important;
  color: var(--admin-accent) !important;
}

body.admin-shell .nav-link i,
body.admin-shell .nav-link i[style] {
  color: inherit !important;
}

body.admin-shell .nav-link-text {
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

body.admin-shell.sidebar-collapsed .nav-link-text {
  display: none;
}

.sidebar-section {
  width: 100%;
  padding-top: 0.25rem;
}

.sidebar-section-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.375rem;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: var(--admin-text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

body.admin-shell.sidebar-collapsed .sidebar-section-trigger {
  justify-content: center;
  padding-inline: 0.5rem;
}

.sidebar-section-trigger:hover {
  background: #f8fafc;
  color: var(--admin-text);
}

.sidebar-section.is-open .sidebar-section-trigger {
  background: var(--admin-accent-soft);
  color: var(--admin-accent-strong);
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

body.admin-shell.sidebar-collapsed .sidebar-section-title {
  gap: 0;
}

.sidebar-section-icon {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.375rem !important;
}

body.admin-shell .sidebar-section-icon .lucide {
  width: 1.1rem;
  height: 1.1rem;
}

body.admin-shell.sidebar-collapsed .sidebar-section-icon {
  margin-inline: auto !important;
}

body.admin-shell.sidebar-collapsed .sidebar-section-icon .lucide {
  width: 1.15rem;
  height: 1.15rem;
}

.sidebar-section-toggle-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--admin-text-soft);
  transition: transform 0.2s ease;
}

body.admin-shell.sidebar-collapsed .sidebar-section-toggle-icon {
  display: none;
}

.sidebar-section.is-open .sidebar-section-toggle-icon {
  transform: rotate(180deg);
}

.sidebar-section.is-open .sidebar-section-icon {
    background-color: transparent !important;
    border: none !important;
}

.sidebar-submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.sidebar-section.is-open .sidebar-submenu {
  grid-template-rows: 1fr;
}

body.admin-shell.sidebar-collapsed .sidebar-submenu {
  display: none;
}

.sidebar-submenu-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.28rem 0 0.1rem;
}

.sidebar-submenu-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.375rem 0.625rem 0.375rem 2.25rem;
  border-radius: 0.375rem;
  color: var(--admin-text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-submenu-link::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 50%;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: #cbd5e1;
  transform: translateY(-50%);
}

.sidebar-submenu-link:hover {
  background: #f8fafc;
  color: var(--admin-text);
}

.sidebar-submenu-link.active {
  background: var(--admin-accent-soft);
  color: var(--admin-accent-strong);
  font-weight: 700;
}

.sidebar-submenu-link.active::before {
  background: var(--admin-brand-500);
}

.sidebar-logout {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--admin-border);
}

body.admin-shell .main-content {
  min-height: 100vh;
  padding: 1rem;
  margin-left: calc(var(--admin-sidebar-width) + 1rem);
}

body.admin-shell.sidebar-collapsed .main-content {
  margin-left: calc(var(--admin-sidebar-width-collapsed) + 1rem);
}

.admin-topbar {
  position: sticky;
  top: 1rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--admin-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--admin-shadow-sm);
}

.admin-topbar-lead {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.admin-topbar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid var(--admin-border);
  color: #ffffff;
  box-shadow: none;
  color: var(--admin-text);
}

.admin-topbar-toggle i,
.admin-sidebar-close i,
.admin-topbar-toggle .lucide,
.admin-sidebar-close .lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  line-height: 1;
  font-size: 0.95rem;
  pointer-events: none;
}

.sidebar-collapse-icon {
  transition: transform 0.22s ease;
}

body.admin-shell.sidebar-collapsed .sidebar-collapse-icon {
  transform: rotate(180deg);
}

body.admin-shell .dropdown-toggle .lucide,
body.admin-shell .btn .lucide,
body.admin-shell .accordion-chevron.lucide {
  width: 1rem;
  height: 1rem;
}

.admin-collapse-toggle {
  flex-shrink: 0;
}

.admin-topbar-toggle-mobile {
  display: none;
}

.admin-topbar-toggle-desktop {
  display: inline-flex;
}

.admin-topbar-toggle:hover {
  background: #f8fafc;
}

.admin-theme-toggle[aria-pressed="true"] {
  background: var(--admin-accent-soft);
  color: var(--admin-accent-strong);
  border-color: rgba(var(--admin-focus-rgb), 0.18);
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.45rem;
  padding: 0;
  list-style: none;
}

.admin-breadcrumb .breadcrumb-item {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--admin-text-soft);
}

.admin-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 0.65rem;
  color: rgba(100, 116, 139, 0.55);
}

.admin-breadcrumb .breadcrumb-item a {
  color: inherit;
}

.admin-breadcrumb .breadcrumb-item.active {
  color: var(--admin-text);
}

.admin-topbar-title {
  margin: 0;
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--admin-text);
}

.admin-topbar-subtitle {
  display: none;
}

.admin-topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.admin-theme-toggle {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

.admin-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--admin-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-meta-chip i {
  color: var(--admin-accent);
}

body.admin-shell .container-fluid {
  padding: 0 0.35rem 1rem;
}

body.admin-shell .card {
  border: 1px solid var(--admin-border) !important;
  border-radius: 1.1rem !important;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-sm);
  overflow: hidden;
}

body.admin-shell .card-header {
  padding: 1.15rem 1.25rem 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

body.admin-shell .card-header h6,
body.admin-shell .card-header h5 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--admin-text);
}

body.admin-shell .card-header p,
body.admin-shell .card-header small {
  margin-top: 0.4rem;
  color: var(--admin-text-muted);
}

body.admin-shell .card-body {
  padding: 1.25rem !important;
}

body.admin-shell .card-footer {
  padding: 0 1.25rem 1.25rem !important;
  border-top: 0 !important;
  background: transparent !important;
}

body.admin-shell .table-responsive {
  width: 100%;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.admin-shell .table {
  width: 100%;
  margin-bottom: 0;
  color: var(--admin-text);
}

body.admin-shell .table > :not(caption) > * > * {
  padding: 1rem 1.15rem;
  border-bottom-color: rgba(148, 163, 184, 0.14);
  vertical-align: middle;
  text-align: center;
}

body.admin-shell .table thead th {
  border-bottom-width: 1px;
  color: var(--admin-text-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

body.admin-shell .table tbody tr:hover {
  background: #f8fafc;
}

body.admin-shell .table a {
  color: inherit;
}

body.admin-shell .avatar {
  object-fit: cover;
  border-radius: 1rem;
}

body.admin-shell .avatar-xl {
  width: 4.5rem;
  height: 4.5rem;
}

body.admin-shell .form-group {
  margin-bottom: 1rem;
}

body.admin-shell label,
body.admin-shell .form-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--admin-text);
  font-size: 0.76rem;
  font-weight: 700;
}

body.admin-shell .form-control,
body.admin-shell textarea.form-control,
body.admin-shell select.form-control,
body.admin-shell .form-select,
body.admin-shell .form-control-alternative {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--admin-text);
  padding: 0.75rem 1rem;
  min-height: 3.05rem;
  font-size: 13px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.admin-shell textarea.form-control {
  width: 100%;
  min-height: 7.5rem;
  resize: vertical;
}

body.admin-shell .form-control:focus,
body.admin-shell textarea.form-control:focus,
body.admin-shell select.form-control:focus,
body.admin-shell .form-select:focus,
body.admin-shell .form-control-alternative:focus {
  border-color: rgba(var(--admin-focus-rgb), 0.38);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--admin-focus-rgb), 0.1);
}

body.admin-shell input[type="file"].form-control {
  padding-block: 0.75rem;
}

body.admin-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 1rem;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.1;
  transition:
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

body.admin-shell .btn:hover {
  filter: none;
  box-shadow: 6px 6px 16px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

body.admin-shell .btn:active {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.admin-page-stack,
.admin-settings-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form-hero .card-body,
.admin-form-section .card-body,
.admin-settings-hero .card-body,
.admin-settings-section .card-body {
  padding: 1.4rem !important;
}

.admin-form-hero__eyebrow,
.admin-settings-hero__eyebrow {
  margin-bottom: 0.55rem;
  color: var(--admin-text-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-form-hero__header,
.admin-settings-hero__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-form-hero__header h2,
.admin-section-header h3,
.admin-settings-hero__header h2,
.admin-settings-section__header h3 {
  margin: 0;
  color: var(--admin-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-form-hero__header p,
.admin-section-header p,
.admin-settings-hero__header p,
.admin-settings-section__header p {
  margin: 0.35rem 0 0;
  max-width: 44rem;
  color: var(--admin-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-form-note,
.admin-settings-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--admin-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-form-grid,
.admin-settings-grid,
.admin-settings-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-section-fields,
.admin-settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-section-header,
.admin-settings-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-section-header__action {
  margin-left: auto;
}

.admin-form-split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(19rem, 0.82fr);
  gap: 1rem;
}

.admin-form-media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  gap: 1rem;
}

.admin-form-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-field {
  min-width: 0;
}

.admin-field--full,
.admin-field-full {
  grid-column: 1 / -1;
}

.admin-textarea--compact,
.admin-textarea-compact {
  min-height: 7rem !important;
}

.admin-code-textarea {
  min-height: 14rem !important;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.8rem;
  line-height: 1.6;
}

.admin-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-gallery-item {
  padding: 0.85rem;
  border: 1px solid var(--admin-border);
  border-radius: 1rem;
  background: #fbfcfe;
}

.admin-gallery-item__preview {
  display: block;
  width: 100%;
  height: 9rem;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
}

.admin-gallery-item__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.admin-multi-select {
  min-height: 11rem;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

body.admin-shell .select2-container {
  width: 100% !important;
  direction: ltr !important;
}

body.admin-shell .select2-container .select2-selection--single,
body.admin-shell .select2-container .select2-selection--multiple {
  min-height: 3rem;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  border-radius: 0.5rem !important;
  background: #ffffff !important;
  box-shadow: none !important;
  direction: ltr !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.admin-shell .select2-container .select2-selection--single:hover,
body.admin-shell .select2-container .select2-selection--multiple:hover {
  border-color: rgba(var(--admin-focus-rgb), 0.28) !important;
}

body.admin-shell .select2-container--default.select2-container--focus .select2-selection--multiple,
body.admin-shell .select2-container--default.select2-container--open .select2-selection--single,
body.admin-shell .select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: rgba(var(--admin-focus-rgb), 0.38) !important;
  box-shadow: 0 0 0 3px rgba(var(--admin-focus-rgb), 0.1) !important;
}

body.admin-shell .select2-container--default .select2-selection--multiple {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem 0.4rem;
}

body.admin-shell .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  align-items: center;
  align-content: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left !important;
}

body.admin-shell .select2-container--default .select2-search--inline {
  display: inline-flex;
  flex: 1 1 6rem;
  width: auto !important;
  min-width: 6rem;
  max-width: 100%;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-start;
}

body.admin-shell .select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 !important;
  padding: 0.36rem 0.65rem !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: var(--admin-text) !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

body.admin-shell .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: static !important;
  margin: 0 !important;
  border: 0 !important;
  color: var(--admin-text-soft) !important;
  font-size: 14px;
  font-weight: 700;
}

body.admin-shell .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  background: transparent !important;
  color: var(--admin-text) !important;
}

body.admin-shell .select2-container--default .select2-search--inline .select2-search__field {
  width: auto !important;
  min-width: 6rem !important;
  flex: 1 1 6rem;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: var(--admin-text);
  font-size: 13px !important;
  font-weight: 500;
  text-align: left !important;
  direction: ltr;
}

body.admin-shell .select2-container--default .select2-search--inline .select2-search__field::placeholder,
body.admin-shell .select2-container--default .select2-search--inline .select2-search__field::-webkit-input-placeholder {
  text-align: left !important;
}

body.admin-shell .select2-container--default .select2-selection__placeholder {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

body.admin-shell .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0.9rem !important;
  padding-right: 3rem !important;
  color: var(--admin-text);
  font-size: 13px;
  line-height: 2.95rem !important;
  margin: 0 !important;
}

body.admin-shell .select2-container--default .select2-selection--single .select2-selection__arrow {
  right: 0.75rem !important;
  top: 0 !important;
  height: 100% !important;
  display: inline-flex;
  align-items: center;
}

body.admin-shell .select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute !important;
  right: 2rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

body.admin-shell .select2-container--default .select2-selection--single .select2-selection__arrow b {
  margin-top: 0 !important;
}

body.admin-shell .select2-dropdown {
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 0.9rem !important;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

body.admin-shell .select2-container--default .select2-search--dropdown .select2-search__field {
  height: 2.75rem;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  font-size: 13px;
}

body.admin-shell .select2-container--default .select2-results__option {
  padding: 0.75rem 0.9rem;
  font-size: 13px;
}

body.admin-shell .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--admin-accent) !important;
  color: #ffffff !important;
}

.admin-file-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-file-meta__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--admin-link);
}

.admin-color-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.admin-color-field__picker {
  width: 3.25rem;
  min-width: 3.25rem;
  height: 3.25rem;
  padding: 0.28rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.75rem;
  background: #ffffff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.admin-color-field__picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.admin-color-field__picker::-webkit-color-swatch {
  border: 0;
  border-radius: 0.55rem;
}

.admin-color-field__picker::-moz-color-swatch {
  border: 0;
  border-radius: 0.55rem;
}

.admin-color-field__hex {
  flex: 1 1 auto;
}

.admin-block-gap {
  margin-top: 1.15rem;
}

.admin-form-panel {
  padding: 1rem;
  border: 1px solid var(--admin-border);
  border-radius: 1rem;
  background: #fbfcfe;
}

.admin-form-panel__header {
  margin-bottom: 1rem;
}

.admin-form-panel__header h4 {
  margin: 0;
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-form-panel__header p {
  margin: 0.35rem 0 0;
  color: var(--admin-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-upload-card {
  padding: 1rem;
  border: 1px solid var(--admin-border);
  border-radius: 1rem;
  background: #fbfcfe;
}

.admin-upload-card--compact {
  padding: 0.85rem;
}

.admin-upload-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.admin-upload-card__meta label {
  margin-bottom: 0;
}

.admin-upload-preview {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9.5rem;
  margin-bottom: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--admin-border);
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9));
}

.admin-upload-preview--dark {
  background: linear-gradient(180deg, var(--admin-brand-950), var(--admin-brand-600));
  border-color: rgba(255, 255, 255, 0.06);
}

.admin-upload-preview--flag {
  min-height: 7.25rem;
}

.admin-upload-preview--hero {
  min-height: 16rem;
}

.admin-upload-preview--hero .admin-upload-preview__image {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 0.9rem;
}

.admin-upload-preview--feature {
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-height: 20rem;
}

.admin-upload-preview--feature .admin-upload-preview__image {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 0.9rem;
}

.admin-upload-preview__image {
  display: block;
  max-width: 100%;
}

.admin-upload-preview__image--contain {
  max-height: 5.5rem;
  object-fit: contain;
}

.admin-upload-preview__image--icon {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
}

.admin-upload-preview__empty {
  color: var(--admin-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-repeater-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-repeater-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.admin-repeater-row .btn {
  min-width: 6.25rem;
}

.admin-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.admin-shell .admin-file-upload {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.75rem;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.admin-shell .admin-file-upload:hover {
  border-color: rgba(var(--admin-focus-rgb), 0.22);
  background: #fbfdff;
}

.admin-file-input:focus + .admin-file-upload,
body.admin-shell .admin-file-upload:focus-within {
  border-color: rgba(var(--admin-focus-rgb), 0.38);
  box-shadow: 0 0 0 3px rgba(var(--admin-focus-rgb), 0.1);
}

body.admin-shell .admin-file-upload__button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.62rem 0.8rem;
  border-radius: 0.6rem;
  background: var(--admin-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

body.admin-shell .admin-file-upload__button .lucide {
  width: 0.9rem;
  height: 0.9rem;
}

body.admin-shell .admin-file-upload__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.2rem;
}

body.admin-shell .admin-file-upload__name {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin-shell .admin-file-upload__hint {
  color: var(--admin-text-soft);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 639px) {
  body.admin-shell .admin-file-upload {
    align-items: stretch;
    flex-direction: column;
  }

  body.admin-shell .admin-file-upload__button {
    justify-content: center;
    width: 100%;
  }

  body.admin-shell .admin-file-upload__meta {
    width: 100%;
  }

  body.admin-shell .admin-file-upload__name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
  }
}

.admin-form-actions,
.admin-settings-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-submit-btn,
.admin-settings-submit {
  min-width: 13rem;
}

.admin-form-actions--split {
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.admin-resource-layout,
.admin-language-layout,
.admin-documents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(21rem, 0.95fr);
  gap: 1rem;
}

.admin-resource-table tbody tr,
.admin-language-table tbody tr {
  cursor: grab;
}

.admin-resource-table th:last-child,
.admin-resource-table td:last-child,
.admin-language-table th:last-child,
.admin-language-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.admin-resource-title,
.admin-language-name {
  display: flex;
  align-items: center;
  min-height: 2rem;
}

.admin-resource-title__text,
.admin-language-name__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-resource-chip,
.admin-language-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-resource-media,
.admin-document-file,
.admin-language-flag-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
}

.admin-resource-media--centered {
  justify-content: center;
}

.admin-resource-thumb {
  width: 4.75rem;
  height: 3.35rem;
  object-fit: cover;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
  display: block;
}

.admin-resource-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-text-soft);
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9));
}

.admin-resource-avatar,
.admin-language-flag {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid var(--admin-border);
  background: #ffffff;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.admin-status-badge .lucide {
  width: 0.85rem;
  height: 0.85rem;
}

.admin-status-badge.is-active,
.admin-status-badge.is-main {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.admin-status-badge.is-passive,
.admin-status-badge.is-secondary {
  background: rgba(148, 163, 184, 0.14);
  color: #64748b;
}

.admin-table-actions {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.admin-resource-actions-cell--menu-only .admin-table-actions {
  margin-left: auto;
}

.admin-mobile-reorder {
  display: none;
  align-items: center;
  gap: 0.45rem;
}

.admin-reorder-button {
  width: 2.1rem;
  height: 2.1rem;
}

.admin-language-layout > .card:first-child,
.admin-language-layout > .card:first-child .card-body,
.admin-language-layout > .card:first-child .table-responsive,
.admin-resource-layout > .card:first-child,
.admin-resource-layout > .card:first-child .card-body,
.admin-resource-layout > .card:first-child .table-responsive {
  overflow: visible;
}

.admin-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--admin-text-muted);
  transition:
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.admin-icon-button:hover {
  background: #f8fafc;
  color: var(--admin-text);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.admin-icon-button .lucide {
  width: 0.95rem;
  height: 0.95rem;
}

.admin-icon-button.dropdown-toggle::after {
  display: none;
}

.admin-document-order,
.admin-document-title {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-resource-title__text,
.admin-document-title__text {
  display: inline-block;
  max-width: 24rem;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-resource-media,
.admin-document-file {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
}

.admin-resource-media__icon,
.admin-document-file__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--admin-border);
  border-radius: 0.75rem;
  background: #f8fafc;
  color: var(--admin-text-muted);
  flex-shrink: 0;
}

.admin-resource-media__icon .lucide,
.admin-document-file__icon .lucide {
  width: 1rem;
  height: 1rem;
}

.admin-resource-link,
.admin-document-file__link {
  display: inline-block;
  max-width: 18rem;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-resource-preview,
.admin-document-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--admin-border);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9));
}

.admin-resource-preview__icon,
.admin-document-preview__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: var(--admin-accent);
  color: #ffffff;
  flex-shrink: 0;
}

.admin-resource-preview__icon .lucide,
.admin-document-preview__icon .lucide {
  width: 1.15rem;
  height: 1.15rem;
}

.admin-resource-preview__meta,
.admin-document-preview__meta {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-resource-preview__title,
.admin-document-preview__title {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-resource-preview__hint,
.admin-document-preview__hint {
  color: var(--admin-text-soft);
  font-size: 11px;
  line-height: 1.4;
}

.admin-resource-preview__link,
.admin-document-preview__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-media-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.05rem;
  background: #ffffff;
  box-shadow: var(--admin-shadow-sm);
  overflow: hidden;
}

.admin-media-card__preview {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.82));
}

.admin-media-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-media-card__overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  gap: 0.45rem;
}

.admin-icon-button--dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.admin-icon-button--dark:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
}

.admin-icon-button--danger {
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
}

.admin-icon-button--danger:hover {
  background: #dc2626;
  color: #ffffff;
}

.admin-media-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.95rem;
}

.admin-media-card__title {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-media-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-media-card__drag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--admin-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.admin-media-card__drag .lucide {
  width: 0.85rem;
  height: 0.85rem;
}

.admin-media-card__reorder {
  margin-top: 0.15rem;
  justify-content: flex-start;
}

.admin-locale-tabs {
  margin-bottom: 1rem;
}

.admin-locale-tabs .nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr));
  gap: 0.5rem;
}

.admin-locale-tabs .nav-pills {
  padding: 0.35rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75);
}

.admin-locale-tabs .nav-item {
  min-width: 0;
}

.admin-locale-tabs .nav-pills .nav-link {
  min-height: 3.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 1.05rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-locale-tabs .nav-pills .nav-link:not(.active) {
  color: #64748b;
}

.admin-locale-tabs .nav-pills .nav-link.active,
.admin-locale-tabs .nav-pills .show > .nav-link {
  border-color: rgba(15, 23, 42, 0.06);
  background: #18243b;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.admin-locale-tab__flag {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.admin-locale-tabpanes {
  margin-bottom: 1rem;
}

.admin-textops-table .admin-resource-title__text {
  max-width: 30rem;
}

.admin-textops-table,
.admin-textops-table.dataTable {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: auto;
}

.admin-textops-table th:nth-child(1),
.admin-textops-table td:nth-child(1) {
  width: auto;
}

.admin-textops-table th:nth-child(2),
.admin-textops-table td:nth-child(2) {
  width: auto;
}

.admin-textops-table th:nth-child(3),
.admin-textops-table td:nth-child(3) {
  width: 1%;
  white-space: nowrap;
}

.admin-textops-code {
  display: inline-flex;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

body.admin-shell .admin-editor-shell,
body.admin-shell .ckeditor-box,
body.admin-shell .ckeditor-shell {
  position: relative;
  border: 1px solid var(--admin-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.admin-shell .admin-editor-shell:focus-within,
body.admin-shell .ckeditor-box:focus-within,
body.admin-shell .ckeditor-shell:focus-within {
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
  background: #ffffff;
}

body.admin-shell .admin-editor-shell .ck.ck-editor,
body.admin-shell .ckeditor-box .ck.ck-editor,
body.admin-shell .ckeditor-shell .ck.ck-editor {
  width: 100%;
  border: 0;
  box-shadow: none;
  background: transparent;
}

body.admin-shell .admin-editor-shell .ck.ck-toolbar,
body.admin-shell .ckeditor-box .ck.ck-toolbar,
body.admin-shell .ckeditor-shell .ck.ck-toolbar {
  border: 0;
  border-bottom: 1px solid var(--admin-border);
  background: rgba(248, 250, 252, 0.96);
  padding: 0.75rem 0.85rem;
  gap: 0.4rem;
  flex-wrap: wrap;
}

body.admin-shell .admin-editor-shell .ck.ck-toolbar .ck-toolbar__items,
body.admin-shell .ckeditor-box .ck.ck-toolbar .ck-toolbar__items,
body.admin-shell .ckeditor-shell .ck.ck-toolbar .ck-toolbar__items {
  gap: 0.35rem;
  flex-wrap: wrap;
}

body.admin-shell .admin-editor-shell .ck.ck-toolbar .ck-button,
body.admin-shell .admin-editor-shell .ck.ck-toolbar .ck-dropdown__button,
body.admin-shell .ckeditor-box .ck.ck-toolbar .ck-button,
body.admin-shell .ckeditor-box .ck.ck-toolbar .ck-dropdown__button,
body.admin-shell .ckeditor-shell .ck.ck-toolbar .ck-button,
body.admin-shell .ckeditor-shell .ck.ck-toolbar .ck-dropdown__button {
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  color: var(--admin-text-muted);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.admin-shell .admin-editor-shell .ck.ck-toolbar .ck-button:hover,
body.admin-shell .admin-editor-shell .ck.ck-toolbar .ck-dropdown__button:hover,
body.admin-shell .ckeditor-box .ck.ck-toolbar .ck-button:hover,
body.admin-shell .ckeditor-box .ck.ck-toolbar .ck-dropdown__button:hover,
body.admin-shell .ckeditor-shell .ck.ck-toolbar .ck-button:hover,
body.admin-shell .ckeditor-shell .ck.ck-toolbar .ck-dropdown__button:hover {
  background: #ffffff;
  border-color: var(--admin-border);
  color: var(--admin-accent);
}

body.admin-shell .admin-editor-shell .ck.ck-toolbar .ck-button.ck-on,
body.admin-shell .admin-editor-shell .ck.ck-toolbar .ck-dropdown__button.ck-on,
body.admin-shell .ckeditor-box .ck.ck-toolbar .ck-button.ck-on,
body.admin-shell .ckeditor-box .ck.ck-toolbar .ck-dropdown__button.ck-on,
body.admin-shell .ckeditor-shell .ck.ck-toolbar .ck-button.ck-on,
body.admin-shell .ckeditor-shell .ck.ck-toolbar .ck-dropdown__button.ck-on {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  color: #ffffff;
}

body.admin-shell .admin-editor-shell .ck.ck-toolbar .ck-button.ck-disabled,
body.admin-shell .ckeditor-box .ck.ck-toolbar .ck-button.ck-disabled,
body.admin-shell .ckeditor-shell .ck.ck-toolbar .ck-button.ck-disabled {
  opacity: 0.45;
}

body.admin-shell .admin-editor-shell .ck-editor__main,
body.admin-shell .ckeditor-box .ck-editor__main,
body.admin-shell .ckeditor-shell .ck-editor__main {
  background: #ffffff;
}

body.admin-shell .admin-editor-shell .ck.ck-editor__editable,
body.admin-shell .admin-editor-shell .ck.ck-editor__editable_inline,
body.admin-shell .ckeditor-box .ck.ck-editor__editable,
body.admin-shell .ckeditor-box .ck.ck-editor__editable_inline,
body.admin-shell .ckeditor-shell .ck.ck-editor__editable,
body.admin-shell .ckeditor-shell .ck.ck-editor__editable_inline {
  min-height: 18rem;
  max-height: 28rem;
  padding: 1.1rem 1.2rem;
  border: 0;
  box-shadow: none !important;
  background: #ffffff;
  color: var(--admin-text);
  font-size: 0.9rem;
  line-height: 1.75;
}

body.admin-shell .admin-editor-shell .ck.ck-editor__editable_inline.ck-focused,
body.admin-shell .ckeditor-box .ck.ck-editor__editable_inline.ck-focused,
body.admin-shell .ckeditor-shell .ck.ck-editor__editable_inline.ck-focused {
  border: 0;
  box-shadow: none !important;
}

body.admin-shell .admin-editor-shell .ck.ck-editor__editable_inline > :first-child,
body.admin-shell .ckeditor-box .ck.ck-editor__editable_inline > :first-child,
body.admin-shell .ckeditor-shell .ck.ck-editor__editable_inline > :first-child {
  margin-top: 0;
}

body.admin-shell .admin-editor-shell .ck.ck-editor__editable_inline > :last-child,
body.admin-shell .ckeditor-box .ck.ck-editor__editable_inline > :last-child,
body.admin-shell .ckeditor-shell .ck.ck-editor__editable_inline > :last-child {
  margin-bottom: 0;
}

body.admin-shell .admin-editor-shell .ck.ck-editor__editable_inline.ck-placeholder::before,
body.admin-shell .ckeditor-box .ck.ck-editor__editable_inline.ck-placeholder::before,
body.admin-shell .ckeditor-shell .ck.ck-editor__editable_inline.ck-placeholder::before {
  color: var(--admin-text-soft);
  font-style: normal;
}

body.admin-shell .admin-editor-shell .ck.ck-dropdown .ck-button__label,
body.admin-shell .ckeditor-box .ck.ck-dropdown .ck-button__label,
body.admin-shell .ckeditor-shell .ck.ck-dropdown .ck-button__label {
  font-size: 0.8125rem;
}

body.admin-shell .admin-editor-shell .ck.ck-content blockquote,
body.admin-shell .ckeditor-box .ck.ck-content blockquote,
body.admin-shell .ckeditor-shell .ck.ck-content blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(15, 23, 42, 0.14);
  color: var(--admin-text-muted);
}

body.admin-shell .admin-editor-shell .ck.ck-content pre,
body.admin-shell .ckeditor-box .ck.ck-content pre,
body.admin-shell .ckeditor-shell .ck.ck-content pre {
  border-radius: 0.9rem;
  background: #0f172a;
}

body.admin-shell .admin-editor-shell--tall .ck.ck-editor__editable,
body.admin-shell .admin-editor-shell--tall .ck.ck-editor__editable_inline,
body.admin-shell .ckeditor-box--tall .ck.ck-editor__editable,
body.admin-shell .ckeditor-box--tall .ck.ck-editor__editable_inline,
body.admin-shell .ckeditor-shell--tall .ck.ck-editor__editable,
body.admin-shell .ckeditor-shell--tall .ck.ck-editor__editable_inline {
  min-height: 34rem;
  max-height: 34rem;
}

body.admin-shell .admin-editor-shell--medium .ck.ck-editor__editable,
body.admin-shell .admin-editor-shell--medium .ck.ck-editor__editable_inline,
body.admin-shell .ckeditor-box--medium .ck.ck-editor__editable,
body.admin-shell .ckeditor-box--medium .ck.ck-editor__editable_inline,
body.admin-shell .ckeditor-shell--medium .ck.ck-editor__editable,
body.admin-shell .ckeditor-shell--medium .ck.ck-editor__editable_inline {
  min-height: 24rem;
  max-height: 24rem;
}

@media (max-width: 767.98px) {
  body.admin-shell .admin-editor-shell,
  body.admin-shell .ckeditor-box,
  body.admin-shell .ckeditor-shell {
    border-radius: 0.85rem;
  }

  body.admin-shell .admin-editor-shell .ck.ck-toolbar,
  body.admin-shell .ckeditor-box .ck.ck-toolbar,
  body.admin-shell .ckeditor-shell .ck.ck-toolbar {
    padding: 0.6rem 0.65rem;
  }

  body.admin-shell .admin-editor-shell .ck.ck-editor__editable,
  body.admin-shell .admin-editor-shell .ck.ck-editor__editable_inline,
  body.admin-shell .ckeditor-box .ck.ck-editor__editable,
  body.admin-shell .ckeditor-box .ck.ck-editor__editable_inline,
  body.admin-shell .ckeditor-shell .ck.ck-editor__editable,
  body.admin-shell .ckeditor-shell .ck.ck-editor__editable_inline {
    min-height: 14rem;
    max-height: 22rem;
    padding: 0.95rem 1rem;
  }

  body.admin-shell .admin-editor-shell--tall .ck.ck-editor__editable,
  body.admin-shell .admin-editor-shell--tall .ck.ck-editor__editable_inline,
  body.admin-shell .ckeditor-box--tall .ck.ck-editor__editable,
  body.admin-shell .ckeditor-box--tall .ck.ck-editor__editable_inline,
  body.admin-shell .ckeditor-shell--tall .ck.ck-editor__editable,
  body.admin-shell .ckeditor-shell--tall .ck.ck-editor__editable_inline {
    min-height: 22rem;
    max-height: 22rem;
  }

  body.admin-shell .admin-editor-shell--medium .ck.ck-editor__editable,
  body.admin-shell .admin-editor-shell--medium .ck.ck-editor__editable_inline,
  body.admin-shell .ckeditor-box--medium .ck.ck-editor__editable,
  body.admin-shell .ckeditor-box--medium .ck.ck-editor__editable_inline,
  body.admin-shell .ckeditor-shell--medium .ck.ck-editor__editable,
  body.admin-shell .ckeditor-shell--medium .ck.ck-editor__editable_inline {
    min-height: 20rem;
    max-height: 20rem;
  }
}

body.admin-shell .btn.bg-success,
body.admin-shell .btn-success,
body.admin-shell .btn-primary,
body.admin-shell .bg-gradient-info {
  background: var(--admin-accent) !important;
  color: #ffffff !important;
}

body.admin-shell .btn.bg-danger,
body.admin-shell .btn-danger {
  background: #dc2626 !important;
  color: #ffffff !important;
}

body.admin-shell .btn.bg-dark {
  background: var(--admin-accent-strong) !important;
  color: #ffffff !important;
}

body.admin-shell .bg-gradient-danger {
  background: #dc2626 !important;
  color: #ffffff !important;
}

body.admin-shell .btn.bg-warning,
body.admin-shell .btn-warning {
  background: #d97706 !important;
  color: #ffffff !important;
}

body.admin-shell .bg-gradient-warning {
  background: #d97706 !important;
  color: #ffffff !important;
}

body.admin-shell .btn.bg-secondary,
body.admin-shell .btn-secondary {
  background: #475569 !important;
  color: #ffffff !important;
}

body.admin-shell .btn-outline-dark,
body.admin-shell .btn-outline-danger {
  background: transparent !important;
  border: 1px solid currentColor !important;
  box-shadow: none !important;
}

body.admin-shell .btn-outline-dark {
  color: var(--admin-accent-strong) !important;
}

body.admin-shell .btn-outline-danger {
  color: var(--admin-danger) !important;
}

body.admin-shell .btn-outline-dark:hover {
  background: #f8fafc !important;
  color: var(--admin-accent-strong) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

body.admin-shell .btn-outline-danger:hover {
  background: #fef2f2 !important;
  color: var(--admin-danger) !important;
  border-color: rgba(220, 38, 38, 0.18) !important;
}

body.admin-shell .btn.bg-dark:hover,
body.admin-shell .admin-submit-btn:hover,
body.admin-shell .admin-settings-submit:hover,
body.admin-shell .btn-success:hover,
body.admin-shell .btn.bg-success:hover,
body.admin-shell .btn-primary:hover,
body.admin-shell .btn.bg-danger:hover,
body.admin-shell .btn-danger:hover,
body.admin-shell .btn-warning:hover,
body.admin-shell .btn.bg-warning:hover,
body.admin-shell .btn-secondary:hover,
body.admin-shell .btn.bg-secondary:hover {
  filter: brightness(0.98);
}

body.admin-shell .btn-sm {
  min-height: auto;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.72rem;
}

body.admin-shell .w-25 {
  width: 25% !important;
  min-width: 11rem;
}

body.admin-shell .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
  min-width: 11rem;
  z-index: 40;
  margin-top: 0.65rem !important;
  padding: 0.45rem !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: var(--admin-shadow-md);
}

body.admin-shell .dropdown-menu.show {
  display: block;
}

body.admin-shell .dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 0.8rem;
  padding: 0.78rem 0.9rem;
  color: var(--admin-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}

body.admin-shell .dropdown-item:hover,
body.admin-shell .dropdown-item:focus {
  background: #f8fafc !important;
  color: inherit;
}

body.admin-shell .dropdown-item.text-danger,
body.admin-shell .dropdown-item.text-danger:hover,
body.admin-shell .dropdown-item.text-danger:focus {
  color: var(--admin-danger) !important;
}

body.admin-shell .nav-pills {
  gap: 0.5rem;
  padding: 0.45rem;
  border: 1px solid var(--admin-border);
  border-radius: 1.15rem;
  background: #f8fafc;
}

body.admin-shell .nav-pills .nav-link {
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.95rem;
  color: var(--admin-text-muted);
  background: transparent;
}

body.admin-shell .nav-pills .nav-link.active,
body.admin-shell .nav-pills .show > .nav-link {
  color: #ffffff;
  background: var(--admin-accent);
  box-shadow: none;
}

body.admin-shell .tab-content {
  margin-top: 1rem;
}

body.admin-shell .tab-content > .tab-pane {
  display: none;
}

body.admin-shell .tab-content > .tab-pane.active {
  display: block;
}

body.admin-shell .alert {
  border: 0;
  border-radius: 1rem;
}

body.admin-shell .icon.icon-shape {
  color: var(--admin-text);
}

body.admin-shell .numbers p {
  color: var(--admin-text-muted) !important;
}

body.admin-shell .numbers h5 {
  color: var(--admin-text);
  font-size: 1.1rem;
  font-weight: 800;
}

body.admin-shell .footer {
  position: static !important;
  width: auto !important;
  padding: 0 !important;
  margin-top: 1.75rem;
  background: transparent;
}

.admin-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0 0.5rem;
  color: var(--admin-text-muted);
  font-size: 0.78rem;
}

.admin-footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.admin-footer-credit img {
  width: 1rem;
  height: 1rem;
}

.admin-footer a {
  color: var(--admin-accent-strong);
}

body.admin-shell .dataTables_wrapper.admin-datatable {
  color: var(--admin-text);
}

body.admin-shell .dt-container.admin-datatable {
  color: var(--admin-text);
}

body.admin-shell .dt-container.admin-datatable .dt-layout-row:not(.dt-layout-table) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

body.admin-shell .dt-container.admin-datatable .dt-layout-row:not(.dt-layout-table):first-child {
  grid-template-columns: max-content minmax(15rem, 18rem);
  justify-content: space-between;
  padding: 0.625rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.72);
  box-shadow: none;
}

body.admin-shell .dt-container.admin-datatable .dt-layout-row.admin-datatable-header:first-child {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.375rem 1rem;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body.admin-shell .admin-datatable-header__intro {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

body.admin-shell .admin-datatable-header__icon {
  flex-shrink: 0;
}

body.admin-shell .admin-datatable-header__text {
  min-width: 0;
}

body.admin-shell .admin-datatable-header__title {
  color: var(--admin-text);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
}

body.admin-shell .admin-datatable-header__subtitle {
  margin-top: 0.125rem;
  color: var(--admin-text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 400;
}

body.admin-shell .admin-datatable-header__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

body.admin-shell .admin-datatable-count {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

body.admin-shell .admin-datatable-count .dt-length {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

body.admin-shell .dt-container.admin-datatable .dt-layout-row:not(.dt-layout-table):last-child {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.admin-shell .dt-container.admin-datatable .dt-layout-row:not(.dt-layout-table):last-child {
  padding: 0.9rem;
  margin:0;
}

body.admin-shell .dt-container.admin-datatable .dt-layout-row.dt-layout-table {
  display: block;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

body.admin-shell .dt-container.admin-datatable .dt-layout-row.dt-layout-table .dt-layout-cell,
body.admin-shell .dt-container.admin-datatable .dt-layout-row.dt-layout-table .dt-layout-full {
  display: block;
  width: 100%;
  min-width: 0;
}

body.admin-shell .dt-container.admin-datatable .dt-layout-cell {
  min-width: 0;
}

body.admin-shell .dt-container.admin-datatable .dt-layout-end {
  display: flex;
  justify-content: flex-end;
}

body.admin-shell .dt-container.admin-datatable .dt-layout-start {
  display: flex;
  justify-content: flex-start;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_length,
body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter {
  float: none !important;
  display: flex;
  margin-bottom: 1rem;
}

body.admin-shell .dt-container.admin-datatable .dt-length,
body.admin-shell .dt-container.admin-datatable .dt-search {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

body.admin-shell .dt-container.admin-datatable .dt-length {
  gap: 0.55rem;
}

body.admin-shell .admin-datatable-count-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--admin-border);
  border-radius: 0.4375rem;
  background: var(--admin-bg);
  cursor: pointer;
}

body.admin-shell .admin-datatable-count-badge__text {
  color: var(--admin-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body.admin-shell .admin-datatable-count-badge__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_length {
  justify-content: flex-start;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter {
  justify-content: flex-end;
}

body.admin-shell .dt-container.admin-datatable .dt-length {
  justify-content: flex-start;
}

body.admin-shell .dt-container.admin-datatable .dt-search {
  justify-content: flex-end;
}

body.admin-shell .dt-container.admin-datatable .admin-datatable-search {
  display: inline-flex;
  min-width: 8.125rem;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--admin-border);
  border-radius: 0.5rem;
  background: var(--admin-bg);
  padding: 0.375rem 0.75rem;
}

body.admin-shell .admin-datatable-search-icon {
  display: inline-flex;
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  color: var(--admin-text-soft);
}

body.admin-shell .admin-datatable-search-icon svg {
  width: 100%;
  height: 100%;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_length label,
body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--admin-text-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

body.admin-shell .dt-container.admin-datatable .dt-length label,
body.admin-shell .dt-container.admin-datatable .dt-search label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--admin-text-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter label {
  justify-content: flex-end;
}

body.admin-shell .dt-container.admin-datatable .dt-search label {
  justify-content: flex-end;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter input,
body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_length select {
  min-height: 2.4rem;
  margin-left: 0;
  padding: 0.625rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--admin-text);
  font-size: 12px;
  box-shadow: none;
}

body.admin-shell .dt-container.admin-datatable .dt-search input,
body.admin-shell .dt-container.admin-datatable .dt-length select {
  margin-left: 0;
  border: 0;
  background: transparent;
  color: var(--admin-text);
  font-size: 12px;
  box-shadow: none;
}

body.admin-shell .admin-datatable-control {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--admin-text);
  font-size: 12px;
  box-shadow: none;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_length select,
body.admin-shell .dt-container.admin-datatable .dt-length select {
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 0.4375rem;
  text-align: center;
  font-weight: 600;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter input {
  min-width: 8rem;
}

body.admin-shell .dt-container.admin-datatable .dt-search input {
  min-width: 6rem;
  width: 100%;
  padding: 0;
}

body.admin-shell .dt-container.admin-datatable .admin-datatable-search input {
  min-width: 0;
  min-height: 2.05rem;
  border: 0;
  background: transparent;
  padding-inline: 0;
  padding-left: 0;
  box-shadow: none;
  color: var(--admin-text-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

body.admin-shell .dt-container.admin-datatable .admin-datatable-search input::placeholder {
  color: var(--admin-text-soft);
}

body.admin-shell .admin-datatable-count .dt-length select,
body.admin-shell .admin-datatable-count .dt-length select:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

body.admin-shell .dt-container.admin-datatable .admin-datatable-search input:focus {
  box-shadow: none;
}

body.admin-shell .dt-container.admin-datatable .admin-datatable-search:focus-within {
  border-color: rgba(var(--admin-focus-rgb), 0.38);
  box-shadow: 0 0 0 4px rgba(var(--admin-focus-rgb), 0.1);
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter input:focus,
body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_length select:focus {
  border-color: rgba(var(--admin-focus-rgb), 0.38);
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--admin-focus-rgb), 0.1);
}

body.admin-shell .dt-container.admin-datatable .dt-search input:focus,
body.admin-shell .dt-container.admin-datatable .dt-length select:focus {
  border-color: rgba(var(--admin-focus-rgb), 0.38);
  outline: none;
}

body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable {
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}

body.admin-shell .dt-container.admin-datatable table.dataTable {
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}

body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable thead th,
body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable thead td {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
  color: var(--admin-text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.admin-shell .dt-container.admin-datatable table.dataTable thead th,
body.admin-shell .dt-container.admin-datatable table.dataTable thead td {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
  background: rgba(248, 250, 252, 0.78);
  color: var(--admin-text-soft);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable tbody td,
body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable tbody th {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
  vertical-align: middle;
}

body.admin-shell .dt-container.admin-datatable table.dataTable tbody tr:hover td,
body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable tbody tr:hover td {
  background: rgba(248, 250, 252, 0.88);
}

body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable.no-footer {
  border-bottom: 0 !important;
}

body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable tbody tr:last-child td,
body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable tbody tr:last-child th {
  border-bottom-color: rgba(148, 163, 184, 0.16) !important;
}

body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable thead .sorting,
body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable thead .sorting_asc,
body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable thead .sorting_desc {
  background-image: none !important;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_info {
  float: none !important;
  padding-top: 0.75rem;
  color: var(--admin-text-muted);
  font-size: 12px;
  font-weight: 500;
}

body.admin-shell .dt-container.admin-datatable .dt-info {
  color: var(--admin-text-muted);
  font-size: 12px;
  font-weight: 500;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_paginate {
  float: none !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.5rem;
  justify-content: flex-end;
}

body.admin-shell .dt-container.admin-datatable .dt-paging {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_paginate .paginate_button {
  min-width: 2.2rem;
  height: 2.2rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 0.7rem !important;
  background: transparent !important;
  color: var(--admin-text-muted) !important;
  font-size: 12px;
  font-weight: 600;
}

body.admin-shell .dt-container.admin-datatable .dt-paging .dt-paging-button {
  min-width: 2.2rem;
  height: 2.2rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 0.7rem !important;
  background: transparent !important;
  color: var(--admin-text-muted) !important;
  font-size: 12px;
  font-weight: 600;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_paginate .paginate_button:hover {
  border-color: rgba(var(--admin-focus-rgb), 0.2) !important;
  background: var(--admin-accent-soft) !important;
  color: var(--admin-accent-strong) !important;
}

body.admin-shell .dt-container.admin-datatable .dt-paging .dt-paging-button:hover {
  border-color: rgba(var(--admin-focus-rgb), 0.2) !important;
  background: var(--admin-accent-soft) !important;
  color: var(--admin-accent-strong) !important;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_paginate .paginate_button.current {
  border-color: rgba(var(--admin-focus-rgb), 0.2) !important;
  background: var(--admin-accent-soft) !important;
  color: var(--admin-accent-strong) !important;
  box-shadow: none;
}

body.admin-shell .dt-container.admin-datatable .dt-paging .dt-paging-button.current {
  border-color: rgba(var(--admin-focus-rgb), 0.2) !important;
  background: var(--admin-accent-soft) !important;
  color: var(--admin-accent-strong) !important;
  box-shadow: none;
}

body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_paginate .paginate_button.disabled,
body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_paginate .paginate_button.disabled:hover {
  opacity: 0.45;
  background: transparent !important;
  color: var(--admin-text-soft) !important;
}

body.admin-shell .dt-container.admin-datatable .dt-paging .dt-paging-button.disabled,
body.admin-shell .dt-container.admin-datatable .dt-paging .dt-paging-button.disabled:hover {
  opacity: 0.45;
  background: transparent !important;
  color: var(--admin-text-soft) !important;
}

.admin-auth-page {
  min-height: 100vh;
  background: #f5f7fb;
}

.admin-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.admin-auth-panel,
.admin-auth-visual {
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: auto;
}

.admin-auth-panel {
  width: 100%;
  max-width: 26rem;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--admin-accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-auth-heading {
  margin-top: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
}

.admin-auth-logo {
  display: block;
  width: 100%;
  max-width: 13.75rem;
  height: auto;
}

.admin-auth-heading h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--admin-text);
}

.admin-auth-heading p {
  display: block;
  max-width: 22rem;
  margin: 0;
  color: var(--admin-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.admin-auth-card {
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-auth-form .form-control {
  border-radius: 1rem;
  min-height: 3.35rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.admin-auth-form .form-control:focus {
  border-color: rgba(var(--admin-focus-rgb), 0.38);
  box-shadow: 0 0 0 3px rgba(var(--admin-focus-rgb), 0.1);
}

.admin-auth-page .btn.bg-success {
  background: var(--admin-accent) !important;
  border: 0;
  color: #ffffff !important;
  box-shadow: none;
}

.admin-auth-page .btn.bg-success:hover {
  filter: none;
  transform: none;
}

.admin-auth-form .btn {
  min-height: 3.35rem;
  border-radius: 1rem;
}

.admin-auth-help {
  margin-top: 1.15rem;
  color: var(--admin-text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.admin-auth-help a {
  color: var(--admin-accent-strong);
  font-weight: 800;
}

.admin-auth-visual {
  display: none;
}

.admin-auth-visual::before {
  content: none;
}

.admin-auth-visual-content {
  display: none;
}

.admin-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-auth-visual h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.admin-auth-visual p {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: rgba(248, 250, 252, 0.82);
  font-size: 1rem;
  line-height: 1.8;
}

.admin-auth-stats {
  display: none;
}

.admin-auth-stat {
  display: none;
}

.admin-auth-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.admin-auth-stat span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.85rem;
}

.error-popup {
  background-color: #e17b77 !important;
  width: 100%;
}

@media (min-width: 576px) {
  .col-sm-6 {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-5 {
    width: 41.666667%;
  }

  .col-md-6 {
    width: 50%;
  }

  .col-md-7 {
    width: 58.333333%;
  }

  .col-md-8 {
    width: 66.666667%;
  }

  .col-md-12 {
    width: 100%;
  }

  .mb-md-0 {
    margin-bottom: 0 !important;
  }

  .mb-md-4 {
    margin-bottom: 1.5rem !important;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    width: 33.333333%;
  }

  .col-lg-5 {
    width: 41.666667%;
  }

  .col-lg-6 {
    width: 50%;
  }

  .col-lg-7 {
    width: 58.333333%;
  }

  .col-lg-8 {
    width: 66.666667%;
  }

  .col-lg-12 {
    width: 100%;
  }

  .mb-lg-0 {
    margin-bottom: 0 !important;
  }

  .flex-lg-row {
    flex-direction: row !important;
  }

  .align-items-lg-center {
    align-items: center !important;
  }

  .justify-content-lg-between {
    justify-content: space-between !important;
  }

  .p-lg-4 {
    padding: 1.5rem !important;
  }
}

@media (min-width: 1200px) {
  .col-xl-3 {
    width: 25%;
  }
}

@media (max-width: 1199.98px) {
  body.admin-shell .main-content {
    margin-left: 0;
    padding-top: 5.25rem;
  }

  body.admin-shell.sidebar-collapsed .main-content {
    margin-left: 0;
  }

  body.admin-shell .sidenav {
    transform: translateX(-115%);
  }

  body.admin-shell.sidebar-open .sidenav {
    transform: translateX(0);
  }

  body.admin-shell.sidebar-open .admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-topbar-toggle-mobile,
  .admin-sidebar-close-mobile {
    display: inline-flex;
  }

  .admin-topbar-toggle-desktop {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar-meta {
    position: absolute;
    top: 1rem;
    right: 1.15rem;
    width: auto;
    justify-content: flex-end;
  }

  .admin-topbar-lead {
    width: 100%;
    padding-right: 4rem;
  }

  .admin-auth-shell {
    grid-template-columns: 1fr;
  }

  .admin-auth-panel,
  .admin-auth-visual {
    min-height: auto;
  }

  .admin-auth-visual {
    min-height: 28rem;
  }

  .admin-form-grid,
  .admin-settings-grid,
  .admin-settings-code-grid,
  .admin-form-split,
  .admin-form-media-layout,
  .admin-resource-layout,
  .admin-language-layout,
  .admin-documents-layout,
  .admin-media-grid,
  .admin-feature-grid,
  .admin-gallery-grid,
  .admin-upload-grid,
  .admin-section-fields,
  .admin-settings-fields {
    grid-template-columns: 1fr;
  }

  .admin-form-hero__header,
  .admin-settings-hero__header,
  .admin-section-header,
  .admin-settings-section__header {
    flex-direction: column;
  }

  .admin-form-note,
  .admin-settings-note {
    white-space: normal;
  }

  .admin-resource-layout > .card:first-child {
    order: 2;
  }

  .admin-resource-layout > .card:last-child {
    order: 1;
  }

  .admin-language-layout > .card:first-child {
    order: 2;
  }

  .admin-language-layout > .card:last-child {
    order: 1;
  }

  .admin-documents-layout > .card:first-child {
    order: 2;
  }

  .admin-documents-layout > .card:last-child {
    order: 1;
  }
}

@media (max-width: 767.98px) {
  body.admin-shell .main-content {
    padding: 0.85rem;
    padding-top: 5rem;
  }

  body.admin-shell .card-header,
  body.admin-shell .card-body,
  body.admin-shell .card-footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body.admin-shell .table > :not(caption) > * > * {
    padding: 0.85rem 0.8rem;
  }

  .admin-resource-layout > .card:first-child .table-responsive,
  .admin-language-layout > .card:first-child .table-responsive {
    overflow: visible;
  }

  .admin-documents-layout > .card:first-child .table-responsive {
    overflow: visible;
  }

  .admin-resource-table,
  .admin-resource-table tbody,
  .admin-resource-table tr,
  .admin-resource-table td,
  .admin-language-table,
  .admin-language-table tbody,
  .admin-language-table tr,
  .admin-language-table td,
  .admin-documents-table,
  .admin-documents-table tbody,
  .admin-documents-table tr,
  .admin-documents-table td {
    display: block;
    width: 100%;
  }

  .admin-resource-table thead,
  .admin-language-table thead,
  .admin-documents-table thead {
    display: none;
  }

  .admin-resource-table tbody,
  .admin-language-table tbody,
  .admin-documents-table tbody {
    display: grid;
    gap: 0.85rem;
  }

  .admin-resource-table tbody tr,
  .admin-language-table tbody tr,
  .admin-documents-table tbody tr {
    overflow: visible;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.1rem;
    background: #ffffff;
    box-shadow: var(--admin-shadow-sm);
    cursor: default;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td,
  body.admin-shell .admin-language-table > tbody > tr > td,
  body.admin-shell .admin-documents-table > tbody > tr > td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  body.admin-shell .admin-resource-table > tbody > tr > td:last-child,
  body.admin-shell .admin-language-table > tbody > tr > td:last-child,
  body.admin-shell .admin-documents-table > tbody > tr > td:last-child {
    width: 100% !important;
    border-bottom: 0;
  }

  .admin-resource-table td::before,
  .admin-language-table td::before,
  .admin-documents-table td::before {
    content: attr(data-label);
    color: var(--admin-text-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td[data-card-title] {
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: #f8fafc;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td[data-card-title]::before {
    display: none;
  }

  .admin-resource-table td[data-card-title] .admin-resource-title {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .admin-resource-table td[data-card-title] .admin-resource-title__text {
    max-width: none;
    font-size: 15px;
    font-weight: 700;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.45;
  }

  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Name"] {
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: #f8fafc;
  }

  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Name"]::before {
    display: none;
  }

  body.admin-shell .admin-documents-table > tbody > tr > td[data-label="Başlık"] {
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: #f8fafc;
  }

  body.admin-shell .admin-documents-table > tbody > tr > td[data-label="Başlık"]::before {
    display: none;
  }

  .admin-documents-table td[data-label="Başlık"] .admin-document-title {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .admin-documents-table td[data-label="Başlık"] .admin-document-title__text {
    max-width: none;
    font-size: 15px;
    font-weight: 700;
  }

  .admin-language-table td[data-label="Name"] .admin-language-name {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .admin-language-table td[data-label="Name"] .admin-language-name__title {
    font-size: 15px;
    font-weight: 700;
  }

  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Flag"] {
    align-items: center;
  }

  .admin-resource-media,
  .admin-language-flag-cell,
  .admin-table-actions {
    justify-content: flex-end;
  }

  .admin-document-order,
  .admin-document-file {
    justify-content: flex-end;
  }

  .admin-resource-chip,
  .admin-status-badge,
  .admin-language-code {
    margin-left: auto;
  }

  .admin-language-code {
    min-width: 3.25rem;
  }

  .admin-resource-avatar,
  .admin-language-flag {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8rem;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td.admin-resource-actions-cell,
  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Operations"] {
    display: grid;
    grid-template-columns: 1fr auto auto;
    position: relative;
    align-items: center;
    width: 100% !important;
    overflow: visible;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    background: #fcfcfd;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td.admin-resource-actions-cell--menu-only {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td.admin-resource-actions-cell--menu-only::before,
  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Operations"]::before,
  body.admin-shell .admin-documents-table > tbody > tr > td[data-label="İşlemler"]::before {
    display: none;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td.admin-resource-actions-cell::before,
  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Operations"]::before {
    margin-right: 0;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td.admin-resource-actions-cell .admin-table-actions,
  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Operations"] .admin-table-actions {
    margin-left: auto;
    justify-self: end;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td.admin-resource-actions-cell .admin-mobile-reorder,
  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Operations"] .admin-mobile-reorder {
    display: inline-flex;
    justify-self: end;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td.admin-resource-actions-cell--menu-only,
  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Operations"],
  body.admin-shell .admin-documents-table > tbody > tr > td[data-label="İşlemler"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td.admin-resource-actions-cell--menu-only .admin-mobile-reorder,
  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Operations"] .admin-mobile-reorder,
  body.admin-shell .admin-documents-table > tbody > tr > td[data-label="İşlemler"] .admin-mobile-reorder {
    display: inline-flex;
    justify-content: flex-start;
    margin-left: 0;
  }

  body.admin-shell .admin-resource-table > tbody > tr > td.admin-resource-actions-cell--menu-only .admin-table-actions,
  body.admin-shell .admin-language-table > tbody > tr > td[data-label="Operations"] .admin-table-actions,
  body.admin-shell .admin-documents-table > tbody > tr > td[data-label="İşlemler"] .admin-table-actions {
    margin-left: auto;
    justify-self: auto;
  }

  .admin-documents-table td[data-label="Dosya"] .admin-document-file {
    max-width: 14rem;
  }

  .admin-resource-table td[data-label="Dosya"] .admin-resource-media {
    max-width: 14rem;
  }

  .admin-documents-table td[data-label="Dosya"] .admin-document-file__link {
    max-width: 9rem;
  }

  .admin-resource-table td[data-label="Dosya"] .admin-resource-link {
    max-width: 9rem;
  }

  .admin-repeater-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-repeater-row .btn {
    width: auto;
    min-width: 5.5rem;
    white-space: nowrap;
  }

  .admin-media-card__drag {
    display: none;
  }

  .admin-media-card__reorder {
    display: inline-flex;
  }

  .admin-table-actions .dropdown-menu {
    right: 0;
    left: auto;
    z-index: 80;
  }

  .admin-locale-tabs .nav {
    grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
    gap: 0.4rem;
  }

  .admin-locale-tabs {
    margin-bottom: 0.85rem;
  }

  .admin-locale-tabs .nav-pills {
    padding: 0.28rem;
    border-radius: 1.1rem;
  }

  .admin-locale-tabs .nav-pills .nav-link {
    min-height: 2.8rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.84rem;
    border-radius: 0.9rem;
  }

  .admin-locale-tab__flag {
    width: 1.15rem;
    height: 1.15rem;
  }

  .admin-locale-tabpanes {
    margin-bottom: 0.85rem;
  }

  .admin-textops-code {
    max-width: 11rem;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
  }

  body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_length,
  body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter,
  body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_info,
  body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_paginate {
    float: none !important;
    text-align: left !important;
  }

  body.admin-shell .dt-container.admin-datatable .dt-layout-row:not(.dt-layout-table) {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  body.admin-shell .dt-container.admin-datatable .dt-layout-row:not(.dt-layout-table):first-child,
  body.admin-shell .dt-container.admin-datatable .dt-layout-row:not(.dt-layout-table):last-child {
    grid-template-columns: 1fr;
  }

  body.admin-shell .dt-container.admin-datatable .dt-layout-row:not(.dt-layout-table):first-child {
    padding: 0.75rem;
  }

  body.admin-shell .dt-container.admin-datatable .dt-layout-row.admin-datatable-header:first-child {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
  }

  body.admin-shell .admin-datatable-header__toolbar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-shell .admin-datatable-count,
  body.admin-shell .dt-container.admin-datatable .admin-datatable-search {
    width: 100%;
  }

  body.admin-shell .admin-datatable-count .dt-length {
    width: 100%;
    justify-content: space-between;
  }

  body.admin-shell .dt-container.admin-datatable .dt-layout-start,
  body.admin-shell .dt-container.admin-datatable .dt-layout-end,
  body.admin-shell .dt-container.admin-datatable .dt-search,
  body.admin-shell .dt-container.admin-datatable .dt-length,
  body.admin-shell .dt-container.admin-datatable .dt-paging {
    justify-content: flex-start;
  }

  body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_length label,
  body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter label {
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-shell .dt-container.admin-datatable .dt-length label,
  body.admin-shell .dt-container.admin-datatable .dt-search label {
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter input {
    width: 100%;
    min-width: 0;
  }

  body.admin-shell .dt-container.admin-datatable .dt-search input {
    width: 100%;
    min-width: 0;
  }

  body.admin-shell .dt-container.admin-datatable .dt-length {
    flex-wrap: wrap;
  }

  body.admin-shell .dt-container.admin-datatable .admin-datatable-length-label {
    white-space: normal;
  }

  body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_paginate {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body.admin-shell .dt-container.admin-datatable .dt-paging {
    flex-wrap: wrap;
  }

  .admin-upload-preview--flag {
    min-height: 6rem;
  }

  .admin-form-actions--split,
  .admin-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-submit-btn,
  .admin-settings-submit {
    width: 100%;
    min-width: 0;
  }

  body.admin-shell .w-25 {
    width: 100% !important;
    min-width: 0;
  }

  .admin-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-auth-stats {
    grid-template-columns: 1fr;
  }
}

body.admin-shell.modal-open {
  overflow: hidden;
}

body.admin-shell .modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
  outline: 0;
}

body.admin-shell .modal.show {
  display: block;
}

body.admin-shell .modal-dialog {
  position: relative;
  width: auto;
  max-width: 32rem;
  margin: 1.75rem auto;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.admin-shell .modal.fade .modal-dialog {
  transform: translateY(-1rem);
  opacity: 0;
}

body.admin-shell .modal.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

body.admin-shell .modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

body.admin-shell .modal-sm {
  max-width: 22rem;
}

body.admin-shell .modal-lg {
  max-width: 50rem;
}

body.admin-shell .modal-xl {
  max-width: 72rem;
}

body.admin-shell .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background: #ffffff;
  background-clip: padding-box;
  border: 1px solid var(--admin-border);
  border-radius: 1.25rem;
  box-shadow: var(--admin-shadow-lg);
  outline: 0;
}

body.admin-shell .modal-header,
body.admin-shell .modal-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

body.admin-shell .modal-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-border);
}

body.admin-shell .modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--admin-border);
}

body.admin-shell .modal-title {
  margin: 0;
  color: var(--admin-text);
  font-size: 1rem;
  font-weight: 800;
}

body.admin-shell .modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1.25rem;
}

body.admin-shell .btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--admin-text-muted);
  font-size: 0;
  cursor: pointer;
}

body.admin-shell .btn-close::before {
  content: "x";
  font-size: 1.25rem;
  line-height: 1;
}

body.admin-shell .btn-close:hover {
  background: var(--admin-accent-soft);
  color: var(--admin-text);
}

body.admin-shell .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(15, 23, 42, 0.52);
}

body.admin-shell .modal-backdrop.fade {
  opacity: 0;
}

body.admin-shell .modal-backdrop.show {
  opacity: 1;
}

html[data-theme="dark"] body.admin-shell {
  background: radial-gradient(circle at top, rgba(39, 66, 253, 0.1), transparent 32%), var(--admin-bg);
  color: var(--admin-text);
}

html[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-dark {
  border: 1px solid var(--admin-border) !important;
  border-radius: 0.9rem !important;
  box-shadow: var(--admin-shadow-md) !important;
  background: #0f172a !important;
  color: var(--admin-text) !important;
}

html[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
  padding: 0.55rem 0.7rem !important;
  border-bottom: 1px solid var(--admin-border) !important;
  background: rgba(148, 163, 184, 0.08) !important;
  color: var(--admin-text) !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-series-group.apexcharts-active {
  padding: 0.45rem 0.7rem !important;
}

html[data-theme="dark"] .apexcharts-legend-text {
  color: var(--admin-text-muted) !important;
}

html[data-theme="dark"] body.admin-shell .sidenav,
html[data-theme="dark"] body.admin-shell .admin-topbar,
html[data-theme="dark"] body.admin-shell .card,
html[data-theme="dark"] body.admin-shell .modal-content,
html[data-theme="dark"] body.admin-shell .dropdown-menu,
html[data-theme="dark"] body.admin-shell .select2-dropdown,
html[data-theme="dark"] body.admin-shell .admin-media-card,
html[data-theme="dark"] body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable table.dataTable {
  background: var(--admin-surface) !important;
  border-color: var(--admin-border) !important;
}

html[data-theme="dark"] body.admin-shell .main-content {
  background: transparent;
}

html[data-theme="dark"] .admin-sidebar-header-row {
  background: linear-gradient(135deg, var(--admin-brand-950), #0b1461);
}

html[data-theme="dark"] .admin-brand-title,
html[data-theme="dark"] .admin-topbar-title,
html[data-theme="dark"] body.admin-shell .card-header h5,
html[data-theme="dark"] body.admin-shell .card-header h6,
html[data-theme="dark"] body.admin-shell .table,
html[data-theme="dark"] body.admin-shell .table a,
html[data-theme="dark"] body.admin-shell label,
html[data-theme="dark"] body.admin-shell .form-label,
html[data-theme="dark"] body.admin-shell .modal-title,
html[data-theme="dark"] body.admin-shell .dropdown-item,
html[data-theme="dark"] .admin-resource-title__text,
html[data-theme="dark"] .admin-document-title__text,
html[data-theme="dark"] .admin-resource-link,
html[data-theme="dark"] .admin-document-file__link,
html[data-theme="dark"] .admin-resource-preview__title,
html[data-theme="dark"] .admin-document-preview__title,
html[data-theme="dark"] .admin-media-card__title {
  color: var(--admin-text) !important;
}

html[data-theme="dark"] .admin-brand-subtitle,
html[data-theme="dark"] .admin-breadcrumb .breadcrumb-item,
html[data-theme="dark"] body.admin-shell .card-header p,
html[data-theme="dark"] body.admin-shell .card-header small,
html[data-theme="dark"] body.admin-shell .table thead th,
html[data-theme="dark"] body.admin-shell .numbers p,
html[data-theme="dark"] body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_info,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable .dt-info,
html[data-theme="dark"] .admin-resource-preview__hint,
html[data-theme="dark"] .admin-document-preview__hint,
html[data-theme="dark"] .admin-file-upload__hint,
html[data-theme="dark"] .admin-footer,
html[data-theme="dark"] .admin-footer a {
  color: var(--admin-text-muted) !important;
}

html[data-theme="dark"] body.admin-shell .nav-link:hover,
html[data-theme="dark"] .sidebar-section-trigger:hover,
html[data-theme="dark"] .sidebar-submenu-link:hover,
html[data-theme="dark"] body.admin-shell .table tbody tr:hover,
html[data-theme="dark"] body.admin-shell .dropdown-item:hover,
html[data-theme="dark"] body.admin-shell .dropdown-item:focus,
html[data-theme="dark"] .admin-icon-button:hover,
html[data-theme="dark"] .admin-topbar-toggle:hover,
html[data-theme="dark"] body.admin-shell .btn-outline-dark:hover {
  background: rgba(148, 163, 184, 0.08) !important;
  color: var(--admin-text) !important;
}

html[data-theme="dark"] .admin-topbar-toggle {
  background: var(--admin-surface-strong) !important;
  border-color: var(--admin-border) !important;
  color: var(--admin-text) !important;
}

html[data-theme="dark"] body.admin-shell.sidebar-collapsed .admin-collapse-toggle {
  background: rgba(77, 99, 255, 0.14) !important;
  border-color: rgba(77, 99, 255, 0.22) !important;
  color: var(--admin-brand-100) !important;
}

html[data-theme="dark"] body.admin-shell .nav-link.active,
html[data-theme="dark"] .sidebar-section.is-open .sidebar-section-trigger,
html[data-theme="dark"] .sidebar-submenu-link.active,
html[data-theme="dark"] body.admin-shell .nav-pills .nav-link.active,
html[data-theme="dark"] body.admin-shell .nav-pills .show > .nav-link {
  background: rgba(77, 99, 255, 0.14) !important;
  color: var(--admin-brand-100) !important;
  border-color: rgba(77, 99, 255, 0.2) !important;
}

html[data-theme="dark"] .admin-theme-toggle[aria-pressed="true"] {
  background: rgba(77, 99, 255, 0.14) !important;
  color: var(--admin-brand-100) !important;
  border-color: rgba(77, 99, 255, 0.22) !important;
}

html[data-theme="dark"] body.admin-shell .admin-sidebar-icon,
html[data-theme="dark"] .sidebar-section-icon,
html[data-theme="dark"] .admin-icon-button,
html[data-theme="dark"] .admin-resource-media__icon,
html[data-theme="dark"] .admin-document-file__icon {
  background: rgba(148, 163, 184, 0.06) !important;
  border-color: var(--admin-border) !important;
}

html[data-theme="dark"] body.admin-shell .nav-link.active .icon,
html[data-theme="dark"] body.admin-shell .nav-link.active .icon-shape {
  color: var(--admin-brand-100) !important;
}

html[data-theme="dark"] body.admin-shell .horizontal.dark,
html[data-theme="dark"] .sidebar-logout,
html[data-theme="dark"] body.admin-shell .modal-header,
html[data-theme="dark"] body.admin-shell .modal-footer,
html[data-theme="dark"] body.admin-shell .table > :not(caption) > * > *,
html[data-theme="dark"] body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable thead th,
html[data-theme="dark"] body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable thead td,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable table.dataTable thead th,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable table.dataTable thead td {
  border-color: var(--admin-border) !important;
}

html[data-theme="dark"] body.admin-shell table thead,
html[data-theme="dark"] body.admin-shell table thead tr,
html[data-theme="dark"] body.admin-shell table thead th,
html[data-theme="dark"] body.admin-shell table thead td,
html[data-theme="dark"] body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable thead th,
html[data-theme="dark"] body.admin-shell .dataTables_wrapper.admin-datatable table.dataTable thead td,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable table.dataTable thead th,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable table.dataTable thead td {
  background: rgba(15, 23, 42, 0.72) !important;
}

html[data-theme="dark"] body.admin-shell .form-control,
html[data-theme="dark"] body.admin-shell textarea.form-control,
html[data-theme="dark"] body.admin-shell select.form-control,
html[data-theme="dark"] body.admin-shell .form-select,
html[data-theme="dark"] body.admin-shell .form-control-alternative,
html[data-theme="dark"] body.admin-shell .select2-container .select2-selection--single,
html[data-theme="dark"] body.admin-shell .select2-container .select2-selection--multiple,
html[data-theme="dark"] body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_filter input,
html[data-theme="dark"] body.admin-shell .dataTables_wrapper.admin-datatable .dataTables_length select,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable .dt-search input,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable .dt-length select,
html[data-theme="dark"] body.admin-shell .admin-datatable-control,
html[data-theme="dark"] body.admin-shell .admin-file-upload,
html[data-theme="dark"] .admin-color-field__picker,
html[data-theme="dark"] .admin-resource-preview,
html[data-theme="dark"] .admin-document-preview,
html[data-theme="dark"] .admin-upload-card,
html[data-theme="dark"] .admin-form-panel,
html[data-theme="dark"] .admin-gallery-item,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable .dt-layout-row:not(.dt-layout-table):first-child,
html[data-theme="dark"] body.admin-shell .admin-editor-shell,
html[data-theme="dark"] body.admin-shell .ckeditor-box,
html[data-theme="dark"] body.admin-shell .ckeditor-shell {
  background: var(--admin-surface-strong) !important;
  border-color: var(--admin-border) !important;
  color: var(--admin-text) !important;
}

html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable .dt-layout-row:not(.dt-layout-table):first-child {
  background-image: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable .dt-layout-row.admin-datatable-header:first-child,
html[data-theme="dark"] body.admin-shell .admin-datatable-count .dt-length,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable .admin-datatable-search {
  border-color: var(--admin-border) !important;
}

html[data-theme="dark"] body.admin-shell .admin-datatable-header__title {
  color: var(--admin-text) !important;
}

html[data-theme="dark"] body.admin-shell .admin-datatable-header__subtitle,
html[data-theme="dark"] body.admin-shell .admin-datatable-search-icon {
  color: var(--admin-text-muted) !important;
}

html[data-theme="dark"] body.admin-shell .admin-datatable-header__icon {
  color: var(--admin-text) !important;
}

html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable .dt-layout-row.admin-datatable-header:first-child {
  background: var(--admin-surface) !important;
}

html[data-theme="dark"] body.admin-shell .admin-datatable-count-badge,
html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable .admin-datatable-search {
  background: rgba(15, 23, 42, 0.36) !important;
}

html[data-theme="dark"] body.admin-shell .dt-container.admin-datatable .admin-datatable-search:focus-within {
  background: var(--admin-surface-strong-2) !important;
}


html[data-theme="dark"] body.admin-shell .select2-container--default .select2-selection--multiple .select2-selection__choice,
html[data-theme="dark"] .admin-resource-chip,
html[data-theme="dark"] .admin-language-code,
html[data-theme="dark"] .admin-form-note,
html[data-theme="dark"] .admin-settings-note,
html[data-theme="dark"] body.admin-shell .nav-pills,
html[data-theme="dark"] .admin-resource-preview__link {
  background: rgba(148, 163, 184, 0.08) !important;
  border-color: var(--admin-border) !important;
  color: var(--admin-text) !important;
}

html[data-theme="dark"] body.admin-shell .select2-container--default .select2-search--dropdown .select2-search__field {
  background: var(--admin-surface-strong-2) !important;
  border-color: var(--admin-border) !important;
  color: var(--admin-text) !important;
}

html[data-theme="dark"] body.admin-shell .select2-container--default .select2-search--dropdown .select2-search__field::placeholder,
html[data-theme="dark"] body.admin-shell .select2-container--default .select2-search--dropdown .select2-search__field::-webkit-input-placeholder {
  color: var(--admin-text-muted) !important;
}

html[data-theme="dark"] body.admin-shell .dropdown-item.text-danger,
html[data-theme="dark"] body.admin-shell .dropdown-item.text-danger:hover,
html[data-theme="dark"] body.admin-shell .dropdown-item.text-danger:focus {
  color: #fca5a5 !important;
}

html[data-theme="dark"] body.admin-shell .btn-outline-dark {
  color: var(--admin-brand-100) !important;
  border-color: var(--admin-border) !important;
}

html[data-theme="dark"] body.admin-shell .admin-editor-shell .ck.ck-toolbar,
html[data-theme="dark"] body.admin-shell .ckeditor-box .ck.ck-toolbar,
html[data-theme="dark"] body.admin-shell .ckeditor-shell .ck.ck-toolbar,
html[data-theme="dark"] body.admin-shell .admin-editor-shell .ck-editor__main,
html[data-theme="dark"] body.admin-shell .ckeditor-box .ck-editor__main,
html[data-theme="dark"] body.admin-shell .ckeditor-shell .ck-editor__main,
html[data-theme="dark"] body.admin-shell .admin-editor-shell .ck.ck-editor__editable,
html[data-theme="dark"] body.admin-shell .admin-editor-shell .ck.ck-editor__editable_inline,
html[data-theme="dark"] body.admin-shell .ckeditor-box .ck.ck-editor__editable,
html[data-theme="dark"] body.admin-shell .ckeditor-box .ck.ck-editor__editable_inline,
html[data-theme="dark"] body.admin-shell .ckeditor-shell .ck.ck-editor__editable,
html[data-theme="dark"] body.admin-shell .ckeditor-shell .ck.ck-editor__editable_inline {
  background: var(--admin-surface-strong) !important;
  color: var(--admin-text) !important;
  border-color: var(--admin-border) !important;
}

html[data-theme="dark"] body.admin-shell .admin-editor-shell .ck.ck-toolbar .ck-button:hover,
html[data-theme="dark"] body.admin-shell .admin-editor-shell .ck.ck-toolbar .ck-dropdown__button:hover,
html[data-theme="dark"] body.admin-shell .ckeditor-box .ck.ck-toolbar .ck-button:hover,
html[data-theme="dark"] body.admin-shell .ckeditor-box .ck.ck-toolbar .ck-dropdown__button:hover,
html[data-theme="dark"] body.admin-shell .ckeditor-shell .ck.ck-toolbar .ck-button:hover,
html[data-theme="dark"] body.admin-shell .ckeditor-shell .ck.ck-toolbar .ck-dropdown__button:hover {
  background: rgba(148, 163, 184, 0.08) !important;
}

html[data-theme="dark"] body.admin-shell .bg-white,
html[data-theme="dark"] body.admin-shell .hover\:bg-white:hover {
  background: var(--admin-surface) !important;
}

html[data-theme="dark"] body.admin-shell .bg-slate-50,
html[data-theme="dark"] body.admin-shell .bg-slate-50\/70,
html[data-theme="dark"] body.admin-shell .bg-slate-50\/80,
html[data-theme="dark"] body.admin-shell .bg-slate-100 {
  background: rgba(148, 163, 184, 0.08) !important;
}

html[data-theme="dark"] body.admin-shell .bg-slate-300 {
  background: rgba(148, 163, 184, 0.22) !important;
}

html[data-theme="dark"] body.admin-shell .bg-slate-200 {
  background: rgba(148, 163, 184, 0.14) !important;
}

html[data-theme="dark"] body.admin-shell .bg-emerald-100 {
  background: rgba(16, 185, 129, 0.18) !important;
}

html[data-theme="dark"] body.admin-shell .admin-switch-chip--off {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--admin-text-soft);
}

html[data-theme="dark"] body.admin-shell .admin-switch-chip--on {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

html[data-theme="dark"] body.admin-shell .admin-switch-visual {
  background: rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] body.admin-shell .admin-switch-visual.is-active {
  background: rgba(var(--admin-focus-rgb), 0.34);
  box-shadow: inset 0 0 0 1px rgba(var(--admin-focus-rgb), 0.28);
}

html[data-theme="dark"] body.admin-shell .admin-switch-thumb {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.4);
}

html[data-theme="dark"] body.admin-shell .text-emerald-700 {
  color: #6ee7b7 !important;
}

html[data-theme="dark"] body.admin-shell .hover\:bg-slate-50:hover,
html[data-theme="dark"] body.admin-shell .hover\:bg-slate-100:hover,
html[data-theme="dark"] body.admin-shell tr.hover\:bg-slate-50:hover,
html[data-theme="dark"] body.admin-shell tr.hover\:bg-slate-100:hover {
  background: rgba(148, 163, 184, 0.08) !important;
}

html[data-theme="dark"] body.admin-shell .table tbody tr:hover > *,
html[data-theme="dark"] body.admin-shell tr.hover\:bg-slate-50:hover > *,
html[data-theme="dark"] body.admin-shell tr.hover\:bg-slate-100:hover > * {
  background: transparent !important;
  color: var(--admin-text) !important;
}

html[data-theme="dark"] body.admin-shell .border-slate-100,
html[data-theme="dark"] body.admin-shell .border-slate-200,
html[data-theme="dark"] body.admin-shell .border-slate-200\/70 {
  border-color: var(--admin-border) !important;
}

html[data-theme="dark"] body.admin-shell .text-slate-950,
html[data-theme="dark"] body.admin-shell .text-slate-900,
html[data-theme="dark"] body.admin-shell .text-slate-800,
html[data-theme="dark"] body.admin-shell .text-slate-700 {
  color: var(--admin-text) !important;
}

html[data-theme="dark"] body.admin-shell .text-slate-600,
html[data-theme="dark"] body.admin-shell .text-slate-500 {
  color: var(--admin-text-muted) !important;
}

html[data-theme="dark"] body.admin-shell .text-slate-400,
html[data-theme="dark"] body.admin-shell .text-slate-300 {
  color: var(--admin-text-soft) !important;
}

html[data-theme="dark"] body.admin-shell .text-brand-950,
html[data-theme="dark"] body.admin-shell .text-brand-900,
html[data-theme="dark"] body.admin-shell .text-brand-800,
html[data-theme="dark"] body.admin-shell .text-brand-700,
html[data-theme="dark"] body.admin-shell .text-brand-600,
html[data-theme="dark"] body.admin-shell .hover\:text-brand-900:hover,
html[data-theme="dark"] body.admin-shell .hover\:text-brand-600:hover {
  color: var(--admin-brand-100) !important;
}

html[data-theme="dark"] body.admin-shell .bg-brand-50 {
  background: rgba(77, 99, 255, 0.14) !important;
}

html[data-theme="dark"] body.admin-shell .hover\:bg-brand-950:hover {
  background: var(--admin-brand-950) !important;
}

html[data-theme="dark"] body.admin-shell .hover\:bg-brand-900:hover {
  background: var(--admin-brand-900) !important;
}

html[data-theme="dark"] body.admin-shell .hover\:bg-brand-600:hover {
  background: var(--admin-brand-600) !important;
}

html[data-theme="dark"] body.admin-shell .border-brand-200,
html[data-theme="dark"] body.admin-shell .hover\:border-brand-200:hover {
  border-color: rgba(77, 99, 255, 0.26) !important;
}

html[data-theme="dark"] body.admin-shell .hover\:border-brand-300:hover,
html[data-theme="dark"] body.admin-shell .hover\:border-brand-600:hover {
  border-color: rgba(77, 99, 255, 0.34) !important;
}

html[data-theme="dark"] body.admin-shell .text-white,
html[data-theme="dark"] body.admin-shell .hover\:text-white:hover {
  color: #ffffff !important;
}

body.admin-shell .vc {
  z-index: 1025;
  border-color: var(--admin-border) !important;
  box-shadow: var(--admin-shadow-md) !important;
}

body.admin-shell .vc-date:hover {
  color: var(--admin-brand-600) !important;
}

body.admin-shell .vc-date:hover::before {
  border-color: var(--admin-brand-600) !important;
}

body.admin-shell .vc-date[data-vc-date-today],
body.admin-shell .vc-date[data-vc-date-selected],
body.admin-shell .vc-months__month[data-vc-months-month-selected],
body.admin-shell .vc-years__year[data-vc-years-year-selected] {
  background: var(--admin-brand-600) !important;
  border-color: var(--admin-brand-600) !important;
}

body.admin-shell .vc-date[data-vc-date-hover]:not([data-vc-date-today]):not([data-vc-date-hover="first-and-last"]),
body.admin-shell .vc-date[data-vc-date-selected="middle"] {
  background: rgba(77, 99, 255, 0.12) !important;
}

html[data-theme="dark"] body.admin-shell .vc {
  background: var(--admin-surface) !important;
  border-color: var(--admin-border) !important;
}

html[data-theme="dark"] body.admin-shell .vc-date,
html[data-theme="dark"] body.admin-shell .vc-month,
html[data-theme="dark"] body.admin-shell .vc-year,
html[data-theme="dark"] body.admin-shell .vc-months__month,
html[data-theme="dark"] body.admin-shell .vc-years__year {
  color: var(--admin-text) !important;
}

html[data-theme="dark"] body.admin-shell .vc-date[data-vc-date-month="prev"],
html[data-theme="dark"] body.admin-shell .vc-date[data-vc-date-month="next"],
html[data-theme="dark"] body.admin-shell .vc-week__day {
  color: var(--admin-text-soft) !important;
}

.dt-column-header {
    position: relative !important;
}

.dt-column-order {
    position: absolute !important;
    right: 0 !important;
}

/* Offer detail/history/revision pages preline bridge */
body.admin-shell .offer-preline-bridge .container-fluid {
  padding-top: 1rem !important;
  padding-bottom: 2rem !important;
}

body.admin-shell .offer-preline-bridge .section-header {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

body.admin-shell .offer-preline-bridge .section-header .section-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-card-icon);
  color: var(--admin-brand-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.admin-shell .offer-preline-bridge .section-header h5,
body.admin-shell .offer-preline-bridge .section-header h6 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--admin-text);
  letter-spacing: -0.02em;
}

body.admin-shell .offer-preline-bridge .card {
  border-radius: 0.875rem !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface) !important;
  box-shadow: var(--admin-shadow-sm) !important;
  overflow: hidden;
}

body.admin-shell .offer-preline-bridge .card-header {
  border-bottom: 1px solid var(--admin-border) !important;
  background: transparent !important;
  padding: 0.875rem 1rem !important;
}

body.admin-shell .offer-preline-bridge .card-body {
  padding: 0.875rem 1rem !important;
}

body.admin-shell .offer-preline-bridge .card-header h5,
body.admin-shell .offer-preline-bridge .card-header h6 {
  margin: 0;
  color: var(--admin-text);
  font-weight: 700;
}

body.admin-shell .offer-preline-bridge .text-secondary,
body.admin-shell .offer-preline-bridge small,
body.admin-shell .offer-preline-bridge .text-muted {
  color: var(--admin-text-muted) !important;
}

body.admin-shell .offer-preline-bridge .text-dark,
body.admin-shell .offer-preline-bridge .font-weight-bold,
body.admin-shell .offer-preline-bridge .font-weight-bolder {
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-bridge .border,
body.admin-shell .offer-preline-bridge .border-top,
body.admin-shell .offer-preline-bridge .border-bottom,
body.admin-shell .offer-preline-bridge .border-start,
body.admin-shell .offer-preline-bridge .border-end {
  border-color: var(--admin-border) !important;
}

body.admin-shell .offer-preline-bridge .bg-light,
body.admin-shell .offer-preline-bridge .bg-light-soft,
body.admin-shell .offer-preline-bridge .bg-gray-50,
body.admin-shell .offer-preline-bridge .bg-gray-100 {
  background: var(--admin-surface-strong-2) !important;
}

body.admin-shell .offer-preline-bridge .table {
  margin-bottom: 0 !important;
  border-color: var(--admin-border) !important;
}

body.admin-shell .offer-preline-bridge .table thead th {
  border-bottom-color: var(--admin-border) !important;
  color: var(--admin-text-soft) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.11em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}

body.admin-shell .offer-preline-bridge .table td,
body.admin-shell .offer-preline-bridge .table th {
  border-color: var(--admin-border) !important;
  vertical-align: middle;
}

body.admin-shell .offer-preline-bridge .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: transparent !important;
}

body.admin-shell .offer-preline-bridge .table-hover > tbody > tr:hover > * ,
body.admin-shell .offer-preline-bridge .table tbody tr:hover > * {
  background: var(--admin-surface-hover) !important;
}

body.admin-shell .offer-preline-bridge .btn {
  min-height: 2rem;
  border-radius: 0.5rem !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface) !important;
  color: var(--admin-text) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.admin-shell .offer-preline-bridge .btn:hover {
  border-color: var(--admin-border-strong) !important;
  background: var(--admin-surface-hover) !important;
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-bridge .btn.btn-info,
body.admin-shell .offer-preline-bridge .btn.btn-success,
body.admin-shell .offer-preline-bridge .btn.btn-warning,
body.admin-shell .offer-preline-bridge .btn.btn-dark,
body.admin-shell .offer-preline-bridge .btn.bg-gradient-success,
body.admin-shell .offer-preline-bridge .btn.bg-gradient-dark {
  background: var(--admin-brand-950) !important;
  border-color: var(--admin-brand-950) !important;
  color: #fff !important;
}

body.admin-shell .offer-preline-bridge .btn.btn-info:hover,
body.admin-shell .offer-preline-bridge .btn.btn-success:hover,
body.admin-shell .offer-preline-bridge .btn.btn-warning:hover,
body.admin-shell .offer-preline-bridge .btn.btn-dark:hover,
body.admin-shell .offer-preline-bridge .btn.bg-gradient-success:hover,
body.admin-shell .offer-preline-bridge .btn.bg-gradient-dark:hover {
  background: var(--admin-brand-900) !important;
  border-color: var(--admin-brand-900) !important;
  color: #fff !important;
}

body.admin-shell .offer-preline-bridge .btn.btn-outline-danger,
body.admin-shell .offer-preline-bridge .btn.btn-outline-info,
body.admin-shell .offer-preline-bridge .btn.btn-outline-secondary,
body.admin-shell .offer-preline-bridge .btn.btn-outline-dark,
body.admin-shell .offer-preline-bridge .btn.btn-secondary,
body.admin-shell .offer-preline-bridge .btn.bg-gradient-secondary {
  background: var(--admin-surface) !important;
  border-color: var(--admin-border) !important;
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-bridge .btn.btn-outline-danger {
  border-color: rgba(244, 63, 94, 0.35) !important;
  color: #e11d48 !important;
}

body.admin-shell .offer-preline-bridge .btn.btn-outline-danger:hover {
  background: rgba(244, 63, 94, 0.08) !important;
}

body.admin-shell .offer-preline-bridge .badge {
  border-radius: 9999px !important;
  border: 1px solid var(--admin-border) !important;
  padding: 0.22rem 0.55rem !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
}

body.admin-shell .offer-preline-bridge .modal-content {
  border-radius: 0.875rem !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface) !important;
}

body.admin-shell .offer-preline-bridge .modal-header,
body.admin-shell .offer-preline-bridge .modal-footer {
  border-color: var(--admin-border) !important;
}

body.admin-shell .offer-preline-bridge .form-control,
body.admin-shell .offer-preline-bridge .form-select {
  min-height: 2.5rem;
  border-radius: 0.5rem !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface-strong) !important;
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-bridge .timeline .timeline-step {
  border-color: var(--admin-border) !important;
  background: var(--admin-surface-strong) !important;
}

/* Offer add/edit wizard preline bridge */
body.admin-shell .offer-preline-wizard .container-fluid {
  padding-top: 1rem !important;
  padding-bottom: 1.75rem !important;
}

body.admin-shell .offer-preline-wizard .wizard-container {
  max-width: 100% !important;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}

body.admin-shell .offer-preline-wizard .wizard-header-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--admin-border);
  border-radius: 1.45rem;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-sm);
  padding: 0.9rem 1rem;
}

body.admin-shell .offer-preline-wizard .wizard-header-card__left {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

body.admin-shell .offer-preline-wizard .wizard-header-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-card-icon);
  color: var(--admin-brand-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

body.admin-shell .offer-preline-wizard .wizard-header-card__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-text-soft);
}

body.admin-shell .offer-preline-wizard .wizard-header-card__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

body.admin-shell .offer-preline-wizard .wizard-header-card__desc {
  margin: 0.35rem 0 0;
  max-width: 52rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--admin-text-muted);
}

body.admin-shell .offer-preline-wizard .wizard-header-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.admin-shell .offer-preline-wizard .wizard-steps {
  margin-bottom: 0 !important;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--admin-border);
  border-radius: 0.875rem;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-sm);
}

body.admin-shell .offer-preline-wizard .wizard-steps::before {
  left: 1.45rem !important;
  right: 1.45rem !important;
  top: 1.48rem !important;
  height: 1px !important;
  background: var(--admin-border) !important;
}

body.admin-shell .offer-preline-wizard .wizard-step-circle {
  width: 2.1rem !important;
  height: 2.1rem !important;
  margin-bottom: 0.4rem !important;
  border-radius: 999px !important;
  border-color: var(--admin-border) !important;
  background: var(--admin-surface-strong) !important;
  color: var(--admin-text-soft) !important;
  font-size: 0.74rem !important;
}

body.admin-shell .offer-preline-wizard .wizard-step.active .wizard-step-circle {
  background: var(--admin-brand-950) !important;
  border-color: var(--admin-brand-950) !important;
  color: #ffffff !important;
}

body.admin-shell .offer-preline-wizard .wizard-step.completed .wizard-step-circle {
  background: var(--admin-success) !important;
  border-color: var(--admin-success) !important;
  color: #ffffff !important;
}

body.admin-shell .offer-preline-wizard .wizard-step-label {
  color: var(--admin-text-soft) !important;
  font-weight: 500 !important;
}

body.admin-shell .offer-preline-wizard .wizard-step.active .wizard-step-label {
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-wizard .wizard-content.card {
  border-radius: 0.875rem !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface) !important;
  box-shadow: var(--admin-shadow-sm) !important;
  min-height: auto !important;
}

body.admin-shell .offer-preline-wizard .wizard-content {
  padding: 0.95rem 1rem !important;
}

body.admin-shell .offer-preline-wizard .section-header {
  display: inline-flex !important;
  align-items: center;
  gap: 0.75rem;
}

body.admin-shell .offer-preline-wizard .section-header .section-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-card-icon) !important;
  color: var(--admin-brand-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] body.admin-shell .offer-preline-wizard .wizard-header-card__icon,
html[data-theme="dark"] body.admin-shell .offer-preline-wizard .section-header .section-icon {
  color: var(--admin-brand-200);
}

body.admin-shell .offer-preline-wizard .section-header h5,
body.admin-shell .offer-preline-wizard .section-header h6 {
  color: var(--admin-text);
  font-size: 1rem;
  font-weight: 500;
}

body.admin-shell .offer-preline-wizard .wizard-buttons {
  margin-top: 1.2rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid var(--admin-border) !important;
}

body.admin-shell .offer-preline-wizard .alert.alert-light {
  border-radius: 0.625rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-strong-2);
  color: var(--admin-text-muted);
}

body.admin-shell .offer-preline-wizard .autocomplete-dropdown {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-md);
}

body.admin-shell .offer-preline-wizard .autocomplete-item {
  border-bottom: 1px solid var(--admin-border);
}

body.admin-shell .offer-preline-wizard .autocomplete-item .company-name {
  color: var(--admin-text);
}

body.admin-shell .offer-preline-wizard .autocomplete-item .person-name {
  color: var(--admin-text-soft);
}

body.admin-shell .offer-preline-wizard .autocomplete-item:hover {
  background: var(--admin-surface-strong-2);
  color: var(--admin-text);
}

body.admin-shell .offer-preline-wizard .autocomplete-item:hover .company-name {
  color: var(--admin-text);
}

body.admin-shell .offer-preline-wizard .form-label {
  color: var(--admin-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

body.admin-shell .offer-preline-wizard .preview-item {
  border-color: var(--admin-border) !important;
  background: var(--admin-surface-strong-2) !important;
}

@media (max-width: 992px) {
  body.admin-shell .offer-preline-wizard .wizard-header-card {
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-shell .offer-preline-wizard .wizard-header-card__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  body.admin-shell .offer-preline-wizard .wizard-content {
    padding: 0.75rem !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-steps {
    overflow-x: auto;
    gap: 0.25rem;
  }

  body.admin-shell .offer-preline-wizard .wizard-step {
    min-width: 3rem;
  }
}

/* Offer add/edit - stronger preline language */
body.admin-shell .offer-preline-wizard .wizard-form-step {
  display: none;
  border: 1px solid var(--admin-border);
  border-radius: 0.95rem;
  background: var(--admin-surface);
  padding: 0.95rem;
}

body.admin-shell .offer-preline-wizard .wizard-form-step.active {
  display: block;
  animation: fadeIn 0.24s ease;
}

body.admin-shell .offer-preline-wizard .wizard-form-step .section-header {
  margin-bottom: 0.9rem;
}

body.admin-shell .offer-preline-wizard .row {
  --bs-gutter-x: 0.9rem;
}

body.admin-shell .offer-preline-wizard .form-control,
body.admin-shell .offer-preline-wizard .form-select,
body.admin-shell .offer-preline-wizard .input-group-text {
  min-height: 2.52rem !important;
  border-radius: 0.62rem !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface-strong) !important;
  color: var(--admin-text) !important;
  font-size: 0.84rem !important;
}

body.admin-shell .offer-preline-wizard textarea.form-control {
  min-height: 7.25rem !important;
}

body.admin-shell .offer-preline-wizard .form-control:focus,
body.admin-shell .offer-preline-wizard .form-select:focus {
  border-color: rgba(var(--admin-focus-rgb), 0.9) !important;
  box-shadow: 0 0 0 0.2rem rgba(var(--admin-focus-rgb), 0.12) !important;
}

body.admin-shell .offer-preline-wizard .input-group > .form-control {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

body.admin-shell .offer-preline-wizard .input-group > .input-group-text {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

body.admin-shell .offer-preline-wizard .table-responsive {
  border: 1px solid var(--admin-border);
  border-radius: 0.82rem;
  background: var(--admin-surface);
  overflow: auto;
}

body.admin-shell .offer-preline-wizard .table-minimal {
  margin-bottom: 0 !important;
}

body.admin-shell .offer-preline-wizard .table-minimal thead th {
  background: var(--admin-surface-strong-2);
  color: var(--admin-text-soft);
  font-size: 0.66rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  border-bottom: 1px solid var(--admin-border) !important;
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
}

body.admin-shell .offer-preline-wizard .table-minimal tbody td {
  border-bottom: 1px solid var(--admin-border);
}

body.admin-shell .offer-preline-wizard .table-minimal tbody tr:last-child td {
  border-bottom: none;
}

body.admin-shell .offer-preline-wizard #discountsContainer,
body.admin-shell .offer-preline-wizard #singleDiscountContainer > div,
body.admin-shell .offer-preline-wizard #salesProfitContainer {
  margin-inline: 0 !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 0.82rem !important;
  background: var(--admin-surface-strong-2) !important;
  padding: 0.8rem !important;
}

body.admin-shell .offer-preline-wizard #discountsContainer .discount-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.62rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  padding: 0.45rem 0.6rem;
}

body.admin-shell .offer-preline-wizard .attribute-search {
  margin-bottom: 0.75rem;
}

body.admin-shell .offer-preline-wizard .selected-attributes-container {
  margin-bottom: 0.75rem;
  border: 1px dashed var(--admin-border-strong);
  border-radius: 0.82rem;
  background: var(--admin-surface-strong-2);
  padding: 0.72rem;
}

body.admin-shell .offer-preline-wizard #selectedattributesList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

body.admin-shell .offer-preline-wizard .attributes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 16rem;
  overflow: auto;
  padding-right: 0.2rem;
}

body.admin-shell .offer-preline-wizard .attribute-badge {
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.34rem 0.66rem;
}

body.admin-shell .offer-preline-wizard .attribute-badge:hover {
  border-color: rgba(var(--admin-focus-rgb), 0.5);
  background: var(--admin-surface-hover);
  color: var(--admin-text);
}

body.admin-shell .offer-preline-wizard .attribute-badge.selected {
  border-color: var(--admin-brand-950);
  background: var(--admin-brand-950);
  color: #ffffff;
}

body.admin-shell .offer-preline-wizard #currency_information {
  border: 1px solid var(--admin-border);
  border-radius: 0.82rem;
  background: var(--admin-surface-strong-2);
  padding: 0.75rem;
}

body.admin-shell .offer-preline-wizard .offer-details-grid {
  margin-top: 0.1rem;
}

body.admin-shell .offer-preline-wizard .offer-field-shell {
  border: 1px solid var(--admin-border);
  border-radius: 0.72rem;
  background: var(--admin-surface-strong);
  padding: 0.22rem;
}

body.admin-shell .offer-preline-wizard .offer-field-shell > .form-control,
body.admin-shell .offer-preline-wizard .offer-field-shell > .form-select {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.admin-shell .offer-preline-wizard .offer-rate-toggle-row {
  padding: 0.5rem 0.55rem;
  border: 1px dashed var(--admin-border-strong);
  border-radius: 0.72rem;
  background: var(--admin-surface);
}

body.admin-shell .offer-preline-wizard .offer-vat-row {
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--admin-border);
  border-radius: 0.72rem;
  background: var(--admin-surface-strong);
  min-height: 2.3rem;
  gap: 0.45rem !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
}

body.admin-shell .offer-preline-wizard .offer-vat-row > span {
  font-size: 0.78rem;
  font-weight: 600 !important;
  white-space: nowrap;
}

body.admin-shell .offer-preline-wizard .offer-vat-row .admin-switch-control {
  gap: 0.32rem;
}

body.admin-shell .offer-preline-wizard .offer-vat-row .admin-switch-chip {
  min-height: 1.4rem;
  padding: 0 0.5rem;
  font-size: 0.62rem;
}

body.admin-shell .offer-preline-wizard .offer-vat-row .admin-switch-visual {
  width: 2.65rem;
  height: 1.5rem;
}

body.admin-shell .offer-preline-wizard .offer-vat-row .admin-switch-thumb {
  width: 1.2rem;
  height: 1.2rem;
}

body.admin-shell .offer-preline-wizard .offer-vat-row .admin-switch-visual.is-active .admin-switch-thumb {
  transform: translateX(1.12rem);
}

body.admin-shell .offer-preline-wizard .preview-section {
  margin-bottom: 0.75rem;
  border: 1px solid var(--admin-border);
  border-radius: 0.82rem;
  background: var(--admin-surface-strong);
  padding: 0.75rem;
}

body.admin-shell .offer-preline-wizard .preview-section > h6 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: var(--admin-text);
  font-size: 0.84rem;
  font-weight: 700;
}

body.admin-shell .offer-preline-wizard .preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 0;
  padding-top: 0.18rem;
  margin-top: 0.18rem;
}

body.admin-shell .offer-preline-wizard .preview-label {
  color: var(--admin-text-soft);
  font-size: 0.75rem;
}

body.admin-shell .offer-preline-wizard .preview-value {
  color: var(--admin-text);
  font-size: 0.77rem;
  font-weight: 600;
  text-align: right;
}

body.admin-shell .offer-preline-wizard .preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

body.admin-shell .offer-preline-wizard .preview-section--products,
body.admin-shell .offer-preline-wizard .preview-section--offer {
  grid-column: 1 / -1;
}

body.admin-shell .offer-preline-wizard .preview-attr-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0.45rem 0.45rem 0;
  border-radius: 9999px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-hover);
  color: var(--admin-text);
  padding: 0.24rem 0.56rem;
  font-size: 0.68rem;
  font-weight: 700;
}

body.admin-shell .offer-preline-wizard .preview-products-table thead th {
  white-space: nowrap;
  font-size: 0.64rem !important;
  letter-spacing: 0.08em !important;
}

body.admin-shell .offer-preline-wizard .preview-products-table tbody td {
  font-size: 0.74rem;
  vertical-align: middle;
}

body.admin-shell .offer-preline-wizard .preview-products-table tbody tr.bg-light {
  background: var(--admin-surface-hover) !important;
}

body.admin-shell .offer-preline-wizard #notesModal .modal-content {
  border-radius: 0.95rem !important;
}

body.admin-shell .offer-preline-wizard #notesModal .modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--admin-text);
}

body.admin-shell .offer-preline-wizard #notesModal .btn-close {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.52rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-strong);
  opacity: 1;
}

body.admin-shell .offer-preline-wizard #notesModal .list-group-item {
  border-color: var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
  transition: background-color 0.2s ease;
}

body.admin-shell .offer-preline-wizard #notesModal .list-group-item:hover {
  background: var(--admin-surface-hover);
}

body.admin-shell .offer-preline-wizard .wizard-buttons {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
}

body.admin-shell .offer-preline-wizard .wizard-buttons .btn {
  min-height: 2.25rem !important;
  border-radius: 0.62rem !important;
  padding-inline: 0.88rem !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

body.admin-shell .offer-preline-wizard .wizard-buttons #nextBtn,
body.admin-shell .offer-preline-wizard .wizard-buttons #submitBtn {
  background: var(--admin-brand-950) !important;
  border-color: var(--admin-brand-950) !important;
  color: #ffffff !important;
}

body.admin-shell .offer-preline-wizard .wizard-buttons #nextBtn:hover,
body.admin-shell .offer-preline-wizard .wizard-buttons #submitBtn:hover {
  background: var(--admin-brand-900) !important;
  border-color: var(--admin-brand-900) !important;
}

body.admin-shell .offer-preline-wizard .wizard-buttons #prevBtn {
  background: var(--admin-surface) !important;
  border-color: var(--admin-border) !important;
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-wizard .wizard-buttons #prevBtn:hover {
  background: var(--admin-surface-hover) !important;
}

body.admin-shell .offer-preline-wizard .select2-container--default .select2-selection--single,
body.admin-shell .offer-preline-wizard .select2-container--default .select2-selection--multiple {
  min-height: 2.52rem !important;
  border-radius: 0.62rem !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface-strong) !important;
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-wizard .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--admin-text) !important;
  line-height: 2.5rem !important;
  padding-inline: 0.75rem !important;
}

body.admin-shell .offer-preline-wizard .select2-dropdown {
  border-radius: 0.62rem !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface) !important;
  box-shadow: var(--admin-shadow-md) !important;
}

body.admin-shell .offer-preline-wizard .select2-results__option {
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-wizard .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--admin-surface-hover) !important;
  color: var(--admin-text) !important;
}

/* Offer wizard - targeted fixes */
body.admin-shell .offer-preline-wizard #attributesContainer,
body.admin-shell .offer-preline-wizard .attributes-container {
  border: 1px solid var(--admin-border) !important;
  border-radius: 0.82rem !important;
  background: var(--admin-surface-strong-2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.admin-shell .offer-preline-wizard .sub-products-selector {
  width: 100% !important;
  margin: 0.35rem 0 !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 0.82rem !important;
  background: var(--admin-surface-strong-2) !important;
  box-shadow: none !important;
  padding: 0.7rem !important;
}

body.admin-shell .offer-preline-wizard .sub-products-selector .selected-sub-products-table {
  margin: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}

body.admin-shell .offer-preline-wizard .sub-products-selector .selected-sub-products-table thead th {
  border-bottom: 1px solid var(--admin-border) !important;
  color: var(--admin-text-soft) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem !important;
  font-weight: 700;
  background: transparent !important;
  white-space: nowrap;
}

body.admin-shell .offer-preline-wizard .selected-sub-products-body tr {
  background: var(--admin-surface) !important;
}

body.admin-shell .offer-preline-wizard .selected-sub-products-body td {
  border-bottom: 1px solid var(--admin-border) !important;
  color: var(--admin-text) !important;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

body.admin-shell .offer-preline-wizard .sub-product-prices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(10.5rem, 1fr));
  gap: 0.45rem 0.55rem;
  align-items: start;
}

body.admin-shell .offer-preline-wizard .sub-product-price-cell {
  min-width: 0;
}

body.admin-shell .offer-preline-wizard .sub-product-price-input-group {
  margin-bottom: 0 !important;
}

body.admin-shell .offer-preline-wizard .sub-product-price-input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.admin-shell .offer-preline-wizard .sub-product-price-currency {
  min-width: 2.6rem;
  justify-content: center;
}

body.admin-shell .offer-preline-wizard .sub-product-price-output {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

body.admin-shell .offer-preline-wizard .sub-product-price-badge {
  min-width: 4.9rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1199.98px) {
  body.admin-shell .offer-preline-wizard .sub-product-prices-grid {
    grid-template-columns: repeat(2, minmax(9.2rem, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.admin-shell .offer-preline-wizard .sub-product-prices-grid {
    grid-template-columns: 1fr;
  }
}

body.admin-shell .offer-preline-wizard .selected-sub-products-body tr:last-child td {
  border-bottom: none !important;
}

body.admin-shell .offer-preline-wizard .selected-sub-products-body .text-dark,
body.admin-shell .offer-preline-wizard .selected-sub-products-body .fw-bold {
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-wizard .selected-sub-products-body .text-muted,
body.admin-shell .offer-preline-wizard .selected-sub-products-body .fw-normal {
  color: var(--admin-text-soft) !important;
}

body.admin-shell .offer-preline-wizard #vatRateContainer {
  margin-left: 0.5rem !important;
}

body.admin-shell .offer-preline-wizard .offer-vat-row #vatRateContainer {
  margin-left: 0.35rem !important;
  display: inline-flex;
  align-items: center;
}

body.admin-shell .offer-preline-wizard #vatRateContainer .input-group {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: auto;
}

body.admin-shell .offer-preline-wizard #vatRateContainer .form-control {
  width: 5.2rem !important;
  min-width: 5.2rem;
  flex: 0 0 5.2rem;
}

body.admin-shell .offer-preline-wizard .offer-vat-row #vatRateContainer .form-control {
  width: 4.8rem !important;
  min-width: 4.8rem;
  flex: 0 0 4.8rem;
}

body.admin-shell .offer-preline-wizard .offer-vat-row #vatRateContainer .input-group-text {
  min-width: 1.75rem;
  padding-inline: 0.45rem;
}

body.admin-shell .offer-preline-wizard #vatRateContainer .input-group-text {
  min-width: 2rem;
  flex: 0 0 auto;
  padding-inline: 0.55rem;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  line-height: 1;
}

/* Main products table + child rows */
body.admin-shell .offer-preline-wizard #productsTable {
  border-collapse: separate;
  border-spacing: 0;
}

body.admin-shell .offer-preline-wizard #productsTable thead th {
  background: var(--admin-surface-strong-2) !important;
  border-bottom: 1px solid var(--admin-border) !important;
  color: var(--admin-text-soft) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.72rem 0.65rem !important;
}

body.admin-shell .offer-preline-wizard #productsTable tbody td {
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text);
  padding: 0.72rem 0.65rem !important;
  background: var(--admin-surface);
}

body.admin-shell .offer-preline-wizard #productsTable tbody tr:hover > td {
  background: rgba(248, 250, 252, 0.88) !important;
}

body.admin-shell .offer-preline-wizard #productsTable tbody tr.table-active > td {
  background: var(--admin-surface-strong-2) !important;
}

body.admin-shell .offer-add-page #productsTable thead th {
  padding: 0.55rem 0.55rem !important;
}

body.admin-shell .offer-add-page #productsTable tbody td {
  padding: 0.5rem 0.55rem !important;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

body.admin-shell .offer-add-page #productsTable tbody tr:not(.table-active):hover > td {
  background: rgba(248, 250, 252, 0.88) !important;
}

body.admin-shell .offer-add-page #productsTable tbody tr.table-active:hover > td {
  background: rgba(248, 250, 252, 0.88) !important;
}

body.admin-shell .offer-add-page #productsTable .form-control,
body.admin-shell .offer-add-page #productsTable .form-select,
body.admin-shell .offer-add-page #productsTable .input-group-text {
  min-height: 1.9rem !important;
  padding: 0.22rem 0.5rem !important;
}

body.admin-shell .offer-add-page #productsTable .product-info h6 {
  margin-bottom: 0.1rem;
  line-height: 1.2;
  max-width: 18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin-shell .offer-add-page #productsTable .product-info p {
  line-height: 1.2;
}

body.admin-shell .offer-add-page #productsTable .product-cell-controls.is-collapsed .product-description {
  display: none;
}

body.admin-shell .offer-add-page #productsTable .price-container {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.1rem 0.15rem;
  min-height: 1.8rem;
}

body.admin-shell .offer-add-page #productsTable .product-quantity {
  min-height: 1.85rem !important;
}

html[data-theme="dark"] body.admin-shell .offer-preline-wizard #productsTable tbody tr:hover > td,
html[data-theme="dark"] body.admin-shell .offer-add-page #productsTable tbody tr:not(.table-active):hover > td,
html[data-theme="dark"] body.admin-shell .offer-add-page #productsTable tbody tr.table-active:hover > td {
  background: rgba(148, 163, 184, 0.08) !important;
}

body.admin-shell .offer-add-page #productsTable .product-description,
body.admin-shell .offer-add-page #productsTable .sub-product-desc {
  min-height: 2.35rem !important;
  height: auto !important;
  padding-top: 0.22rem !important;
  padding-bottom: 0.22rem !important;
  line-height: 1.25 !important;
  resize: none;
  overflow: hidden;
}

body.admin-shell .offer-add-page #productsTable .product-rate-editor .input-group,
body.admin-shell .offer-add-page #productsTable .sub-products-selector .input-group {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: stretch;
}

body.admin-shell .offer-add-page #productsTable .product-rate-editor .input-group > .form-control,
body.admin-shell .offer-add-page #productsTable .sub-products-selector .input-group > .form-control {
  min-width: 0;
  flex: 1 1 auto;
}

body.admin-shell .offer-add-page #productsTable .product-rate-editor .input-group > .input-group-text,
body.admin-shell .offer-add-page #productsTable .sub-products-selector .input-group > .input-group-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 2rem;
  padding-inline: 0.42rem !important;
  margin: 0 !important;
}

body.admin-shell .offer-add-page #productsTable .product-rate-editor {
  padding: 0.35rem !important;
  margin-top: 0.3rem !important;
}

body.admin-shell .offer-add-page #productsTable .company-input-grid {
  display: none !important;
  grid-template-columns: repeat(2, minmax(10rem, 1fr));
  gap: 0.35rem;
  margin-top: 0.35rem;
  justify-content: center;
}

body.admin-shell .offer-add-page #productsTable tbody tr.table-active .company-input-grid {
  display: grid !important;
}

body.admin-shell .offer-add-page #productsTable .company-input-grid > .col-6,
body.admin-shell .offer-add-page #productsTable .company-input-grid > div {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

body.admin-shell .offer-add-page #productsTable .company-input-grid .company-custom-input {
  min-height: 1.8rem !important;
  height: 1.8rem !important;
  padding: 0.2rem 0.45rem !important;
}

body.admin-shell .offer-add-page #productsTable .product-rate-editor .form-label {
  margin-bottom: 0.2rem !important;
  font-size: 0.62rem !important;
}

body.admin-shell .offer-add-page #productsTable .selected-sub-products-table thead th {
  padding: 0.4rem 0.45rem !important;
}

body.admin-shell .offer-add-page #productsTable .selected-sub-products-body td {
  padding: 0.45rem !important;
  vertical-align: middle;
}

body.admin-shell .offer-preline-wizard #productsTable .product-checkbox {
  width: 1rem !important;
  height: 1rem !important;
  border: 1px solid var(--admin-border-strong);
  border-radius: 0.3rem;
}

body.admin-shell .offer-preline-wizard #productsTable .product-quantity {
  min-height: 2rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface-strong) !important;
  color: var(--admin-text) !important;
  font-size: 0.78rem !important;
}

body.admin-shell .offer-preline-wizard #productsTable .product-description,
body.admin-shell .offer-preline-wizard #productsTable .company-custom-input {
  border-radius: 0.5rem !important;
  border: 1px solid var(--admin-border) !important;
  background: var(--admin-surface-strong) !important;
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-wizard #productsTable .price-container {
  border: 1px solid var(--admin-border);
  border-radius: 0.62rem;
  background: var(--admin-surface-strong);
  padding: 0.45rem;
}

body.admin-shell .offer-preline-wizard #productsTable .price-container .input-group-text {
  min-height: 2rem !important;
  border-color: var(--admin-border) !important;
  background: var(--admin-surface-strong-2) !important;
  color: var(--admin-text-soft) !important;
}

body.admin-shell .offer-preline-wizard #productsTable .discount-badge {
  border-radius: 999px !important;
  font-size: 0.64rem !important;
  padding: 0.2rem 0.5rem !important;
}

body.admin-shell .offer-preline-wizard #productsTable .product-rate-editor {
  border: 1px dashed var(--admin-border-strong);
  border-radius: 0.62rem;
  background: var(--admin-surface-strong-2);
  padding: 0.45rem;
}

body.admin-shell .offer-preline-wizard .sub-products-selector .sub-product-item td {
  background: var(--admin-surface) !important;
}

body.admin-shell .offer-preline-wizard .sub-products-selector .sub-product-item:hover td {
  background: var(--admin-surface-hover) !important;
}

body.admin-shell .offer-preline-wizard .sub-products-selector .sub-product-select + .select2 .select2-selection {
  min-height: 2.2rem !important;
}

body.admin-shell .offer-preline-wizard .sub-products-selector .sub-product-qty,
body.admin-shell .offer-preline-wizard .sub-products-selector .sub-product-desc,
body.admin-shell .offer-preline-wizard .sub-products-selector .sub-product-price-multi,
body.admin-shell .offer-preline-wizard .sub-products-selector .sub-product-rate-input,
body.admin-shell .offer-preline-wizard .sub-products-selector .sub-product-custom-input {
  border-color: var(--admin-border) !important;
  background: var(--admin-surface-strong) !important;
  color: var(--admin-text) !important;
}

body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="5"] {
  border-color: rgba(var(--admin-focus-rgb), 0.18);
  background: linear-gradient(180deg, var(--admin-surface) 0%, var(--admin-surface-strong) 100%);
}

body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="5"] .preview-section {
  margin-bottom: 0;
  border: 1px solid var(--admin-border);
  border-radius: 0.9rem;
  background: var(--admin-surface-strong);
  padding: 0.8rem;
  box-shadow: var(--admin-shadow-sm);
}

body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="5"] .preview-section > h6 {
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
}

body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="5"] .preview-item {
  border-top: 0;
  padding-top: 0.2rem;
  margin-top: 0.2rem;
}

body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="5"] .preview-label {
  max-width: 48%;
  font-size: 0.72rem;
  font-weight: 600;
}

body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="5"] .preview-value {
  max-width: 52%;
  word-break: break-word;
  font-size: 0.78rem;
}

body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="5"] .alert.alert-light {
  margin-top: 0.2rem;
  border: 1px solid rgba(var(--admin-focus-rgb), 0.25);
  background: rgba(var(--admin-focus-rgb), 0.08);
  color: var(--admin-text);
}

@media (max-width: 992px) {
  body.admin-shell .offer-preline-wizard .wizard-buttons {
    grid-template-columns: 1fr;
  }

  body.admin-shell .offer-preline-wizard .wizard-buttons > div {
    display: none;
  }

  body.admin-shell .offer-preline-wizard #vatRateContainer {
    margin-left: 0 !important;
  }

  body.admin-shell .offer-preline-wizard .preview-grid {
    grid-template-columns: 1fr;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="5"] .preview-label,
  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="5"] .preview-value {
    max-width: 100%;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] .table-responsive {
    overflow: visible;
    margin-inline: -0.15rem;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable {
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable thead {
    display: none;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.52rem;
    position: relative;
    padding: 0.72rem;
    border: 1px solid var(--admin-border);
    border-radius: 0.95rem;
    margin-bottom: 0.85rem;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow-sm);
    overflow: visible;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td:nth-child(1) {
    position: absolute;
    top: 0.72rem;
    right: 0.72rem;
    width: auto !important;
    z-index: 2;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td:nth-child(2),
  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td:nth-child(3),
  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td:nth-child(4),
  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td:nth-child(5) {
    border: 1px solid var(--admin-border);
    border-radius: 0.75rem;
    padding: 0.6rem 0.65rem !important;
    background: var(--admin-surface-strong) !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row:not(.is-selected-row) {
    padding: 0.58rem 0.62rem;
    gap: 0.35rem;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row:not(.is-selected-row) > td:nth-child(2) {
    border-radius: 0.7rem;
    padding: 0.52rem 0.58rem !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row:not(.is-selected-row) > td:nth-child(3),
  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row:not(.is-selected-row) > td:nth-child(4),
  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row:not(.is-selected-row) > td:nth-child(5) {
    display: none !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.32rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--admin-text-soft);
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td[data-label=""]::before {
    content: none;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row .product-checkbox {
    width: 1.15rem !important;
    height: 1.15rem !important;
    border-width: 1.5px;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row .product-info {
    display: block !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row .product-info h6 {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row .product-cell-controls {
    gap: 0.4rem;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row .price-container {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0.34rem 0.48rem;
    border: 1px solid var(--admin-border);
    border-radius: 0.6rem;
    background: var(--admin-surface);
    justify-content: space-between !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row .product-quantity {
    width: 100% !important;
    max-width: 12rem;
    margin-inline: auto !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row .sub-product-exclude {
    margin-top: 0 !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td:nth-child(5) > div {
    justify-content: center;
  }

  html[data-theme="dark"] body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row {
    background: var(--admin-surface);
    border-color: rgba(148, 163, 184, 0.25);
  }

  html[data-theme="dark"] body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td:nth-child(2),
  html[data-theme="dark"] body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td:nth-child(3),
  html[data-theme="dark"] body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td:nth-child(4),
  html[data-theme="dark"] body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row > td:nth-child(5) {
    background: var(--admin-surface-strong) !important;
    border-color: rgba(148, 163, 184, 0.25);
  }

  html[data-theme="dark"] body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row .price-container {
    background: var(--admin-surface-strong-2);
    border-color: rgba(148, 163, 184, 0.22);
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child {
    display: block;
    border: 0;
    margin: -0.35rem 0 0.9rem;
    background: transparent;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child > td {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .sub-products-selector {
    width: 100% !important;
    margin: 0 !important;
    padding: 0.55rem !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .table-responsive {
    overflow-x: auto;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .selected-sub-products-table {
    min-width: 680px;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .selected-sub-products-body tr {
    display: table-row;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .selected-sub-products-body td {
    display: table-cell !important;
  }

  body.admin-shell .offer-add-page .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .selected-sub-products-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed;
  }

  body.admin-shell .offer-add-page .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .selected-sub-products-table thead {
    display: none !important;
  }

  body.admin-shell .offer-add-page .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .selected-sub-products-body {
    display: block;
    width: 100%;
  }

  body.admin-shell .offer-add-page .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .selected-sub-products-body tr.sub-product-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.7rem;
    border: 1px solid var(--admin-border);
    border-radius: 0.78rem;
    background: var(--admin-surface);
    overflow: hidden;
  }

  body.admin-shell .offer-add-page .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .selected-sub-products-body tr.sub-product-item > td {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    border-bottom: 1px solid var(--admin-border) !important;
    padding: 0.6rem !important;
    box-sizing: border-box;
  }

  body.admin-shell .offer-add-page .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .selected-sub-products-body tr.sub-product-item > td:last-child {
    border-bottom: 0 !important;
  }

  body.admin-shell .offer-add-page .wizard-form-step[data-step="3"] #productsTable tr.sub-product-item .sub-product-prices-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.4rem !important;
  }

  body.admin-shell .offer-add-page .wizard-form-step[data-step="3"] #productsTable tr.sub-product-item .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .sub-product-qty {
    min-width: 4.6rem;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.child .remove-sub-product {
    min-width: 1.8rem;
  }

  body.admin-shell .offer-preline-wizard .wizard-form-step[data-step="3"] #productsTable > tbody > tr.offer-product-row:last-of-type {
    border-bottom: 0;
  }
}
