:root {
    --default-color: var(--white);
    --effect-color: var(--gray-light-2);
    --content-color: var(--white);
}

.card:not(.no-style) {
    width: 100%;
    padding: 15px;
    background-color: var(--white);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    position: relative;
    border-radius: 15px;
    transition: all 0.25s;
}

.card.expanded .button-expand-card{
    position: fixed;
    top: 30px;
    z-index: calc(var(--index-expanded-card) + 1);
    right: 30px;
}

.card.expanded .card {
    padding: unset;
    background-color: unset;
    box-shadow: unset;
}

.card.expanded {
    height: calc(100dvh - 50px);
    max-height: calc(100dvh - 50px);
    margin: 0px;
    position: absolute !important;
    z-index: var(--index-expanded-card);
    top: 25px;
    bottom: 25px;
    left: 25px;
    right: 25px;
    width: unset !important;
    overflow: auto;
    transition: none !important;
}

.card > .header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card > .header img {
    filter: invert(1);
    max-height: 22px;
    margin-left: 5px
}

.card:has(> .header):has(> .body) {
    display: grid;
    grid-template-rows: auto 1fr;
}

.card > .body > .highlight {
    font-size: 5rem;
    font-weight: 100;
    text-align: center;
    color: var(--color);
    padding: 20px;
}

.card > .body > .highlight * {
    color: var(--color);
}

.card.animated {
    cursor: pointer;
 }

 .card.animated,
 .card.animated * {
     transition: all .8s ease-out;
 }

 /* .card.animated.active {
     background: var(--effect-color)!important;
     transition: all .8s ease-out;
 } */

 .card.animated.active > .header img{
    filter: invert(0);
 }
 .card.animated.active,
 .card.animated.active *{
     color: var(--content-color)!important;
     transition: all .8s ease-out;
 }

 .card.animated.active.right-left {
     background: linear-gradient(to right, var(--default-color) 50%, var(--effect-color) 50%);
     background-size: 200% 100%;
     background-position: bottom right;
     transition: all .7s ease-out;
 }

 .card.animated.right-left {
     background-position: bottom left;
 }
 .card.animated.active.left-right {
     background: linear-gradient(to left, var(--default-color) 50%, var(--effect-color) 50%);
     background-size: 200% 100%;
     background-position: bottom left;
     transition: all .7s ease-out;
 }

 .card.animated.left-right {
     background-position: bottom right; 
 }

 /* TOP TO BOTTOM */
 .card.animated.active.bottom-top {
     background: linear-gradient(to bottom, var(--default-color) 50%, var(--effect-color) 50%);
     background-size: 100% 200%;
     background-position: bottom left;
     transition: all .5s ease-out;
 }

 .card.animated.bottom-top {
     background-position: top left;
 }

 /* BOTTOM TO TOP */
 .card.animated.active.top-bottom {
     background: linear-gradient(to top, var(--default-color) 50%, var(--effect-color) 50%);
     background-size: 100% 200%;
     background-position: top left;
     transition: all .5s ease-out;
 }

 .card.animated.top-bottom {
     background-position: bottom left;
 }

@media screen and (max-width: 1080px) {
    .card {
        max-width: calc(100vw - 20px);
    }

    .card > .body:has(.table),
    .card > .body:has(.table-simple) {
        overflow-x: hidden;
    }
}

.card.controller.expanded {
    height: fit-content;
    max-height: fit-content;
    padding-top: 65px;
}

.card.controller.expanded > .filters .see-more-filters .title{ 
    display: block !important;
    font-weight: bold;
    font-size: 1.2rem;
}

.card.controller.expanded > .filters .see-more-filters {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--gray-light-3);
    padding: 5px;
    border-radius: 10px;
}
.card.controller.expanded > .filters{
    flex-wrap: wrap;
}

.card.controller.expanded > .actions{
    display: none;
}

.card.controller {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-height: 82px;
    margin-bottom: 10px;
    gap: 10px;
}

.card.controller .filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card.controller .filters .input-group {
    display: grid;
    gap: 3px;
    background-color: var(--gray-light-4);
    border: 1px solid var(--gray-light-3);
    padding: 5px 7px;
    border-radius: 5px;
}

.card.controller .filters .input-group > label {
    font-weight: bold;
    font-size: 0.8rem;
    text-align: left;
    width: unset;
}

.card.controller .actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card.controller .actions button {
    height: 62px;
}

@media screen and (min-width: 1081px) {
    .card.controller .filters .multi-select-container,
    .card.controller .filters input[type="text"],
    .card.controller .filters select {
        width: 250px !important;
    }

    .card.controller .filters .input-group * {
        flex-wrap: nowrap !important;
    }
}

@media screen and (max-width: 1080px) {
    .card.controller {
        display: flex;
        flex-direction: column-reverse;
        max-height: unset;
        height: fit-content;
    }
    .card.controller > .filters,
    .card.controller > .actions
    {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .card.controller > .actions > * {
        width: 100%;
    }

    .card.controller .input-group > div {
        flex-wrap: wrap !important;
    }

    .card.controller .filters .input-date-range {
        max-width: 100% !important;
    }
}