body.modal-open {
    overflow: hidden;
}
/* Loader Styles */
.cardsContainer {
    position: relative;
    min-height: 150px;
    /* Ensures container doesn't collapse while loading */
}

.loader-wrapper {
    grid-column: 1 / -1;
    /* Spans across all grid columns */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #245D99;
    /* Matches your theme color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Optional: Fade effect for cards */
.loading {
    opacity: 0.5;
    pointer-events: none;
    /* Prevent multiple clicks during load */
}

.main_cont {
    max-width: 1275px;
    margin-left: auto;
    margin-right: auto;
}

.main_cont .viewmore {
    text-align: center;
    padding: 15px 15px 0px 15px;
}

.main_cont .viewmore a {
    display: inline-block;
    font: 14px 'robotoregular', sans-serif;
    color: #30659f !important;
    outline: 0 !important;
    text-decoration: none !important;
}

.main_cont .viewarw {
    display: inline-block;
    background: url(https://img-d01.moneycontrol.co.in/images/responsive/pf/sprite_styleguide.png) -11px -9px no-repeat;
    width: 9px;
    vertical-align: middle;
    height: 10px;
}

.oi_sec_title {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 20px;
    font: 24px 'latoblack', sans-serif;
    text-transform: uppercase;
    color: #2f669e;
    text-align: center;
    font-weight: 600;
}

.oi_sec_title:before {
    display: inline-block;
    position: absolute;
    content: "";
    width: 60px;
    height: 4px;
    background: #f19f02;
    bottom: 0px;
    left: 50%;
    margin-left: -30px;
}

.tabsHeader {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #D6D6D6;
    justify-content: space-between;
}

.tabsHeader .tabs {
    display: flex;
    align-items: center;
}

.tabsHeader .tabBtn {
    padding: 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #525252;
}

.tabsHeader .tabBtn:focus-visible {
    outline: none;
}

.tabsHeader .tabBtn.active {
    font-weight: 900;
    color: #245D99;
    position: relative;
}

.tabsHeader .tabBtn.active::before {
    position: absolute;
    content: '';
    height: 3px;
    width: 100%;
    background: #245D99;
    bottom: -1px;
    left: 0;
}

.dateToggleWrapper {
    display: flex;
    align-items: center;
    gap: 23px;
}

.dateWrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dateWrapper .label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #666666;
}

.dateWrapper .inputWrapper {
    position: relative;
}

.dateWrapper .inputWrapper .dateSelect {
    min-width: 120px;
    padding: 9px 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    border: 1px solid #d6d6d6;
    border-radius: 3px;
    cursor: pointer;
    box-sizing: border-box;
    color: #666666;
}

.dateWrapper .inputWrapper .dateSelect::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.dateWrapper .inputWrapper .arrowWrapper {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}

.dateWrapper .inputWrapper .arrowUp,
.dateWrapper .inputWrapper .arrowDown {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #D6D6D6;
    border-radius: 17px;
    padding: 10px 17px;
    background: #ffffff;
}

.toggle-wrapper .toggle-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    color: #8A8B8D;
    transition: font-weight 0.2s ease;
}

.toggle-wrapper .toggle-label.active {
    font-weight: 600;
    color: #000000;
}

.toggle-wrapper .toggle-switch {
    position: relative;
    width: 36px;
    height: 14px;
    background: #595970;
    border-radius: 24px;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.toggle-wrapper .toggle-switch .toggle-knob {
    position: absolute;
    top: -4px;
    left: -2px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    transition: transform 0.2s ease;
}

.toggle-wrapper.active .toggle-switch .toggle-knob {
    transform: translateX(17px);
}

.tabContent {
    padding: 20px 0 40px;
}

.tabPanel {
    display: none;
}

.tabPanel.active {
    display: block;
}

.cardsContainer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px 25px;
    justify-content: space-between;
}

.oiTrendCard {
    box-shadow: 0px 0px 6px 0px #00000029;
    border-radius: 6px;
    background: #ffffff;
    display: block;
    /* cursor: pointer; */
}

.oiTrendCard:hover {
    text-decoration: none;
}


.oiTrendCard .topWrapper {
    display: flex;
}

.oiTrendCard .topWrapper .lhs {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.oiTrendCard .topWrapper .statusContainer {
    margin-bottom: 15px;
}

.oiTrendCard .infoTitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 2px;
    display: inline-block;

}

.oiTrendCard .company {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: #000000;
    margin: 0px;
}

.oiTrendCard .info {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    color: #000000;
    margin: 0px;
}

.oiTrendCard .interestPrice {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.oiTrendCard .positive {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: #39BC11;
    margin-top: 3px;
    display: inline-block;
}

.oiTrendCard .negitive {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: #F83102;
    margin-top: 3px;
    display: inline-block;
}

.oiTrendCard .topWrapper .rhs {
    display: flex;
    align-items: center;
    border-radius: 0 6px 0 0;
    max-width: 135px;
    width: 100%;
}

.oiTrendCard .rhs .nameContainer {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: #ffffff;
    padding: 20px;
    margin: 0px;
}

.oiTrendCard .rhs .iconContainer {
    border-left: 1px solid #ffffff5c;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 0 6px 0 0;
    cursor: pointer;
}

.oiTrendCard .rhs .iconContainer svg {
    fill: none;
}


.oiTrendCard .topWrapper .rhs {
    display: flex;
    align-items: stretch;
    border-radius: 0 6px 0 0;
    max-width: 135px;
    width: 100%;
    overflow: hidden;
}

.oiTrendCard .rhs .nameContainer {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    color: #ffffff;
    padding: 10px;
    margin: 0px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.oiTrendCard .rhs .iconContainer {
    border-left: 1px solid #ffffff5c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    flex-shrink: 0;
    width: 35px;
    box-sizing: border-box;
}

.oiTrendCard .rhs.oi_green {
    background: #00B050;
}

.oiTrendCard .rhs.oi_red {
    background: #FF0000;
}

.oiTrendCard .rhs.oi_blue {
    background: #0011D9;
}

.oiTrendCard .rhs.oi_orange {
    background: #E26B0A;
}

.oiTrendCard .rhs.oi_yellow {
    background: #CB9504;
}

.oiTrendCard .rhs.oi_grey {
    background: #6B7280;
}

.oiTrendCard .bottomWrapper {
    padding: 10px 5px;
    display: flex;
    gap: 4px;
    justify-content: space-between;
    border-top: 0.68px solid #CCCCCC;
    overflow-x: auto;
}

.oiTrendCard .timeBadge {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
    color: #ffffff;
    border-radius: 3px;
    display: flex;
    align-items: stretch;
    min-width: 95px;
    flex: 1;
    overflow: hidden;
}

.oiTrendCard .timeBadge .badgeLhs {
    padding: 4px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    /* Subtle distinction for the time part */
    width: 35px;
    /* Fixed width for the time portion */
    flex-shrink: 0;
}

.oiTrendCard .timeBadge .badgeRhs {
    padding: 4px 5px;
    border-left: 0.5px solid #FFFFFF4D;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    /* Takes up the rest of the 95px */
    /* white-space: nowrap; */
    /* Prevents text from breaking into two lines */
    text-transform: capitalize;
}

.oiTrendCard .timeBadge.oi_green {
    background: #00B050;
}

.oiTrendCard .timeBadge.oi_red {
    background: #FF0000;
}

.oiTrendCard .timeBadge.oi_orange {
    background: #E26B0A;
}

.oiTrendCard .timeBadge.oi_blue {
    background: #0011D9;
}

.oiTrendCard .timeBadge.oi_yellow {
    background: #CB9504;
}

.oiTrendCard .timeBadge.oi_grey {
    background: #6B7280;
}

/* ================= OVERLAY ================= */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.overlay.close {
    opacity: 0;
}

/* ================= MODAL ================= */

.oimodal {
    max-width: 700px;
    width: 100%;
    background: #ffffff;
    border-radius: 10px 10px 0 0;
    padding-top: 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    position: relative;
}

.oimodal.open {
    transform: translateY(0);
}

.oimodal.close {
    transform: translateY(100%);
}

.oimodal::before {
    position: absolute;
    content: '';
    height: 4px;
    width: 30px;
    background: #cccccc;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

/* ================= HEADER ================= */

.modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px 16px;
}

.headingWrapper .subHeading {
    font-family: 'SF Compact Display', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    color: #666;
    display: block;
    margin-bottom: 6px;
}

.headingWrapper .companyTitle {
    font-family: 'SF Compact Display', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.closeBtn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* ================= TABS ================= */

.tabsContainer {
    width: 100%;
}

.modalTabsHeader {
    display: flex;
    border-bottom: 1px solid #dbdbdb;
}

.modalTabsHeader .tabBtn {
    width: 100%;
    padding: 10px;
    border: none;
    background: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.modalTabsHeader .tabBtn.active {
    font-weight: 700;
    color: #000;
}

.modalTabsHeader .tabBtn.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    background: #000;
}


.modalTabContent {
    padding: 0 25px;
    height: 350px;
    overflow: auto;
}

.tabPane {
    display: none;
}

.tabPane.active {
    display: block;
}


.ihTable {
    width: 100%;
    border-collapse: collapse;
}


.ihTable thead {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 9;
}

.ihTable thead tr {
    border-bottom: 1px solid #DBDBDB;
}

.ihTable thead tr th {
    padding: 10px;
    font-family: 'SF Compact Display', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    color: #666666;
    text-align: left;
}

.ihTable thead tr th:nth-child(2) {
    text-align: center;
}

.ihTable thead tr th:nth-child(3),
.ihTable thead tr th:last-child {
    text-align: right;
}


.ihTable .lhTbody tr {
    border-bottom: 1px solid #DBDBDB;
}

.ihTable .lhTbody tr td {
    padding: 10px;
    font-family: 'SF Compact Display', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: #000000;
}

.ihTable .lhTbody tr td:nth-child(3),
.ihTable .lhTbody tr td:last-child {
    text-align: right;
}


.ihTable .lhTbody tr td .trend {
    font-family: 'SF Compact Display', sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 10px;
    color: #ffffff;
    padding: 10px;
    width: 100px;
    border-radius: 3px;
    text-align: center;
    margin: auto;
}

.ihTable .lhTbody tr td .trend.oi_green {
    background: #00B050;
}

.ihTable .lhTbody tr td .trend.oi_red {
    background: #FF0000;
}

.ihTable .lhTbody tr td .trend.oi_orange {
    background: #E26B0A;
}

.ihTable .lhTbody tr td .trend.oi_blue {
    background: #0011D9;
}

.ihTable .lhTbody tr td .trend.oi_yellow {
    background: #CB9504;
}

.ihTable .lhTbody tr td .trend.oi_grey {
    background: #6B7280;
}

.ihTable .lhTbody tr td .value {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 12px;
    color: #000000;
    display: block;
    margin-bottom: 2px;
}

.ihTable .lhTbody tr td .positive {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    display: block;
    color: #39BC11;
}

.ihTable .lhTbody tr td .negitive {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    display: block;
    text-align: right;
    color: #F83102;
}


.ihTable .lhTbody tr .fullWidhCell {
    background: #F1F1F1;
}

.ihTable .lhTbody tr .previousDay {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ihTable .lhTbody tr .previousDay .name {
    font-family: 'SF Compact Display', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 14px;
    color: #666666;
}

.ihTable .lhTbody tr .previousDay .name .date {
    color: #010101;
}



@media all and (max-width:980px) {
    .cardsContainer {
        grid-template-columns: 1fr;
    }

    .ihTable thead tr th {
        padding: 10px 0;
        font-size: 12px;
        line-height: 12px;
    }

    .ihTable .lhTbody tr td {
        padding: 10px 0;
    }

    .ihTable .lhTbody tr td .trend {
        padding: 8px;
    }

    .ihTable .lhTbody tr td .value,
    .ihTable .lhTbody tr td .positive,
    .ihTable .lhTbody tr td .negitive {
        font-family: 'SF Compact Display', sans-serif;
    }

    .ihTable .lhTbody tr .previousDay .name {
        font-size: 12px;
        line-height: 12px;
    }

    .ihTable .lhTbody .fullWidhCell {
        padding: 8px 10px;
    }

    .modal::before {
        width: 40px;
    }

    .modalHeader {
        padding: 0 20px 15px;
    }

    .tabContent {
        padding: 0 15px;
    }

    .tabsHeader {
        display: block;
        border-bottom: none;
    }

    .tabsHeader .tabs {
        border-bottom: 1px solid #D6D6D6;
        margin-bottom: 10px;
    }

    .dateToggleWrapper {
        justify-content: end;
    }

    .dateWrapper .label {
        font-family: 'SF Compact Display', sans-serif;
        font-weight: 600;
    }

    .dateWrapper .inputWrapper .dateSelect {
        border: 1px solid #727177;
        padding: 7px 10px;
        font-family: 'SF Compact Display', sans-serif;
    }

    .toggle-wrapper {
        display: none;
    }

    .tabContent {
        padding: 15px 0 30px;
    }

    .cardsContainer {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .oiTrendCard {
        border-radius: 5px;
    }

    .oiTrendCard .topWrapper .statusContainer {
        margin-bottom: 11px;
    }

    .oiTrendCard .topWrapper .lhs {
        padding: 10px 15px;
    }

    .oiTrendCard .topWrapper .rhs {
        /* max-width: 119px; */
    }

    .oiTrendCard .bottomWrapper {
        padding: 8px 6px;
        gap: 4px;
    }

    .oiTrendCard .timeBadge {
        font-family: 'SF Compact Display', sans-serif;
        font-weight: 400;
        font-size: 11px;
        line-height: 11px;
    }

    .oiTrendCard .timeBadge .badgeLhs,
    .oiTrendCard .timeBadge .badgeRhs {
        padding: 6px;
    }
}