/*--------------------------------------------------------------
This is your custom stylesheet.

Add your own styles here to make theme updates easier.
To override any styles from other stylesheets, simply copy them into here and edit away.

Make sure to respect the media queries! Otherwise you may
accidentally add desktop styles to the mobile layout.
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
--------------------------------------------------------------*/

html {
    margin-top: 0 !important;
    /*  padding-top: var(--wp-admin--admin-bar--height, 32px) !important; */
    background: #fff !important;
}

body {
    --e-global-color-primary: var(--bb-primary-color) !important;
    --e-global-color-secondary: var(--bb-primary-button-background-hover) !important;
    --e-global-color-text: var(--bb-body-text-color) !important;
    --e-global-color-accent: var(--bb-primary-button-background-hover) !important;
    --header-height: 76px;
}

.bb-grid>.bb-grid-cell {
    padding-left: 0;
    padding-right: 0;

    >.site-main {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.container {
    max-width: 100%;
}

#content .container {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Temporary hack to disable max-width */
.elementor-template-full-width #content .container {
    max-width: 100% !important;
    padding: 0 30px;
}

.sfwd-lessons-template-default #content .container {
    max-width: 100% !important;
}

.site-content {
    background-color: #fff;
}

.sticky-header .site-header {
    position: fixed !important;
}

div.dtfh-floatingparent {
    top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--header-height, 76px)) !important;
}

.elementor-post__excerpt>p::after {
    content: '…';
}

.elementor-icon-box-title:last-child {
    margin-bottom: 0;
}

.elementor-icon-box-title>a:hover {
    text-decoration: underline;
}

.fas {
    color: #00043A !important;
    font-family: "Brockmann", sans-serif;
    font-weight: normal;
    -webkit-font-smoothing: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;

    &::before {
        font-family: "Font Awesome 5 Free" !important;
        font-weight: bold !important;
        -webkit-font-smoothing: antialiased;
        display: block;
    }

    &.fa-gray::before {
        color: var(--bb-content-border-color) !important;
    }

    &.fa-red::before {
        color: var(--bb-danger-color) !important;
    }

    &.fa-green::before {
        color: var(--bb-success-color) !important;
    }

    &.fa-orange::before {
        color: var(--bb-warning-color) !important;
    }
}

/* BodyBoss Courses */

.bb-cover-list-item {
    display: flex;
    flex-direction: column;
}

.bb-course-cover {
    flex-shrink: 0;
}

.bb-card-course-details {
    height: 100%;
}

.ld-course-list-items .ld_course_grid .bb-cover-list-item .ld_course_grid_button {
    margin-top: auto !important;
}

.ld-course-list-content.list-view .ld-course-list-items .ld_course_grid .ld_course_grid_button a {
    width: auto;
}

.ld-course-list-items .ld_course_grid.bb-course-item-wrap {
    margin-bottom: 30px;
}

@media only screen and (min-width: 576px) {
    .ld-course-list-items .ld_course_grid.bb-course-item-wrap {
        flex-basis: 50%;
    }
}

@media only screen and (min-width: 768px) {
    .ld-course-list-items .ld_course_grid.bb-course-item-wrap {
        flex-basis: 33.3334%;
    }
}

/* Better Docs */

.betterdocs-wrapper:not(.betterdocs-fluid-wrapper) .betterdocs-content-wrapper {
    max-width: 1440px;
}

@media only screen and (max-width: 959px) {
    #betterdocs-sidebar {
        display: block;
    }
}

@media only screen and (max-width: 767px) {
    .betterdocs-content-wrapper.betterdocs-display-flex {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media only screen and (max-width: 767px) {
    div.betterdocs-single-wrapper:not(.betterdocs-fluid-wrapper) .betterdocs-content-wrapper .betterdocs-sidebar {
        max-width: none;
    }
}

div.betterdocs-wrapper.betterdocs-single-wrapper {
    background-color: #fff;
    padding-left: 0;
    padding-right: 0;
}

.betterdocs-wrapper.betterdocs-single-wrapper div.betterdocs-content-wrapper {
    padding-left: 10px;
    padding-right: 10px;
}

.betterdocs-archive-wrap .betterdocs-category-grid-wrapper .betterdocs-category-grid-inner-wrapper>.betterdocs-single-category-wrapper .betterdocs-single-category-inner,
.betterdocs-mkb-wrapper .betterdocs-category-box-wrapper .betterdocs-category-box-inner-wrapper.ash-bg .betterdocs-single-category-wrapper {
    box-shadow: none;
    border: 1px solid var(--bb-content-border-color);
}

.betterdocs-archive-wrap .betterdocs-category-grid-wrapper .betterdocs-category-grid-inner-wrapper>.betterdocs-single-category-wrapper a.betterdocs-single-category-inner:hover,
.betterdocs-mkb-wrapper .betterdocs-category-box-wrapper .betterdocs-category-box-inner-wrapper.ash-bg a.betterdocs-single-category-wrapper:hover {
    box-shadow: 0 4px 32px 0 rgba(18, 43, 70, .1);
    cursor: pointer;
}

.betterdocs-category-grid-wrapper .betterdocs-category-header .betterdocs-category-title {
    hyphens: auto;
    line-height: 1.4 !important;
    margin-right: 0.5rem;
}

.betterdocs-category-box-inner-wrapper.layout-1 div.betterdocs-category-icon {
    margin-bottom: 0;
}

.betterdocs-print-pdf {
    margin: 0 0 0 1rem;
    position: relative;
    z-index: 1;
    transition: transform 200ms ease-out;
    cursor: pointer;

    &:hover {
        transform: scale(1.2);
    }
}

.betterdocs-content-area .elementor-column-gap-default>.elementor-column>.elementor-element-populated {
    padding: 0;
}

.betterdocs-breadcrumb .betterdocs-breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Better Docs Navigation */

.docs-navigation {
    flex-wrap: wrap;
    gap: 2rem 1rem;
    margin-bottom: 3rem;
}

.docs-navigation a[rel="next"] {
    margin-left: auto;
    margin-right: 0;
}

.betterdocs-single-wrapper.betterdocs-single-layout-1 div.docs-navigation a:hover {
    color: var(--bb-primary-color);
}

.betterdocs-single-wrapper.betterdocs-single-layout-1 div.docs-navigation a svg {
    stroke: currentColor;
    stroke-width: 2px;
    transform: translateX(0);
    transition: transform 250ms ease-out;
}

.betterdocs-single-wrapper.betterdocs-single-layout-1 div.docs-navigation a[rel="prev"]:hover svg {
    transform: translateX(-0.25rem);
}

.betterdocs-single-wrapper.betterdocs-single-layout-1 div.docs-navigation a[rel="next"]:hover svg {
    transform: translateX(0.25rem);
}

/* Learn Dash */

#learndash-page-content {
    border-bottom: none;
}

.single #learndash-course-header,
.learndash-wrapper .learndash_content_wrap,
.learndash-wrapper .bb-lms-header .lms-header-instructor,
.learndash-wrapper .bb-lms-header .lms-header-title {
    max-width: 1420px;
}

#bb-toggle-theme {
    display: none;
}

@media only screen and (max-width: 767px) {
    .bb-course-single-meta {
        margin-bottom: 10px;
    }
}

.learndash-wrapper .ld-content-actions {
    justify-content: flex-start;
}

.learndash-wrapper .ld-content-actions .ld-content-action {
    align-items: flex-start;
    flex-basis: auto;
    padding: 0;
}

.learndash-wrapper .sfwd-mark-complete {
    width: auto;
}

.learndash-wrapper .learndash_mark_complete_button {
    text-align: center;
}

/* Custom */

.site-header #primary-navbar .primary-menu .menu-item>.ab-submenu .bb-sub-menu {
    max-width: 350px;
}

.betterdocs-social-share {
    display: none !important;
}

.betterdocs-credit {
    display: none !important;
}

.bb-grid-cell .site-main {
    background: var(--bb-content-background-color);
    min-height: -webkit-calc(80vh - 110px);
    min-height: calc(80vh - 110px);
}

.entry-header {
    margin: 0;
}

.site-header #primary-navbar #navbar-collapse .sub-menu .wrapper .sub-menu-inner {
    min-width: 250px;
}

.site-header #primary-navbar #navbar-collapse .sub-menu .wrapper .sub-menu-inner .menu-item .ab-submenu {
    min-width: 250px;
}

.bb-template-v2 .site-header #primary-navbar #navbar-collapse .sub-menu .wrapper .sub-menu-inner .menu-item .ab-submenu {
    left: -200px;
}

.bp-profile-content .profile:not(.public) {
    padding: 0px;
}

.bp-profile-content label {
    color: var(--bb-headings-color);
    margin-bottom: .25rem;
    font-size: 14px;
}

.bp-profile-content table {
    border-spacing: 0;
    empty-cells: show;
    font-size: 14px;
    line-height: 24px;
}

/*! elementor - v3.18.0 - 20-12-2023 */
.elementor-widget-progress {
    text-align: left
}

.elementor-progress-wrapper {
    position: relative;
    background-color: #eee;
    color: #fff;
    height: 100%;
    border-radius: 2px
}

.elementor-progress-bar {
    display: flex;
    background-color: #69727d;
    width: 0;
    font-size: 11px;
    height: 30px;
    line-height: 30px;
    border-radius: 2px;
    transition: width 1s ease-in-out
}

.elementor-progress-text {
    flex-grow: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-left: 15px
}

.elementor-progress-percentage {
    padding-right: 15px
}

.elementor-widget-progress .elementor-progress-wrapper.progress-info .elementor-progress-bar {
    background-color: var(--bb-default-notice-color, #5bc0de);
}

.elementor-widget-progress .elementor-progress-wrapper.progress-success .elementor-progress-bar {
    background-color: var(--bb-success-color, #5cb85c);
}

.elementor-widget-progress .elementor-progress-wrapper.progress-warning .elementor-progress-bar {
    background-color: var(--bb-warning-color, #f0ad4e);
}

.elementor-widget-progress .elementor-progress-wrapper.progress-danger .elementor-progress-bar {
    background-color: var(--bb-danger-color, #d9534f);
}

.elementor-progress .elementor-title {
    display: block
}

@media only screen and (max-width:767px) {
    .elementor-progress-text {
        padding-left: 10px
    }
}

.e-con-inner .elementor-progress-wrapper,
.e-con .elementor-progress-wrapper {
    height: auto
}

/* Alerts */

.bp-feedback {
    position: inherit;
}

/* Modal styles */

.modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100vw;
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px) - var(--header-height));
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    padding: 0 1.25rem;
}

.modal-content {
    max-width: 600px;
    width: 100%;
    padding: 1.75rem 1.25rem;
    margin: 6rem auto;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.3);
}

/* Modal Form styles */

.modal form {
    margin: 0 auto;
}

.modal label {
    display: block;
    margin-bottom: 0.5rem;
}

.modal input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.modal select {
    width: 100%;
    margin-bottom: 1rem;
}

.modal button {
    cursor: pointer;
    margin: 0.75rem 0.5rem 0 0;
}

.modal button[onclick="closeModal()"] {
    color: var(--bb-body-text-color);
    border-color: var(--bb-body-text-color);
    background-color: transparent;
}

.modal button[onclick="closeModal()"]:hover {
    color: white;
    background-color: var(--bb-primary-button-background-hover);
}

#modal_textarea {
    width: 100%;
}

/* Timesheets */

/* Timesheets User Select */

#user-selector-container form {
    display: flex;
    gap: 0.5rem;
}

#user-selector-container #user-selector,
#user-selector-container button[type="submit"] {
    width: 100%;
}

#user-selector-container #user-selector {
    max-width: 60%;
}

#user-selector-container button[type="submit"] {
    max-width: 40%;
}

@media only screen and (min-width: 768px) {

    #user-selector-container #user-selector,
    #user-selector-container button[type="submit"] {
        max-width: none;
        width: auto;
    }
}

#user-selector-container label[for="user-selector"] {
    display: none;
}

/* Timesheets Table */

div:has(> #user-selector-container) {
    max-width: 100%;
    /* overflow: auto; */
}

table {
    border: none;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: auto;

    table {
        margin-bottom: 0;
    }

    th {
        background: none !important;
    }

    a {
        font-size: 13px !important;
    }

    a.button {
        padding: 0;
        color: var(--e-global-color-primary);
        background-color: transparent;
        border: none;
        border-radius: 0;
        text-align: left;
        white-space: nowrap;

        &:hover,
        &:focus,
        &:active {
            text-decoration: underline;
            color: var(--bb-secondary-button-text-regular);
            background-color: transparent;
            box-shadow: none;
        }
    }

    td:has(a.button + a.button) a.button:first-child {
        margin: 0 0.5rem 0.25rem 0;
    }
}

.table-wrapper {
    overflow: auto;
}

.std-abrechnung {
    border: none;

    table {
        border: none;
        border-collapse: collapse;

        th,
        td {
            padding: 0.25rem 0;
        }
    }
}

@media only screen and (max-width: 1023px) {
    .std-abrechnung table:not(.dataTable) {
        border-top: 1px solid var(--bb-content-border-color);

        table {
            border-top: none;
        }

        thead {
            display: none;
        }

        tr {
            display: block;
        }

        td[data-label]::before {
            flex: 0 0 auto;
            width: 40%;
            hyphens: auto;
            content: attr(data-label);
            margin-right: 0.5rem;
        }

        table button {
            width: auto;
        }
    }

}

.std-abrechnung tr {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--bb-content-border-color);

    &:has(tbody:empty) {
        display: none;
    }
}

.std-abrechnung table table tr {
    padding: 0;
    border-bottom: none;
}

@media only screen and (min-width: 1024px) {
    .std-abrechnung tr {
        padding: 0;
    }

    .std-abrechnung th,
    .std-abrechnung td {
        padding: 0.625rem;
        width: auto;
        line-height: 1.2;
    }

    .std-abrechnung table th,
    .std-abrechnung table td {
        padding: 0.5rem 0.25rem;
    }

    .std-abrechnung table table th,
    .std-abrechnung table table td {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .std-abrechnung table#timesheet th,
    .std-abrechnung table#timesheet td {
        padding: 0.5rem;
    }

    .std-abrechnung th:first-child,
    .std-abrechnung td:first-child,
    .std-abrechnung table#timesheet th:first-child,
    .std-abrechnung table#timesheet td:first-child {
        padding-left: 0;
    }

    .std-abrechnung th:last-child,
    .std-abrechnung td:last-child,
    .std-abrechnung table#timesheet th:last-child,
    .std-abrechnung table#timesheet td:last-child {
        padding-right: 0;
    }
}

.std-abrechnung th,
.std-abrechnung td::before {
    font-size: 13px;
    text-align: left;
    font-weight: bold;
}

@media only screen and (max-width: 1023px) {
    .std-abrechnung table:not(.dataTable) td {
        display: block;
    }
}

.std-abrechnung table:not(.dataTable) td {
    display: flex;
    align-items: center;

    @media only screen and (min-width: 1024px) {
        display: table-cell;
        width: auto;
        margin: 0;
    }
}

.std-abrechnung td[data-label="Tag"] {
    white-space: nowrap;
}

.std-abrechnung th[data-label="Tag"] {
    white-space: nowrap;
}

.std-abrechnung td[data-label="Freigabe"] {
    @media only screen and (min-width: 1024px) {
        width: 126px;
    }
}

.std-abrechnung td:has(tbody:empty) {
    padding: 0;
}

.std-abrechnung button[type="submit"] {
    margin-bottom: 0.75rem;
}

.std-abrechnung h4:has(+ .table-wrapper) {
    margin-top: 3rem;

    @media only screen and (min-width: 768px) {
        margin-top: 4rem;
    }
}

.std-abrechnung .table-wrapper {
    margin-bottom: 3rem;

    @media only screen and (min-width: 768px) {
        margin-bottom: 4rem;
    }
}

.std-abrechnung .payroll-h2 {
    margin: 3rem 0 2rem;
}

.std-abrechnung .payroll-h2+p {
    margin-bottom: 3rem;
}

/* Stundenfreigabe */

.dt-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;

    table {
        font-size: 13px !important;
        border-radius: 0 !important;

        th {
            border-bottom-color: var(--bb-content-border-color) !important;
            font-size: 13px !important;
            font-weight: bold !important;
            white-space: nowrap !important;
        }

        th,
        td {
            padding: 0.5rem !important;
            border-radius: 0 !important;
        }
    }
}

td:has(.rowactions a[href*="mitglieder"]) {
    position: relative;

    br {
        display: none;
    }
}

td ul {
    margin-bottom: 0;
}

.rowactions a[href*="mitglieder"] {
    position: absolute;
    inset: 0;
    display: block;
    text-indent: -9999px;
}

.rowactions a[href*="users.php?action=resetpassword"] {
    display: none;
}

table.dataTable tbody tr.selected {
    background-color: transparent;
}

table.dataTable>tbody>tr.selected>* {
    box-shadow: inset 0 0 0 9999px rgba(var(--bb-default-notice-color-rgb), 0.05) !important;
    color: inherit;
}

.dtcr-moving {
    background-color: rgba(var(--bb-default-notice-color-rgb), 0.05) !important;
}

.dtcr-moving-first {
    border-left-color: rgba(var(--bb-default-notice-color-rgb), 0.15) !important;
}

.dtcr-moving-last {
    border-right-color: rgba(var(--bb-default-notice-color-rgb), 0.15) !important;
}

.dt-scroll:has(table.dataTable[class*="dtfc-scrolling"]) thead tr th.dtfc-fixed-start {
    border-right: 1px solid transparent;
}

div.dt-buttons.is-grouped {
    float: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    width: 100%;
    gap: 0;
    border: 1px solid var(--bb-content-border-color);
    border-radius: var(--bb-input-radius);
    overflow: hidden;

    &:empty {
        display: none;
    }

    button {
        display: flex;
        gap: 1rem;
        flex-grow: 1;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
        margin: -1px -1px 0 1px;
        border-radius: 0;
        background-color: transparent;
        color: var(--bb-secondary-button-text-regular);
        border: none;
        border-right: 1px solid var(--bb-content-border-color);
        border-top: 1px solid var(--bb-content-border-color);

        &:hover {
            background-color: var(--bb-content-alternate-background-color);
        }
    }

    .dropdown-menu {
        display: flex;
        flex-direction: column;
        color: var(--e-global-color-text);
    }

    .dropdown-content {
        padding: 0.5rem;
    }

    .dt-button.dropdown-item {
        position: relative;
        color: var(--bb-secondary-button-text-regular);

        &.dt-button-active {
            color: var(--bb-primary-color)
        }
    }
}

.dt-container {

    input,
    select,
    textarea {
        height: 36px;
    }
}

.dt-container label {
    font-size: 15px;
}

.dt-container span.dt-column-title,
.dt-container span.dt-column-order {
    display: inline-flex !important;
    vertical-align: middle !important;
    font-size: 13px;
}

.dt-container span.dt-column-order {
    flex-direction: column !important;
    gap: 1px !important;
    position: static !important;
    margin-left: 0.5rem !important;
    width: auto !important;

    &::before,
    &::after {
        position: static !important;
        font-size: 0.625rem !important;
    }
}

.columns:has(.dt-length):has(.dt-search),
.columns:has(.dt-info):has(.dt-paging) {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem 2rem;
    justify-content: start;
    font-size: 13px;

    &::after {
        content: '';
        order: 1;
        margin-right: auto;
        flex-basis: calc((51rem - 100%) * 999);
        flex-grow: 1;
    }
}

.column:has(.dt-search),
.column:has(.dt-paging) {
    margin-left: 0 !important;
    order: 2;
}

.column:has(.dt-length) {
    display: flex;
    flex-flow: column wrap;
    gap: 1rem;
}

@media only screen and (max-width: 767px) {
    .dt-buttons:has(+ .dt-length) {
        display: none;
    }
}

.dt-length,
.dt-search {
    display: flex;
    align-items: center;
    gap: 1rem;

    label {
        margin-bottom: 0;
    }
}

div.dt-container div.dt-search input {
    width: 100%;
    margin-left: 0;
}

div.dt-container div.dt-info {
    padding: 0;
}

.dt-paging .pagination {
    margin: 0;
}

.pagination-link {
    font-size: 13px !important;
}

div.dtsb-searchBuilder,
div.dtsb-searchBuilder>div.dtsb-group {
    margin-bottom: 0;
}

div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-clearGroup {
    font-size: 1.5rem;
    width: 2rem;
}

div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-left,
div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-right,
div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-delete {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
    padding: 0;
    line-height: 0;
}

div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-left,
div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-right {
    margin-right: 0.5rem;
    font-size: 1.375rem;
    font-weight: bold;
}

.dt-empty-footer .dt-scroll-foot {
    display: none;
}

/* Members */

/* Member List (Overview) */

#members-list.item-list:not(.grid) .list-wrap.no-primary-buttons .list-wrap-inner .item {
    padding-right: 1rem;
}

@media screen and (max-width: 599px) {
    #members-list.item-list:not(.grid) .bb_more_options.member-dropdown {
        top: 0;
        transform: translateY(1rem)
    }
}

@media screen and (max-width: 799px) {
    #members-list.item-list:not(.grid) .list-wrap .list-wrap-inner .item {
        margin-bottom: 0;
    }
}


@media screen and (max-width: 480px) {
    #members-list.item-list:not(.grid) .list-wrap .list-wrap-inner .member-buttons-wrap {
        margin-left: 0
    }
}

@media screen and (max-width: 799px) {
    #members-list.item-list:not(.grid) .list-wrap.no-primary-buttons .list-wrap-inner .member-buttons-wrap {
        margin-right: 1rem;
    }
}

/* Member List Pagination */

.buddypress-wrap .bp-pagination .bp-pagination-links {
    margin-right: 0;
}

.bp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-around;
}

.bp-pagination::after {
    content: '';
    order: 1;
    margin-right: auto;
    flex-basis: calc((38rem - 100%) * 999);
    flex-grow: 1;
}

.bp-pagination-links {
    order: 2;
}

/* Member Profile Details */

.bb-template-v2 #cover-image-container {
    margin-top: 0;
    border-radius: var(--bb-block-radius);
}

.bp-user #buddypress #item-header {
    margin-bottom: 1rem;
}

.users-header #item-header-content>.flex {
    align-items: center;
    gap: 1rem;
}

#buddypress div#item-header #item-header-cover-image #item-header-content>.flex {
    align-items: center;
}

@media screen and (max-width: 1300px) {
    #buddypress div#item-header #item-header-cover-image #item-header-content>.flex {
        align-items: flex-start;
    }
}

.single-headers .member-header-actions-wrap,
.users-header #item-header-content>.flex .member-header-actions-wrap .member-header-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

body #buddypress #item-header-cover-image {
    display: flex;
    align-items: center;
}

body #buddypress .member-title-wrap,
body #buddypress .member-header-actions,
body #buddypress .single-headers .item-meta {
    padding: 0;
    margin: 0;
}

body #buddypress .member-header-actions>.generic-button {
    margin: 0;
}

.bb-template-v2 .users-header #item-header-content>.flex .member-header-actions-wrap .bb_more_options {
    margin-top: 0;
    margin-bottom: 0;
}

@media screen and (max-width: 599px) {

    .single-headers .member-header-actions-wrap,
    .users-header #item-header-content>.flex .member-header-actions-wrap .member-header-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Member Profile Details Tiles */

.bp-profile-content>.profile.public {
    column-count: 1;
    column-gap: 1.25rem;
    width: 100%;

    @media screen and (min-width: 1024px) {
        column-count: 2;
    }

    @media screen and (min-width: 1440px) {
        column-count: 3;
    }
}

.profile-loop-header .entry-title.bb-profile-title {
    hyphens: auto;
    line-height: 1.3;
    padding-right: 1rem;
}

.bp-profile-content>.profile.public>.group-separator-block {
    break-inside: avoid;
    margin-bottom: 1.25rem;

    @media screen and (max-width: 599px) {
        padding: 0 1rem;
    }
}

table.profile-fields>tbody>tr:not(:has(td.data > *)) {
    display: none !important;
}

#buddypress table.profile-fields tr td.label {
    width: 50%;
    font-weight: 600;
    hyphens: auto;
}

#buddypress table.profile-fields tr td.data {
    width: 50%;
}

@media screen and (max-width: 599px) {

    #buddypress div.bp-profile-content table.profile-fields tr,
    #buddypress div.bp-profile-content table.profile-fields tr td {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #buddypress div.bp-profile-content table.profile-fields tr td.label {
        padding-bottom: 0;
    }
}

#buddypress table.profile-fields tr td.data td {
    font-size: 14px;
}

/* Member Profile Edit ACF */

#buddypress .bp-profile-content:has(.profile.edit) {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media screen and (min-width: 600px) {
    #buddypress .bp-profile-content:has(.profile.edit) {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

header.profile-header:not(.profile-loop-header) {
    gap: 1rem;
}

@media screen and (max-width: 599px) {
    header.profile-header:not(.profile-loop-header) {
        flex-direction: column;
        align-items: flex-start;
    }
}

#buddypress header.profile-header:not(.profile-loop-header) a.button.outline {
    flex-shrink: 0;
}

@media screen and (max-width: 599px) {
    #buddypress header.profile-header:not(.profile-loop-header) a.button.outline {
        margin: 0;
    }
}

#buddypress .profile.edit .button-nav {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    padding-bottom: 1rem;
    border: none;
    margin: 0.75rem 0 2rem;
    display: flex;
}

#buddypress .profile.edit .button-nav::after {
    content: '';
    width: 3rem;
    background-image: linear-gradient(90deg, #ffffff00, #fff);
    position: sticky;
    right: 0;
    pointer-events: none;
    flex-grow: 1;
    flex-shrink: 0;
    border-bottom: 1px solid var(--bb-content-border-color);
}

#buddypress .profile.edit .button-nav li {
    margin: 0;
    border-bottom: 1px solid var(--bb-content-border-color);
}

#buddypress .profile.edit .button-nav li a {
    position: relative;
    margin: 0 2rem -1px 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid transparent;
}

#buddypress .profile.edit .button-nav li:last-child a {
    margin-right: 0;
}

#buddypress .profile.edit .button-nav li.current a::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--bb-primary-color);
    z-index: 1;
}

@media screen and (max-width: 599px) {
    .bb-template-v2 #page #buddypress #item-body .bp-profile-wrapper:not(.need-separator) .bp-profile-content {
        padding: 0;
        border: none;
    }
}

.bp-profile-content>.profile.edit .acf-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;

    @media screen and (min-width: 600px) {
        gap: 2rem;
        align-items: flex-end;
    }
}

.bp-profile-content>.profile.edit .acf-field {
    padding: 0;
    border-top: none;

    @media screen and (min-width: 600px) {

        &:not(:has(input[type="checkbox"], .acf-repeater))+.acf-field:not(:has(input[type="checkbox"], .acf-repeater)),
        &:not(:has(input[type="checkbox"], .acf-repeater)):has(+.acf-field) {
            flex-basis: calc(50% - 1rem);
        }
    }
}

.bp-profile-content>.profile.edit .acf-field:has(input[type="checkbox"], .acf-repeater) {
    flex-basis: 100%;
}

@media screen and (max-width: 599px) {
    .bp-profile-content>.profile.edit .acf-checkbox-list li {
        padding: 0.5rem 0;
    }
}

.bp-profile-content>.profile.edit .acf-input:has(.acf-repeater) {
    position: relative;
    margin: 0 -1.25rem;

    @media screen and (min-width: 600px) {
        margin: 0 -2rem;
    }

    &::before,
    &::after {
        content: '';
        display: block;
        width: 1.25rem;
        height: 100%;
        background-image: linear-gradient(90deg, #fff, #ffffff00);
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        pointer-events: none;
    }

    @media screen and (min-width: 600px) {

        &::before,
        &::after {
            width: 2rem;
        }
    }

    &::after {
        left: auto;
        right: 0;
        background-image: linear-gradient(90deg, #ffffff00, #fff);
    }
}

.bp-profile-content>.profile.edit .acf-repeater {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;

    >.acf-table {
        width: calc(100% - 2.5rem - 1px);
        margin: 0 1.25rem 1rem;

        @media screen and (min-width: 600px) {
            width: calc(100% - 4rem - 1px);
            margin: 0 2rem 1rem;
        }

        td {
            padding: 2px;
        }
    }

    >.acf-actions {
        position: sticky;
        left: 0;
        margin-right: 1.25rem;

        @media screen and (min-width: 600px) {
            margin-right: 2rem;
        }

        .acf-button {
            float: none;
        }
    }

    .acf-relationship {
        border: none;

        .list {
            height: 100px;
        }
    }

    .filters.-f1 {
        border: none;
    }

    .filter.-search {
        padding: 0;

        input {
            padding: 4px 8px;
            border: 1px solid var(--bb-content-border-color);
            border-radius: var(--bb-input-radius);
        }
    }
}

/* KB Switch */
.kbswitch-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid var(--bb-content-border-color);
    border-radius: var(--bb-input-radius);
    box-shadow: none;

    input {
        overflow: hidden;
        position: absolute;
        opacity: 0;
        width: 0 !important;
        height: 0;

        &.toggle-yes:checked~label[for^="yes"] {
            background-color: var(--bb-success-color);
        }

        &.toggle-unset:checked~label[for^="na"] {
            background-color: var(--bb-warning-color);
        }

        &.toggle-no:checked~label[for^="no"] {
            background-color: var(--bb-danger-color);
        }

        &:checked+label::before {
            color: #fff;
        }
    }

    label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        width: 40px;
        height: 40px;
        margin: 0;
        border: 2px solid #fff;
        border-radius: var(--bb-input-radius);

        &::before {
            font-family: bb-icons;
            font-style: normal;
            font-size: 20px;
            color: var(--bb-headings-color);
        }
    }
}

.kbfa-yes::before {
    content: '\e876';
}

.kbfa-na::before {
    content: '\e881';
}

.kbfa-no::before {
    content: '\ee08';
}

/* Payroll */

#payroll {
    border: none;

    table {
        border: none;
    }

    td {
        padding: 0.1rem 0.1rem;
        border: none;
    }

    select {
        max-width: 150px;
    }
}

.payroll-table {
    border: none;

    table {
        border: none;
    }

    td {
        padding: 0.1rem 0.1rem;
        border: none;
    }

    th {
        padding: 0;
        border: none;
    }

    select {
        max-width: 150px;
    }

    p {
        margin-bottom: 0.5rem;
    }
}

.payroll-h2 {
    margin: 2rem 0 0.5rem;
}

.payroll-comment-textarea {
    margin: 0 0 2rem;
}

.formatted-font {
    font-family: monospace;
}

#totals p {
    margin-bottom: 0.5rem;
}

.betterdocs-shortcode.betterdocs-article-reactions {
    display: none;
}

.bb-course-member-wrap {
    display: none;
}

.stdabrechnung-button-wrapper {
    padding-top: 10px;
}

.timesheet-table-wrapper select {
    max-width: 150px;
}

.dt-type-numeric i.fas.fa-circle {
    font-size: 0;

    &::before {
        font-size: 16px;
        /* restore size for the icon */
    }
}

/* Vorgangsraum */

.content-area:has(.vorgangsraum-body) {
    padding-top: 0;
}

.vorgangsraum-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;

    @media only screen and (min-width: 1024px) {
        grid-template-columns: 1fr 360px;
        gap: 2rem;
        margin: 0;
    }
}

.vorgangsraum-main {
    padding-top: 1.5rem;

    @media only screen and (min-width: 1024px) {
        padding-top: 2.25rem;
    }
}

.vorgangsraum-sidebar {
    @media only screen and (min-width: 1024px) {
        padding: 1rem 0 2rem;
        align-self: start;
        position: sticky;
        z-index: 99;
        top: calc(var(--header-height) + var(--wp-admin--admin-bar--height, 32px));
        margin-top: -300px;
    }
}

.vorgangsraum-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: hidden;
    padding: 1.5rem 1rem 1rem;
    background-color: var(--bb-content-background-color);
    border-radius: var(--bb-block-radius);
    border: 1px solid var(--bb-content-border-color);

    @media only screen and (min-width: 1024px) {
        padding: 2rem;
        box-shadow: 0 2rem 3.375rem 0 rgba(0, 0, 0, .1);
        border: none;
    }
}

.vorgangsraum-sidebar h4 {
    font-size: 1.125rem;
    color: var(--bb-headings-color);
    margin: 0;
    padding-bottom: 0.5rem;
}

.vorgangsraum-processdata,
.vorgangsraum-download {
    form {
        margin: 0;
    }

    .btns input {
        display: block;
        width: 100%;
    }
}

.vorgangsraum-changestate form,
.vorgangsraum-forward form {
    display: flex;
    flex-flow: column wrap;
    width: 100%;
    gap: 0.5rem;
    margin: 0;

    .btns input {
        width: 100%;
    }
}

.vorgangsraum-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    padding: 0;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--bb-cover-image-background-color);
    overflow: hidden;

    @media only screen and (min-width: 800px) {
        padding: 0 3.375rem;
    }

    @media only screen and (min-width: 1024px) {
        padding: 0 2.75rem;
    }

    &::before {
        content: "";
        opacity: .4;
        background-color: var(--bb-headings-color);
        background-image: -webkit-linear-gradient(270deg, rgba(0, 0, 0, 0) 4%, #000 100%);
        background-image: linear-gradient(-180deg, rgba(0, 0, 0, 0) 4%, #000 100%);
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1;
    }
}

.vorgangsraum-banner-container {
    max-width: 1480px;
    width: 100%;
    padding: 2rem 0;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.vorgangsraum-head {
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem;
    transition: transform 0.2s ease-out;

    @media only screen and (min-width: 1024px) {
        max-width: calc(100% - 400px);
        padding: 0 2rem;
    }

    h3 {
        margin-bottom: 0;
    }
}

.vorgangsraum-head-title-id {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

.vorgangsraum-head-title {
    margin: 0 0 3rem;

    @media only screen and (min-width: 1024px) {
        padding-top: 4.375rem;
    }

    h1 {
        font-size: 3rem;
        color: #fff;
        line-height: 1.25;
        margin: 0;
        hyphens: auto;
    }
}

.buddypanel-open .vorgangsraum-head {
    transform: translateX(5rem);
}

.vorgangsraum-head-meta {
    display: flex;
    align-items: center;

    @media only screen and (min-width: 1024px) {
        margin-bottom: 2.5rem;
    }
}

.vorgangsraum-head-meta-author-profile {
    display: flex;
    align-items: center;

    &:hover {
        text-decoration: underline;
        text-decoration-color: #fff;
    }
}

img.vorgangsraum-head-meta-author-avatar {
    border-radius: 50%;
    margin-right: 0.75rem;
    max-width: 2.5rem;
}

.vorgangsraum-head-meta-author-name {
    font-size: 0.875rem;
    color: #fff;
}

.vorgangsraum-head-meta-separator {
    color: #fff;
    margin: 0 0.75rem;
}

.vorgangsraum-head-meta-date {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, .8);
}

.vorgangsraum-alerts {
    margin-bottom: 2rem;

    .bp-feedback:first-child {
        margin-top: 0;
    }
}

.vorgangsraum-formdata {
    padding: 0 1rem 1rem;
    background: var(--bb-content-background-color);
    border: 1px solid var(--bb-content-border-color);
    border-radius: var(--bb-block-radius);

    @media only screen and (min-width: 600px) {
        padding: 0 1.5rem 1rem;
    }

    @media only screen and (min-width: 1024px) {
        padding: 0 2rem 1rem;
        margin-bottom: 1.25rem;
    }

    table {
        width: 100%;
    }

    tr {
        @media screen and (max-width: 599px) {
            display: flex;
            flex-direction: column;
        }
    }

    th,
    td {
        padding: 0;
        font-size: 0.875rem;
        word-break: break-word;
        border: none;
        vertical-align: baseline;

        @media screen and (min-width: 600px) {
            padding: 0 0 0.75rem;
        }
    }

    th {
        padding-right: 0.75rem;
        font-weight: 600;
        hyphens: auto;
        color: var(--bb-alternate-text-color);

        @media screen and (min-width: 600px) {
            width: 40%;
        }
    }

    td {
        padding: 0 0 1.25rem;
        font-weight: 400;
        color: var(--bb-body-text-color);
        line-height: inherit;
        background: 0 0;
        border: 0;

        @media screen and (min-width: 600px) {
            width: 60%;
            padding: 0;
        }
    }
}


.vorgangsraum-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    grid-template-rows: min-content minmax(min-content, max-content) min-content;

    @media only screen and (min-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vorgangsraum-logs,
.vorgangsraum-notes {
    height: 100%;
    padding: 0 1rem 1rem;
    background: var(--bb-content-background-color);
    border: 1px solid var(--bb-content-border-color);
    border-radius: var(--bb-block-radius);

    @media only screen and (min-width: 600px) {
        padding: 0 1.5rem 1rem;
    }

    @media only screen and (min-width: 1024px) {
        max-height: 420px;
        overflow: auto;
        padding: 0 2rem 1rem;
    }
}

.vorgangsraum-logs-title,
.vorgangsraum-notes-title,
.vorgangsraum-formdata-title {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 4.5rem;
    padding: 1.25rem 0 0.875rem;
    margin: 0 0 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid var(--bb-content-border-color);

    h4 {
        margin-bottom: 0;
    }
}

.vorgangsraum-addnote-toggle {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0 auto;

    #addNoteToggle {
        position: absolute;
        inset: 0;
        opacity: 0;
    }
}

.vorgangsraum-addnote {
    display: none;
}

.vorgangsraum-notes:has(#addNoteToggle:checked) .vorgangsraum-addnote {
    display: block;
}

.vorgangsraum-addnote .btns {
    display: flex;

    input {
        margin: 0.75rem 0 0 0;
        float: none;
    }
}

.vorgangsraum-addnote .wp-editor-tabs {
    float: none;
}

.vorgangsraum-addnote .wp-switch-editor {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.vorgangsraum-entry-logs-single,
.vorgangsraum-entry-notes-single {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(146, 164, 183, .05);
    border-radius: var(--bb-block-radius-inner);

    p {
        margin: 0;
        font-size: 1rem;
        font-weight: 500;

        em {
            font-style: normal;
        }
    }
}

.vorgangsraum-entry-logs-byline,
.vorgangsraum-entry-notes-byline {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--bb-body-text-color);

    .log-user,
    .note-user {
        color: var(--e-global-color-accent);

        &:hover {
            color: var(--e-global-color-primary);
        }
    }
}
