/* GoldenLayout control icons — replace missing bitmap assets with glyphs.
 *
 * The vendored goldenlayout-dark-theme.min.css points its control icons at
 * url(../../img/lm_*.png). Loaded from /static/lib/, that resolves to /img/,
 * i.e. the web root, because upstream ships the CSS at css/themes/ where
 * ../../img/ lands on the package root. Vendoring flattened everything into
 * lib/ and left the img/ directory behind, so all five requests 404 and the
 * panel controls render as invisible empty boxes.
 *
 * Rather than vendor binary assets, draw the controls as text. Same affordance,
 * no external requests, scales with font size instead of pixel-doubling.
 *
 * Load order matters: this must come after goldenlayout-dark-theme.min.css.
 */

.lm_controls .lm_popout,
.lm_controls .lm_maximise,
.lm_controls .lm_close,
.lm_maximised .lm_controls .lm_maximise,
.lm_header .lm_tab .lm_close_tab,
.lm_popin .lm_icon {
    background-image: none !important;
}

/* Shared glyph presentation for the header controls. */
.lm_controls > div,
.lm_header .lm_tab .lm_close_tab {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
    color: var(--text-secondary, #9aa);
    opacity: 0.65;
    cursor: pointer;
}

.lm_controls > div:hover,
.lm_header .lm_tab .lm_close_tab:hover {
    opacity: 1;
    color: var(--text-primary, #e8e8f0);
}

.lm_controls .lm_close::before { content: '\00d7'; font-size: 15px; }
.lm_controls .lm_maximise::before { content: '\2b1c'; font-size: 9px; }
.lm_maximised .lm_controls .lm_maximise::before { content: '\2b1a'; font-size: 9px; }
.lm_controls .lm_popout::before { content: '\2197'; font-size: 11px; }
.lm_popin .lm_icon::before { content: '\2199'; font-size: 11px; }

/* Tab close affordance is smaller than the header controls. */
.lm_header .lm_tab .lm_close_tab::before { content: '\00d7'; font-size: 12px; }

/* Shared strategy workspace layout and theme overrides. */
#gl-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 160px);
}

.lm_goldenlayout { background: var(--bg-primary) !important; }
.lm_header { background: var(--bg-secondary) !important; border-bottom: 1px solid var(--border) !important; height: 24px !important; }
.lm_tab { background: var(--bg-tertiary) !important; color: var(--text-secondary) !important; font-size: 0.8rem !important; padding: 2px 10px !important; margin-right: 1px !important; border: none !important; }
.lm_tab.lm_active { background: var(--bg-primary) !important; color: var(--text-primary) !important; border-bottom: 2px solid var(--accent) !important; }
.lm_content { background: var(--bg-primary) !important; border: 1px solid var(--border) !important; overflow: auto; }
.lm_splitter { background: var(--border) !important; opacity: 1 !important; }
.lm_close_tab { display: none !important; }
.gl-panel { width: 100%; height: 100%; overflow: auto; padding: 4px; box-sizing: border-box; }
