html {
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

body {
    background: #f7f7f7;
    color: #212121;
    font-family: 'Roboto', sans-serif;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: inherit;
}

div, p, a, img, form, button {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
}

button {
    padding: 0;
}

.container {
    width: 1090px;
    max-width: 98%;
    margin: 0 auto;
}

.container:before {
    content: inherit;
}

.container:after {
    content: inherit;
}

header {
    width: 100%;
    height: 70px;
    background: #fff;
    border-bottom: 1px solid rgb(226, 226, 226);
}

header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100%;
    align-items: center;
}

header img {
    max-height: 50px;
}

header p {
    color: #000;
    font-weight: 500;
    font-size: 16px;
}

input {
    border: 1px solid rgb(231, 231, 231);
    border-radius: 3px;
    padding: 10px;
}

input:focus {
    outline: none;
    border: 1px solid #afdbff;
    box-shadow: 1px 1px 3px #afdbff;
}

.container h1 {
    text-align: center;
}

.preload {
    height: 100%;
    width: 100%;
    background: #fff;
    position: fixed;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    z-index: 500;
}

.preload svg {
    width: 100px;
    height: 100px;
    margin: 20px;
    display:inline-block;
}

.visible {
    opacity: 1;
    visibility: visible;
}

input.number-input::-webkit-outer-spin-button,
input.number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.number-input[type=number] {
    -moz-appearance: textfield;
}

.log_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    margin-top: 70px;
    position: relative;
}

.log_window {
    display: flex;
    flex-direction: column;
    width: 50%;
    min-width: 80vh;
    background: #fff;
    padding: 50px;
    align-items: center;
    justify-content: center;
}

.log_window h1 {
    margin: 35px 0;
}

.log_window input {
    margin-top: 30px;
    border: 1px solid rgb(231, 231, 231);
    border-radius: 3px;
    padding: 10px;
    height: 5vh;
    width: 45%;
    transition: 0.3s;
}

.log_window input:focus {
    outline: none;
    border: 1px solid #afdbff;
    box-shadow: 1px 1px 3px #afdbff;
}

.login_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin: 4vh 0;
    padding: 1vh 2vh;
    width: 46%;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    background: rgb(63, 185, 255);
    transition: 0.3s;
    cursor: pointer;
    border-radius: .4vh;
}

.login_btn:hover {
    background: rgb(27, 154, 228);
}

.user {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.user_settings {
    position: absolute;
    right: 0;
    top: 40px;
}

.main_wrapper {
    margin-top: 100px;
}

.main_wrapper .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

.card {
    display: flex;
    position: relative;
    background: #fff;
    border-radius: 6px;
    width: 320px;
    height: 120px;    
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 3px 3px 10px rgb(224, 224, 224);
    transition: 0.3s;
}

.card h3 {
    z-index: 1;
    transition: 0.3s;
}

.card img {
    position: absolute;
    left: 6%;
    z-index: 2;
    top: -50%;
    transition: 0.3s;
}

.card:hover {
    text-decoration: none;
}

.card:hover h3 {
    color: #000;
    transform: scale(1.1);
}

.table_wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: .4vh;
    padding: 3vh;
    border: .0vh solid lightgray;
    background: #fff;
}

button {
    background: #fff;
    font-weight: 500;
    font-size: 1rem;
    padding: 1vh 3vh;
    border: .1vh solid rgb(145, 145, 145);
    border-radius: .4vh;
    cursor: pointer;
}

button:not(:first-child) {
    margin-left: 2vh;
}

button:hover {
    background: rgb(224, 224, 224);
}

footer {
    display: flex;
    bottom: 20px;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-top: 70px;
    margin-bottom: 30px;
    width: 100%;
}

footer span {
    color: rgb(179, 179, 179);
    font-size: 15px;
    font-weight: 400;
}

button {
    font-size: 1rem;
}

.page-footer {
    position: fixed;
    left: 1vh;
    bottom: 1vh;
}

.inputs-group {
    margin-top: 3vh;
}

.labeled-input {
    display: flex;
    flex-direction: row;
    align-items: flex-start;

}

.datapicker-input {
    text-align: center;
    align-items: center;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.labeled-input:nth-child(3) {
    flex-direction: column;
    flex-wrap: wrap;
}

.labeled-input.col {
    flex-direction: column;
    align-items: start;
}

.labeled-input label {
    width: 20vh;
}

.labeled-input input {
    height: 35px;
    width: 100%;
    padding: .5vh;
}

.labeled-input select {
    height: 35px;
    width: 100%;
    padding: 5px;
    border: 1px solid rgb(121, 121, 121);
    border-radius: 3px;
}

.labeled-input select:focus {
    outline: none;
    border: 1px solid #afdbff;
    box-shadow: 1px 1px 3px #afdbff;
}

.labeled-input.col input {
    margin-top: 1vh;
}

.labeled-input:not(:first-child) {
    margin-top: 2vh;
}

.portal-table-toolbar {
    display: flex;
    flex-direction: row;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

.portal-table {
    margin-top: 2vh;
}

.portal-table tr td:nth-child(1) {
    text-align: center;
    vertical-align: center;
}

.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

.modal-win {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.3);
    visibility: hidden;
}

.modal-win.modal-open {
    visibility: visible;
}

.modal-win-content {
    position: relative;
    max-width: 95%;
    min-height: 10vh;
    max-height: 90%;
    background-color: white;
    padding: 6vh;
    border-radius: .4vh;
    overflow: auto;
}

.modal-win-actions {
    margin-top: 4vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.confirmation .modal-win-actions {
    margin-top: 4vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.modal-win-actions p{
    margin: 0;
    font-size: 12px;
    margin-left: 20px;
    color: #a9a9a9;
}



.close-button {
    position: absolute;
    top: 1vh;
    right: 1.5vh;
    font-size: 2vh;
    cursor: pointer;
    opacity: 0.5;
}

.close-button:hover {
    opacity: 1;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form h1 {
    margin-left: 15vh;
}

.login-button {
    margin-top: 2vh;
    margin-left: 15vh;
    width: 10vh;
}

.user-menu img {
    height: 35px;
}

.user-name {
    padding: 1vh 3vh;
    text-align: center;
    font-size: 1.2rem;
    border-bottom: 1px solid rgb(190, 190, 190);
    margin-bottom: 1vh;
}

.main-menu-panel {
    position: fixed;
    bottom: 0; /* Position the navbar at the bottom of the page */
    width: 100%;
}

.dropdown-menu a {
    text-align: center;
}

button i {
    margin-right: 5px;
    font-weight: 300;
}

.portal-btn:disabled {
    background-color: darkgray !important;
}

.add_btn {
    display: block;
    background: #28a745;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    font-size: 1rem;
    transition: 0.3s;
}

.add_btn:hover {
    background: #24963f;
}

.edit_btn {
    display: block;
    background: #007bff;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 300;
    transition: 0.3s;
}
.edit_btn:hover {
    background: #0273eb;
}

.delete_btn {
    display: block;
    background: #dc3545;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 300;
    transition: 0.3s;
}
.delete_btn:hover {
    background: #ca3040;
}

.home_btn {
    display: flex;
    font-size: 1rem;
    color: #212121;
    font-weight: 400;
    cursor: pointer;
    padding: 3vh;
    width: 165px;
    opacity: 0.7;
    transition: 0.3s;
}

.home_btn a {
    color: #212121;
}

.home_btn i {
    margin-right: 5px;
}

.home_btn:hover {
    opacity: 1;
}

.confirmation {
    padding: 2vh;
}

.bootstrap-datetimepicker-widget {
    margin-top: 30px;
    text-align: center;
}

.page_title_wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-around;
}

.datepicker td {
    cursor: pointer;
    background: #fefefe;
}

.datepicker td:hover {
    background: #adddff;
    transition: 0.3s;
}

.dataTables_info {
    display: none;
}

#task-service-name, #task-event-address {
    width: 100%;
    resize: none;
    max-height: 80px;
    padding: 5px;
    border: 1px solid rgb(231, 231, 231);
}

#employees-table {
    width: 100%;
}

#employees-table_wrapper {
    width: 100%;
}

#tasks-table_wrapper {
    width: 100%;
}

#task-event-type {
    background: #f8f8f8;
}

#task-event-time {
    background: #f8f8f8;
}

@media screen and (max-width: 1051px) {
    .card:nth-child(3) {
        margin-top: 95px;
    }
}

@media screen and (min-width: 1010px) {
    .card:not(:nth-child(1)) {
        margin-left: 20px;
    }
}

@media screen and (max-width: 991px) {
    #edit-task-event-form-title, #new-task-event-form-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 875px) {
    #employees-table tbody td:nth-child(3) {
        display: none;
    }
    #employees-table thead th:nth-child(3) {
        display: none;
    }
    #tasks-table tbody td:nth-child(6) {
        display: none;
    }
    #tasks-table thead th:nth-child(6) {
        display: none;
    }
}

@media screen and (max-width: 795px) {
    #tasks-table tbody td:nth-child(4) {
        display: none;
    }
    #tasks-table thead th:nth-child(4) {
        display: none;
    }
}

@media screen and (max-width: 714px) {
    #task-service-corrections-table_wrapper {
        overflow: auto;
        width: 100%;
    }
}

@media screen and (max-width: 706px) {
    .main_wrapper .container {
        flex-direction: column;
    }
    .card img {
        width: 80px;
        top: -35%;
    }
    .card:nth-child(2) {
        margin-top: 60px;
    }
    .card:nth-child(3) {
        margin-top: 60px;
    }
    .card{
        width: 100%;
    }
    
}

@media screen and (max-width: 675px) {
    #tasks-table tbody td:nth-child(3) {
        display: none;
    }
    #tasks-table thead th:nth-child(3) {
        display: none;
    }
}

@media screen and (max-width: 630px) {
    #task-event-corrections-table_wrapper {
        overflow: auto;
        width: 100%;
    }
}

@media screen and (max-width: 580px) {
    #tasks-table_wrapper {
        overflow: auto;
        width: 100%;
    }
}

@media screen and (max-width: 520px) {
    .page_title_wrapper {
        flex-direction: column;
    }
    .page_title_wrapper h5{
        margin-top: 5px;
        font-size: 13px;
    }
}

@media screen and (max-width: 510px) {
    #employees-table_wrapper {
        overflow: auto;
        width: 100%;
    }
}

@media screen and (max-width: 450px) {
    html {
      font-size: 13px;
    }
    .portal-table-toolbar {
        flex-direction: column;
    }
    .portal-table-toolbar button:not(:first-child) {
        margin-left: 0;
        margin-top: 1vh;
    }
    #tasks-table_wrapper .btn {
        font-size: 12px;
    }

}

@media screen and (max-width: 380px) {
    #tasks-header {
        font-size: 15px;
        padding: 0 5px;
    }
}


@media screen and (max-width: 360px) {
    html {
      font-size: 13px;
    }
}

@media screen and (max-height: 705px) {
    #edit-task-event-form-title, #new-task-event-form-title {
        font-size: 20px;
    }
    .modal-win-content {
        max-height: 93%;
    }
}
@media screen and (max-height: 675px) {

    .modal-win-content {
        padding: 4vh 6vh;
    }
}
@media screen and (max-height: 638px) {
    .modal-win-content {
        padding: 3vh 6vh 2vh 6vh
    }
}

