:root {
  --od-glass-bg: rgba(12, 18, 31, 0.58);
  --od-glass-border: rgba(203, 213, 225, 0.18);
  --od-glass-shadow: 0 20px 60px rgba(2, 6, 23, 0.6);
  --od-blur: 18px;
  --od-ring: rgba(96, 165, 250, 0.45);
  --od-text-strong: #f8fafc;
  --od-text-soft: rgba(226, 232, 240, 0.78);
}

html[data-theme-mode="dark"] {
  color-scheme: dark;
}

html[data-theme-mode="light"] {
  color-scheme: light;
  --od-glass-bg: rgba(224, 236, 248, 0.74);
  --od-glass-border: rgba(59, 130, 246, 0.24);
  --od-glass-shadow: 0 16px 42px rgba(30, 64, 175, 0.18);
  --od-ring: rgba(37, 99, 235, 0.4);
  --od-text-strong: #0b1220;
  --od-text-soft: rgba(15, 23, 42, 0.8);
  --bg0: #dce8f5;
  --bg1: #cfdded;
  --card: rgba(219, 232, 246, 0.82);
  --card2: rgba(206, 223, 241, 0.9);
  --border: rgba(59, 130, 246, 0.28);
  --text: #0b1220;
  --muted: rgba(15, 23, 42, 0.74);
  --muted2: rgba(30, 41, 59, 0.68);
}

* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 620px at -10% -20%, rgba(59, 130, 246, 0.18), transparent 58%),
    radial-gradient(1000px 600px at 110% 0%, rgba(20, 184, 166, 0.18), transparent 58%),
    radial-gradient(1100px 720px at 50% 120%, rgba(148, 163, 184, 0.08), transparent 65%),
    #020617;
  color: var(--od-text-strong);
}

html[data-theme-mode="light"] body {
  background:
    radial-gradient(1100px 600px at -10% -20%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(900px 520px at 110% 0%, rgba(14, 165, 233, 0.16), transparent 60%),
    radial-gradient(900px 620px at 50% 120%, rgba(71, 85, 105, 0.16), transparent 70%),
    #dbe7f4;
  color: var(--od-text-strong);
}

.topbar,
header,
.card,
.modal,
.inv-modal {
  backdrop-filter: blur(var(--od-blur));
  -webkit-backdrop-filter: blur(var(--od-blur));
}

.card,
.modal,
.inv-modal {
  background: var(--od-glass-bg) !important;
  border: 1px solid var(--od-glass-border) !important;
  box-shadow: var(--od-glass-shadow) !important;
}

html[data-theme-mode="light"] .kpi,
html[data-theme-mode="light"] .pill,
html[data-theme-mode="light"] .statusBadge,
html[data-theme-mode="light"] .notice,
html[data-theme-mode="light"] .tab,
html[data-theme-mode="light"] .btn,
html[data-theme-mode="light"] button,
html[data-theme-mode="light"] input,
html[data-theme-mode="light"] select,
html[data-theme-mode="light"] textarea {
  border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-theme-mode="light"] .card,
html[data-theme-mode="light"] .modal,
html[data-theme-mode="light"] .inv-modal,
html[data-theme-mode="light"] .kpi,
html[data-theme-mode="light"] .notice,
html[data-theme-mode="light"] .pill,
html[data-theme-mode="light"] .statusBadge {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(147, 197, 253, 0.18), transparent 58%),
    radial-gradient(120% 120% at 100% 100%, rgba(56, 189, 248, 0.16), transparent 62%),
    rgba(220, 233, 247, 0.8) !important;
  color: #0f172a !important;
}

html[data-theme-mode="light"] .card-head,
html[data-theme-mode="light"] .modal-head,
html[data-theme-mode="light"] .inv-head {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.02)) !important;
}

html[data-theme-mode="light"] .btn,
html[data-theme-mode="light"] button {
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.95), rgba(210, 227, 245, 0.95)) !important;
  color: #0f172a !important;
}

html[data-theme-mode="light"] .btn.primary {
  background: linear-gradient(90deg, #2563eb, #0ea5e9) !important;
  color: #f8fafc !important;
}

html[data-theme-mode="light"] table tbody tr:hover {
  background: linear-gradient(90deg, rgba(219, 234, 254, 0.78), rgba(224, 242, 254, 0.7)) !important;
}

html[data-theme-mode="light"] .tab {
  background: linear-gradient(180deg, rgba(241, 248, 255, 0.94), rgba(224, 242, 254, 0.84)) !important;
  color: #0f172a !important;
}

html[data-theme-mode="light"] .tab.active {
  background: linear-gradient(90deg, #2563eb, #0ea5e9) !important;
  color: #f8fafc !important;
}

html[data-theme-mode="light"] th {
  color: rgba(30, 41, 59, 0.7) !important;
}

html[data-theme-mode="light"] td,
html[data-theme-mode="light"] label,
html[data-theme-mode="light"] .mini,
html[data-theme-mode="light"] .card-sub,
html[data-theme-mode="light"] .logoTextSub {
  color: rgba(15, 23, 42, 0.74) !important;
}

html[data-theme-mode="light"] .value,
html[data-theme-mode="light"] .card-title,
html[data-theme-mode="light"] .logoTextMain,
html[data-theme-mode="light"] .modal-title {
  color: #0f172a !important;
}

html[data-theme-mode="light"] input,
html[data-theme-mode="light"] select,
html[data-theme-mode="light"] textarea {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.9)) !important;
  color: #0f172a !important;
}

html[data-theme-mode="light"] .rtab {
  background: linear-gradient(180deg, rgba(241, 248, 255, 0.92), rgba(224, 242, 254, 0.82)) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}

html[data-theme-mode="light"] .rtab.active {
  background: linear-gradient(90deg, rgba(191, 219, 254, 0.92), rgba(186, 230, 253, 0.9)) !important;
}

html[data-theme-mode="light"] .shareBox,
html[data-theme-mode="light"] .chk {
  background: linear-gradient(180deg, rgba(241, 248, 255, 0.9), rgba(226, 240, 255, 0.82)) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}

html[data-theme-mode="light"] .kpi {
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12) !important;
}

html[data-theme-mode="light"] table {
  background: linear-gradient(180deg, rgba(229, 240, 252, 0.78), rgba(213, 228, 245, 0.66));
  border-radius: 12px;
  overflow: hidden;
}

html[data-theme-mode="light"] thead tr {
  background: linear-gradient(90deg, rgba(191, 219, 254, 0.48), rgba(186, 230, 253, 0.42));
}

.card-head,
.modal-head,
.inv-head {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.02)) !important;
}

.btn,
button,
.tab,
input,
select,
textarea {
  transition: transform 180ms ease, box-shadow 220ms ease, filter 180ms ease, background 220ms ease, border-color 220ms ease;
}

.btn:hover,
button:hover,
.tab:hover {
  transform: translateY(-1px);
}

.btn:active,
button:active,
.tab:active {
  transform: translateY(0);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--od-ring) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), 0 10px 24px rgba(2, 6, 23, 0.35);
}

.kpi,
.pill,
.statusBadge,
.notice {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.og-thumb img,
.gallery-item img,
.avatar img {
  transition: transform 260ms ease, filter 260ms ease;
}

.og-thumb:hover img,
.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.03);
}

.section.active .card,
.section.active .kpi,
.section.active .tab.active,
.section.active .pill {
  animation: none !important;
}

.section {
  will-change: opacity, transform;
}

.od-theme-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 72px;
  height: 30px;
  margin: 0 !important;
  line-height: 1 !important;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease, filter 180ms ease, background 180ms ease, border-color 180ms ease;
}

.od-theme-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

html[data-theme-mode="light"] .od-theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.22);
}

.od-theme-toggle.od-theme-floating {
  position: fixed !important;
  top: 14px;
  right: 14px;
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

@keyframes odRiseIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ONLYDRIVE RESPONSIVE WEB BASE */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

.container, .wrap, .card, .section, .panel {
  max-width: 100%;
}

table {
  display: table;
  width: 100%;
  max-width: 100%;
}

th, td {
  white-space: nowrap;
}

.tabs,
.regionTabs,
.actions,
.row,
.filters,
.toolbar,
.card-head,
.modal-head,
.inv-head {
  max-width: 100%;
  flex-wrap: wrap;
}

.kpis {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px;
}

input, select, textarea, button, .btn {
  max-width: 100%;
}

.modal, .inv-modal {
  max-width: min(980px, calc(100vw - 20px)) !important;
}

@media (max-width: 1200px) {
  .kpis {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  }
}

@media (max-width: 992px) {
  body {
    font-size: 14px;
  }

  .topbar,
  header {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .card,
  .section,
  .panel {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .tabs .tab,
  .regionTabs .rtab {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .od-theme-toggle.od-theme-floating {
    top: 10px;
    right: 10px;
  }

  .od-theme-toggle {
    min-width: 64px;
    height: 28px;
    font-size: 10px;
    padding: 5px 8px;
  }

  .tabs,
  .regionTabs {
    gap: 6px;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .kpi {
    min-height: 86px;
  }

  .row,
  .actions,
  .filters,
  .toolbar {
    gap: 8px !important;
  }

  .row > *,
  .actions > *,
  .filters > *,
  .toolbar > * {
    flex: 1 1 100%;
    min-width: 0;
  }

  input,
  select,
  textarea,
  button,
  .btn {
    width: 100%;
  }

  .modal,
  .inv-modal {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    margin: 7px auto !important;
    max-height: calc(100vh - 14px);
    overflow: auto;
  }

  th,
  td {
    font-size: 12px;
    padding-left: 8px !important;
    padding-right: 8px !important;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .kpis {
    grid-template-columns: 1fr !important;
  }

  .tabs .tab,
  .regionTabs .rtab {
    min-width: 100%;
  }

  .topbar,
  header,
  .card,
  .section,
  .panel {
    border-radius: 12px !important;
  }

  th,
  td {
    font-size: 11.5px;
    white-space: normal;
  }
}

.od-tab-dropdown-wrap {
  display: none;
  margin: 8px 0 12px;
}

.od-tab-dropdown-label {
  display: block;
  font-size: 11px;
  color: var(--od-text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.od-tab-dropdown {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--od-glass-border);
  background: var(--od-glass-bg);
  color: var(--od-text-strong);
  padding: 10px 12px;
  font-size: 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 1100px) {
  body.od-has-tab-dropdown .od-tab-dropdown-wrap {
    display: block;
  }

  body.od-has-tab-dropdown .tabs {
    display: none !important;
  }

  .grid,
  .form-grid,
  .inspection-grid,
  .profile-stats-grid,
  .profile-highlights,
  .ig-stat-row {
    grid-template-columns: 1fr !important;
  }

  .row [style*="min-width"],
  .actions [style*="min-width"],
  .card-body [style*="min-width"] {
    min-width: 0 !important;
    width: 100% !important;
  }

  .topbar-inner,
  .wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

@media (min-width: 1101px) {
  .topbar-inner,
  .wrap {
    width: min(96vw, 1800px) !important;
    max-width: min(96vw, 1800px) !important;
  }

  table { overflow: visible; }
}

@media (max-width: 980px) {
  table.od-table-responsive {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
  }

  table.od-table-responsive thead {
    display: none !important;
  }

  table.od-table-responsive tbody,
  table.od-table-responsive tr,
  table.od-table-responsive td {
    display: block !important;
    width: 100% !important;
  }

  table.od-table-responsive tr {
    background: var(--od-glass-bg);
    border: 1px solid var(--od-glass-border);
    border-radius: 14px;
    box-shadow: var(--od-glass-shadow);
    margin-bottom: 10px;
    overflow: hidden;
  }

  table.od-table-responsive td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
    padding: 8px 10px !important;
    white-space: normal !important;
  }

  table.od-table-responsive td:last-child {
    border-bottom: none !important;
  }

  table.od-table-responsive td[data-label] {
    display: grid !important;
    grid-template-columns: 40% 60%;
    gap: 8px;
    align-items: start;
  }

  table.od-table-responsive td[data-label]::before {
    content: attr(data-label);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--od-text-soft);
    opacity: 0.9;
  }
}

/* platform theme bridge */
:root {
  --bg: #020617;
  --bg2: #020617;
  --input: #111827;
  --card-soft: #0f172a;
  --panel: rgba(11, 18, 32, 0.88);
  --panel-soft: rgba(15, 23, 42, 0.92);
  --od-topbar-bg: rgba(8, 12, 28, 0.64);
  --od-surface-soft: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(8, 12, 28, 0.84));
  --od-surface-muted: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  --od-border-soft: rgba(148, 163, 184, 0.18);
  --od-shadow-soft: 0 18px 42px rgba(2, 6, 23, 0.28);
  --od-foot-bg: linear-gradient(180deg, rgba(5, 9, 18, 0.18), rgba(5, 9, 18, 0.96) 36%);
}

html[data-theme-mode="light"] {
  --bg: #dce9f6;
  --bg2: #eff5fb;
  --input: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
  --card-soft: rgba(236, 244, 252, 0.96);
  --panel: rgba(233, 241, 250, 0.92);
  --panel-soft: rgba(245, 249, 255, 0.96);
  --shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
  --od-topbar-bg: rgba(238, 245, 253, 0.86);
  --od-surface-soft: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(231, 240, 249, 0.94));
  --od-surface-muted: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92));
  --od-border-soft: rgba(59, 130, 246, 0.18);
  --od-shadow-soft: 0 14px 30px rgba(37, 99, 235, 0.12);
  --od-foot-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(226, 236, 247, 0.96) 36%);
}

.topbar,
header {
  background: var(--od-topbar-bg) !important;
  border-color: var(--od-border-soft) !important;
}

.card-head,
.modal-head,
.inv-head {
  background: var(--od-surface-muted) !important;
  border-bottom-color: var(--od-border-soft) !important;
}

.modal-foot {
  background: var(--od-foot-bg) !important;
  border-top-color: var(--od-border-soft) !important;
}

.badge-light,
.shareBox,
.chk,
.highlight-box,
.dashNextOrderFloat,
.profileHighlights .highlight-box,
.inv-modal,
.receipt-top > div {
  background: var(--od-surface-soft) !important;
  border-color: var(--od-border-soft) !important;
  color: var(--od-text-strong) !important;
  box-shadow: var(--od-shadow-soft);
}

.highlight-box .h-title,
.profileHighlights .h-title,
.mini,
.subtitle,
.card-sub,
.receipt-top .mini,
.receipt-top .muted {
  color: var(--od-text-soft) !important;
}

.highlight-box .h-value,
.profileHighlights .h-value,
.value,
.title,
.card-title,
.receipt-top strong,
.receipt-top .value {
  color: var(--od-text-strong) !important;
}

html[data-theme-mode="light"] .logo::before {
  background: radial-gradient(circle at 30% 0, #ffffff, #dbe7f4 72%) !important;
}

html[data-theme-mode="light"] .logo {
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.14) !important;
}

/* premium light rebuild */
:root {
  --od-speed-fast: 120ms;
  --od-speed-slow: 220ms;
}

body {
  position: relative;
  isolation: isolate;
}

.card,
.kpi,
.modal,
.inv-modal,
.section,
.panel,
.topbar,
header {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.tabs,
.regionTabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.tabs::-webkit-scrollbar,
.regionTabs::-webkit-scrollbar {
  display: none;
}

.tabs .tab,
.regionTabs .rtab {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
}

.od-tab-dropdown-wrap {
  display: none;
  margin: 8px 0 14px;
}

body.od-force-tab-dropdown .od-tab-dropdown-wrap,
body.od-has-tab-dropdown.od-force-tab-dropdown .od-tab-dropdown-wrap {
  display: block;
}

body.od-force-tab-dropdown .tabs,
body.od-has-tab-dropdown.od-force-tab-dropdown .tabs {
  display: none !important;
}

.od-tab-dropdown {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

@keyframes odLightMeshFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -16px, 0) scale(1.06);
  }
}

@keyframes odLightPulse {
  from {
    opacity: 0.16;
  }
  to {
    opacity: 0.32;
  }
}

html[data-theme-mode="light"] {
  --od-blur: 14px;
  --od-glass-bg: rgba(246, 249, 253, 0.76);
  --od-glass-border: rgba(68, 92, 128, 0.18);
  --od-glass-shadow: 0 18px 44px rgba(71, 85, 105, 0.12);
  --od-ring: rgba(37, 99, 235, 0.24);
  --od-text-strong: #102038;
  --od-text-soft: rgba(43, 59, 84, 0.78);
  --bg0: #e2e9f1;
  --bg1: #d7e0ea;
  --card: rgba(247, 250, 253, 0.86);
  --card2: rgba(234, 241, 248, 0.94);
  --border: rgba(64, 87, 122, 0.16);
  --text: #102038;
  --muted: rgba(31, 41, 55, 0.74);
  --muted2: rgba(71, 85, 105, 0.68);
  --panel: rgba(244, 248, 252, 0.92);
  --panel-strong: rgba(234, 241, 248, 0.96);
  --panel-accent: rgba(222, 233, 244, 0.92);
  --shadow: 0 20px 46px rgba(71, 85, 105, 0.12);
}

html[data-theme-mode="light"] body {
  background:
    radial-gradient(1200px 620px at -8% -18%, rgba(37, 99, 235, 0.16), transparent 58%),
    radial-gradient(980px 540px at 110% 0%, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(880px 560px at 50% 118%, rgba(148, 163, 184, 0.12), transparent 68%),
    linear-gradient(180deg, #e6edf4 0%, #d9e2ec 100%);
  color: var(--od-text-strong);
}

html[data-theme-mode="light"] body::before,
html[data-theme-mode="light"] body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  inset: auto;
  border-radius: 999px;
  z-index: -1;
  filter: blur(54px);
}

html[data-theme-mode="light"] body::before {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), rgba(56, 189, 248, 0) 68%);
  animation: odLightMeshFloat 18s ease-in-out infinite alternate;
}

html[data-theme-mode="light"] body::after {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0) 70%);
  animation: odLightPulse 8s ease-in-out infinite alternate;
}

html[data-theme-mode="light"] .card,
html[data-theme-mode="light"] .modal,
html[data-theme-mode="light"] .inv-modal,
html[data-theme-mode="light"] .kpi,
html[data-theme-mode="light"] .notice,
html[data-theme-mode="light"] .pill,
html[data-theme-mode="light"] .statusBadge {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.84), transparent 58%),
    linear-gradient(180deg, rgba(249, 252, 255, 0.96), rgba(233, 240, 248, 0.92)) !important;
  color: var(--od-text-strong) !important;
  border-color: rgba(67, 90, 126, 0.16) !important;
  box-shadow: 0 16px 34px rgba(71, 85, 105, 0.10) !important;
}

html[data-theme-mode="light"] .card-head,
html[data-theme-mode="light"] .modal-head,
html[data-theme-mode="light"] .inv-head {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.38)) !important;
  border-bottom-color: rgba(67, 90, 126, 0.14) !important;
}

html[data-theme-mode="light"] .modal-foot {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(228, 236, 245, 0.96) 38%) !important;
  border-top-color: rgba(67, 90, 126, 0.14) !important;
}

html[data-theme-mode="light"] .topbar,
html[data-theme-mode="light"] header {
  background: linear-gradient(180deg, rgba(241, 246, 252, 0.86), rgba(233, 239, 247, 0.78)) !important;
  border-color: rgba(67, 90, 126, 0.14) !important;
  box-shadow: 0 10px 24px rgba(71, 85, 105, 0.08);
}

html[data-theme-mode="light"] .btn,
html[data-theme-mode="light"] button {
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(233, 240, 248, 0.94)) !important;
  color: #102038 !important;
  border-color: rgba(67, 90, 126, 0.16) !important;
  box-shadow: none !important;
}

html[data-theme-mode="light"] .btn.primary,
html[data-theme-mode="light"] button.primary,
html[data-theme-mode="light"] .tab.active,
html[data-theme-mode="light"] .rtab.active {
  background: linear-gradient(135deg, #1368ff, #23b7ff) !important;
  color: #f8fbff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18) !important;
}

html[data-theme-mode="light"] .tab,
html[data-theme-mode="light"] .rtab {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(232, 239, 247, 0.88)) !important;
  color: #102038 !important;
  border-color: rgba(67, 90, 126, 0.14) !important;
}

html[data-theme-mode="light"] input,
html[data-theme-mode="light"] select,
html[data-theme-mode="light"] textarea,
html[data-theme-mode="light"] .shareBox,
html[data-theme-mode="light"] .chk,
html[data-theme-mode="light"] .badge-light,
html[data-theme-mode="light"] .highlight-box,
html[data-theme-mode="light"] .profileHighlights .highlight-box,
html[data-theme-mode="light"] .dashNextOrderFloat,
html[data-theme-mode="light"] .inv-modal,
html[data-theme-mode="light"] .receipt-top > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 241, 248, 0.88)) !important;
  color: #102038 !important;
  border-color: rgba(67, 90, 126, 0.14) !important;
}

html[data-theme-mode="light"] th {
  color: rgba(51, 65, 85, 0.78) !important;
}

html[data-theme-mode="light"] td,
html[data-theme-mode="light"] label,
html[data-theme-mode="light"] .mini,
html[data-theme-mode="light"] .card-sub,
html[data-theme-mode="light"] .logoTextSub,
html[data-theme-mode="light"] .subtitle,
html[data-theme-mode="light"] .muted {
  color: rgba(43, 59, 84, 0.78) !important;
}

html[data-theme-mode="light"] .value,
html[data-theme-mode="light"] .card-title,
html[data-theme-mode="light"] .logoTextMain,
html[data-theme-mode="light"] .modal-title,
html[data-theme-mode="light"] .title,
html[data-theme-mode="light"] strong,
html[data-theme-mode="light"] b {
  color: #102038 !important;
}

html[data-theme-mode="light"] table {
  background: linear-gradient(180deg, rgba(246, 250, 253, 0.94), rgba(232, 239, 247, 0.84)) !important;
  border-radius: 14px;
  overflow: hidden;
}

html[data-theme-mode="light"] thead tr {
  background: linear-gradient(90deg, rgba(214, 227, 241, 0.74), rgba(226, 235, 245, 0.72)) !important;
}

html[data-theme-mode="light"] table tbody tr:hover {
  background: linear-gradient(90deg, rgba(223, 233, 244, 0.74), rgba(236, 242, 248, 0.84)) !important;
}

html[data-theme-mode="light"] .notice.info,
html[data-theme-mode="light"] .notice.ok,
html[data-theme-mode="light"] .notice.error {
  color: #102038 !important;
}

html[data-theme-mode="light"] .logo::before {
  background: radial-gradient(circle at 30% 0, #ffffff, #dae4ef 72%) !important;
}

html[data-theme-mode="light"] .logo {
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14) !important;
}

@media (max-width: 1360px) {
  body.od-has-tab-dropdown .od-tab-dropdown-wrap {
    display: block;
  }

  body.od-has-tab-dropdown .tabs {
    display: none !important;
  }
}

@media (max-width: 920px) {
  .tabs,
  .regionTabs {
    gap: 8px;
  }

  .tabs .tab,
  .regionTabs .rtab {
    min-width: max-content;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-theme-mode="light"] .card,
  html[data-theme-mode="light"] .kpi,
  html[data-theme-mode="light"] .pill,
  html[data-theme-mode="light"] .statusBadge,
  html[data-theme-mode="light"] .notice {
    transition: transform var(--od-speed-fast) ease, box-shadow var(--od-speed-slow) ease, background var(--od-speed-slow) ease, border-color var(--od-speed-slow) ease;
  }
}

/* premium light polish */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.tabs,
.regionTabs {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.tabs > *,
.regionTabs > * {
  flex: 0 0 auto;
}

.card,
.kpi,
.anaCard,
.anaPanel,
.od-kpi-card,
.od-profile-panel,
.od-orders-lane,
.od-orders-sideStat,
.od-inv-nativeCard {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

html[data-theme-mode="light"] .tabs,
html[data-theme-mode="light"] .regionTabs,
html[data-theme-mode="light"] .od-tab-dropdown-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(231, 238, 246, 0.72)) !important;
  border: 1px solid rgba(73, 92, 128, 0.12) !important;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
}

html[data-theme-mode="light"] .tabs {
  padding: 8px;
}

html[data-theme-mode="light"] .regionTabs {
  padding: 6px;
}

html[data-theme-mode="light"] .tab:not(.active):hover,
html[data-theme-mode="light"] .rtab:not(.active):hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(223, 232, 243, 0.94)) !important;
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.14);
}

html[data-theme-mode="light"] .od-tab-dropdown {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #10233d !important;
  border-color: rgba(73, 92, 128, 0.16) !important;
}
