.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: "Inter", 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 *****/


/**
  Translation Editing
 */
.ts-edt-toggle-sec {
    display: grid;
    margin-left: 8px;
}

.ts-edt-toggle-label {
    top: 8px;
    font-size: 13px;
    font-weight: 500;
    position: relative;
}

.ts-edt-toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin: 0 auto;
}

.ts-edt-toggle-switch .ts-edt-toggle {
    display: none;
}

.ts-edt-toggle-slider {
    position: absolute;
    cursor: pointer;
    background-color: #CCC;
    border-radius: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.ts-edt-toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white-color);
    border-radius: 50%;
    transition: 0.4s;
}

.ts-edt-toggle-switch input:checked + .ts-edt-toggle-slider {
    background-color: #E74C3C;
}

.ts-edt-toggle-switch input:checked + .ts-edt-toggle-slider:before {
    transform: translatex(22px);
}

.ts-edt-highlight {
    z-index: 1;
    pointer-events: fill !important;
    background-color: #C2FFBF !important;
}

.ts-edt-prod-highlight {
    background-color: #FFBFC0 !important;
}

.iis-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    box-sizing: border-box;
    justify-content: center;
}

.iis-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /*0 5px 15px*/
    overflow: hidden;
    z-index: 1000;
}

.iis-modal-header {
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #DDD;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iis-modal-body {
    max-height: 300px;
    overflow-y: auto;
}

.iis-modal-footer {
    padding: 12px;
    text-align: right;
    border-top: 1px solid #DDD;
}

.ts-edt-popup {
    z-index: 10000;
    margin-top: -4px;
    overflow: hidden;
    min-width: 350px;
    max-width: 600px;
    position: absolute;
    border-radius: 10px;
    line-height: initial;
    opacity: 1 !important;
    background: var(--white-color);
    color: var(--dark-color) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.ts-edt-popup-footer {
    padding: 12px;
    text-align: right;
    border-top: 1px solid #DDD;
}

.iis-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.iis-btn-primary {
    color: var(--white-color);
    background: var(--error-color);
}

.iis-btn-close {
    background: #F0F0F0;
}

.ts-edt-table {
    width: 100%;
    border-collapse: collapse;
}

.ts-edt-table thead {
    border-bottom: 1px solid #EEE;
}

.ts-edt-table th, .ts-edt-table td {
    font-size: 14px;
    text-align: left;
    padding: 15px 10px;
}

.ts-edt-table th {
    background: #F6F4FF;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.ts-edt-table tr:nth-child(even) {
    background: #FAFAFA;
}

.ts-edt-table td[contenteditable="true"] {
    background: #FFF9C4;
    outline: none;
}

.ts-modal-btn {
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 10px;
}

/* END - Translation Editing */



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

    .ts-edt-toggle-label {
        top: 0;
    }

}

@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) *****/
}
