/* =============================================================================
   LINOK ENTERPRISE CLOUD PLATFORM - UNIFIED MASTER ADMIN THEME
   Curated with precision by Sally (UX Designer) & Freya (Design Systems)
   100% RTL • Pure Dark Canvas • Crisp Typography • Contrast AAA
   ============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   1. GLOBAL FONT DEFINITION (ABSOLUTE PATH FOR ZERO 404 FAILURES AT ANY DEPTH)
   ───────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: YekanBakhRegular;
  src: url("/static/fonts/YekanBakh-Regular.woff2") format("woff2"),
       url("/static/fonts/YekanBakh-Regular.woff") format("woff"),
       url("/static/fonts/YekanBakh-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. UNIVERSAL TYPOGRAPHY ENFORCEMENT
   ───────────────────────────────────────────────────────────────────────────── */
html, body,
*, *::before, *::after,
input, select, textarea, button, optgroup, option,
table, th, td, tr, caption,
h1, h2, h3, h4, h5, h6,
p, span, a, label, li, ul, ol, dl, dt, dd,
.breadcrumbs, .module, #nav-sidebar, .object-tools, .paginator,
.actionlist, .dashboard, .change-list, .change-form,
.vTextField, .vLargeTextField, .vIntegerField, .vDateField, .vTimeField {
  font-family: YekanBakhRegular, "Segoe UI", Tahoma, sans-serif !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. UNIFIED COLOR TOKENS (CURATED BY SALLY & FREYA)
   ───────────────────────────────────────────────────────────────────────────── */
/* ─── DARK THEME TOKENS (DEFAULT) ─── */
:root,
html:not([data-theme="light"]),
[data-theme="dark"],
html[data-theme="dark"] {
  --primary: #0284c7 !important;
  --primary-fg: #ffffff !important;
  --secondary: #0369a1 !important;

  --header-bg: #071322 !important;
  --header-color: #ffffff !important;
  --header-branding-color: #ffffff !important;
  --header-link-color: #38bdf8 !important;

  --body-bg: #060d17 !important;
  --body-fg: #f1f5f9 !important;
  --body-quiet-color: #94a3b8 !important;
  --body-loud-color: #ffffff !important;

  --breadcrumbs-bg: #081626 !important;
  --breadcrumbs-fg: #cbd5e1 !important;
  --breadcrumbs-link-fg: #38bdf8 !important;

  --link-fg: #38bdf8 !important;
  --link-hover-color: #7dd3fc !important;
  --link-selected-fg: #38bdf8 !important;

  --hairline-color: #1e3a5a !important;
  --border-color: #1c364f !important;

  --darkened-bg: #091728 !important;
  --selected-bg: #0e2744 !important;
  --selected-row: #0e2744 !important;

  --button-hover-bg: #0284c7 !important;
  --default-button-hover-bg: #0369a1 !important;

  --accent-cyan: #38bdf8 !important;
  --accent-blue: #0284c7 !important;
  --accent-emerald: #10b981 !important;
  --accent-amber: #f59e0b !important;
  --accent-rose: #f43f5e !important;

  --surface-ground: #060d17 !important;
  --surface-card: #091624 !important;
  --surface-card-hover: #0e2744 !important;
  --surface-card-border: #1c364f !important;
  --surface-header: #071322 !important;
  --surface-sidebar: #071322 !important;
  --surface-navbar: #071526 !important;
  --surface-input: #060d17 !important;
  --surface-input-border: #1c364f !important;
}

/* ─── LIGHT THEME TOKENS ─── */
[data-theme="light"],
html[data-theme="light"],
html[data-theme="light"] body,
body[data-theme="light"] {
  --primary: #0284c7 !important;
  --primary-fg: #ffffff !important;
  --secondary: #0369a1 !important;

  --header-bg: #ffffff !important;
  --header-color: #0f172a !important;
  --header-branding-color: #0284c7 !important;
  --header-link-color: #0284c7 !important;

  --body-bg: #f8fafc !important;
  --body-fg: #0f172a !important;
  --body-quiet-color: #64748b !important;
  --body-loud-color: #0f172a !important;

  --breadcrumbs-bg: #f1f5f9 !important;
  --breadcrumbs-fg: #475569 !important;
  --breadcrumbs-link-fg: #0284c7 !important;

  --link-fg: #0284c7 !important;
  --link-hover-color: #0369a1 !important;
  --link-selected-fg: #0369a1 !important;

  --hairline-color: #e2e8f0 !important;
  --border-color: #cbd5e1 !important;

  --darkened-bg: #f1f5f9 !important;
  --selected-bg: #e0f2fe !important;
  --selected-row: #e0f2fe !important;

  --button-hover-bg: #0369a1 !important;
  --default-button-hover-bg: #075985 !important;

  --accent-cyan: #0284c7 !important;
  --accent-blue: #0369a1 !important;
  --accent-emerald: #059669 !important;
  --accent-amber: #d97706 !important;
  --accent-rose: #e11d48 !important;

  --surface-ground: #f8fafc !important;
  --surface-card: #ffffff !important;
  --surface-card-hover: #f1f5f9 !important;
  --surface-card-border: #e2e8f0 !important;
  --surface-header: #ffffff !important;
  --surface-sidebar: #f8fafc !important;
  --surface-navbar: #ffffff !important;
  --surface-input: #ffffff !important;
  --surface-input-border: #cbd5e1 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. ROOT CANVAS & LAYOUT RESETS
   ───────────────────────────────────────────────────────────────────────────── */
html, body {
  background-color: var(--body-bg, #060d17) !important;
  color: var(--body-fg, #f1f5f9) !important;
  direction: rtl;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

#container {
  background: var(--body-bg, #060d17) !important;
  color: var(--body-fg, #f1f5f9) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

#main,
#main.shifted {
  background: var(--body-bg, #060d17) !important;
  color: var(--body-fg, #f1f5f9) !important;
  width: 100% !important;
  min-height: calc(100vh - 120px) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  direction: ltr !important;
  overflow-x: clip !important;
}

#main > .content,
.main > .content,
#main > #content,
.main > #content,
#main.shifted > .content,
.main.shifted > .content {
  order: 1 !important;
  direction: rtl !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: calc(100% - 304px) !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#main:not(.shifted) > .content,
.main:not(.shifted) > .content,
#main:not(.shifted) > #content,
.main:not(.shifted) > #content {
  max-width: 100% !important;
  width: 100% !important;
}

#content {
  background: transparent !important;
  color: #f1f5f9 !important;
  padding: 14px 18px 40px 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.toggle-nav-sidebar,
#toggle-nav-sidebar {
  order: 2 !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  background: #081626 !important;
  border-left: 1px solid #142a42 !important;
  border-right: 1px solid #142a42 !important;
  color: #38bdf8 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  z-index: 105 !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
}

.toggle-nav-sidebar:hover,
#toggle-nav-sidebar:hover {
  background: #0c253d !important;
  color: #ffffff !important;
}

#nav-sidebar {
  order: 3 !important;
  direction: rtl !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: 0 !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  flex-shrink: 0 !important;
  background: #071322 !important;
  border-left: 1px solid #142a42 !important;
  border-right: none !important;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  flex-direction: column !important;
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 100 !important;
  transition: width 0.22s ease, min-width 0.22s ease, opacity 0.2s ease !important;
}

#main:not(.shifted) #nav-sidebar {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  border-left: none !important;
  pointer-events: none !important;
}


#content {
  background: transparent !important;
  color: #f1f5f9 !important;
  padding: 20px 28px 60px 28px !important;
}

#content-main {
  width: 100% !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4.5 GLOBAL SUBSYSTEM NAVBAR (SALLY & FREYA DESIGN)
   ───────────────────────────────────────────────────────────────────────────── */
.linok-global-navbar {
  background: #071526 !important;
  border-bottom: 1px solid #142a42 !important;
  padding: 8px 24px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.linok-navbar-inner {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding-bottom: 2px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #1e3a5a transparent !important;
}

.linok-navbar-inner::-webkit-scrollbar {
  height: 4px;
}
.linok-navbar-inner::-webkit-scrollbar-thumb {
  background: #1e3a5a;
  border-radius: 4px;
}

.subsystem-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  background: rgba(15, 28, 44, 0.6) !important;
  border: 1px solid rgba(30, 58, 90, 0.6) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.subsystem-nav-link .nav-icon {
  font-size: 15px !important;
}

.subsystem-nav-link:hover {
  color: #ffffff !important;
  background: #0f2744 !important;
  border-color: #38bdf8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15) !important;
}

.subsystem-nav-link.active {
  color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. HEADER & BRANDING
   ───────────────────────────────────────────────────────────────────────────── */
#header {
  background: #071322 !important;
  border-bottom: 1px solid #142a42 !important;
  padding: 12px 28px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

#branding h1 {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  text-align: right !important;
}

#branding h1 a {
  color: #ffffff !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: color 0.15s ease !important;
}

#branding h1 a:hover {
  color: #38bdf8 !important;
}

#user-tools {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#user-tools a {
  color: #38bdf8 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35) !important;
  padding-bottom: 2px !important;
  transition: all 0.15s ease !important;
}

#user-tools a:hover {
  color: #ffffff !important;
  border-bottom-color: #38bdf8 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. BREADCRUMBS
   ───────────────────────────────────────────────────────────────────────────── */
.breadcrumbs {
  background: #081626 !important;
  border-bottom: 1px solid #142a42 !important;
  color: #64748b !important;
  padding: 10px 28px !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.breadcrumbs a {
  color: #38bdf8 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.15s ease !important;
}

.breadcrumbs a:hover {
  color: #ffffff !important;
}

.breadcrumbs span,
.breadcrumbs .current-crumb {
  color: #f1f5f9 !important;
  font-weight: 700 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. NAVIGATION SIDEBAR (#nav-sidebar)
   ───────────────────────────────────────────────────────────────────────────── */
#nav-sidebar {
  background: #071322 !important;
  border-left: 1px solid #142a42 !important;
  border-right: 1px solid #142a42 !important;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.3) !important;
}

#nav-sidebar .module {
  border-bottom: 1px solid #142a42 !important;
  padding-bottom: 8px !important;
}

#nav-sidebar .module caption,
#nav-sidebar .module caption a,
#nav-sidebar .module th.section,
#nav-sidebar .module th.section a {
  color: #38bdf8 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  padding: 10px 14px !important;
}

#nav-sidebar a {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  display: block !important;
  transition: all 0.15s ease !important;
}

#nav-sidebar a:hover,
#nav-sidebar a:focus {
  color: #ffffff !important;
  background: #0e2744 !important;
}

#nav-sidebar tr.current-model a {
  color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.15) !important;
  font-weight: 800 !important;
  border-right: 3px solid #38bdf8 !important;
}

#nav-sidebar #nav-filter {
  background: #091624 !important;
  border: 1px solid #1c364f !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. PAGE TITLES & HEADINGS
   ───────────────────────────────────────────────────────────────────────────── */
#content > h1:first-child,
.linok-page-title,
#content h1 {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  margin: 0 0 20px 0 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* In app index pages with dedicated hero banner, hide the duplicate h1 */
.app-index #content > h1:first-child,
.linok-app-page #content > h1:first-child {
  display: none !important;
}

#content h2 {
  color: #38bdf8 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  margin: 16px 0 10px 0 !important;
}

#content h3 {
  color: #e2e8f0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. OBJECT TOOLS & ACTION BUTTONS (.object-tools)
   ───────────────────────────────────────────────────────────────────────────── */
.object-tools {
  margin: 0 0 18px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.object-tools li {
  list-style: none !important;
}

.object-tools li a {
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
}

.object-tools li a.addlink {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
}

.object-tools li a.addlink:hover {
  background: rgba(16, 185, 129, 0.28) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

.object-tools li a.viewsitelink,
.object-tools li a.historylink {
  background: #0e2744 !important;
  border: 1px solid #1c364f !important;
  color: #38bdf8 !important;
}

.object-tools li a.viewsitelink:hover,
.object-tools li a.historylink:hover {
  background: #14355a !important;
  color: #ffffff !important;
}

body.dashboard #content-related,
body.dashboard #recent-actions-module {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. CHANGELIST TABLE & RESULTS (#result_list)
   ───────────────────────────────────────────────────────────────────────────── */
.change-list #changelist {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#changelist .results,
.change-list .results,
#changelist-form .results {
  background: #091624 !important;
  border: 1px solid #1c364f !important;
  border-radius: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: #1e3a5a #091624 !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
  margin-bottom: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#changelist .results::-webkit-scrollbar,
.change-list .results::-webkit-scrollbar,
#changelist-form .results::-webkit-scrollbar,
.inline-group::-webkit-scrollbar,
.tabular::-webkit-scrollbar {
  height: 6px !important;
  width: 6px !important;
}

#changelist .results::-webkit-scrollbar-track,
.change-list .results::-webkit-scrollbar-track,
#changelist-form .results::-webkit-scrollbar-track,
.inline-group::-webkit-scrollbar-track,
.tabular::-webkit-scrollbar-track {
  background: #091624 !important;
  border-radius: 8px !important;
}

#changelist .results::-webkit-scrollbar-thumb,
.change-list .results::-webkit-scrollbar-thumb,
#changelist-form .results::-webkit-scrollbar-thumb,
.inline-group::-webkit-scrollbar-thumb,
.tabular::-webkit-scrollbar-thumb {
  background: #1e3a5a !important;
  border-radius: 8px !important;
}

#changelist .results::-webkit-scrollbar-thumb:hover,
.change-list .results::-webkit-scrollbar-thumb:hover,
#changelist-form .results::-webkit-scrollbar-thumb:hover,
.inline-group::-webkit-scrollbar-thumb:hover,
.tabular::-webkit-scrollbar-thumb:hover {
  background: #2563eb !important;
}

#result_list {
  width: 100% !important;
  min-width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #081422 !important;
  margin: 0 !important;
}

#result_list thead th {
  background: #0c253d !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  padding: 12px 14px !important;
  border-bottom: 2px solid #1c364f !important;
  text-align: right !important;
  white-space: nowrap !important;
}

#result_list thead th a {
  color: #38bdf8 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

#result_list thead th a:hover {
  color: #ffffff !important;
}

#result_list thead th.sorted {
  background: #0f2f4e !important;
  color: #ffffff !important;
}

#result_list th.action-checkbox-column,
#result_list td.action-checkbox {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  text-align: center !important;
  padding: 10px 6px !important;
}

#result_list tbody tr {
  transition: background 0.15s ease !important;
  border-bottom: 1px solid rgba(28, 54, 79, 0.6) !important;
}

#result_list tbody tr:nth-child(even) {
  background: rgba(15, 28, 44, 0.45) !important;
}

#result_list tbody tr:nth-child(odd) {
  background: #091624 !important;
}

#result_list tbody tr:hover {
  background: rgba(14, 165, 233, 0.1) !important;
}

#result_list tbody th,
#result_list tbody td {
  padding: 10px 14px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #14273a !important;
  color: #f1f5f9 !important;
  font-size: 12.5px !important;
  white-space: nowrap !important;
}

#result_list tbody th a {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

#result_list tbody th a:hover {
  color: #38bdf8 !important;
}

#result_list tbody td a {
  color: #38bdf8 !important;
  text-decoration: none !important;
}

#result_list tbody td a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Action Checkbox Column */
#result_list .action-checkbox {
  width: 36px !important;
  text-align: center !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. CHANGELIST TOOLBAR & SEARCH BAR
   ───────────────────────────────────────────────────────────────────────────── */
#toolbar {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  background: #091624 !important;
  border: 1px solid #1c364f !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}

#changelist-search {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0 !important;
}

#changelist-search > div {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

#searchbar {
  background: #060d17 !important;
  border: 1px solid #1c364f !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  min-width: 260px !important;
  transition: border-color 0.2s ease !important;
}

#searchbar:focus {
  border-color: #38bdf8 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

#changelist-search input[type="submit"] {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid #38bdf8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

#changelist-search input[type="submit"]:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   12. CHANGELIST ACTIONS BAR (.actions)
   ───────────────────────────────────────────────────────────────────────────── */
.actions {
  background: #091624 !important;
  border: 1px solid #1c364f !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  color: #94a3b8 !important;
  font-family: 'DanaFaNum', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.actions label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.actions select {
  background: #060d17 !important;
  border: 1.5px solid #1c364f !important;
  border-radius: 8px !important;
  padding: 4px 14px !important;
  color: #ffffff !important;
  font-family: 'DanaFaNum', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  height: 44px !important;
  min-height: 44px !important;
  line-height: 34px !important;
  min-width: 380px !important;
  max-width: 650px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.actions select:focus {
  border-color: #38bdf8 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

.actions select option {
  background: #091624 !important;
  color: #ffffff !important;
  font-family: 'DanaFaNum', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
  line-height: 1.6 !important;
}

.actions .button {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid #38bdf8 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-family: 'DanaFaNum', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  height: 44px !important;
  line-height: 42px !important;
  padding: 0 22px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.actions .button:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35) !important;
  transform: translateY(-1px) !important;
}

.actions .action-counter {
  color: #38bdf8 !important;
  font-weight: 700 !important;
  font-family: 'DanaFaNum', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 12.5px !important;
  background: rgba(56, 189, 248, 0.1) !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. SALLY & FREYA DESIGN: CHANGELIST SMART FILTER DRAWER & FULL-WIDTH TABLE
   ───────────────────────────────────────────────────────────────────────────── */

/* Kill Django rtl.css float:right on #content-main and force 100% width! */
#content,
#content-main,
.change-list #content-main,
.filtered #content-main {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  box-sizing: border-box !important;
}

#changelist,
.change-list #changelist,
#content-main #changelist {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

#changelist .changelist-form-container,
#changelist.filtered .changelist-form-container,
#changelist .changelist-form-container:has(#changelist-filter),
#changelist .changelist-form-container:not(:has(#changelist-filter)) {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  flex: none !important;
  box-sizing: border-box !important;
}

#changelist .changelist-form-container > div,
#changelist .changelist-form-container:has(#changelist-filter) > div,
#changelist .changelist-form-container:not(:has(#changelist-filter)) > div {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.filtered #toolbar,
#toolbar,
#changelist #toolbar {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

#changelist-form,
.change-list #changelist-form {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.change-list .filtered .results,
#changelist .results,
#changelist-form .results {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  clear: both !important;
}

#result_list,
.change-list table,
#changelist table {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  table-layout: auto !important;
  box-sizing: border-box !important;
}

#result_list th,
#result_list td {
  padding: 8px 10px !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}

/* Slide-over Filter Drawer (#changelist-filter) */
#changelist-filter,
search#changelist-filter {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 380px !important;
  max-width: 88vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  background: linear-gradient(180deg, #071526 0%, #040c17 100%) !important;
  border-right: 1px solid #1c364f !important;
  border-left: none !important;
  border-radius: 0 20px 20px 0 !important;
  box-shadow: 15px 0 50px rgba(0, 0, 0, 0.7) !important;
  z-index: 99999 !important;
  transform: translateX(-110%) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

#changelist-filter.drawer-open,
search#changelist-filter.drawer-open {
  transform: translateX(0) !important;
}

/* Glassmorphic Backdrop */
.linok-filter-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(3, 10, 20, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99998 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.linok-filter-backdrop.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.linok-filter-drawer-open {
  overflow: hidden !important;
}

/* Drawer Header */
.linok-filter-drawer-header {
  background: linear-gradient(135deg, #0c253d 0%, #08182b 100%) !important;
  border-bottom: 1px solid #1c364f !important;
  padding: 18px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
}
.filter-header-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.filter-header-icon {
  font-size: 22px !important;
  background: rgba(56, 189, 248, 0.15) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}
.filter-header-texts h4 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}
.filter-header-sub {
  font-size: 11.5px !important;
  color: #38bdf8 !important;
  font-weight: 600 !important;
}
.linok-filter-close-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}
.linok-filter-close-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  transform: scale(1.08) !important;
}

/* Drawer Categories & Pills */
#changelist-filter h3,
search#changelist-filter h3 {
  color: #38bdf8 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  padding: 16px 20px 8px 20px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  letter-spacing: -0.2px !important;
}
#changelist-filter h3::before,
search#changelist-filter h3::before {
  content: "🔹";
  font-size: 11px !important;
}

#changelist-filter ul.linok-filter-pills-list,
#changelist-filter ul {
  padding: 6px 18px 14px 18px !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  list-style: none !important;
  border-bottom: 1px solid rgba(28, 54, 79, 0.5) !important;
}

#changelist-filter ul li {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
}

#changelist-filter ul li a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-decoration: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#changelist-filter ul li a:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

#changelist-filter ul li.selected a {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.45) !important;
}

/* Drawer Footer */
.linok-filter-drawer-footer {
  margin-top: auto !important;
  padding: 16px 20px !important;
  background: #06111f !important;
  border-top: 1px solid #1c364f !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: sticky !important;
  bottom: 0 !important;
  gap: 10px !important;
}
.linok-filter-footer-clear-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #f87171 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  transition: all 0.2s ease !important;
}
.linok-filter-footer-clear-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}
.linok-filter-footer-close-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid #38bdf8 !important;
  color: #ffffff !important;
  padding: 7px 18px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.linok-filter-footer-close-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px) !important;
}
.linok-filter-footer-hint {
  font-size: 11.5px !important;
  color: #64748b !important;
}

/* Trigger Button in Toolbar */
.linok-filter-trigger-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  background: rgba(15, 39, 68, 0.8) !important;
  border: 1px solid #1c364f !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
  margin-right: 8px !important;
}
.linok-filter-trigger-btn:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2) !important;
}
.linok-filter-trigger-btn.has-active-filters {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(3, 105, 161, 0.2) 100%) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3) !important;
}
.filter-btn-badge {
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 1px 7px !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4) !important;
}

/* Standalone bar when search toolbar is absent */
.linok-filter-standalone-bar {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 14px !important;
}

/* Active Filters Ribbon (Above Table) */
.linok-active-filters-ribbon {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 10px 16px !important;
  margin-bottom: 14px !important;
  background: rgba(12, 37, 61, 0.5) !important;
  border: 1px dashed rgba(56, 189, 248, 0.35) !important;
  border-radius: 10px !important;
}
.ribbon-label-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #38bdf8 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}
.ribbon-chips-list {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.linok-filter-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  background: #091a2e !important;
  border: 1px solid #1c364f !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  color: #f1f5f9 !important;
}
.chip-key {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}
.chip-val {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}
.chip-remove-btn {
  color: #ef4444 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  margin-right: 4px !important;
  transition: transform 0.15s ease !important;
}
.chip-remove-btn:hover {
  transform: scale(1.3) !important;
}
.linok-chip-clear-all {
  font-size: 11.5px !important;
  color: #f87171 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  background: rgba(239, 68, 68, 0.12) !important;
  transition: all 0.15s ease !important;
}
.linok-chip-clear-all:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ffffff !important;
}
.linok-chip-edit-btn {
  font-size: 11.5px !important;
  color: #cbd5e1 !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.linok-chip-edit-btn:hover {
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. PAGINATOR (.paginator)
   ───────────────────────────────────────────────────────────────────────────── */
.paginator {
  background: #091624 !important;
  border: 1px solid #1c364f !important;
  border-radius: 10px !important;
  padding: 10px 18px !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 14px 0 !important;
}

.paginator a {
  color: #38bdf8 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}

.paginator a:hover {
  background: #0e2744 !important;
  color: #ffffff !important;
}

.paginator .this-page {
  background: #0284c7 !important;
  color: #ffffff !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   15. CHANGE FORM / ADD / EDIT PAGES (.change-form)
   ───────────────────────────────────────────────────────────────────────────── */
.change-form fieldset.module {
  background: #091624 !important;
  border: 1px solid #1c364f !important;
  border-radius: 14px !important;
  padding: 0 !important;
  margin-bottom: 24px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden !important;
}

.change-form fieldset.module > h2,
.change-form fieldset.module .fieldset-heading,
.change-form fieldset.module details summary,
.change-form :not(.inline-related) .collapse summary {
  background: #0c253d !important;
  border: none !important;
  border-bottom: 1px solid #1c364f !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
  padding: 12px 20px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.change-form fieldset.module details summary h2,
.change-form fieldset.module details summary .fieldset-heading {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
}

.change-form .form-row {
  border-bottom: 1px solid rgba(28, 54, 79, 0.5) !important;
  padding: 14px 20px !important;
}

.change-form .form-row label {
  color: #e2e8f0 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}

.change-form .help,
.change-form .help-tooltip {
  color: #94a3b8 !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}

.change-form input[type="text"],
.change-form input[type="password"],
.change-form input[type="email"],
.change-form input[type="url"],
.change-form input[type="number"],
.change-form .vTextField,
.change-form .vLargeTextField {
  background: #0b1a2d !important;
  border: 1.5px solid #1e3a5a !important;
  border-radius: 9px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.change-form select {
  background-color: #0b1a2d !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 14px center !important;
  background-size: 16px 16px !important;
  border: 1.5px solid #1e3a5a !important;
  border-radius: 9px !important;
  padding: 8px 16px 8px 38px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  min-height: 44px !important;
  height: 44px !important;
  min-width: 240px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  transition: all 0.2s ease !important;
}

.change-form select option,
select option {
  background-color: #091728 !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.change-form textarea {
  background: #0b1a2d !important;
  border: 1.5px solid #1e3a5a !important;
  border-radius: 9px !important;
  padding: 12px 16px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  min-height: 80px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.change-form input:focus,
.change-form textarea:focus,
.change-form select:focus {
  border-color: #38bdf8 !important;
  background-color: #0e2238 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

.change-form .readonly,
.tabular td.readonly,
.tabular td .readonly {
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  display: inline-block !important;
}

.change-form select option,
select option {
  background-color: #0c1c2e !important;
  color: #f1f5f9 !important;
  padding: 8px 12px !important;
}

.change-form select option:checked,
select option:checked {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .change-form select option,
html[data-theme="light"] select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* Submit Row */
.submit-row {
  background: #071322 !important;
  border: 1px solid #142a42 !important;
  border-radius: 14px !important;
  padding: 16px 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
  margin-top: 24px !important;
}

.submit-row input[type="submit"],
.submit-row input.default {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid #38bdf8 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 10px 22px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.submit-row input[type="submit"]:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35) !important;
}

.submit-row .deletelink {
  background: rgba(244, 63, 94, 0.12) !important;
  border: 1px solid rgba(244, 63, 94, 0.4) !important;
  color: #f87171 !important;
  font-weight: 700 !important;
  padding: 9px 18px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.submit-row .deletelink:hover {
  background: rgba(244, 63, 94, 0.25) !important;
  color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   16. MESSAGES & ALERTS (MESSAGELIST)
   ───────────────────────────────────────────────────────────────────────────── */
ul.messagelist {
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

ul.messagelist li {
  list-style: none !important;
  padding: 12px 20px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

ul.messagelist li.success {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
}

ul.messagelist li.warning {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
}

ul.messagelist li.error {
  background: rgba(244, 63, 94, 0.15) !important;
  border: 1px solid rgba(244, 63, 94, 0.4) !important;
  color: #f87171 !important;
}

ul.messagelist li.info {
  background: rgba(14, 165, 233, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   17. POPUPS, CALENDARS & CLOCKS
   ───────────────────────────────────────────────────────────────────────────── */
.calendarbox, .clockbox {
  background: #091624 !important;
  border: 1px solid #1c364f !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.calendarbox caption, .clockbox caption {
  background: #0c253d !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
}

.calendarbox th {
  color: #cbd5e1 !important;
}

.calendarbox td a {
  color: #38bdf8 !important;
}

.calendarbox td.selected a {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   18. UNIFIED NAVIGATION SIDEBAR (#nav-sidebar) & UNIVERSAL ADD BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */
#nav-sidebar {
  background: #071322 !important;
  border-left: 1px solid #142a42 !important;
  border-right: none !important;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4) !important;
}

#nav-sidebar .admin-help-box {
  display: none !important;
}

/* 1. Header Branding */
.sidebar-top-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid #142a42 !important;
  background: #091a2e !important;
}

.sidebar-brand-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.sidebar-brand-ico {
  font-size: 18px !important;
}

.sidebar-brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.25 !important;
}

.sidebar-brand-main {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.sidebar-brand-sub {
  font-size: 10.5px !important;
  color: #64748b !important;
}

.sidebar-total-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  white-space: nowrap !important;
}

/* 1.5 Connected System & Active Site Switcher in Sidebar */
.sidebar-system-switcher-wrapper {
  padding: 8px 12px !important;
  background: #081728 !important;
  border-bottom: 1px solid rgba(20, 42, 66, 0.65) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.sidebar-system-switcher-wrapper .linok-system-status-pill {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 8px !important;
  border-radius: 9px !important;
  background: rgba(15, 28, 46, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.sidebar-system-switcher-wrapper .linok-system-status-pill:hover {
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 3px 10px rgba(56, 189, 248, 0.12) !important;
}

.sidebar-system-switcher-wrapper .linok-system-status-icon-box {
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
  flex-shrink: 0 !important;
}

.sidebar-system-switcher-wrapper .linok-system-details-box {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.sidebar-system-switcher-wrapper .linok-system-top-info {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
}

.sidebar-system-switcher-wrapper .linok-system-tag-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
}

.sidebar-system-switcher-wrapper .linok-system-type-badge {
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1px 5px !important;
  border-radius: 5px !important;
  white-space: nowrap !important;
}

.sidebar-system-switcher-wrapper .linok-system-select-wrapper {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.sidebar-system-switcher-wrapper .linok-system-select-input {
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 3px 22px 3px 6px !important;
  height: 26px !important;
  border-radius: 6px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  background: rgba(9, 24, 41, 0.95) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #ffffff !important;
}

.sidebar-system-switcher-wrapper .linok-system-select-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.3) !important;
}

.sidebar-system-switcher-wrapper .linok-system-select-arrow {
  left: 6px !important;
}

.sidebar-system-switcher-wrapper .linok-system-active-name {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  max-width: 160px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sidebar-system-switcher-wrapper .linok-system-manage-btn {
  width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(100, 116, 139, 0.25) !important;
  color: #94a3b8 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.sidebar-system-switcher-wrapper .linok-system-manage-btn:hover {
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  transform: rotate(45deg) !important;
}

/* 2. Real-time Search Box */
.sidebar-filter-wrapper {
  padding: 10px 12px 6px 12px !important;
  border-bottom: 1px solid rgba(20, 42, 66, 0.6) !important;
}

.sidebar-input-box {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.sidebar-search-ico {
  position: absolute !important;
  right: 10px !important;
  font-size: 12px !important;
  color: #64748b !important;
  pointer-events: none !important;
}

#nav-sidebar #nav-filter {
  width: 100% !important;
  background: #091829 !important;
  border: 1px solid #1c364f !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  padding: 7px 30px 7px 26px !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
  transition: border-color 0.18s ease !important;
}

#nav-sidebar #nav-filter:focus {
  border-color: #38bdf8 !important;
  outline: none !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2) !important;
}

.sidebar-clear-btn {
  position: absolute !important;
  left: 8px !important;
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  font-size: 12px !important;
  cursor: pointer !important;
  padding: 2px !important;
  line-height: 1 !important;
}
.sidebar-clear-btn:hover {
  color: #f43f5e !important;
}

/* 3. Category Filter Chips (Single-line Smooth Horizontal Swiper) */
.sidebar-category-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 5px !important;
  padding: 6px 10px !important;
  border-bottom: 1px solid #142a42 !important;
  background: rgba(7, 19, 34, 0.75) !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
}
.sidebar-category-chips::-webkit-scrollbar {
  display: none !important;
}

.sidebar-cat-chip {
  flex-shrink: 0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: rgba(15, 28, 44, 0.7) !important;
  border: 1px solid rgba(30, 58, 90, 0.6) !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
}

.sidebar-cat-chip:hover {
  color: #ffffff !important;
  background: #0f2744 !important;
  border-color: #38bdf8 !important;
}

.sidebar-cat-chip.active {
  color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.18) !important;
  border-color: #38bdf8 !important;
  font-weight: 700 !important;
}

/* 4. Scrollable Apps & Models Accordion List */
.sidebar-scroll-content {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  padding: 8px 8px 16px 8px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #1e3a5a transparent !important;
}

.sidebar-scroll-content::-webkit-scrollbar {
  width: 4px !important;
}
.sidebar-scroll-content::-webkit-scrollbar-thumb {
  background: #1e3a5a !important;
  border-radius: 4px !important;
}

.sidebar-app-card {
  margin-bottom: 5px !important;
  border: 1px solid #152b45 !important;
  border-radius: 8px !important;
  background: rgba(11, 24, 40, 0.5) !important;
  overflow: hidden !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}

.sidebar-app-card:hover {
  border-color: rgba(56, 189, 248, 0.35) !important;
}

.sidebar-app-card.current-app {
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: rgba(14, 34, 56, 0.45) !important;
}

.sidebar-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 7px 10px !important;
  cursor: pointer !important;
  user-select: none !important;
  background: rgba(12, 27, 46, 0.7) !important;
  border-bottom: 1px solid rgba(21, 43, 69, 0.4) !important;
}

.sidebar-title-left {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
}

.sidebar-app-emoji {
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.sidebar-app-name {
  color: #38bdf8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sidebar-card-meta {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
}

.sidebar-count-pill {
  font-size: 9.5px !important;
  padding: 1px 5px !important;
  border-radius: 8px !important;
  background: rgba(100, 116, 139, 0.2) !important;
  color: #94a3b8 !important;
}

.sidebar-chevron {
  font-size: 11px !important;
  color: #64748b !important;
  transition: transform 0.2s ease !important;
}

.sidebar-app-card.is-collapsed .sidebar-chevron {
  transform: rotate(90deg) !important;
}

.sidebar-app-card.is-collapsed .sidebar-models-tray {
  display: none !important;
}

.sidebar-models-tray {
  padding: 2px 0 !important;
}

.sidebar-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.sidebar-row {
  border-bottom: 1px solid rgba(25, 48, 72, 0.3) !important;
  transition: background 0.12s ease !important;
}
.sidebar-row:last-child {
  border-bottom: none !important;
}
.sidebar-row:hover {
  background: rgba(56, 189, 248, 0.08) !important;
}

.sidebar-model-th {
  padding: 0 !important;
  text-align: right !important;
  font-weight: normal !important;
  width: auto !important;
}

.sidebar-model-anchor {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 10px !important;
  color: #cbd5e1 !important;
  font-size: 11.5px !important;
  text-decoration: none !important;
  transition: all 0.12s ease !important;
}

.sidebar-model-anchor:hover {
  color: #38bdf8 !important;
  transform: translateX(-2px) !important;
}

.sidebar-model-anchor.current-active {
  color: #38bdf8 !important;
  font-weight: 700 !important;
  background: rgba(14, 165, 233, 0.15) !important;
}

.sidebar-link-bullet {
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #475569 !important;
  flex-shrink: 0 !important;
}

.sidebar-model-anchor.current-active .sidebar-link-bullet {
  background: #38bdf8 !important;
  box-shadow: 0 0 6px #38bdf8 !important;
}

.sidebar-add-td {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 0 !important;
}

#nav-sidebar a.sidebar-add-badge,
#nav-sidebar a.addlink.sidebar-add-badge,
.sidebar-add-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  border-radius: 6px !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 auto !important;
  text-align: center !important;
  text-decoration: none !important;
  text-indent: 0 !important;
  background-image: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

#nav-sidebar a.sidebar-add-badge:hover,
.sidebar-add-badge:hover {
  background: #10b981 !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

.sidebar-empty-search {
  padding: 20px 10px !important;
  text-align: center !important;
  color: #64748b !important;
  font-size: 11.5px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
}

/* 4.5 Bottom Utility Dock */
.sidebar-bottom-utility-dock {
  flex-shrink: 0 !important;
  background: #081728 !important;
  border-top: 1px solid rgba(20, 42, 66, 0.75) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.sidebar-bottom-utility-dock .sidebar-category-chips {
  border-bottom: 1px solid rgba(20, 42, 66, 0.5) !important;
  padding: 5px 8px !important;
}

.sidebar-bottom-utility-dock .sidebar-accordion-controls {
  margin: 4px 6px !important;
  height: 28px !important;
}

/* 5. Bottom Navigation Bar */
.sidebar-footer-links {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 8px !important;
  border-top: 1px solid #142a42 !important;
  background: #091a2e !important;
  flex-shrink: 0 !important;
  height: 44px !important;
  box-sizing: border-box !important;
}

.sidebar-nav-btn {
  flex: 1 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 5px 2px !important;
  border-radius: 6px !important;
  background: rgba(15, 28, 44, 0.7) !important;
  border: 1px solid #1c364f !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.sidebar-nav-btn:hover {
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  background: #0f2744 !important;
}

.sidebar-nav-btn.active {
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.15) !important;
}

/* Universal mini add buttons across all app dashboards */
.ln-btn-mini-add,
.seo-btn-mini-add,
.tk-btn-mini-add,
.pm-btn-mini-add,
.bale-btn-add {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

.ln-btn-mini-add:hover,
.seo-btn-mini-add:hover,
.tk-btn-mini-add:hover,
.pm-btn-mini-add:hover,
.bale-btn-add:hover {
  background: rgba(16, 185, 129, 0.35) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* =============================================================================
   20. MASTER LINOK LIGHT THEME SPECIFICATION
   Curated with precision by Sally (UX Designer) & Freya (Design Systems)
   100% RTL • High Ergonomics Slate Canvas • Contrast AAA
   ============================================================================= */

/* ── 20.1 Root Canvas & Structural Wrappers ── */
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] #container,
html[data-theme="light"] #main,
html[data-theme="light"] #main.shifted,
html[data-theme="light"] #content,
html[data-theme="light"] #content-main,
html[data-theme="light"] .change-list,
html[data-theme="light"] .change-list #changelist,
html[data-theme="light"] .changelist-form-container {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html[data-theme="light"] #content,
html[data-theme="light"] #content-main,
html[data-theme="light"] .changelist-form-container {
  background: transparent !important;
  background-color: transparent !important;
}

/* ── 20.2 Header & Brand ── */
html[data-theme="light"] #header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] #branding h1 a.linok-brand-link {
  color: #0f172a !important;
}

html[data-theme="light"] .linok-brand-title {
  color: #0284c7 !important;
}

html[data-theme="light"] .linok-brand-subtitle {
  color: #64748b !important;
}

html[data-theme="light"] #branding h1 a:hover .linok-brand-title {
  color: #0369a1 !important;
}

html[data-theme="light"] .linok-header-logo {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] #user-tools {
  color: #475569 !important;
}

html[data-theme="light"] #user-tools a {
  color: #0284c7 !important;
  border-bottom-color: rgba(2, 132, 199, 0.3) !important;
}

html[data-theme="light"] #user-tools a:hover {
  color: #0369a1 !important;
  border-bottom-color: #0284c7 !important;
}

/* ── 20.3 Global Subsystem Navbar ── */
html[data-theme="light"] .linok-global-navbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .linok-navbar-inner {
  scrollbar-color: #cbd5e1 transparent !important;
}

html[data-theme="light"] .linok-navbar-inner::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}

html[data-theme="light"] .subsystem-nav-link {
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .subsystem-nav-link:hover {
  color: #0284c7 !important;
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.1) !important;
}

html[data-theme="light"] .subsystem-nav-link.active {
  color: #0284c7 !important;
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.18) !important;
}

/* ── 20.4 Breadcrumbs ── */
html[data-theme="light"] .breadcrumbs {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

html[data-theme="light"] .breadcrumbs a {
  color: #0284c7 !important;
}

html[data-theme="light"] .breadcrumbs a:hover {
  color: #0369a1 !important;
}

html[data-theme="light"] .breadcrumbs span,
html[data-theme="light"] .breadcrumbs .current-crumb {
  color: #0f172a !important;
}

/* ── 20.5 Navigation Sidebar (#nav-sidebar, 100% ID Scoped) ── */
html[data-theme="light"] #nav-sidebar {
  background: #f8fafc !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: none !important;
  box-shadow: -4px 0 16px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-top-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-brand-main {
  color: #0f172a !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-brand-sub {
  color: #64748b !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-total-badge {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-system-switcher-wrapper {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-system-switcher-wrapper .linok-system-status-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-system-switcher-wrapper .linok-system-tag-label {
  color: #64748b !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-system-switcher-wrapper .linok-system-select-input {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-system-switcher-wrapper .linok-system-active-name {
  color: #0284c7 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-system-switcher-wrapper .linok-system-manage-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-system-switcher-wrapper .linok-system-manage-btn:hover {
  color: #0284c7 !important;
  border-color: #0284c7 !important;
  background: #e0f2fe !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-filter-wrapper {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #nav-sidebar #nav-filter {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] #nav-sidebar #nav-filter:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.2) !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-search-ico,
html[data-theme="light"] #nav-sidebar .sidebar-clear-btn {
  color: #64748b !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-category-chips {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-cat-chip {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-cat-chip:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-cat-chip.active {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-bottom-utility-dock {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-bottom-utility-dock .sidebar-category-chips {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-bottom-utility-dock .sidebar-accordion-controls {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-scroll-content {
  background: #f8fafc !important;
  scrollbar-color: #cbd5e1 transparent !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-scroll-content::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-app-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-app-card:hover {
  border-color: #bae6fd !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-app-card.current-app {
  border-color: #38bdf8 !important;
  background: #ffffff !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-card-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-card-header:hover {
  background: #f1f5f9 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-app-name {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-count-pill {
  background: #e2e8f0 !important;
  color: #475569 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-chevron {
  color: #94a3b8 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-models-tray {
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-table {
  background: #ffffff !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-row {
  background: #ffffff !important;
  border-bottom: 1px solid #f8fafc !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-row:hover {
  background: #f0f9ff !important;
}

html[data-theme="light"] #nav-sidebar a,
html[data-theme="light"] #nav-sidebar .sidebar-model-anchor {
  color: #334155 !important;
  background: transparent !important;
}

html[data-theme="light"] #nav-sidebar a:hover,
html[data-theme="light"] #nav-sidebar a:focus,
html[data-theme="light"] #nav-sidebar .sidebar-model-anchor:hover {
  color: #0284c7 !important;
  background: #f0f9ff !important;
}

html[data-theme="light"] #nav-sidebar tr.current-model a,
html[data-theme="light"] #nav-sidebar .sidebar-model-anchor.current-active {
  color: #0284c7 !important;
  background: #e0f2fe !important;
  font-weight: 800 !important;
  border-right: 3px solid #0284c7 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-link-bullet {
  background: #cbd5e1 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-model-anchor.current-active .sidebar-link-bullet {
  background: #0284c7 !important;
  box-shadow: 0 0 4px #0284c7 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-add-badge {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #059669 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-add-badge:hover {
  background: #10b981 !important;
  color: #ffffff !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-footer-links {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-nav-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-nav-btn:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

html[data-theme="light"] #nav-sidebar .sidebar-nav-btn.active {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

html[data-theme="light"] #nav-sidebar .module {
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #nav-sidebar .module caption,
html[data-theme="light"] #nav-sidebar .module caption a,
html[data-theme="light"] #nav-sidebar .module th.section,
html[data-theme="light"] #nav-sidebar .module th.section a {
  color: #0284c7 !important;
}

html[data-theme="light"] .toggle-nav-sidebar {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-right: none !important;
  color: #0284c7 !important;
  box-shadow: -2px 2px 8px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .toggle-nav-sidebar:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

/* ── 20.6 Changelist Table (#result_list, High Contrast) ── */
html[data-theme="light"] #changelist .results {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] #result_list {
  background: #ffffff !important;
}

html[data-theme="light"] #result_list thead th {
  background: #f1f5f9 !important;
  border-bottom: 2px solid #cbd5e1 !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="light"] #result_list thead th .text,
html[data-theme="light"] #result_list thead th .text span,
html[data-theme="light"] #result_list thead th span {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="light"] #result_list thead th a,
html[data-theme="light"] #result_list thead th.sortable a {
  color: #0284c7 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] #result_list thead th a:hover,
html[data-theme="light"] #result_list thead th.sortable a:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

html[data-theme="light"] #result_list thead th.sorted {
  background: #e2e8f0 !important;
}

html[data-theme="light"] #result_list thead th.sorted .text,
html[data-theme="light"] #result_list thead th.sorted .text span,
html[data-theme="light"] #result_list thead th.sorted a {
  color: #0284c7 !important;
}

html[data-theme="light"] #result_list thead th .sortpriority,
html[data-theme="light"] #result_list thead th .sortoptions {
  color: #64748b !important;
}

html[data-theme="light"] #result_list thead th a.sortremove {
  color: #e11d48 !important;
}

html[data-theme="light"] #result_list tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] #result_list tbody tr:nth-child(even) {
  background: #f8fafc !important;
}

html[data-theme="light"] #result_list tbody tr:nth-child(odd) {
  background: #ffffff !important;
}

html[data-theme="light"] #result_list tbody tr:hover {
  background: #f0f9ff !important;
}

html[data-theme="light"] #result_list tbody tr.selected {
  background: #e0f2fe !important;
}

html[data-theme="light"] #result_list tbody th,
html[data-theme="light"] #result_list tbody td {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

html[data-theme="light"] #result_list tbody th a {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme="light"] #result_list tbody th a:hover {
  color: #0284c7 !important;
}

html[data-theme="light"] #result_list tbody td a {
  color: #0284c7 !important;
}

html[data-theme="light"] #result_list tbody td a:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

/* ── 20.7 Toolbar, Search & Filter Sidebar (Full Django 4/5 Support) ── */
html[data-theme="light"] #toolbar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] #searchbar {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] #searchbar:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
}

html[data-theme="light"] .actions {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

html[data-theme="light"] .actions label {
  color: #334155 !important;
}

html[data-theme="light"] .actions select {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .actions select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme="light"] .actions .action-counter {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.2) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .actions span.question,
html[data-theme="light"] .actions span.clear {
  color: #64748b !important;
}

html[data-theme="light"] .actions span.all {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

/* Filter Drawer in Light Theme */
html[data-theme="light"] #changelist-filter,
html[data-theme="light"] search#changelist-filter {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 15px 0 45px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .linok-filter-drawer-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .filter-header-texts h4 {
  color: #0f172a !important;
}

html[data-theme="light"] .filter-header-sub {
  color: #0284c7 !important;
}

html[data-theme="light"] .linok-filter-close-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

html[data-theme="light"] #changelist-filter h3,
html[data-theme="light"] search#changelist-filter h3 {
  color: #0284c7 !important;
}

html[data-theme="light"] #changelist-filter ul li a {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

html[data-theme="light"] #changelist-filter ul li.selected a {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25) !important;
}

html[data-theme="light"] .linok-filter-drawer-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .linok-filter-trigger-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

html[data-theme="light"] .linok-filter-trigger-btn.has-active-filters {
  background: #f0fdf4 !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

html[data-theme="light"] .linok-active-filters-ribbon {
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
}

html[data-theme="light"] .linok-filter-chip {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .linok-filter-backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
}

/* ── 20.8 Paginator ── */
html[data-theme="light"] .paginator {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

html[data-theme="light"] .paginator a {
  color: #0284c7 !important;
}

html[data-theme="light"] .paginator a:hover {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

html[data-theme="light"] .paginator .this-page {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* ── 20.9 Change Forms & Fieldsets (Sally & Freya Light Ergonomics) ── */
html[data-theme="light"] .change-form fieldset.module {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  border-radius: 14px !important;
  padding: 0 !important;
  margin-bottom: 22px !important;
  overflow: hidden !important;
}

html[data-theme="light"] .change-form fieldset.module > h2,
html[data-theme="light"] .change-form fieldset.module .fieldset-heading,
html[data-theme="light"] .change-form fieldset.module details summary,
html[data-theme="light"] .change-form fieldset.module :not(.inline-related).collapse summary,
html[data-theme="light"] .change-form :not(.inline-related) .collapse summary,
html[data-theme="light"] fieldset .fieldset-heading,
html[data-theme="light"] fieldset .inline-heading {
  background: #f1f5f9 !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  padding: 12px 20px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

html[data-theme="light"] .change-form fieldset.module details summary:hover,
html[data-theme="light"] .change-form fieldset.module :not(.inline-related).collapse summary:hover,
html[data-theme="light"] .change-form :not(.inline-related) .collapse summary:hover {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}

html[data-theme="light"] .change-form fieldset.module details summary h2,
html[data-theme="light"] .change-form fieldset.module details summary .fieldset-heading,
html[data-theme="light"] .collapse summary .fieldset-heading,
html[data-theme="light"] .collapse summary .inline-heading {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
}

html[data-theme="light"] .change-form .form-row {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 14px 20px !important;
}

html[data-theme="light"] .change-form .form-row label {
  color: #334155 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .change-form .form-row label.required {
  color: #0f172a !important;
}

html[data-theme="light"] .change-form .help,
html[data-theme="light"] .change-form .help-tooltip {
  color: #64748b !important;
}

html[data-theme="light"] .change-form input[type="text"],
html[data-theme="light"] .change-form input[type="password"],
html[data-theme="light"] .change-form input[type="email"],
html[data-theme="light"] .change-form input[type="url"],
html[data-theme="light"] .change-form input[type="number"],
html[data-theme="light"] .change-form textarea,
html[data-theme="light"] .change-form select {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 8px !important;
}

html[data-theme="light"] .change-form input:focus,
html[data-theme="light"] .change-form textarea:focus,
html[data-theme="light"] .change-form select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
}

html[data-theme="light"] .submit-row {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .submit-row .deletelink {
  background: rgba(244, 63, 94, 0.08) !important;
  border: 1px solid rgba(244, 63, 94, 0.3) !important;
  color: #e11d48 !important;
}

html[data-theme="light"] .submit-row .deletelink:hover {
  background: #e11d48 !important;
  color: #ffffff !important;
}

/* ── 20.10 Headings & Object Tools ── */
html[data-theme="light"] #content > h1:first-child,
html[data-theme="light"] .linok-page-title,
html[data-theme="light"] #content h1 {
  color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="light"] #content h2 {
  color: #0284c7 !important;
}

html[data-theme="light"] #content h3 {
  color: #334155 !important;
}

html[data-theme="light"] .object-tools li a.viewsitelink,
html[data-theme="light"] .object-tools li a.historylink {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0284c7 !important;
}

html[data-theme="light"] .object-tools li a.viewsitelink:hover,
html[data-theme="light"] .object-tools li a.historylink:hover {
  background: #e2e8f0 !important;
  color: #0369a1 !important;
}

/* ── 20.11 Admin Help Box ── */
html[data-theme="light"] .admin-help-box {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.06) !important;
}

html[data-theme="light"] .admin-help-box summary {
  color: #0284c7 !important;
}

html[data-theme="light"] .admin-help-box[open] summary {
  border-bottom: 1px solid #bae6fd !important;
}

html[data-theme="light"] .admin-help-body {
  color: #334155 !important;
}

html[data-theme="light"] .admin-help-body strong {
  color: #0f172a !important;
}

/* ── 20.12 Cockpit & Dashboard Elements ── */
html[data-theme="light"] .cockpit-action-header {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .cockpit-action-header .header-title {
  color: #0f172a !important;
}

html[data-theme="light"] .cockpit-hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 55%, #e0f2fe 100%) !important;
  border: 1px solid #bae6fd !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .cockpit-hero-banner::before {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, transparent 70%) !important;
}

html[data-theme="light"] .hero-main-title {
  color: #0f172a !important;
}

html[data-theme="light"] .hero-subtitle {
  color: #475569 !important;
}

html[data-theme="light"] .platform-badge {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border-color: #bae6fd !important;
}

html[data-theme="light"] .hero-logo-box {
  background: #ffffff !important;
  border: 1.5px solid #bae6fd !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .meta-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .meta-label {
  color: #64748b !important;
}

html[data-theme="light"] .meta-value {
  color: #0f172a !important;
}

html[data-theme="light"] .meta-sub {
  color: #94a3b8 !important;
}

html[data-theme="light"] .kpi-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .kpi-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12) !important;
}

html[data-theme="light"] .kpi-label {
  color: #64748b !important;
}

html[data-theme="light"] .kpi-number {
  color: #0f172a !important;
}

html[data-theme="light"] #content-related {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] #content-related h2 {
  color: #0284c7 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #content-related ul.actionlist li {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

html[data-theme="light"] #content-related ul.actionlist li a {
  color: #0284c7 !important;
}

html[data-theme="light"] .cockpit-sidebar-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%) !important;
  border: 1px solid #bae6fd !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.06) !important;
}

html[data-theme="light"] .banner-title {
  color: #0284c7 !important;
}

html[data-theme="light"] .banner-desc {
  color: #475569 !important;
}

html[data-theme="light"] .sidebar-focus-search-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .sidebar-focus-search-btn:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

html[data-theme="light"] .linok-app-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 55%, #e0f2fe 100%) !important;
  border: 1px solid #bae6fd !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .linok-hero-title {
  color: #0f172a !important;
}

html[data-theme="light"] .linok-hero-desc {
  color: #475569 !important;
}

/* ── 20.13 Popups (Calendar, Clocks) ── */
html[data-theme="light"] .calendarbox,
html[data-theme="light"] .clockbox {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .calendarbox caption,
html[data-theme="light"] .clockbox caption {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}

html[data-theme="light"] .calendarbox th {
  color: #475569 !important;
}

/* ── 20.14 Subsystem Design Variables Sync ── */
html[data-theme="light"] {
  --ln-card-bg: #ffffff !important;
  --ln-card-border: #e2e8f0 !important;
  --ln-text: #0f172a !important;
  --ln-text-muted: #64748b !important;
  --ln-shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.06) !important;

  --bb-bg-deep: #f8fafc !important;
  --bb-bg-card: #ffffff !important;
  --bb-bg-card-hover: #f1f5f9 !important;
  --bb-border: #e2e8f0 !important;
  --bb-border-hover: #cbd5e1 !important;
  --bb-text: #0f172a !important;
  --bb-text-muted: #64748b !important;

  --inv-card-bg: #ffffff !important;
  --inv-card-border: #e2e8f0 !important;
  --inv-card-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
  --inv-text-primary: #0f172a !important;
  --inv-text-secondary: #334155 !important;
  --inv-text-muted: #64748b !important;

  --g-card-bg: #ffffff !important;
  --g-card-border: #e2e8f0 !important;
  --g-text-primary: #0f172a !important;
  --g-text-muted: #64748b !important;
  --g-badge-bg: #f1f5f9 !important;

  --wl-card-bg: #ffffff !important;
  --wl-card-border: #e2e8f0 !important;
  --wl-text-main: #0f172a !important;
  --wl-text-muted: #64748b !important;
  --wl-neutral-bg: #f1f5f9 !important;
}

/* ── 20.15 Theme Toggle Button (Curated by Sally & Freya) ── */
.linok-theme-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  background: rgba(14, 39, 68, 0.7) !important;
  color: #38bdf8 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-right: 8px !important;
  user-select: none !important;
}

.linok-theme-toggle-btn:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  transform: scale(1.04) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
}

html[data-theme="light"] .linok-theme-toggle-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .linok-theme-toggle-btn:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25) !important;
}

/* ── 20.16 Global Jalali Datepicker (jdp-container) Styling ── */
jdp-overlay {
  z-index: 999998 !important;
}

jdp-container {
  background: #091624 !important;
  color: #f8fafc !important;
  border: 1px solid #1c364f !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75) !important;
  border-radius: 12px !important;
  font-family: 'DanaFaNum', 'Vazirmatn', -apple-system, sans-serif !important;
  z-index: 999999 !important;
  padding: 10px 4px !important;
}

jdp-container .jdp-months,
jdp-container .jdp-years {
  color: #f8fafc !important;
  fill: #f8fafc !important;
}

jdp-container .jdp-month,
jdp-container .jdp-month input,
jdp-container .jdp-month select,
jdp-container .jdp-time,
jdp-container .jdp-time input,
jdp-container .jdp-time select,
jdp-container .jdp-year,
jdp-container .jdp-year input,
jdp-container .jdp-year select {
  background: #0d1e33 !important;
  color: #f8fafc !important;
  border: 1px solid #1c364f !important;
  border-radius: 6px !important;
  font-family: inherit !important;
  padding: 4px 6px !important;
}

jdp-container .jdp-icon-minus,
jdp-container .jdp-icon-plus {
  background: #0d1e33 !important;
  border: 1px solid #1c364f !important;
  border-radius: 6px !important;
  color: #38bdf8 !important;
}

jdp-container .jdp-icon-minus svg,
jdp-container .jdp-icon-plus svg {
  fill: #38bdf8 !important;
}

jdp-container .jdp-day-name {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #94a3b8 !important;
  border-radius: 4px !important;
}

jdp-container .jdp-day {
  color: #f1f5f9 !important;
}

jdp-container .jdp-day:not(.disabled-day):hover {
  background: rgba(56, 189, 248, 0.25) !important;
  color: #38bdf8 !important;
  border-radius: 6px !important;
}

jdp-container .jdp-day.selected {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
}

jdp-container .jdp-day.today {
  border: 1px solid #38bdf8 !important;
  border-radius: 6px !important;
}

jdp-container .jdp-day.not-in-month {
  color: #475569 !important;
  opacity: 0.35 !important;
}

jdp-container .jdp-footer {
  padding-top: 8px !important;
  border-top: 1px solid #162f4c !important;
  margin-top: 6px !important;
}

jdp-container .jdp-btn-close,
jdp-container .jdp-btn-empty,
jdp-container .jdp-btn-today {
  background: #0d1e33 !important;
  color: #38bdf8 !important;
  border: 1px solid #1c364f !important;
  border-radius: 6px !important;
  font-family: inherit !important;
  padding: 5px 12px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

jdp-container .jdp-btn-close:hover,
jdp-container .jdp-btn-empty:hover,
jdp-container .jdp-btn-today:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* Light Theme Overrides */
html[data-theme="light"] jdp-container {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] jdp-container .jdp-months,
html[data-theme="light"] jdp-container .jdp-years {
  color: #0f172a !important;
  fill: #0f172a !important;
}

html[data-theme="light"] jdp-container .jdp-month,
html[data-theme="light"] jdp-container .jdp-month input,
html[data-theme="light"] jdp-container .jdp-month select,
html[data-theme="light"] jdp-container .jdp-time,
html[data-theme="light"] jdp-container .jdp-time input,
html[data-theme="light"] jdp-container .jdp-time select,
html[data-theme="light"] jdp-container .jdp-year,
html[data-theme="light"] jdp-container .jdp-year input,
html[data-theme="light"] jdp-container .jdp-year select {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] jdp-container .jdp-icon-minus,
html[data-theme="light"] jdp-container .jdp-icon-plus {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0284c7 !important;
}

html[data-theme="light"] jdp-container .jdp-icon-minus svg,
html[data-theme="light"] jdp-container .jdp-icon-plus svg {
  fill: #0284c7 !important;
}

html[data-theme="light"] jdp-container .jdp-day-name {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

html[data-theme="light"] jdp-container .jdp-day {
  color: #0f172a !important;
}

html[data-theme="light"] jdp-container .jdp-day:not(.disabled-day):hover {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284c7 !important;
}

html[data-theme="light"] jdp-container .jdp-day.selected {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

html[data-theme="light"] jdp-container .jdp-day.today {
  border: 1px solid #0284c7 !important;
}

html[data-theme="light"] jdp-container .jdp-footer {
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] jdp-container .jdp-btn-close,
html[data-theme="light"] jdp-container .jdp-btn-empty,
html[data-theme="light"] jdp-container .jdp-btn-today {
  background: #f8fafc !important;
  color: #0284c7 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] jdp-container .jdp-btn-close:hover,
html[data-theme="light"] jdp-container .jdp-btn-empty:hover,
html[data-theme="light"] jdp-container .jdp-btn-today:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}


