@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

*{
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

* .modal-body{
    margin: unset;
}

.main{
    width: 100%;
    display: flex;
    justify-content: center;
}

.loginPage{
    background-image: url(/media/footer_bg.jpeg);
    background-size: 3000px;
}

.loginBox{
    margin: auto;
    margin-top: 200px;
    background-color: white;
    width: 20%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.8);
}

.loginBox hr{
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.8);
}

.loginBox img{
    margin: 10px;
}

.loginBox .loginForm{
    display: flex;
    flex-direction: column;
    margin: 5px;
}

.loginForm .errorBox{
    background-color: red;
    color: white;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.errorBox p{
    margin: unset;
}

.loginForm .loginField{
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.loginField input{
    padding: 5px;
    width: -moz-available;
    width: -webkit-fill-available;
}

.loginForm .loginBtn{
    border: 2px solid transparent;
    margin-top: 15px;
    padding: 5px;
    border-radius: 5px;
    background-color: red;
    font-weight: bolder;
    color: white;
    cursor: pointer;
    transition: all .2s;
}

.loginBtn:hover{
    color: black;
    padding: 6px;
    background-color: #ff6666;
}

/* VIEW */
table {
    border-spacing: 0;
    width: 100%;
    border: 1px solid #ddd;
}

th, td {
    text-align: left;
}

.fileTable tr{
    display: none;
}

.fileTable tr:first-child{
    display: table-row;
}

.fileTable th{
    font-weight: bolder;
    text-transform: uppercase;
    background-color: white;
    padding: 16px;
}

.viewTable th{
    font-weight: bolder;
    text-transform: uppercase;
    padding: 16px;
}

.fileTable tr:hover{
    background-color: lightgray !important;
}

.fileTable td > a{
    display: block;
    padding: 16px;
    text-decoration: none;
    color: black;
}

.viewTable td {
    padding: 16px;
    text-decoration: none;
    color: black;
}

.viewTable td .td{
    display: flex;
    flex-direction: row;
}

.viewTable td .td input{
    width: -webkit-fill-available;
}

.viewTable td .td a{
    width: 35px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color:  rgba(239, 239, 239, 0.3);
    color:  rgb(170, 170, 170);
    border: 1px inset rgba(118, 118, 118, 0.3);
    border-radius: 10%;
    margin-left: 2px;
}

.fileTable td .rowIcon{
    font-size: larger;
    text-align: center;
    padding-inline-start: 15px;
    padding-inline-end: 5px;
}

.viewTable td > input{
    width: -moz-available;
    width: -webkit-fill-available;
    padding: 5px;
    border-radius: 5px;
    border: 2px solid gray;
}

.viewTable td select{
    width: -moz-available;
    width: -webkit-fill-available;
    padding: 5px;
    border-radius: 5px;
    border: 2px solid gray;
}

.viewTable td > textarea{
    min-width: -moz-available;
    min-width: -webkit-fill-available;
    min-height: 40px;
    border: 2px solid gray;
    padding: 5px;
    border-radius: 5px;
    resize: vertical;
}

.viewTable td > a.cvBtn{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    width: fit-content;
    appearance: none;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    color: black;
    text-decoration: none;
}

.viewTable td>a.cvBtn:hover{
    background-color: lightgray;
    color: black;
}

a.cvBtn > i,
a.cvBtn > p{
    margin: 10px;
}

a.cvBtn > i{
    font-size: xx-large;
}

#the-count{
    float: right;
    padding: 0.1rem 0 0 0;
    font-size: 0.875rem;
}

tr:nth-child(odd){
    background-color: #f2f2f2
}

div#nav{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

div#nav a{
    border: 2px solid black;
    border-radius: 5px;
    padding: 5px;
    width: 25px;
    height: 25px;
    text-align: center;
    margin: 5px;
    cursor: pointer;
}

div#nav a.active{
    background-color: #f33;
    color: white;
}

div#nav a:hover{
    background-color: #ff6666;
    color: white;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modalGet {
    display: none; /* Hidden by default */
}
  
/* Modal Header */
.modal-header {
    padding: 2px 16px;
    background-color: #f33;
    color: white;
    border-radius: 10px 10px 0 0;
}
  
/* Modal Body */
.modal-body {
    padding: 2px 16px;
    height: fit-content;
    background-color: white;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
}

.modal-body input{
    width: 75%;
    padding: 5px 10px;
    margin: 5px 0px 5px 0px;
    font-weight: 600;
    border: 2px solid black;
    border-radius: 5px;
}

.modal-body textarea{
    resize: none;
    padding: 5px;
    width: -moz-available;
    width: -webkit-fill-available;
    height: 450px;
}

/* Modal Footer */
.modal-footer {
    padding: 2px 16px;
    background-color: #f33;
    color: white;
    
    display: flex;
    flex-direction: row-reverse;
    border-radius: 0 0 10px 10px;
}

.modal-footer button{
    margin-top: .83em;
    margin-bottom: .83em;
    margin-left: 5px;
    color: #f2f2f2;
    font-weight: 600;
    padding: 10px 15px;
    border: unset;
    background-color: #5cb85c;
    border-radius: 5px;
}

/* Modal Content */
.modal-content {
    position: relative;
    margin: auto;
    margin-top: 250px;
    padding: 0;
    width: 50%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 10px;
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* The Close Button */
.close {
    color: #f3f3f3;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #aaa;
    text-decoration: none;
    cursor: pointer;
}

.errBox{
    padding: 10px 10px;
    color: white;
    border-radius: 5px;
    margin: 2.5px;
}

.errBox.success{
    background-color: lightgreen;
}

.errBox.warning{
    background-color: lightgoldenrodyellow;
    color: black;
}

.errBox.error{
    background-color: lightcoral;
}

/* Dropdown Button */
.dropbtn {
    background-color: unset;
    text-transform: uppercase;
    font-weight: bolder;
    color: black;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropbtn i{
    font-size: larger;
    padding: 5px;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
    color: #2980B9;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    border: 1px lightgray solid;
}

/* Links inside the dropdown */
.dropdown-content button, .dropdown-content a {
    width: 100%;
    color: black;
    text-align: left;
    padding: 12px 16px;
    background-color: unset;
    border: unset;
    display: flex;
    align-content: center;
    justify-content: flex-start;
    text-decoration: none;
}

.dropdown-content a{
    width: unset;
}

.dropdown-content button i, .dropdown-content a i{
    margin: 5px;
}

.dropdown-content button p, .dropdown-content a p{
    margin: 5px;
}


/* Change color of dropdown links on hover */
.dropdown-content button:hover, .dropdown-content a:hover {
    background-color: #ddd;
    cursor: pointer;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

/* CUSTOM */
.bread{
    width: 80%;
    display: flex;
    /* margin-bottom: 15px; */
}
.bread ul {
    width: 100%;
    padding: 10px 16px;
    list-style: none;
    background-color: #eee;
    /* border-radius: 10px; */
}

.bread ul li {
    display: inline;
    font-size: 18px;
}

.bread ul li + li::before {
    padding: 8px;
    color: black;
    content: ">>";
}

.bread ul a,
.bread ul li a{
    color: black;
    text-decoration: none;
    font-weight: bolder;
}

.bread ul a:hover,
.bread ul li a:hover{
    color: #2779BF;
    text-decoration: underline;
}

.content{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navBar{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;

    margin-bottom: 5px;
    box-shadow: 0px 0px 5px black;
}

.navBar img{ 
    height: 80px;
    margin: 15px;
    z-index: 100;
}

.navBar > ul {
    padding-left: 0px;
    color: black;
    text-align: center;
}

.navBar > ul > li {
    display: inline-block;
    padding: 10px 20px;
    color: black;
}

.navBar > ul > li:hover {
    color: #f33;
    cursor: pointer;
    text-decoration: underline;
}

.navBar > ul > li a{
    color: unset;
    text-decoration: none;
}

.navBar > ul > li .dropbtn:hover, .navBar > ul > li .dropbtn:focus{
    color: #f33;
}

.navBar > ul > li .dropdown-content{
    color: black;
}

.btnsBox{
    display: flex;
    width: 80%;
}

.btnsBox form{
    margin-top: unset;
    display: flex;
    margin-block-end: unset;
}

.menuLabel{
    min-width: 100px;
    max-width: 500px;
    height: 25px;
    color: black;
    padding: 5px;
    margin: 5px 5px 5px 0px;
    border: 1px solid lightgray;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: unset;
}

.menuLabel:hover{
    background-color: lightgray;
    border: 1px solid gray;
}

.menuLabel i{
    margin: 2.5px;
}

.menuLabel p{
    text-transform: uppercase;
    font-weight: bold;
    margin: 2.5px;
}

.menuLabel.disabled{
    background-color: lightgray;
    border: 1px solid gray;
    color: gray;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.8;
}

.menuLabel.confirm{
    background-color: forestgreen;
    border: 1px solid darkgreen;
    color: white;
}

.menuLabel.confirm:hover {
    background-color: lightgreen;
    border: 1px solid forestgreen;
    color: black;
}

.menuLabel.reset{
    color: crimson;
}

.menuLabel.reset:hover {
    color: red;
}

a.menuLabel{
    text-decoration: none;
}

.dropdown-content.menu{
    left: 302px;
    top: 235px;
}

.tableBox{
    width: 80%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 25px;
}

#togglePassword{
    margin-left: -30px;
    cursor: pointer;
    vertical-align: middle;
}

#togglePassword:hover{
    color: #f33;
}

.selectDir{
    padding: 5px;
    border: 1px solid lightgray;
    border-radius: 5px;
    color: black;
    margin: 5px 5px 5px 0px;
}

/* Hamburger Button and menu */
.hamMenu{
    display: none;
}

.hamburger {
    /* position: fixed; */
    z-index: 100;
    /* top: 1rem; */
    margin-left: auto;
    /* right: 1rem; */
    padding: 4px;
    /* border: black solid 1px; */
    border: none;
    background: white;
    cursor: pointer;
}

.closeIcon {
    display: none;
}

.menu {
    position: fixed;
    transform: translateY(-100%);
    transition: transform 0.2s;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: white;
    color: white;
    list-style: none;
    padding-top: 8rem;
}

.menu li {
    padding: 5px 5px 5px 15px;
}

.menu li a {
    color: black;
    text-decoration: none;
}

.showMenu {
    transform: translateY(0);
}

.hamMenu > ul hr{
    width: 90%;
    margin: 5px auto 5px auto;
    border-style: solid;
    border-width: 1px;
}

/* INPUT BOX WIH PREFIX */
.inputBox {
    display: flex;
    align-items: center;
    width: -moz-available;
    width: -webkit-fill-available;
    background: #fff;
    border: 1px solid #a0a0a0;
    border-radius: 4px;
    padding-left: 0.5rem;
    overflow: hidden;
    font-family: sans-serif;

    padding: 5px;
    border-radius: 5px;
    border: 2px solid gray;
}

.inputBox .prefix {
    font-weight: 300;
    font-size: 14px;
    color: #999;
    padding: 0 .25em 0 0;
}

.inputBox input {
    flex-grow: 1;
    background: #fff;
    border: none;
    outline: unset;
}

.inputBox:focus-within {
    border-color: black;
}

.inputBox.searchBar{
    height: 25px;
    margin: 5px 0 5px;
    width: 150px;
    border: 1px solid lightgray;
    transition: all .3s;
}

.inputBox.searchBar .prefix{
    padding: 0 10px 0 5px;
}

.inputBox.searchBar:focus-within{
    border-color: black;
    width: 650px;
}

.tip, td .tip{
    width: 130px;
    font-size: xx-small;
    font-style: italic;
    display: inherit;
}

th .tip{
    width: 130px;
    font-size: xx-small;
    font-style: italic;
    display: inherit;
    font-weight: normal;
    text-transform: none;
}

.check{
    margin-left: -30px;
    vertical-align: middle;
    display: none;
    color: green;
}

input.textCheck:valid ~ i.check{
    display: inline;
}

input.textCheck:invalid ~ i.check{
    display: none;
}

select.textCheck:valid ~ i.check{
    margin-left: -40px;
    display: inline;
}

select.textCheck:invalid ~ i.check{
    margin-left: -40px;
    display: none;
}

input.passCheck ~ i.check{
    display: inline;
    position: absolute;
    margin-left: -40px;
    padding: 5px;
}

input.passCheck:invalid ~ i.check{
    display: none;
}

.viewuserBtn{
    margin-left: -30px;
    vertical-align: middle;
    color: black;
}

.viewuserBtn:hover{
    color: #999;
}

tbody.show-hide tr:nth-child(odd){
    background-color: #f2f2f2;
}
tbody.show-hide tr:nth-child(even){
    background-color: white;
}

.bi.new{
    color:orange;
}

.bi.urgent{
    color: red;
}

.bi.done{
    color: lime;
}


@media only screen and (max-width: 425px) {
    .fileTable td:nth-child(odd), .fileTable th:nth-child(odd){
        display: none;
    }

    .btnsBox, .bread, .tableBox{
        width: 95%;
    }

    .dropdown-content.menu {
        left: 148px;
        top: 118px;
    }

    .dropdown-content {
        left: 252px;
    }

    .modal-content{
        width: 90%;
    }
}

@media only screen and (max-width: 768px) {
    .navBar > ul{
        display: none;
    }

    .navBar .hamBtn{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamBtn .open {
        display: block;
    }

    /* .navBar .hamMenuBG{
        display: block;
    } */

    .navBar .hamMenu{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .loginBox{
        width: 50%;
    }
}