﻿/******** STYLES USED GENERALLY BY ALL UI, AS WELL AS SPECIFIC STYLES FROM UI COMPONENTS ********/



/* -------- Variables -------- */

:root,
[data-bs-theme=light] {
    
    --bright-blue: #009fc7;
    --bright-orange: #e39400;
    --bright-orange-highlight: #e9a900;
    --bright-yellow: #e6d600;
    --bright-navy: #0f2b3d;

    --border-color-list: #eff1f3; /* --bs-border-color overlaid with --bs-body-bg 50% */
    
}

[data-bs-theme=dark] {
    
    --border-color-list: #353a40; /* --bs-border-color overlaid with --bs-body-bg 50% */
    
}



/* -------- Browser overrides -------- */

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow: hidden; }
dl, dt, dd { margin: 0; padding: 0; font-weight: normal; }

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }



/* -------- Utility classes -------- */

.border-transparent { border-color: transparent !important; }

.cursor-auto { cursor: auto; }
.cursor-default { cursor: default; }

.d-grid-top-dock { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.d-grid-bottom-dock { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.d-grid-right-dock { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.d-grid-left-dock { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.d-grid-top-and-bottom-dock { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }

.justify-items-start { justify-items: start !important; }
.justify-items-center { justify-items: center !important; }
.justify-items-end { justify-items: end !important; }

.mw-visual { max-width: 1000px; margin: 0 auto; }

.opacity-667 { opacity: .667; }
.opacity-333 { opacity: .333; }

.progressing { pointer-events: none; background-color: var(--bs-secondary-bg); background-image: linear-gradient( -45deg, var(--bs-body-bg) 25%, transparent 25%, transparent 50%, var(--bs-body-bg) 50%, var(--bs-body-bg) 75%, transparent 75%, transparent ); background-size: 32px 32px; animation: progressing 1.5s linear infinite; }
@keyframes progressing {
	0% { background-position: 0 0; }
	100% { background-position: 32px 32px; }
}

a.discreet { color: inherit; text-decoration: none; }
a.discreet:hover { color: inherit; text-decoration: underline; }
a.discreet-faded { color: inherit; text-decoration: none; opacity: .5; transition: opacity 250ms }
a.discreet-faded:hover { color: inherit; text-decoration: none; opacity: 1; }
a.text-color { color: inherit !important; text-decoration: underline !important; }
.link-disabled { color: var(--bs-secondary-color); cursor: not-allowed; }

i.fa-supersize { font-size: 12em; margin-bottom: 1.6rem; }
i.fa-caret-down { margin: -.25rem 0 }

.border-invalid { padding-right: .75rem !important; background: none !important; }

.no-child-outer-margins > *:first-child { margin-top: 0!important; }
.no-child-outer-margins > *:last-child { margin-bottom: 0!important; }

label.input-file-label { cursor: pointer; color: var(--bs-primary); font-size: inherit; }
label.input-file-label:hover { color: var(--bs-link-hover-color); text-decoration: none; }



/* -------- General layout -------- */

.top-dock-layout { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.top-dock-layout > :last-child { position: relative; min-width: 0; min-height: 0; }
.top-dock-layout > :last-child > :first-child { width: 100%; height: 100%; }
.right-dock-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.right-dock-layout > :first-child { position: relative; min-width: 0; min-height: 0; }
.right-dock-layout > :first-child > :first-child { width: 100%; height: 100%; }
.bottom-dock-layout { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.bottom-dock-layout > :first-child { position: relative; min-width: 0; min-height: 0; }
.bottom-dock-layout > :first-child > :first-child { width: 100%; height: 100%; }
.left-dock-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.left-dock-layout > :last-child { position: relative; min-width: 0; min-height: 0; }
.left-dock-layout > :last-child > :first-child { width: 100%; height: 100%; min-width: 0; min-height: 0; }
.top-and-bottom-dock-layout { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.top-and-bottom-dock-layout > :nth-child(2) > { min-width: 0; min-height: 0; }
.top-and-bottom-dock-layout > :nth-child(2) > :first-child { width: 100%; height: 100%; }

.fill-child { position: relative; }
.fill-child > :first-child { width: 100%; height: 100%; min-width: 0; min-height: 0; }
.center-child { display: flex; align-items: center; justify-content: center; }

.fill { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; }
.fill .stack { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100vw; height: 100vh; }

.overlay { display: none; position: fixed; top: 0; left: 0; z-index: 100; width: 100vw; height: 100vh; }
.overlay .stack { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100vw; height: 100vh; }

.inner-shadow { box-shadow: 0 .25rem .5rem -.5rem rgba(var(--bs-black-rgb), .333) inset; }
.inner-shadow-h { box-shadow: .25rem 0 .5rem -.5rem rgba(var(--bs-black-rgb), .2) inset; }

.no-data-context { background-color: var(--bs-body-disabled-bg); }
.no-data-context > h1, .no-data-context > .d-flex > h1 { margin-left: 1.5rem; margin-right: 1.5rem; margin-bottom: 1.5rem; padding: 0; font-weight: 100; opacity: .25; font-size: 3.5rem; letter-spacing: -.5px; text-align: center; }
.no-data-context > p, .no-data-context > .d-flex > * { max-width: 75%; margin: 0; padding: 0; text-align: center; }
.no-data-context > p, .no-data-context > .d-flex > p { opacity: .75; }
.no-data-context > p, .no-data-context > .d-flex > img { max-width: 480px; margin-left: 3rem; margin-right: 3rem; }
@media (min-width: 992px) {
    .no-data-context > p, .no-data-context > .d-flex > *  { max-width: 744px;  }
}
@media (min-width: 1200px) {
    .no-data-context > p, .no-data-context > .d-flex > * { max-width: 900px;  }
}

* i + span { margin-left: .5rem; }

.list-group-item-content { display: grid; grid-template-columns: 2.25rem 1fr; grid-template-rows: auto auto; column-gap: .75rem; cursor: pointer; }
.list-group-item-content > i { grid-row-end: span 2; margin-top: .25rem; font-size: 2rem; text-align: center; }
.list-group-item-content > p { grid-column-start: 2; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-group-item-content > p:nth-of-type(1) { }
.list-group-item-content > p:last-of-type { grid-row-start: 2; opacity: .5; }

.list-group-item-placeholder { background-color: var(--border-color-list) !important; }



/* -------- Alert -------- */

.alert.alert-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; border-width: 0; border-radius: 0; padding-top: .5rem; padding-bottom: .5rem; text-align: center; }
.alert.alert-bar > * { margin: .25rem !important; }
.alert.alert-bar.alert-bar-horizontal { gap: .25rem; flex-wrap: nowrap; justify-content: space-between; text-align:left; }
.alert-warning.alert-bar .btn-outline-secondary { --bs-btn-color: var(--bs-warning-text); --bs-btn-border-color: var(--bs-warning-text); --bs-btn-hover-color: var(--bs-body-bg); --bs-btn-hover-bg: var(--bs-warning-text); --bs-btn-hover-border-color: var(--bs-warning-text); --bs-btn-focus-shadow-rgb: 102, 77, 3; --bs-btn-active-color: var(--bs-body-bg); --bs-btn-active-bg: var(--bs-warning-text); --bs-btn-active-border-color: var(--bs-warning-text); white-space: nowrap; }



/* -------- DataGrid -------- */

.data-grid { display: grid; grid-template-rows: auto 1fr auto; border-color: var(--bs-border-color) !important; overflow: hidden; }
.data-grid > header { border-bottom: 1px solid var(--bs-border-color); }
.data-grid > footer { border-top: 1px solid var(--bs-border-color); }
.data-grid > *.data-grid-scroll { overflow-y: auto; background-image: linear-gradient(var(--bs-body-bg) calc(3rem - 1px), var(--border-color-list) 1px); background-size: 100% 3rem; }
.data-grid table { table-layout: fixed; width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; }
.data-grid table tr { background-color: transparent; }
.data-grid table th, .data-grid table td { padding: .75rem; vertical-align: top; text-align: right; }
.data-grid table th { padding-top: .5rem; padding-bottom: .5rem; }
.data-grid table td { height: 3rem; padding-top: 0; padding-bottom: 0; vertical-align: middle; background-image: linear-gradient(var(--bs-body-bg) calc(3rem - 1px), var(--border-color-list) 1px); background-size: 100% 3rem; overflow: hidden; }
.data-grid table th:first-child, .data-grid table td:first-child { padding-left: 1rem; text-align: left; }
.data-grid table th:last-child, .data-grid table td:last-child { padding-right: 1rem; }
.data-grid table > thead > tr > th { vertical-align: bottom; color: var(--bs-secondary-color); overflow: hidden; text-overflow: ellipsis; }
.data-grid table > tfoot > tr > th { vertical-align: top; color: var(--bs-secondary-color); }
.data-grid.border table > *:last-child > *:last-child > td { background-image: none; }
.data-grid table > tbody > *:not(tr) { display: table-row; }
.data-grid table.data-grid-interactive tr { cursor: pointer; }
.data-grid table.data-grid-interactive tr:hover td { background-image: linear-gradient(var(--bs-tertiary-bg) calc(3rem - 1px), var(--border-color-list) 1px); }
.data-grid table.data-grid-selectable > tbody > * { cursor: default; }
.data-grid table.data-grid-selectable > tbody > * > *:first-child { overflow: visible; }
.data-grid table.data-grid-selectable > tbody > *:not(.selected) > *:not(:first-child) { color: rgba(var(--bs-dark-rgb), .33); }
.data-grid table.data-grid-selectable .select { display: grid; grid-template-columns: auto 1fr; gap: .5em; align-items: center; text-align: start; }
.data-grid table.data-grid-selectable .select .form-check-input { margin-top: 0; }
.data-grid table.data-grid-selectable .select div { overflow: hidden; text-overflow: ellipsis; }

.data-grid th.hidden-before { position: relative; overflow: visible; text-align: center !important; /*background-image: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 5px);*/ }
.data-grid th.hidden-before .line { position: absolute; top: 0; left: 0; width: 1px; height: 2000px; border-left: dotted 1px var(--bs-border-color); }
.data-grid td.hidden-before { text-align: center !important; color: var(--bs-secondary-color); /*background-image: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 5px), linear-gradient(var(--bs-body-bg) calc(3rem - 1px), var(--border-color-list) 1px);*/ }
.data-grid th.hidden-after { text-align: center !important; /*background-image: linear-gradient(90deg, rgba(0,0,0,0) calc(100% - 5px), rgba(0,0,0,0.1) 100%);*/ }
.data-grid td.hidden-after { text-align: center !important; color: var(--bs-secondary-color); /*background-image: linear-gradient(90deg, rgba(0,0,0,0) calc(100% - 5px), rgba(0,0,0,0.1) 100%), linear-gradient(var(--bs-body-bg) calc(3rem - 1px), var(--border-color-list) 1px);*/ }

.data-grid td.group-name { font-weight: bold; }
.data-grid ul.pagination { margin: 0; }

.data-grid.data-grid-left table th, .data-grid.data-grid-left table td { text-align: left; }

.data-grid.data-grid-lg table td { height: 4rem; background-image: linear-gradient(var(--bs-body-bg) calc(4rem - 1px), var(--border-color-list) 1px); background-size: 100% 4rem; }
.data-grid.data-grid-lg .data-grid-scroll { background-image: linear-gradient(var(--bs-body-bg) calc(4rem - 1px), var(--border-color-list) 1px); background-size: 100% 4rem; }
.data-grid.data-grid-lg table.data-grid-interactive tr:hover td { background-image: linear-gradient(var(--bs-tertiary-bg) calc(4rem - 1px), var(--border-color-list) 1px); }
.data-grid.data-grid-xl table td { height: 5rem; background-image: linear-gradient(var(--bs-body-bg) calc(5rem - 1px), var(--border-color-list) 1px); background-size: 100% 5rem; }
.data-grid.data-grid-xl .data-grid-scroll { background-image: linear-gradient(var(--bs-body-bg) calc(5rem - 1px), var(--border-color-list) 1px); background-size: 100% 5rem; }
.data-grid.data-grid-xl table.data-grid-interactive tr:hover td { background-image: linear-gradient(var(--bs-tertiary-bg) calc(5rem - 1px), var(--border-color-list) 1px); }

.data-grid.data-grid-disabled { pointer-events: none; }
.data-grid.data-grid-disabled .form-check-input { pointer-events: none; filter: none; opacity: .5; }
.data-grid.data-grid-disabled a { pointer-events: none; color: var(--bs-secondary-color) }

.data-grid.data-grid-nowrap table td { white-space: nowrap; text-overflow: ellipsis; }

.data-grid.data-grid-variable table td { height: auto !important; border-bottom: solid 1px var(--border-color-list); padding-top: .25rem; padding-bottom: .25rem; background-image: none !important; }
.data-grid.data-grid-variable .data-grid-scroll { background-image: none !important; }



/* -------- Errors -------- */

.top-dock-layout > :last-child > .errors:first-child,
.right-dock-layout > :first-child > .errors:first-child,
.bottom-dock-layout > :first-child > .errors:first-child,
.left-dock-layout > :last-child > .errors:first-child,
.fill-child > .errors:first-child { width: calc(100% - 2rem); margin-left: 1rem; height: calc(100% - 2rem); margin-top: 1rem; overflow-y: auto; }



/* -------- FileViewer -------- */

.file-viewer { position: fixed; top: 0; left: 0; z-index: 1000; display: none; width: 100vw; height: 100vh; grid-template-rows: auto 1fr; outline: 0; background-color: var(--bs-tertiary-bg); /*background-color: rgba(34, 34, 34, .6);*/ /*backdrop-filter: blur(5px);*/ animation: fade-in-animation 400ms; }
.file-viewer.active { display: grid; }

.file-viewer > *:first-child { display: flex; flex-direction: row; padding: .75rem 1rem; border-bottom: solid 1px rgba(255, 255, 255, .25); background-color: var(--bs-dark); color: var(--bs-light); }
.file-viewer > *:first-child > header { flex-grow: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .75rem; margin: 0 auto 0 0; }
.file-viewer > *:first-child > header > i { grid-row-end: span 2; align-self: center; font-size: 2rem; }
.file-viewer > *:first-child > header > h1 { margin: 0; font-size: 1.125rem; font-weight: 500; line-height: 1; }
.file-viewer > *:first-child > header > h1:last-child { grid-row-end: span 2; align-self: center; }
.file-viewer > *:first-child > header > p { margin: 0; font-size:.875rem; opacity: .5; }
.file-viewer > *:first-child > .btn { min-width: 2.5rem; margin-left: .25rem; border-style:none; padding: 0 .5rem; font-size: 1.5rem; line-height: 1; }

.file-viewer > *:last-child { position: relative; }
.file-viewer > *:last-child > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.file-viewer > *:last-child > iframe {background-color: var(--bs-tertiary-bg);}
.file-viewer > *:last-child > .file-viewer-email-ui { overflow: hidden; background-color: rgba(0, 0, 0, .25); animation: fade-in-animation 250ms linear; }
.file-viewer > *:last-child > .file-viewer-email-ui > form { position: absolute; top: 0; left: 0; width: 100%; max-height: 100%; overflow: auto; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); animation: file-viewer-email-ui-animation 400ms cubic-bezier(0,.5,.5,1); }
.file-viewer > *:last-child > .file-viewer-email-ui > form textarea { height: 150px; }
@media (min-width: 768px) {
    .file-viewer > *:last-child > .file-viewer-email-ui > form { left: 50%; width: 600px; transform: translateX(-50%); }
}
@keyframes file-viewer-email-ui-animation {
    0% { top: -64px; }
    100% { top: 0; }
}



/* -------- Forms -------- */

input[type=checkbox].is-primary:checked, input[type=radio].is-primary:checked { pointer-events: none; }

h2.form-header { margin: 0 0 1rem 0; line-height: 1.0; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 1px; color: var(--bs-secondary-color); }
h2.form-header:not(:first-child), h2.form-header.border { margin-top: 1.5rem; padding-top: 1.25rem; border-top: solid 1px var(--bs-border-emphasis) !important; border-right: none !important; border-bottom: none !important; border-left: none !important; }
*:is(.col-md-6, .col-lg-6):nth-child(2) > h2.form-header { margin-top: 1.5rem; padding-top: 1.25rem; border-top: solid 1px var(--bs-border-emphasis); }
@media (min-width: 768px) { *:is(.col-md-6, .col-lg-6):nth-child(2) > h2.form-header:first-child { margin-top: 0; padding-top: 0; border-top-style: none } }
.form-subheader { margin-top: -.75rem; color: var(--bs-secondary-color); font-size: 0.875em; text-transform: uppercase; }

div.form-control.readonly { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.modal-dialog:not(.modal-lg):not(.modal-xl) .modal-body *:is(.col-md-6, .col-lg-6) { flex: 0 0 100%; max-width: 100%; padding-left: 0 !important; padding-right: 0 !important; }
.modal-dialog:not(.modal-lg):not(.modal-xl) .modal-body *:is(.col-md-6, .col-lg-6):nth-child(2) > h2.form-header:first-child { margin-top: 1.5rem; padding-top: 1.25rem; border-top: solid 1px var(--bs-border-emphasis); }



/* -------- Jobs -------- */

.job-scope-stripe-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; background-image: linear-gradient( -45deg, rgba(255,255,255,.3) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.3) 50%, rgba(255,255,255,.3) 75%, transparent 75%, transparent ); background-size: 32px 32px; animation: job-scope-stripe-overlay-animation 1.5s linear infinite; mix-blend-mode: overlay; }
@keyframes job-scope-stripe-overlay-animation {
    0% { background-position: 0 0; }
    100% { background-position: -32px -32px; }
}



/* -------- MessageBox -------- */

.message-box-dialog .modal-body.d-grid-left-dock > *:first-child > i { font-size: 3.5rem; line-height: 1.25; }
.message-box-dialog p.lead { line-height: 1.3333; }

@media (min-width: 768px) {
    .message-box-dialog { max-width: 500px !important; } /* modal is 600 (or 300 at 'small') */
}

@media (min-width: 992px) {
    .message-box-dialog-lg, .message-box-dialog-xl, .message-box-dialog-xxl { max-width: 680px !important; } /* modal is 800 */
}

@media (min-width: 1200px) {
    .message-box-dialog-xl, .message-box-dialog-xxl { max-width: 980px !important; } /* modal is 1140 */
}

@media (min-width: 1400px) {
    .message-box-dialog-xxl { max-width: min(96%, 1440px) !important; } /* modal is 1600 */
}

.message-box-content-fixed-height { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: max(16rem, calc(100vh - 1rem)); }
.message-box-content-fixed-height .modal-body > :first-child { width: 100%; height: 100%; }
@media (min-width: 567px) {
    .message-box-content-fixed-height { height: max(16rem, calc(100vh - 4rem)); }
}
@media (min-width: 768px) {
    .message-box-content-fixed-height { height: max(16rem, calc(100vh - 4rem)); }
}
@media (min-width: 992px) and (max-aspect-ratio: 2/1) {
    .message-box-content-fixed-height { height: max(20rem, calc(100vh - 8rem)); }
}



/* -------- Modal -------- */

.modal { display: block !important; }

.modal-container { display: none; position: fixed; width: 100vh; height: 100vh; z-index: 1000; }
.modal-container.active { display: block; animation: fade-in-animation 400ms; }
.modal-container.active > .modal-backdrop { opacity: .5; }

.modal-content-fixed-height { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: max(16rem, calc(100vh - 1rem)); }
.modal-content-fixed-height .modal-body > :first-child { width: 100%; height: 100%; }
@media (min-width: 567px) {
    .modal-content-fixed-height { height: max(16rem, calc(100vh - 4rem)); }
}
@media (min-width: 768px) {
    .modal-content-fixed-height { height: max(16rem, calc(100vh - 4rem)); }
}
@media (min-width: 992px) and (max-aspect-ratio: 2/1) {
    .modal-content-fixed-height { height: max(20rem, calc(100vh - 8rem)); }
}

.modal-header.bg-danger .btn-close  { filter: brightness(0) invert(1); }

.modal-body-section { padding: 1rem; border-bottom: 1px solid var(--border-color-list); }

@media (min-width: 768px) {
    .modal-dialog.modal-level-1 { max-width: calc(600px - 3rem); }
    .modal-dialog.modal-level-2 { max-width: calc(600px - 6rem); }
    .modal-xs.modal-level-1 { max-width: calc(300px - 3rem); }
    .modal-xs.modal-level-2 { max-width: calc(300px - 6rem); }
    .modal-sm.modal-level-1 { max-width: calc(450px - 3rem); }
    .modal-sm.modal-level-2 { max-width: calc(450px - 6rem); }
}

@media (min-width: 992px) {
    .modal-lg.modal-level-1, .modal-xl.modal-level-1, .modal-xxl.modal-level-1 { max-width: calc(800px - 3rem); }
    .modal-lg.modal-level-2, .modal-xl.modal-level-2, .modal-xxl.modal-level-2 { max-width: calc(800px - 6rem); }
}

@media (min-width: 1200px) {
    .modal-xl.modal-level-1, .modal-xxl.modal-level-1 { max-width: calc(1140px - 3rem); }
    .modal-xl.modal-level-2, .modal-xxl.modal-level-2 { max-width: calc(1140px - 6rem); }
}

@media (min-width: 1400px) {
    .modal-xxl.modal-level-1 { max-width: calc(min(96%, 1600px) - 3rem); }
    .modal-xxl.modal-level-2 { max-width: calc(min(96%, 1600px) - 6rem); }
}




/* -------- ModelSaveAndCancel -------- */

.form-footer { padding: .75rem 1rem; text-align: center; }
.form-footer > * { margin: .25rem; }

.model-btn-save, .model-btn-saving, .model-btn-saved { min-width: 6rem; }
.model-btn-saved { pointer-events: none; }




/* -------- Pagination -------- */

tfoot .pagination { margin-bottom: 0 !important; }



/* -------- PlaceholderGrid -------- */

.placeholder-grid { display: flex; flex-direction: column; }
.placeholder-grid-row { height: 20px; margin: 8px 0; background: linear-gradient(90deg, rgba(var(--bs-body-color-rgb), .025), rgba(var(--bs-body-color-rgb), .15), rgba(var(--bs-body-color-rgb), .025), rgba(var(--bs-body-color-rgb), 0.15)); background-size: 300% 100%; background-position: 100% 0; animation: placeholder-grid-row-animation 1s linear 0s infinite normal; }
.placeholder-grid-row:first-child { margin-top: 0 !important; }
.placeholder-grid-row:last-child { margin-bottom: 0 !important; }

@keyframes placeholder-grid-row-animation {
	to { background-position: 0 0; }
}



/* -------- Radio -------- */

.row > * > .form-check-list { padding-top: calc(.375rem + 1px); padding-bottom: calc(.375rem + 1px); }



/* -------- Tabs -------- */

.nav-tabs { gap: 2px; }

.nav-tabs-inverse { border-bottom: solid 1px var(--bs-body-bg); }
.nav-tabs-inverse .nav-link:hover, .nav-tabs-inverse .nav-link:focus { border-color: rgba(255, 255, 255, .75); }
.nav-tabs-inverse .nav-item .nav-link:not(.active) { color: rgba(255, 255, 255, .75) !important; }
.nav-tabs-inverse .nav-link.active, .nav-tabs-inverse .nav-item.show .nav-link { color: var(--bs-gray-700); background-color: var(--bs-body-bg); border-color: var(--bs-body-bg) }

.nav-item a.nav-link .close { margin-left: .5rem; margin-right: -.5rem; padding: 0 .33rem; border: solid 1px transparent; border-radius: .25rem; color: var(--bs-secondary-color); transition: border-color 250ms, color 250ms;  }
.nav-item a.nav-link .close:hover { border-color: var(--bs-border-emphasis); color: var(--bs-secondary-color); }

.modal-content-fixed-height .tab-content { height: 100%; }
.modal-content-fixed-height .tab-content > :first-child { width: 100%; height: 100%; }
.message-box-content-fixed-height .tab-content { height: 100%; }
.message-box-content-fixed-height .tab-content > :first-child { width: 100%; height: 100%; }



/* -------- Toasts -------- */

.toasts-container { display: flex; flex-direction: column; justify-content: start; align-items: end; position: absolute; top: 0; right: 0; z-index: 1000; overflow: hidden; padding: .5rem; pointer-events: none; }
.toasts-container > .toast { position: relative; font-size: .925rem; pointer-events: auto; box-shadow: 0 0.05rem 0.45rem rgba(0,0,0,.1); opacity: initial; animation: toast-animation 250ms ease-in-out; }
.toast-header { display: grid; grid-template-columns: 1fr auto auto; grid-gap: .5rem; }
.toast-header small { text-align: right; line-height: 1; white-space: nowrap; }
.toast-body p { margin-bottom: .5rem; }
.toast-body p:last-child { margin-bottom: 0; }

@keyframes toast-animation {
	from { opacity: 0; top: .5rem; }
	to { opacity: 1; top: 0; }
}



/* -------- Toolbar styles -------- */

.btn-command {
    padding: .375rem;
    font-size: .85rem;
    line-height: 1;
    --bs-btn-color: var(--bs-secondary-color);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-tertiary-bg);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(var(--bs-emphasis-color-rgb), 0.125);
    --bs-btn-disabled-color: var(--bs-secondary-color);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: transparent;
    --bs-gradient: none;
}
.btn-command:focus { color: var(--bs-btn-color); background-color: var(--bs-btn-bg); box-shadow: none; outline: solid 1px rgba(var(--bs-btn-focus-shadow-rgb), .5) !important; outline-offset: -1px; }
.btn-command:focus:hover { color: var(--bs-btn-hover-color); background-color: var(--bs-btn-hover-bg); --bs-btn-focus-shadow-rgb: 49, 132, 253; }
.btn-command:active:focus, .btn-command.active:focus, .btn-command.show, .btn-command.show:focus { color: var(--bs-btn-active-color); background-color: var(--bs-btn-active-bg); border-color: var(--bs-btn-active-border-color); box-shadow: none; outline: solid 1px rgba(var(--bs-btn-focus-shadow-rgb), .5) !important; outline-offset: -1px; }
.btn-command.active { pointer-events: none; color: var(--bs-btn-active-color); background-color: var(--bs-btn-active-bg); box-shadow: none; }
.btn-command > i:first-child { display: block; font-size: 1.875rem; margin-bottom: .25rem; }

.button-badge { pointer-events: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; outline: dotted 1px var(--bright-orange); outline-offset: -1px; border-radius: .25rem; }
.button-badge > * { z-index: 10; position: absolute; top: 0; right: 0; transform: translate(25%,-12.5%); display: flex; justify-content: center; align-items: center; width: 1.5rem; height: 1.5rem; font-size: .75rem; font-weight: 700; color: var(--bs-body-bg); background-color: var(--bright-orange); border-radius: 50%; }

.toolbar { display: flex; gap: 1px; padding: .5rem; overflow: auto hidden; }
.toolbar > *:first-child { margin-left: auto !important; }
.toolbar > *:last-child { margin-right: auto !important; }
.toolbar .dropdown > .dropdown-toggle::after { display: none; }
.toolbar > .divider { align-self: stretch; width: 1px; margin: 0 4px; overflow: hidden; background: var(--bs-border-color); background: linear-gradient(180deg, rgba(var(--bs-border-color-rgb), 0) 0%, rgba(var(--bs-border-color-rgb), 1) 25%, rgba(var(--bs-border-color-rgb), 1) 75%, rgba(var(--bs-border-color-rgb), 0) 100%); }

.toolbar-expanding-panel { max-width: 0; opacity: 0; display: flex; gap: 1px; align-items: start; overflow: hidden; transition: max-width .25s ease-out, opacity .25s linear; }
.toolbar-expanding-panel.active { max-width: 500px; opacity: 1; z-index: 1; margin: -.5rem -6px -.5rem .5rem; padding: .5rem .5rem .5rem 0; /*border-left: solid 1px var(--bs-border-color);*/ border-right: solid 1px var(--bs-border-color); background-color: var(--bs-tertiary-bg); }
.toolbar-expanding-panel.active .btn-command:hover { --bs-btn-hover-bg: var(--bs-secondary-bg); }
.toolbar-expanding-panel.active .btn-command.active, .toolbar-expanding-panel.active .btn-command.dropdown-toggle.show, .toolbar-expanding-panel.active .btn-command:active { color: var(--bs-body-bg); background-color: var(--bs-primary); border-color: var(--bs-primary); }
.toolbar-expanding-panel .left-border { align-self: stretch; width: 1px; margin: -.5rem 0; background-color: var(--bs-border-color); }
.toolbar-expanding-panel .left-arrow { align-self: center; margin-left: -2.5px; margin-right: .25rem; }



/* -------- User location -------- */

.user-location-border, .user-location-badge { pointer-events: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.user-location-border { animation: user-location-border-animation .25s ease-out; }

.user-location-border > .user-location-border-box { z-index: 11; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 5px solid; border-image-slice: 5; mix-blend-mode: multiply; }
[data-bs-theme=dark] .user-location-border > .user-location-border-box { mix-blend-mode: screen; }
.user-location-border > .user-location-border-description { z-index: 12; position: absolute; top: 5px; right: 5px; border-radius: 0 0 0 .5em; padding: 0 3px 5px 8px; color: var(--bs-body-bg); line-height: 1; font-size: .825rem; font-weight: 700; text-shadow: 0 -1px 0 rgba(var(--bs-emphasis-color-rgb), 0.15); text-decoration: none; letter-spacing: -.25px; white-space: nowrap; mix-blend-mode: multiply; }
[data-bs-theme=dark] .user-location-border > .user-location-border-description { mix-blend-mode: screen; }

.user-location-list-item-badge { pointer-events: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.user-location-list-item-badge > .user-badge { z-index: 11; position: absolute; top: 50%; right: .5rem; transform: translate(0,-50%); width: 1.875rem; min-width: 1.875rem; max-width: 1.875rem; height: 1.875rem; min-height: 1.875rem; max-height: 1.875rem; font-size: .75rem; font-weight: 700; box-shadow: 0 0 1px 0 rgba(0,0,0,0.25); }
.user-location-list-item-badge > .user-badge:nth-of-type(2) { z-index: 12; right: .875rem; }
.user-location-list-item-badge > .user-badge:nth-of-type(3) { z-index: 13; right: 1.25rem; }
.user-location-list-item-badge > .user-badge:nth-of-type(4) { z-index: 14; right: 1.625rem; }
.user-location-list-item-badge > .user-badge:nth-of-type(5) { z-index: 15; right: 2rem; }

.user-location-button-badge { pointer-events: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; outline: dashed 2px rgba(127, 127, 127, .5); outline-offset: -2px; border-radius: .25rem; }
.user-location-button-badge > .user-badge { z-index: 11; position: absolute; top: 0; right: 0; transform: translate(25%,-12.5%); width: 1.875rem; min-width: 1.875rem; max-width: 1.875rem; height: 1.875rem; min-height: 1.875rem; max-height: 1.875rem; font-size: .75rem; font-weight: 700; box-shadow: 0 1px 1px 0 rgba(0,0,0,0.25); }
.user-location-button-badge > .user-badge:nth-of-type(2) { z-index: 12; right: .375rem; }
.user-location-button-badge > .user-badge:nth-of-type(3) { z-index: 13; right: .75rem; }
.user-location-button-badge > .user-badge:nth-of-type(4) { z-index: 14; right: 1.125rem; }
.user-location-button-badge > .user-badge:nth-of-type(5) { z-index: 15; right: 1.5rem; }

@keyframes user-location-border-animation {
    from { opacity: 0; transform: scale(.9875); }
    to { opacity: 1; transform: scale(1); }
}



/* -------- User/org info -------- */

.user-info { display: flex; }
.user-info .user-badge { margin-right: .5rem; }
.user-info .user-badge-lg { margin-right: .75rem; }
.user-info h4 { margin: 0; }
.user-info p { margin: 0; white-space: nowrap; text-overflow: ellipsis; }
.user-badge { display: flex; justify-content: center; align-items: center; width: 2.25rem; min-width: 2.25rem; max-width: 2.25rem; height: 2.25rem; min-height: 2.25rem; max-height: 2.25rem; border-radius: 50%; background-color: #c0c1c2; color: var(--bs-body-bg); letter-spacing: -.25px; font-weight: 500; }
.user-badge-sm { display: flex; justify-content: center; align-items: center; width: 1.75rem; min-width: 1.75rem; max-width: 1.75rem; height: 1.75rem; min-height: 1.75rem; max-height: 1.75rem; border-radius: 50%; background-color: #c0c1c2; color: var(--bs-body-bg); font-size: .75rem; }
.user-badge-lg { display: flex; justify-content: center; align-items: center; width: 3.25rem; min-width: 3.25rem; max-width: 3.25rem; height: 3.25rem; min-height: 3.25rem; max-height: 3.25rem; border-radius: 50%; background-color: #c0c1c2; color: var(--bs-body-bg); font-size: 1.25rem; }
.user-badge-xl { display: flex; justify-content: center; align-items: center; width: 6rem; min-width: 6rem; max-width: 6rem; height: 6rem; min-height: 6rem; max-height: 6rem; border-radius: 50%; background-color: #c0c1c2; color: var(--bs-body-bg); font-size: 2.5rem; }
a.user-badge, a.user-badge:hover { text-decoration: none; color: var(--bs-body-bg); }

.org-info { display: flex; }
.org-info .org-badge { margin-right: .5rem; }
.org-info .org-badge-lg { margin-right: .75rem; }
.org-info h4 { margin: 0; }
.org-info p { margin: 0; white-space: nowrap; text-overflow: ellipsis; }
.org-badge { display: flex; justify-content: center; align-items: center; width: 2rem; min-width: 2rem; max-width: 2rem; height: 2rem; min-height: 2rem; max-height: 2rem; border-radius: .125rem; padding: 0 .375rem; background-color: rgba(var(--bs-emphasis-color-rgb), .25); color: var(--bs-body-bg); }
.org-badge-sm { display: flex; justify-content: center; align-items: center; width: 1.5rem; min-width: 1.5rem; max-width: 1.5rem; height: 1.5rem; min-height: 1.5rem; max-height: 1.5rem; border-radius: .1rem; padding: 0 .25rem; background-color: rgba(var(--bs-emphasis-color-rgb), .25); color: var(--bs-body-bg); font-size: .75rem; }
.org-badge-lg { display: flex; justify-content: center; align-items: center; width: 3.25rem; min-width: 3.25rem; max-width: 3.25rem; height: 3.25rem; min-height: 3.25rem; max-height: 3.25rem; border-radius: .2rem; padding: 0 .5rem; background-color: rgba(var(--bs-emphasis-color-rgb), .25); color: var(--bs-body-bg); font-size: 1.25rem; }
a.org-badge, a.org-badge:hover { text-decoration: none; color: var(--bs-body-bg); }



/* -------- Animation -------- */

@keyframes fade-in-animation {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes spin-animation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
