/* GLASS OPS - SHARED COMPONENTS */
.media-thumbnail {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.ql-editor {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    max-height: 350px;
    overflow-y: auto;
}

.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
}

.image-lightbox-close,
.image-lightbox-prev,
.image-lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.image-lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 42px;
    width: 50px;
    height: 50px;
}

.image-lightbox-prev,
.image-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    width: 60px;
    height: 80px;
}

.image-lightbox-prev {
    left: 20px;
}

.image-lightbox-next {
    right: 20px;
}

.role-tick {
    color: var(--success);
    font-size: 20px;
    font-weight: 700;
}

.details-titlebar {
    position: relative;
}

.details-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 16px;
}

.details-close:hover {
    color: #000;
}

.search-clear {
    position: absolute;
    top: 50%;
    right: 7px;
    color: #6c757d;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.search-clear:hover {
    color: var(--text);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
}

.grid-item,
.grid-item-vertical {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.grid-container-vertical {
    column-count: 3;
    column-gap: 15px;
}

.grid-item-vertical {
    margin-bottom: 15px;
    break-inside: avoid;
}

.clickable-row {
    cursor: pointer;
    transition: background-color .15s ease-in-out;
}

.clickable-row:hover {
    background: color-mix(in srgb, var(--blue) 8%, white 92%);
}

.clickable-row:active {
    background: color-mix(in srgb, var(--blue) 13%, white 87%);
}

.clickable-row.active-row {
    background: color-mix(in srgb, var(--blue) 10%, white 90%);
}

.squash-table th,
.squash-table td {
    width: 1%;
    white-space: nowrap;
}

.squash-table th:last-child,
.squash-table td:last-child {
    width: auto;
    white-space: normal;
}

/* QUILL EDITORS */
.ql-container {
    max-height: 350px;
}
