/* File dropbox */

.dropbox {
    border-radius: 10px;
    padding: 80px 20px;
    position: relative;
    width: 75%;
    max-width: 700px;
    margin: 30px auto;
    overflow-x: auto;
    text-align: center;
    
    background: rgba(181, 204, 167, 0.3);
    font-size: 1.25rem;

    outline: 2px dashed var(--background-color);
    outline-offset: -10px;

    -webkit-transition: outline-offset .15s ease-in-out, background-color .15s linear;
    transition: outline-offset .15s ease-in-out, background-color .15s linear;
}

.dropbox a:hover, .dropbox a:focus {
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropbox.is-dragover {
    outline-offset: -20px;
    outline-color: var(--outline-color);
    background-color: var(--off-white-color);
}

.dropbox-dragndrop {
    display: inline;
}
.dropbox-icon {
    width: 100%;
    height: 100px;
    margin-bottom: 20px;

    > iconify-icon {
        color: rgba(94, 80, 63, 0.5);
        font-size: 100px;
    }
}

@media screen and (max-width: 565px) {
    .dropbox {
        width: 90%;
        padding: 60px 10px;
    }
    .dropbox-icon {
        height: 80px;
        margin-bottom: 10px;
        > iconify-icon {
            font-size: 80px;
        }
    }
}

.dropbox.is-uploading .dropbox-input, .dropbox.is-processing .dropbox-input, .dropbox.is-success .dropbox-input, .dropbox.is-error .dropbox-input {
    visibility: hidden;
}

.dropbox-uploading, .dropbox-processing, .dropbox-success, .dropbox-error {
    display: none;
}

.dropbox.is-uploading .dropbox-uploading, .dropbox.is-processing .dropbox-processing, .dropbox.is-success .dropbox-success, .dropbox.is-error .dropbox-error {
    display: block;
    position: absolute;
    top: 50%;
    right: 0px;
    left: 0px;

    -webkit-transform: translateY( -50% );
    transform: translateY( -50% );
}

.dropbox-uploading, .dropbox-processing {
    font-style: italic;
}

.dropbox-success {
    -webkit-animation: appear-from-inside .25s ease-in-out;
    animation: appear-from-inside .25s ease-in-out;
}

@-webkit-keyframes appear-from-inside {
    from    { -webkit-transform: translateY(-50%) scale(0); }
    75%     { -webkit-transform: translateY(-50%) scale(1.1); }
    to      { -webkit-transform: translateY(-50%) scale(1); }
}
@keyframes appear-from-inside {
    from    { -webkit-transform: translateY(-50%) scale(0); }
    75%     { -webkit-transform: translateY(-50%) scale(1.1); }
    to      { -webkit-transform: translateY(-50%) scale(1); }
}

.dropbox-restart {
    font-weight: bold;
}
.dropbox-restart:focus, .dropbox-restart:hover, .dropbox-file + label:hover strong,
.dropbox-file:focus + label strong, .dropbox-file.has-focus + label strong {
    color: var(--hover-color);
}
.dropbox-file {
    width: .1px;
    height: .1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}
.dropbox-file + label {
    max-width: 80%;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
}
.dropbox-file:focus + label, .dropbox-file.has-focus + label {
    outline: 1px dotted #000;
    outline: -webkit-focus-ring-color auto 5px;
}

/* Supplier selection */

#supplier {
    position: relative;
    text-align: center;
    max-width: fit-content;
    margin: auto;
    margin-top: 3em;
}

#select-arrow {
    position: absolute;
    font-size: 22px !important;
    right: 0;
    top: .4em;
    padding: .2em .7em;
    border-left: 1.5px solid var(--outline-color);
    transition: .3s;
    pointer-events: none;
}

#supplier-selection {
    min-width: 250px;
    font-size: 16px;
    padding: 1em 2em;
    padding-right: 4em;
    border-radius: 15px;
    appearance: none;
    border: none;
    color: var(--hover-color-brown-light);
    background: rgba(198, 172, 143, .4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
    transition: .3s;
    cursor: pointer;
}
@media (max-width: 565px) {
    #supplier-selection {
        min-width: none;
        padding: .7em 1.5em;
        padding-right: 4em;
        margin: .2em;
        margin-bottom: 0px;
    }
    #select-arrow {
        top: .37em;
    }
}

#supplier-selection:hover {
    background: var(--light-hover-color-brown);
    color: var(--off-white-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), inset 0 -3px 0 rgba(0, 0, 0, 0.32);

    + #select-arrow {
        color: var(--outline-color);
    }
}
#supplier-selection:active {
    transform: translateY(2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), inset 0px -1px 0 rgba(0, 0, 0, 0.22);
    
    + #select-arrow {
        padding: .35em .7em;
    }
}
#supplier-selection:focus {
    outline: none;
}

/* Results */

#no-result {
    padding: 1em;
}

#nb-tables {
    display: none;
    color: #818C8D;
    margin-top: 0px;
}

#results-wrapper {
    display: none;
    margin: 0 5%;
    margin-bottom: 5%;
    text-align: start;
}
@media (max-width: 565px) {
    #results-wrapper {
        width: auto;
        padding: 0 0.3em;
    }
}

input[type='radio'] {
    display: none;
}
input[type='radio']:checked + .accordion-item .item-title {
    color: var(--background-color);

    > iconify-icon {
        transform: rotate(180deg);
    }
    > :hover {
        color: var(--background-color);
    }
}
input[type='radio']:checked + .accordion-item .item-content {
    margin-top: 1.5em;
    margin-bottom: 2em;
    height: auto;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s, opacity 0.7s;
}

.item-title {
    /* border-radius: 2em; */
    padding: .3em 0;
    color: var(--background-color-darker);
    border-bottom: 1px solid rgba(81, 127, 71, .5);
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1.5em;
}
.item-title:hover {
    color: var(--active-color);
}
.item-content {
    width: 95%;
    margin: 0px auto;
    overflow-y: hidden;
    height: 0px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}
