/* ============================================
   STYLES.CSS - BOOTSTRAP FIRST
   REGLA BOOTSTRAP-FIRST:
   antes de agregar una clase o regla nueva, resolverlo primero con clases/utilidades de Bootstrap en el HTML.
   Solo dejar CSS acá cuando Bootstrap no alcance o cuando la regla sea realmente compartida/reutilizable.
============================================ */

/* ============================================
   IMPORTACIÓN DE FUENTES
   ============================================ */
@import url('https://api.fontshare.com/css?f[]=satoshi@700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600;700&display=swap');

/* ============================================
   PALETA DE COLORES — Variables globales.
   ============================================ */
:root {
    --brand-primary: #1a56db;
    --brand-primary-hover: #1746b4;
    --brand-primary-subtle: #dbeafe;
    --brand-heading: #103582;
    --surface-page: #f7f7f7; /* Custom Nico */
    --surface-panel: #ffffff;
    --surface-muted: #f0f2f5;
    --text-strong: #101828;
    --text-muted: #667085;
    --border-data: #dfdfdf;
    --border-soft: #edf0f5;
    --border-strong: #c7d2e0;
    --shadow-header: 0 4px 18px rgba(15, 23, 42, 0.08);
    /* Bordes más rectos */
    --bs-border-radius: 2px;
    --bs-border-radius-sm: 2px;
    --bs-border-radius-md: 2px;
    --bs-border-radius-lg: 2px;
    --bs-border-radius-xl: 2px;
    --bs-border-radius-pill: 100px;
    /* Bootstrap overrides */
    --bs-primary: #1a56db;
    --bs-primary-rgb: 26, 86, 219;
    --bs-link-color: var(--brand-primary);
    --bs-link-color-rgb: 26, 86, 219;
    --bs-link-hover-color: var(--brand-primary-hover);
    --bs-link-hover-color-rgb: 23, 70, 180;
}

/* ============================================
   LIGHT MODE
   ============================================ */
[data-bs-theme="light"] {
    --bs-body-bg: var(--surface-panel);
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-body-color: #111827;
    --bs-body-color-rgb: 17, 24, 39;
    --bs-secondary-color: #667085;
    --bs-tertiary-bg: #f0f2f5;
    --bs-secondary-bg: #f8fafc;
    --bs-emphasis-color: #101828;
    --bs-border-color: #edf0f5;
    --bs-border-color-translucent: rgba(237, 240, 245, 0.5);
    --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow-card-hover: 0 8px 18px rgba(15, 23, 42, 0.14);
}

/* ============================================
   GENERAL
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--bs-body-color);
    background-color: var(--surface-page);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

/* ============================================
   TÍTULOS: Satoshi.
   ============================================ */
h1, h2, h3, h4, h5, h6,
.h2,
#navbarSupportedContent,
#navbarSupportedLogEnd,
#navbarSupportedStart {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    color: var(--brand-heading);
}

h1 {
    font-size: clamp(2.10rem, 1.95rem + 0.8vw, 2.70rem) !important;
}

h2 {
    font-size: clamp(1.65rem, 1.55rem + 0.45vw, 2.05rem);
}

h3 {
    font-size: clamp(1.35rem, 1.25rem + 0.35vw, 1.70rem);
}

h4 {
    font-size: 1.35rem;
}

h5 {
    font-size: 1.12rem;
}

h6 {
    font-size: 1rem;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
}

    a:hover:not(.btn):not(.nav-link):not(.site-brand-link) {
        color: var(--brand-primary-hover);
        text-decoration: underline;
    }

img {
    max-width: 100%;
}

/* ============================================
   BOOTSTRAP CARD — override global de bordes
   ============================================ */
.card {
    --bs-card-border-color: var(--border-soft);
    background-color: var(--surface-panel);
    border: 1px solid var(--bs-card-border-color) !important;
    border-radius: var(--bs-border-radius-lg);
    box-shadow: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

a.card {
    background-color: var(--surface-panel);
    box-shadow: var(--shadow-card) !important;
}

    a.card:hover {
        box-shadow: var(--shadow-card-hover, 0 2px 6px rgba(15, 23, 42, 0.20)) !important;
    }

    a.card:focus-visible {
        box-shadow: var(--shadow-card-hover, 0 2px 6px rgba(15, 23, 42, 0.20)) !important;
    }

.bg-gradient {
    background: linear-gradient(180deg, #f4f7fb 0%, #fff 50%) !important;
}

.page-link:hover {
    text-decoration: none !important;
}

/* ============================================
   NAVBAR / HEADER
   ============================================ */
#logo,
#logo_footer {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.site-header {
    z-index: 1030;
    box-shadow: var(--shadow-header);
}

.site-navbar-inner {
    position: relative;
}

.site-navbar {
    overflow-x: clip;
}

.site-navbar-top {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.site-brand-logo {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: -4px;
}

.site-brand-link {
    --bs-gutter-y: 0;
    align-items: center;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1.2;
}

.site-navbar .site-brand-link {
    flex: 1 1 auto;
    min-width: 0;
}

    .site-navbar .site-brand-link > div,
    .site-navbar .site-brand-link p {
        min-width: 0;
        overflow: hidden;
        overflow-wrap: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.site-navbar .navbar-toggler {
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.site-navbar .nav-link {
    color: var(--text-muted);
    font-weight: 600;
}

    .site-navbar .nav-link:hover,
    .site-navbar .nav-link:focus-visible {
        color: var(--text-strong);
        background-color: var(--surface-muted);
    }

    .site-navbar .nav-link.active {
        color: var(--brand-primary) !important;
        background-color: var(--brand-primary-subtle);
    }

.site-main,
.tool-page {
    position: relative;
}

/* ============================================
   PAGE STRUCTURE
   ============================================ */
.site-footer .nav-link {
    color: var(--text-muted);
}

    .site-footer .nav-link:hover,
    .site-footer .nav-link:focus-visible {
        color: var(--text-strong);
    }

.footer-title {
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.ad-slot,
.table-responsive {
    border: 1px solid var(--border-data);
}

.ad-slot-rendered {
    position: relative;
}

.ad-slot-h-50 {
    min-height: 50px;
}

.ad-slot-h-90 {
    min-height: 90px;
}

.ad-slot-h-100 {
    min-height: 100px;
}

.ad-slot-h-140 {
    min-height: 140px;
}

.ad-slot-h-180 {
    min-height: 180px;
}

.ad-slot-h-250 {
    min-height: 250px;
}

.ad-slot-h-280 {
    min-height: 280px;
}

.ad-slot-h-480 {
    min-height: 480px;
}

.ad-loading-label {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.ad-wrapper {
    position: relative;
    z-index: 1;
}

.adblock-probe-frame {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.monetag-fixed-iframe {
    inset: auto 0 0 auto !important;
}

.about-feature-icon {
    align-items: center;
    background-color: var(--brand-primary-subtle);
    color: var(--brand-primary);
    display: inline-flex;
    flex-shrink: 0;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.footer-newsletter-card {
    max-width: 28rem;
}

.footer-newsletter-input {
    font-size: 0.95rem;
}

.footer-newsletter-submit {
    width: 100%;
    min-width: 8.5rem;
}

.footer-newsletter-status {
    min-height: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

    .footer-newsletter-status.is-pending {
        color: var(--text-muted);
    }

    .footer-newsletter-status.is-success {
        color: var(--bs-success);
    }

    .footer-newsletter-status.is-error {
        color: var(--bs-danger);
    }

.footer-newsletter-form.is-pending {
    pointer-events: none;
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--text-muted);
    --bs-breadcrumb-item-active-color: var(--text-strong);
    margin-bottom: 0;
    padding: 0;
    font-size: 0.88rem;
}

.breadcrumb-item {
    font-weight: 400;
}

    .breadcrumb-item + .breadcrumb-item::before {
        color: var(--text-muted);
    }

    .breadcrumb-item.active {
        color: var(--text-strong);
        font-weight: 600;
    }

.breadcrumb a {
    color: var(--text-muted);
}

    .breadcrumb a:hover {
        color: var(--text-strong);
        text-decoration: none;
    }

/* ============================================
   STOCK DETAIL
   ============================================ */
.stock-price {
    color: var(--text-strong);
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(2.5rem, 2.2rem + 1vw, 3rem);
    font-weight: 900;
    line-height: 0.95;
}

.stock-price-mini {
    color: var(--text-strong);
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(2.5rem, 2.2rem + 1vw, 1.5rem);
    font-weight: 900;
    line-height: 0.95;
}

.stock-change {
    font-size: 1.15rem;
    font-weight: 700;
    padding-bottom: 0.3rem;
}

.top-gainer-stats-table td,
.top-gainer-stats-table th,
.stock-summary-table td,
.stock-summary-table th {
    background-color: transparent;
}

.accordion-item {
    border-top: 1px solid var(--border-soft) !important;
}

.stock-quote-panel-secondary .stock-post-price {
    color: var(--text-secondary);
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(1.55rem, 1.45rem + 0.35vw, 1.8rem);
    font-weight: 500;
    line-height: 1;
}

.stock-post-change {
    font-size: 0.95rem;
    font-weight: 700;
    padding-bottom: 0.2rem;
}

.stock-quote-strip {
    align-items: center;
    column-gap: 0;
    row-gap: 1.25rem;
}

.stock-quote-panel {
    min-width: 0;
}

.stock-quote-panel-secondary {
    border-left: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stock-quote-meta {
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.stock-quote-panel-secondary .stock-quote-meta {
    font-size: 0.88rem;
}

.stock-detail-tabs .nav-link {
    border-radius: 0;
    font-size: 1rem;
    padding: 0.85rem 1.2rem;
}

    .stock-detail-tabs .nav-link.active {
        background: var(--surface-panel);
        color: var(--text-strong);
    }

.stock-chart-canvas {
    height: 360px;
    position: relative;
    overflow: hidden;
    background: var(--surface-panel);
    border: 1px solid var(--border-data);
}

/* ============================================
   GAINERS LOSERS TABLE
   ============================================ */
.gainers-losers-table-wrapper {
    overflow: hidden !important;
    border: 1px solid var(--border-data);
}

    .gainers-losers-table-wrapper .dataTables_wrapper,
    .gainers-losers-table-wrapper .gainers-losers-table {
        margin: 0 !important;
        width: 100% !important;
    }

.gainers-losers-table {
    min-width: 0 !important;
    table-layout: auto;
}

    .gainers-losers-table th:nth-child(1),
    .gainers-losers-table td:nth-child(1) {
        white-space: nowrap;
        width: 1%;
    }

    .gainers-losers-table th:nth-child(2),
    .gainers-losers-table td:nth-child(2) {
        max-width: 0;
        width: 100%;
    }

    .gainers-losers-table th:nth-child(3),
    .gainers-losers-table td:nth-child(3) {
        white-space: nowrap;
        width: 1%;
    }

    .gainers-losers-table th:nth-child(4),
    .gainers-losers-table td:nth-child(4) {
        white-space: nowrap;
        width: 1%;
    }

    .gainers-losers-table td:nth-child(3),
    .gainers-losers-table td:nth-child(4),
    .gainers-losers-table th:nth-child(3),
    .gainers-losers-table th:nth-child(4) {
        text-align: left;
    }

    .gainers-losers-table td:nth-child(2) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gainers-losers-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .gainers-losers-table thead th {
        padding-bottom: 0.65rem;
        padding-top: 0.65rem;
    }

/* ============================================
   MARKET FOCUS ITEMS
   ============================================ */
.market-focus-item {
    background: var(--surface-panel);
    border: 1px solid var(--border-data);
    height: auto;
    overflow: hidden;
    padding: 1rem;
}

.market-focus-symbol {
    color: var(--text-strong);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
}

.market-focus-price {
    color: var(--text-strong);
    font-family: 'Satoshi', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.market-focus-change {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
}

.market-focus-chart-empty {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.market-focus-chart {
    aspect-ratio: 10 / 3;
    display: flex;
    align-items: center;
    height: auto;
}

    .market-focus-chart .placeholder,
    .market-focus-chart-empty,
    .market-focus-sparkline {
        width: 100%;
    }

.market-focus-symbol-placeholder,
.market-focus-change-placeholder {
    width: 4.5rem;
}

.market-focus-chart-placeholder {
    width: 100%;
}

.market-focus-sparkline {
    display: block;
}

.market-focus-sparkline-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 0.8px;
}

.market-focus-sparkline-area {
    fill: currentColor;
    opacity: 0.14;
}

.market-focus-sparkline-baseline {
    opacity: 0.55;
    stroke: currentColor;
    stroke-dasharray: 3 3;
    stroke-width: 0.6px;
}

/* ============================================
   STOCK COMPANY
   ============================================ */
.stock-company-description {
    color: var(--text-strong);
    font-size: 0.96rem;
    line-height: 1.65;
    overflow: hidden;
}

    .stock-company-description.is-collapsed {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }

    .stock-company-description p {
        margin-bottom: 0;
    }

#stock_chart_loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-panel);
}

    #stock_chart_loading.d-none {
        display: none !important;
    }

/* ============================================
   HOMEPAGE HERO
   ============================================ */
.card-kicker,
.metric-label {
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-title-section {
    margin-bottom: 1rem;
    color: var(--text-strong);
}

/* ============================================
   METRIC CARDS
   ============================================ */
.metric-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--bs-border-radius-lg);
    background-color: var(--surface-panel);
}

.metric-card--primary {
    background-color: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle) !important;
}

.metric-card--success {
    background-color: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle) !important;
}

.metric-card--info {
    background-color: var(--bs-info-bg-subtle);
    border-color: var(--bs-info-border-subtle) !important;
}

.metric-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-strong);
}

.metric-value--sm {
    font-size: 1.12rem;
}

/* ============================================
   COMPARISON PANEL
   ============================================ */
.comparison-panel {
    padding: 1.5rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--bs-border-radius-lg);
    background: var(--surface-muted);
}

    .comparison-panel p:last-child {
        margin-bottom: 0;
    }

.table-loading-row td {
    padding: 1.25rem !important;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
}

.table-status-text {
    font-size: 0.95rem;
}

.calc-table {
    margin-bottom: 0;
}

    .calc-table thead th {
        background: var(--surface-muted);
        color: var(--text-strong);
        border-bottom-color: var(--border-soft);
        font-size: 0.86rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .calc-table tbody td {
        vertical-align: middle;
    }

/* ============================================
   FORMS / BUTTONS
   ============================================ */
.submit-row {
    display: grid;
    margin-top: 1.5rem;
}

.submit-row--start {
    justify-content: start;
}

.submit-btn {
    min-width: 12rem;
    font-weight: 700;
}

.tool-result-loading-body {
    min-height: 180px;
}

.graph-tab-break,
.graph-tab-separator {
    flex-basis: 100%;
    margin: 0;
    padding: 0;
}

.graph-tab-break {
    height: 0;
}

.graph-plot {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.explanation-text {
    background-color: var(--surface-muted);
    color: var(--text-strong);
    font-family: var(--bs-font-monospace);
    font-size: 0.85rem;
    white-space: pre-line;
}

.btn,
.form-control,
.form-select,
.input-group-text {
    border-radius: var(--bs-border-radius);
}

.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-outline-secondary {
    border-color: var(--border-strong);
    color: var(--text-strong);
}

    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus-visible {
        background-color: var(--surface-muted);
        border-color: var(--text-muted);
        color: var(--text-strong);
    }

.form-control,
.form-select,
.input-group-text {
    border-color: var(--border-soft);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 0.16rem rgba(var(--bs-primary-rgb), 0.10);
    }

.btn-primary:hover,
.btn-primary:focus-visible {
    border-color: transparent;
    background-color: var(--brand-primary-hover);
}

/* ============================================
   LIST GROUPS
   ============================================ */

.list-group-item {
    border-color: var(--border-soft);
}

.list-group-item-action {
    color: var(--text-strong);
}

    .list-group-item-action:hover,
    .list-group-item-action:focus {
        background-color: var(--surface-muted);
    }

.table,
.list-group {
    --bs-list-group-border-radius: var(--bs-border-radius-lg);
}

    .table > :not(caption) > * > * {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
        border-bottom-color: var(--border-data);
    }

    .table thead th {
        background-color: #f7f8fa;
        color: var(--text-strong);
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

        .table thead th .btn.btn-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 0.1rem !important;
            margin-top: 0.12rem !important;
            line-height: 1;
            text-decoration: none !important;
            border-bottom: 0 !important;
            box-shadow: none !important;
        }

        .table thead th .fa-question-circle {
            font-size: 0.92em;
            vertical-align: middle;
        }

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    padding: 0;
}

.theme-toggle-btn,
.go-to-top {
    background-color: var(--surface-panel) !important;
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-card);
}

    .theme-toggle-btn:hover,
    .theme-toggle-btn:focus-visible,
    .go-to-top:hover,
    .go-to-top:focus-visible {
        background-color: var(--surface-muted) !important;
        border-color: var(--border-strong) !important;
    }

.theme-toggle-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.icon-sun {
    padding-left: 1px;
}

.icon-moon {
    padding-left: 2px;
}

/* ============================================
   TICKER / STOCKS
   ============================================ */
.ticker-score-box,
.ticker-score-chip {
    border: 1px solid rgba(26, 86, 219, 0.15);
    border-radius: var(--bs-border-radius-lg);
    background: var(--brand-primary-subtle);
    color: var(--text-strong);
}

.ticker-score-box {
    min-width: 96px;
    padding: 0.75rem 1rem;
    text-align: center;
}

.ticker-score-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.ticker-score-label,
.ticker-metric-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ticker-score-chip {
    min-width: 80px;
    padding: 0.55rem 0.8rem;
    text-align: center;
    font-weight: 700;
}

.ticker-metric {
    height: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--bs-border-radius-lg);
    background: var(--surface-panel);
}

/* ============================================
   SIDEBAR
   ============================================ */
.tool-sidebar-sticky {
    position: sticky;
    top: 110px;
    z-index: 1;
}

/* ============================================
   GO TO TOP
   ============================================ */
.go-to-top {
    bottom: 1.5rem;
    display: grid;
    height: 40px;
    line-height: 1;
    opacity: 0;
    place-items: center;
    position: fixed;
    right: 1.8rem;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    width: 40px;
    z-index: 1020;
}

    .go-to-top i {
        transform: translateY(-2px);
    }

    .go-to-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media (min-width: 992px) {
    .site-navbar-top {
        width: auto;
        flex: 0 0 auto;
        margin-right: auto;
    }

    .site-navbar .site-brand-link {
        flex: 0 1 auto;
    }

    .site-navbar .navbar-collapse {
        justify-content: flex-end;
    }

    .site-navbar-actions {
        margin-left: 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .site-navbar {
        position: relative;
    }

    .site-navbar-inner {
        position: static;
    }

    .site-navbar-top {
        flex-wrap: nowrap;
    }

    #logo {
        height: 36px;
        width: 36px;
    }

    .site-brand-link {
        font-size: 1rem;
    }

    .site-navbar .site-brand-link .h4 {
        font-size: 1.05rem !important;
        margin-bottom: 0.2rem !important;
    }

    .site-navbar .site-brand-link .small {
        font-size: 0.9rem;
    }

    .site-navbar .navbar-collapse {
        display: block;
        position: absolute;
        top: calc(100%);
        left: auto;
        right: 0;
        padding: 1rem;
        background-color: #ffffff;
        border: 1px solid var(--border-soft);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
        text-align: right;
        align-items: flex-end;
        z-index: 1040;
        height: calc(100vh - 100%);
        max-height: calc(100vh - 100%);
        min-width: 13rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.2s ease, visibility 0.2s ease;
        visibility: hidden;
        width: auto;
    }

        .site-navbar .navbar-collapse.collapsing,
        .site-navbar .navbar-collapse.show {
            display: block;
            height: calc(100vh - 100%) !important;
            transform: translateX(0);
            visibility: visible;
        }

    .site-navbar .navbar-nav {
        width: 100%;
        align-items: flex-end;
    }

        .site-navbar .navbar-nav .nav-link {
            text-align: right;
        }

    .site-navbar-actions {
        padding-top: 0.25rem !important;
        padding-right: 0.75rem !important;
    }

    .tool-sidebar-sticky {
        position: static;
    }

    .submit-row--start {
        justify-content: stretch;
    }
}

@media (max-width: 767.98px) {
    .stock-chart-canvas {
        height: 300px;
    }

    .stock-quote-panel-primary {
        border-right: 1px solid var(--border-soft);
    }

    .stock-quote-panel-secondary {
        border-left: 0;
        border-top: 0;
        padding-top: 0;
    }

    .market-movers-change-cell,
    .market-movers-price-cell,
    .gainers-losers-table th:nth-child(3),
    .gainers-losers-table th:nth-child(4) {
        text-align: right;
    }
}

@media (max-width: 575.98px) {
    .graph-plot {
        height: 400px;
    }
}

@media (min-width: 768px) {
    .footer-newsletter-submit {
        width: auto;
    }
}
