/* Payable Screen */
.mb-3-1 {
    margin-bottom: .4rem !important;
}

.logout-margin {
    margin-bottom: 5rem !important;
}

.form-label-1 {
    margin-bottom: .1rem !important;
}

.content-1 {
    padding: 1.5rem 3rem 1.5rem !important;
    background-color: #f3f5f9 !important;
}

input.input-validation-error,
textarea.input-validation-error,
select.input-validation-error {
    border: 1px solid #CD0A0A;
}

.Total {
    background-image: none;
}

.badge {
    --bs-badge-padding-x: 0.45em;
    --bs-badge-padding-y: 0.3em;
    --bs-badge-font-size: 80%;
    --bs-badge-font-weight: 600;
    --bs-badge-border-radius: var(--bs-border-radius);
    border-radius: var(--bs-badge-border-radius);
    color: var(--bs-badge-color);
    display: inline-block;
    font-size: var(--bs-badge-font-size);
    font-weight: var(--bs-badge-font-weight);
    line-height: 1;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
}

.badge-for-approval {
    background-color: #495057; /* Dark Gray */
    color: #fff;
}

.badge-submitted-for-approval {
    background-color: #3B7DDD; /* Blue */
    color: #fff;
}

.badge-rejected {
    background-color: #DC3545; /* Red */
    color: #fff;
}

.badge-approved {
    background-color: #FCB92C; /* Yellow */
    color: #000;
}

.badge-funding {
    background-color: #FF9800; /* Orange */
    color: #fff;
}

.badge-funded {
    background-color: #17A2B8; /* Teal */
    color: #fff;
}

.badge-funding-denied {
    background-color: #6C757D; /* Dark Gray */
    color: #fff;
}

.badge-paying {
    background-color: #6610f2; /* Purple */
    color: #fff;
}

.badge-paid {
    background-color: #1CBB8C; /* Green */
    color: #fff;
}

.badge-defunded {
    background-color: #9E9E9E; /* Gray */
    color: #fff;
}

.custom-modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: table;
    width: 500rem;
}

/*.custom-modal > .modal-content {
    display: table-cell
}*/

.spinner-color {
    color: #222E3C;
}

.spinner-wrapper {
    background-color: #f3f5f9;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 1.3s;
}

dl, ol, ul {
    margin-bottom: 1rem;
    margin-top: .5rem !important;
}

.page-link:hover {
    z-index: 2;
    color: #3b7ddd;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #3b7ddd;
    border-color: #3b7ddd;
}

.page-link {
    position: relative;
    display: block;
    color: #3b7ddd;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.close {
    right: 32px;
    top: 32px;
    width: 32px;
    height: 32px;
    opacity: 0.5;
    color: #6C757D;
}

.close:hover {
    opacity: 1;
    text-decoration: none;
}

.open {
    right: 32px;
    top: 32px;
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

.open:hover {
    opacity: 1;
    text-decoration: none;
}

.table2 {
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 1rem;
}

.table td, .table th {
    white-space: nowrap; /* Prevent cell content from wrapping */
}

.table input.form-control {
    width: 100%; /* Make input fill the cell width */
    min-width: 140px; /* Optional: ensure a reasonable minimum width */
}

.table select.form-control {
    width: 100%; /* Make input fill the cell width */
    min-width: 170px; /* Optional: ensure a reasonable minimum width */
}

/* Remove only the outline (glow effect) from the search textbox */
.input-group .form-control:focus {
    outline: none !important;
    box-shadow: none !important; /* Remove Bootstrap focus glow */
}

/* Ensure the input and icon look seamless */
.input-group-text {
    background: white;
    border-right: none; /* No separation */
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between buttons */
    justify-content: flex-start; /* Align buttons to the left */
}

input[readonly] {
    background-color: #f8f9fa !important; /* Light gray */
    color: #495057 !important; /* Default text color */
    border: 1px solid #ced4da !important; /* Maintain consistency */
}

textarea[readonly] {
    background-color: #f8f9fa !important; /* Light gray */
    color: #495057 !important; /* Default text color */
    border: 1px solid #ced4da !important; /* Maintain consistency */
}

select[disabled] {
    background-color: #f8f9fa !important; /* Light gray */
    color: #495057 !important; /* Default text color */
    border: 1px solid #ced4da !important; /* Maintain consistency */
}

.button-margin {
    margin-top: 1rem !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .custom-modal {
        width: 95%;
        max-width: 370px;
        margin: auto;
    }

    .modal-footer {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        align-items: stretch; /* Make buttons full width */
    }

    .modal-footer .btn {
        width: 100%;
    }

    .container-fluid {
        padding: 0 10px !important;
    }

    .card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    .table-responsive {
        overflow-x: auto;
        white-space: nowrap;
    }

    .table {
        min-width: 600px; /* Ensures table doesn't shrink too much */
    }

    .input-group {
        flex-wrap: nowrap;
    }

    .input-group .form-control {
        font-size: 14px;
        padding: 8px;
    }

    .input-group-text {
        padding: 8px;
    }

    /* Remove padding from .content-1 on mobile */
    .content-1 {
        padding: 1.5rem 1.5rem .75rem !important;
    }

    .button-group {
        flex-direction: column; /* Stack buttons vertically */
        align-items: stretch; /* Make buttons full width */
    }

    .button-group .btn {
        width: 100%; /* Full width for smaller screens */
    }
}

