/* SmartPhones */
@media (min-width: 0px) and (max-width: 575.900px) {
    .gridjs-head {
        flex-direction: column;
        align-items: end !important;
    }

        .gridjs-head button[name="AddNewItem"] {
            margin-top: 16px;
        }

    .gridjs-search {
        width: 100% !important;
    }

    .layer-modal {
        padding: 8px;
    }

    .zda-modal-header-info-title {
        /*padding: 24px 0px 12px !important;*/
        padding: 24px 0px 12px 18px !important;
    }

    .zda-modal {
        max-height: 98%;
        height: 98%;
        width: 98%;
    }

    .zda-modal-header-info {
        flex-direction: column;
    }

    .mdc-button[name="BtnLegendTable"] {
        margin-top: 16px;
    }

    .card-legend {
        margin: 0px;
    }

    .legend-item {
        flex-direction: column;
    }

    .legend-item-tag {
        justify-content: center;
        margin-bottom: 12px;
        align-items: center;
        display: flex;
    }

    .zda-modal:has(.card-legend) {
        width: auto !important;
        max-width: 100%;
    }

    .zda-modal-body:has(.card-legend) {
        margin: 0px;
    }
}


/*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.900px) {
    .gridjs-head {
        flex-direction: row;
        align-items: center;
    }

    .gridjs-search {
        width: 60% !important;
    }

    .layer-modal {
        padding: 8px;
    }

    .zda-modal {
        max-height: 98%;
        height: 98%;
        width: 98%;
    }
}

/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 992.900px) {

    .gridjs-search {
        width: 40% !important;
    }

    .layer-modal {
        padding: 8px;
    }

    .zda-modal {
        max-height: 98%;
        height: 98%;
        width: 98%;
    }

    .zda-modal-header-info-title[data-modal="gridjs"] {
        padding: 24px 32px 0px !important;
    }
}

/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {

    .gridjs-head {
        flex-direction: row;
        align-items: center;
    }

    .gridjs-search {
        width: 36% !important;
    }

    .layer-modal {
        padding: 16px;
    }

    .zda-modal {
        height: 98%;
        width: 98%;
    }

    .zda-modal-header-info-title[data-modal="gridjs"] {
        padding: 24px 32px 0px !important;
    }

}

/*X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {

}

/*XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {

}


/* ZDA MODAL */
.layer-modal {
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    position: absolute;
    overflow: hidden;
    display: flex;
    height: 100%;
    width: 100%;
    margin: 0px;
    z-index: 9;
    left: 0px;
    top: 0px;
}

.zda-modal {
    border-radius: 8px;
}

    .zda-modal:has(.card-legend) {
        height: auto !important;
        max-width: 100%;
    }

.zda-modal-header {
    align-items: center;
    display: flex;
}

.zda-modal-body {
    margin: 0px 16px 16px;
}

    .zda-modal-body[data-modal="html"] {
        overflow-x: hidden;
        overflow-y: auto;
        flex: 1;
    }

    .zda-modal-body[data-modal="html"]::-webkit-scrollbar {
        -webkit-appearance: none;
    }

        .zda-modal-body[data-modal="html"]::-webkit-scrollbar:vertical {
            width: 14px;
        }

        .zda-modal-body[data-modal="html"]::-webkit-scrollbar:horizontal {
            height: 12px;
        }

    .zda-modal-body[data-modal="html"]::-webkit-scrollbar-thumb {
        border: 2px solid whitesmoke;
        background-color: #c5c5c5;
        cursor: -webkit-grab;
        border-radius: 8px;
        cursor: -moz-grab;
        height: 36px;
        cursor: move;
        cursor: grab;
    }

        .zda-modal-body[data-modal="html"]::-webkit-scrollbar-thumb:active {
            cursor: -webkit-grabbing;
            cursor: -moz-grabbing;
            cursor: grabbing;
        }

    .zda-modal-body[data-modal="html"]::-webkit-scrollbar-track {
        background-color: whitesmoke;
        border-radius: 8px;
    }

.zda-modal-header-info {
    display: flex;
    flex: 1;
}

.zda-modal-header-info-title {
    color: var(--zda-primary-color);
    font-family: 'Fredoka';
    align-items: center;
    align-self: center;
    padding: 24px 32px 12px;
    width: fit-content;
    font-weight: 600;
    display: flex;
    height: 100%;
    margin: 0px;
}

.zda-modal-header-buttons {
    padding-right: 16px;
    align-items: center;
    display: flex;
}

.zda-modal-divider {
    margin: 0px 0px 16px !important;
}

.zda-modal-footer {
    margin: 0px 16px 16px;
    justify-content: end;
    align-items: center;
    display: flex;
}
/* ZDA MODAL */

/* GRID JS */
th.gridjs-th {
    background-color: #36304a !important;
}

th.gridjs-th,
td.gridjs-td {
    padding: 14px 24px !important;
}

.gridjs-th-content {
    color: white;
}

tr.gridjs-tr td.gridjs-td {
    color: black !important;
}

tr.gridjs-tr.expired td.gridjs-td {
    color: red !important;
    font-weight: 600;
}

.gridjs-tr:hover td.gridjs-td {
    background-color: whitesmoke !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

.gridjs-footer {
    z-index: 0 !important;
}

button.gridjs-sort-neutral {
    background-image: url(../images/sort-svgrepo-com.svg) !important;
    opacity: 1 !important;
}

button.gridjs-sort-asc {
    background-image: url(../images/up.svg) !important;
    opacity: 1 !important;
}

button.gridjs-sort-desc {
    background-image: url(../images/down.svg) !important;
    opacity: 1 !important;
}

.gridjs-wrapper::-webkit-scrollbar {
    -webkit-appearance: none;
}

    .gridjs-wrapper::-webkit-scrollbar:vertical {
        width: 14px;
    }

    .gridjs-wrapper::-webkit-scrollbar:horizontal {
        height: 12px;
    }

.gridjs-wrapper::-webkit-scrollbar-thumb {
    background-color: #c5c5c5 !important;
    border: 2px solid whitesmoke;
    cursor: -webkit-grab;
    border-radius: 8px;
    cursor: -moz-grab;
    height: 36px;
    cursor: move;
    cursor: grab;
}

    .gridjs-wrapper::-webkit-scrollbar-thumb:active {
        cursor: -webkit-grabbing;
        cursor: -moz-grabbing;
        cursor: grabbing;
    }

.gridjs-wrapper::-webkit-scrollbar-track {
    background-color: whitesmoke;
    border-radius: 8px;
}

input.gridjs-input {
    width: 100%;
}

.gridjs-head {
    justify-content: end;
    align-items: center;
    margin-bottom: 12px;
    padding-right: 12px;
    display: flex;
}

.gridjs-search {
    width: 50%;
}
/* GRID JS */

/* LEGEND TABLE */
.card-legend {
    margin: 16px;
}

.legend-item {
    align-items: center;
    border-radius: 16px;
    padding: 8px 12px;
    display: flex;
}

.legend-item:hover {
    background-color: whitesmoke;
}

.legend-item-color {
    border-radius: 50%;
    margin-right: 16px;
    height: 24px;
    width: 24px;
}

.legend-item-description {
    justify-content: center;
    flex-direction: column;
    align-items: start;
    display: flex;
}

.legend-item-description-text {
    font-family: 'Fredoka';
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    display: block;
}
/* LEGEND TABLE */

/* TAG STATUS */
.zda-grid-field-status {
    padding: 6px 18px;
    border-radius: 8px;
    color: red;
    font-weight: bold;
    background: rgba(255, 0, 0, 0.10);
    width: fit-content;
    display: flex;
    align-items: center;
    font-family: 'Fredoka';
}

.zda-grid-field-status-point {
    border-radius: 50%;
    width: 8px;
    height: 8px;
    background-color: red;
    margin-right: 12px;
    margin-top: 2px;
}
/* TAG STATUS */