/* FILE PICKER */

.file {
    position: relative;
    display: inline-block;
    cursor: pointer;
    height: 2.5rem;
    overflow: hidden;
}

.file-custom {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    height: 2.5rem;
    padding: .5rem 1rem;
    line-height: 1.5;
    color: #345;
    background-color: #fff;
    border: .075rem solid #ddd;
    box-shadow: inset 0 0.2rem 0.4rem rgba(0,0,0,.05);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    transition: border 0.3s;
}

.file-custom:before {
    position: absolute;
    top: -.075rem;
    right: -.075rem;
    bottom: -.075rem;
    z-index: 6;
    display: block;
    content: "Browse";
    /**height: 2.5rem;**/
    padding: .5rem 1rem;
    line-height: 1.5;
    color: #555;
    background-color: #eee;
    border: .075rem solid #ddd;
    box-sizing: content-box;
}

.file-custom:after {
    content: attr(data-text);
    font-weight: normal;
    color: #555;
    white-space: nowrap;
}

.file input {
    min-width: 14rem;
    margin: 0;
    filter: alpha(opacity=0);
    opacity: 0;
}

/* FILE PICKER WITH DOWNLOAD BUTTON */
.file-download-container {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
}

.file-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: none;
}

.file-download-btn:hover {
    color: white;
    text-decoration: none;
}

/* FILE PICKER WITH UPLOAD BUTTON */
.uploadButton {
    height: 2.5rem;

    color: #555;
    background-color: #eee;
    border: .075rem solid #ddd;
    line-height: 1.5;
    font-weight: bold;

    transition: 0.2s;
}

.uploadButton.selected {
    background-color: #00884A;
    color: white;
}

/* TOGGLE SWITCH */

.toggle-switch {
    display: inline-block;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch label {
    cursor: pointer;
    text-indent: -9999px;
    width: 55px;
    height: 25px;
    background: rgba(128, 128, 128, 20%);
    display: block;
    position: relative;
}

.toggle-switch label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 19px;
    height: 19px;
    border-radius: 2px;
    transition: 0.3s;
}

.toggle-switch input:not(:checked) ~ label:after {
    background: #fff;
}

.toggle-switch input:checked ~ label:after {
    background: #00884A;
}

.toggle-switch input:checked ~ label {
    background: rgba(0, 136, 74, 20%);
}

.toggle-switch input:checked ~ label:after {
    left: calc(100% - 4px);
    transform: translateX(-100%);
}

.toggle-switch label:active:after {
    width: 30px;
}