/* custom css for head file */

@media (min-width: 992px) {
    .app-header {
        display: none;
    }
    .app-wrapper {
        margin-top: 0px !important;
    }
}

/* Media Query for Mobile Devices */
@media (max-width: 480px) {
    .app-header {
        display: flex;
    }
    /* .app-wrapper {
        margin-top: 0px !important;
    } */
}

/* Media Query for low resolution  Tablets, Ipads */
@media (min-width: 481px) and (max-width: 767px) {
    .app-header {
        display: flex;
    }
}

/* Media Query for Tablets Ipads portrait mode */
@media (min-width: 768px) and (max-width: 1024px){
    .app-header {
        display: flex;
    }
}

/* Media Query for Laptops and Desktops */
/* @media (min-width: 1025px) and (max-width: 1280px){
    body {
        background-color: green;
    }
} */

/* Media Query for Large screens */
/* @media (min-width: 1281px) {
    body {
        background-color: white;
    }
} */

body, html {
    font-size: 12px !important;
    font-family: Tahoma;
}

table.dataTable thead .sorting {
    background-image: none !important;
}
.error {
    color: red;
    margin: 2px;
}

/** theme css */
    .btn.btn-light{
    color:var(--kt-light-inverse);
    border-color:var(--kt-light);
    background-color:var(--kt-light);
    text-decoration:none
}

.btn.btn-light:hover{
    color:var(--kt-primary);
    border-color:var(--kt-primary-light);
    background-color:var(--kt-primary-light)!important;
    text-decoration:none
}

.menu-sub-dropdown .menu-link{
    color:var(--kt-gray-600);
    text-decoration:none
}

/** start datatable horizontal scroll */
/* .datatable th,.datatable td { white-space: nowrap; } */
div.dataTables_wrapper {
    margin: 0 auto;
}
/** end datatable horizontal scroll */

/** datatable custom CSS (Vivek: 01-Mar 10:26 AM) */
/* start:: datatable check box  */
    table.dataTable tbody tr.selected {
        color: white !important;
        background-color: #eeeeee !important;
    }

    table.dataTable.compact tbody td.select-checkbox:before, table.dataTable.compact tbody th.select-checkbox:before {
        margin-top: -5px !important;
    }

    table.dataTable.compact tr.selected td.select-checkbox:after, table.dataTable.compact tr.selected th.select-checkbox:after {
        margin-top: -10px;
    }

    table.dataTable tr.selected td.select-checkbox:after, table.dataTable tr.selected th.select-checkbox:after {
        font-size: 12px !important;
        margin-top: -10px !important;
    }
/* end:: datatable check box  */

/** datatbale action buttons custom css (Vivek: 01-Mar 10:27 AM) */
.dt-buttons {
    width: 100%;
    /* margin-bottom: 15px; */
}

.dt-buttons > .btn {
    margin-left: 15px;
}

.btn-sm {
    font-size: 13px !important;
    padding: 4px 12px 4px 12px !important;
    min-width: 80px;
    font-weight: bold;
}
.form-control {
    padding: 5px !important;
}

/** select2 custom css (Vivek: 01-Mar 10:27 AM) */
.select2.select2-container {
    width: 100% !important;
    /* max-height: 100px;
    overflow: scroll; */
}

.select2.select2-container .select2-selection {
    border: 1px solid #ccc !important;
    -webkit-border-radius: 3px !important;
    -moz-border-radius: 3px !important;
    border-radius: 3px !important;
    height: 35px !important;
    /* margin-bottom: 15px !important; */
    outline: none !important;
    transition: all .15s ease-in-out !important;
}

.select2.select2-container .select2-selection .select2-selection__rendered {
    color: #333 !important;
    line-height: 32px !important;
    padding-right: 33px !important;
    max-height: 194px !important; /* (Vivek: 01-Jun 02:51 PM) for select2 dropdown max height */
    overflow-y: scroll;  /* (Vivek: 01-Jun 02:51 PM) for select2 dropdown max height */
}
.select2.select2-container .select2-selection .select2-selection__arrow {
    /* background: #f8f8f8 !important; */
    border-left: 1px solid #ccc !important;
    -webkit-border-radius: 0 3px 3px 0 !important;
    -moz-border-radius: 0 3px 3px 0 !important;
    border-radius: 0 3px 3px 0 !important;
    height: 35px !important;
    width: 33px !important;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single {
    background: #f8f8f8 !important;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single .select2-selection__arrow {
    -webkit-border-radius: 0 3px 0 0 !important;
    -moz-border-radius: 0 3px 0 0 !important;
    border-radius: 0 3px 0 0 !important;
}
.select2.select2-container.select2-container--open .select2-selection.select2-selection--multiple {
    border: 1px solid #34495e !important;;
}

.select2.select2-container.select2-container--focus .select2-selection {
    border: 1px solid #34495e !important;
}
.select2.select2-container .select2-selection--multiple {
    height: auto !important;
    min-height: 35px !important;
}
.select2.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 0 !important;
    height: 20px !important;
}

.select2.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block !important;
    padding: 0 4px !important;
    line-height: 29px !important;
}
.select2.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f8f8 !important;
    border: 1px solid #ccc !important;
    -webkit-border-radius: 3px !important;
    -moz-border-radius: 3px !important;
    border-radius: 3px !important;
    margin: 4px 4px 0 0 !important;
    padding: 0 6px 0 18px !important;
    height: 20px !important;
    line-height: 18px !important;
    font-size: 12px !important;
    position: relative !important;
}
.select2.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 22px !important;
    width: 17px !important;
    margin: 0 !important;
    text-align: center !important;
    color: #009ef7 !important;
    font-weight: bold !important;
    font-size: 12px !important;
    border: none;
}
.select2-container .select2-dropdown {
    background: transparent !important;
    border: none !important;
    margin-top: -5px !important;
}

.select2-container .select2-dropdown .select2-search {
    padding: 0 !important;
}

.select2-container .select2-dropdown .select2-search input {
    outline: none !important;
    border: 1px solid #34495e !important;
    border-bottom: none !important;
    padding: 4px 6px !important;
}
.select2-container .select2-dropdown .select2-results {
    padding: 0 !important;
}

.select2-container .select2-dropdown .select2-results ul {
    background: #fff !important;
    border: 1px solid #34495e !important;
}
.select2-container .select2-dropdown .select2-results ul .select2-results__option--highlighted[aria-selected] {
    background-color: #3498db !important;
}

.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td {
    vertical-align: top;
}

/* Sidebar menu gradient */
[data-kt-app-layout=dark-sidebar] .app-sidebar {
    border-right: 0 !important;
    background-image: linear-gradient(to right, #007bffa1, #050936) !important;
}

/* change background and text color of bootstrap file uploader column which have form-control class */
.form-control::file-selector-button {
    color: #ffffff !important;
    background: #054e98 !important;
    font-weight: 600 !important;
}

/** Start excel download loader css **/
    #downloadingDiv {
        --d:30px;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        color: #054E98;
        position: absolute;
        left: 50%;
        /* top: 10%; */
        z-index: 1000;
        box-shadow:
            calc(1*var(--d))      calc(0*var(--d))     0 0,
            calc(0.707*var(--d))  calc(0.707*var(--d)) 0 1px,
            calc(0*var(--d))      calc(1*var(--d))     0 2px,
            calc(-0.707*var(--d)) calc(0.707*var(--d)) 0 3px,
            calc(-1*var(--d))     calc(0*var(--d))     0 4px,
            calc(-0.707*var(--d)) calc(-0.707*var(--d))0 5px,
            calc(0*var(--d))      calc(-1*var(--d))    0 6px;
        animation: l27 1s infinite steps(8);
    }
    @keyframes l27 {
        100% {transform: rotate(1turn)}
    }
/** End excel download loader css **/


/* make header title bold */
table.dataTable thead th {
    font-weight: bolder !important;
}

/* Adds a border to the top of the footer */
table.dataTable thead {
    border-bottom: 1px solid #DCE0E4;
}

/* add strips on table */
table.dataTable tbody tr:nth-child(even) {
    background-color: #E9E9E9;
}

/* Optional: Add hover effect on rows */
table.dataTable tbody tr:hover {
    background-color: #E9E9E9;
}


/* hide datatable original search box */
div.table-responsive div.dt-search {
    /* text-align: right; */
    visibility: hidden;
}

/* hide search box so later it will display on page load via js*/
div.table-responsive div.dt-buttons {
    display: none;
}

/* table column paddings */
td {
    padding: 4px !important;  /* Remove padding from table headers */
}
