/* INDEXMS - light theme. Active when <html data-theme="light"> (Settings > Options). */
html[data-theme="light"] {
  --ims-navy: #f4f6fb; --ims-navy-deep: #eef1f8; --ims-panel: #ffffff; --ims-panel-solid: #ffffff;
  --ims-border: #dde3f0; --ims-gold: #b7811d; --ims-text: #1a2350; --ims-muted: #5a6385;
  --l-bg: #f4f6fb; --l-surface: #ffffff; --l-surface2: #eef2fa; --l-border: #dde3f0;
  --l-text: #1a2350; --l-muted: #5a6385; --l-gold: #b7811d; --l-blue: #1f4fd1;
  background-color: var(--l-bg);
}
html[data-theme="light"] body { background: var(--l-bg) !important; color: var(--l-text); }

/* Navbar and menus */
html[data-theme="light"] .navbar { background: #ffffff !important; border-bottom: 1px solid var(--l-border) !important; box-shadow: 0 1px 8px rgba(26,35,80,.06); }
html[data-theme="light"] .navbar .nav-link { color: var(--l-text) !important; }
html[data-theme="light"] .navbar .nav-link.active, html[data-theme="light"] .navbar .nav-link:hover { color: var(--l-gold) !important; border-bottom-color: var(--l-gold) !important; }
html[data-theme="light"] .navbar .dropdown-menu { background: #fff; border-color: var(--l-border); box-shadow: 0 14px 34px rgba(26,35,80,.14); }
html[data-theme="light"] .navbar .dropdown-item { color: var(--l-text); }
html[data-theme="light"] .navbar .dropdown-item:hover { background: var(--l-surface2); color: var(--l-gold); }
html[data-theme="light"] .navbar .dropdown-item.active { background: var(--l-gold); color: #fff; }
html[data-theme="light"] .ims-icon-btn { color: var(--l-text) !important; border-color: var(--l-border) !important; }
html[data-theme="light"] .ims-asof { color: var(--l-muted); }
html[data-theme="light"] .ims-asof strong, html[data-theme="light"] .ims-asof b { color: var(--l-gold); }
html[data-theme="light"] .ims-search .selectize-input { background: #fff !important; color: var(--l-text) !important; border-color: var(--l-border) !important; }
html[data-theme="light"] .navbar-toggler { filter: invert(1); }

/* Hero and page headers */
html[data-theme="light"] .ims-hero2, html[data-theme="light"] .ims-page-head {
  background: radial-gradient(900px 500px at 75% 10%, #dfe7fb 0%, rgba(255,255,255,0) 70%), linear-gradient(180deg, #ffffff 0%, #f1f4fb 100%) !important;
  border-bottom: 1px solid var(--l-border); }
html[data-theme="light"] .ims-title, html[data-theme="light"] .ims-page-head h1 { color: var(--l-text); }
html[data-theme="light"] .ims-title em { color: var(--l-gold); }
html[data-theme="light"] .ims-title-abbr { color: var(--l-muted); }
html[data-theme="light"] .ims-eyebrow { color: var(--l-gold); }
html[data-theme="light"] .ims-intro, html[data-theme="light"] .ims-page-head > p, html[data-theme="light"] .ims-crumb, html[data-theme="light"] .ims-det-sub, html[data-theme="light"] .ims-det-date { color: #3b4570; }
html[data-theme="light"] .ims-intro strong { color: var(--l-text); }
html[data-theme="light"] .ims-crumb a, html[data-theme="light"] a.ims-text-link { color: var(--l-gold); border-bottom-color: rgba(183,129,29,.5); }
html[data-theme="light"] .ims-det-last { color: var(--l-text); }

/* Sections and cards */
html[data-theme="light"] .ims-section { background: var(--l-bg) !important; }
html[data-theme="light"] .ims-eyebrow2, html[data-theme="light"] .ims-eyebrow2 a.ims-text-link { color: var(--l-blue); }
html[data-theme="light"] .ims-h2 { color: #a06f12; }
html[data-theme="light"] .ims-card2, html[data-theme="light"] .ims-flow-card, html[data-theme="light"] .ims-panel,
html[data-theme="light"] .ims-table-card, html[data-theme="light"] .ims-dbcard, html[data-theme="light"] .ims-tbl-menu,
html[data-theme="light"] .ims-stats3 .ims-stat, html[data-theme="light"] .ims-stat, html[data-theme="light"] .ims-glass {
  background: var(--l-surface) !important; border-color: var(--l-border) !important; box-shadow: 0 2px 10px rgba(26,35,80,.05); }
html[data-theme="light"] .ims-card3 .ims-card3-head h3, html[data-theme="light"] .ims-card2-body h3, html[data-theme="light"] .ims-flow-card h3 { color: var(--l-text); }
html[data-theme="light"] .ims-card3 > p, html[data-theme="light"] .ims-card2-body p, html[data-theme="light"] .ims-flow-card p, html[data-theme="light"] .ims-dbdesc { color: var(--l-muted); }
html[data-theme="light"] .ims-step-num { color: rgba(183,129,29,.45) !important; }
html[data-theme="light"] .ims-stat .num { color: var(--l-gold); }
html[data-theme="light"] .ims-stat .lbl { color: var(--l-muted); }
html[data-theme="light"] .ims-panel-head h3 { color: #a06f12; }
html[data-theme="light"] .ims-tile { background: var(--l-surface2); }
html[data-theme="light"] .ims-tile .lbl, html[data-theme="light"] .ims-tile .val { color: var(--l-text); }
html[data-theme="light"] .ims-tile .val.up, html[data-theme="light"] .up { color: #128a44; }
html[data-theme="light"] .ims-tile .val.down, html[data-theme="light"] .down { color: #d22d3c; }
html[data-theme="light"] .pos { color: #128a44; }
html[data-theme="light"] .neg { color: #d22d3c; }

/* bslib cards (Monitor, Corporate actions, Calculation, Dissemination, Help) */
html[data-theme="light"] .card, html[data-theme="light"] .bslib-card, html[data-theme="light"] .bslib-value-box {
  background: var(--l-surface) !important; border-color: var(--l-border) !important; color: var(--l-text); }
html[data-theme="light"] .card-header { background: var(--l-surface2) !important; color: #a06f12 !important; border-bottom-color: var(--l-border) !important; }
html[data-theme="light"] .bslib-sidebar-layout > .sidebar { background: var(--l-surface2) !important; border-right-color: var(--l-border) !important; }
html[data-theme="light"] .bslib-value-box .value-box-value { color: var(--l-gold); }

/* Forms, chips, buttons */
html[data-theme="light"] .form-control, html[data-theme="light"] .form-select, html[data-theme="light"] select,
html[data-theme="light"] .selectize-input, html[data-theme="light"] .selectize-dropdown,
html[data-theme="light"] .ims-filters .form-control, html[data-theme="light"] .ims-filters .form-select, html[data-theme="light"] .ims-filters select, html[data-theme="light"] .ims-filters .selectize-input {
  background: #fff !important; color: var(--l-text) !important; border-color: var(--l-border) !important; }
html[data-theme="light"] .ims-filters label, html[data-theme="light"] label, html[data-theme="light"] .control-label { color: var(--l-muted); }
html[data-theme="light"] .ims-chip, html[data-theme="light"] .ims-tag, html[data-theme="light"] .btn-ims-dark {
  background: #fff !important; color: var(--l-text) !important; border-color: var(--l-border) !important; }
html[data-theme="light"] .ims-chip.active { background: var(--l-gold) !important; color: #fff !important; border-color: var(--l-gold) !important; }
html[data-theme="light"] .ims-chip.active .n { color: rgba(255,255,255,.75); }
html[data-theme="light"] .ims-count { color: var(--l-muted); }
html[data-theme="light"] .ims-count strong { color: var(--l-gold); }
html[data-theme="light"] .ims-per { color: var(--l-text); }
html[data-theme="light"] .ims-per.active { background: var(--l-gold); color: #fff; }
html[data-theme="light"] .ims-periods { border-color: var(--l-border); }
html[data-theme="light"] .ims-tbl-item { color: var(--l-text); }
html[data-theme="light"] .ims-tbl-item.active { background: var(--l-gold); color: #fff; }
html[data-theme="light"] a.ims-dbname { color: #a06f12; }
html[data-theme="light"] table.ims-struct td { color: var(--l-text); border-bottom-color: var(--l-border); }
html[data-theme="light"] table.ims-struct td.c { color: var(--l-text); }
html[data-theme="light"] table.ims-struct td.t { color: var(--l-blue); }

/* Tables */
html[data-theme="light"] table.dataTable, html[data-theme="light"] .dataTables_wrapper { color: var(--l-text) !important; }
html[data-theme="light"] table.dataTable thead th, html[data-theme="light"] table.dataTable.ims-screen-table thead th, html[data-theme="light"] .ims-panel table.dataTable thead th {
  background: var(--l-surface2) !important; color: var(--l-text) !important; border-bottom-color: var(--l-border) !important; }
html[data-theme="light"] table.dataTable tbody td, html[data-theme="light"] table.dataTable.ims-screen-table tbody td { color: var(--l-text); border-top-color: var(--l-border) !important; }
html[data-theme="light"] table.dataTable.stripe tbody tr.odd, html[data-theme="light"] table.dataTable.display tbody tr.odd { background: #f8f9fd !important; }
html[data-theme="light"] .ix-name { color: #a06f12; }
html[data-theme="light"] .ix-sub { color: var(--l-muted); }
html[data-theme="light"] .ix-ccy { background: var(--l-surface2); color: var(--l-text); }
html[data-theme="light"] .dataTables_wrapper .dataTables_info, html[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--l-muted) !important; }

/* Charts (plotly) */
html[data-theme="light"] .js-plotly-plot .plotly text { fill: #3b4570 !important; }
html[data-theme="light"] .js-plotly-plot .gridlayer path, html[data-theme="light"] .js-plotly-plot .zerolinelayer path { stroke: rgba(26,35,80,.1) !important; }

/* Popover, footer, misc */
html[data-theme="light"] .popover { background: #fff; color: var(--l-text); border-color: var(--l-border); }
html[data-theme="light"] .popover-header { background: var(--l-surface2); color: var(--l-text); }
html[data-theme="light"] .popover-body { color: var(--l-text); }
html[data-theme="light"] .ims-footer { color: var(--l-muted); border-top-color: var(--l-border); }
html[data-theme="light"] .ims-formula { background: var(--l-surface2); }
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3, html[data-theme="light"] h4, html[data-theme="light"] h5 { color: inherit; }
html[data-theme="light"] .ims-section h2.ims-h2 { color: #a06f12; }
