/* Jaisandar 318 · requested UI fixes */

/* Tenge: Carry trade is a separate destination and uses a dark-gray control. */
body.home .tenge-subnav .tenge-carry-link{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:40px!important;padding:0 18px!important;border-radius:12px!important;
  border:1px solid #3f444a!important;background:#3f444a!important;color:#fff!important;
  font:900 .72rem/1 Inter,"Segoe UI",Arial,sans-serif!important;text-decoration:none!important;
  box-shadow:0 6px 16px rgba(31,36,41,.14)!important;
}
body.home .tenge-subnav .tenge-carry-link:hover{background:#30353a!important;border-color:#30353a!important;color:#fff!important;transform:translateY(-1px)}

/* Dedicated Carry trade page mode. */
body.jai-carry-page .tenge-window{display:block!important}
body.jai-carry-page .tenge-window>header,
body.jai-carry-page .tenge-window>.tenge-subnav,
body.jai-carry-page .tenge-window>.tenge-toolbar,
body.jai-carry-page .tenge-window>.tenge-period-row,
body.jai-carry-page .tenge-window>.tenge-year-scroll,
body.jai-carry-page .tenge-window>.tenge-chart-card,
body.jai-carry-page .tenge-window>.tenge-analysis-grid,
body.jai-carry-page .tenge-window>.tenge-reveal-block:not(.carry-trade-block),
body.jai-carry-page .tenge-window>.economy-source{display:none!important}
body.jai-carry-page .carry-trade-block{display:block!important;margin-top:12px!important}

/* Desktop: remove clean/fullscreen controls from every data chart. */
@media (min-width:901px){.jai311-focus-btn{display:none!important}}

/* KASE information line on teal background must stay white. */
body.home[data-jai-rubric="market"] [data-market-rubric]>.jai-data-freshness,
body.home[data-jai-rubric="market"] [data-market-rubric]>.jai-data-freshness b{color:#fff!important}
body.home[data-jai-rubric="market"] [data-market-rubric]>.jai-data-freshness i{background:#fff!important;box-shadow:0 0 0 3px rgba(255,255,255,.15)!important}

/* Dividend tabs: clearer labels + compact icons. */
body.home[data-jai-rubric="market"] .dividend-mode-tabs button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  color:#354848!important;font-size:.72rem!important;letter-spacing:.005em!important;
}
body.home[data-jai-rubric="market"] .dividend-mode-tabs button i{
  display:inline-grid!important;place-items:center!important;width:23px!important;height:23px!important;
  border-radius:7px!important;background:#e9f0ef!important;color:#42605e!important;
  font-style:normal!important;font-size:.76rem!important;font-weight:950!important;line-height:1!important;
}
body.home[data-jai-rubric="market"] .dividend-mode-tabs button.active i{background:#e0f2f0!important;color:#006c6c!important}
body.home[data-jai-rubric="market"] .dividend-mode-tabs button span{display:inline!important;color:inherit!important}

/* External trade: keep the fourth rubric fully visible instead of clipping its label. */
body.home[data-jai-rubric="trade"] .trade-rail{overflow:visible!important}
body.home[data-jai-rubric="trade"] .trade-rail .trade-subtabs:not([hidden]){overflow:visible!important;height:auto!important;max-height:none!important}
body.home[data-jai-rubric="trade"] .trade-rail .trade-subtabs>button{
  overflow:visible!important;min-height:72px!important;height:auto!important;grid-template-columns:48px minmax(0,1fr)!important;
}
body.home[data-jai-rubric="trade"] .trade-rail .trade-subtabs>button>span{
  display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;opacity:1!important;visibility:visible!important;
}
body.home[data-jai-rubric="trade"] .trade-rail .trade-subtabs>button>span>b,
body.home[data-jai-rubric="trade"] .trade-rail .trade-subtabs>button>span>small{display:block!important;opacity:1!important;visibility:visible!important;white-space:normal!important}

@media (max-width:900px){
  body.home[data-jai-rubric="trade"] .trade-rail .trade-subtabs:not([hidden]){overflow-x:auto!important;overflow-y:visible!important}
  body.home[data-jai-rubric="trade"] .trade-rail .trade-subtabs>button{min-height:62px!important}
}
