[data-theme=dark],
.theme-dark {
    --bulma-scheme-main: #222;
    --bulma-background: #222;
}

body {
    position: relative;
}

.navbar {
    border-radius: 0 !important;
    height: 52px;
    margin: 0 !important;
    position: fixed !important;
    width: 100vw;
    z-index: 9500;
}

.is-28x28 {
    width: 28px;
    height: 28px;
}

.div-logo-login-page {
    margin-top: 20vh;

    figure > img {
        max-height: 125px;
    }
}

.has-icons-right .toggle-password {
    position: relative;
}

.toggle-password-button {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.toggle-password-button svg {
    width: 1em;
    height: 1em;
    color: #888;
}

.toggle-password-button span {
    display: none;
}

.div-import-file {
    min-width: 820px;
}

.div-import-file > div.dropzone-container {
    min-height: 374px;
    border-radius: 5px;
    justify-content: center;
    font-size: 1.5rem;
}

.notification-container-login-page {
    margin-top: 10px;
    max-width: 20vw !important;
}

.iti { width: 100%; }

.pagination-link.is-current,
.is-primary {
    background-color: rgb(0, 102, 87) !important;
    border-color: rgb(0, 102, 87);
    color: #fff;
}

.navbar-brand {
    width: 10vw;
    min-width: 200px;
}

aside {
    padding-top: 70px !important;
    position: fixed;
    top: 0;
    border-radius: 0 !important;
    width: 200px;
    height: 100%;
    z-index: 9000;
    background-color: rgb(0, 102, 87) !important;
    overflow: auto;
}

aside a {
    background-color: rgb(0, 102, 87) !important;

}

.menu-bottom {
    position: absolute;
    bottom: 50px;
}

.logo {
    margin: auto;
}

footer {
    padding: 1.5rem !important;
    position: absolute;
    width: 100vw;
    bottom: 0;
}

.main-content {
    margin-bottom: 0 !important;
    margin-left: 200px;
    padding: 70px 50px 150px 50px;
    min-height: 100vh;
}

.notification-wrapper {
    position: fixed;
    right: 30px;
    z-index: 9999;
}

.notification-wrapper .notification {
    padding-right: 50px;
}

[data-theme=dark] table thead a {
    text-decoration: none;
    color: white;
}

[data-theme=light] table thead a {
    text-decoration: none;
    color: black;
}

.sortable::after {
    font-family: 'Font Awesome 6 Free', sans-serif;
    content: "\f0dc ";
    margin-left: 10px;
}

.asc::after {
    font-family: 'Font Awesome 6 Free', sans-serif;
    content: "\f0de ";
    margin-left: 10px;
}

.desc::after {
    font-family: 'Font Awesome 6 Free', sans-serif;
    content: "\f0dd ";
    margin-left: 10px;
}

.pagination-list {
    margin: 0 !important;
}

#navbar-btn-mobile {
    display: none;
}

#search.hero,
#filters.hero {
    display: none;
}

#search.hero.is-active,
#filters.hero.is-active {
    display: block;
}

.select,
.select select {
    width: 100%;
}

.dropdown-content {
    max-height: 250px;
    overflow-y: scroll;
}

.dropdown-trigger {
    width: 100%;
}

.dropdown-trigger button {
    width: 100%;
}

.selected-items div {
    border-radius: 10px;
    min-width: 75px;
}

.modal.is-active {
    z-index: 9999;
}

.control, .form-notification {
    max-width: 500px;
}

.intervention-form .control {
    max-width: 100%;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
}

fieldset legend {
    font-weight: bold;
}

.container-import-in-progress {
    height: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
}

.circle, .circle::before {
    content: " ";
    margin: 15px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0;
    transition: all 0.3s;
    background-color: orange;
}

.circle::before {
    animation: myMove 2s infinite;
    position: absolute;
    background-color: rgb(230, 169, 57)
}

@keyframes myMove {
    50%   {
        transform: scale(2);
        opacity: 0
    }
    100%   {
        transform: scale(2);
        opacity: 0
    }
}

.progress {
    width: 100%;
    border-radius: 9999px;
    height: 16px;
    display: inline-flex;
    position: relative;
}

.progress .bar {
    height: 100px;
    position: absolute;
}

.columns.is-desktop {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0px;
}

.bordered {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 35px;
    margin-bottom: 10px;
}

.bordered .control {
    max-width: 100%;
}

.no-margin-icon-btn {
    padding: 5px;
}

.no-margin-icon-btn .icon {
    margin: 0 !important;
}

.container-flex {
    display: flex;
}

.side-panel {
    width: 45%;
}

.version-panel {
    width: 140px;
    padding: 15px;
    justify-content: center;
    display: block;
}

.error-panel {
    max-height: 470px;
    overflow-y: scroll;
}

.full-width {
    width: 100%;
}


.profile-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.profile-upload input[type="file"] {
    display: none;
}
.profile-upload .upload-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.profile-upload:hover .upload-icon,
.profile-upload:hover .profile-img {
    opacity: 0.65;
}
.profile-upload .profile-img {
    display: block;
    border-radius: 50%;
    transition: opacity 0.2s ease-in-out;
}
.profile-upload:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

input[type=radio][name=switch-theme] {
    opacity: 0;
}

input[type=radio][name=switch-theme] + .switch-theme-image-wrapper > img {
    cursor: pointer;
    border-radius: 10px;
}

[data-theme=dark]
input[type=radio][name=switch-theme]:checked + .switch-theme-image-wrapper > img {
    box-shadow: 0 0 8px rgba(192, 192, 226, 0.6);
}

[data-theme=light]
input[type=radio][name=switch-theme]:checked + .switch-theme-image-wrapper > img {
    box-shadow: 0 0 8px rgba(0, 0, 200, 0.6);
}

.switch-theme-label {
    margin-top: 10px;
}

input[type=radio][name=switch-theme] + .switch-theme-image-wrapper + .switch-theme-label {
    color: gray;
}

input[type=radio][name=switch-theme]:checked + .switch-theme-image-wrapper + .switch-theme-label {
    color: black;
}

[data-theme=dark]
input[type=radio][name=switch-theme]:checked + .switch-theme-image-wrapper + .switch-theme-label {
    color: white;
}

.switch-theme-image-wrapper {
    position: relative;
    width: 15vw;
    display: inline-block;
}

.switch-theme-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.icon-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 1.2rem;
    color: rgb(0, 102, 87);
    padding: 4px;
    opacity: 0;
}

input[type=radio][name=switch-theme]:checked + .switch-theme-image-wrapper .icon-overlay {
    opacity: 1;
}

.ts-control {
    height: 40px;
    border-radius: 0.5em;
    border-color: rgb(214, 217, 224);
}

.ts-control input {
    color: black;
}

[data-theme=dark] .ts-control {
    border-color: rgb(53, 58, 70);
    background: black !important;
}

[data-theme=dark] .ts-control input {
    color: white !important;
}

.progress-title {
    position: absolute;
    background-color: white;
    display: none;
}

.progress-title.is-active {
    display: block;
}

.ts-control {
    height: 40px;
    border-radius: 0.5em;
    border-color: rgb(214, 217, 224);
}

.ts-control input {
    color: black;
}

[data-theme=dark] .ts-control {
    border-color: rgb(53, 58, 70);
    background: black !important;
}

[data-theme=dark] .ts-control input {
    color: white !important;
}

.progress-title {
    position: absolute;
    background-color: white;
    display: none;
}

.progress-title.is-active {
    display: block;
}

@media (max-width: 768px) {
    @keyframes fadeInRight {
        0% {
            opacity: 0;
            transform: translateX(-100px);
        }

        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @-webkit-keyframes fadeInRight {
        0% {
            opacity: 0;
            -webkit-transform: translateX(-100px);
        }

        100% {
            opacity: 1;
            -webkit-transform: translateX(0);
        }
    }
    @keyframes fadeOutRight {
        0% {
            opacity: 1;
            transform: translateX(0);
        }

        100% {
            opacity: 0;
            transform: translateX(-100px);
        }

    }

    @-webkit-keyframes fadeOutRight {
        0% {
            opacity: 1;
            -webkit-transform: translateX(0);
        }

        100% {
            opacity: 0;
            -webkit-transform: translateX(-100px);
        }
    }

    .table-responsive {
        max-width: 100vw;
        overflow-x: scroll;
    }

    .main-content {
        margin-left: 0;
    }

    aside {
        -webkit-animation-duration: 0.5s;
        animation-duration: 0.5s;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
        -webkit-animation-name: fadeOutRight;
        animation-name: fadeOutRight;
    }

    aside.is-active {
        display: block !important;
        -webkit-animation-name: fadeInRight;
        animation-name: fadeInRight;
        -webkit-animation-duration: 0.5s;
        animation-duration: 0.5s;
    }

    aside.hide {
        display: none !important;
    }

    .navbar-brand {
        width: 100%;
    }

    #navbar-btn-mobile {
        display: block;
    }

    .selected-items {
        overflow: scroll;
    }
}