.text-center {
    text-align: center;
}

/* Hide Payment History Table on Page Load */
.balance-sheet-container {
    transition: all 0.3s ease-in-out;
}

/* Smooth Fade-in Effect */
.balance-sheet-container.show {
    display: block;
    animation: fadein 0.5s ease-in-out;
}

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

/* Table Styles */
.balance-sheet-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.balance-sheet-table thead {
    background: #DDD;
    color: #333;
    text-align: left;
    font-weight: 600;
}

.balance-sheet-table th, .balance-sheet-table td {
    padding: 12px;
    border-bottom: 1px solid #DEE2E6;
    text-align: left;
    font-size: 14px;
}

/* Alternating Row Colors */
.balance-sheet-table tbody tr:nth-child(odd) {
    background: #F2F2F2;
}

/* Amount Styles */
.negative-amount {
    color: #DC3545;
    font-weight: bold;
}

.positive-amount {
    color: #28A745;
    font-weight: bold;
}

/***** Wallet -> Store Credit - (START) container & table styles under #store_credit_iis *****/
#store_credit_iis {
    font-family: 'Helvetica Neue', helvetica, arial, sans-serif;
}

#store_credit_iis .cart-scroll {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

#store_credit_iis .data-table {
    width: 100%;
    border-collapse: collapse;
}

/* Table header */
#store_credit_iis .data-table thead {
    background-color: #F7F7F7;
    border-bottom: 2px solid #CCC;
}

#store_credit_iis .data-table thead th {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    color: #FFF2EC;
    border-right: 1px solid #DDD;
}

#store_credit_iis .data-table thead th:last-child {
    border-right: none;
}

/* Table body */
#store_credit_iis .data-table tbody td {
    padding: 12px 15px;
    font-size: 13px;
    color: #555;
    border-right: 1px solid #DDD;
    border-bottom: 1px solid #DDD;
    vertical-align: top;
}

#store_credit_iis .data-table tbody td:last-child {
    border-right: none;
}

#store_credit_iis .data-table tbody tr:nth-child(even) {
    background-color: #F9F9F9;
}

#store_credit_iis .data-table tbody tr:hover {
    background-color: #F1F1F1;
}

/* Table wrapper */
#store_credit_iis .stylis-table-2 {
    border: 1px solid #E2E2E2;
    border-radius: 5px;
    overflow: hidden;
}

/* Price styling */
#store_credit_iis .credit-table .price {
    font-weight: bold;
    color: #2C3E50;
    text-align: center;
    display: block;
    font-size: 13px;
    float: none;
}

#store_credit_iis .credit-table .credit {
    color: #008000;
}

#store_credit_iis .credit-table .debit {
    color: #F00;
}

/* Diff text styling (scoped) */
#store_credit_iis .diff-positive,
#store_credit_iis .diff-negative,
#store_credit_iis .diff-zero,
#store_credit_iis .ledger-total-balance {
    font-size: 12px;
    text-align: center;
    display: block;
    padding-top: 25px;
    clear: both;
}

#store_credit_iis .diff-positiveBottom {
    position: relative;
    top: 16px !important;
}

#store_credit_iis .ledger-total-balance,
#store_credit_iis .transition_id {
    color: #A2A2A2 !important;
}

#store_credit_iis .diff-positive {
    color: #008000;
}

#store_credit_iis .diff-negative {
    color: #F00;
}

#store_credit_iis .diff-zero {
    color: #000;
}

/* Hide Action column */
#store_credit_iis .hidden-action {
    display: none !important;
}

#store_credit_iis .diff-title {
    padding-top: 12px;
    font-weight: bold;
    color: #A2A2A2;
    font-size: 12px;
}

/* For cells that include diff breakdown, add extra bottom padding */
#store_credit_iis .cell-with-diff {
    position: relative;
    padding-bottom: 40px; /* Adjust to reserve enough space */
    box-sizing: border-box;
}

#store_credit_iis .info-icon-container {
    position: relative; /* so the tooltip is positioned relative to this container */
    display: inline-block;
    margin-left: 5px; /* some spacing before the icon, optional */
}

#store_credit_iis .info-icon {
    cursor: pointer;
    font-size: 1em; /* scale the icon, if you like */
    color: #2A2323; /* icon color */
}

/* Hide the tooltip by default */
#store_credit_iis .info-tooltip {
    visibility: hidden;
    width: 250px; /* or auto */
    background: #333;
    color: #FFF;
    text-align: left;
    padding: 10px;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 120%; /* slightly below the icon */
    z-index: 999; /* so it stays on top */
}

/* Show the tooltip on hover */
#store_credit_iis .info-icon-container:hover .info-tooltip {
    visibility: visible;
}

/***** Wallet -> Store Credit - (END) container & table styles under #store_credit_iis *****/

/* Responsive Table for Mobile */
@media screen and (max-width: 768px) {

    .balance-sheet-table thead {
        display: none;
    }

    .balance-sheet-table tbody, .balance-sheet-table tr, .balance-sheet-table td {
        display: block;
        width: 100%;
    }

    .balance-sheet-table tr {
        margin-bottom: 15px;
        border: 1px solid #DDD;
        border-radius: 8px;
        overflow: hidden;
        padding: 10px;
        background: #FFF;
    }

    .balance-sheet-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .balance-sheet-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
        color: #495057;
        text-align: left;
    }

    /***** Wallet -> Store Credit - (START) *****/
    #store_credit_iis .data-table thead th,
    #store_credit_iis .data-table tbody td {
        padding: 10px;
        font-size: 12px;
    }

    /***** Wallet -> Store Credit - (END) *****/
}
