html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* Loader CSS */
.loader {
    border: 6px solid #e0e0e0;
    border-top: 6px solid #3498db;
    border-right: 6px solid #8e44ad;
    border-bottom: 6px solid #e67e22;
    border-left: 6px solid #27ae60;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.15);
    margin: 0 auto;
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
        box-shadow: 0 2px 12px rgba(52, 152, 219, 0.15);
    }
    50% {
        transform: rotate(180deg) scale(1.08);
        box-shadow: 0 4px 18px rgba(52, 152, 219, 0.22);
    }
    100% {
        transform: rotate(360deg) scale(1);
        box-shadow: 0 2px 12px rgba(52, 152, 219, 0.15);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.10); /* subtle white overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    box-shadow: 0 4px 32px 0 rgba(31, 38, 135, 0.12);
    border-radius: 0;
    transition: background 0.3s;
}
/* Modal Loading */
.modal .modal-body {
    position: relative;
}

    .modal .modal-body .loading-overlay {
        position: absolute;
    }

.card-footer {
    padding: 1.75rem 1.25rem !important;
    background-color: rgba(0,0,0,.03);
    border-top: 0 solid rgba(0,0,0,.125);
}

.page-item.active .page-link {
    z-index: 0 !important;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Custom styles for the Stripe Transactions page */

/* Add vertical alignment to table cells */
.table-vcenter td,
.table-vcenter th {
    vertical-align: middle !important;
}

/* Style for positive amounts (e.g., income) */
.amount-positive {
    color: #28a745; /* Bootstrap success green */
}

/* Style for negative amounts (e.g., expenses) */
.amount-negative {
    color: #dc3545; /* Bootstrap danger red */
}

/* Style for the 'no data' message in the table */
.no-data-message {
    padding: 30px 0;
    color: #6c757d; /* Muted text color */
    font-size: 1.1rem;
}

/* Style for sync button when it's syncing */
.btn-syncing {
    cursor: not-allowed;
    opacity: 0.8;
}

    .btn-syncing .fa-sync-alt {
        display: none; /* Hide icon when spinner is visible */
    }

/* =================================================================== */
/* == COMPLETE STYLES FOR Custom AdminLteSelect Component           == */
/* == Replace any previous styles for this component with this block. == */
/* =================================================================== */

/* 1. The main container for our component.
   'position: relative' is CRITICAL for positioning the clear button and arrow inside it.
*/
.adminlte-select-wrapper {
    position: relative;
    width: 100%;
    display: block; /* Ensures it takes up the full width of its parent column */
    vertical-align: top;
}

    /* 2. Style for the main input box */
    .adminlte-select-wrapper .form-control {
        width: 100%;
        background-color: #fff;
        border: 1px solid #aaa;
        border-radius: 4px;
        padding: 0.375rem 2.25rem 0.375rem 0.75rem; /* Make room for the arrow/clear button */
        line-height: 1.5;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }

    /* Make the input look and feel 'locked' when an item is selected */
    .adminlte-select-wrapper.has-selection-true .form-control[readonly] {
        cursor: default;
        background-color: #e9ecef;
    }

    /* 3. Focus style to mimic Select2's blue glow */
    .adminlte-select-wrapper .form-control:focus {
        border-color: #5897fb;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
        outline: 0;
    }

    /* 4. The dropdown arrow (pseudo-element) */
    .adminlte-select-wrapper::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #888;
        pointer-events: none;
    }

    /* Hide the arrow when an item is selected */
    .adminlte-select-wrapper.has-selection-true::after {
        display: none;
    }

    /* 5. The Clear Button ('x')
   'position: absolute' places it relative to the '.adminlte-select-wrapper'.
   This is the key to keeping it INSIDE the input area.
*/
    .adminlte-select-wrapper .clear-selection {
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        font-size: 1.4rem;
        font-weight: bold;
        color: #888;
        cursor: pointer;
        line-height: 1;
        padding: 0 5px;
        z-index: 2; /* Ensures it's clickable and appears above the input text */
        transition: color 0.15s ease;
    }

        .adminlte-select-wrapper .clear-selection:hover {
            color: #333;
        }

    /* 6. The dropdown panel and items (styles remain the same) */
    .adminlte-select-wrapper .dropdown-menu.show {
        border: 1px solid #aaa;
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        margin-top: 5px;
        border-top: 1px solid #aaa;
    }

    .adminlte-select-wrapper .dropdown-item {
        padding: 6px 12px;
        font-weight: normal;
        color: #333;
        white-space: nowrap;
        transition: background-color 0.1s ease;
    }

        .adminlte-select-wrapper .dropdown-item:hover,
        .adminlte-select-wrapper .dropdown-item:focus {
            background-color: #5897fb;
            color: white;
            text-decoration: none;
            outline: none;
        }


/* =================================================================== */
/* == STYLES FOR Custom SearchableMultiSelect Component             == */
/* =================================================================== */

.searchable-multiselect-wrapper {
    position: relative;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 2px;
    cursor: text;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    min-height: calc(1.5em + 0.75rem + 2px);
}

    .searchable-multiselect-wrapper:has(.form-control-multiselect:focus) {
        border-color: #5897fb;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
        outline: 0;
    }

.selected-items-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 2px;
}

.form-control-multiselect {
    flex-grow: 1;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 4px;
    min-width: 100px;
    background: transparent;
}

.selected-item-tag {
    display: flex;
    align-items: center;
    background-color: #e4e4e4;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.85em;
    line-height: 1.5;
    white-space: nowrap;
}

.close-tag {
    margin-left: 6px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 0 2px;
}

    .close-tag:hover {
        color: #333;
    }

.searchable-multiselect-wrapper .dropdown-menu.show {
    border: 1px solid #aaa;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
}

.searchable-multiselect-wrapper .dropdown-item:hover,
.searchable-multiselect-wrapper .dropdown-item:focus {
    background-color: #5897fb;
    color: white;
}


/* --- Custom Fix for Date-Range Input Group --- */

/* Select all direct children of our custom group */
.date-range-group > * {
    /* Remove the default rounded corners from all elements inside */
    border-radius: 0;
}

    /* Select every child except the first one */
    .date-range-group > *:not(:first-child) {
        /* This is the magic part: it pulls the element 1px to the left,
       making its left border overlap with the previous element's right border.
    */
        margin-left: -1px;
    }

/* Now, re-apply the rounded corners ONLY to the very first and very last elements */
.date-range-group > :first-child {
    border-top-left-radius: 0.2rem; /* .2rem is the default for -sm size */
    border-bottom-left-radius: 0.2rem;
}

.date-range-group > :last-child {
    border-top-right-radius: 0.2rem;
    border-bottom-right-radius: 0.2rem;
}

.input-group-text {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 0.199rem .75rem !important;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0 !important;
}
.cursor-pointer {
    cursor: pointer !important;
}

.close-btn {
    color: #1b6ec2 !important;
    background: transparent !important;
    border: 1px solid #1b6ec2 !important;
    font-weight: 600 !important;
}
.save-btn {
    color: #fff !important;
    background: #1b6ec2 !important;
    border: 1px solid #1b6ec2 !important;
    font-weight: 600 !important;
}
.card-footer {
    padding: 0 !important ;
    background: transparent !important;
    margin-top:10px !important;
    margin-bottom:10px !important;
}
.page-item  a:focus{
    box-shadow:none !important;
}