/* Loading Styles */
body:has( #block){
    overflow: hidden;
}
#block{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,.5);
}
.loading-icon{
    width: 300px;
    animation: 2.5s ease-in-out infinite rotate-con;
}
@keyframes rotate-con {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}


/* Sign-In Styles */
#sign-in-div{
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 5vh 12vw;
    align-items: center;
}
#sign-in-logo-div{
    display: flex;
    align-items: center;
    justify-content: center;
}
#sign-in-logo-div, #sign-in-logo-div>img{
    max-width: 100%;
    max-height: 800px;
}
#sign-in-modal-div{
    width: 80%;
    align-self: center;
    justify-self: center;
}
@media (max-width: 850px){
    #sign-in-div{
        flex-grow: 1;
        display: flex;
        padding: 0px;
        align-items: center;
        justify-content: center;
        max-width: 90vw;
    }
    #sign-in-logo-div{
        position: absolute;
        width: 60%;
    }
    #sign-in-modal-div{
        display: flex;
        position: relative;
        align-items: center;
        justify-content: center;
        padding: 0px;
    }
    #modal{
        max-width: 100vw;
    }
    .modal-input-div{
        grid-template-columns: 1fr 3fr;
        column-gap: 5px;
        padding: 0px 5px 10px 0px;
    }
}

/* Modal Styles */
#modal, .modal{
    background-color: var(--modal-bg);
    height: fit-content;
    width: fit-content;
    border: 1px solid var(--navbar-bg);
}
#modal-header-div, .modal-header-div{
    background-color: var(--navbar-bg);
    display: flex;
    flex-direction: row;
}
#modal-header-div>p, .modal-header-div>p{
    font-size: 22px;
    padding: 15px;
}
.modal-close-div{
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.close-modal-button{
    color: var(--bad);
    background-color: rgba(0,0,0,0);
    border: none;
    font-size: 30px;
    height: 40px;
    width: 40px;
    margin-right: 10px;
    cursor: pointer;
}
#modal-content-div, .modal-content-div{
    padding: 20px 20px 20px 20px;
}
.modal-input-div{
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 25px;
    padding: 0px 5px 10px 0px;
}
.modal-p{
    margin-bottom: 10px;
}
.modal-input-label{
    display: flex;
    align-items: center;
}
.modal-input{
    padding: 5px;
}
.modal-input-label, .modal-input, .modal-p{
    font-size: 18px;
    color: black;
    vertical-align: center;
}
.modal-input-div:has(textarea.modal-input){
    align-items: flex-start;
}
textarea.modal-input{
    resize: none;
    height: 80px;
}
.modal-submit-div{
    margin-top: 15px;
    margin-left: 50%;
    display: flex;
    justify-content: flex-end;
}
/* Slider Styles */

/* The switch - the box around the slider */
.table-switch-div>label{
    color: #000;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .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: #fff;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: var(--brand-primary);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px var(--brand-primary);
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  /* Rounded sliders */
.slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  .table-switch-div{
    display: flex;
    justify-content: end;
    align-items: center;
    padding-right: 10px;
    padding-bottom: 10px;
  }

/* Scroll Table */
.scroll-table{
    width: 100%;
    min-width: 100%;
    max-width: 80vw;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
}
.scroll-table th{
    position: sticky;
    top: 0;
    background-color: var(--brand-primary);
    border-collapse: collapse;
    border-width: 0px;
    color: #fff;
}
/* Branded Table */
.branded-table{
    width: 100%;
    border-collapse: collapse;
    /* border: 1px solid var(--border-medium); */
}
.branded-table thead{
    background-color: var(--brand-primary);
    border: 1px solid var(--border-medium);
}
.branded-table th{
    padding: 10px;
}
.branded-table th *{
    color: white;
}
.branded-table tbody tr:nth-child(odd){
    background-color: var(--table-row-odd);
}
.branded-table tbody tr:nth-child(even){
    background-color: var(--table-row-even);
}
.branded-table td>*{
    padding: 10px;
    text-align: center;
}
.branded-table td:has(a.link){
    text-align: center;
}
.branded-table td>input, .branded-table td>custominput{
    background-color: rgba(0,0,0,0);
    border: 0px;
    width: 100%;
    font-size: 16px;
}

/* Form Styles */
.branded-form{
    display: flex;
    flex-direction: column;
    padding: 2% 10%;
}
.form-title-div{
    border-bottom: 1px solid var(--border-dark);
}
.form-content{
    padding-top: 20px;
}
.form-input-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
    margin-bottom: 15px;
    column-gap: 20px;
}
.form-input-div{
    display: grid;
    grid-template-columns: 1fr 3fr;
}
.form-table-input{
    width: 100%;
    padding: 10px;
    background-color: rgba(0,0,0,0);
    border: 0px;
    font-size: 16px;
    text-align: center;
}
.form-input-div>custominput, .form-input-div>custominput>select{
    width: 100%;
    height: 100%;
}
.form-input-div input, .form-input-div>custominput, .form-input-div select, .form-input-div option, .form-input-div>label{
    font-size: 18px;
    padding-left: 10px;
    color: #000;
}
option{
    color:#000;
}


/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.form-input-div>textarea{
    font-size: 18px;
    padding: 10px;
    color: #000;
    resize: none;
    height: 80px;
}
.array-input-div{
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.array-input-element:has(>button:hover){
    background-color: pink;
}
.array-input-element{
    width: 100%;
    display: flex;
    flex-direction: row;
}
.array-input-element>input{
    flex-grow: 1;
    margin: 5px;
    margin-right: 0px;
    padding-left: 5px;
}
.array-input-element>button{
    padding: 10px;
    background-color: rgba(0,0,0,0);
    color: var(--bad);
    border: none;
    font-size: 20px;
    cursor: pointer;
}
div:has(>input[type=suggest]){
    padding: 0px;
}
div:has(>.suggestion-div){
    position: relative;
}
.suggestion-div{
    position: absolute;
    width: 100%;
    z-index: 1000;
}
.suggestion{
    z-index: 100;
    background-color: var(--border-dark);
    width: 100%;
    padding: 10px;
    cursor: pointer;
}
.suggestion:hover{
    background-color: var(--border-medium);
}

/* Auth Bar */

/* Auth Bar Styles */
#auth-bar{
    height: 7vh;
    display: flex;
    flex-direction: row;
    background-color: var(--shaded-bg);
    padding: 5px 0px;
}
.directory-link, .directory-separator{
    font-weight: bold;
    font-size: 24px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
}
.directory-link:hover{
    cursor: pointer;
    background-color: var(--navbar-bg);
}
.justify-right{
    display: flex;
    justify-content: flex-end;
    flex: 1;
}
#org-container{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30vw;
    max-width: 30vw;
    margin-left: 50px;
    right: 0px;
    cursor: pointer;
    position: relative;
}
#org-container h3{
    font-size: 22px;
    color: #fff;
}
.caret{
    font-size: 20px;
    transition: transform 1s;
    color: #fff;
    margin-top: -5px;
    margin-left: 5px;
}
#org-container:hover>.caret, #org-container.active>.caret{
    transform: rotate(180deg);
}
#directories-options{
    position: absolute;
    top: 7.5vh;
    width: 100%;
    background-color: var(--navbar-bg);
    max-height: 0px;
    overflow-y: auto;
    transition: 1s;
    z-index: 100;
}
#org-container:hover>#directories-options, #org-container.active>#directories-options{
    max-height: 200px;
}
#directories-options>p, #directories-options>a{
    padding: 10px;
    font-size: 18px;
    text-align: center;
    color: #fff;
}
#directories-options>p:hover, #directories-options>a:hover{
    background-color: var(--border-dark);
}

.remove-button{
    color: #fff;
    width: 100%;
    height: 100%;
    background-color: #00000000;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
tr:has( .remove-button:hover)>td{
    background-color: rgb(189, 122, 134);
}
@media (max-width: 850px){
    #org-container h3{
        font-size: 16px;
    }
    #org-container{
        width: 100vw;
        max-width: 100vw;
        margin-left: 0px;
        padding: 0px 10px;
    }
    #org-container:hover>#directories-options{
        max-height: 0px;
    }
    #org-container.active>#directories-options{
        max-height: 200px;
    }

    #org-container:hover>.caret{
        transform: rotate(0deg)
    }
    #org-container.active>.caret{
        transform: rotate(180deg);
    }
    .desktop-margin-top{
        margin-top: 0px;
    }
}

/* Picture Modal */

.picture-input-preview-screen{
    max-width: 80vw;
    background-color: #b9b9b9;
}
.picture-input-div{
    display: flex;
    flex-direction: column;
}

.picture-input-div>button{
    font-size: 20px;
    cursor: pointer;
    width: 50%;
    margin-left: 1px;
    min-width: 200px;
}
.picture-input-preview{
    width: 50%;
    min-width: 200px;    
    border: 1px solid #4d4d4d
}

.picture-input-take-picture-modal{
    position: absolute;
    top: 0px;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.picture-input-preview-screen{
    border: 1px solid #4d4d4d;
    position: relative;
}

.picture-input-photo-button{
    cursor: pointer;
    position: relative;
    width: 100px;
    margin-top: -50px;
    height: 40px;
    background-color: rgba(200,200,200,.6);
    border: none;
    border-radius: 60px;
}
.picture-input-photo-button{
    background-color: rgba(200,200,200,.9);
}
.modal-input-picture-div{
    display: flex;
    flex-direction: column;
}
.modal-input-picture-div>img{
    width: auto;
    height: 250px;
}


.sort-icon-down, .sort-icon-up, .sort-icon-none{
    margin: 2px;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
}
.sort-none .sort-icon-down, .sort-none .sort-icon-up{
    display: none;
}
.sort-up .sort-icon-down, .sort-up .sort-icon-none{
    display: none;
}
.sort-down .sort-icon-up, .sort-down .sort-icon-none{
    display: none;
}
.sort-icon{
    font-size: 10px;
}

.cursor{
    cursor: pointer;
}

.filter-div{
    display: flex;
    flex-direction: row;
}
.filter-div>*{
    height: 100%;
    padding: 10px
}
.minified>.filter-options{
    display: none;
}
.minified>.filter-expand-button:after{
    content: '+ Expand';
}
.filter-summary{
    display: none;
}
.minified>.filter-summary{
    display: block;
}
.filter-expand-button:after{
    content: '- Minimize';
    margin-top: 10px;
}
.filter-option{
    margin-bottom: 10px;
    margin-left: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
}
.filter-option>input{
    margin-right: 10px;
    height: 20px;
    width: 20px;
}

@media print {
    *{
        scrollbar-color: rgba(0,0,0,0) rgba(0,0,0,0) !important;
        scrollbar-width: 0px !important;
    }
    #app-icons-container, #navbar-links-div, #navbar-mobile-div{
        display: none !important
    }
    #EMF-HOME{
        display: flex !important;
    }
    #navbar, #EMF-HOME>img{
        height: 50px !important;
    }
    #navbar-header span{
        font-size: 45px !important;
    }
    #page-content{
        padding: 0px !important
    }
    .scroll-table{
        max-height: none !important;
        print-color-adjust: exact;
    }
    .branded-table thead{
        border: 0px solid black !important;
        background-color: var(--brand-primary-translucent)
    }
    .branded-table tbody tr:nth-child(odd){
        background-color: var(--table-row-odd-translucent) !important;
    }
    .branded-table tbody tr:nth-child(even){
        background-color: var(--table-row-even-translucent) !important;
    }
    .sort-icon-up, .sort-icon-down{
        display: none !important;
    }
    #footer-links-div{
        display: none !important;
    }
    #footer{
        padding: 0px !important;
        height: auto !important;
        min-height: none !important;
    }
    .no-print{
        display: none !important;
    }
    .file-viewer{
        width: 100%;
    }
}
.file-viewer{
    width: 8.75in;
    height: 11in;
}