:root {
    --theme-color1: #f6f9ff;
    --theme-color2: #f0f0f0;
    --theme-color3: #717171;
    --thead: rgba(108, 117, 125, 1);
}


.bgnew>td:first-child {
    background-color: transparent !important;
    color: #fff !important;
}

th {
    background-color: var(--thead) !important;
    color: #fff !important;
}

.modal {
    background: rgba(0, 0, 0, .5);
}

.d-flex label {
    min-width: 180px;
    line-height: 2;
}

.minwidthlabel {
    min-width: auto !important
}

.rdlabel {
    margin: 0 10px;
}

textarea {
    resize: none;
}

.sumtotalrow th {
    background: green;
    color: #fff;
}

.w100 {
    width: 100px;
    min-width: 100px;
}

.w200 {
    width: 200px;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top-width: 1px;
    border-top: 0;
    padding: 10px;
}

.nav-link:focus-visible {
    box-shadow: none !important;
}

td {
    vertical-align: middle;
}

.tableVerticalScroll {
    max-height: 60vh;
    overflow-y: auto;
}

thead th, tfoot {
    position: sticky;
    top: 0;
    /* Stick to the top of the table container */
    background-color: #f1f1f1;
    /* Background color for headers */
    z-index: 1;
    /* Ensure headers are above other content */
    border-bottom: 2px solid #ddd;
    /* Optional: add a border */
}
tfoot
{
    bottom: 0;
}

.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9998;
    display: none;
}



@media only screen and (max-width: 500px) {
    .card-body .d-flex, .card-body .form-floating
    {
        display: table !important;
        width: 100%;
    }
    .card-body .d-flex.d-none
    {
        display: none !important;
    }
    .m-width
    {
        width: 100%;
    }

}
