﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Colors */
:root {
    --brand-theme: #000000;
    --brand-dark-theme: #FFFFFF;
    --disabled: #e9ecef; /* Disabled */
    --highlight: #77bdff; /* Highlight */
    --highlight-darker: #3291ff; /* Highlight darker */
    --highlight-alt: #e9ecef; /* Highlight alt */
    --custom-success: #0DC800; /* Green */
    --a: #0366d6; /* Blue */
    --a-hover: #0056B3; /* Blue */
    --primary-outline: #007BFF; /* Bootstrap primary (outline) */
    --primary: #1b6ec2; /* Bootstrap primary */
    --secondary: #6c757d; /* Bootstrap secondary */
    --warning: #FFC107; /* Bootstrap warning */
    --danger: #dc3545; /* Bootstrap danger */
    --success: #28A745; /* Bootstrap success */
    --dark: #343A40; /* Bootstrap dark */
    --info: #17a2b8; /* Bootstrap info */

    --theme: white;
    --theme-rgb: 255, 255, 255;
    --theme-navbar-text: black;
    --theme-navbar-text-rgb: 0, 0, 0;
    --button-option-bg-color: black;
    --button-option-text-color: white;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow: auto !important;
}

/* Dark mode */
body.dark-theme {
    filter: invert(1);
    background-color: rgb(0 0 0 / 0.95);
}
    body.dark-theme img:not(.no-invert),
    body.dark-theme .brand-name.no-invert,
    body.dark-theme video,
    body.dark-theme svg,
    body.dark-theme iframe,
    body.dark-theme button.btn,
    body.dark-theme a.btn,
    body.dark-theme a.connection-btn,
    body.dark-theme object,
    body.dark-theme embed,
    body.dark-theme .navbar-indicator,
    body.dark-theme .normal-action,
    body.dark-theme .text-white,
    body.dark-theme .text-dark,
    body.dark-theme .text-primary,
    body.dark-theme .text-warning,
    body.dark-theme .text-danger,
    body.dark-theme .text-info,
    body.dark-theme .text-success,
    body.dark-theme .bg-primary,
    body.dark-theme .bg-warning,
    body.dark-theme .bg-danger,
    body.dark-theme .bg-info,
    body.dark-theme .bg-success,
    body.dark-theme .badge,
    body.dark-theme .alert,
    body.dark-theme .clr-field button,
    body.dark-theme .clr-gradient,
    body.dark-theme .clr-hue,
    body.dark-theme .clr-alpha,
    body.dark-theme .clr-preview,
    body.dark-theme .clr-swatches button:after,
    body.dark-theme textarea.rte,
    body.dark-theme .tox-swatches,
    body.dark-theme a > .info-icon,
    body.dark-theme .reverse-invert {
        filter: invert(1);
    }

    body.dark-theme .normal-action {
        color: white;
    }
        body.dark-theme .normal-action:hover {
            color: inherit;
        }

main {
    flex: 1; /* Makes the main content grow to fill available space */
}
.sidebar-closed + .content-area.is-authenticated,
.content-area.is-authenticated.sidebar-closed {
    margin-left: 70px;
}
.content-area.is-authenticated {
    margin-left: 70px;
}
@media (min-width: 768px) {
    .content-area.is-authenticated {
        margin-left: 250px;
    }
}

.content-area {
    transition: margin-left 0.3s ease;
    height: 100vh; /* ensure it fills viewport height */
    overflow-y: auto; /* only the article scrolls */
}

footer {
    margin-top: auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Topbar */
.profile-btn-square {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    margin-top: auto;
    border-left: #e1e1e1 1px solid;
    background: #f8f9fa;
}

.profile-square-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #e9ecef;
    color: #343a40 !important;
    font-weight: 500;
    border: 1px solid #dee2e6;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
    outline: none;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

    .profile-square-btn:hover, .profile-square-btn:focus {
        background: #dee2e6;
        color: #212529 !important;
        text-decoration: none;
    }

    .profile-square-btn:active {
        background: #ced4da;
        color: #212529 !important;
    }

.topbar-link {
    display: flex;
    color: rgba(var(--theme-navbar-text-rgb), 0.65) !important;
    justify-items: center;
    align-items: center;
    height: 100%;
    border-radius: 0;
}
    .topbar-link:hover {
        text-decoration: none;
        color: var(--theme-navbar-text) !important;
    }

/* Header */
header {
    background-color: rgb(var(--theme-rgb), 0.85);
    transition: background-color 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    white-space: nowrap;
    text-align: center;
}

.brand-name {
    color: var(--brand-theme);
}
    .brand-name:hover {
        color: var(--brand-theme);
    }

.brand-name.dark-theme {
    color: var(--brand-dark-theme);
}
    .brand-name.dark-theme:hover {
        color: var(--brand-dark-theme);
    }

.logo-brand {
    height: 44px;
}

.sticky-top {
    z-index: 999 !important;
}

a {
    color: var(--a);
}
    a.disabled {
        pointer-events: none;
        color: inherit;
    }

.nav-item {
    position: relative;
    list-style-type:none;
    width: fit-content;
}
nav > ul{
    padding: 0;
    margin: 0;
}


.nav-link {
    color: rgba(var(--theme-navbar-text-rgb), 0.65) !important;
}
.nav-link:hover {
    color: var(--theme-navbar-text) !important;
}

.custom-link-container:hover span {
    text-decoration: underline;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Bootstrap overrides */
.fa-stack {
    min-width: 2.5rem;
}

.gap-1 {
    gap: 0.25rem;
}
.gap-2 {
    gap: 0.5rem;
}
.gap-3 {
    gap: 1rem;
}
.gap-4 {
    gap: 1.5rem;
}
.gap-5 {
    gap: 3rem;
}
@media (min-width: 576px) {
    .gap-sm-1 {
        gap: 0.25rem;
    }
    .gap-sm-2 {
        gap: 0.5rem;
    }
    .gap-sm-3 {
        gap: 1rem;
    }
    .gap-sm-4 {
        gap: 1.5rem;
    }
    .gap-sm-5 {
        gap: 3rem;
    }
}
@media (min-width: 768px) {
    .gap-md-1 {
        gap: 0.25rem;
    }
    .gap-md-2 {
        gap: 0.5rem;
    }
    .gap-md-3 {
        gap: 1rem;
    }
    .gap-md-4 {
        gap: 1.5rem;
    }
    .gap-md-5 {
        gap: 3rem;
    }
}
@media (min-width: 992px) {
    .gap-lg-1 {
        gap: 0.25rem;
    }
    .gap-lg-2 {
        gap: 0.5rem;
    }
    .gap-lg-3 {
        gap: 1rem;
    }
    .gap-lg-4 {
        gap: 1.5rem;
    }
    .gap-lg-5 {
        gap: 3rem;
    }
}
@media (min-width: 1200px) {
    .gap-xl-1 {
        gap: 0.25rem;
    }
    .gap-xl-2 {
        gap: 0.5rem;
    }
    .gap-xl-3 {
        gap: 1rem;
    }
    .gap-xl-4 {
        gap: 1.5rem;
    }
    .gap-xl-5 {
        gap: 3rem;
    }
}

.btn:not(.btn-sm) {
    width: 10rem;
}

.btn-sm {
    min-width: 34px;
}

.btn-large {
    width: 14rem !important;
}

.btn-x-large {
    width: 18rem !important;
}

button.disabled {
    pointer-events: none;
}

[data-toggle="tooltip"] {
    cursor: pointer;
}

.info-icon {
    cursor: pointer;
    color: var(--a);
}

/* Forms */
.form-control {
    height: 38px;
}

textarea:not([type="search"]) {
    min-height: 76px;
    height: auto;
    overflow: hidden;
    resize: none;
}

.checkbox-icon,
.radio-button-icon {
    transition: opacity 0.4s ease;
}

.checkbox-icon {
    font-size: 1.5rem;
}

/* Select2 overrides */
.select2-container.select2-container--disabled .select2-selection--single {
    color: #495057 !important;
    background-color: var(--disabled) !important;
}

.select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
}

.select2-selection--multiple .select2-selection__rendered {
    line-height: 24px !important;
}


.select2-selection {
    min-height: 38px !important;
    border-color: #ced4da !important;
}

.select2-selection__arrow {
    height: 37px !important;
}

/* Readonly */
.select2-readonly + .select2-container .select2-selection--single, select[readonly] + .select2-container .select2-selection--single {
    background-color: var(--disabled) !important;
    cursor: default;
}

.select2-readonly + .select2-container .select2-selection__arrow, select[readonly] + .select2-container .select2-selection__arrow {
    display: none;
}

/* Datetime picker */
.datepicker, .input-group-append {
    cursor: pointer;
}

/* Animations */
@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade-in-animation {
    animation: fade-in 2s linear forwards;
}

@keyframes pop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.pop-animation {
    animation: pop 1.5s ease forwards;
}

@keyframes highlighting {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 0;
    }
}

.highlight-animation {
    background-color: transparent;
    position: relative;
}

    .highlight-animation::before {
        z-index: 5;
        opacity: 0;
        content: '';
        background-color: black;
        position: absolute;
        top: -0.75rem;
        left: -0.75rem;
        right: -0.75rem;
        bottom: -0.75rem;
        border-radius: 0.25rem;
        animation: highlighting 5s ease;
    }

.highlight-animation-danger {
    background-color: transparent;
    position: relative;
}

    .highlight-animation-danger::before {
        z-index: 5;
        opacity: 0;
        content: '';
        background-color: red;
        position: absolute;
        top: -0.75rem;
        left: -0.75rem;
        right: -0.75rem;
        bottom: -0.75rem;
        border-radius: 0.25rem;
        animation: highlighting 5s ease;
    }

.animation-left-to-right {
    animation: moveLeftToRight 1s ease-in-out infinite;
}

@keyframes moveLeftToRight {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

.animation-right-to-left {
    animation: moveRightToLeft 1s ease-in-out infinite;
}

@keyframes moveRightToLeft {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

.animation-up-to-down {
    animation: moveUpToDown 1s ease-in-out infinite;
}

@keyframes moveUpToDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0);
    }
}

.animation-down-to-up {
    animation: moveDownToUp 1s ease-in-out infinite;
}

@keyframes moveDownToUp {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Navbar */
.active {
    color: var(--theme-navbar-text) !important;
}

@media (min-width: 992px) { /* Bootstrap lg breakpoint is 992px */
    .ml-nav-link-negative {
        margin-left: 0;
    }
}

.navbar-alert-banner {
    border-radius: 0;
}

.sticky-header-section {
    transition: background-color 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: transparent;
}

.custom-success {
    color: var(--custom-success);
}

/* Cards */
.card-title {
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: bold;
    justify-content: center;
}

.card-container > img {
    height: 72px;
}

.card-container > i {
    font-size: 50px;
}

.card-container {
    background-color: white;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
    color: black;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

    .card-container:hover {
        text-decoration: none;
    }

/* DataTable */
table thead, #data-table_wrapper .dt-scroll-head {
    z-index: 1;
    position: sticky !important;
    top: 0px;
    transition: top 0.3s ease;
    background: white;
}

#data-table_processing {
    left: calc(50% - 100px) !important;
    position: sticky !important;
    color: black;
    z-index: 5;
}

#data-table_processing {
    background-color: var(--theme);
}
    #data-table_processing > div > div {
        background-color: var(--theme-navbar-text);
    }

td > p {
    margin: 0;
}

td, th {
    vertical-align: middle !important;
}

tr {
    transition: background-color 0.3s ease;
}
    tbody tr:hover {
        background-color: var(--highlight) !important
    }

.dt-paging {
    margin-top: 1rem!important;
    display: flex;
    justify-content: end;
}

.tr-select:hover {
    cursor: pointer;
}

table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order:after,
table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order:before {
    content: "" !important;
    font-family: FontAwesome;
    opacity: 1 !important;
    line-height: 4px !important;
}

table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order:after {
    content: "\e4af" !important; /* unsorted */
    opacity: 0.125 !important;
}

table.dataTable thead > tr > th.dt-orderable-desc.dt-ordering-asc span.dt-column-order:after {
    content: "\f160" !important; /* sorted ascending */
    opacity: 1 !important;
}

table.dataTable thead > tr > th.dt-orderable-desc.dt-ordering-desc span.dt-column-order:after {
    content: "\f161" !important; /* sorted descending */
    opacity: 1 !important;
}

.dt-scroll-body {
    min-height: 200px;
}

/* Accordion */
.accordion-list {
    list-style: none;
}

.accordion-list, .accordion-container {
    padding: 0;
}

.custom-list {
    padding: 0;
    padding-left: 1rem;
}

.accordion-element, .accordion-button {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.accordion-button {
    background: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease-out;
}

    .accordion-button:hover {
        background-color: var(--highlight-alt);
        cursor: pointer;
    }

    .accordion-button:focus {
        outline: none;
    }

/* Comments */
.comment-container {
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    width: fit-content;
    max-width: 80%;
    margin-bottom: 1rem;
}

    .comment-container.is-internal {
        background-color: var(--disabled);
    }

    .comment-container.is-self {
        background-color: lightblue;
    }

/* Coloris */
.clr-field {
    display: block!important;
}

/* Others */
.red {
    color: var(--danger) !important;
}

.bold-red {
    color: var(--danger) !important;
    font-weight: bold !important;
}

.no-resize {
    resize: none;
}

.shadow {
    box-shadow: 0 0 12px 0 black !important;
}

.shadow-hover {
    transition: all 0.3s ease-out;
}

    .shadow-hover:hover {
        position: relative;
        z-index: 10;
        box-shadow: 0 0 12px 0 black;
    }

.scale-hover {
    transition: all 0.3s ease;
}

.scale-hover:hover {
    position: relative;
    z-index: 10;
    transform: scale(1.05);
}

.clearable-badge {
    cursor: pointer;
    background-color: black;
    color: white;
    padding: 8px 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1px solid black;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

    .clearable-badge:hover {
        color: black;
        background-color: white;
    }

.info-pill {
    cursor: default;
    font-weight: bold;
    border-radius: 9999px;
    background-color: black;
    color: white;
    padding: 8px 10px;
    text-wrap: nowrap;
}

.flip {
    transition: transform 0.3s ease;
}

.flipped {
    transform: scaleX(-1) scaleY(-1);
}

.rotate {
    transition: transform 0.3s ease;
}

.rotated {
    transform: rotate(-180deg);
}

.lock-timeout-overlay {
    background-color: transparent;
    position: relative;
}

    .lock-timeout-overlay::before {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        font-family: 'Rubik', sans-serif;
        font-weight: bolder;
        color: white;
        z-index: 5;
        cursor: not-allowed;
        opacity: var(--opacity);
        content: var(--timeout);
        background-color: black;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0.25rem;
        transition: opacity 1s ease-out;
    }

#loading-spinner {
    font-size: 80px;
    color: white;
}

.highlight {
    background-color: var(--highlight) !important;
}

.dropdown-item > i {
    width: 1.75rem;
}
.nav-item > .nav-link > .nav-icon-container {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.nav-item-centered {
    padding:0;
    align-self: center;
}

[role="button"] {
    cursor: pointer;
}

.button-list-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    transition: opacity 1s ease;
}

#multi-action-container {
    opacity: 0;
}

.btn-indicator {
    display: inline-flex;
    min-width: 20px;
    padding: 4px;
    border-radius: 100%;
    font-weight: bold;
    background-color: var(--danger);
    color: white;
    font-size: 12px;
    line-height: 1;
    position: absolute;
    top: -8px;
    right: -8px;
    justify-content: center;
    align-items: center;
}

.navbar-indicator {
    display: flex;
    min-width: 20px;
    padding: 4px;
    border-radius: 100%;
    font-weight: bold;
    background-color: var(--danger);
    color: white;
    font-size: 12px;
    line-height: 1;
    position: absolute;
    top: 0;
    right: -7px;
    justify-content: center;
    align-items: center;
}

.toggle-show-password-btn {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0.75rem;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: gray;
}
.toggle-show-password-btn:hover {
    color: inherit;
}
.toggle-show-password-btn:focus {
    outline: none;
}

pre {
    white-space: pre-wrap;
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.select-tab-container {
    display: flex;
}
    .select-tab-container > a,
    .select-tab-container > button {
        min-width: 192px;
    }

    .select-tab-container > a:first-child,
    .select-tab-container > button:first-child {
        border-radius: 0.2rem 0 0 0.2rem;
        border-right-width: 0.5px;
    }

    .select-tab-container > a:last-child,
    .select-tab-container > button:last-child {
        border-radius: 0 0.2rem 0.2rem 0;
        border-left-width: 0.5px;
    }

    .select-tab-container > a:nth-child(n+2):nth-last-child(n+2),
    .select-tab-container > button:nth-child(n+2):nth-last-child(n+2) {
        border-radius: 0;
        border-left-width: 0.5px;
        border-right-width: 0.5px;
    }

@media (max-width: 992px) {
    .select-tab-container {
        flex-direction: column;
    }

    .select-tab-container > a,
    .select-tab-container > button {
        min-width: 100%;
        border-width: 1px !important;
    }

    .select-tab-container > a:first-child,
    .select-tab-container > button:first-child {
        border-radius: 0.2rem 0.2rem 0 0;
        border-bottom-width: 0.5px!important;
    }

    .select-tab-container > a:last-child,
    .select-tab-container > button:last-child {
        border-radius: 0 0 0.2rem 0.2rem;
        border-top-width: 0.5px!important;
    }

    .select-tab-container > a:nth-child(n+2):nth-last-child(n+2),
    .select-tab-container > button:nth-child(n+2):nth-last-child(n+2) {
        border-radius: 0;
        border-top-width: 0.5px!important;
        border-bottom-width: 0.5px!important;
    }
}


.cursor-pointer {
    cursor: pointer;
}
.cursor-not-allowed {
    cursor: not-allowed;
}

.x-small {
    font-size: x-small;
}

.xx-small {
    font-size: xx-small;
}

.icon-btn {
    border: none;
    background: none;
    transition: transform 0.3s ease;
    z-index: 2;
}

    .icon-btn:hover {
        transform: scale(1.2);
    }

    .icon-btn:focus {
        outline: none;
    }

.rotate-90 {
    transform: rotate(90deg);
}
.rotate-270 {
    transform: rotate(270deg);
}

.text-inherit {
    color: inherit;
}

/* remove underline & default link color from any <a class="card"> */
a.card,
a.card:link,
a.card:visited {
    text-decoration: none;
    color: inherit;
}

/* keep it that way on hover/focus */
a.card:hover,
a.card:focus {
    text-decoration: none;
    color: inherit;
}

.training-card a.text-inherit {
    color: inherit;
    text-decoration: none;
}

.training-card a.text-inherit:hover {
    color: inherit;
    text-decoration: none;
}

/* Target search inputs within a form-group with position relative (that have an icon inside the input) */
.form-group.position-relative input[type="search"].form-control {
    padding-left: 1.75rem;
    transition: padding-left 0.2s ease;
}
    /* Reduce padding when typing (placeholder not shown) */
    .form-group.position-relative input[type="search"].form-control:not(:placeholder-shown) {
        padding-left: 0.75rem;
    }
/* Style the search icon */
.form-group.position-relative .search-placeholder-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}
/* Hide icon when typing */
.form-group.position-relative input[type="search"].form-control:not(:placeholder-shown) + .search-placeholder-icon {
    opacity: 0;
    visibility: hidden;
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
}

.input-group-append > button:focus,
.input-group-prepend > button:focus {
    outline: none;
}

.user-initials-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
    .user-initials-circle:not(:first-child) {
        margin-left: -12px;
    }

.diagonal-banner, .diagonal-banner-large, .diagonal-banner-x-large {
    position: absolute;
    display: flex;
    z-index: 10;
    left: -50%;
    top: 45%;
    width: 200%;
    font-weight: bold;
    height: 48px;
    transform: rotate(-30deg);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.9;
}

.diagonal-banner-large {
    height: 72px;
    font-size: large;
}

.diagonal-banner-x-large {
    height: 96px;
    font-size: x-large;
}

.result-container {
    min-height: 7rem;
}

.data-result-message {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

:has(> .custom-cell) {
    height: 1px;
    width: 1px;
    padding: 2px !important;
    margin: 0 !important;
}

#context-menu {
    max-width: 360px;
}

.custom-cell {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;
    position: relative;
    height: 100%;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

    .custom-cell:hover {
        cursor: pointer;
        background-color: var(--highlight-darker) !important;
    }

    .custom-cell.highlight {
        background-color: var(--highlight-darker) !important;
    }

.thumbnail-file-name {
    align-self: center;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}