
root {
    --positive-gainers: #14b822 !important;
    --negative-losers: #fd4444 !important;
}

/* Wrapper Box */
.marketscanData {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

/* Table Base */
table.table.marketscanTable {
    width: 100%;
    border-collapse: collapse;
}

.positive-gainers {
    color: #14b822 !important;
}

.negative-losers {
    color: #fd4444 !important;
}

/* Table Heading */
.marketscanTable th {
    vertical-align: middle !important;
    padding: 10px 10px;
    background-color: #002955;
    border-width: 1px;
    border-color: #8a8a8e;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

table.table.marketscanTable thead tr th {
    padding-bottom: 10px;
}

/* Sticky First Column Header */
table.table.marketscanTable thead tr th:first-child {
    padding-left: 15px;
    width: 350px;
    position: sticky;
    left: -1px;
    z-index: 1;
    background-color: #002955;
}

table.table.marketscanTable tbody tr td:first-child {
    padding-left: 15px;
    width: 350px;
    position: sticky;
    left: -1px;
    z-index: 1;
    background-color: #fff;
}

/* Table Cells */
.marketscanTable td {
    color: #000;
    padding: 10px 15px;
    border: 1px solid #ddd;
    vertical-align: middle;
    font-weight: 500;
    font-size: 14px;
    line-height: normal;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover row background */
.marketscanTable tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.data-source,
.last-updated,
.disclaimer-box {
    margin-top: 20px;
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
}

table.marketscanTable thead > tr > th.sorting:after,
table.marketscanTable thead > tr > th.sorting:before {
    color: #ffff !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .marketscanTable {
        display: block;
        overflow-x: auto;
    }

    .marketscanTable th,
    .marketscanTable td {
        white-space: nowrap;
    }
}

/* Scope everything under .gainers-table to avoid conflicts */
.gainers-table table.table thead tr th,
.gainers-table table.table tbody tr td {
    min-width: 180px;
    max-width: 200px;
    text-wrap: balance;
    vertical-align: middle;
}

/* Header */
.gainers-table table.table thead tr th {
    background-color: #002955;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center !important;
}

/* Data cells */
.gainers-table table.table tbody tr td {
    background-color: #fff;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    color: #000;
    padding: .5rem .4rem;
    border: 1px solid #e7e1e1;
    vertical-align: middle;
    text-align: center;
}

/* Sticky first column */
.gainers-table table.table tbody tr td:first-child,
.gainers-table table.table thead tr th:first-child {
    padding-left: 15px;
    width: 350px;
    position: sticky;
    left: -1px;
    z-index: 2;
    background: #fff;
}

/* Fix DataTables overridden alignment */
.gainers-table table.dataTable thead th.sorting,
.gainers-table table.dataTable thead th.sorting_asc,
.gainers-table table.dataTable thead th.sorting_desc {
    text-align: center !important;
}

/* Extra padding for sorting arrow */
.gainers-table table.dataTable thead th {
    padding-right: 20px !important;
}

/* Hover row */
.gainers-table table.table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

#update-time {
    color: #fff;
}

.section-title h1 {
    color: #fff;
}

.screenerdetail-title ul {
    margin-bottom: 0 !important;
    color: #fff;
}

table.dividend_table {
    border: solid 1px #e3e3e3;
}

table.dividend_table thead {
    background: #3a2d7d;
    --bs-table-bg: #3a2d7d;
    color: #fff;
    vertical-align: middle;
}

table#dividend_table tr th {
    background-color: #1b1d3b;
}

table.dividend_table tbody tr td {
    border-bottom: solid 1px #e3e3e3;
    font-size: 14px;
    font-weight: 600;
}

table.dividend_table thead tr th {
    position: relative;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

table.dividend_table thead tr th span.arrow::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    display: block;
    border-top: 8px solid #1fe1e8;
    margin-top: 2px;
}

table.dividend_table thead tr th span.arrow::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    display: block;
    border-bottom: 8px solid #1fe1e8;
    margin-top: -9px;
}


.load-more-btn {
  margin: 20px auto;
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
   display: flex;
    justify-content: center;
    align-items: center;
}

.load-more-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.load-more-btn:active {
  transform: scale(0.98);
}
.dataTables_paginate ̵̵{
    position: absolute;
    bottom: 0px;
    right: 0;
}
div#stockslist_table_wrapper {
    margin-bottom: 50px;
}
@-webkit-keyframes blinker {
  from {opacity: 1.0;}
  to {opacity: 0.5;}
}
.blinks{
	text-decoration: blink;
	-webkit-animation-name: blinker;
	-webkit-animation-duration: 0.8s;
	-webkit-animation-iteration-count:infinite;
	-webkit-animation-timing-function:ease-in-out;
	-webkit-animation-direction: alternate;
}
ul.historicalcardsul {
    padding-left: 0px;
    list-style: none;
    text-align: center;
}
ul.historicalcardsul li {
    float: none;
    width: 133px;
    border: 1px solid #d1c9c9;
    text-align: center;
    margin: 5px;
    padding: 7px;
    display: inline-block;
}