/* Seasonality node — styles. Loaded globally by Dash from /assets, so every rule is scoped under
   .sea-app. The page kit of the main app (assets/app_pages/pages_style.css: .pk-scope, .pk-card,
   .pk-kpis, .pk-pills, .pk-chip) does most of the work; these rules lay out the node, in the same
   way as the Systematic Investment Plan (sip_style.css).
   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. */

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

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

/* ---------- main grid: rail + screens ------------------------------------------------- */
.sea-main { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; align-items: start; }
.sea-rail { display: flex; flex-direction: column; min-width: 0; }
.sea-rail .pk-card { padding: 9px 11px; margin-bottom: 8px; }
.sea-field { margin-bottom: 8px; min-width: 0; }
.sea-k { color: #9fb3c8; font-size: .64rem; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 3px; }
.sea-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.sea-app .Select-control { height: 30px; }
.sea-app .Select--single > .Select-control .Select-value, .sea-app .Select-placeholder { line-height: 28px !important; }
.sea-app .Select-value-label { color: #e8e8e8 !important; }
.sea-uni .uni { margin: 0; }
.sea-status { margin-top: 6px; font-size: .74rem; }
.sea-ok { color: #bfe8c4; }
.sea-ok i { color: #3fbf7f; }
.sea-err { color: #ffd0cb; }
.sea-err i { color: #e66767; }

/* screen tabs (the same look as the SIP / canvas title tabs) */
.sea-tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sea-tabs label { display: inline-flex !important; margin: 0 !important; cursor: pointer; padding: 2px 0 7px;
                  color: #7f93a8; font-size: 1rem; font-weight: 600; border-bottom: 2px solid transparent;
                  transition: color .15s, border-color .15s; }
.sea-tabs label:hover { color: #cfefff; }
.sea-tabs label:has(input:checked) { color: #cfefff; border-bottom-color: #f0a030; }
.sea-tabs input { display: none; }
.sea-center { min-width: 0; }
.sea-wait { color: #9fb3c8; padding: 40px 10px; text-align: center; }

/* ---------- cards, grids, kpis ---------------------------------------------------------- */
.sea-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sea-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-bottom: 12px; }
.sea-grid2 > .pk-card { margin-bottom: 0; }
.sea-graph { width: 100%; }
.sea-kpis { margin: 0 0 10px; }
.sea-kpis .pk-kpi { flex: 1 1 140px; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.07); }
.sea-kpis .pk-kpi.sea-hero { flex: 1.4 1 190px; border-color: rgba(240,160,48,0.45); background: rgba(240,160,48,0.07); }
.sea-kpis .pk-kpi.sea-hero .pk-kv { font-size: 1.45rem; }
.sea-kpi-s { color: #7f93a6; font-size: .64rem; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sea-summary { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.07); border-left: 3px solid #f0a030;
               border-radius: 10px; padding: 10px 14px; font-size: .88rem; color: #e8f4ff; line-height: 1.55; margin-bottom: 10px; }
.sea-summary > i { color: #f0a030; }
.sea-summary .pk-chip { margin-right: 4px; vertical-align: 1px; }
.sea-say { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; padding: 7px 10px; border-radius: 10px;
           background: rgba(255,255,255,0.04); color: #dfe7ee; font-size: .78rem; line-height: 1.5; }
.sea-say i { color: #f0a030; margin-top: 3px; }
.sea-note { color: #7f93a6; font-size: .7rem; line-height: 1.45; margin-top: 6px; }
.sea-note.warn { color: #f5d6a3; }

/* controls row above a screen */
.sea-ctrls { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-end; margin-bottom: 10px; }
.sea-ctrls > div { min-width: 0; }
.sea-dd { min-width: 300px; max-width: 520px; }
.sea-app input.sea-num { width: 110px; }

/* tables */
.sea-scroll { overflow-x: auto; }
.sea-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.sea-table th { color: #9fb3c8; font-weight: 500; font-size: .64rem; text-transform: uppercase; letter-spacing: .4px;
                text-align: right; padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,0.1); vertical-align: bottom;
                white-space: nowrap; }
.sea-table td { padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: right;
                font-variant-numeric: tabular-nums; color: #e8e8e8; white-space: nowrap; }
.sea-table th:first-child, .sea-table td:first-child { text-align: left; }
.sea-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.sea-table td.sea-fam { color: #cfefff; font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .5px;
                        text-align: left; padding-top: 10px; border-bottom-color: rgba(255,255,255,0.1); }
.sea-link { background: none; border: none; padding: 0; color: #e8e8e8; cursor: pointer; text-align: left; font-size: .76rem; }
.sea-link:hover { color: #f0a030; text-decoration: underline; }

.sea-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); }
.sea-foot i { color: #9fb3c8; }

/* ---------- narrow screens ---------------------------------------------------------------- */
@media (max-width: 1250px) { .sea-grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) {
  .sea-main { grid-template-columns: minmax(0, 1fr); }
  .sea-top { padding-right: 120px; }
}
@media (max-width: 640px) {
  .sea-top { padding-right: 0; padding-top: 34px; }
  .sea-brand > div { display: none; }
  .sea-tabs { gap: 4px 14px; }
  .sea-tabs label { font-size: .88rem; }
  .sea-dd { min-width: 0; width: 100%; }
  .sea-ctrls > div { flex: 1 1 100%; }
  .sea-kpis .pk-kpi { flex: 1 1 45%; }
}
