/* ============================================================================
   BLOOMBERG PROFESSIONAL WORKSTATION UI OVERHAUL
   STRICT REQUIREMENT: ONLY ARIAL FONT ALLOWED ACROSS THE ENTIRE APPLICATION
   ============================================================================ */

*, *::before, *::after,
html, body, table, thead, tbody, tfoot, tr, th, td,
input, select, button, textarea, label, span, div, p,
h1, h2, h3, h4, h5, h6, code, pre, kbd, a, ul, ol, li,
svg, text, .font-mono, .terminal-font, [class*="font-mono"] {
  font-family: Arial, Helvetica, sans-serif !important;
}

    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      background-color: var(--win-bg);
      color: var(--win-text);
      font-size: 11px;
      line-height: 1.22;
      overflow: hidden;
      user-select: none;
    }

    .bevel-outset {
      background-color: #000000 !important;
      border: 1px solid #262626 !important;
      box-shadow: none !important;
      border-radius: 0px !important;
    }

    .bevel-inset {
      background-color: #131313 !important;
      border: 1px solid #262626 !important;
      box-shadow: none !important;
      border-radius: 0px !important;
    }

    .bevel-panel {
      background-color: #1c1b1b !important;
      border: 1px solid #262626 !important;
      box-shadow: none !important;
      border-radius: 0px !important;
    }

    .win-btn {
      background-color: #0A0E17;
      color: #E2E8F0;
      border: 1px solid #1E2838;
      border-radius: 0px !important;
      padding: 2px 7px;
      font-size: 11px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      white-space: nowrap;
      transition: background-color 0.1s, border-color 0.1s, color 0.1s;
    }

    .win-btn:hover {
      background-color: #121A28;
      border-color: #FF9900;
      color: #FF9900;
    }

    .win-btn:active {
      background-color: #24354D !important;
      color: #FF9900 !important;
      font-weight: bold;
      border-color: #FF9900 !important;
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
    }

    .win-btn.active {
      background-color: #162438 !important;
      color: #FF9900 !important;
      font-weight: bold;
      border-color: #FF9900 !important;
    }

    .win-btn-primary {
      background-color: #FF9900 !important;
      color: #000000 !important;
      font-weight: bold;
      border: 1px solid #FF9900 !important;
      border-radius: 0px !important;
    }

    body.theme-capitaline .win-btn-primary,
    body.theme-prowess .win-btn-primary {
      background-color: #131313;
      color: #FFFFFF !important;
      border: 1px solid #353535;
    }

    .blp-fkey {
      background: #FF9900 !important;
      color: #000000 !important;
      font-weight: 800 !important;
      font-size: 10px !important;
      padding: 2px 8px !important;
      border: 1px solid #FF9900 !important;
      border-radius: 0px !important;
      cursor: pointer;
      white-space: nowrap;
      text-transform: uppercase;
    }
    .blp-fkey:hover {
      background: #FFEE00 !important;
      border-color: #FFEE00 !important;
    }
    .blp-fkey:hover {
      background: #FFEA00;
    }

    .blp-go-btn {
      background: #00FF66 !important;
      color: #000000 !important;
      font-weight: 800 !important;
      font-size: 11px !important;
      padding: 2px 10px !important;
      border: 1px solid #00FF66 !important;
      border-radius: 0px !important;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .blp-go-btn:hover {
      background: #33FF85 !important;
      border-color: #33FF85 !important;
    }

    .win-input, .win-select {
      background-color: var(--win-white);
      color: var(--win-text);
      border: 1px solid var(--win-border-light);
      padding: 2px 4px;
      font-size: 11px;
      outline: none;
    }

    .win-input:focus, .win-select:focus {
      border-color: var(--win-accent);
    }

    .win-titlebar {
      background: linear-gradient(90deg, var(--win-title-start) 0%, var(--win-title-end) 100%);
      color: var(--win-title-text);
      padding: 2px 6px;
      font-weight: bold;
      font-size: 11px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--win-border-light);
    }

    .win-subbar {
      background: linear-gradient(90deg, var(--win-subbar-start) 0%, var(--win-subbar-end) 100%);
      color: var(--win-subbar-text);
      padding: 2px 6px;
      font-weight: bold;
      font-size: 10px;
      letter-spacing: 0.25px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--win-border-light);
      text-transform: uppercase;
    }

    /* Dense Institutional Data Tables */
    .inst-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px;
      background-color: var(--win-white);
      color: var(--win-text);
      user-select: text;
    }

    .inst-table th {
      background-color: #101724;
      color: #FFEE00;
      font-weight: bold;
      text-align: left;
      padding: 5px 8px;
      border: 1px solid #1A2433;
      position: sticky;
      top: 0;
      z-index: 5;
      white-space: nowrap;
      font-size: 10.5px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .inst-table td {
      padding: 4px 8px;
      border: 1px solid #141C2A;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
      font-family: Arial, Helvetica, sans-serif !important;
    }

    .inst-table tbody tr:nth-child(even) {
      background-color: #05080E;
    }

    .inst-table tbody tr:hover {
      background-color: #142030;
    }

    .inst-table tbody tr.selected-row {
      background-color: #17263B !important;
      color: #FF9900 !important;
      font-weight: bold;
      border-left: 3px solid #FF9900 !important;
    }

    .inst-table tbody tr.selected-row td {
      background-color: #172437 !important;
      color: #FFB347 !important;
      font-weight: bold;
    }

    .inst-table tbody tr.selected-row td:first-child,
    .inst-table tbody tr.selected-row span {
      color: #FF9900 !important;
      font-weight: bold;
    }

    .inst-table tr.section-row td {
      background-color: var(--win-header-bg);
      font-weight: bold;
      color: var(--win-cyan);
      text-transform: uppercase;
      font-size: 10px;
      letter-spacing: 0.3px;
    }

    .inst-table tr.total-row td {
      background-color: var(--win-surface);
      color: var(--win-accent);
      font-weight: bold;
      border-top: 1px solid var(--win-accent);
      border-bottom: 2px double var(--win-accent);
    }

    .num-pos { color: #00FF66 !important; font-weight: bold; }
    .num-neg { color: #FF3333 !important; font-weight: bold; }
    .text-right { text-align: right !important; }
    .text-center { text-align: center !important; }

    .mdi-tab {
      background-color: #080C14;
      color: #8B949E;
      border: 1px solid #1A2433;
      border-bottom: none;
      border-radius: 0px !important;
      padding: 5px 12px;
      font-size: 10.5px;
      font-weight: bold;
      cursor: pointer;
      white-space: nowrap;
      margin-right: 2px;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      transition: background-color 0.1s, color 0.1s;
    }

    .mdi-tab:hover {
      background-color: #121A28;
      color: #FFFFFF;
      border-color: #2D3D52;
    }

    .mdi-tab.active {
      background-color: #000000 !important;
      color: #FF9900 !important;
      font-weight: 800 !important;
      border: 1px solid #FF9900 !important;
      border-top: 2px solid #FF9900 !important;
      border-bottom: 2px solid #000000 !important;
      border-radius: 0px !important;
      z-index: 2;
    }

    body.theme-capitaline .mdi-tab.active,
    body.theme-prowess .mdi-tab.active {
      background-color: #131313;
      color: #FFFFFF !important;
    }

    /* SPLC Node Card Styling */
    .splc-node {
      border: 1px solid var(--win-border-light);
      background-color: var(--win-white);
      padding: 4px 6px;
      cursor: pointer;
      transition: border-color 0.12s;
    }
    .splc-node:hover, .splc-node.active-node {
      border: 1px solid var(--win-accent);
      background-color: var(--win-row-hover);
    }

    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: var(--win-white); border: 1px solid var(--win-grid); }
    ::-webkit-scrollbar-thumb { background: var(--win-border-light); border: 1px solid var(--win-grid); }

    .menu-item { position: relative; padding: 2px 7px; cursor: pointer; font-weight: bold; }
    .menu-item:hover { background-color: var(--win-accent); color: #000000; }
    .menu-dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 240px;
      z-index: 100;
      padding: 2px;
      background-color: var(--win-surface);
      border: 1px solid var(--win-accent);
    }
    .menu-item.open .menu-dropdown { display: block; }
    .menu-option {
      padding: 3px 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--win-text);
      font-size: 11px;
      cursor: pointer;
    }
    .menu-option:hover { background-color: var(--win-accent); color: #000000; font-weight: bold; }


    /* PIC 3 UPGRADE: HIDE NATIVE BROWSER WHITE NUMBER SPINNERS & OPTIMIZE STEPPER BUTTONS */
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
      -webkit-appearance: none !important;
      margin: 0 !important;
    }
    input[type="number"] {
      -moz-appearance: textfield !important;
      appearance: textfield !important;
    }
    .inst-num-wrap {
      display: inline-flex;
      align-items: stretch;
      border: 1px solid var(--win-border-light);
      background-color: var(--win-white);
      border-radius: 0px !important;
      overflow: hidden;
      vertical-align: middle;
    }
    .inst-num-wrap.w-full {
      display: flex;
      width: 100%;
    }
    .inst-num-wrap:focus-within {
      border-color: var(--win-accent);
      box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.35);
    }
    .inst-num-wrap input[type="number"] {
      border: none !important;
      flex: 1 1 auto;
      min-width: 0;
      padding: 2px 5px;
      background: transparent !important;
    }
    .inst-step-col {
      display: flex;
      flex-direction: row;
      align-items: stretch;
      border-left: 1px solid var(--win-border-light);
      background: #101722;
      flex-shrink: 0;
    }
    .inst-step-btn {
      background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
      color: #FF9900;
      border: none;
      border-left: 1px solid #2A3648;
      padding: 0 5px;
      font-size: 10px;
      font-weight: bold;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      user-select: none;
      transition: background 0.1s, color 0.1s;
    }
    .inst-step-btn:first-child {
      border-left: none;
    }
    .inst-step-btn:hover {
      background: #FF9900;
      color: #000000 !important;
    }
    .inst-step-btn:active {
      background: #00E676;
      color: #000000 !important;
    }
    /* Capitaline AWS Screener Sub-Tabs */
    .cap-aws-step {
      padding: 4px 14px;
      font-weight: bold;
      font-size: 11px;
      cursor: pointer;
      border-right: 1px solid var(--win-border-light);
      color: var(--win-muted);
      background: var(--win-surface);
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .cap-aws-step.active {
      background: #1c1b1b;
      color: #FFFFFF !important;
      border-bottom: 2px solid #FF9900;
    }
    .shp-drill-row:hover {
      background-color: #1E293B !important;
      outline: 1px solid #FF9900;
    }


    /* CHROME-STYLE TOP BROWSER TAB BAR (PRE-DEFINED WORKSPACES) */
    .chrome-tabbar {
      background: #000000;
      padding: 4px 8px 0 8px;
      display: flex;
      align-items: flex-end;
      gap: 6px;
      border-bottom: 2px solid #FF9900;
      user-select: none;
    }
    .chrome-tab {
      background-color: #080C14;
      color: #8B949E;
      border: 1px solid #1A2433;
      border-bottom: none;
      border-radius: 0px !important;
      padding: 4px 14px;
      font-size: 11px;
      font-weight: bold;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.1s;
    }
    .chrome-tab:hover {
      background: #141C2B;
      color: #FFFFFF;
    }
    .chrome-tab.active,
    .chrome-tab.blp-pro-tab.active {
      background-color: #000000 !important;
      color: #FF9900 !important;
      border: 1px solid #FF9900 !important;
      border-top: 2px solid #FF9900 !important;
      border-bottom: 2px solid #000000 !important;
      border-radius: 0px !important;
    }
    .chrome-tab-badge {
      padding: 1px 5px;
      border-radius: 0px !important;
      font-size: 9px;
      font-weight: bold;
      background: #0E1420;
      color: #FF9900;
      border: 1px solid #212836;
    }

    @media print {
      #left-sidebar, #top-chrome, #status-bar, #mdi-tab-bar, .no-print { display: none !important; }
      html, body { overflow: visible !important; height: auto !important; background: #FFFFFF !important; color: #000000 !important; }
      #main-workspace, #mdi-content-area { overflow: visible !important; height: auto !important; border: none !important; padding: 0 !important; }
      .ic-memo-page { page-break-after: always; border: 1px solid #000 !important; padding: 10px !important; margin-bottom: 12px !important; }
    }
  
    /* =========================================================================
       RAYBRIDGE v19.0 UPGRADE: ZERO-HORIZONTAL-SCROLL SCREENER, UX NAV &
       UNIVERSAL CURSOR AUDITABILITY POPOVER
       ========================================================================= */
    #tab-screener .bevel-inset,
    #tab-screener .bevel-panel {
      overflow-x: hidden !important;
      max-width: 100% !important;
    }

    #scr-formula-singleview-box {
      background: linear-gradient(180deg, #090D13 0%, #111824 100%);
      border: 1px solid #FF9900;
      padding: 5px 8px;
      width: 100%;
      overflow-x: hidden !important;
    }

    #scr-formula-expression-text {
      white-space: normal !important;
      word-break: break-word !important;
      overflow-wrap: anywhere !important;
      line-height: 1.45;
      font-size: 11px;
      color: #00E676;
      font-weight: bold;
    }

    #scr-active-chips {
      display: flex !important;
      flex-wrap: wrap !important;
      overflow-x: hidden !important;
      white-space: normal !important;
      word-break: break-word !important;
      gap: 4px !important;
      align-items: center;
      max-width: 100% !important;
      padding: 4px 6px !important;
    }

    #scr-active-chips > span {
      white-space: normal !important;
      word-break: break-word !important;
      max-width: 100% !important;
      line-height: 1.25;
    }

    /* Make Screener Selected Fields & Results Tables fit 100% in Single View without horizontal scroll */
    #tab-screener table.inst-table {
      width: 100% !important;
      table-layout: fixed !important;
      border-collapse: collapse;
    }

    #tab-screener table.inst-table th,
    #tab-screener table.inst-table td {
      white-space: normal !important;
      word-break: break-word !important;
      overflow-wrap: anywhere !important;
      padding: 2px 3px !important;
      font-size: 10px !important;
      line-height: 1.2 !important;
    }

    /* Column proportions for 18-col Screener Output Table so all columns show in single view */
    #tbl-screener-results th:nth-child(1), #tbl-screener-results td:nth-child(1) { width: 2.5%; }
    #tbl-screener-results th:nth-child(2), #tbl-screener-results td:nth-child(2) { width: 6.8%; }
    #tbl-screener-results th:nth-child(3), #tbl-screener-results td:nth-child(3) { width: 13.5%; }
    #tbl-screener-results th:nth-child(4), #tbl-screener-results td:nth-child(4) { width: 2.6%; }
    #tbl-screener-results th:nth-child(5), #tbl-screener-results td:nth-child(5) { width: 9.8%; }
    #tbl-screener-results th:nth-child(6), #tbl-screener-results td:nth-child(6) { width: 6.2%; }
    #tbl-screener-results th:nth-child(7), #tbl-screener-results td:nth-child(7) { width: 5.4%; }
    #tbl-screener-results th:nth-child(8), #tbl-screener-results td:nth-child(8) { width: 6.4%; }
    #tbl-screener-results th:nth-child(9), #tbl-screener-results td:nth-child(9) { width: 4.3%; }
    #tbl-screener-results th:nth-child(10), #tbl-screener-results td:nth-child(10) { width: 4.3%; }
    #tbl-screener-results th:nth-child(11), #tbl-screener-results td:nth-child(11) { width: 5.2%; }
    #tbl-screener-results th:nth-child(12), #tbl-screener-results td:nth-child(12) { width: 4.6%; }
    #tbl-screener-results th:nth-child(13), #tbl-screener-results td:nth-child(13) { width: 4.6%; }
    #tbl-screener-results th:nth-child(14), #tbl-screener-results td:nth-child(14) { width: 4.6%; }
    #tbl-screener-results th:nth-child(15), #tbl-screener-results td:nth-child(15) { width: 4.2%; }
    #tbl-screener-results th:nth-child(16), #tbl-screener-results td:nth-child(16) { width: 5.6%; }
    #tbl-screener-results th:nth-child(17), #tbl-screener-results td:nth-child(17) { width: 4.6%; }
    #tbl-screener-results th:nth-child(18), #tbl-screener-results td:nth-child(18) { width: 4.8%; }

    /* Universal Statutory Audit & PDF Provenance Popover over Cursor */
    #statutory-audit-popover {
      position: fixed;
      z-index: 9999;
      width: 390px;
      max-width: 94vw;
      background: #080C12;
      color: #E6EDF3;
      border: 2px solid #FF9900;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(0, 210, 255, 0.35);
      padding: 0;
      font-size: 10.5px;
      line-height: 1.32;
      pointer-events: auto;
      transition: opacity 0.1s ease;
    }
    #statutory-audit-popover.hidden {
      display: none !important;
    }
    .audit-pdf-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 6px;
      background: linear-gradient(180deg, #1E3A5F 0%, #0F243C 100%);
      color: #00E676 !important;
      border: 1px solid #FF9900;
      font-weight: bold;
      font-size: 10px;
      text-decoration: none !important;
      cursor: pointer;
    }
    .audit-pdf-btn:hover {
      background: #FF9900;
      color: #000000 !important;
      border-color: #FFFFFF;
    }

    /* Subtle auditable hover indicator on data cells & facts */
    .inst-table td:hover,
    #active-stock-banner .bevel-inset:hover,
    #index-ticker-bar > span:hover {
      outline: 1px dashed rgba(255, 153, 0, 0.65);
      position: relative;
    }

    /* Quick-Jump Command Palette Modal (Ctrl+K) */
    #ux-cmd-palette-modal {
      position: fixed;
      inset: 0;
      background: rgba(3, 6, 12, 0.78);
      z-index: 9990;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding-top: 7vh;
    }
    #ux-cmd-palette-modal.hidden {
      display: none !important;
    }

  
    /* =========================================================================
       RAYBRIDGE v15.0 UPGRADE: CAPITALINE-STYLE LEFT FUNCTION TREE, DUAL
       COLLAPSIBLE SIDEBARS, DECLUTTERED MAIN CANVAS & DEEP-DIVE CHART STUDIO
       ========================================================================= */
    .cap-sidebar-header {
      background: #1c1b1b !important;
      color: #FFEE00 !important;
      padding: 4px 8px;
      font-size: 11px;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid #353535 !important;
      border-bottom: 2px solid #FF9900 !important;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .func-tree-main {
      background: #131313 !important;
      color: #FFFFFF !important;
      border: 1px solid #262626 !important;
      padding: 3px 6px;
      font-size: 10.5px;
      font-weight: bold;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: all 0.1s;
    }
    .func-tree-main:hover {
      background: #20201f !important;
      border-color: #FF9900 !important;
      color: #FF9900 !important;
    }
    .func-tree-main.active-main {
      background: #20201f !important;
      border-color: #FF9900 !important;
      border-left: 3px solid #FF9900 !important;
      color: #FFEE00 !important;
    }
    body.theme-capitaline .func-tree-main.active-main {
      background: #20201f;
      color: #FFFFFF !important;
    }

    .func-tree-sub-list {
      padding-left: 10px;
      margin-top: 1px;
      margin-bottom: 3px;
      border-left: 1px dashed var(--win-accent);
      margin-left: 7px;
    }
    .func-tree-sub {
      background: #000000 !important;
      color: #8B949E !important;
      border-left: 1px solid #262626 !important;
      padding: 2.5px 6px 2.5px 12px;
      font-size: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: all 0.1s;
    }
    .func-tree-sub:hover {
      background: #1c1b1b !important;
      color: #FFFFFF !important;
    }
    .func-tree-sub.active-sub {
      background: #20201f !important;
      color: #FF9900 !important;
      font-weight: bold;
      border-left: 2px solid #FF9900 !important;
    }
    body.theme-capitaline .func-tree-sub.active-sub {
      background-color: #20201f;
      color: #FFFFFF !important;
    }

    /* Declutter top workspace bars so main analysis canvas gets maximum screen height */
    #mdi-tab-bar {
      display: none !important; /* Replaced by clean Left Function Tree + Active Sub-Function Breadcrumb Bar */
    }
    #ux-easy-nav-strip {
      display: none !important; /* Consolidated into sleek single-line top control bar */
    }
    #mkt-hero-verbose-banner {
      display: none !important; /* Removed unnecessary text block per user request */
    }

    /* Capitaline Pic 1 Inspired Card Headers */
    .cap-card-header {
      background: #1c1b1b !important;
      color: #FFEE00 !important;
      padding: 4px 8px;
      font-weight: bold;
      font-size: 11px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 2px solid #FF9900 !important;
      border-top: 1px solid #353535 !important;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* Deep-Dive Charting Studio Modal / Drawer */
    #deep-dive-chart-modal {
      position: fixed;
      inset: 0;
      background: rgba(4, 7, 13, 0.86);
      z-index: 9980;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px;
    }
    #deep-dive-chart-modal.hidden {
      display: none !important;
    }

  
    /* =========================================================================
       RAYBRIDGE v16.0 UPGRADE: COMPACT TOP SPACE, FULL-SENTENCE LEFT TASKBAR,
       CONTAINED SEARCH INPUTS & GRANULAR COMPANY DEEP-DIVE CHART STUDIO
       ========================================================================= */
    /* Compact Top Chrome to maximize main dashboard vertical height */
    .chrome-tabbar {
      padding: 2px 6px 0 6px !important;
      gap: 3px !important;
    }
    .chrome-tab {
      padding: 2px 10px !important;
      font-size: 10.5px !important;
    }
    .win-titlebar {
      padding: 1px 6px !important;
      font-size: 10.5px !important;
    }
    #menubar {
      padding: 1px 4px !important;
      font-size: 10px !important;
    }
    #active-stock-banner {
      padding: 3px 6px !important;
    }
    #active-stock-banner .pb-1 {
      padding-bottom: 2px !important;
    }
    #active-stock-banner .pt-1 {
      padding-top: 2px !important;
    }

    /* Widen Left Taskbar & allow full sentences to wrap cleanly without truncation */
    #left-func-sidebar {
      width: 286px !important;
      min-width: 286px !important;
      max-width: 286px !important;
    }
    .func-tree-main {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      padding: 4px 6px !important;
      font-size: 10.5px !important;
      line-height: 1.25 !important;
      white-space: normal !important;
      word-break: break-word !important;
      gap: 4px;
    }
    .func-tree-main .tree-main-label {
      white-space: normal !important;
      word-break: break-word !important;
      overflow: visible !important;
      text-overflow: unset !important;
      flex: 1 1 auto;
    }
    .func-tree-sub {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      padding: 3px 6px !important;
      font-size: 10px !important;
      line-height: 1.25 !important;
      white-space: normal !important;
      word-break: break-word !important;
    }
    .func-tree-sub span {
      white-space: normal !important;
      word-break: break-word !important;
      overflow: visible !important;
      text-overflow: unset !important;
    }

    /* Fix Left Sidebar Search Input & GO button overflow */
    #inp-left-company-search {
      min-width: 0 !important;
      width: 100% !important;
    }
    #left-func-sidebar .univ-auto-box {
      width: 270px !important;
      max-width: 270px !important;
      left: 0 !important;
      z-index: 9995 !important;
    }

    /* Deep-Dive Granular Metric Chips */
    .dd-metric-chip {
      padding: 2px 6px;
      font-size: 10px;
      font-weight: bold;
      border: 1px solid var(--win-border-light);
      background-color: var(--win-surface);
      color: var(--win-muted);
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.1s;
    }
    .dd-metric-chip:hover {
      border-color: var(--win-accent);
      color: var(--win-text);
    }
    .dd-metric-chip.active {
      background-color: #1F2E45 !important;
      color: #FF9900 !important;
      font-weight: bold;
      border-color: #FF9900 !important;
    }
        .dd-seg-chip {
      border-color: #212836;
      color: #8B949E;
    }
    .dd-seg-chip:hover {
      border-color: #FF9900;
      color: #FFFFFF;
    }
    .dd-seg-chip.active {
      background-color: #1F2E45 !important;
      color: #FF9900 !important;
      font-weight: bold;
      border-color: #FF9900 !important;
    }


/* ============================================================================
   CAPITALINE REDESIGN STYLES (MATCH IMAGE 1 AESTHETIC & SPACIOUSNESS)
   ============================================================================ */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#active-subfunction-pills button {
  white-space: nowrap !important;
  flex-shrink: 0;
}

/* Capitaline Theme enhancements */
body.theme-capitaline #tab-market .bevel-panel {
  background: #FFFFFF !important;
  border: 1px solid #C8D7EB !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
body.theme-capitaline #tab-market .cap-card-header {
  background: #1c1b1b !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid #1E3A5F;
}
body.theme-capitaline #tab-market .bevel-inset {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #1E293B !important;
}
body.theme-capitaline #tab-market #cap-mkt-level {
  color: #0F172A !important;
  font-weight: 800;
}
body.theme-capitaline #tab-market table.inst-table {
  background: #FFFFFF !important;
}
body.theme-capitaline #tab-market table.inst-table th {
  background: #E8EEF5 !important;
  color: #1E3A5F !important;
  font-weight: 700;
  border-bottom: 1px solid #CBD5E1 !important;
}
body.theme-capitaline #tab-market table.inst-table td {
  color: #1E293B !important;
  border-bottom: 1px solid #F1F5F9 !important;
}
body.theme-capitaline #tab-market table.inst-table tr:hover td {
  background: #F0F7FF !important;
}


/* Bloomberg Sub-Function Focus Pulse & High-Contrast Active Pill */
@keyframes bloombergFocusGlow {
  0% {
    outline: 2px solid #FF9900;
    box-shadow: 0 0 18px rgba(255, 153, 0, 0.85);
  }
  50% {
    outline: 2px solid #00E676;
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.9);
  }
  100% {
    outline: 1px solid rgba(255, 153, 0, 0.2);
    box-shadow: none;
  }
}

.bloomberg-focus-pulse {
  animation: bloombergFocusGlow 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
  scroll-margin-top: 60px;
}

#active-subfunction-pills button.active {
  background-color: #FF9900 !important;
  color: #000000 !important;
  border-color: #FF9900 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 8px rgba(255, 153, 0, 0.5) !important;
}

#active-subfunction-pills button {
  white-space: nowrap !important;
  flex-shrink: 0;
  color: #E2E8F0;
  border: 1px solid #30363D;
  background-color: #161F2C;
  transition: all 0.15s ease;
}

#active-subfunction-pills button:hover {
  border-color: #FF9900;
  color: #FFFFFF;
}


.shp-cat-btn.active { background-color: #1F2E45 !important; color: #FF9900 !important; border-color: #FF9900 !important; font-weight: bold !important; }
