html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@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 #f8f9fa;
}



table th, table td {
    vertical-align: middle !important;
}

/* Custom styles for table striping and hover */
.table tbody tr:nth-child(odd) {
    background-color: #ffffff; /* White color for odd rows */
}

.table tbody tr:nth-child(even) {
    background-color: #f5f3ff; /* Light color for even rows */
}

.table tbody tr:hover {
    background-color: #ffffff; /* Light blue color on hover */
    cursor: pointer;
}

.table thead tr:nth-child(odd) {
    background-color: #69659E; /* Dark blue header background color */
    color: white; /* White text color */
    vertical-align: middle; /* Ensure vertical alignment */
}

.table thead tr:nth-child(even) {
    background-color: white;
}

table > :not(:last-child) > :last-child > * {
    border-bottom-color: #dee2e6 !important;
}

.custom-form .form-group {
    position: relative;
}

.custom-form .form-input,
.custom-form .form-select-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.2s;
    background: #fff;
}

    .custom-form .form-input:focus,
    .custom-form .form-select-input:focus {
        border-color: #1E3A5F;
        outline: none;
    }

.custom-form .form-label {
    position: absolute;
    top: -1.5rem;
    left: 1rem;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.2s;
}

.custom-form .form-input:not(:placeholder-shown) + .form-label,
.custom-form .form-input:focus + .form-label,
.custom-form .form-select-input:focus + .form-label,
.custom-form .form-select-input:not([value=""]) + .form-label {
    top: -1.5rem;
    left: 1rem;
    font-size: 0.875rem;
    color: #1E3A5F;
}

.custom-form .form-input::placeholder {
    color: transparent;
}

.custom-form .form-group .form-input:disabled {
    border: 1px solid #299B51;
    color: gray;
    background-color: #f8f9fa; /* Optional: to make the disabled input field background distinguishable */
}

.custom-btn {
    min-width: 150px;
    margin-right: 0.5rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}
.custom-form .text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.custom-form .form-group {
    position: relative;
    width: 100%;
    height: 50px;
    margin-bottom: 5px;
}

    .custom-form .form-group .form-input:focus,
    .custom-form .form-group .form-select-input:focus {
        outline: none;
        border: 1px solid #006319;
    }

        .custom-form .form-group .form-input:focus ~ .form-label,
        .custom-form .form-group .form-input:not(:placeholder-shown):not(:focus) ~ .form-label,
        .custom-form .form-group .form-select-input:focus ~ .form-label,
        .custom-form .form-group .form-select-input:not([value=""]):not(:focus) ~ .form-label {
            top: -7px;
            left: 1rem;
            z-index: 9;
            font-size: 12px;
            font-weight: 400;
            color: #006319;
            transition: all 0.2s ease-in-out;
        }

        /*.custom-form .form-group .form-input:focus ~ .form-label-d,
        .custom-form .form-group .form-input:not(:placeholder-shown):not(:focus) ~ .form-label-d,
        .custom-form .form-group .form-select-input:focus ~ .form-label-d,
        .custom-form .form-group .form-select-input:not([value=""]):not(:focus) ~ .form-label-d {
            top: -7px;
            left: 1rem;
            z-index: 9;
            font-size: 12px;
            font-weight: 400;
            color: #728090;
            background-color: #728090;
            transition: all 0.2s ease-in-out;
        }*/

    .custom-form .form-group .form-label {
        position: absolute;
        font-weight: 400;
        font-size: 15px;
        line-height: 15px;
        left: 1rem;
        top: 16px;
        padding: 0 0.25rem;
        color: #728090;
        background: #fff;
        transition: all 0.3s ease;
    }

    .custom-form .form-group .form-input,
    .custom-form .form-group .form-select-input {
        position: absolute;
        font-family: inherit;
        font-size: 15px;
        font-weight: 400;
        line-height: inherit;
        top: 0;
        left: 0;
        z-index: 1;
        resize: none;
        width: 100%;
        height: auto;
        padding: 12.5px 15px 13px 20px;
        border-radius: 8px;
        border: 1px solid #E0E1E1;
        color: #000;
        background: transparent;
        transition: all 0.2s ease-in-out;
    }

        .custom-form .form-group .form-input:read-only,
        .custom-form .form-group .form-select-input:disabled {
            background-color: #E8F0FE;
        }

        .custom-form .form-group .form-input::-moz-placeholder,
        .custom-form .form-group .form-select-input::-moz-placeholder {
            opacity: 0;
            visibility: hidden;
            color: transparent;
        }

        .custom-form .form-group .form-input:-ms-input-placeholder,
        .custom-form .form-group .form-select-input:-ms-input-placeholder {
            opacity: 0;
            visibility: hidden;
            color: transparent;
        }

        .custom-form .form-group .form-input::placeholder,
        .custom-form .form-group .form-select-input::placeholder {
            opacity: 0;
            visibility: hidden;
            color: transparent;
        }

.custom-form .form-select-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="none" stroke="currentColor" stroke-width=".7" d="M2 0L0 2.5 2 5l2-2.5z"/></svg>') no-repeat right 0.75rem center;
    background-size: 8px 10px;
    background-color: #fff;
    padding-right: 2rem; /* Adjust to ensure the arrow is not overlapping text */
}

/*.form-group:not(.disabled-div) input[data-val-required]:not([readonly]) + .form-label::after,
.form-group:not(.disabled-div) select[data-val-required]:not([readonly]) + .form-label::after {
    content: "*";
    color: #dc3545;
    font-weight: bold;
    margin-left: 4px;
}*/
.form-group:not(.disabled-div) input[data-val-required]:not([readonly]) ~ .form-label::after,
.form-group:not(.disabled-div) select[data-val-required]:not([readonly]) ~ .form-label::after,
.form-group:not(.disabled-div) input[data-val-requiredif]:not([readonly]) ~ .form-label::after,
.form-group:not(.disabled-div) select[data-val-requiredif]:not([readonly]) ~ .form-label::after,
.form-group:not(.disabled-div) input[data-val-requiredifnot]:not([readonly]) ~ .form-label::after,
.form-group:not(.disabled-div) select[data-val-requiredifnot]:not([readonly]) ~ .form-label::after {
    content: "*";
    color: #dc3545;
    font-weight: bold;
    margin-left: 4px;
}

.custom-card {
    border-radius: 0.25rem;
    /*         border: 1px solid #dee2e6;
 */ margin-top: 1rem;
}

.custom-card-header {
    background-color: #1E3A5F;
    color: white;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.25rem 0.25rem 0 0;
}

.custom-card-body {
    padding: 1.25rem;
}

.custom-card-footer {
    background-color: #f8f9fa;
    padding: 0.75rem 1.25rem;
    /*         border-top: 1px solid #dee2e6;
 */ border-radius: 0 0 0.25rem 0.25rem;
    text-align: right;
}

.custom-card-body strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.custom-btn {
    min-width: 150px;
    margin-right: 0.5rem;
}

.custom-card p {
    margin: 0;
}

@media (max-width: 576px) {
    .pagination,
    .pagination-pageSize.form-select {
        display: block;
        width: 100%;
    }

    .pagination-pageSize.form-select {
        margin-top: 1rem;
        height: 38px;
    }
}

.pagination .page-item.active .page-link {
    background-color: #757ea8;
    border-color: #69659E;
    color: #fff;
}

.pagination .page-link {
    color: #69659E;
}

/* Apply gradient background and styles to modal header and footer (lighter shades of purple) */
.modal-dialog .modal-content .modal-header,
.modal-dialog .modal-content .modal-footer {
    background: linear-gradient(to right, #f0f0f7, /* lighter gray */
    #ebebef, /* light gray */
    #e6e5f7, /* light grayish purple */
    #e1dcff /* light purple shade */
    ); /* Gradient background */
    color: #333; /* Dark text color for better readability against the gradient */
    padding: 15px; /* Ensure adequate padding for the content */
    border: none; /* Remove borders for a cleaner look */
}

/* General modal body styles */
.modal-dialog .modal-content .modal-body {
    min-height: 200px;
    padding: 20px; /* Add padding for better content spacing */
}

/* Specific modal size adjustments */
.modal-dialog.modal-lg .modal-content .modal-body {
    min-height: 300px;
}

modal-dialog.modal-xl .modal-content .modal-body {
    min-height: 400px;
}

/* Optional: Adding some responsive behavior for smaller screens */
@media (max-width: 576px) {
    .modal-dialog .modal-content .modal-body {
        min-height: 150px; /* Adjust for smaller screens */
    }

    .modal-dialog.modal-lg .modal-content .modal-body {
        min-height: 250px;
    }

    modal-dialog.modal-xl .modal-content .modal-body {
        min-height: 300px;
    }
}

.report-title {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

    .report-title span.small {
        font-size: 1rem;
    }

.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.disabled-div {
    pointer-events: none;
    opacity: 0.8;
    user-select: none;
}

/* ── TMU Report shared styles ─────────────────────────────────────────── */
.tmu-report-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 1.5rem;
}
.tmu-report-header-gradient {
    background: linear-gradient(135deg, #69659E 0%, #8A85C1 50%, #B0B7D6 100%);
    color: #fff;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: .5px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(105,101,158,0.15);
}
.tmu-filter-box {
    position: relative;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 12px 8px 12px;
    background: #fff;
    margin-bottom: 16px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.tmu-filter-box:focus-within {
    border-color: rgba(105,101,158,0.55);
    box-shadow: 0 0 0 3px rgba(105,101,158,0.10);
}
.tmu-filter-label {
    position: absolute;
    top: -10px;
    left: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: #69659E;
    background: #fff;
    padding: 0 4px;
    letter-spacing: .3px;
}
.tmu-filter-box select,
.tmu-filter-box input[type="date"] {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 0 0 6px !important;
    height: auto !important;
    font-size: 14px;
    color: #333;
    background: transparent;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.tmu-filter-box select:focus,
.tmu-filter-box input[type="date"]:focus {
    box-shadow: none !important;
    border: none !important;
}
.tmu-view-btn {
    background: #69659E !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: background .25s, transform .2s;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
    cursor: pointer !important;
}
.tmu-view-btn:hover, .tmu-view-btn:focus {
    background: #58548a !important;
    transform: translateY(-1px);
    color: #fff !important;
}
.tmu-action-bar {
    margin-bottom: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(105,101,158,0.05), rgba(105,101,158,0.12));
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(105,101,158,0.12);
}
.tmu-total-records {
    font-size: 14px;
    font-weight: 600;
    color: rgba(105,101,158,0.9);
    white-space: nowrap;
}
.tmu-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 30px;
    border: none;
    background: #69659E;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}
.tmu-pill-btn:hover { background: #58548a; color: #fff; }
#tableReport thead { background: rgba(105,101,158,0.85); color: white; font-size: 14px; }
#tableReport tbody tr:hover { background: rgba(105,101,158,0.05); }
#tableReport td { font-size: 13px; }
.tmu-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1060;
    align-items: center;
    justify-content: center;
}
.tmu-loading-box {
    background: white;
    border-radius: 16px;
    padding: 32px 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
}
.tmu-spinner {
    width: 48px; height: 48px;
    margin: 0 auto 16px;
    border: 5px solid rgba(105,101,158,0.2);
    border-top-color: rgba(105,101,158,0.9);
    border-radius: 50%;
    animation: tmuSpin .8s linear infinite;
}
@keyframes tmuSpin { to { transform: rotate(360deg); } }
.tmu-nodata-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
.tmu-nodata-card {
    width: 260px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
    text-align: center;
    animation: tmuFadeInCard 0.2s ease-in-out;
}
.tmu-nodata-card-header {
    background: linear-gradient(135deg,#69659E,#8A85C1);
    padding: 12px;
    color: white;
}
.tmu-nodata-icon {
    width: 34px; height: 34px;
    margin: 0 auto 6px;
    background: white;
    color: #69659E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}
@keyframes tmuFadeInCard { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes tmuFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
#report-container { animation: tmuFadeIn .4s ease-in-out; }
/* two-column filter row */
.tmu-filter-row { display: flex; gap: 14px; margin-bottom: 0; }
.tmu-filter-row .tmu-filter-box { flex: 1; min-width: 0; }
/* tmu-filter-box select with visible arrow for non-floating selects */
.tmu-filter-box select { appearance: auto; -webkit-appearance: auto; }
/* Compact Applied Filters card (reportHeader) */
#reportHeader { margin-bottom: 8px !important; }
#reportHeader .card-header { padding: 7px 16px; font-size: 13px; }
#reportHeader .card-body { padding: 8px 14px; }


