:root {
    --typo-primary: #495057;
    /*--typo-secondary: #6c757d;*/
    --typo-secondary: #8b969f;
    --bg-secondary: #eff2f6;
    --card-bg: #fff;
    --card-in-card-bg: #f5f5f5;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* *** *** *** *** *** *** */

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0px;
}

/* #region TYPOGRAPHY */

.text-body-title {
    color: var(--typo-primary) !important;
    font-size: 1.125rem;
    font-weight: 600;
}

.text-body {
    font-size: 0.875rem;
    color: var(--typo-primary) !important;
}

.text-modal-body {
    font-size: 0.875rem;
    color: var(--typo-secondary) !important;
}

.typo-primary {
    color: var(--typo-primary) !important;
}

.typo-secondary {
    color: var(--typo-secondary) !important;
}

.text-yellow {
    color: #ffca00 !important;
}

.form-label {
    font-size: 0.75rem;
}

/* #endregion */

/* #region BUTTONS */

.btn {
    border-radius: 4px;

    &.btn-primary {
    }
}

/* #endregion */

/* #region ALERTS */

.alert {
    padding: 8px;

    .alert-text {
        color: var(--typo-primary);
        font-size: .875rem;
        font-weight: 600;
    }
}

/* #endregion */

/* #region SIDEBAR */

.sidebar {
    --width: 200px;
    max-width: var(--width);
    min-width: var(--width);
}

@media (min-width: 1px) and (max-width: 991.98px) {
    body:not([data-sidebar-position=right]) .sidebar {
        margin-left: calc(var(--width) * -1);
    }
}

.sidebar-brand {
    padding: 18px 10px
}

    .sidebar-brand img {
        margin-bottom: 1rem;
        width: 100%;
    }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    padding: 0px 4px !important;
}

.sidebar-link {
    border-radius: 4px;
    padding: 4px 8px !important;
    font-size: 0.875rem;
    transition: background-color .2s !important;

    i {
        margin-right: 8px !important;
    }

    &:hover {
        background-color: rgba(var(--bs-secondary-rgb), .1);

        * {
            color: var(--typo-primary) !important;
        }
    }

    &.active {
        background-color: rgba(var(--bs-secondary-rgb), .1);
        font-weight: 600;

        i {
            color: rgba(var(--bs-primary-rgb), 1) !important;
            font-weight: bold;
        }
    }
}

.sidebar-header {
    color: var(--typo-secondary);
    font-weight: 700;
    font-size: .625rem;
    text-transform: uppercase;
    padding-left: 12px;
}

/* #endregion */

/* #region NAVBAR */

.navbar {
    padding: 8px 20px;
}

.nav-bell {
    display: inline-flex;
    font-size: 1.1rem;
    position: relative;

    .nav-bell-count {
        align-items: center;
        background-color: var(--bs-danger);
        border: 2px solid var(--card-bg);
        border-radius: 999px;
        color: #fff;
        display: flex;
        font-size: .6rem;
        font-weight: 700;
        height: 18px;
        justify-content: center;
        min-width: 18px;
        padding: 0 4px;
        position: absolute;
        right: -10px;
        top: -8px;
    }
}

.nav-notifications {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    box-shadow: 0 .5rem 1.5rem rgba(41, 48, 66, .12);
    overflow: hidden;
    padding: 0;
    width: 380px;

    @media (max-width: 575.98px) {
        width: calc(100vw - 32px);
    }

    .nav-notifications-header {
        align-items: center;
        border-bottom: 1px solid var(--bs-border-color);
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding: 12px 16px;
    }

    .nav-notifications-title {
        align-items: center;
        color: var(--typo-primary);
        display: flex;
        font-size: .95rem;
        font-weight: 600;
        gap: 8px;
    }

    .nav-notifications-list {
        display: flex;
        flex-direction: column;
        max-height: 400px;
        overflow-y: auto;
        padding: 4px 0;
    }

    .nav-notifications-footer {
        background-color: var(--bg-secondary);
        border-top: 1px solid var(--bs-border-color);
        color: var(--bs-primary);
        display: block;
        font-weight: 500;
        padding: 10px 16px;
        text-align: center;
        text-decoration: none;

        &:hover {
            background-color: rgba(var(--bs-primary-rgb), .08);
        }
    }
}

/* #endregion */

/* #region DROPDOWN */

.ri-dropdown-menu {
    display: inline;
    position: relative;
}

.ri-dropdown-menu-button {
    cursor: pointer;
}

.ri-dropdown-menu-content {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 0 .875rem 0 rgba(41, 48, 66, .3);
    display: none;
    flex-direction: column;
    position: fixed;
    z-index: 1050;
    white-space: nowrap;
}

    .ri-dropdown-menu-content.show {
        display: flex;
    }

.ri-dropdown-menu-entry {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 8px 12px;
}

    .ri-dropdown-menu-entry:hover {
        background-color: rgba(var(--bs-secondary-rgb), .1);
        text-decoration: none;
    }

/* #endregion */

/* #region TABLE */

.table-action .action-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: end;
}


.table-cell-w-1 {
    width: 1px;
}

.table-container {
    display: flex;
    flex-direction: column;
}

.table-empty-text {
    color: var(--typo-secondary);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

/* #endregion */

/* #region FILE TABLE */

.table-container:has(.table) {
    margin: 0px -16px;
    width: calc(100% + 32px);
    overflow-x: auto;

    .table {
        thead {
            tr {
                th {
                    background-color: #3f80ea14;
                    border-top: 1px solid var(--bs-border-color);
                    font-size: 10px;
                    padding: 4px 0px;

                    .col-title {
                        align-items: end;
                        text-transform: uppercase;

                        .sort-indicator {
                            height: auto;
                        }
                    }
                }
            }
        }

        tbody {
            tr {
                td {
                    transition: all .1s;
                }

                &:hover {
                    td {
                        background-color: #3f80ea30;
                    }
                }
            }
        }
    }
}

.file-table {
    .file-name {
        color: var(--typo-primary);
        font-weight: 500;
        font-size: .8rem;
    }

    .file-size {
        color: var(--typo-secondary);
        font-weight: 400;
        font-size: .688rem;
    }

    tbody tr:has(.file-select-toggle.is-selected) td {
        background-color: rgba(var(--bs-primary-rgb), .1);
    }
}

.file-select-toggle,
.file-select-all {
    align-items: center;
    appearance: none;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--typo-secondary);
    cursor: pointer;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    padding: 0;
    transition: color .15s ease;
    width: 28px;

    &:hover {
        color: var(--bs-primary);
    }

    &:focus {
        outline: none;
    }

    &:focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: 1px;
    }
}

.file-select-all {
    display: flex;
    height: 18px;
    margin: 0 auto;

    i {
        line-height: 1;
        vertical-align: 0;
    }
}

.file-table thead th {
    vertical-align: middle;

    .col-header-content {
        align-items: center;
        min-height: 18px;
    }
}

.file-select-toggle {
    .file-select-check {
        display: none;
    }

    &:hover,
    &:focus-visible,
    &.is-selected,
    .has-selection & {
        .file-select-type {
            display: none;
        }

        .file-select-check {
            display: inline-block;
        }
    }

    &.is-selected .file-select-check {
        color: var(--bs-primary);
    }
}

.file-preview-image {
    align-items: center;
    background-color: var(--bg-secondary);
    background-image: linear-gradient(45deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .04) 75%),
        linear-gradient(45deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .04) 75%);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    min-height: 240px;
    padding: 16px;

    img {
        border-radius: 6px;
        box-shadow: 0 .25rem 1rem rgba(41, 48, 66, .12);
        max-height: 70vh;
        max-width: 100%;
        object-fit: contain;
    }
}

.file-preview-text {
    background-color: var(--bg-secondary);
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    color: var(--typo-primary);
    font-size: 12.5px;
    line-height: 1.55;
    margin: 0;
    max-height: 70vh;
    overflow: auto;
    padding: 16px;
    tab-size: 4;
    white-space: pre;
}

.file-preview-markdown {
    max-height: 70vh;
    max-width: none;
    overflow: auto;
    padding: 4px 8px;
}

.file-preview-empty {
    align-items: center;
    color: var(--typo-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 48px 16px;
    text-align: center;

    > i {
        font-size: 2rem;
    }
}

.view-toggle .btn {
    padding-left: 10px;
    padding-right: 10px;

    &.active {
        background-color: var(--bs-secondary) !important;
        border-color: var(--bs-secondary) !important;
        color: #fff !important;
    }
}

.explorer-grid-toolbar {
    display: flex;
    margin-bottom: 8px;
}

.explorer-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    margin-bottom: 12px;
}

.explorer-card {
    background-color: var(--card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;

    &:hover {
        border-color: rgba(var(--bs-primary-rgb), .45);
        box-shadow: 0 .25rem 1rem rgba(41, 48, 66, .08);
    }

    &.is-selected {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 1px var(--bs-primary);

        .explorer-card-preview {
            background-color: rgba(var(--bs-primary-rgb), .1);
        }
    }

    .explorer-card-preview {
        align-items: center;
        background-color: color-mix(in srgb, var(--file-color) 10%, transparent);
        display: flex;
        height: 104px;
        justify-content: center;
        position: relative;
        transition: background-color .15s ease;
    }

    .explorer-card-icon {
        color: var(--file-color);
        font-size: 2.75rem;
        line-height: 1;
        text-decoration: none;
        transition: transform .15s ease;
    }

    a.explorer-card-icon:hover {
        transform: scale(1.06);
    }

    .explorer-card-select {
        align-items: center;
        background-color: var(--card-bg);
        border: none;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(41, 48, 66, .15);
        color: var(--typo-secondary);
        display: flex;
        height: 28px;
        justify-content: center;
        left: 8px;
        opacity: 0;
        padding: 0;
        position: absolute;
        top: 8px;
        transition: opacity .15s ease, color .15s ease;
        width: 28px;

        &:hover {
            color: var(--bs-primary);
        }

        &:focus {
            outline: none;
        }

        &:focus-visible {
            opacity: 1;
            outline: 2px solid var(--bs-primary);
        }

        &.is-selected {
            color: var(--bs-primary);
            opacity: 1;
        }
    }

    &:hover .explorer-card-select,
    .has-selection & .explorer-card-select {
        opacity: 1;
    }

    @media (hover: none) {
        .explorer-card-select {
            opacity: 1;
        }
    }

    .explorer-card-flags {
        color: var(--typo-secondary);
        display: flex;
        gap: 8px;
        position: absolute;
        right: 10px;
        top: 8px;
    }

    .explorer-card-body {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        padding: 10px 12px 6px;
    }

    .explorer-card-name {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        color: var(--typo-primary);
        display: -webkit-box;
        font-size: .8rem;
        font-weight: 600;
        line-height: 1.35;
        overflow: hidden;
        text-decoration: none;
        word-break: break-word;
    }

    a.explorer-card-name:hover {
        color: var(--bs-primary);
    }

    .explorer-card-meta {
        color: var(--typo-secondary);
        font-size: .7rem;
    }

    .explorer-card-location {
        text-decoration: none;

        &:hover {
            color: var(--bs-primary);
        }
    }

    .explorer-card-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 6px;

        .badge {
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    .explorer-card-footer {
        border-top: 1px solid var(--bs-border-color);
        padding: 6px 10px;

        .action-container {
            align-items: center;
            display: flex;
            gap: 14px;
            justify-content: flex-end;
        }
    }
}

.selection-bar {
    align-items: center;
    animation: filters-popover-in .16s ease-out;
    background-color: rgba(var(--bs-primary-rgb), .08);
    border: 1px solid rgba(var(--bs-primary-rgb), .25);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 8px 12px;

    .selection-bar-count {
        align-items: center;
        color: var(--bs-primary);
        display: inline-flex;
        font-weight: 600;
        gap: 8px;
        white-space: nowrap;
    }

    .selection-bar-actions {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .selection-bar-hint {
        color: var(--typo-secondary);
        font-size: .75rem;
    }

    .selection-bar-clear {
        margin-left: auto;
    }
}

/* #endregion */

/* #region NOTIFICATIONS TABLE */

.notification-item {
    align-items: flex-start;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    position: relative;
    transition: background-color .15s ease;

    &.clickable {
        cursor: pointer;
    }

    &:hover {
        background-color: var(--bg-secondary);
    }

    &.unread {
        background-color: rgba(var(--bs-primary-rgb), .05);

        &:hover {
            background-color: rgba(var(--bs-primary-rgb), .1);
        }

        .notification-item-message {
            color: var(--typo-primary);
            font-weight: 600;
        }
    }

    &.compact {
        border-radius: 0;
        gap: 10px;
        padding: 10px 16px;

        .notification-item-icon {
            --size: 32px;
            font-size: .875rem;
        }

        .notification-item-message {
            -webkit-line-clamp: 2;
            font-size: .8rem;
        }
    }

    .notification-item-icon {
        --size: 40px;
        align-items: center;
        border-radius: 10px;
        display: flex;
        flex-shrink: 0;
        font-size: 1rem;
        height: var(--size);
        justify-content: center;
        width: var(--size);
    }

    .notification-item-body {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .notification-item-message {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        color: var(--typo-primary);
        display: -webkit-box;
        font-size: .875rem;
        font-weight: 500;
        line-height: 1.4;
        overflow: hidden;
        word-break: break-word;
    }

    .notification-item-meta {
        align-items: center;
        color: var(--typo-secondary);
        display: flex;
        flex-wrap: wrap;
        font-size: .75rem;
        gap: 6px;
    }

    .notification-item-end {
        align-items: center;
        align-self: center;
        display: flex;
        flex-shrink: 0;
        gap: 12px;
    }

    .notification-item-dot {
        background-color: var(--bs-primary);
        border-radius: 50%;
        height: 8px;
        width: 8px;
    }

    .notification-item-chevron {
        color: var(--typo-secondary);
        font-size: .75rem;
    }
}

.notification-icon-primary {
    background-color: rgba(var(--bs-primary-rgb), .12);
    color: var(--bs-primary);
}

.notification-icon-warning {
    background-color: rgba(var(--bs-warning-rgb), .15);
    color: #b47b22;
}

.notification-icon-success {
    background-color: rgba(var(--bs-success-rgb), .14);
    color: #2f8a50;
}

.notification-icon-info {
    background-color: rgba(var(--bs-info-rgb), .12);
    color: var(--bs-info);
}

.notification-icon-secondary {
    background-color: rgba(var(--bs-secondary-rgb), .1);
    color: var(--bs-secondary);
}

.notification-group {
    & + .notification-group {
        margin-top: 24px;
    }

    .notification-group-title {
        color: var(--typo-secondary);
        display: block;
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .04em;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .notification-group-list {
        border: 1px solid var(--bs-border-color);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        overflow: hidden;

        .notification-item {
            border-radius: 0;

            & + .notification-item {
                border-top: 1px solid var(--bs-border-color);
            }
        }
    }
}

.notification-empty {
    align-items: center;
    color: var(--typo-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 48px 16px;
    text-align: center;

    > i {
        font-size: 2rem;
        margin-bottom: 6px;
    }

    .notification-empty-title {
        color: var(--typo-primary);
        font-size: 1rem;
        font-weight: 600;
    }

    .notification-empty-text {
        font-size: .875rem;
    }

    &.compact {
        gap: 8px;
        padding: 28px 16px;

        > i {
            font-size: 1.5rem;
            margin-bottom: 0;
        }
    }
}

/* #endregion */

/* #region OTP INPUT */

.input-otp-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;

    .input-otp {
        border: none;
        border-radius: 0px;
        border-bottom: 2px solid #e3e3e3;
        color: var(--typo-secondary);
        flex: 1 1 0px;
        font-size: 24px;
        padding: 12px;
        text-align: center;
        text-transform: uppercase;
        transition: all .2s;

        &:focus {
            box-shadow: none;
            border-bottom-color: #bbbbbb;
        }
    }
}

/* #endregion */

/* #region FILE DROP */

.file-drop-zone {
    align-items: center;
    aspect-ratio: 3 / 1;
    background-color: #FBFCFE;
    border: 3px dashed #CFDFFA;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 16px;
    transition: all .2s;

    .title {
        color: var(--typo-primary);
        font-size: 1rem;
        font-weight: 600;
        line-height: 1rem;
    }

    .subtitle {
        color: var(--typo-secondary);
        font-size: 12px;
        font-weight: 400;
    }

    > i {
        color: #A0C1F5;
        font-size: 48px;
        transition: all .2s;
        margin-bottom: 12px;
    }

    .or-text {
        color: var(--typo-secondary);
        font-size: 14px;
        margin: 8px 0px;
        position: relative;

        &::before, &::after {
            background-color: var(--typo-secondary);
            content: "";
            height: 1px;
            position: absolute;
            top: 50%;
            transform: translateY(50%);
            width: 25px;
        }

        &::before {
            left: 16px;
        }

        &::after {
            right: 16px;
        }
    }

    > .btn {
        margin-bottom: 12px;
    }

    &.drag-over, &:hover {
        border-color: #A5C4F6;

        > i {
            color: #548EEC;
        }
    }
}

.file-upload-edit-item {
    align-items: center;
    background-color: var(--card-in-card-bg);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 8px 12px;

    .upper-section, .lower-section {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }

    .lower-section {
        max-height: 0;
        overflow: hidden;
        transition: all .2s;

        &.show {
            max-height: 250px;
            padding-top: 8px;
        }
    }

    .icon-section {
        align-items: center;
        display: flex;
    }

    .field-section {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1 1 auto;

        .file-size {
            color: var(--typo-secondary);
            font-size: 12px;
            font-weight: 400;
        }
    }

    .button-section {
        align-items: center;
        display: flex;
        flex-direction: row;
        gap: 4px;

        .delete-icon-background, .decompress-icon-background {
            align-items: center;
            border-radius: 20px;
            display: flex;
            font-size: 14px;
            height: 25px;
            justify-content: center;
            transition: all .2s;
            width: 25px;
            cursor: pointer;
        }

        .delete-icon-background {
            &:hover, &.active {
                background: rgba(var(--bs-danger-rgb), 1);
                color: #fff;
            }

            &.active {
                &:hover {
                    background: var(--typo-primary);
                    color: #fff;
                }
            }
        }

        .decompress-icon-background {
            &:hover, &.active {
                background: rgba(var(--bs-primary-rgb), 1);
                color: #fff;
            }

            &.active {
                &:hover {
                    background: var(--typo-primary);
                    color: #fff;
                }
            }
        }
    }
}
/* #endregion */

/* #region tag selector */
.tag-selector-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

    .tag-selector-container .tag {
        align-content: center;
        cursor: default;
        font-size: .875rem;
        transition: transform .2s;
    }

        .tag-selector-container .tag:hover {
            transform: scale(1.05);
        }
/* #endregion */

/* #region file versions */
.file-version {
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 4px 8px;
    border-radius: 8px;
}

    .file-version .section {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .file-version .section .title {
            color: var(--typo-secondary);
            font-size: 0.75rem;
        }

        .file-version .section .value {
            color: var(--typo-primary);
            font-size: .875rem;
        }

    .file-version .button-section {
        align-items: center;
        display: flex;
        flex-direction: row;
    }
/* #endregion */

/* #region file detail */
.file-detail {
}

    .file-detail .section {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .file-detail .section .title {
            color: var(--typo-secondary);
            font-size: 0.75rem;
        }


        .file-detail .section .value {
            color: var(--typo-primary);
            font-size: .875rem;
        }
/* #endregion */

/* #region profile */
.profile-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .profile-navigation .item {
        align-items: center;
        border-radius: 8px;
        color: var(--typo-secondary);
        display: flex;
        flex-direction: row;
        gap: .75rem;
        font-size: 1rem;
        font-weight: 400;
        padding: 8px 16px;
        transition: background-color .2s !important;
    }

        .profile-navigation .item:hover {
            background-color: rgba(var(--bs-secondary-rgb), .1);
            text-decoration: none;
        }

        .profile-navigation .item.active {
            color: var(--typo-primary);
            font-weight: 500;
        }

            .profile-navigation .item.active i {
                color: rgba(var(--bs-primary-rgb), 1);
            }
/* #endregion */

/* #region identity */

.identity-alert {
    color: var(--typo-primary);
    font-size: .825rem;
    font-weight: 500;
    margin: 16px 0px;
    padding: 8px;
}

.identity-card {
    padding: 16px;
    margin: 0px;
}

    .identity-card .title {
        color: var(--typo-primary);
        font-size: 1.625rem;
        margin-bottom: 8px;
    }

    .identity-card .subtitle {
        color: var(--typo-secondary);
        font-size: 1.25rem;
    }
/* #endregion */

/* #region REPORT */

.content, .body, .wrapper, .main, html {
    &:has(.report-pdf.print) {
        background-color: #fff !important;
    }
}

.report-edit-user-selection-header {
    background-color: #E6F4F1;
    border-bottom: 1px solid #155f50;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    margin: -16px -16px 16px -16px;
    padding: 16px;

    .title-section {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 12px;

        .title {
            color: #155f50;
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 100%;
        }

        .subtitle {
            color: var(--typo-secondary);
            font-size: 0.688rem;
            font-weight: 400;
            line-height: 100%;
        }
    }

    .badge {
        background: rgba(26, 122, 102, .12);
        border-radius: 32px;
        color: #155f50;
        font-size: .688rem;
        font-weight: 600;
        padding: 4px 8px;
        white-space: nowrap;
        height: fit-content;
    }

    &.report-edit-user-selection-header-orange {
        background-color: #fdf1e4;
        border-bottom: 1px solid #9b5312;


        .title {
            color: #9b5312;
        }

        .badge {
            background-color: rgba(192, 107, 24, .12);
            color: #9b5312;
        }
    }
}

.report-fill-container {
    .report-fill-block {
        margin-bottom: 16px;
        scroll-margin-top: 24px;

        &:last-child {
            margin-bottom: 0;
        }

        .card-body {
            padding-bottom: 4px;
        }
    }

    .report-fill-block-header {
        align-items: center;
        border-bottom: 1px solid var(--bs-border-color);
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding: 14px 20px;

        .badge {
            white-space: nowrap;
        }
    }

    .report-fill-block-title {
        color: var(--typo-primary);
        font-size: 1rem;
        font-weight: 600;
    }

    .report-fill-block-subtitle {
        color: var(--typo-secondary);
        font-size: .78rem;
        font-style: italic;
    }

    .report-fill-row {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 16px;
        padding: 0 4px;
    }

    .report-fill-cell {
        flex: 1 1 160px;
        min-width: 160px;
    }

    .report-fill-field {
        display: flex;
        flex-direction: column;
    }

    .report-fill-note {
        color: var(--typo-primary);
        display: block;
        font-size: .9rem;
        font-weight: 600;
        margin-bottom: 8px;
        padding: 0 4px;
    }

    .report-fill-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 20px;
        padding-top: 4px;
    }
}

.report-fill-index {
    border-top: 1px solid #e7e7e7;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 16px;
    padding-top: 16px;

    .current-action-label {
        margin-bottom: 6px;
    }

    .report-fill-index-item {
        align-items: center;
        border-radius: 6px;
        color: var(--typo-primary);
        display: flex;
        font-size: .82rem;
        gap: 8px;
        justify-content: space-between;
        padding: 6px 8px;
        text-decoration: none;
        transition: background-color .15s;

        &:hover {
            background-color: var(--bs-tertiary-bg);
        }
    }

    .report-fill-index-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .report-fill-index-count {
        color: var(--typo-secondary);
        font-size: .72rem;
        white-space: nowrap;
    }
}

.report-fill-control-container {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    position: sticky;
    top: 32px;

    .current-action-label {
        display: block;
        font-size: .688rem;
        color: var(--typo-secondary);
    }

    .current-action-title {
        display: block;
        color: var(--typo-primary);
        font-size: 1.5rem;
        font-weight: 600;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid #e7e7e7;


        em {
            color: var(--typo-secondary);
        }
    }

    .current-action-description {
        border-bottom: 1px solid #e7e7e7;
        display: block;
        font-size: 0.9rem;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .current-action-buttons-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid #e7e7e7;
    }

    .current-action-progress-container {
        display: flex;
        flex-direction: column;
        gap: 8px;

        .current-action-progress-container-description {
            width: 100%;
            display: flex;
            justify-content: space-between;

            span {
                color: var(--typo-secondary);
                font-size: .688rem;
            }
        }

        .progress {
            height: 4px !important;
        }
    }
}

.report-preview-pdf {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    height: calc(100vh - 220px);
    min-height: 600px;
    width: 100%;
}

.report-preview-pdf-loading {
    align-items: center;
    color: var(--typo-secondary);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 400px;
}

.report-preview-pages {
    align-items: center;
    background-color: #e9ebee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-x: auto;
    padding: 24px;
}

.report-pdf {
    --border-color: #cbcbcb;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 16px;
    width: 21cm;
    min-height: 29.7cm;

    &.report-preview-page {
        background-color: #fff;
        border: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
        flex: none;
        min-height: 297mm;
        padding: 0 5mm 15mm;
        width: 210mm;

        .pdf-header-container {
            align-items: center;
            height: 25mm;
            padding: 0;
        }

        .pdf-lateral-container {
            align-self: stretch;
            margin: 2mm 0;
        }

        .pdf-title-container {
            align-self: stretch;
            margin: 2mm 0;
        }
    }

    &.print {
        border: unset;
        background-color: #fff;
        min-height: unset;
        height: 100%;
        padding: 0px;
    }

    .report-header {
        color: var(--typo-primary);
        font-size: 24px;
        font-weight: 600;
    }

    .report-notes {
        color: var(--typo-secondary);
        font-size: 14px;
        font-weight: 400;
    }

    .report-label {
        color: var(--typo-secondary);
        font-size: 12px;
        font-weight: 400;
        margin-bottom: 0px;
    }

    .report-value {
        color: var(--typo-primary);
        font-size: 16px;
        font-weight: 500;
    }

    .report-people-table {
        thead {
            tr {
                border-bottom: 1px solid #cbcbcb;

                th {
                    color: var(--typo-primary);
                    font-size: 16px;
                    font-weight: 500;
                    width: 33%;
                    padding: 8px;

                    &:not(:last-child) {
                        border-right: 1px solid #cbcbcb;
                    }
                }
            }
        }

        tbody {
            tr {
                td {
                    color: var(--typo-secondary);
                    font-size: 14px;
                    font-weight: 400;
                    width: 33%;
                    padding: 8px;

                    &:not(:last-child) {
                        border-right: 1px solid #cbcbcb;
                    }
                }

                &:not(:last-child) {
                    border-bottom: 1px solid #cbcbcb;
                }
            }
        }
    }

    .report-row {
        background-color: #fff;
        display: flex;
        flex-direction: row;
    }

    .report-column {
        --border-radius: 2px;
        background-color: #fff;
        border: 1px solid #cbcbcb;
        display: flex;
        flex-direction: column;
        flex: 1 1 0px;
        margin-bottom: 16px;
        padding: 8px;

        &:not(:has(.report-people-table)) {
            /*border: 1px solid #cbcbcb;*/
            page-break-inside: avoid;
        }

        &:first-child {
            border-top-left-radius: var(--border-radius);
            border-bottom-left-radius: var(--border-radius);
        }

        &:last-child {
            border-top-right-radius: var(--border-radius);
            border-bottom-right-radius: var(--border-radius);
        }

        &:not(:last-child) {
            border-right: none;
        }
    }

    .report-structure-element {
        flex: 1 1 100%;
        margin-bottom: 16px;
    }

    .report-header-subtitle {
        color: var(--typo-secondary);
        font-size: 11px;
        font-style: italic;
        font-weight: 400;
    }

    .report-value-multiline {
        display: block;
        white-space: pre-wrap;
    }

    .report-options {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 16px;
    }

    .report-option {
        white-space: nowrap;
    }

    .report-page-break {
        border-top: 1px dashed var(--border-color);
        flex: 1 1 100%;
        margin: 8px 0 24px;
    }

    .report-row-page-break {
        break-after: page;
    }

    .report-rich-text {
        color: var(--typo-primary);
        font-size: 13px;

        h1, h2, h3, h4 {
            font-weight: 600;
            margin: 8px 0 4px;
        }

        h1 { font-size: 18px; }
        h2 { font-size: 16px; }
        h3, h4 { font-size: 14px; }

        p, ul, ol {
            margin-bottom: 6px;
        }

        > :last-child {
            margin-bottom: 0;
        }

        table {
            border-collapse: collapse;
            margin-bottom: 6px;
            width: 100%;
        }

        th, td {
            border: 1px solid var(--border-color);
            padding: 4px 6px;
            text-align: left;
            vertical-align: top;
        }

        th {
            background-color: #f2f2f2;
            font-weight: 600;
        }
    }

    &.report-rich-text-preview {
        min-height: unset;
        width: 100%;
    }

    .report-column-table {
        padding: 0;
    }

    .report-static-table {
        border-collapse: collapse;
        color: var(--typo-primary);
        font-size: 13px;
        width: 100%;

        th, td {
            border: 1px solid var(--border-color);
            padding: 4px 6px;
            text-align: left;
            vertical-align: top;
            white-space: pre-wrap;
        }

        tr:first-child > * {
            border-top: none;
        }

        tr:last-child > * {
            border-bottom: none;
        }

        tr > :first-child {
            border-left: none;
        }

        tr > :last-child {
            border-right: none;
        }

        .report-static-table-header > th {
            background-color: #f2f2f2;
            font-weight: 600;
        }

        .report-static-table-nowrap {
            white-space: nowrap;
            width: 1%;
        }
    }

    &.print {
        display: block;

        .report-page-break {
            border: none;
            margin: 0;
        }
    }

    .report-column.label-left {
        align-items: stretch;
        flex-direction: row;
        padding: 0;

        .report-label {
            border-right: 1px solid var(--border-color);
            color: var(--typo-primary);
            flex: 0 0 50%;
            font-size: 14px;
            padding: 8px;
        }

        .report-value-container {
            flex: 1 1 0px;
            min-width: 0;
            padding: 8px;
        }
    }

    &.compact {
        .report-row:not(:first-of-type) {
            margin-top: -1px;
        }

        .report-column {
            border-radius: 0;
            margin-bottom: 0;
            padding: 4px 8px;

            &.label-left {
                padding: 0;

                .report-label,
                .report-value-container {
                    padding: 4px 8px;
                }
            }

            &.report-column-table {
                padding: 0;
            }
        }

        .report-header {
            font-size: 14px;
        }

        .report-label,
        .report-notes {
            color: var(--typo-primary);
            font-size: 13px;
        }

        .report-value {
            font-size: 13px;
            font-weight: 400;
        }

        .report-structure-element {
            margin-bottom: 0;
        }
    }
}

/* #endregion */

/* #region page */

.page-title {
    color: var(--typo-primary);
    font-size: 1.625rem;
}

.page-help-link {
    color: var(--typo-secondary);
    display: inline-flex;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color .15s ease;

    &:hover,
    &:focus-visible {
        color: var(--bs-primary);
    }
}

/* #endregion */

/* #region card */

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
}

.card-body {
    --bs-card-color: var(--typo-primary) !important;
    padding: 16px;
}

.card-title {
    color: var(--typo-primary);
    display: flex;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-subtitle {
    color: var(--typo-secondary);
    font-size: 1rem;
    display: flex;
    margin-bottom: 24px;
}

/* #endregion */

/* #region TEMPLATE LAYOUT */

.template-layout-add {
    align-items: center;
    border: 3px dashed #cacaff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    height: 64px;
    justify-content: center;
    margin: 8px 0px;
    transition: all .2s;
    padding: 16px;

    i {
        color: var(--typo-secondary);
        font-size: 16px;
        transition: all .2s;
    }

    &:hover {
        border-color: #a2a2ff;

        i {
            color: var(--typo-primary);
        }
    }
}

.template-trash-button {
    align-items: center;
    border-radius: 32px;
    background-color: rgb(217, 83, 79);
    color: rgb(255, 255, 255);
    cursor: pointer;
    display: flex;
    opacity: 0%;
    height: 20px;
    justify-content: center;
    left: 0;
    position: absolute;
    font-size: 14px;
    top: 0;
    transform: translate(-50%, -50%);
    width: 20px;
    transition: all .2s;

    &:hover {
        filter: brightness(90%);
    }
}

.template-layout-field-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.template-layout-field {
    align-items: center;
    background-color: var(--card-in-card-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--typo-primary);
    cursor: grab;
    display: flex;
    flex-direction: row;
    font-size: .875rem;
    padding: 8px 10px;
    transition: all .15s;
    user-select: none;

    &:hover {
        border-color: var(--bs-primary);
        color: var(--bs-primary);
    }

    &:active {
        cursor: grabbing;
    }
}

.template-layout-rows-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-layout-row {
    background-color: var(--card-in-card-bg);
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    position: relative;
    transition: box-shadow .15s;

    &:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, .09);
    }

    .placeholder-drop-here {
        align-items: center;
        backdrop-filter: blur(1.5px);
        background-color: color-mix(in srgb, var(--card-in-card-bg) 80%, transparent);
        border-radius: 10px;
        color: var(--typo-primary);
        display: flex;
        flex-direction: row;
        font-size: 1rem;
        font-weight: 500;
        height: 100%;
        justify-content: center;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
    }

    &.drop-insert-above {
        box-shadow: 0 -3px 0 0 var(--bs-primary);
    }

    &.drop-insert-below {
        box-shadow: 0 3px 0 0 var(--bs-primary);
    }
}

.template-layout-row.template-layout-row-section {
    background-color: color-mix(in srgb, var(--bs-primary) 6%, var(--card-in-card-bg));
    border-color: color-mix(in srgb, var(--bs-primary) 25%, transparent);
    margin-top: 14px;

    .template-layout-row-label {
        color: var(--bs-primary);
    }

    .template-layout-column-name {
        font-weight: 600;
    }
}

.template-layout-column-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-layout-row-header {
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 8px;
}

.template-layout-row-label {
    color: var(--typo-secondary);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.template-layout-row-actions {
    align-items: center;
    display: flex;
    gap: 10px;

    .fa-bars {
        color: var(--typo-secondary);
        cursor: grab;
        font-size: 13px;
        transition: color .15s;

        &:hover {
            color: var(--typo-primary);
        }

        &:active {
            cursor: grabbing;
        }
    }
}

.template-row-copy {
    color: var(--typo-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: color .15s;

    &:hover {
        color: var(--bs-primary);
    }
}

.template-row-delete {
    color: var(--typo-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: color .15s;

    &:hover {
        color: rgb(217, 83, 79);
    }
}

.template-layout-empty-drop-zone {
    align-items: center;
    border: 2px dashed var(--bs-primary);
    border-radius: 10px;
    color: var(--typo-secondary);
    display: flex;
    font-size: .875rem;
    height: 56px;
    justify-content: center;
    margin: 4px 0;
    transition: background-color .15s;

    &:hover {
        background-color: color-mix(in srgb, var(--bs-primary) 8%, transparent);
        color: var(--typo-primary);
    }
}

.static-table-editor {
    th, td {
        padding: 4px;
    }

    thead th {
        border-bottom: 1px solid var(--bs-border-color);
    }

    .static-table-header-row textarea {
        background-color: var(--bs-tertiary-bg);
        font-weight: 600;
    }
}

.static-table-actions {
    align-items: center;
    display: flex;
    gap: 2px;
}

.static-table-actions-label {
    color: var(--typo-secondary);
    font-size: .75rem;
    font-weight: 500;
    padding: 0 4px;
    white-space: nowrap;
}

.static-table-action {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--typo-secondary);
    display: inline-flex;
    font-size: .8rem;
    height: 26px;
    justify-content: center;
    padding: 0;
    transition: background-color .15s, color .15s;
    width: 26px;

    &:hover:not(:disabled) {
        background-color: var(--bs-tertiary-bg);
        color: var(--typo-primary);
    }

    &.active {
        background-color: color-mix(in srgb, var(--bs-primary) 14%, transparent);
        color: var(--bs-primary);
    }

    &.danger:hover:not(:disabled) {
        background-color: color-mix(in srgb, var(--bs-danger) 12%, transparent);
        color: var(--bs-danger);
    }

    &:disabled {
        cursor: default;
        opacity: .35;
    }
}

.template-editor-sticky {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    position: sticky;
    top: 32px;
}

.template-layout-columns-container {
    display: flex;
    flex-direction: row;
    flex: 1 1 0px;
    flex-wrap: wrap;
    gap: 6px;
}

.template-layout-column {
    align-items: center;
    background-color: var(--card-bg);
    border: 1.5px solid rgba(0, 0, 0, .08);
    border-radius: 100px;
    color: var(--typo-primary);
    cursor: grab;
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    font-size: .82rem;
    font-weight: 500;
    gap: 6px;
    justify-content: center;
    min-width: 80px;
    padding: 5px 14px;
    position: relative;
    transition: all .15s;
    user-select: none;

    .field-type-icon {
        color: var(--typo-secondary);
        flex-shrink: 0;
        font-size: .75rem;
    }

    &:active {
        cursor: grabbing;
    }

    &:hover {
        background-color: color-mix(in srgb, var(--bs-primary) 5%, var(--card-bg));
        border-color: color-mix(in srgb, var(--bs-primary) 40%, transparent);

        > .template-trash-button {
            opacity: 100%;
        }
    }

    &.selected {
        background-color: color-mix(in srgb, var(--bs-primary) 10%, var(--card-bg));
        border-color: color-mix(in srgb, var(--bs-primary) 50%, transparent);

        .field-type-icon {
            color: var(--bs-primary);
        }
    }

    &.field-system {
        background-color: color-mix(in srgb, var(--bs-warning) 10%, var(--card-bg));
        border-color: color-mix(in srgb, var(--bs-warning) 35%, transparent);

        .field-type-icon {
            color: var(--bs-warning-text-emphasis, #664d03);
        }

        &.selected {
            background-color: color-mix(in srgb, var(--bs-warning) 20%, var(--card-bg));
            border-color: color-mix(in srgb, var(--bs-warning) 60%, transparent);
        }
    }
}

/* #endregion */

/* #region HELP */

.help-section-item {
    display: flex;
    align-items: center;
    padding: .5rem .75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--bs-border-color);
    transition: background .15s;

    &:last-child {
        border-bottom: none;
    }

    &:hover {
        background: var(--bs-tertiary-bg);
    }

    &.active {
        background: var(--bs-primary-bg-subtle);
        border-left: 3px solid var(--bs-primary);
    }
}

/* #endregion */

/* #region MARKDOWN CONTENT */

.markdown-content {
    line-height: 1.6;

    h1, h2, h3, h4, h5, h6 {
        margin-top: 1.25rem;
        margin-bottom: .5rem;
        font-weight: 600;
        line-height: 1.3;

        &:first-child { margin-top: 0; }
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    h4, h5, h6 { font-size: 1rem; }

    p { margin-bottom: .75rem; }
    p:last-child { margin-bottom: 0; }

    ul, ol {
        padding-left: 1.5rem;
        margin-bottom: .75rem;
    }

    li { margin-bottom: .2rem; }

    code {
        font-size: .875em;
        padding: .15em .35em;
        background: var(--bs-tertiary-bg);
        border-radius: .25rem;
    }

    pre {
        background: var(--bs-tertiary-bg);
        border-radius: .375rem;
        padding: .75rem 1rem;
        overflow-x: auto;
        margin-bottom: .75rem;

        code {
            padding: 0;
            background: transparent;
            font-size: .85em;
        }
    }

    blockquote {
        border-left: 3px solid var(--bs-border-color);
        padding-left: .75rem;
        color: var(--bs-secondary-color);
        margin: 0 0 .75rem;
    }

    hr {
        border: none;
        border-top: 1px solid var(--bs-border-color);
        margin: 1rem 0;
    }

    a { color: var(--bs-link-color); }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: .75rem;
        font-size: .9em;

        th, td {
            border: 1px solid var(--bs-border-color);
            padding: .4rem .6rem;
        }

        th { background: var(--bs-tertiary-bg); font-weight: 600; }
    }
}

/* #endregion */

/* #region BREADCUMB */

.breadcrumb-item {
    font-size: .875rem;
    min-width: 0;
}

    .breadcrumb-item + .breadcrumb-item:before {
        content: ">";
        flex-shrink: 0;
    }

    .breadcrumb-item.active {
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* #endregion */

/* #region MODALS */

.modal-header, .modal-footer {
    border: unset !important;
}

/* #endregion */

/* #region BADGES */

.badge-sm {
    font-size: .75rem !important;
}

.badge-lg {
    font-size: .825rem !important;
}

/* #endregion */

/* #region FLEX */

.d-flex-column {
    display: flex;
    flex-direction: column;
}

.d-flex-row {
    display: flex;
    flex-direction: row !important;
}

.d-flex-row-center {
    align-items: center;
    display: flex;
    flex-direction: row;
}

/* #endregion */

/* #region FORM SELECT */

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23495057' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3 6 5 5 5-5'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-size: 14px 14px;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    overflow: clip;
    overflow-clip-margin: content-box;
    padding-right: 36px;
    text-overflow: ellipsis;
    white-space: nowrap;

    selectedcontent {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    &:disabled {
        cursor: not-allowed;
        opacity: .6;
    }

    &:has(> option[value=""]:checked) {
        color: var(--typo-secondary);
    }

    option {
        color: var(--typo-primary);
    }
}

@supports (appearance: base-select) {
    .form-select:not([multiple]),
    .form-select:not([multiple])::picker(select) {
        appearance: base-select;
    }

    .form-select:not([multiple]) {
        &::picker-icon {
            display: none;
        }

        &::picker(select) {
            background-color: var(--card-bg);
            border: 1px solid var(--bs-border-color);
            border-radius: 8px;
            box-shadow: 0 .5rem 1.5rem rgba(41, 48, 66, .12);
            margin-top: 4px;
            max-height: 320px;
            max-width: min(420px, calc(100vw - 32px));
            padding: 4px;
        }

        option {
            border: 1px solid transparent;
            border-radius: 6px;
            color: var(--typo-primary);
            cursor: pointer;
            display: block;
            overflow: hidden;
            padding: 6px 12px;
            text-overflow: ellipsis;
            white-space: nowrap;
            transition: background-color .15s ease, color .15s ease;

            &:not(:last-child) {
                margin-bottom: 2px;
            }

            &::checkmark {
                display: none;
            }

            &:hover,
            &:focus-visible {
                background-color: rgba(var(--bs-primary-rgb), .1);
            }

            &:checked {
                background-color: rgba(var(--bs-primary-rgb), .1);
                border-color: var(--bs-primary);
                font-weight: 500;
            }
        }
    }
}

.form-select-icon,
.form-control-icon {
    position: relative;

    > i {
        color: var(--typo-secondary);
        font-size: .875rem;
        left: 12px;
        line-height: 1;
        pointer-events: none;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    > .form-select,
    > .form-control {
        padding-left: 34px;
    }
}

.explorer-filters-toggle {
    white-space: nowrap;
}

@keyframes filters-popover-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.filters-popover {
    position: relative;

    .filters-popover-backdrop {
        inset: 0;
        position: fixed;
        z-index: 1040;
    }

    .filters-popover-panel {
        animation: filters-popover-in .16s ease-out;
        background-color: var(--card-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: 16px;
        box-shadow: 0 1rem 2.5rem rgba(41, 48, 66, .16);
        display: flex;
        left: 0;
        margin-top: 8px;
        overflow: hidden;
        position: absolute;
        top: 100%;
        transform-origin: top left;
        width: 640px;
        z-index: 1050;
    }

    .filters-popover-label {
        color: var(--typo-secondary);
        display: block;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .05em;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .filters-popover-presets {
        border-right: 1px solid var(--bs-border-color);
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        gap: 2px;
        min-width: 172px;
        padding: 16px 12px;

        .filters-popover-label {
            padding: 0 12px;
        }

        button {
            background: none;
            border: none;
            border-radius: 8px;
            color: var(--typo-secondary);
            font-size: .85rem;
            padding: 8px 12px;
            text-align: left;
            transition: background-color .15s ease, color .15s ease;
            white-space: nowrap;

            &:hover {
                background-color: var(--bg-secondary);
                color: var(--typo-primary);
            }

            &.is-active {
                background-color: rgba(var(--bs-primary-rgb), .1);
                color: var(--bs-primary);
                font-weight: 600;
            }
        }
    }

    .filters-popover-body {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 18px;
        min-width: 0;
        padding: 16px;
    }

    .filters-popover-footer {
        align-items: center;
        border-top: 1px solid var(--bs-border-color);
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding-top: 14px;
    }

    .filters-popover-actions {
        display: flex;
        gap: 8px;
    }

    @media (max-width: 767.98px) {
        .filters-popover-panel {
            flex-direction: column;
            width: calc(100vw - 32px);
        }

        .filters-popover-presets {
            border-bottom: 1px solid var(--bs-border-color);
            border-right: none;
            flex-direction: row;
            min-width: 0;
            overflow-x: auto;
            padding: 12px;

            .filters-popover-label {
                display: none;
            }
        }
    }

    @media (min-width: 768px) {
        &.align-end .filters-popover-panel {
            left: auto;
            right: 0;
            transform-origin: top right;
        }
    }
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    color: var(--typo-primary);
    display: inline-flex;
    font-size: .8rem;
    gap: 6px;
    padding: 4px 12px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;

    &:hover {
        background-color: var(--bg-secondary);
    }

    &.is-active {
        background-color: rgba(var(--bs-primary-rgb), .1);
        border-color: var(--bs-primary);
        color: var(--bs-primary);
        font-weight: 600;
    }
}

/* #endregion */

/* #region DOCS */

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-nav-link {
    border-radius: 8px;
    color: var(--typo-primary);
    display: block;
    font-weight: 500;
    padding: 6px 10px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

    .docs-nav-link:hover {
        background-color: var(--bg-secondary);
        color: var(--typo-primary);
    }

    .docs-nav-link.active {
        background-color: rgba(var(--bs-primary-rgb), 0.1);
        color: var(--bs-primary);
    }

.docs-toc {
    border-left: 2px solid var(--bs-border-color);
    list-style: none;
    margin: 4px 0 8px 14px;
    padding: 0;
}

    .docs-toc a {
        color: var(--typo-secondary);
        display: block;
        font-size: 13px;
        padding: 3px 10px;
        text-decoration: none;
    }

        .docs-toc a:hover {
            color: var(--bs-primary);
        }

    .docs-toc .docs-toc-sub a {
        padding-left: 22px;
    }

.docs-description {
    color: var(--typo-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.docs-content {
    color: var(--typo-primary);
    font-size: 15px;
    line-height: 1.65;
    max-width: 860px;
}

    .docs-content h2,
    .docs-content h3,
    .docs-content h4 {
        font-weight: 600;
        scroll-margin-top: 80px;
    }

        .docs-content h2:hover .docs-anchor,
        .docs-content h3:hover .docs-anchor,
        .docs-content h4:hover .docs-anchor {
            opacity: 1;
        }

    .docs-content .docs-anchor {
        color: var(--typo-secondary);
        font-weight: 400;
        margin-left: 8px;
        opacity: 0;
        text-decoration: none;
        transition: opacity 0.15s ease;
    }

        .docs-content .docs-anchor:hover,
        .docs-content .docs-anchor:focus-visible {
            color: var(--bs-primary);
            opacity: 1;
        }

@media (hover: none) {
    .docs-content .docs-anchor {
        opacity: 1;
    }
}

.docs-content h2 {
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 22px;
    margin: 32px 0 12px;
    padding-bottom: 6px;
}

.docs-content h3 {
    font-size: 18px;
    margin: 24px 0 8px;
}

.docs-content h4 {
    font-size: 16px;
    margin: 20px 0 8px;
}

.docs-content > :first-child {
    margin-top: 0;
}

.docs-content p,
.docs-content ul,
.docs-content ol,
.docs-content table,
.docs-content pre,
.docs-content blockquote {
    margin-bottom: 16px;
}

.docs-content li + li {
    margin-top: 4px;
}

.docs-content a {
    color: var(--bs-primary);
}

.docs-content code {
    background-color: var(--bg-secondary);
    border-radius: 4px;
    color: #c7254e;
    font-size: 0.875em;
    padding: 2px 5px;
}

.docs-content pre {
    background-color: #1e1e1e;
    border-radius: 8px;
    color: #d4d4d4;
    font-size: 13px;
    overflow-x: auto;
    padding: 14px 16px;
}

    .docs-content pre code {
        background-color: transparent;
        color: inherit;
        font-size: inherit;
        padding: 0;
    }

.docs-content blockquote {
    background-color: rgba(var(--bs-primary-rgb), 0.06);
    border-left: 4px solid var(--bs-primary);
    border-radius: 0 8px 8px 0;
    color: var(--typo-primary);
    padding: 10px 16px;
}

    .docs-content blockquote > :last-child {
        margin-bottom: 0;
    }

.docs-content table {
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    width: 100%;
}

    .docs-content table th,
    .docs-content table td {
        border: 1px solid var(--bs-border-color);
        padding: 6px 12px;
    }

    .docs-content table th {
        background-color: var(--bg-secondary);
        font-weight: 600;
    }

.docs-content img {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    height: auto;
    max-width: 100%;
}

.docs-content hr {
    border-color: var(--bs-border-color);
    margin: 32px 0;
}

/* #endregion */

/* #region MARGIN */

.mt-12px {
    margin-top: 12px;
}

/* #endregion */

/* #region OTHER */

.cursor-pointer {
    cursor: pointer !important;
}

.flex-fill-real {
    flex: 1 1 0px;
}

.nowrap {
    white-space: nowrap;
}

.overflow-x-auto {
    overflow-x: auto;
}

.v-hidden {
    visibility: hidden !important;
}

.w-fit {
    width: fit-content;
}

.red-circle-badge {
    background-color: #e90000;
    border-radius: 50%;
    left: 0;
    padding: 6px;
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%) !important;
}

/* #endregion */
