/* Intraday Analysis node — styles. Loaded globally by Dash from /assets, so every rule is scoped under .ida-app.
   The page kit of the main app (assets/app_pages/pages_style.css: .pk-scope, .pk-card, .pk-kpi, .pk-pills) does
   most of the work; these rules lay out the node like Market Quality / Options Lab.
   Tokens: panels rgba(0,0,0,0.6), chips rgba(255,255,255,0.06), radius 10px, text #e8e8e8, muted #9fb3c8,
   headings #cfefff, accent #f0a030, good #3fbf7f, bad #e66767, blue #3987e5, teal #3fb6c9, purple #9085e9;
   night #9085e9, day #f0a030. */

.ida-app { color: #e8e8e8; font-size: 13px; }
.ida-app * { box-sizing: border-box; }

/* ---------- header (leave ~200px on the right for the app toolbar) ------------------ */
.ida-top { display: flex; align-items: flex-end; gap: 18px; padding: 0 200px 8px 0; }
.ida-brand h3 { margin: 0; font-size: 1.32rem; color: #cfefff; font-weight: 600; letter-spacing: .2px; }
.ida-brand h3 span { color: #9fb3c8; font-weight: 400; font-size: .95rem; }
.ida-brand > div { color: #9fb3c8; font-size: .78rem; max-width: 1060px; line-height: 1.45; }

/* ---------- control bar ------------------------------------------------------------------ */
.ida-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 26px; margin: 4px 0 12px; }
.ida-ctl { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ida-ctls { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 10px; align-items: flex-end; }
.ida-k { color: #9fb3c8; font-size: .62rem; text-transform: uppercase; letter-spacing: .6px; }
.ida-asof { margin-left: auto; color: #7f93a6; font-size: .72rem; padding-bottom: 4px; }
.ida-asof i { color: #f0a030; }
.ida-app .ida-dd { width: 210px; font-size: .85rem; }
.ida-app .ida-dd .Select-control { background: rgba(0,0,0,0.6); border: 1px solid rgba(240,160,48,0.55);
                                     border-radius: 10px; height: 32px; }
.ida-app .ida-dd .Select-value-label, .ida-app .ida-dd .Select-placeholder { color: #cfefff !important;
                                                                                 font-weight: 600; line-height: 30px; }
.ida-app .ida-dd .Select-menu-outer { background: #0d141c; border: 1px solid rgba(255,255,255,0.12);
                                        border-radius: 10px; z-index: 50; }
.ida-app .ida-dd .VirtualizedSelectOption { color: #dfe7ee; }
.ida-app .ida-dd .VirtualizedSelectFocusedOption { background: rgba(240,160,48,0.18); }
.ida-input { width: 80px; height: 30px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
              background: rgba(0,0,0,0.6); color: #cfefff; padding: 0 10px; font-weight: 600; }
.ida-checks label { margin-right: 0 !important; }

/* ---------- hero: badge + tiles -------------------------------------------------------- */
.ida-hero { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 2fr); gap: 14px; margin-bottom: 14px; }
.ida-badge { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 10px;
              background: linear-gradient(135deg, rgba(0,0,0,0.72), rgba(0,0,0,0.5)); border: 1.5px solid;
              animation: ida-glow 3.2s ease-in-out infinite; }
@keyframes ida-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.14); } }
.ida-badge-ic { flex: 0 0 54px; height: 54px; border-radius: 14px; display: flex; align-items: center;
                 justify-content: center; color: #0b1016; font-size: 1.55rem; box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.ida-badge-k { color: #9fb3c8; font-size: .62rem; text-transform: uppercase; letter-spacing: .8px; }
.ida-badge-v { font-size: 1.55rem; font-weight: 700; line-height: 1.15; color: #cfefff; }
.ida-badge-s { margin-top: 4px; }
.ida-badge-l { color: #dfe7ee; font-size: .8rem; line-height: 1.45; margin-top: 6px; }
.ida-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; align-content: start; }
.ida-tiles .pk-kpi, .ida-kpis .pk-kpi { min-width: 0; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08);
                                          border-radius: 10px; transition: transform .15s, border-color .15s; }
.ida-tiles .pk-kpi:hover { transform: translateY(-2px); border-color: rgba(240,160,48,0.55); }
.ida-tiles .pk-kv { font-size: 1.35rem; white-space: nowrap; }
.ida-app .ida-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 10px; }
.ida-kpis .pk-kv { font-size: 1.25rem; }

/* index bar */
.ida-ibox { display: inline-flex; align-items: center; gap: 7px; min-width: 92px; }
.ida-ibar { flex: 1 1 60px; min-width: 52px; height: 7px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; }
.ida-ibar-in { height: 100%; border-radius: 6px; transition: width .6s ease; }
.ida-ibox span { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.ida-tiles .ida-ibox span { font-size: 1.25rem; }

/* screen tabs */
.ida-tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ida-tabs label { display: inline-flex !important; margin: 0 !important; cursor: pointer; padding: 2px 0 8px;
                   color: #7f93a8; font-size: 1rem; font-weight: 600; border-bottom: 3px solid transparent;
                   transition: color .15s, border-color .15s; }
.ida-tabs label:hover { color: #cfefff; }
.ida-tabs label:has(input:checked) { color: #cfefff; border-bottom-color: #f0a030; }
.ida-tabs input { display: none; }
.ida-wait { color: #9fb3c8; padding: 40px 10px; text-align: center; }
.ida-wait i { color: #f0a030; }
.ida-err { color: #f5b3a8; }

/* ---------- cards, grids ------------------------------------------------------------------- */
.ida-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ida-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-bottom: 12px; }
.ida-grid2 > .pk-card { margin-bottom: 0; }
.ida-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin-bottom: 12px; }
.ida-grid3 > .pk-card { margin-bottom: 0; }
.ida-graph { width: 100%; }
.ida-say { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 9px 12px; border-radius: 10px;
            background: rgba(255,255,255,0.05); color: #dfe7ee; font-size: .82rem; line-height: 1.5;
            border-left: 3px solid #f0a030; }
.ida-say i { color: #f0a030; margin-top: 3px; }
.ida-note { color: #7f93a6; font-size: .7rem; line-height: 1.45; margin-top: 6px; }
.ida-muted { color: #7f93a6; }
.ida-chip { display: inline-block; border: 1px solid; border-radius: 8px; padding: 0 9px; font-size: .68rem;
             font-weight: 700; text-transform: uppercase; letter-spacing: .5px; line-height: 1.75; white-space: nowrap; }
.ida-trend { font-weight: 600; white-space: nowrap; }
.ida-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }

.ida-headline { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.07); border-left: 4px solid #f0a030;
                 border-radius: 10px; padding: 11px 14px; font-size: .9rem; color: #e8f4ff; line-height: 1.65;
                 margin-bottom: 12px; }
.ida-headline b { color: #f0a030; }
.ida-headline-s { color: #9fb3c8; font-size: .8rem; margin-top: 4px; }

/* tables */
.ida-scroll { overflow-x: auto; }
.ida-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.ida-table th { color: #9fb3c8; font-weight: 500; font-size: .64rem; text-transform: uppercase; letter-spacing: .4px;
                 text-align: right; padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,0.1); white-space: nowrap; }
.ida-table th.ida-unit { text-transform: none; font-size: .62rem; color: #6f8295; padding-top: 0; }
.ida-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: right;
                 font-variant-numeric: tabular-nums; color: #e8e8e8; white-space: nowrap; }
.ida-table th:first-child, .ida-table td.ida-left { text-align: left; }
.ida-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.ida-table td.ida-sec { text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .8px;
                          font-weight: 700; color: #9fb3c8; padding-top: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ida-table tr.ida-hl td { background: rgba(240,160,48,0.09); }
.ida-table tr.ida-hl td:first-child { box-shadow: inset 3px 0 0 #f0a030; }
.ida-click { cursor: pointer; }
.ida-click:hover td { background: rgba(240,160,48,0.08) !important; }

/* verdict */
.ida-verdict { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; margin-bottom: 12px;
                background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.07); border-left: 4px solid #3fb6c9;
                font-size: .9rem; color: #e8f4ff; line-height: 1.5; }
.ida-verdict i { color: #3fb6c9; margin-top: 3px; }

/* formulas box */
.ida-formulas { margin: 4px 0 12px; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; }
.ida-formulas summary { cursor: pointer; padding: 8px 12px; color: #cfefff; font-weight: 600; font-size: .82rem; }
.ida-formulas summary i { color: #f0a030; }
.ida-fbox { padding: 2px 12px 10px; }
.ida-frow { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px; padding: 5px 0;
             border-top: 1px solid rgba(255,255,255,0.05); }
.ida-fk { color: #9fb3c8; font-size: .74rem; }
.ida-fv { color: #e8e8e8; font-size: .76rem; line-height: 1.5; font-family: "Cambria Math", Georgia, serif; }

.ida-foot { color: #6f8295; font-size: .68rem; line-height: 1.45; margin-top: 12px; padding-top: 8px;
             border-top: 1px solid rgba(255,255,255,0.06); }
.ida-foot i { color: #9fb3c8; }

/* ---------- narrow screens ---------------------------------------------------------------- */
@media (max-width: 1350px) { .ida-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1250px) {
  .ida-grid2 { grid-template-columns: minmax(0, 1fr); }
  .ida-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1050px) { .ida-top { padding-right: 120px; } }
@media (max-width: 760px) {
  .ida-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ida-grid3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ida-top { padding-right: 0; padding-top: 34px; }
  .ida-brand > div { display: none; }
  .ida-tabs { gap: 4px 14px; }
  .ida-tabs label { font-size: .86rem; }
  .ida-asof { margin-left: 0; }
  .ida-tiles .pk-kv, .ida-tiles .ida-ibox span { font-size: 1.1rem; }
  .ida-badge-v { font-size: 1.25rem; }
  .ida-frow { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ida-app .ida-dd { width: 100%; min-width: 180px; }
}

/* ---------- Intraday Analysis additions ------------------------------------------------------ */
.ida-badge { border-color: #f0a030; }
.ida-badge-ic { background: linear-gradient(135deg, #f0a030, #9085e9); }
.ida-headline-t { color: #cfefff; font-weight: 700; font-size: 1rem; }
.ida-table td.ida-what { white-space: normal; color: #cfd9e3; min-width: 260px; }
.ida-findings td { padding-top: 9px; padding-bottom: 9px; }
.ida-table td.ida-t { font-weight: 600; }
.ida-table td.ida-sig { font-weight: 800; }
.ida-verdict { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; font-weight: 700;
               text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; padding: 2px 9px;
               border-radius: 8px; border: 1px solid; background: transparent; margin: 0; line-height: 1.6; }
.ida-yes { color: #3fbf7f; border-color: rgba(63,191,127,0.6); }
.ida-no { color: #9fb3c8; border-color: rgba(159,179,200,0.35); }
.ida-verdict i { color: inherit; margin: 0; }
.pk-ks .ida-verdict { font-size: .6rem; padding: 0 6px; }
.ida-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ida-research { border: 1px solid rgba(240,160,48,0.35); }
.ida-lead { color: #dfe7ee; font-size: .84rem; line-height: 1.55; margin: 2px 0 10px; }
.ida-app .ida-kpis .pk-kpi { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; }
.ida-app .ida-date .SingleDatePickerInput { background: rgba(0,0,0,0.6); border: 1px solid rgba(240,160,48,0.55);
                                           border-radius: 10px; overflow: hidden; }
.ida-app .ida-date .DateInput, .ida-app .ida-date .DateInput_input { background: transparent; color: #cfefff;
                                                                    font-size: .85rem; font-weight: 600; height: 30px;
                                                                    padding: 0 10px; border: none; width: 140px; }
.ida-tabs label { font-size: .92rem; }
@media (max-width: 1250px) { .ida-two { grid-template-columns: minmax(0, 1fr); } }
.ida-findings th:nth-child(2) { text-align: left; }
