/* Pre-market adjustments on top of the School ERP theme. */

.page-content-full .content-wrapper {
    width: 100%;
    max-width: none;
}

.premarket-analysis-screen {
    min-height: calc(100vh - 8.5rem);
}

.premarket-analysis-company {
    font-weight: 600;
    line-height: 1.3;
}

.premarket-analysis-symbol {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rudocode-primary, #BF1914);
}

.badge.strength-very-strong {
    background-color: #0f766e;
    color: #fff;
}

.badge.strength-strong {
    background-color: #198754;
    color: #fff;
}

.badge.strength-weak {
    background-color: #ffc107;
    color: #111;
}

.badge.strength-high-risk {
    background-color: #BF1914;
    color: #fff;
}

.premarket-analysis-move {
    font-weight: 700;
    line-height: 1.3;
}

.premarket-analysis-move .pm-up,
.premarket-analysis-move .pm-down {
    font-weight: 700 !important;
}

.premarket-analysis-move-price {
    display: block;
    margin-top: 0.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.table thead th a.column-sort,
.table thead th button.column-sort {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.table thead th button.column-sort {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.table thead th.text-end a.column-sort,
.table thead th.text-end button.column-sort {
    width: 100%;
    justify-content: flex-end;
}

.table thead th a.column-sort:hover {
    color: #111;
}

.table thead th a.column-sort .ph-caret-up-down {
    opacity: 0.35;
}

.company-subname {
    display: block;
    max-width: 18rem;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.3;
    color: #6c757d;
    white-space: normal;
}

.symbol-company {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.125rem;
}

.symbol-company .company-subname {
    display: inline;
    max-width: 16rem;
    margin-top: 0;
}

.table td:has(.company-subname) {
    vertical-align: top;
}

.content .card {
    border: 0;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
    background: #fff;
}

.content .card > .card-header,
.list-toolbar {
    background: transparent;
    border-bottom: 1px solid #e5e7eb;
}

.list-toolbar {
    padding: 0.875rem 1.25rem;
}

.scanner-page h4 {
    font-size: 1.05rem;
}

.scanner-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.85rem;
    color: #52525b;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.scanner-stats strong {
    color: #18181b;
    font-weight: 600;
}

.scanner-page .scanner-filters {
    border-bottom: 0;
}

.scanner-page .table {
    margin-bottom: 0;
}

.scanner-page .table > :not(caption) > * > * {
    padding: 0.4rem 0.65rem;
}

[data-ajax-list].is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.sidebar .nav-sidebar .nav-link {
    color: #3f3f46;
}

.sidebar .nav-sidebar .nav-link:hover {
    color: #111111;
}

.pm-up {
    color: #157347 !important;
    font-weight: 600;
}

.pm-down {
    color: #BF1914 !important;
    font-weight: 600;
}

.news-table-scroll.table-sticky {
    overflow: auto;
    max-height: calc(100vh - 12rem);
}

.news-table-scroll > table.table-sticky-actions {
    border-collapse: separate;
    border-spacing: 0;
}

.news-table-scroll > table.table-sticky-actions > thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #fff;
    box-shadow: inset 0 -1px 0 #e5e7eb;
}

.news-table-scroll > table.table-sticky-actions > thead th:last-child {
    position: sticky !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 3;
    background-color: #fff !important;
    white-space: nowrap;
}
