.ipo-card {
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.35rem 0.675rem rgba(13,38,59,0.08);
}

.ipo-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

/* Text */
.ipo-title {
    margin-bottom: 0.35rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.ipo-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Info rows */
.ipo-info-row {
    padding: 1.25rem 1.5rem;
}

.ipo-info-row p {
    margin-bottom: 0.75rem;
}

/* Details panel */
.ipo-detail-item .small {
    color: #6c757d;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.badge {
    font-size: 1em !important;
    padding: .35em .65em !important;
    border-radius: .25rem !important;
}

/* Toggle button */
.accordion-button.additional-toggle {
    width: fit-content !important;
    max-width: 100%;
    margin: 0 1.5rem 1rem;
    padding: 0.8rem 1.1rem;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid #d2d8e2;
    border-radius: 0.75rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    box-shadow: none;
    white-space: nowrap;
}

.accordion-button.additional-toggle::after {
    display: none !important;
}

.accordion-button.additional-toggle:hover,
.accordion-button.additional-toggle:focus {
    background-color: #eef3ff;
    border-color: #b8c7f1;
    color: #0f172a;
}

.toggle-icon {
    transition: transform 0.18s ease;
}

.accordion-button.additional-toggle.open .toggle-icon,
.accordion-button.additional-toggle:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

/* Detail card */
.ipo-detail-card {
    margin-top: .75rem;
    padding: 1rem 1.25rem;
    background: #f0f4ff;
    border: 1px solid #c8caee;
    border-radius: 8px;
    font-size: 0.875rem;
}

.summary-note {
    color: #6c757d;
    font-size: 0.95rem;
}
.pagination-sm .page-link {
    COLOR: #3B3839 !important;
}
.noDataFound {
    padding-bottom:15px !important;
}

/* IPO List - Expand content rightward into empty space, sidebar unchanged */
.ipo-list-card {
    margin-right: -120px !important;
    width: calc(100% + 120px);
}

/* Tablet and Mobile Responsive */
@media (max-width: 991.98px) {
    .ipo-list-card {
        margin-right: 0 !important;
        width: 100% !important;
    }
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .ipo-list-card {
        margin-right: 0 !important;
        width: 100% !important;
        overflow: hidden;
        border-radius: 8px;
    }

    .ipo-list-card .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
        padding: 12px 16px;
    }

    .ipo-list-card .card-header h5 {
        font-size: 0.9rem;
        word-break: break-word;
        white-space: normal;
    }

    .ipo-list-card .card-body {
        padding: 12px 16px;
    }

    .ipo-list-card .card-body .row.text-center {
        text-align: left !important;
        --bs-gutter-x: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .ipo-list-card .card-body .row.text-center.border-bottom {
        border-bottom: 1px solid #dee2e6 !important;
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
    }

    .ipo-list-card .card-body .row.text-center > [class*="col"] {
        padding: 8px 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .ipo-list-card .card-body .row.text-center > [class*="col"] .text-muted {
        margin-bottom: 2px;
    }

    .ipo-list-card .card-body .row.text-center > [class*="col"] h5 {
        margin: 0;
        font-size: 1.1rem;
    }

    .ipo-list-card .card-body h6 {
        margin-top: 0.5rem;
    }

    .ipo-list-card .card-body .row .col-md-4 p,
    .ipo-list-card .card-body .row .col-md-3 p,
    .ipo-list-card .card-body .row .col-md-6 p {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    /* General card fix for mobile */
    .card {
        margin-right: 0 !important;
    }

    /* IPO Card (Press Release page) */
    .ipo-card {
        margin-right: 0 !important;
    }

    .ipo-card-header {
        padding: 1rem !important;
    }

    .ipo-card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .ipo-card-header h5 {
        font-size: 0.95rem;
        word-break: break-word;
    }

    /* Container padding */
    .container.my-4 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Pagination wrap */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .wrapper.py-4 {
        text-align: center;
    }

    .wrapper.py-4 nav {
        float: none !important;
    }

    .pagination .page-item {
        margin-bottom: 4px;
    }
}


/* IPO Status Badge Styles */
.badge-upcoming {
    background-color: #fff;
    color: #0909B7;
    border: 2px solid #0909B7;
    font-weight: 900;
    font-size: 0.65em;
    text-transform: uppercase;
    padding: 0.4em 1em !important;
    border-radius: 50px !important;
}

.badge-open {
    background-color: #00701C;
    color: #fff;
    font-weight: 900;
    font-size: 0.65em;
    text-transform: uppercase;
    padding: 0.4em 1em !important;
    border-radius: 50px !important;
}

.badge-closed {
    background-color: #3B3839;
    color: #fff;
    font-weight: 900;
    font-size: 0.65em;
    text-transform: uppercase;
    padding: 0.4em 1em !important;
    border-radius: 50px !important;
}

.badge-listed {
    background-color: #0909B7;
    color: #fff;
    font-weight: 900;
    font-size: 0.65em;
    text-transform: uppercase;
    padding: 0.4em 1em !important;
    border-radius: 50px !important;
}

.badge-cancelled {
    background-color: #E81449;
    color: #fff;
    font-weight: 900;
    font-size: 0.65em;
    text-transform: uppercase;
    padding: 0.4em 1em !important;
    border-radius: 50px !important;
}
.alert {
    padding-bottom: 15px !important;
}