/** Left bar **/
#leftnav .list-group-item {
    padding: 0;
}

#leftnav div.gdt-divider {
    margin: 0;
}

.list-group-item .gdt-link {
    width: 100%;
}

.list-group-item .gdt-link a {
    width: 100%;
    padding: 8px 8px;
}

/*#leftnav input,*/
/*#leftnav .gdo-captcha-img {*/
/*    !*width: 13rem;*!*/
/*}*/

/** Footer **/
footer,
.gdo-perf-bar {
    border-top: 1px solid #ddd;
}

.gdo-perf-bar {
    width: 98vw;
}

/** Layout **/
#wrapper {
    min-height: 100%;
}

#page-content-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

#content-wrap {
    flex: 1 1 auto;
}

#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    min-width: 100%;
}

body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
        margin-left: -15rem;
    }
}

#content-wrap > h1,
#content-wrap > h2,
#content-wrap > h3 {
    background: cornsilk;
    margin: 0px -12px 16px;
    padding: 8px;
}

/** TopTabs **/
#topTabs {
    border-bottom: 1px solid #aaa;
}

/** Loading **/
#gdt-loading-pane.done {
    display: none;
}

/** Box/Nav **/
.gdt-bar > .nav-item:hover {
    background: #f8f9fa;
}

.nav-justified .nav-item {
    align-self: center;
    height: 100%;
}

.nav-justified .nav-item .nav-link {
    height: inherit;
}

/** Form **/
.gdt-form {
    margin-top: 16px;
}

.gdt-form form {
    border: 1px solid #212529;
    border-radius: 8px;
}

.inner-form-input {
    position: relative;
}

.inner-form-input .gdo-icon {
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 2;
}

.inner-form-input .gdo-icon i {
    padding: 6px;
}

.gdt-required {
    padding-left: 4px;
}

.gdt-required i {
    color: red;
}

.gdt-form-compact .gdt-form-fields .gdt-container {
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.inner-form-input input,
.inner-form-input select {
    padding-left: 32px;
    display: block;
}

.gdt-form-fields label .gdo-icon {
    margin: 0 4px;
}

.gdt-form-inner {
    padding: 16px;
}

.gdo-autocomplete span.complete-input {
    width: 100%;
}

*[disabled] {
    cursor: not-allowed;
}

/** Button **/
.gdt-button {
    text-align: center;
}

.gdt-button a,
.gdt-link a {
    width: 100%;
    min-height: 42px;
    padding-top: 10px;
}

.gdt-link:hover,
.gdt-button:hover {
    background: #eee;
    border-radius: 8px;
}

.gdt-submit.btn-primary input {
    color: #fff;
}

.gdt-submit input {
    -webkit-appearance: initial;
    background: inherit;
    border: none;
}

.gdt-submit .gdo-icon,
.gdt-link .gdo-icon {
    top: 1px;
    padding-right: 6px;
}

.gdt-submit .gdo-icon {
    top: 7px;
}

.gdt-submit {
    margin: 2px 4px;
}

/** Panels **/
.gdt-panel h3 .gdo-icon {
    position: relative;
    padding-right: 4px;
}

.gdt-panel p,
.gdt-divider h5 {
    margin: 0;
}

.gdo-exception pre {
    font-family: monospace;
}

.gdt-error,
.gdt-success {
    margin-top: 12px;
}

/** Images **/
.gdt-image object {
    max-width: inherit;
}

.gdo-country img {
    width: 32px;
    height: 20px;
}

/** Tabs **/
nav.nav.nav-tabs {
    margin-bottom: 1rem;
}

div.tab-content {
    margin-bottom: 1rem;
}

/** Dialog **/
/* .gdo-dialog { */
/* 	background: #eee; */
/* 	border: 2px outset #666; */
/* 	border-radius: 4px; */
/* 	display: none; */
/* 	width: 50vw; */
/* 	height: 50vh; */
/* 	top: 25%; */
/* 	left: 25%; */
/* 	position: fixed; */
/* } */

/* .gdo-dialog-close { */
/* 	position: absolute; */
/* 	top: 0px; */
/* 	right: 0px; */
/* } */

/* .gdo-dialog-inner { */
/* 	width: 100%; */
/* 	height: 100%; */
/* 	background: #f00; */
/* } */

/* .gdo-dialog dialog { */
/* 	width: 50vw; */
/* 	height: 50vh; */
/* 	top: 25%; */
/* 	left: 25%; */
/* } */


/** Form **/
/* .gdt-form { margin-bottom: 1rem; } */
/* input.ib.form-control { display: inline-block; } */
/* .gdo-captcha .form-control { width: 256px; } */
/* .gdt-divider { margin: 1.5rem 0 1rem; background: #eee; padding: 0.5rem 1rem; border-radius: 4px; border: 1px dashed #ccc; } */
/* .gdo-has-error { border: 1px dashed; } */
/* .gdo-has-error, */
/* .gdt-form-error { background: #f8d7da; } */
/* .gdt-form-error { padding: 0.5rem; } */
/* .gdo-required:not(.gdo-flow-file) label:after { content: "*"; color: #922; } */
/* .gdo-required label { font-weight: bold; } */
/* div.form-group { margin-bottom: 1rem; } */
/* .input-group .form-label { margin: 0; } */
/* .gdo-file-preview img, */
/* .gdo-image-file img { max-width: 95vw; max-height: 95vh; } */

/** Select **/
a.dropdown-item:hover {
    cursor: pointer;
}

/** Card **/
.card-avatar {
    float: left;
    margin-right: 6px;
}

.gdt-card-fields {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    gap: 6px 8px;
}

.gdt-card-fields .gdo-icon {
    margin-right: 4px;
}

.gdt-card-fields label {
    text-align: right;
}

.gdt-card-middle {
    padding: 12px;
    display: flex;
}

.gdt-card-divider,
.gdt-card-label,
.gdt-card-message,
.gdt-card-fields .gdt-link,
.gdt-card-fields .gdt-headline,
.gdt-card-fields .gdt-divider,
.gdt-card-fields .gdt-panel,
.gdt-card-fields .gdt-accordeon,
.gdt-card-fields .gdt-paragraph {
    grid-column-start: 1;
    grid-column-end: 3;
}

.gdt-list-card .card {
    margin-bottom: 16px;
}

.gdt-list-card .gdt-headline {
    margin: 8px;
}

/** Table **/
.gdo-table-caption {
    background: #eee;
    padding: 8px 8px 2px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.gdo-table-caption h3 {
    margin: 0;
}

.gdt-table .gdo-country img {
    height: 24px;
}

.gdt-table .gdt-link a,
.gdt-table .gdt-button a {
    padding-top: 0;
    min-height: auto;
}

ul, ol {
    margin: 0;
    padding: 0;
}

.gdt-list .list-group > div {
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

.gdt-table td .gdt-link {
    margin: 0;
    padding: 0;
}

.gdt-table tr:hover {
    background: #f8f9fa;
}

.gdt-table td .btn {
    margin: -0.5rem 0;
}

.gdt-tblorder .sel span.gdo-fa-icon > i:before {
    color: gold;
}

/** List **/
.unread {
    background: gold;
}

.gdt-like-button.liked span,
.gdt-dislike-button.liked span {
    color: gold;
}

.nav-link .gdt-link {
    width: 100%;
}

.gdt-li-avatar {
    float: left;
}

.gdt-li-title-texts {
    overflow: auto;
}

.gdt-li-main {
    clear: both;
}

.gdt-list-title {
    padding: 16px 0 12px 8px;
    margin: 0;
}

.gdt-editor-text textarea {
    width: 100%;
    padding: 6px;
}

.gdt-form-error {
    padding: 4px;
    background: #f5c2c7;
    border-radius: 4px;
}

.gdo-lang-switch {
    padding: 0 8px;
}

#gdt-loading.done {
    display: none;
}
/* Bootstrap 5 theme refinements */
:root {
    --gdo-sidebar-width: 15rem;
    --gdo-content-gap: 1rem;
}

html,
body {
    min-height: 100%;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

#sidebar-wrapper {
    width: var(--gdo-sidebar-width);
    flex: 0 0 var(--gdo-sidebar-width);
}

#content-wrap {
    width: 100%;
    padding-top: var(--gdo-content-gap);
    padding-bottom: var(--gdo-content-gap);
}

#leftnav .list-group-item:focus-within,
#leftnav .list-group-item:hover {
    background-color: var(--bs-tertiary-bg);
}

#leftnav a:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.gdt-container {
    margin-bottom: 1rem;
}

.gdt-container > .form-label {
    display: block;
    margin-bottom: .375rem;
    font-weight: 600;
}

.gdt-container.gdt-error .form-control,
.gdt-container.gdt-error .form-select,
.gdt-container.error .form-control,
.gdt-container.error .form-select {
    border-color: var(--bs-danger);
}

.gdt-form form {
    overflow: hidden;
    border-color: var(--bs-border-color);
    background-color: var(--bs-body-bg);
}

.gdt-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.gdt-submit {
    cursor: pointer;
}

.gdt-submit:has(input:disabled),
.gdt-submit:has(button:disabled) {
    cursor: not-allowed;
    opacity: .65;
}

.gdt-submit input:focus-visible {
    outline: none;
}

.gdt-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gdt-table table {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
}

.gdt-table tbody tr:focus-within {
    background-color: var(--bs-tertiary-bg);
}

.gdt-card-actions,
.gdt-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.card-avatar img,
.gdt-li-avatar img {
    max-width: 100%;
    height: auto;
}

.gdo-modal-error .modal-body {
    overflow-wrap: anywhere;
}

.gdo-modal-error pre {
    max-height: 55vh;
    overflow: auto;
    white-space: pre-wrap;
}

#gdt-loading,
#gdt-loading-pane {
    z-index: 1090;
}

@media (max-width: 767.98px) {
    #sidebar-wrapper {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1040;
        overflow-y: auto;
        box-shadow: var(--bs-box-shadow);
    }

    body:not(.sb-sidenav-toggled) #sidebar-wrapper {
        visibility: hidden;
    }

    body.sb-sidenav-toggled {
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    #sidebar-wrapper,
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
