html, body {
    color-scheme:none !important;
}

body {
    display: flex;
    flex-direction: column;
    font-size: 17px;
    height: auto !important;
    background:initial !important;
}

#map {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 0.5rem;
}

.leaflet-interactive:focus {
    outline: none;
}

.leaflet-pane {
    font-size: 14px;
    font-weight: 500;
}

.leaflet-popup-content a {    
    color: var(--color-secondary-600);
}

.leaflet-popup-content a:hover {
    text-decoration: underline;:
}

.list-group-item[data-kontextprojekt] {
    cursor:pointer;
}

.list-group-item[data-kontextprojekt]:not(.active):hover {
    background:#ddd;
}

tr.active > td {
    background-color: #f4f4f4 !important;
}

tr.selected > td {
    background-color: #e6e6e6 !important;
    box-shadow: none !important;
    color: inherit !important;
}

tr.selected {
    color: inherit !important;
}

table.dataTable input.dt-select-checkbox:checked:after {
    content:'';
}

table.dataTable th,
table.dataTable td {
    vertical-align: middle;
}

tr:hover > td {
    background-color: #fafafa !important;
}

.form-label,
thead th {
    font-family: 'Font-Bold';
    font-size: 1rem;
    text-transform: none;
}

.dt-info { 
    font-size: 1rem;
}

.active,
.table td > a {
    color: var(--color-primary-500);
}

.table td > a {
    text-decoration: underline;
}

.card:hover,
.card.active {
    cursor:pointer;
    background: #fafafa;
}

.card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.alert-error {
    --bs-alert-color: var(--bs-danger-text-emphasis);
    --bs-alert-bg: var(--bs-danger-bg-subtle);
    --bs-alert-border-color: var(--bs-danger-border-subtle);
    --bs-alert-link-color: var(--bs-danger-text-emphasis)
}

.alert a {
    text-decoration: underline;
}

.dropdown-toggle::after {
    display:none;
}

.pagination >:not([hidden]) ~ :not([hidden]) {
    margin:0;
}

.active > .page-link {
    background:var(--color-secondary-600);
    border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);
}

.page-link,
.page-link:hover {
    color:var(--color-secondary-600);    
}

.active > .page-link:hover {
    color:#fff
}

.dt-container .mt-2 {
    margin-top: 1rem!important;
}

#columns.lg > div {
    width: 33.33333333%;
}

#columns.lg > div + div {
    width: 66.66666667%;
}

#columns.hide > div {
    width: 100%;
}

#columns.hide > div + div {
    display: none !important;
}

.dt-type-numeric {
    text-align:left !important;
}

.dtr-control {
    vertical-align:middle;
}

.modal {
    z-index:10000 !important;
}

#preview-image {
    cursor:zoom-in;
}

#preview-modal .modal-body {
    overflow: hidden;
    max-height: 85vh;
}

.draggable {
    max-width: fit-content;    
    position:relative;
    cursor:grab !important;
}

.btn[data-bs-toggle="collapse"]:not(.collapsed) > svg {
    rotate:180deg;
}

.ratio-3x4 {
    --bs-aspect-ratio: 133%;
}

.fab-wrapper {
    z-index: 2000 !important;
}

.fab-wrapper tr:hover > td,
.fab-wrapper tr.selected > td {
    background:var(--color-secondary-600) !important;
}

.fab-wrapper .popup-content {
    padding-top: 30px !important;
}

.fab-wrapper td {
    color:#fff;
}

.fab-wrapper .truncate-toggle {
    color:#000;
}

.fab-wrapper .outer-container > table thead th:first-child {
    width:60%;
}

.fab-wrapper .outer-container > .scrollable-body tr > td:first-child {
    width:60%;
}

.first_col {
    padding: 0 !important;
}

col[data-dt-column="0"] {
    width:0 !important;
}

.dtr-control:before {
    margin-left:0.5rem;
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bs-dropdown-link-hover-bg);
}



