/***************************************************************/
/* ------------------ Dashboard Result Grid ------------------ */
/***************************************************************/

.grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    place-items: start;
    grid-column-gap: 15px;
    grid-row-gap: 15px;
    margin-top: 10px;
    margin-bottom: 35px;
}

.grid.empty-grid {
    height: 450px;
    background-position: 50% 0;
    background-repeat: no-repeat;
    background-size: contain;
}

#private-grid.empty-grid {
    background-image: var(--empty-grid-private);
}

#agency-grid.empty-grid {
    background-image: var(--empty-grid-agency)
}

#club-grid.empty-grid {
    background-image: var(--empty-grid-club)
}

#massage-grid.empty-grid {
    background-image: var(--empty-grid-massage);
}

.grid.dashboard {
    width: 100%;
    height: auto;
    min-height: 450px;
    position: relative;
    margin-bottom: 45px;
}

.grid-item {
    position: relative;
    background-color: #222;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.grid-item.deactivated {
    opacity: 0.5;
}


/***************************************************************/
/* --------------- Dashboard Result Grid Item ---------------- */
/***************************************************************/


.grid.dashboard .grid-item { /* .grid.ratio */
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 305px;
    display: flex;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.6);
}

.release-label {
    position: absolute;
    top: 8px;
    left: 8px;
    width: auto;
    padding: 5px 10px;
    text-align: center;
    color: #FFFFFF;
    background-color: var(--escort-red);
    border-radius: 5px;
}

.dashboard-grid-image {
    width: 50%;
    object-fit: cover;
    border-radius: 6px 0 0 6px;
}

.grid-sedcard-action-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dashboard-grid-sedcard-name {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 400;
    max-width: 150px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 0px 0 10px;
}

.grid-action-link-wrapper {
    width: 100%;
    display: flex;
    margin-bottom: 2px;
    cursor: pointer;
}

.grid-action-link-text {
    flex: 1;
    color: var(--text-color);
    font-size: 18px;
    margin: 0 0 0 10px;
    padding-top: 3px;
}

.grid-action-link-image {
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
}

.grid-action-link-image.show       { background-image: var(--icon-show-sedcard);       }
.grid-action-link-image.edit       { background-image: var(--icon-edit-sedcard);       }
.grid-action-link-image.copy       { background-image: var(--icon-copy-sedcard);       }
.grid-action-link-image.deactivate { background-image: var(--icon-deactivate-sedcard); }
.grid-action-link-image.delete     { background-image: var(--icon-delete-sedcard);     }

/***************************************************************/
/* -------------- Dashboard Grid Switch Button --------------- */
/***************************************************************/

.grid-action-link-wrapper.switch-wrapper {
    height: 45px !important;
    margin-bottom: 10px;
}

.grid.dashboard .sidebar-button-wrapper {
    width: calc(100% + 15px);
    margin-left: -15px;
    height: 30px;
    margin-top: 0;
}

.grid.dashboard .switch-label-wrapper {
    height: 45px;
}

.grid.dashboard .switch {
    position: relative;
    display: inline-block;
    width: 69px;
    height: 25px;
    pointer-events: none;

}

.grid.dashboard .switch-label-wrapper:last-child {
    margin-left: 10px;
}
.grid.dashboard .switch:last-child {
    margin-left: 0;
}


.grid.dashboard .slider:before {
    height: 18px;
    width: 18px;
}

.grid.dashboard .switch-text {
    position: static;
    width: 100%;
    height: 10px;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 6px;
    display: flex!important;
}


.grid.dashboard input:checked + .slider:before {
    background-color: #E26060;
}

.grid.dashboard input:checked + .slider {
    background-color: #C84343;
}

.grid.dashboard input:checked + .slider:before {
    -webkit-transform: translateX(43px);
    -ms-transform: translateX(43px);
    transform: translateX(43px);
}


/***************************************************************/
/* --------------------- Media Queries ----------------------- */
/***************************************************************/

@media only screen and (min-width: 715px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 915px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 25px;
    }

    .grid.dashboard {
        grid-column-gap: 35px;
        grid-row-gap: 35px;
        margin-top: 25px;
    }
}

@media only screen and (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (min-width: 1300px) {
    .grid {
        margin-top: 35px;
    }
    .grid.dashboard {
        margin-top: 35px;
    }
    .grid-action-link-wrapper.switch-wrapper {
        justify-content: center;
    }
}

@media only screen and (min-width: 1360px) {

    .dashboard-grid-image {
        width: 58%;
    }

    .grid {
        margin-top: 35px;
    }
    .grid.dashboard {
        margin-top: 35px;
    }
    .grid-action-link-wrapper.switch-wrapper {
        justify-content: center;
    }
}