/* Measured against NexLink 1.2.0 public demo styles.css, 2026-09-23.
   This adapter maps its design tokens to the application's Bootstrap 5.3.1 and
   legacy class names. Do not import NexLink's complete Bootstrap bundle over ours. */
/* Keep layout tokens in sync with logo palette (theme.css loads first; this file wins). */
:root, html.light-theme, html.semi-dark, html.minimal-theme {
  --haze-bg: #F5F8FC; --haze-surface: #ffffff; --haze-surface-2: #F0F5FA;
  --haze-surface-3: #E6EEF6; --haze-border: #D5DEE8; --haze-border-strong: #A8B8C8;
  --haze-text: #2A3848; --haze-heading: #02335B; --haze-muted: #3F5163; --haze-soft: #4F6173;
  --haze-placeholder: #64788A;
  --haze-primary: #0080FF; --haze-primary-hover: #0066CC; --haze-primary-soft: #E7F3FF;
  --haze-secondary: #02335B; --haze-secondary-soft: #E7EEF5;
  --haze-success: #137747; --haze-success-soft: #E8F6EF;
  --haze-info: #08768c; --haze-info-soft: #E6F5F8;
  --haze-warning: #925800; --haze-warning-soft: #FFF6E8;
  --haze-danger: #c6283d; --haze-danger-soft: #FCECEE;
  --haze-dark: #02335B; --haze-dark-soft: #E7EEF5;
  --haze-sidebar-bg: #ffffff; --haze-sidebar-text: #02335B; --haze-sidebar-active-bg: #D6EBFF;
  --haze-rail-bg: #F3F7FB;
  --page-ribbon-bg: var(--haze-heading);
  --page-ribbon-fg: #ffffff;
}
html.dark-theme {
  color-scheme: dark;
  --haze-bg: #0E1520; --haze-surface: #161E2B; --haze-surface-2: #1C2636; --haze-surface-3: #243044;
  --haze-border: rgba(197, 208, 220, .12); --haze-border-strong: rgba(148, 180, 220, .28);
  --haze-text: #C5D0DC; --haze-heading: #F2F6FA; --haze-muted: #8FA0B3; --haze-soft: #7A8CA0;
  --haze-placeholder: #8FA0B3;
  --haze-primary: #4DA3FF; --haze-primary-hover: #79BBFF; --haze-primary-soft: #152A42;
  --haze-secondary: #02335B; --haze-secondary-soft: #1C2636;
  --haze-success: #66c2a3; --haze-success-soft: #0F2A1F;
  --haze-info: #6EC8D9; --haze-info-soft: #0F2A33;
  --haze-warning: #f9ca6e; --haze-warning-soft: #312103;
  --haze-danger: #fb8686; --haze-danger-soft: #321018;
  --haze-dark: #02335B; --haze-dark-soft: #1C2636;
  --haze-sidebar-bg: #121A26; --haze-sidebar-text: #C5D0DC; --haze-sidebar-active-bg: #152A42;
  --haze-rail-bg: #121A26;
  --page-ribbon-bg: var(--haze-primary);
  --page-ribbon-fg: #ffffff;
}
:root, html.light-theme, html.dark-theme, html.semi-dark, html.minimal-theme {
  /* Switch UI font */
  --qaran-ui-font: "Public Sans";
  --qaran-font-stack: system-ui, sans-serif;
  --bs-font-sans-serif: var(--qaran-ui-font), var(--qaran-font-stack), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: .8125rem; --bs-body-font-weight: 400; --bs-body-line-height: 1.5;
  --bs-body-color: var(--haze-text); --bs-body-bg: var(--haze-surface);
  --bs-heading-color: var(--haze-heading); --bs-border-color: var(--haze-border);
  --bs-primary: var(--haze-primary); --bs-primary-rgb: 0,128,255;
  --bs-secondary-rgb: 2,51,91; --bs-success-rgb: 19,119,71; --bs-info-rgb: 8,118,140;
  --bs-warning-rgb: 146,88,0; --bs-danger-rgb: 198,40,61; --bs-light-rgb: 240,245,250;
  --bs-dark-rgb: 2,51,91; --bs-border-radius: 6px; --bs-border-radius-lg: 10px;
  --haze-sidebar-width: 295px; --haze-sidebar-collapsed: 55px;
  --haze-sidebar-panel-inset: 16px;
  --haze-topbar-height: 80px; --haze-sidebar-header-height: 80px;
  --haze-radius: 10px; --haze-control-radius: 6px;
  --haze-shadow-sm: 0 5px 10px rgba(2, 51, 91, .06);
  --dreams-gradient: linear-gradient(90deg, #02335B 50%, #0080FF 100%);
  --dreams-focus: rgba(0, 128, 255, .22);
}
html.dark-theme {
  --bs-primary-rgb: 77,163,255;
  --dreams-gradient: linear-gradient(90deg, #02335B 35%, #0080FF 100%);
  --dreams-focus: rgba(77, 163, 255, .28);
  --haze-shadow-sm: 0 5px 10px rgba(0, 0, 0, .22);
}
/* Trial: Safarsoft/Velzon body scale (0.8125rem = 13px). Easy to revert if rejected. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body { font-family: var(--bs-body-font-family); font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: normal; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(button,input,select,textarea,.select2-container,.flatpickr-calendar,.swal2-popup,.lobibox-notify) { font-family: var(--bs-body-font-family); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(h1,h2,h3,h4,h5,h6) { font-family: var(--bs-body-font-family); font-weight: 600; line-height: 1.3; letter-spacing: normal; color: var(--haze-heading); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body h1 { font-size: 2.03125rem; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body h2 { font-size: 1.625rem; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body h3 { font-size: 1.421875rem; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body h4 { font-size: 1.21875rem; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body h5 { font-size: 1.015625rem; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body h6 { font-size: .8125rem; font-weight: 600; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .fw-normal { font-weight: 400 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .fw-medium { font-weight: 500 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .fw-semibold { font-weight: 600 !important; }
/* Soften "bold" for Public Sans — 700 feels oversized on section titles */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.fw-bold,.fw-bolder) { font-weight: 600 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .text-muted, html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .text-secondary { color: var(--haze-muted) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .text-primary { color: var(--haze-primary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select,.form-check-input):focus,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5:is(.select2-container--focus,.select2-container--open) .select2-selection { border-color: var(--haze-primary) !important; outline: 0 !important; box-shadow: 0 0 0 1px var(--haze-primary-soft) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.card,.modal-content,.dropdown-menu,.offcanvas,.list-group-item,.table) { background-color: var(--haze-surface) !important; color: var(--haze-text); border-color: var(--haze-border) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select,.input-group-text) { background-color: var(--haze-surface) !important; color: var(--haze-text) !important; border-color: var(--haze-border-strong) !important; }
html.dark-theme body :is(.card,.modal-content,.dropdown-menu,.offcanvas,.list-group-item,.table) { box-shadow: 0 8px 24px rgba(0,0,0,.18) !important; }
html.dark-theme body :is(.form-control,.form-select,.input-group-text)::placeholder { color: var(--haze-muted) !important; }

/* 55px rail + 240px menu. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .sidebar-wrapper.dreams-sidebar {
  top: 0 !important;
  bottom: 0 !important;
  left: 0;
  width: 295px !important;
  min-width: 295px !important;
  max-width: 295px !important;
  height: 100vh !important;
  height: 100dvh !important;
  border: 0 !important;
  border-right: 1px solid var(--haze-border) !important;
  border-radius: 0;
  background: var(--haze-sidebar-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: inset 3px 0 0 #02335B, inset 0 0 10px rgba(2,51,91,.04) !important;
  overflow: hidden !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-module-rail { width: 55px; flex-basis: 55px; min-height: 0; padding: 20px 5px 16px; background: var(--haze-rail-bg) !important; border-right: 1px solid var(--haze-border); overflow: hidden; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-menu-panel {
  width: 240px;
  min-width: 240px;
  min-height: 0;
  overflow: hidden;
  background: var(--haze-sidebar-bg);
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-menu-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--haze-sidebar-bg);
  scrollbar-width: thin;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-menu-scroll::-webkit-scrollbar {
  width: 2px;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-menu-scroll .simplebar-content-wrapper {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-menu-scroll .simplebar-track.simplebar-vertical {
  width: 2px !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-menu-scroll .simplebar-scrollbar {
  top: 0 !important;
  width: 2px !important;
}
/* Rail icons: muted idle / soft hover / primary active (kept after UI polish). */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-module-list :is(button,a),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-rail-theme {
  color: var(--haze-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-module-list :is(button:hover,a:hover),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-rail-theme:hover {
  color: var(--haze-heading) !important;
  background: var(--haze-surface-3) !important;
  box-shadow: none !important;
}
html:is(.light-theme,.semi-dark,.minimal-theme) body .dreams-module-list :is(.current-module,[aria-pressed="true"],[aria-current="page"]) {
  color: var(--haze-primary) !important;
  background: var(--haze-sidebar-active-bg) !important;
  box-shadow: inset 3px 0 0 var(--haze-primary) !important;
}
html:is(.dark-theme) body .dreams-module-list :is(.current-module,[aria-pressed="true"],[aria-current="page"]) {
  color: var(--haze-primary) !important;
  background: var(--haze-primary-soft) !important;
  box-shadow: inset 3px 0 0 var(--haze-primary) !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-menu-panel .metismenu > li + li {
  margin-top: 1px;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-rail-brand { height: 36px; margin-bottom: 30px; display: grid; place-items: center; width: 36px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-rail-brand img,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-rail-brand .dreams-rail-mark,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-rail-brand .qaran-mark {
  grid-area: 1 / 1;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
/* Rail mark: colored in light themes, white in dark theme */
html:is(.light-theme,.semi-dark,.minimal-theme) body .dreams-rail-brand .dreams-rail-mark-dark { display: none !important; }
html.dark-theme body .dreams-rail-brand .dreams-rail-mark-light { display: none !important; }
html.dark-theme body .dreams-rail-brand .dreams-rail-mark-dark {
  display: block !important;
  filter: brightness(0) invert(1);
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar-search { display: flex; align-items: center; gap: 8px; flex: 0 0 38px; width: calc(100% - (2 * var(--haze-sidebar-panel-inset))); height: 38px; margin: 0 var(--haze-sidebar-panel-inset) 8px; padding: 7px 12px; border: 0; border-radius: 8px; background: var(--haze-surface-2); color: var(--haze-sidebar-text); font-size: 13px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--haze-text); font: inherit; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar-search input::placeholder { color: var(--haze-muted); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-rail-popover { position: fixed; z-index: 12000; transform: translateY(-50%); max-width: 240px; padding: 7px 10px; border-radius: 6px; background: var(--haze-heading); color: var(--haze-surface); font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-rail-popover::before { content: ''; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; background: var(--haze-heading); transform: translateY(-50%) rotate(45deg); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar-search:hover, html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar-search:focus-visible { background: var(--haze-primary-soft); color: var(--haze-primary); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-module-list { gap: 4px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-module-list :is(button,a), html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-rail-theme { width: 36px; height: 36px; flex-basis: 36px; font-size: 20px; border: 0; border-radius: 8px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar .sidebar-header { height: 70px; min-height: 70px; padding: 8px 14px !important; display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar .sidebar-brand { padding: 0 !important; width: 100% !important; display: flex !important; align-items: center !important; justify-content: center !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar .sidebar-brand-link {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 236px;
  line-height: 0;
  text-decoration: none;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar .mogav-sidebar-wordmark,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar .qaran-sidebar-wordmark {
  grid-area: 1 / 1;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: center;
}
/* Panel wordmark: colored in light themes, white in dark theme (same as rail mark) */
html:is(.light-theme,.semi-dark,.minimal-theme) body .dreams-sidebar .mogav-sidebar-wordmark-dark { display: none !important; }
html.dark-theme body .dreams-sidebar .mogav-sidebar-wordmark-light { display: none !important; }
html.dark-theme body .dreams-sidebar .mogav-sidebar-wordmark-dark {
  display: block !important;
  filter: brightness(0) invert(1);
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar .logo-text { font-size: 15px !important; font-weight: 600 !important; letter-spacing: normal; margin: 0 !important; width: 100% !important; text-align: center !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations { padding: 2px var(--haze-sidebar-panel-inset) 20px !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-label {
  color: var(--haze-primary) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  margin: 0 0 1px;
  padding: 3px 12px 1px;
  text-transform: none;
  line-height: 1.3;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group > .menu-group-items { display: block !important; max-height: 0; margin: 0 !important; padding: 0 0 0 12px !important; border: 0 !important; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .28s ease, opacity .2s ease, padding .28s ease, visibility 0s linear .28s; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group.mm-active > .menu-group-items { max-height: 2400px; padding-top: 2px !important; padding-bottom: 4px !important; opacity: 1; visibility: visible; transition-delay: 0s; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-group > .has-arrow::after { top: 50% !important; transform-origin: center !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-group:not(.mm-active) > .has-arrow::after { transform: translateY(-50%) rotate(-45deg) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-group { display: flex !important; position: relative !important; flex: 0 0 auto !important; flex-direction: column !important; height: auto !important; min-height: 0 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-group[hidden] { display: none !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-group > .has-arrow { display: none !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-group > .has-arrow { flex: 0 0 auto !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group > .has-arrow { background: var(--haze-surface-2) !important; border: 0 !important; color: var(--haze-heading) !important; transition: background .2s ease, color .2s ease; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group > .has-arrow { display: flex !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group > .has-arrow > .parent-icon { margin-left: 8px !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group.mm-active > .has-arrow { background: var(--haze-primary-soft) !important; border: 0 !important; color: var(--haze-primary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-group.mm-active > .has-arrow::after { transform: translateY(-50%) rotate(-135deg) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-group > .menu-group-items > li { display: flex !important; position: relative !important; flex: 0 0 auto !important; height: auto !important; min-height: 0 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-group > .menu-group-items > li[hidden] { display: none !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > .menu-group > .menu-group-items > li > a { display: flex !important; position: relative !important; width: 100% !important; min-height: 28px !important; height: auto !important; padding: 3px 12px 3px 8px !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group > .menu-group-items > li > a { color: var(--haze-text) !important; transition: background .2s ease, color .2s ease; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group > .menu-group-items > li > a:hover,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group > .menu-group-items > li.mm-active > a { background: var(--haze-sidebar-active-bg) !important; color: var(--haze-primary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group > .menu-group-items > li.mm-active > a { font-weight: 400 !important; }
/* Focused / active submenus: light tint + bolder weight (all pages) */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) {
  padding-left: 4px !important;
  border-left: 0 !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) > li > a {
  border-radius: 6px;
  padding-left: 8px !important;
  padding-right: 12px !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) > li:is(.mm-active,.fw-bold) > a,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) > li > a:is(.active,:focus,:focus-visible),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) > li > a:hover {
  background: var(--haze-sidebar-active-bg) !important;
  color: var(--haze-primary) !important;
  box-shadow: none !important;
}
html:is(.light-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) > li:is(.mm-active,.fw-bold) > a,
html:is(.light-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) > li > a.active {
  box-shadow: inset 3px 0 0 var(--haze-primary) !important;
}
html:is(.light-theme,.semi-dark,.minimal-theme) body.college-dashboard-page .dreams-sidebar #navigations > .menu-group.mm-active > .has-arrow {
  background: var(--haze-sidebar-active-bg) !important;
  box-shadow: inset 3px 0 0 var(--haze-primary);
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > li > a { padding: 4px 12px; margin: 0; min-height: 28px; font-size: 13px !important; font-weight: 400; border-radius: 6px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations ul a { padding: 3px 12px 3px 8px !important; font-size: 13px !important; font-weight: 400; min-height: 26px !important; }
/* One gap at every level; legacy icon/title margins must not add to it. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations li > a { gap: 8px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations a > :is(.parent-icon,i) { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; min-width: 18px; margin: 0; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations a > .menu-title { margin-left: 0; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations .parent-icon > i { margin: 0; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations .parent-icon { font-size: 18px; color: var(--haze-muted); }
/* Child/submenu link icons only (not parent .parent-icon). */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) > li > a > i { flex: 0 0 18px; width: 18px; min-width: 18px; font-size: 16px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > li:is(.mm-active,.fw-bold) > a,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > li > a:is(.active,:hover,:focus) { color: var(--haze-primary) !important; background: transparent !important; box-shadow: none !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > li:is(.mm-active,.fw-bold) > a .parent-icon,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) > li:is(.mm-active,.fw-bold) > a .parent-icon { color: var(--haze-primary); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar { left: var(--haze-sidebar-width); background: var(--haze-bg) !important; border-bottom: 1px solid var(--haze-border) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar .navbar { padding: 0 24px; gap: 16px !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .mobile-toggle-menu { width: 28px; height: 28px; min-width: 28px; font-size: 17px; border-radius: 6px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-search-trigger { width: min(300px,30vw); min-height: 38px; padding: 6px 12px; font-size: 13px; font-weight: 400; background: var(--haze-surface-3); border: 0; border-radius: 6px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar .top-menu .nav-link { width: 36px; height: 36px; font-size: 22px; background: transparent !important; border: 0; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar .user-box { border: 0; background: transparent; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar .user-box > a { flex-direction: row-reverse; gap: 10px !important; background: transparent !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar .user-info { text-align: right; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar .user-name { font-size: 13px; font-weight: 500; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar .designattion { font-size: 11px; font-weight: 400; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) {
  height: 100%;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
/* Keep footer at viewport bottom when page content is short. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  height: auto !important;
  margin-top: 68px;
  margin-right: 0;
  margin-bottom: 0 !important;
  margin-left: var(--haze-sidebar-width);
  padding-bottom: 0;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-content {
  flex: 1 0 auto;
  padding: 14px 24px 22px;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper .overlay {
  position: fixed !important;
  margin: 0 !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-footer {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  flex: 0 0 auto;
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  clear: both;
  min-height: 52px;
  margin-left: var(--haze-sidebar-width) !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  padding: 14px 35px !important;
  border-top: 1px solid var(--haze-border) !important;
  background: var(--haze-info-soft) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  text-align: left !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--haze-muted) !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-footer p {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  color: inherit !important;
  line-height: 1.5 !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-footer a {
  color: var(--haze-primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-footer a:hover {
  text-decoration: underline !important;
}
/* Keep back-to-top clear of the footer strip. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .back-to-top {
  bottom: 72px !important;
  right: 20px !important;
  z-index: 20 !important;
}
/* Nested footer (inside page-wrapper) must not inherit sidebar offset again. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-wrapper .page-footer,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .page-wrapper .page-footer {
  margin-left: 0 !important;
  width: 100%;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-breadcrumb,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body #pageBreadcrumb {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 10px !important;
  margin: 0 0 16px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-page-heading { padding: 0; margin: 0; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-page-heading h1 { font-size: 15px; font-weight: 600; margin: 0 0 4px; padding: 0; line-height: 1.3; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-page-heading .breadcrumb {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px;
  --bs-breadcrumb-item-padding-x: .75rem;
  gap: 0;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-breadcrumb .breadcrumb-item + .breadcrumb-item,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-page-heading .breadcrumb-item + .breadcrumb-item {
  padding-left: .75rem !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-breadcrumb .breadcrumb-item + .breadcrumb-item::before,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-page-heading .breadcrumb-item + .breadcrumb-item::before {
  float: none;
  padding-right: .75rem !important;
  color: var(--haze-soft) !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-page-context {
  margin: 0;
  padding: 0;
  font-size: 12px;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.dreams-page-heading .breadcrumb,.dreams-page-context) { font-size: 11px; }

/* Shared components. Specificity deliberately defeats legacy theme overrides. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .card { border-radius: 10px !important; background: var(--haze-surface) !important; border-color: var(--haze-border) !important; box-shadow: 0 5px 10px rgba(2,2,76,.02) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .card-header { padding: 16px 18px; background: transparent !important; border-bottom-color: var(--haze-border) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .card-body { padding: 16px 18px; background: transparent !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .card-footer { padding: 16px 18px; background: transparent !important; border-top-color: var(--haze-border) !important; }
/* Nested cards inside tabs/panels keep the same surface as parent cards. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .card .card,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .tab-content .card,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .tab-pane .card {
  background: var(--haze-surface) !important;
  border-color: var(--haze-border) !important;
  box-shadow: 0 5px 10px rgba(2,2,76,.02) !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.card-header h6,.card-title) { font-size: 13px; font-weight: 600; }
/* Section titles used across forms/tabs — keep compact, not shouty */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.card-body,.tab-pane,.modal-body,.offcanvas-body) > :is(h6,h5),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.card-body,.tab-pane,.modal-body,.offcanvas-body) form > :is(h6,h5),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body form.row > :is(h6,h5) {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .row-cols-xl-4 > .col > .card::before { display: none; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn { font-size: 13px; font-weight: 400; line-height: 1.45; padding: .45rem 1rem; border-radius: 8px; box-shadow: none; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-sm { padding: .35rem .65rem; font-size: 12px; line-height: 1.4; border-radius: 6px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-lg { padding: .6rem 1.15rem; font-size: 14px; line-height: 1.45; border-radius: 10px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn:disabled, html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn.disabled { opacity: .65; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-label { margin-bottom: .45rem; font-size: 13px; font-weight: 500; color: var(--haze-text); }
/*
  Form field rhythm: Bootstrap vertical gutters use negative row margins that fight
  theme overrides. Prefer a compact row-gap.
*/
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body form.row,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body form .row {
  --bs-gutter-y: 0;
  row-gap: .9rem;
  margin-top: 0;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body form.row.g-2,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body form .row.g-2 {
  row-gap: .75rem;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.card-body, .modal-body, .offcanvas-body, .tab-pane) > form.row {
  margin-top: .2rem;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.card-body, .modal-body, .offcanvas-body, .tab-pane) form.row > [class*="col-"]:last-child:has(:is(.btn, button[type="submit"], button[type="button"].btn-primary, .btn-primary)) {
  margin-top: .35rem !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select,.input-group-text) { font-family: var(--bs-body-font-family); font-size: 13px; font-weight: 400; line-height: 1.5; padding: .45rem 1rem; min-height: 38px; border-radius: 6px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select,.input-group-text),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 :is(.select2-selection__rendered,.select2-selection__placeholder,.select2-search__field,.select2-results__option,.select2-selection__choice) { font-weight: 400 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-select { padding-right: 3.4rem; background-position: right 1.1rem center; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control-sm,.form-select-sm) { min-height: 34px; font-size: 11.375px; padding: .35rem .65rem; border-radius: 6px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control-lg,.form-select-lg) { min-height: 46px; font-size: 14px; padding: .65rem 1.2rem; border-radius: 8px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select,.input-group-text) { border: 1px solid var(--haze-border-strong) !important; background-color: var(--haze-surface) !important; color: var(--haze-text); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select):disabled { background-color: var(--haze-surface-3) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select,.form-check-input):focus,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5:is(.select2-container--focus,.select2-container--open) .select2-selection { border-color: var(--haze-primary) !important; outline: 0 !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--haze-primary) 28%, transparent) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select).is-invalid { border-color: #f83636 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select).is-valid { border-color: #009966 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control::placeholder,.select2-selection__placeholder) { color: var(--haze-muted) !important; opacity: 1; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-check-input { width: 1.5em; height: 1.5em; margin-top: .05em; border: 1px solid var(--haze-border-strong); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-check-input:checked { background-color: var(--haze-primary); border-color: var(--haze-primary); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-switch .form-check-input { width: 2.8em; margin-left: -3.3em; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .input-group > :not(:first-child):not(.dropdown-menu) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* Match form-control height without fighting bootstrap-5 theme arrow/clear layout. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 .select2-selection {
  min-height: 38px;
  border: 1px solid var(--haze-border-strong) !important;
  border-radius: 6px;
  background: var(--haze-surface) !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 .select2-selection--single {
  padding: .375rem 2.25rem .375rem .75rem;
  display: flex;
  align-items: center;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 1.5 !important;
  color: var(--haze-text) !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: .5rem;
  display: flex;
  align-items: center;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
  margin-right: .35rem;
  height: auto;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 .select2-selection--multiple {
  padding: .25rem .5rem;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 :is(.select2-selection__rendered,.select2-selection__placeholder,.select2-search__field,.select2-results__option,.select2-selection__choice) { font-size: 13px !important; font-weight: 400 !important; line-height: 1.5 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 .select2-results__option--highlighted { background: var(--haze-primary) !important; color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5.select2-container--disabled .select2-selection { background: var(--haze-surface-3); }
/* Keep open menus above Bootstrap modals (1055); modal fields should still set dropdownParent. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 .select2-dropdown {
  z-index: 1065;
  background: var(--haze-surface);
  color: var(--haze-text);
  border-color: var(--haze-border-strong);
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-text,.invalid-feedback,.valid-feedback) { font-size: 12px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .modal-content { border: 0; border-radius: 10px; background: var(--haze-surface); box-shadow: 0 .26rem 1.126rem rgba(45,42,60,.15); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .modal-header { padding: 16px 18px; background: var(--haze-surface); border-bottom: 1px solid var(--haze-border); border-radius: 10px 10px 0 0; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .modal-header .modal-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .modal-body { padding: 18px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .modal-footer { padding: 14px 18px; gap: 0; background: var(--haze-surface); border-top: 1px solid var(--haze-border); border-radius: 0 0 10px 10px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .modal-footer > * { margin: 4px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .offcanvas { background: var(--haze-surface); }
/* Drawers flush to viewport top/bottom (full height, no top gap / radius inset). */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .offcanvas.offcanvas-end,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .offcanvas.offcanvas-start {
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .offcanvas-header { padding: 16px 18px; background: var(--haze-surface); border-bottom: 1px solid var(--haze-border); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .offcanvas-header .offcanvas-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .offcanvas-body { padding: 18px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .offcanvas .border-top.p-3 { padding: 14px 18px !important; gap: 0; background: var(--haze-surface); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .offcanvas .border-top.p-3 > * { margin: 4px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .offcanvas-backdrop { background-color: rgba(12, 36, 60, .4); backdrop-filter: blur(12px) saturate(130%); -webkit-backdrop-filter: blur(12px) saturate(130%); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .offcanvas-backdrop.show { opacity: 1; }
html.dark-theme body .offcanvas-backdrop { background-color: rgba(0, 0, 0, .5); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .modal-backdrop { background-color: rgba(12, 36, 60, .4); backdrop-filter: blur(12px) saturate(130%); -webkit-backdrop-filter: blur(12px) saturate(130%); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .modal-backdrop.show { opacity: 1; }
html.dark-theme body .modal-backdrop { background-color: rgba(0, 0, 0, .5); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .nav-tabs { gap: 0; border-bottom: 1px solid var(--haze-border); background: transparent; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .nav-tabs .nav-link { padding: 9px 18px; margin-bottom: -1px; border: 1px solid transparent !important; border-radius: 6px 6px 0 0; font-size: 13px; font-weight: 500; color: var(--haze-primary); box-shadow: none; background: transparent !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .nav-tabs .nav-link:hover { background: var(--haze-surface-2) !important; border-color: var(--haze-border) var(--haze-border) transparent !important; color: var(--haze-primary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .nav-tabs .nav-link.active { color: var(--haze-heading) !important; background: var(--haze-surface) !important; border-color: var(--haze-border) var(--haze-border) var(--haze-surface) !important; box-shadow: none; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .tab-content,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .tab-pane { background: transparent !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .nav-pills { gap: 0; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .nav-pills .nav-link { padding: 9px 18px; font-size: 13px; border-radius: 6px; font-weight: 500; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .nav-pills .nav-link.active, html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .nav-pills .show > .nav-link { background: var(--haze-primary) !important; color: #fff !important; box-shadow: none; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .nav-pills-custom .nav-link.active { background: var(--haze-surface) !important; color: var(--haze-heading) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dropdown-menu { padding: 6px; border: 1px solid var(--haze-border); border-radius: 6px; background: var(--haze-surface); box-shadow: 0 5px 10px rgba(0,0,0,.05); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dropdown-item { padding: 7px 14px; font-size: 13px; border-radius: 6px; color: var(--haze-text); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dropdown-item:is(:hover,:focus) { background: var(--haze-surface-3); color: var(--haze-text); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dropdown-item.active { background: var(--haze-primary-soft); color: var(--haze-primary); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .badge { font-size: 11px; font-weight: 500 !important; line-height: 1.4; padding: 4px 8px; border-radius: 6px; min-width: 24px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .badge.rounded-pill { border-radius: 50rem !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .table { font-size: 13px; line-height: 1.45; color: var(--haze-text); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .table > :not(caption) > * > * { padding: 9px 12px; border-color: var(--haze-border); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .table thead th { font-size: 12px; font-weight: 600; padding-top: .75rem !important; padding-bottom: .75rem !important; letter-spacing: .01em; color: var(--page-ribbon-fg) !important; background: var(--page-ribbon-bg) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .table-sm > :not(caption) > * > * { padding: 6px 8px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dataTables_wrapper :is(.dataTables_info,.dataTables_length,.dataTables_filter) { font-size: 12px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-link { font-size: 13px; padding: 5px 10px; margin: 0 3px; border-radius: 6px !important; color: var(--haze-primary); border-color: var(--haze-border); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-item.active .page-link { background: var(--haze-primary); border-color: var(--haze-primary); color: #fff; }
/* Dashboard cards inherit the same component system, including custom panels. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dashboard-overview .page-content { gap: 20px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dashboard-overview :is(.card-body,.card-header) { padding: 16px 18px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dashboard-overview .card-header h6 { font-size: 13px; font-weight: 600; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dashboard-overview .metric-tile { border-radius: 10px !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dashboard-overview .metric-tile-value { font-size: 22px; font-weight: 600; letter-spacing: normal; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dashboard-overview .metric-tile-label { font-size: 13px; font-weight: 500; color: var(--haze-heading); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dashboard-overview .metric-tile-caption { font-size: 11px; font-weight: 400; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dashboard-overview .metric-tile-icon { width: 36px; height: 36px; font-size: 20px; border-radius: 8px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dashboard-overview .financial-overview .card-body h4 { font-size: 18px; font-weight: 600; letter-spacing: normal; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .dashboard-hero { padding: 16px 18px; border: 1px solid var(--haze-border); border-radius: 10px; background: var(--haze-surface); color: var(--haze-text); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .dashboard-hero::after { display: none; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .dashboard-hero h2 { color: var(--haze-heading); font-size: 18px; font-weight: 600; letter-spacing: normal; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .dashboard-hero p, html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .dashboard-year span { color: var(--haze-text); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .dashboard-eyebrow { color: var(--haze-primary); letter-spacing: .04em; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .dashboard-year { background: var(--haze-primary-soft); border: 1px solid var(--haze-border); border-radius: 6px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .dashboard-year strong { color: var(--haze-primary); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .dashboard-year-icon { color: var(--haze-primary); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .financial-overview > .card-body > .row .card,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard #dashboardExpenses > .row-cols-1 .card,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .college-dashboard .card.border-start { border-radius: 10px !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .section-authentication-signin .card { border-radius: 10px !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body.login-page .login-shell { border-radius: 16px !important; }

@media (min-width: 1200px) {
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper.dreams-sidebar { width: 55px !important; min-width: 55px !important; max-width: 55px !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled:not(.sidebar-hovered) .dreams-sidebar .dreams-menu-panel { display: none !important; width: 0 !important; min-width: 0 !important; visibility: hidden !important; overflow: hidden !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled:not(.sidebar-hovered) .dreams-sidebar .dreams-module-rail { width: 55px !important; min-width: 55px !important; flex-basis: 55px !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled:not(.sidebar-hovered) .dreams-sidebar .dreams-module-rail :is(.menu-title,.menu-label) { display: none !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled:not(.sidebar-hovered) .dreams-sidebar :is(.sidebar-header,.dreams-menu-scroll,#navigations,#navigations > li) { overflow: hidden !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled:not(.sidebar-hovered) .dreams-sidebar #navigations :is(.menu-title,.menu-label,.menu-group > .has-arrow::after,.menu-group-items) { display: none !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .topbar { left: 55px !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .page-wrapper,
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled > .page-footer { margin-left: 55px !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .page-wrapper .page-footer { margin-left: 0 !important; }
}
@media (max-width: 1199.98px) {
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper .sidebar-wrapper.dreams-sidebar { left: -295px !important; width: 295px !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .sidebar-wrapper.dreams-sidebar { left: 0 !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper .dreams-sidebar .dreams-menu-panel { display: flex !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper .topbar { left: 0 !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper .page-wrapper, html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper .page-footer { margin-left: 0 !important; }
}
@media (max-width: 575.98px) {
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-content { padding: 12px 14px 22px; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar .navbar { padding: 0 12px; gap: 8px !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-search-trigger { width: 34px; height: 34px; min-height: 34px; padding: 0; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar .user-info { display: none; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-footer { padding: 14px 12px; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select), html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 :is(.select2-selection__rendered,.select2-search__field) { font-size: 16px; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .modal-dialog { margin: 8px; }
}
@media print {
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-wrapper, html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .page-wrapper { margin: 0 !important; }
}

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .bg-primary:is(.card,:not(.card)) { background-color: var(--haze-primary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .text-primary { color: var(--haze-primary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.bg-light-primary,.bg-primary-subtle) { background-color: var(--haze-primary-soft) !important; color: var(--haze-primary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-primary { background: var(--haze-primary) !important; border-color: var(--haze-primary) !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-primary:is(:hover,:focus-visible) { background: var(--haze-primary-hover) !important; border-color: var(--haze-primary-hover) !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-primary { color: var(--haze-primary); border-color: var(--haze-primary); background: transparent; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-primary:is(:hover,:active,.active) { background: var(--haze-primary) !important; border-color: var(--haze-primary) !important; color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .badge.bg-primary { color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .alert-primary { background: var(--haze-primary-soft); color: var(--haze-primary); border-color: var(--haze-border); }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .bg-secondary:is(.card,:not(.card)) { background-color: var(--haze-secondary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .text-secondary { color: var(--haze-muted) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.bg-light-secondary,.bg-secondary-subtle) { background-color: var(--haze-secondary-soft) !important; color: var(--haze-secondary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-secondary { background: var(--haze-secondary) !important; border-color: var(--haze-secondary) !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-secondary:is(:hover,:focus-visible) { background: #012845 !important; border-color: #012845 !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-secondary { color: var(--haze-secondary); border-color: var(--haze-secondary); background: transparent; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-secondary:is(:hover,:active,.active) { background: var(--haze-secondary) !important; border-color: var(--haze-secondary) !important; color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .badge.bg-secondary { color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .alert-secondary { background: var(--haze-secondary-soft); color: var(--haze-secondary); border-color: var(--haze-border); }
html.dark-theme body .btn-secondary,
html.dark-theme body .btn-outline-secondary:is(:hover,:active,.active) { background: #02335B !important; border-color: #02335B !important; color: #fff !important; }
html.dark-theme body .btn-outline-secondary { color: var(--haze-heading); border-color: var(--haze-border-strong); }
html.dark-theme body .text-secondary { color: var(--haze-muted) !important; }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .bg-success:is(.card,:not(.card)) { background-color: #009966 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .text-success { color: var(--haze-success, #009966) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.bg-light-success,.bg-success-subtle) { background-color: var(--haze-success-soft, var(--haze-surface-2)) !important; color: var(--haze-success, #009966) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-success { background: #009966 !important; border-color: #009966 !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-success:is(:hover,:focus-visible) { background: #008257 !important; border-color: #007a52 !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-success { color: var(--haze-success, #009966); border-color: #009966; background: transparent; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-success:is(:hover,:active,.active) { background: #009966 !important; border-color: #009966 !important; color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .badge.bg-success { color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .alert-success { background: var(--haze-success-soft,var(--haze-surface-2)); color: var(--haze-success,#009966); border-color: var(--haze-border); }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .bg-info:is(.card,:not(.card)) { background-color: var(--haze-info) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .text-info { color: var(--haze-info) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.bg-light-info,.bg-info-subtle) { background-color: var(--haze-info-soft) !important; color: var(--haze-info) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-info { background: var(--haze-info) !important; border-color: var(--haze-info) !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-info:is(:hover,:focus-visible) { background: #065f70 !important; border-color: #065f70 !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-info { color: var(--haze-info); border-color: var(--haze-info); background: transparent; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-info:is(:hover,:active,.active) { background: var(--haze-info) !important; border-color: var(--haze-info) !important; color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .badge.bg-info { color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .alert-info { background: var(--haze-info-soft); color: var(--haze-info); border-color: var(--haze-border); }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .bg-warning:is(.card,:not(.card)) { background-color: #f5a70d !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .bg-warning:not(.card) { color: #241b08 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .text-warning { color: var(--haze-warning, #f5a70d) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.bg-light-warning,.bg-warning-subtle) { background-color: var(--haze-warning-soft, var(--haze-surface-2)) !important; color: var(--haze-warning, #f5a70d) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-warning { background: #F5A70D !important; border-color: #F5A70D !important; color: #241b08 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-warning:is(:hover,:focus-visible) { background: #d08e0b !important; border-color: #c4860a !important; color: #241b08 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-warning { color: var(--haze-warning, #f5a70d); border-color: #f5a70d; background: transparent; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-warning:is(:hover,:active,.active) { background: #f5a70d !important; border-color: #f5a70d !important; color: #241b08 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .badge.bg-warning { color: #241b08 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .alert-warning { background: var(--haze-warning-soft,var(--haze-surface-2)); color: var(--haze-warning,#f5a70d); border-color: var(--haze-border); }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .bg-danger:is(.card,:not(.card)) { background-color: #f83636 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .text-danger { color: var(--haze-danger, #f83636) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.bg-light-danger,.bg-danger-subtle) { background-color: var(--haze-danger-soft, var(--haze-surface-2)) !important; color: var(--haze-danger, #f83636) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-danger { background: #F83636 !important; border-color: #F83636 !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-danger:is(:hover,:focus-visible) { background: #d32e2e !important; border-color: #c62b2b !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-danger { color: var(--haze-danger, #f83636); border-color: #f83636; background: transparent; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-danger:is(:hover,:active,.active) { background: #f83636 !important; border-color: #f83636 !important; color: #000 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .badge.bg-danger { color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .alert-danger { background: var(--haze-danger-soft,var(--haze-surface-2)); color: var(--haze-danger,#f83636); border-color: var(--haze-border); }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .bg-dark:is(.card,:not(.card)) { background-color: #02335B !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .text-dark { color: var(--haze-heading) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.bg-light-dark,.bg-dark-subtle) { background-color: var(--haze-dark-soft) !important; color: #02335B !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-dark { background: #02335B !important; border-color: #02335B !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-dark:is(:hover,:focus-visible) { background: #012845 !important; border-color: #012845 !important; color: #ffffff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-dark { color: #02335B; border-color: #02335B; background: transparent; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-outline-dark:is(:hover,:active,.active) { background: #02335B !important; border-color: #02335B !important; color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .badge.bg-dark { color: #fff !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .alert-dark { background: var(--haze-dark-soft); color: #02335B; border-color: var(--haze-border); }
html.dark-theme body .text-dark { color: var(--haze-heading) !important; }
html.dark-theme body :is(.bg-light-dark,.bg-dark-subtle) { background-color: var(--haze-surface-3) !important; color: var(--haze-heading) !important; }
html.dark-theme body .btn-outline-dark { color: var(--haze-heading); border-color: var(--haze-border-strong); }
html.dark-theme body .alert-dark { background: var(--haze-surface-3); color: var(--haze-heading); border-color: var(--haze-border); }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-primary:is(:active,.active) { background: var(--haze-primary-hover) !important; border-color: var(--haze-primary-hover) !important; color: #ffffff !important; }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-secondary:is(:active,.active) { background: #21213c !important; border-color: #1f1f38 !important; color: #ffffff !important; }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-success:is(:active,.active) { background: #007a52 !important; border-color: #00734d !important; color: #ffffff !important; }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-info:is(:active,.active) { background: #5a06b9 !important; border-color: #5406ad !important; color: #ffffff !important; }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-warning:is(:active,.active) { background: #c4860a !important; border-color: #b87d0a !important; color: #241b08 !important; }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-danger:is(:active,.active) { background: #c62b2b !important; border-color: #ba2929 !important; color: #ffffff !important; }

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-dark:is(:active,.active) { background: #3d5063 !important; border-color: #243a50 !important; color: #ffffff !important; }

/* Compatibility for existing decorated inputs and modal dismissal buttons. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .input-icon .form-control { padding-left: 42px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .input-icon > span.position-absolute { left: 14px; pointer-events: none; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.modal, .offcanvas) :is(.btn-danger,.btn-success)[data-bs-dismiss="modal"],
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.modal, .offcanvas) :is(.btn-danger,.btn-success)[data-bs-dismiss="offcanvas"],
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.btn-light,.btn-white) { background: var(--haze-surface-3) !important; border-color: var(--haze-surface-3) !important; color: var(--haze-heading) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.modal, .offcanvas) :is(.btn-danger,.btn-success)[data-bs-dismiss="modal"]:hover,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.modal, .offcanvas) :is(.btn-danger,.btn-success)[data-bs-dismiss="offcanvas"]:hover { background: var(--haze-border) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .topbar .user-box > a { border: 0 !important; box-shadow: none !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn[class*="bg-light-"]:hover { background: var(--haze-surface-3) !important; color: var(--haze-heading) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice { font-size: 12px; color: var(--haze-primary); background: var(--haze-primary-soft); border: 1px solid var(--haze-border); border-radius: 6px; }
@media (max-width: 1199.98px) {
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .dreams-sidebar .sidebar-header { width: 100% !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .overlay { display: block; position: fixed; inset: 80px 0 0 295px; z-index: 11; background: rgba(0,0,0,.25); }
}

html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-check { padding-left: 2em; min-height: 1.4rem; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-check .form-check-input { margin-left: -2em; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-switch { padding-left: 3.3em; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-switch .form-check-input { margin-left: -3.3em; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-check-input[type="checkbox"] { border-radius: 6px; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-switch .form-check-input[type="checkbox"] { border-radius: 2.8em; }
html.dark-theme body .form-check-input:not(:checked):not(:indeterminate) { background-color: var(--haze-surface) !important; border-color: var(--haze-border-strong) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .section-authentication-signin .card::before { display: none; }

/* Restore the full menu in the tablet band where the old template collapsed it. */
@media (min-width: 1025px) and (max-width: 1199.98px) {
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .sidebar-wrapper.dreams-sidebar { width: 295px !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .dreams-sidebar :is(.logo-text,.menu-title,.menu-label) { display: block !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .dreams-sidebar .sidebar-brand { display: flex !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .dreams-sidebar .sidebar-brand-link { display: grid !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .dreams-sidebar .sidebar-header { justify-content: flex-start; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .dreams-sidebar #navigations { padding: 2px var(--haze-sidebar-panel-inset) 20px !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .dreams-sidebar #navigations a { justify-content: flex-start; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .dreams-sidebar #navigations .has-arrow::after { display: block !important; }
  html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .wrapper.toggled .dreams-sidebar #navigations ul.mm-show { display: block !important; }
}

/* Legacy typography used !important; resolve weights explicitly at this layer. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-label,.form-check-label,.nav-link,.input-group-text,.form-text,.invalid-feedback,.valid-feedback),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dataTables_wrapper :is(label,.dataTables_info) { font-weight: 500 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.btn,button,.accordion-button,.page-link,.dropdown-item,input[type="button"],input[type="submit"],input[type="reset"],.swal2-styled,.swal2-confirm,.swal2-cancel,.swal2-deny,.dt-button,.buttons-html5,.buttons-print),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.btn-group,.btn-group-vertical) :is(.btn,.dropdown-item,button,a),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dataTables_wrapper :is(.paginate_button,.dt-paging-button,.btn),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn :is(.fw-bold,.fw-semibold,.fw-medium,.fw-bolder),
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .btn-group .dropdown-item :is(.fw-bold,.fw-semibold,.fw-medium,.fw-bolder) { font-weight: 400 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.card-header h5,.card-header h6,.card-title,.modal-title,.offcanvas-title,.user-info .user-name,.msg-header-title,.table thead th) { font-weight: 600 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations > li > a { font-weight: 500 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) a { font-weight: 400 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) li:is(.mm-active,.fw-bold) > a,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .dreams-sidebar #navigations :is(ul, .menu-group-items) a:is(.active,:focus,:focus-visible) { font-weight: 400 !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .card :is(.bg-gradient-blues,.bg-gradient-deepblue) { background: var(--haze-primary-soft) !important; color: var(--haze-primary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .card :is(.bg-gradient-burning,.bg-gradient-bloody,.bg-gradient-ibiza) { background: var(--haze-danger-soft) !important; color: var(--haze-danger) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .card :is(.bg-gradient-ohhappiness,.bg-gradient-quepal,.bg-gradient-lush) { background: var(--haze-success-soft) !important; color: var(--haze-success) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .card :is(.bg-gradient-orange,.bg-gradient-kyoto) { background: var(--haze-warning-soft) !important; color: var(--haze-warning) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .card :is(.bg-gradient-scooter,.bg-gradient-blooker,.bg-gradient-cosmic,.bg-gradient-moonlit) { background: var(--haze-info-soft) !important; color: var(--haze-info) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .fs-1 { font-size: 2.03125rem !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .fs-2 { font-size: 1.625rem !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .fs-3 { font-size: 1.421875rem !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .fs-4 { font-size: 1.21875rem !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .fs-5 { font-size: 1.015625rem !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .fs-6 { font-size: .8125rem !important; }

/* Final theme cascade: keep surfaces, text, borders, and controls on one token system. */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body { background: var(--haze-bg) !important; color: var(--haze-text) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.card,.modal-content,.dropdown-menu,.offcanvas,.list-group-item) { background-color: var(--haze-surface) !important; color: var(--haze-text) !important; border-color: var(--haze-border) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(h1,h2,h3,h4,h5,h6,.card-title,.modal-title,.offcanvas-title) { color: var(--haze-heading) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select,.input-group-text,.select2-container--bootstrap-5 .select2-selection) { background-color: var(--haze-surface) !important; color: var(--haze-text) !important; border: 1px solid var(--haze-border-strong) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .form-select option,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5 :is(.select2-results__option,.select2-selection__rendered,.select2-selection__placeholder,.select2-search__field,.select2-selection__choice) {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select)::placeholder { color: var(--haze-muted) !important; opacity: 1; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.card .card, .tab-content .card, .tab-pane .card) { background-color: var(--haze-surface) !important; border-color: var(--haze-border) !important; }
html.dark-theme body .dreams-sidebar-search input::placeholder { color: var(--haze-muted) !important; opacity: 1; }
html.dark-theme body .dataTables_wrapper .dataTables_paginate :is(.paginate_button,.page-link),
html.dark-theme body .pagination :is(.page-link,.paginate_button) { background-color: var(--haze-surface) !important; color: var(--haze-text) !important; border-color: var(--haze-border) !important; }
html.dark-theme body .dataTables_wrapper .dataTables_paginate :is(.paginate_button:hover,.page-link:hover),
html.dark-theme body .pagination :is(.page-link:hover,.paginate_button:hover) { background-color: var(--haze-surface-3) !important; color: var(--haze-heading) !important; border-color: var(--haze-border-strong) !important; }
html.dark-theme body .dataTables_wrapper .dataTables_paginate :is(.paginate_button.current,.page-item.active .page-link),
html.dark-theme body .pagination .page-item.active .page-link { background-color: var(--haze-primary) !important; color: #fff !important; border-color: var(--haze-primary) !important; }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .table { --bs-table-bg: var(--haze-surface); --bs-table-color: var(--haze-text); --bs-table-border-color: var(--haze-border); }
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body :is(.form-control,.form-select,.form-check-input):focus,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .select2-container--bootstrap-5:is(.select2-container--focus,.select2-container--open) .select2-selection { border-color: var(--haze-primary) !important; outline: 0 !important; box-shadow: 0 0 0 1px var(--haze-primary-soft) !important; }

/* Checkbox cards — theme-safe for light/dark */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .checkbox-card {
  border-color: var(--haze-border-strong);
  background: var(--haze-surface-2);
  color: var(--haze-heading);
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .checkbox-card:hover {
  border-color: color-mix(in srgb, var(--haze-primary) 40%, var(--haze-border-strong));
  background: var(--haze-primary-soft);
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .checkbox-card:has(.form-check-input:checked) {
  border-color: var(--haze-primary);
  background: var(--haze-primary-soft);
  color: var(--haze-primary);
}
html.dark-theme body .btn-outline-danger {
  color: var(--haze-danger);
  border-color: color-mix(in srgb, var(--haze-danger) 55%, var(--haze-border));
}
html.dark-theme body .btn-outline-danger:hover {
  color: #fff;
  background: var(--haze-danger);
  border-color: var(--haze-danger);
}

/* Dark mode: remap legacy mogav tokens + kill remaining light chrome mismatches */
html.dark-theme {
  --mogav-bg: var(--haze-bg);
  --mogav-surface: var(--haze-surface);
  --mogav-surface-soft: var(--haze-surface-2);
  --mogav-border: var(--haze-border);
  --mogav-border-strong: var(--haze-border-strong);
  --mogav-text: var(--haze-heading);
  --mogav-muted: var(--haze-muted);
  --mogav-primary: var(--haze-primary);
  --mogav-primary-dark: var(--haze-primary-hover);
  --mogav-primary-soft: var(--haze-primary-soft);
  --mogav-success: var(--haze-success);
  --mogav-warning: var(--haze-warning);
  --mogav-danger: var(--haze-danger);
  --mogav-info: var(--haze-info);
  --mogav-shadow-sm: 0 1px 2px rgb(0 0 0 / 28%);
  --mogav-shadow-md: 0 12px 28px rgb(0 0 0 / 32%);
  --mogav-shadow-lg: 0 24px 60px rgb(0 0 0 / 40%);
  --bs-secondary-color: var(--haze-muted);
  --bs-tertiary-color: var(--haze-soft);
  --bs-border-color: var(--haze-border);
  --bs-border-color-translucent: var(--haze-border);
}
html.dark-theme body :is(.tab-title, .user-info .user-name, .breadcrumb-title) {
  color: var(--haze-heading) !important;
}
html.dark-theme body .user-info .designattion,
html.dark-theme body .page-breadcrumb .breadcrumb li.breadcrumb-item,
html.dark-theme body .form-label,
html.dark-theme body .form-text,
html.dark-theme body .dataTables_wrapper :is(.dataTables_info, .dataTables_length, .dataTables_filter, label) {
  color: var(--haze-muted) !important;
}
html.dark-theme body .page-footer {
  background: var(--haze-info-soft) !important;
  border-top-color: var(--haze-border) !important;
  color: var(--haze-muted) !important;
}
html.dark-theme body .page-breadcrumb,
html.dark-theme body #pageBreadcrumb {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html.dark-theme body :is(hr, .card-body > hr, .dropdown-divider) {
  border-color: var(--haze-border-strong) !important;
  color: var(--haze-border-strong) !important;
  opacity: 1 !important;
  background-color: transparent !important;
}
html.dark-theme body .card .card,
html.dark-theme body .tab-content .card,
html.dark-theme body .tab-pane .card {
  background: var(--haze-surface) !important;
  border-color: var(--haze-border) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}
html.dark-theme body .table {
  --bs-table-bg: var(--haze-surface);
  --bs-table-color: var(--haze-text);
  --bs-table-border-color: var(--haze-border);
  --bs-table-striped-bg: var(--haze-info-soft);
  --bs-table-striped-color: var(--haze-text);
  --bs-table-hover-bg: var(--haze-info-soft);
  --bs-table-hover-color: var(--haze-heading);
  --bs-table-active-bg: var(--haze-primary-soft);
  --bs-table-active-color: var(--haze-heading);
}
html.dark-theme body .table :is(thead th, .table-light th, tr.table-success th, tr.table-info th, tr.table-warning th, tr.table-danger th, tr.table-primary th) {
  color: var(--page-ribbon-fg) !important;
  background: var(--page-ribbon-bg) !important;
  border-color: var(--page-ribbon-bg) !important;
  border-bottom-color: var(--page-ribbon-bg) !important;
}
html.dark-theme body .table > :not(caption) > * > * {
  border-bottom-color: var(--haze-border) !important;
  color: inherit;
}
html.dark-theme body .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: var(--haze-info-soft);
  color: var(--haze-text);
}
html.dark-theme body .table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: var(--haze-info-soft);
  color: var(--haze-heading);
}
html.dark-theme body :is(.table-success, .table-info, .table-warning, .table-danger, .table-primary, .table-secondary, .table-light, .table-dark) {
  --bs-table-bg: var(--haze-surface-2);
  --bs-table-color: var(--haze-heading);
  --bs-table-border-color: var(--haze-border);
  --bs-table-striped-bg: var(--haze-surface-3);
  --bs-table-striped-color: var(--haze-heading);
  --bs-table-hover-bg: var(--haze-surface-3);
  --bs-table-hover-color: var(--haze-heading);
  color: var(--haze-heading) !important;
  background-color: var(--haze-surface-2) !important;
  border-color: var(--haze-border) !important;
}
html.dark-theme body tbody :is(.table-success, tr.table-success) {
  --bs-table-bg: var(--haze-success-soft);
  --bs-table-color: var(--haze-success);
  color: var(--haze-success) !important;
  background-color: var(--haze-success-soft) !important;
}
html.dark-theme body tbody :is(.table-info, tr.table-info) {
  --bs-table-bg: var(--haze-info-soft);
  --bs-table-color: var(--haze-info);
  color: var(--haze-info) !important;
  background-color: var(--haze-info-soft) !important;
}
html.dark-theme body tbody :is(.table-warning, tr.table-warning) {
  --bs-table-bg: var(--haze-warning-soft);
  --bs-table-color: var(--haze-warning);
  color: var(--haze-warning) !important;
  background-color: var(--haze-warning-soft) !important;
}
html.dark-theme body tbody :is(.table-danger, tr.table-danger) {
  --bs-table-bg: var(--haze-danger-soft);
  --bs-table-color: var(--haze-danger);
  color: var(--haze-danger) !important;
  background-color: var(--haze-danger-soft) !important;
}
html.dark-theme body thead :is(.table-success, .table-info, .table-warning, .table-danger, .table-primary, .table-light, tr.table-success, tr.table-info) {
  --bs-table-bg: var(--page-ribbon-bg);
  --bs-table-color: var(--page-ribbon-fg);
  color: var(--page-ribbon-fg) !important;
  background-color: var(--page-ribbon-bg) !important;
  border-color: var(--page-ribbon-bg) !important;
}
html.dark-theme body .select2-container--bootstrap-5 :is(.select2-selection__rendered, .select2-selection__placeholder, .select2-search__field) {
  color: var(--haze-text) !important;
}
html.dark-theme body .select2-container--bootstrap-5 .select2-selection__placeholder {
  color: var(--haze-muted) !important;
}
html.dark-theme body .select2-container--bootstrap-5 .select2-dropdown {
  background: var(--haze-surface) !important;
  color: var(--haze-text) !important;
  border-color: var(--haze-border-strong) !important;
}
html.dark-theme body .nav-tabs .nav-link .tab-title {
  color: inherit !important;
}
html.dark-theme body .nav-tabs .nav-link.active .tab-title {
  color: var(--haze-heading) !important;
}
html.dark-theme body :is(.border, .border-top, .border-bottom, .border-start, .border-end) {
  border-color: var(--haze-border) !important;
}
html.dark-theme body :is(.border-primary, .border-success, .border-info, .border-warning, .border-danger) {
  border-color: color-mix(in srgb, currentColor 45%, var(--haze-border)) !important;
}
html.dark-theme body .text-dark {
  color: var(--haze-heading) !important;
}
html.dark-theme body .bg-white {
  background-color: var(--haze-surface) !important;
}
html.dark-theme body .bg-light {
  background-color: var(--haze-surface-2) !important;
}
html.dark-theme body .list-group-item {
  background-color: var(--haze-surface) !important;
  color: var(--haze-text) !important;
  border-color: var(--haze-border) !important;
}
html.dark-theme body .accordion-item,
html.dark-theme body .accordion-button {
  background-color: var(--haze-surface) !important;
  color: var(--haze-heading) !important;
  border-color: var(--haze-border) !important;
}
html.dark-theme body .accordion-button:not(.collapsed) {
  background-color: var(--haze-surface-2) !important;
  color: var(--haze-heading) !important;
  box-shadow: none !important;
}
html.dark-theme body .modal-header,
html.dark-theme body .modal-footer {
  border-color: var(--haze-border) !important;
  background: var(--haze-surface) !important;
  color: var(--haze-text) !important;
}
html.dark-theme body .dropdown-item {
  color: var(--haze-text) !important;
}
html.dark-theme body .dropdown-item:hover,
html.dark-theme body .dropdown-item:focus {
  background: var(--haze-surface-2) !important;
  color: var(--haze-heading) !important;
}
html.dark-theme body .input-group-text {
  background-color: var(--haze-surface-2) !important;
  color: var(--haze-muted) !important;
  border-color: var(--haze-border-strong) !important;
}

/* Light mode: same reconciliation — keep legacy mogav/Bootstrap chrome on haze tokens */
html.light-theme {
  --mogav-bg: var(--haze-bg);
  --mogav-surface: var(--haze-surface);
  --mogav-surface-soft: var(--haze-surface-2);
  --mogav-border: var(--haze-border);
  --mogav-border-strong: var(--haze-border-strong);
  --mogav-text: var(--haze-heading);
  --mogav-muted: var(--haze-muted);
  --mogav-primary: var(--haze-primary);
  --mogav-primary-dark: var(--haze-primary-hover);
  --mogav-primary-soft: var(--haze-primary-soft);
  --mogav-success: var(--haze-success);
  --mogav-warning: var(--haze-warning);
  --mogav-danger: var(--haze-danger);
  --mogav-info: var(--haze-info);
  --bs-secondary-color: var(--haze-muted);
  --bs-tertiary-color: var(--haze-soft);
  --bs-border-color: var(--haze-border);
  --bs-border-color-translucent: var(--haze-border);
}
html.light-theme body :is(.tab-title, .user-info .user-name, .breadcrumb-title) {
  color: var(--haze-heading) !important;
}
html.light-theme body .nav-tabs .nav-link .tab-title {
  color: inherit !important;
}
html.light-theme body .nav-tabs .nav-link.active .tab-title {
  color: var(--haze-heading) !important;
}
html.light-theme body .user-info .designattion,
html.light-theme body .page-breadcrumb .breadcrumb li.breadcrumb-item,
html.light-theme body .form-label,
html.light-theme body .form-text,
html.light-theme body .dataTables_wrapper :is(.dataTables_info, .dataTables_length, .dataTables_filter, label) {
  color: var(--haze-muted) !important;
}
html.light-theme body .page-footer {
  background: var(--haze-info-soft) !important;
  border-top-color: var(--haze-border) !important;
  border-bottom-color: transparent !important;
  color: var(--haze-muted) !important;
}
html.light-theme body .page-breadcrumb,
html.light-theme body #pageBreadcrumb {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html.light-theme body :is(hr, .card-body > hr, .dropdown-divider) {
  border-color: var(--haze-border) !important;
  color: var(--haze-border) !important;
  opacity: 1 !important;
  background-color: transparent !important;
}
html.light-theme body .card .card,
html.light-theme body .tab-content .card,
html.light-theme body .tab-pane .card {
  background: var(--haze-surface) !important;
  border-color: var(--haze-border) !important;
  box-shadow: 0 5px 10px rgba(2,2,76,.02) !important;
}
html.light-theme body :is(.form-control, .form-select, .input-group-text, .select2-container--bootstrap-5 .select2-selection) {
  border-color: var(--haze-border-strong) !important;
  background-color: var(--haze-surface) !important;
}
html.light-theme body :is(.form-control, .form-select, .form-check-input):is(:focus, :focus-visible),
html.light-theme body .select2-container--bootstrap-5:is(.select2-container--focus, .select2-container--open) .select2-selection {
  border-color: var(--haze-primary) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 1px var(--haze-primary-soft) !important;
}
html.light-theme body .select2-container--bootstrap-5 :is(.select2-selection__rendered, .select2-search__field) {
  color: var(--haze-text) !important;
}
html.light-theme body .select2-container--bootstrap-5 .select2-selection__placeholder {
  color: var(--haze-muted) !important;
}
html.light-theme body .table {
  --bs-table-bg: var(--haze-surface);
  --bs-table-color: var(--haze-text);
  --bs-table-border-color: var(--haze-border);
  --bs-table-striped-bg: var(--haze-info-soft);
  --bs-table-striped-color: var(--haze-text);
  --bs-table-hover-bg: var(--haze-info-soft);
  --bs-table-hover-color: var(--haze-heading);
}
html.light-theme body .table :is(thead th, .table-light th, tr.table-success th, tr.table-info th, tr.table-warning th, tr.table-danger th, tr.table-primary th) {
  color: var(--page-ribbon-fg) !important;
  background: var(--page-ribbon-bg) !important;
  border-color: var(--page-ribbon-bg) !important;
  border-bottom-color: var(--page-ribbon-bg) !important;
}
html.light-theme body .table > :not(caption) > * > * {
  border-bottom-color: var(--haze-border) !important;
}
html.light-theme body .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: var(--haze-info-soft);
  color: var(--haze-text);
}
html.light-theme body .table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: var(--haze-info-soft);
  color: var(--haze-heading);
}
html.light-theme body thead :is(.table-success, .table-info, .table-warning, .table-danger, .table-primary, .table-light, tr.table-success, tr.table-info) {
  --bs-table-bg: var(--page-ribbon-bg);
  --bs-table-color: var(--page-ribbon-fg);
  --bs-table-border-color: var(--page-ribbon-bg);
  color: var(--page-ribbon-fg) !important;
  background-color: var(--page-ribbon-bg) !important;
  border-color: var(--page-ribbon-bg) !important;
}
html.light-theme body :is(.border, .border-top, .border-bottom, .border-start, .border-end) {
  border-color: var(--haze-border) !important;
}
html.light-theme body .modal-header,
html.light-theme body .modal-footer {
  border-color: var(--haze-border) !important;
  background: var(--haze-surface) !important;
}
html.light-theme body .input-group-text {
  background-color: var(--haze-surface-2) !important;
  color: var(--haze-muted) !important;
  border-color: var(--haze-border-strong) !important;
}

/* -------------------------------------------------------------------------
   System-wide breadcrumb page ribbon
   Style B — Folded tuck: fishtail tip + left fold shadow.
   ------------------------------------------------------------------------- */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .qaran-page-ribbon,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-title-ribbon {
  --page-ribbon-height: 32px;
  --page-ribbon-tail: 11px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  height: var(--page-ribbon-height);
  margin: 0 0 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: var(--page-ribbon-bg);
  color: var(--page-ribbon-fg) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 2px 3px 0 rgba(2, 35, 91, .15);
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .qaran-page-ribbon i,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-title-ribbon i {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--page-ribbon-fg) !important;
  opacity: .95;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .qaran-page-ribbon span,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-title-ribbon span {
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Right fishtail tip */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .qaran-page-ribbon::after,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-title-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  right: calc(-1 * var(--page-ribbon-tail));
  width: 0;
  height: 0;
  border-style: solid;
  border-width: calc(var(--page-ribbon-height) / 2) 0 calc(var(--page-ribbon-height) / 2) var(--page-ribbon-tail);
  border-color: transparent transparent transparent var(--page-ribbon-bg);
}
/* Left fold / tuck under the edge */
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .qaran-page-ribbon::before,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body .page-title-ribbon::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 6px 6px 0;
  border-color: transparent rgba(0, 0, 0, .3) transparent transparent;
}
html.dark-theme body .qaran-page-ribbon,
html.dark-theme body .page-title-ribbon {
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .28);
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body #pageBreadcrumb.has-page-ribbon,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body #pageBreadcrumb.is-ribbon-sample {
  align-items: flex-start;
  padding-top: 2px !important;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body #pageBreadcrumb.has-page-ribbon .dreams-page-heading,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body #pageBreadcrumb.is-ribbon-sample .dreams-page-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body #pageBreadcrumb.has-page-ribbon .dreams-page-heading .breadcrumb,
html:is(.light-theme,.dark-theme,.semi-dark,.minimal-theme) body #pageBreadcrumb.is-ribbon-sample .dreams-page-heading .breadcrumb {
  margin-left: 2px !important;
}

/* =============================================================================
   Printable report tables — full 1px black borders on thead / tbody / tfoot.
   Must beat:
   - app.css .table-bordered horizontal-only (border-width: 0 0 1px)
   - theme/layout .table border-bottom-color / thead border-color !important
   - app.css .table-responsive { border-radius: 2px } which clips corner borders
   Print helpers often replace body with PrintArea innerHTML (wrapper id gone),
   so print rules key off report table classes, not PrintArea ancestors alone.
   ============================================================================= */

/* Square corners: rounded wrappers + overflow clip top L/R borders. */
html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
  [id$="PrintArea"] .table-responsive,
  [id*="ReportPrintArea"] .table-responsive,
  #mbsPrintArea .table-responsive,
  .table-responsive:has(table.report-table),
  .table-responsive:has(table.table-bordered.report-table),
  .timetable-report-table-wrap,
  .att-daily-grid-wrap,
  .att-week-grid-wrap,
  .att-month-grid-wrap,
  .att-class-matrix-wrap
),
html body :is(
  [id$="PrintArea"] .table-responsive,
  [id*="ReportPrintArea"] .table-responsive,
  #mbsPrintArea .table-responsive,
  .table-responsive:has(table.report-table),
  .table-responsive:has(table.table-bordered.report-table),
  .timetable-report-table-wrap,
  .att-daily-grid-wrap,
  .att-week-grid-wrap,
  .att-month-grid-wrap,
  .att-class-matrix-wrap
) {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
),
html body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) {
  --bs-table-border-color: #000 !important;
  --bs-border-color: #000 !important;
  --bs-border-radius: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 1px solid #000 !important;
  border-color: #000 !important;
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) > :is(thead, tbody, tfoot),
html body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) > :is(thead, tbody, tfoot) {
  border: 1px solid #000 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #000 !important;
  border-radius: 0 !important;
}

/* Cells: Bootstrap path + explicit thead/tbody/tfoot path + bare th/td. */
html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) > :not(caption) > * > *,
html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) > :is(thead, tbody, tfoot) > tr > :is(th, td),
html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) :is(th, td),
html.light-theme body :is(table.report-table, table.table-bordered.report-table) > :not(caption) > * > *,
html.dark-theme body :is(table.report-table, table.table-bordered.report-table) > :not(caption) > * > *,
html.light-theme body :is(table.report-table, table.table-bordered.report-table) :is(thead th, tbody td, tfoot td, tfoot th),
html.dark-theme body :is(table.report-table, table.table-bordered.report-table) :is(thead th, tbody td, tfoot td, tfoot th),
html body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) > :not(caption) > * > *,
html body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) > :is(thead, tbody, tfoot) > tr > :is(th, td),
html body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) :is(th, td) {
  border: 1px solid #000 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #000 !important;
  border-top: 1px solid #000 !important;
  border-right: 1px solid #000 !important;
  border-bottom: 1px solid #000 !important;
  border-left: 1px solid #000 !important;
  border-top-color: #000 !important;
  border-right-color: #000 !important;
  border-bottom-color: #000 !important;
  border-left-color: #000 !important;
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

/* Report / printable tables keep light headers (do not inherit ribbon thead). */
html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) :is(thead th, thead .table-light th, thead tr.table-success th, thead tr.table-info th, thead tr.table-warning th, thead tr.table-danger th, thead tr.table-primary th),
html body :is(
  [id$="PrintArea"] table,
  [id*="ReportPrintArea"] table,
  #mbsPrintArea table,
  table.report-table,
  table.table-bordered.report-table,
  table.timetable-report-table,
  table.attendance-report-table,
  table.att-daily-grid
) :is(thead th, thead .table-light th, thead tr.table-success th, thead tr.table-info th, thead tr.table-warning th, thead tr.table-danger th, thead tr.table-primary th) {
  background: #eef2f6 !important;
  color: #1c252e !important;
  border-color: #000 !important;
  border-bottom-color: #000 !important;
}

@media print {
  html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
    .table-responsive:has(table.report-table),
    .table-responsive:has(table.table-bordered.report-table),
    #mbsPrintArea .table-responsive,
    .timetable-report-table-wrap,
    .att-daily-grid-wrap,
    .att-week-grid-wrap,
    .att-month-grid-wrap,
    .att-class-matrix-wrap
  ),
  html body :is(
    .table-responsive:has(table.report-table),
    .table-responsive:has(table.table-bordered.report-table),
    #mbsPrintArea .table-responsive,
    .timetable-report-table-wrap,
    .att-daily-grid-wrap,
    .att-week-grid-wrap,
    .att-month-grid-wrap,
    .att-class-matrix-wrap
  ),
  :is(
    .table-responsive:has(table.report-table),
    .table-responsive:has(table.table-bordered.report-table),
    .timetable-report-table-wrap
  ) {
    border-radius: 0 !important;
    overflow: visible !important;
  }

  html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid,
    #mbsPrintArea table
  ),
  html body :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid,
    #mbsPrintArea table
  ),
  :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid
  ) {
    --bs-table-border-color: #000 !important;
    --bs-border-color: #000 !important;
    --bs-border-radius: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: 1px solid #000 !important;
    border-color: #000 !important;
    border-radius: 0 !important;
  }

  html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid,
    #mbsPrintArea table
  ) > :is(thead, tbody, tfoot),
  html body :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid,
    #mbsPrintArea table
  ) > :is(thead, tbody, tfoot),
  :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid
  ) > :is(thead, tbody, tfoot) {
    border: 1px solid #000 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #000 !important;
    border-radius: 0 !important;
  }

  html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid,
    #mbsPrintArea table
  ) > :not(caption) > * > *,
  html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid,
    #mbsPrintArea table
  ) > :is(thead, tbody, tfoot) > tr > :is(th, td),
  html:is(.light-theme, .dark-theme, .semi-dark, .minimal-theme) body :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid,
    #mbsPrintArea table
  ) :is(th, td),
  html.light-theme body :is(table.report-table, table.table-bordered.report-table) > :not(caption) > * > *,
  html.dark-theme body :is(table.report-table, table.table-bordered.report-table) > :not(caption) > * > *,
  html.light-theme body :is(table.report-table, table.table-bordered.report-table) :is(thead th, tbody td, tfoot td, tfoot th),
  html.dark-theme body :is(table.report-table, table.table-bordered.report-table) :is(thead th, tbody td, tfoot td, tfoot th),
  html body :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid,
    #mbsPrintArea table
  ) > :not(caption) > * > *,
  html body :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid,
    #mbsPrintArea table
  ) > :is(thead, tbody, tfoot) > tr > :is(th, td),
  html body :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid,
    #mbsPrintArea table
  ) :is(th, td),
  :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid
  ) > :not(caption) > * > *,
  :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid
  ) > :is(thead, tbody, tfoot) > tr > :is(th, td),
  :is(
    table.report-table,
    table.table-bordered.report-table,
    table.timetable-report-table,
    table.attendance-report-table,
    table.att-daily-grid
  ) :is(th, td) {
    border: 1px solid #000 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #000 !important;
    border-top: 1px solid #000 !important;
    border-right: 1px solid #000 !important;
    border-bottom: 1px solid #000 !important;
    border-left: 1px solid #000 !important;
    border-top-color: #000 !important;
    border-right-color: #000 !important;
    border-bottom-color: #000 !important;
    border-left-color: #000 !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Quotation tables: keep preview navy borders (override generic PrintArea black grid) */
html body :is(
  [id$="PrintArea"],
  [id*="ReportPrintArea"],
  .report-print-shell
) .table-responsive:has(table.uq-quotation-table),
html body .table-responsive:has(table.uq-quotation-table) {
  border-radius: 4px !important;
  -webkit-border-radius: 4px !important;
  overflow: hidden !important;
}
html body :is(
  [id$="PrintArea"] table.uq-quotation-table,
  [id*="ReportPrintArea"] table.uq-quotation-table,
  .report-print-shell table.uq-quotation-table,
  table.uq-quotation-table
) {
  --bs-table-border-color: #02335B !important;
  --bs-border-color: #02335B !important;
  border: none !important;
  border-color: transparent !important;
  border-radius: 4px !important;
  -webkit-border-radius: 4px !important;
}
html body :is(
  [id$="PrintArea"] table.uq-quotation-table,
  [id*="ReportPrintArea"] table.uq-quotation-table,
  .report-print-shell table.uq-quotation-table,
  table.uq-quotation-table
) > :is(thead, tbody, tfoot) {
  border: none !important;
  border-color: transparent !important;
}
html body :is(
  [id$="PrintArea"] table.uq-quotation-table,
  [id*="ReportPrintArea"] table.uq-quotation-table,
  .report-print-shell table.uq-quotation-table,
  table.uq-quotation-table
) :is(th, td) {
  border: 1px solid #02335B !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #02335B !important;
  border-top-color: #02335B !important;
  border-right-color: #02335B !important;
  border-bottom-color: #02335B !important;
  border-left-color: #02335B !important;
}
html body :is(
  [id$="PrintArea"] table.uq-quotation-table,
  [id*="ReportPrintArea"] table.uq-quotation-table,
  .report-print-shell table.uq-quotation-table,
  table.uq-quotation-table
) tfoot td.uq-total-spacer {
  border: none !important;
  border-width: 0 !important;
  border-color: transparent !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: none !important;
  background: #fff !important;
}
html body :is(
  [id$="PrintArea"] table.uq-quotation-table,
  [id*="ReportPrintArea"] table.uq-quotation-table,
  .report-print-shell table.uq-quotation-table,
  table.uq-quotation-table
) tfoot td.uq-total-label {
  border-top-color: #fff !important;
  border-bottom-color: #fff !important;
  border-left-color: #02335B !important;
  border-right-color: #fff !important;
}
html body :is(
  [id$="PrintArea"] table.uq-quotation-table,
  [id*="ReportPrintArea"] table.uq-quotation-table,
  .report-print-shell table.uq-quotation-table,
  table.uq-quotation-table
) tfoot td.uq-total-value {
  border-top-color: #fff !important;
  border-bottom-color: #fff !important;
  border-left-color: #fff !important;
  border-right-color: #02335B !important;
}
html body :is(
  [id$="PrintArea"] table.uq-quotation-table,
  [id*="ReportPrintArea"] table.uq-quotation-table,
  .report-print-shell table.uq-quotation-table,
  table.uq-quotation-table
) tfoot tr:first-child :is(td.uq-total-label, td.uq-total-value) {
  border-top-color: #02335B !important;
}
html body :is(
  [id$="PrintArea"] table.uq-quotation-table,
  [id*="ReportPrintArea"] table.uq-quotation-table,
  .report-print-shell table.uq-quotation-table,
  table.uq-quotation-table
) tfoot tr:last-child :is(td.uq-total-label, td.uq-total-value) {
  border-bottom-color: #02335B !important;
}
html body :is(
  [id$="PrintArea"] table.uq-quotation-table,
  [id*="ReportPrintArea"] table.uq-quotation-table,
  .report-print-shell table.uq-quotation-table,
  table.uq-quotation-table
) thead th {
  background: #eef2f6 !important;
  color: #1c252e !important;
  border: 1px solid #000 !important;
  border-color: #000 !important;
  border-top-color: #000 !important;
  border-right-color: #000 !important;
  border-bottom-color: #000 !important;
  border-left-color: #000 !important;
}

@media print {
  html body table.uq-quotation-table,
  html body .report-print-shell table.uq-quotation-table,
  table.uq-quotation-table {
    --bs-table-border-color: #02335B !important;
    --bs-border-color: #02335B !important;
    border: none !important;
    border-radius: 4px !important;
  }
  html body table.uq-quotation-table :is(th, td),
  html body .report-print-shell table.uq-quotation-table :is(th, td),
  table.uq-quotation-table :is(th, td) {
    border: 1px solid #02335B !important;
    border-color: #02335B !important;
  }
  html body table.uq-quotation-table tfoot td.uq-total-spacer,
  table.uq-quotation-table tfoot td.uq-total-spacer {
    border: none !important;
    background: #fff !important;
  }
  html body table.uq-quotation-table tfoot td.uq-total-label,
  table.uq-quotation-table tfoot td.uq-total-label {
    border-top-color: #fff !important;
    border-bottom-color: #fff !important;
    border-left-color: #02335B !important;
    border-right-color: #fff !important;
  }
  html body table.uq-quotation-table tfoot td.uq-total-value,
  table.uq-quotation-table tfoot td.uq-total-value {
    border-top-color: #fff !important;
    border-bottom-color: #fff !important;
    border-left-color: #fff !important;
    border-right-color: #02335B !important;
  }
  html body table.uq-quotation-table tfoot tr:first-child :is(td.uq-total-label, td.uq-total-value),
  table.uq-quotation-table tfoot tr:first-child :is(td.uq-total-label, td.uq-total-value) {
    border-top-color: #02335B !important;
  }
  html body table.uq-quotation-table tfoot tr:last-child :is(td.uq-total-label, td.uq-total-value),
  table.uq-quotation-table tfoot tr:last-child :is(td.uq-total-label, td.uq-total-value) {
    border-bottom-color: #02335B !important;
  }
}
