﻿:root {
    --OnHoverRowBackgroundColor: rgba(198, 226, 233, 0.5);
}

.overflowBox {
    overflow: auto;
    width: 98% !important;
    margin: auto;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    font-size: 16px; /* Minimum recommended size*/
}


.optionsItem {
    color: #333;
    display: flex;
    padding: 6px 0px 6px 0px;
    margin-bottom: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(178, 186, 187,0.3);
}

.input-container {
    width: 90% !important;
    display: inline-flex
}

.filterInput {
    border: none;
    border-bottom: 1px solid #d2d6de;
}

.filterContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.optionsItem i {
    color: rgba(93, 109, 126,1);
}


.menu-item {
    display: flex !important;
    flex-wrap: nowrap;
    padding-left: 10px !important;
    /*margin-right: 10px !important;*/
}

.menu-item-icon, .menu-item-label {
    display: inline-flex;
    padding: 7px !important;
    align-items: center;
}

menu-item-icon i {
    font-size: 18px;
}

.menu-item-label {
    flex-grow: 1;
}

.flexCol {
    display: flex !important;
    justify-content: center !important;
    padding: 0px !important;
}

.flexCol button {
    padding: 0px !important; 
}

.actionButtons {
    width: 8% !important;
    min-height: 35px;
    align-content: center;
}


/*************** Switch Component ***********************/

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/************************************************/


#table_id.dataTable thead th:last-child,
#table_id.dataTable tbody td:last-child {
    width: 25px;
    max-width: 25px;
    min-width: 25px;
}

#table_id_wrapper .row:last-child {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}



/* Highlight effect used whenever a new row is added to the datatable */
.highlight {
    animation: highlightRow 1.7s;
    animation-iteration-count: 1;
}










@keyframes highlightRow {
    0% {
        background-color: #FDFBF6;
    }

    10% {
        background-color: #FAF2DF;
    }

    20% {
        background-color: #FAE7B9;
    }

    30% {
        background-color: #FAE39B;
    }

    40% {
        background-color: #FADE7C;
    }

    50% {
        background-color: #FADE7C;
    }

    60% {
        background-color: #FAE39B;
    }

    70% {
        background-color: #FAE7B9;
    }

    80% {
        background-color: #FAF2DF;
    }

    90% {
        background-color: #FDFBF6;
    }
}



/* Hover effects for the dropdown menu */
.dropdown-menu a {
    cursor: pointer;
}

.dropdown-menu a:hover {
    font-size: 1.1em;
    background-color: rgba(93, 109, 126, 0.2);
    transition: font-size 0.1s ease-in-out, background-color 0.1s ease-in-out;
}

/* Dropdown items colors */

.refuseItem:hover i {
    color: #D62839;
}

.handleItem:hover i {
    color: #2F9D34;
}

.suspendItem:hover i {
    color: #069B9D;
}


.custom-dropdown-menu, .left-dropdown-menu {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) !important;
    border-color: black !important;
    font-size: 16px;
}

.dropdown-icon-positioning {
    margin-top: 5px !important;
    margin-left: 7px !important;
}

/* To allow the dropdown to be seen when it's opened, the positioning must be absolute*/
.left-dropdown {
    position: absolute !important;
}

/* In order to work, this dropdown must be inside a container with a absolute positioning*/
.left-dropdown-menu {
    left: -170px;
    top: -8px;
}

.custom-table {
    width: 100% !important;
}

.custom-table-margin {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

tbody tr:hover {
    background-color: var(--OnHoverRowBackgroundColor);
}

.vertical-more-btn {
    transform: rotate(90deg);
}


/* Until the screen is an extra SMALL (Booststrap) */
@media screen and (max-width: 1200px) {
    .input-container {
        width: 80% !important;
    }

    .actionButtons {
        width: 18% !important;
    }
}

@media screen and (min-width: 1200px) {
    .input-container {
        width: 90% !important;
    }

    .actionButtons {
        width: 8% !important;
    }
}

/* Until the screen is an EXTRA SMALL size (Booststrap) */
@media screen and (max-width: 576px) { 
    #midCol {
        margin-top: 4px;
    }

    .actionButtons {
        flex-direction: column;
    }

    #midActionButton {
        margin-top: 15px;
    }
}

@media screen and (min-width: 576px) {
    .actionButtons {
        flex-direction: row;
    }

    #midActionButton {
        margin-top: 0px;
    }
}

.blink_effect {
    animation: 1s blinker linear infinite;
}

@keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}



/* Datatable styling */

#table_id > thead > tr > th {
    border-bottom: 2px #ddd solid;
}

#table_id > tbody > tr > td {
    border-top: 1px #ddd solid;
    border-right: 0px;
}




/*#DeleteBtt {
    color: #333;
    display: flex;
    padding: 6px 0px 6px 0px;
    margin-bottom: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(178, 186, 187,0.3);
}

#DeleteBtt i {
    color: rgba(93, 109, 126,1)
}*/