html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a,
.btn btn-sm btn-primary {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn btn-sm btn-primary.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

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;
}

@media (max-width: 771px) {
    .hide-on-small {
        display: none;
    }
}

@media (min-width: 770px) {
    .show-on-small {
        display: none;
    }
}

.actions-column {
    white-space: nowrap;
    padding-right: 0.1rem;
}

.actions-column a {
    margin: 0.5rem 0.1rem 0.5rem 0.1rem
}

.big-checkbox {
    width: 20px;
    height: 20px;
}

form {
    margin-bottom: 20px;
}

.page {
    transition: margin-right 0.3s ease-in-out;
}

.drawer-pinned {
    margin-right: 400px;
}

.drawer-collapsed {
    margin-right: 0px;
}

.sticky-header {
    position: sticky;
    top: 56px;
    z-index: 900;
    background-color: white;
}

.drawer-collapsed-has-help .sticky-header {
    margin-right: 35px;
}

/* Help Button */
.help-button {
    position: fixed;
    top: 80px;
    right: 25px;
    z-index: 1000;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.help-button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.help-button:focus {
    outline: none;
}


/* Help Drawer */
.help-drawer {
    z-index: 1001 !important;
    position: fixed;
    top: 0;
    right: -400px;
    height: 100%;
    width: 400px;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 999;
    transition: right 0.3s ease-in-out;
}

/* When Drawer is Open */
.help-drawer.open {
    right: 0;
}

/* Drawer Header */
.help-drawer .drawer-header {
    background-color: #007bff;
    color: white;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-drawer .drawer-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.help-drawer .drawer-header button:hover {
    color: #d4d4d4;
}

/* Drawer Content */
.help-drawer .drawer-content {
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Close Button in the Drawer */
.drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    margin-left: auto;
    transition: color 0.3s;
}

.drawer-close:hover {
    color: #ccc;
}

.has-impersonation-banner.help-button {
    top: 120px;
}

.has-impersonation-banner.help-drawer {
    top: 40px;
}

.accordion {
    margin-bottom: 15px;
}

.help-drawer .drawer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-drawer .drawer-pin {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: gray;
}

.help-drawer .drawer-pin:hover {
    color: black;
}

.max-width-400 {
    max-width: 400px !important;
}

.max-width-600 {
    max-width: 600px !important;
}

.max-width-800 {
    max-width: 800px !important;
}

.max-width-1000 {
    max-width: 1000px !important;
}

.nav-item .nav-link {
    line-height: 1.2rem !important;
}

.form-check-input:checked[type=checkbox] {
    width: 20px !important;
    height: 20px !important;
}

.form-check-input[type=radio] {
    width: 20px !important;
    height: 20px !important;
    margin-top: 2px;
    margin-right: 8px;
}

.thumbnail-wrapper {
    position: relative;
    display: inline-block;
}

.media-container a {
    word-break: break-word;
    overflow-wrap: break-word;
    /* Older browsers support */
    white-space: normal;
    /* Allows wrapping */
}


.thumbnail {
    width: 200px;
    height: auto;
    border-radius: 8px;
    display: block;
    border: 1px solid lightgray;
}

.upload-btn,
.delete-btn {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.upload-btn-old {
    bottom: 5px;
    right: 5px;
    background-color: #28a745;
    color: white;
}

.delete-btn-old {
    bottom: 5px;
    left: 5px;
    background-color: #dc3545;
    color: white;
}

.upload-btn {
    bottom: 5px;
    right: 5px;
    background-color: #d1d1d1;
    color: black;
}

.delete-btn {
    bottom: 5px;
    left: 5px;
    background-color: #d1d1d1;
    color: black;
}


.upload-btn:hover {
    background-color: #218838;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Hide actual file input */
.file-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.legend-column {
    max-width: 300px !important;
    position: sticky;
    top: 120px;
    z-index: 900;
    background-color: white;
}

.legend-column-image {
    text-align: center;
}

.legend-column-image img {
    width: 300px !important;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1000px) {
    .legend-column {
        display: none;
    }

    .legend-column-image {
        text-align: center;
    }

    .legend-column-image img {
        width: 300px !important;
        height: auto;
        border-radius: 8px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.dot.green {
    background-color: #28a745;
    /* green */
}

.dot.yellow {
    background-color: #ffc107;
    /* yellow */
}

.dot.red {
    background-color: #dc3545;
    /* red */
}

.language-selector svg {
    fill: white;
}

.language-selector-black svg {
    fill: black;
}

.language-selector span {
    color: #006bb7;
}

.nav-item a.active {
    background-color: #3ba3fb !important;
}

.nav-link .bi {
    margin-top: 10px;
}

.btn-group i.bi {
    color: black;
    font-weight: bold;
}

.scroll-top-button {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.scroll-top-button.visible {
    opacity: 1;
}

.scroll-top-button-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.clipboard-button-wrapper {
    position: fixed;
    bottom: 20px;
    right: 70px;
}

.clipboard-button {
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
}

.clipboard-loader {
    display: none;
    animation: spin 1s linear infinite;
}

.clipboard-button:hover {
    opacity: 0.5;
}

.drawer-pinned .scroll-top-button-wrapper {
    right: 420px;
}

.top-row a {
    color: rgb(59, 163, 251);
}

.language-selector {
    margin-right: 15px;
}

.language-selector span {
    color: rgb(59, 163, 251) !important;
}

td.force-wrap {
    min-width: 200px;
    word-break: break-word;
    overflow-wrap: break-word;
    /* Older browsers support */
    white-space: normal;
    /* Allows wrapping */
}

.impersonation-banner-fixed {
    position: fixed !important;
    bottom: 1rem;
    left: 1rem;
    max-width: 220px;
    background-color: white;
    border-left: 5px solid #dc3545;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0.75rem 0.75rem 0.5rem;
    z-index: 1050;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    transition: all 0.3s ease-in-out;
}

.impersonation-banner-fixed .end-btn,
.impersonation-banner-fixed .collapse-btn {
    position: absolute;
    top: 0.25rem;
    padding: 0.2rem 0.4rem;
    font-size: 1rem;
}

.impersonation-banner-fixed .end-btn {
    right: 0.25rem;
}

.impersonation-banner-fixed .collapse-btn {
    right: 2.5rem;
}

.impersonation-banner-fixed.collapsed {
    padding: 0.5rem;
    width: auto;
    max-width: none;
    background-color: transparent;
    box-shadow: none;
    border-left: none;
}

.impersonation-banner-fixed.collapsed button {
    position: relative;
    margin: 0;
    padding: 0.4rem 0.5rem;
    font-size: 1rem;
}

.snapshot-image {
    max-height: 70vh;
    object-fit: contain;
    cursor: zoom-in;
}

.btn {
    margin-right: 0px !important;
}

.modal-sm {
    max-width: 320px;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    /* Padding from top */
}

.ql-toolbar .ql-nbsp svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.ql-editor .ql-indent-1:not(.ql-direction-rtl) {
    padding-left: 0.5em;
}

.ql-editor .ql-indent-2:not(.ql-direction-rtl) {
    padding-left: 1em;
}

.ql-editor .ql-indent-3:not(.ql-direction-rtl) {
    padding-left: 1.5em;
}

.ql-editor .ql-indent-4:not(.ql-direction-rtl) {
    padding-left: 2em;
}

.ql-editor .ql-indent-5:not(.ql-direction-rtl) {
    padding-left: 2.5em;
}

.ql-editor .ql-indent-6:not(.ql-direction-rtl) {
    padding-left: 3em;
}

.ql-editor .ql-indent-7:not(.ql-direction-rtl) {
    padding-left: 3.5em;
}

.ql-editor .ql-indent-8:not(.ql-direction-rtl) {
    padding-left: 4em;
}

.ql-editor .ql-indent-9:not(.ql-direction-rtl) {
    padding-left: 4.5em;
}

.ql-editor .ql-indent-10:not(.ql-direction-rtl) {
    padding-left: 5em;
}

model-viewer .hotspot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border: none;
    background-color: blue;
    box-sizing: border-box;
}

.quick-grid th {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 0px !important;
}

th.col-justify-start {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 0px !important;
}

.button-row-cell {
    margin-left: 10px;
    display: flex;
    flex-wrap: nowrap;
    /* Prevent buttons from wrapping */
    gap: 0.25rem;
    /* Add spacing between buttons */
}