/* Table Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #ed1c24;
    color: white;
}

.pagination a.selected {
    background-color: #ed1c24;
    color: white;
}

.pagination a.disabled {
    pointer-events: none;
    color: #ddd;
}

.pagination a:hover:not(.active):not(.disabled) {
    background-color: #ddd;
}

.pagination a:hover:not(.selected):not(.disabled) {
    background-color: #ddd;
}

#entries-info {
    float: right;
}

#select-row {
    float: left;
}

#no-result {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: #666;
}

#no-result-open {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #666;
}

/* Table Pagination History */
.pagination-history {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-history a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    margin: 0 4px;
}

.pagination-history a.active {
    background-color: #ed1c24;
    color: white;
}

.pagination-history a.disabled {
    pointer-events: none;
    color: #ddd;
}

.pagination-history a:hover:not(.active):not(.disabled) {
    background-color: #ddd;
}

#entries-info-history {
    float: right;
}

#no-result-history {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: #666;
}

/* Overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
}

#loading-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #ed1c24;
    border-left: 6px solid #ed1c24;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* A-End to Z-End */
.bg-secondaryZ {
    background-color: #e3decd !important;
}

.bg-problem {
    background: #ec0000;
    color: wheat;
}

.bg-normal {
    background: #00fd57;
    color: #110e08;
    ;
}

.bg-normal-m {
    background: #00fd57;
    color: #00fd576b;
    ;
}

.bg-warning {
    background: #d5f285;
    color: #110e08;
    ;
}

.popover {
    max-width: 100%;
    font-size: 12px;
    /* Max Width of the popover (depending on the container!) */
}

.po {
    cursor: pointer;
}

@media only screen and (max-width: 1199px) {
    #entries-info {
        float: none;
        margin: 0 auto;
        text-align: center;
    }

    #entries-info-history {
        float: none;
        margin: 0 auto;
        text-align: center;
    }

    #select-row {
        float: none;
        margin: 0 auto;
        text-align: center;
    }
}


/* Rotary Plannet CSS */
.container {
    margin-top: 9vh;
    padding-left: 10vw;
    padding-top: 7vh;
    display: grid;
    height: 70vh;
    place-items: center;
    overflow: hidden;
    /* background-color: lightgrey; */
    /* --circleDiameter: 460px; */
    --circleDiameter: 24vw;
    --planets: calc(var(--circleDiameter) / 5.5)
}

.hero-circle {
    position: relative;
    width: var(--circleDiameter);
    height: var(--circleDiameter)
}

.inner-img {
    position: absolute;
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 10px;
    width: 18vw;
    /* height: 100px; */
}

.inner-circle_red {
    position: absolute;
    top: 48.5%;
    left: 48.5%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 10px;
    width: 25vw;
    height: 25vw;
}

.inner-circle_orange {
    position: absolute;
    top: 48.5%;
    left: 48.5%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 10px;
    width: 24vw;
    height: 24vw;
}

.hero-rotate {
    position: relative;
    top: -7px;
    left: -7px;
    width: 100%;
    height: 100%;
    /* border: 5px solid rgba(97, 82, 72, 0.9); */
    border-radius: 100%;
    animation: rotate 60s linear infinite;
}

.planet {
    position: absolute;
    width: var(--planets);
    aspect-ratio: 1;
    border-radius: 100%;
    animation: maintain 60s linear infinite;
}


.planet:nth-child(1) {
    top: calc(-1 * var(--planets) / 2);
    left: calc(var(--circleDiameter) / 2 - var(--planets) / 2 - 5px);
}

.planet:nth-child(2) {
    top: calc(var(--circleDiameter)/ 4 - var(--planets) / 2 - 5px);
    right: calc(-1 * var(--planets) / 4.5);
}

.planet:nth-child(3) {
    top: calc(var(--circleDiameter)/ 4 - var(--planets) / 2 - 5px);
    left: calc(-1 * var(--planets) / 4.5);
}

.planet:nth-child(4) {
    bottom: calc(var(--circleDiameter)/ 4 - var(--planets) / 2 - 5px);
    left: calc(-1 * var(--planets) / 4.5);
}

.planet:nth-child(5) {
    bottom: calc(var(--circleDiameter)/ 4 - var(--planets) / 2 - 5px);
    right: calc(-1 * var(--planets) / 4.5);
}

.planet:nth-child(6) {
    bottom: calc(-1 * var(--planets) / 2);
    left: calc(var(--circleDiameter) / 2 - var(--planets) / 2 - 5px);
}

.planet>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border: 5px solid white; */
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: scale 1s linear infinite alternate;
    background-color: white;
}

.outerCircle {
    background-color: transparent;
    border: 0.3vw solid #ed1c24;
    opacity: .9;
    border-left: 0.3vw solid transparent;
    border-right: 0.3vw solid transparent;
    border-radius: 100%;
    width: 25vw;
    height: 25vw;
    margin: 0 auto;
    animation: rotate 5s linear infinite;
}

.innerCircle {
    background-color: transparent;
    border: 0.3vw solid #ff7a00;
    opacity: .9;
    border-right: 0.3vw solid transparent;
    border-left: 0.3vw solid transparent;
    border-radius: 100%;
    width: 24vw;
    height: 24vw;
    margin: 0 auto;
    animation: maintain 10s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes maintain {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes scale {
    0% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Show Hide Password CSS */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    cursor: pointer;
}

.border-white {
    border: 2px solid white;
}

/* Background Animate */
.bg-animate {
    background: linear-gradient(-45deg, #ed1c24, #ff7a00, #ed1c24, #ff7a00);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Background Animate */


/* Maps Box Size */
.main-box {
    height: 83vh;
}

#map {
    height: 83vh;
    width: 100%;
}

/* Maps Box Size */


/* Dark Mode Slider switch */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 66px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 65px;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #73C0FC;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    border-radius: 20px;
    left: 2px;
    bottom: 2px;
    z-index: 2;
    background-color: #e8e8e8;
    transition: .4s;
}

.sun svg {
    position: absolute;
    top: 6px;
    left: 34px;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.moon svg {
    fill: #73C0FC;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
    width: 24px;
    height: 24px;
}

/* .switch:hover */
.sun svg {
    animation: rotate 15s linear infinite;
}

@keyframes rotate {

    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* .switch:hover */
.moon svg {
    animation: tilt 5s linear infinite;
}

@keyframes tilt {

    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.input:checked+.slider {
    background-color: #183153;
}

.input:focus+.slider {
    box-shadow: 0 0 1px #183153;
}

.input:checked+.slider:before {
    transform: translateX(28px);
}

.switch input:empty~span:before {
    width: 35px;
    border-radius: 15px;
}

.switch input:checked~span:after {
    margin-left: 30px;
}

.switch input:empty~span {
    margin: 2px 0;
    height: 30px;
    width: 62px;
    border-radius: 15px;
}

/* End Dark Mode Slider switch */