body { font-family: 'Inter', sans-serif; }
@media (max-width: 991.98px) { .hidden-sm{ display: none; } }
.page-wrapper { flex-grow: 1; }
.echart-tooltip { font-family: inherit; font-size: 12px; line-height: 1.5; }
.tooltip-header { font-weight: 600; margin-bottom: 8px; color: var(--tblr-body-color); }
.tooltip-body { display: flex; gap: 16px; align-items: center; }
.tooltip-item .item-label { color: var(--tblr-secondary); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.tooltip-item .item-value { font-size: 16px; font-weight: 600; color: var(--tblr-body-color); }
.tooltip-divider { width: 1px; align-self: stretch; background-color: var(--tblr-border-color); }
.tooltip-footer { margin-top: 12px; padding: 6px 10px; background-color: var(--tblr-bg-surface-tertiary); border-radius: var(--tblr-border-radius-sm); text-align: center; color: var(--tblr-secondary); }
#sticky-overview-header { transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; transform: translateY(-100%); opacity: 0; z-index: 1021; display:none; }
#sticky-overview-header.show { transform: translateY(0); opacity: 1; display: block; }
.page-wrapper, .page-body{ background-color: #fff; }
.navbar-transparent{ border-right: 1px solid rgb(229, 231, 235); background-color: rgb(249, 250, 251); }
.card{ border-radius:6px; overflow: hidden; border: 1px solid rgb(229, 231, 235); box-shadow: none; }
.valuation-box { text-align: center; padding: 16px; border-radius: 8px; background: #fff; border: 1px solid #e6e8eb; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: box-shadow .15s ease, transform .15s ease; }
.valuation-box:hover { box-shadow: 0 2px 10px rgba(0,0,0,.05); transform: translateY(-1px); }
.val-label { color: #666; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.val-price { font-size: 1.5rem; font-weight: 700; margin: 5px 0; }
.val-label-sm { font-size: 0.7rem; color: #999; }
.stock-header { position: relative; padding-right: 80px; }
.score-badge { background-color: #6574cd; color: white; width: 60px; height: 70px; clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 50% 100%, 0% 85%); display: flex; flex-direction: column; align-items: center; justify-content: center; position: absolute; top: 0; right: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.score-badge .grade { font-size: 28px; font-weight: 700; line-height: 1; }
.score-badge .score-val { font-size: 10px; opacity: 0.9; }
.osv-progress-label { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; margin-bottom: 4px; color: #666; }
.progress { height: 8px; background-color: #e9ecef; margin-bottom: 1rem; border-radius: 4px;}
.sidebar-divider { font-size: 10px !important; letter-spacing: 1px; color: var(--tblr-gray-600); font-weight: 600; }
.mini-chart-card { border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius-sm); background: #fff; padding: 1rem; height: 160px; }
.mini-chart-title { font-size: 0.85rem; font-weight: 600; color: var(--tblr-body-color); margin-bottom: 0.5rem; }
.nav-tabs .nav-link { border: none; color: #666; font-weight: 500; font-size: 0.875rem; }
.nav-tabs .nav-link.active { border-bottom: 2px solid var(--tblr-primary); color: var(--tblr-primary); background: transparent; }
.fs-legend-box { border: 1px solid var(--tblr-border-color); border-radius: var(--tblr-border-radius); padding: 1.5rem; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.fs-legend-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.875rem; }
.fs-legend-left { display: flex; align-items: center; gap: 10px; color: var(--tblr-body-color); }
.fs-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.fs-legend-value { font-weight: 600; color: var(--tblr-body-color); }
.fs-link { color: var(--tblr-primary); text-decoration: none; font-size: 0.875rem; margin-top: 0.5rem; display: inline-block; }
.fs-link:hover { text-decoration: underline; }
.news-item { border-bottom: 1px solid var(--tblr-border-color); padding: 1rem 0; }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-item:first-child { padding-top: 0; }
.news-title { font-weight: 600; color: var(--tblr-primary); text-decoration: none; font-size: .8rem; display: block; margin-bottom: 0.25rem; }
.news-title:hover { text-decoration: underline; }
.news-source { font-size: 0.75rem; color: var(--tblr-secondary); margin-bottom: 0.5rem; }
.news-summary { font-size: 85.714285%; color: var(--tblr-secondary-color) !important; margin-bottom: 0; }
.recent-tickers-list { margin-bottom: 0; }
.recent-tickers-list .list-inline-item a { color: var(--tblr-secondary); font-weight: 500; text-decoration: none; font-size: 0.875rem; padding: 0.25rem 0.5rem; border-radius: var(--tblr-border-radius-sm); transition: background-color 0.2s ease, color 0.2s ease; }
.recent-tickers-list .list-inline-item a:hover { color: var(--tblr-primary); background-color: var(--tblr-bg-surface-hover); }
.recent-tickers-list .list-inline-item a[aria-current="page"] { color: var(--tblr-primary-fg); font-weight: 600; font-size: 0.9rem; background-color: var(--tblr-primary); }
.command-bar-btn { color: var(--tblr-secondary); background-color: var(--tblr-bg-surface-tertiary); border: 1px solid var(--tblr-border-color); padding: 0.3rem 0.75rem; border-radius: var(--tblr-border-radius-sm); font-size: 0.875rem; font-weight: 500; transition: all 0.2s ease; margin-left: auto; }
.command-bar-btn:hover { color: var(--tblr-body-color); background-color: var(--tblr-bg-surface-hover); border-color: var(--tblr-border-color-hover); }
.command-bar-btn .hotkey { font-family: monospace; font-size: 0.8rem; background: var(--tblr-bg-surface); border: 1px solid var(--tblr-border-color); padding: 2px 4px; border-radius: 4px; margin-left: 8px; opacity: 0.7; }
.modal-dialog-command-bar { max-width: 600px; margin-top: 5vh; }
.command-bar-modal .modal-body { padding: 0; }
.command-bar-modal .form-control { border-radius: 0; border: none; font-size: 1rem; padding: 1.25rem; }
.command-bar-modal .form-control:focus { box-shadow: none; }
.command-bar-results { max-height: 400px; overflow-y: auto; padding: 0.5rem; }
.command-bar-results .list-group-item { padding: 0.75rem 1rem; cursor: pointer; }
.command-bar-results .list-group-item-action:hover { background-color: var(--tblr-bg-surface-hover); }
/* Compact list style for mini stats/company panes */
.mini-stats-list .list-group-item { padding: .375rem 0; border: 0; }
.mini-stats-list .list-group-item + .list-group-item { border-top: 1px solid var(--tblr-border-color); }
.mini-stats-list .label { border-bottom: 1px dotted var(--tblr-border-color); padding-bottom: 1px; display: inline-block; }
.mini-stats-list .value { font-weight: 600; }

.badge{
    color: #fff;
}
.card{
    border: 0px;
}
.sticky-top.show .card{
    border-bottom: 1px solid rgb(229, 231, 235);
}

/* Loading overlay for summary */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1055; /* above modals backdrop, below modal dialog (Bootstrap) */
    backdrop-filter: saturate(120%) blur(1px);
}
.loading-overlay .loading-overlay-body {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.loading-overlay .loading-text {
    font-weight: 600;
}

/* Valuation inputs styling */
.valuation-inputs .input-group-text {
    min-width: 110px;
    justify-content: space-between;
    font-weight: 600;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-tertiary);
    border-color: var(--tblr-border-color);
}
.valuation-inputs .form-control {
    text-align: right;
    font-variant-numeric: tabular-nums;
    height: 34px;
    padding-right: .5rem;
}
.valuation-inputs .form-control::placeholder {
    color: var(--tblr-secondary);
    opacity: .7;
}
.valuation-inputs .input-group + .input-group {
    margin-top: .25rem;
}
.valuation-inputs .help {
    font-size: .75rem;
    color: var(--tblr-secondary);
}
.valuation-inputs .input-group:focus-within .input-group-text {
    color: var(--tblr-primary);
    border-color: var(--tblr-primary);
}
.valuation-inputs .input-group:focus-within .form-control {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 .15rem rgba(32,107,196,.12);
}

/* Compact section header for inputs */
.model-card .inputs-title{
    display:flex;
    align-items:center;
    gap:.5rem;
    font-size:.8125rem;
    color: var(--tblr-secondary);
    font-weight:600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.model-card .inputs-title .dot{
    width:6px;height:6px;border-radius:50%;background: var(--tblr-primary);
}

/* Utility: visually-hidden focusable (if needed) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}