.tx-keyfaktura {
    --fkx-surface: var(--color-neutral-0);
    --fkx-surface-soft: rgb(215,215,215);
    --fkx-surface-muted: color-mix(in srgb, var(--color-neutral-10) 60%, var(--color-neutral-20) 40%);
    --fkx-border: color-mix(in srgb, var(--color-neutral-30) 75%, var(--color-neutral-20) 25%);
    --fkx-text: var(--color-neutral-80);
    --fkx-text-muted: #414141;
    --fkx-title: var(--color-neutral-90);
    --fkx-accent: var(--color-primary-100);
    --fkx-accent-soft: color-mix(in srgb, var(--color-primary-75) 18%, white 82%);
    --fkx-shadow: 0 16px 44px rgba(34, 11, 1, 0.12);
    color: var(--fkx-text);
    font-family: var(--body-family), sans-serif;
}

.tx-keyfaktura *,
.tx-keyfaktura *::before,
.tx-keyfaktura *::after {
    box-sizing: border-box;
}

.tx-keyfaktura a {
    color: var(--fkx-accent);
}

.tx-keyfaktura p,
.tx-keyfaktura ul,
.tx-keyfaktura ol {
    margin: 0;
}

.tx-keyfaktura table {
    border-collapse: collapse;
}

.tx-keyfaktura .fkx-page {
    padding: clamp(1.5rem, 2vw, 2.5rem) 0 clamp(3rem, 5vw, 4.5rem);
}

* > .component:first-child {
    margin-top: 20px !important;
}

.tx-keyfaktura .fkx-customers-page {
    padding-top: 0.75rem;
}

.tx-keyfaktura .fkx-shell {
    width: min(calc(100% - 2rem), var(--content-max-width));
    margin: 0 auto;
}

.tx-keyfaktura .fkx-page-header {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.tx-keyfaktura .fkx-page-title {
    margin: 0;
    color: var(--fkx-title);
    font-family: var(--headline-family), serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: var(--headline-weight);
    line-height: var(--headline-line-height);
}

.tx-keyfaktura .fkx-page-subtitle {
    max-width: 44rem;
    color: var(--fkx-text-muted);
    font-size: var(--body-medium-size);
}

.tx-keyfaktura .fkx-contract-title-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.tx-keyfaktura .fkx-vertrag-detail-subtitle {
    margin: 0;
}

.tx-keyfaktura .fkx-vertragsposition-meta-table {
    width: 100%;
    margin-top: 0.55rem;
    border-collapse: collapse;
    border: 0;
}

.tx-keyfaktura .fkx-vertragsposition-meta-table td {
    padding: 0.15rem 0;
    border: 0;
    background: transparent;
    color: var(--fkx-text-muted);
    vertical-align: top;
}

.tx-keyfaktura .fkx-vertragsposition-meta-table td:first-child {
    width: 8.5rem;
    padding-right: 0.75rem;
    color: var(--fkx-title);
    font-weight: 600;
}

.tx-keyfaktura .js-vertragsposition-accordion .fkx-position-table thead th:nth-child(2),
.tx-keyfaktura .js-vertragsposition-accordion .fkx-position-table thead th:nth-child(3),
.tx-keyfaktura .js-vertragsposition-accordion .fkx-position-table td[data-label="Menge"],
.tx-keyfaktura .js-vertragsposition-accordion .fkx-position-table td[data-label="Einheit"] {
    text-align: center;
}

.tx-keyfaktura .fkx-actions,
.tx-keyfaktura .fkx-actions-end {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.tx-keyfaktura .fkx-actions-end {
    justify-content: flex-end;
}

.tx-keyfaktura .fkx-inline-form {
    display: inline-flex;
    margin: 0;
}

.tx-keyfaktura .fkx-button,
.tx-keyfaktura button.fkx-button,
.tx-keyfaktura .wf-btn-display.wf-btn-link-item,
.tx-keyfaktura .wf-btn-display.wf-btn-link-item2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--fkx-accent);
    color: #fff;
    font-family: var(--label-family), sans-serif;
    font-size: var(--label-medium-size);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 10px 20px rgba(180, 80, 35, 0.18);
}

.tx-keyfaktura .fkx-button:hover,
.tx-keyfaktura .fkx-button:focus-visible,
.tx-keyfaktura .wf-btn-display.wf-btn-link-item:hover,
.tx-keyfaktura .wf-btn-display.wf-btn-link-item:focus-visible,
.tx-keyfaktura .wf-btn-display.wf-btn-link-item2:hover,
.tx-keyfaktura .wf-btn-display.wf-btn-link-item2:focus-visible,
.tx-keyfaktura .fkx-button--secondary:hover,
.tx-keyfaktura .fkx-button--secondary:focus-visible {
    background: color-mix(in srgb, var(--fkx-accent) 88%, black 12%);
    color: #fff;
    border-color: color-mix(in srgb, var(--fkx-accent) 88%, black 12%);
    transform: translateY(-1px);
}

.tx-keyfaktura .fkx-button--secondary {
    border-color: var(--fkx-border);
    background: var(--fkx-surface);
    color: var(--fkx-title);
    box-shadow: none;
}

.tx-keyfaktura .fkx-button--muted,
.tx-keyfaktura button.fkx-button.fkx-button--muted,
.tx-keyfaktura .fkx-form-actions .fkx-button.fkx-button--muted {
    border-color: rgb(97, 97, 97);
    background: rgb(97, 97, 97);
    color: #fff;
    box-shadow: none;
}

.tx-keyfaktura .fkx-button--muted:hover,
.tx-keyfaktura .fkx-button--muted:focus-visible,
.tx-keyfaktura button.fkx-button.fkx-button--muted:hover,
.tx-keyfaktura button.fkx-button.fkx-button--muted:focus-visible,
.tx-keyfaktura .fkx-form-actions .fkx-button.fkx-button--muted:hover,
.tx-keyfaktura .fkx-form-actions .fkx-button.fkx-button--muted:focus-visible {
    background: rgb(77, 77, 77);
    color: #fff;
    border-color: rgb(77, 77, 77);
    transform: translateY(-1px);
}

.tx-keyfaktura .fkx-form-panel,
.tx-keyfaktura .fkx-modal__panel {
    border: 1px solid var(--fkx-border);
    border-radius: 1.5rem;
    background: var(--fkx-surface);
    box-shadow: var(--fkx-shadow);
}

.tx-keyfaktura .fkx-card {
    border: 0;
    border-radius: 10px;
    background: var(--fkx-surface);
    box-shadow: var(--fkx-shadow);
    padding: clamp(1.25rem, 2vw, 1.75rem);
}

.tx-keyfaktura .fkx-customers-toolbar {
    justify-content: center;
    margin-bottom: 1.25rem;
    gap: 0.9rem;
}

.tx-keyfaktura .fkx-vertrag-filter-actions {
    gap: 0.9rem;
    margin-left: 1.5rem;
}

.tx-keyfaktura .fkx-vertrag-filter-actions .fkx-button {
    min-width: 11.5rem;
    border-radius: 10px;
}

.tx-keyfaktura .fkx-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    margin-top: 2rem;
}

.tx-keyfaktura .fkx-form-actions > * {
    flex: 0 0 auto;
    margin: 0;
}

.tx-keyfaktura .fkx-form-actions .fkx-button,
.tx-keyfaktura .fkx-form-actions .wf-btn-display {
    min-width: 11.5rem;
    border-radius: 10px;
}

.tx-keyfaktura .fkx-form-actions--danger {
    margin-top: 0.9rem;
}

.tx-keyfaktura .fkx-form-actions__inline {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    margin: 0;
}

.tx-keyfaktura .fkx-customers-toolbar .fkx-button {
    min-width: 11.5rem;
    border-radius: 10px;
}

.tx-keyfaktura .fkx-customer-tabs {
    margin-top: 0.5rem;
}

.tx-keyfaktura .fkx-customer-tabs__divider {
    width: 100%;
    height: 1px;
    margin: 0 0 1.5rem;
    background: linear-gradient(90deg, transparent, var(--fkx-border) 12%, var(--fkx-border) 88%, transparent);
}

.tx-keyfaktura .fkx-customer-tabs__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    width: min(100%, 38rem);
    margin: 0 auto 1.75rem;
}

.tx-keyfaktura .fkx-customer-tabs__button {
    min-height: 3.4rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--fkx-border);
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--fkx-surface) 84%, var(--fkx-surface-soft) 16%);
    color: var(--fkx-title);
    font: inherit;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tx-keyfaktura .fkx-customer-tabs__button:hover,
.tx-keyfaktura .fkx-customer-tabs__button:focus-visible {
    border-color: color-mix(in srgb, var(--fkx-accent) 35%, var(--fkx-border) 65%);
    background: var(--fkx-surface-soft);
    outline: none;
}

.tx-keyfaktura .fkx-customer-tabs__button.is-active {
    border-color: var(--fkx-accent);
    background: color-mix(in srgb, var(--fkx-accent) 12%, white 88%);
    color: var(--fkx-accent);
    box-shadow: 0 12px 28px rgba(180, 80, 35, 0.12);
}

.tx-keyfaktura .fkx-customer-tabs__panel[hidden] {
    display: none !important;
}

.tx-keyfaktura .fkx-customer-tabs__panel {
    display: block;
}

.tx-keyfaktura .fkx-aa-toolbar-wrap {
    margin-top: 3em;
}

.tx-keyfaktura .fkx-aa-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tx-keyfaktura .fkx-aa-toolbar .wf-btn-display {
    align-self: center;
    border-radius: 10px;
}

.tx-keyfaktura .fkx-aa-card {
    margin: 3em 10% 0;
    padding: 0;
    overflow: hidden;
}

.tx-keyfaktura .fkx-aa-card__content {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.tx-keyfaktura .fkx-aa-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    width: min(100%, 42rem);
    margin: 0 auto;
    padding: 0.75rem;
}

.tx-keyfaktura .fkx-aa-actions > .fkx-button,
.tx-keyfaktura .fkx-aa-actions .fkx-button {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    text-align: center;
}

.tx-keyfaktura .fkx-aa-actions .fkx-inline-form {
    margin: 0;
}

.tx-keyfaktura .fkx-aa-actions .fkx-aa-actions__form .fkx-button {
    height: 100%;
}

.tx-keyfaktura .fkx-aa-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    margin-left: calc(clamp(1rem, 2vw, 1.5rem) * -1);
    margin-right: calc(clamp(1rem, 2vw, 1.5rem) * -1);
    margin-top: calc(clamp(1rem, 2vw, 1.5rem) * -1);
    background: rgb(97, 97, 97);
}

.tx-keyfaktura .fkx-aa-card__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.tx-keyfaktura .fkx-aa-card__date {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    align-self: center;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.tx-keyfaktura .fkx-aa-card__date .fkx-icon-button {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.tx-keyfaktura .fkx-aa-card__date .fkx-icon-button:hover,
.tx-keyfaktura .fkx-aa-card__date .fkx-icon-button:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.2);
}

.tx-keyfaktura .fkx-aa-hours-progress {
    margin: 2rem 0 2rem;
}

.tx-keyfaktura .fkx-aa-hours-progress__labels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

.tx-keyfaktura .fkx-aa-hours-progress__track {
    position: relative;
    width: 100%;
    height: 1rem;
    border-radius: 999px;
    background: rgb(224, 224, 224);
    overflow: hidden;
}

.tx-keyfaktura .fkx-aa-hours-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: #5f8f2f;
}

.tx-keyfaktura .fkx-aa-hours-progress__fill--warning {
    background: #d6a300;
}

.tx-keyfaktura .fkx-aa-hours-progress__fill--danger {
    background: #b32020;
}

@media (max-width: 640px) {
    .tx-keyfaktura .fkx-aa-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tx-keyfaktura .fkx-aa-card__date {
        text-align: left;
        white-space: normal;
    }

    .tx-keyfaktura .fkx-aa-hours-progress__labels {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 1080px) {
    .tx-keyfaktura .fkx-aa-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tx-keyfaktura .fkx-customers-title-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    scroll-snap-margin-top: 0;
    padding: 1rem;
    text-align: center;
    margin: 0 5rem 1rem 5rem;
}

.tx-keyfaktura .fkx-customers-title-box::after {
    content: "";
    position: absolute;
    left: -5rem;
    right: -5rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fkx-border) 12%, var(--fkx-border) 88%, transparent);
    pointer-events: none;
}

.tx-keyfaktura .fkx-customers-title-box__title {
    margin: 0;
    color: var(--fkx-accent);
    font-size: 2em;
}

.tx-keyfaktura .fkx-zugang-search-card,
.tx-keyfaktura .fkx-zugang-empty-state {
    width: min(100%, 960px);
    margin: 0 auto 1.75rem;
}

.tx-keyfaktura .fkx-zugang-search-card {
    display: grid;
    gap: 1rem;
    margin-top: 4rem;
}

.tx-keyfaktura .fkx-zugangssuche-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tx-keyfaktura .fkx-zugangssuche-form .fkx-field-control {
    flex: 1 1 32rem;
    max-width: 100%;
    margin: 0;
    min-height: 3.35rem;
}

.tx-keyfaktura .fkx-zugangssuche-form .fkx-button {
    min-width: 11.5rem;
    border-radius: 10px;
}

.tx-keyfaktura .fkx-zugang-search-result-card {
    width: min(100%, 1120px);
    margin: 0 auto 1.75rem;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.tx-keyfaktura .fkx-zugang-search-result-table-wrap {
    margin-top: 0.5rem;
}

.tx-keyfaktura .fkx-zugang-empty-state {
    text-align: center;
}

.tx-keyfaktura .fkx-customers-table-wrap {
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: auto;
}

.tx-keyfaktura .fkx-kunden-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.tx-keyfaktura .fkx-kunden-table-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    flex: 0 1 auto;
    padding-left: 1em;
}

.tx-keyfaktura .fkx-kunden-length-label,
.tx-keyfaktura .fkx-kunden-search-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--fkx-title);
    font-size: 0.95rem;
}

.tx-keyfaktura .fkx-kunden-length-label {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
}

.tx-keyfaktura .fkx-kunden-page-size,
.tx-keyfaktura .fkx-kunden-search-input {
    min-height: 2rem;
    border: 1px solid var(--fkx-border);
    border-radius: 7px;
    background: var(--fkx-surface);
    color: var(--fkx-text);
    font: inherit;
    line-height: 1.2;
    box-sizing: border-box;
}

.tx-keyfaktura .fkx-kunden-page-size {
    display: inline-block !important;
    width: auto !important;
    min-width: 0;
    max-width: 110px;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.tx-keyfaktura .fkx-kunden-info {
    color: var(--fkx-copy);
    font-size: 0.95rem;
    white-space: nowrap;
}

.tx-keyfaktura .fkx-kunden-length-text {
    white-space: nowrap;
}

.tx-keyfaktura .fkx-kunden-table-toolbar-search {
    display: flex;
    margin-left: auto;
    padding-right: 1em;
    justify-content: flex-end;
    flex: 1 1 320px;
}

.tx-keyfaktura .fkx-kunden-search-input {
    width: 100%;
    margin: 0;
    min-height: 2rem;
    padding: 0.4rem 0.95rem;
    border-radius: 7px;
}

.tx-keyfaktura .fkx-kunden-search-input::placeholder {
    color: var(--fkx-text-muted);
    opacity: 1;
}

.tx-keyfaktura .fkx-kunden-search-input:focus {
    outline: 2px solid color-mix(in srgb, var(--fkx-accent) 35%, white 65%);
    outline-offset: 1px;
    border-color: var(--fkx-accent);
}

.tx-keyfaktura .fkx-kunden-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tx-keyfaktura .fkx-kunden-pagination-button {
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--fkx-border);
    border-radius: 0.7rem;
    background: #fff;
    color: var(--fkx-title);
    font: inherit;
    cursor: pointer;
}

.tx-keyfaktura .fkx-kunden-pagination-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.tx-keyfaktura .fkx-kunden-pagination-status {
    color: var(--fkx-copy);
    font-size: 0.95rem;
    white-space: nowrap;
}

.tx-keyfaktura .fkx-artikel-table__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.tx-keyfaktura .fkx-artikel-delete-form {
    margin: 0;
}

.tx-keyfaktura .fkx-kunden-table {
    width: 100%;
    min-width: 48rem;
}

.tx-keyfaktura .fkx-kunden-table thead th {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid #000;
    background: #000;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.tx-keyfaktura .fkx-kunden-table thead .fkx-col-ws,
.tx-keyfaktura .fkx-kunden-table thead .fkx-col-email,
.tx-keyfaktura .fkx-kunden-table tbody .fkx-col-ws,
.tx-keyfaktura .fkx-kunden-table tbody .fkx-col-email {
    text-align: center;
}

.tx-keyfaktura #fkx-vertraege-table {
    table-layout: fixed;
}

.tx-keyfaktura #fkx-vertraege-table .fkx-col-name,
.tx-keyfaktura #fkx-vertraege-table .fkx-col-firma {
    width: 30%;
}

.tx-keyfaktura #fkx-vertraege-table .fkx-col-startdatum,
.tx-keyfaktura #fkx-vertraege-table .fkx-col-status {
    width: 10%;
    text-align: center;
}

.tx-keyfaktura #fkx-vertraege-table .fkx-col-aktionen {
    width: 20%;
    text-align: center;
}

.tx-keyfaktura #fkx-vertraege-table tbody .fkx-col-aktionen {
    text-align: center;
}

.tx-keyfaktura .fkx-kunden-table tbody td {
    padding: 1rem 0.9rem;
    border-bottom: 1px solid color-mix(in srgb, var(--fkx-border) 60%, transparent 40%);
    vertical-align: top;
}

.tx-keyfaktura .fkx-kunden-table tbody tr:nth-child(odd) {
    background: rgb(245, 245, 245);
}

.tx-keyfaktura .fkx-kunden-table tbody tr:nth-child(even) {
    background: var(--fkx-surface);
}

.tx-keyfaktura .fkx-kunden-table tbody tr.fkx-kunden-row {
    cursor: pointer;
}

.tx-keyfaktura .fkx-kunden-table tbody tr.fkx-artikel-row {
    cursor: pointer;
}

.tx-keyfaktura .fkx-kunden-table tbody tr:last-child td {
    border-bottom: 0;
}

.tx-keyfaktura .fkx-kunden-table tbody tr:hover {
    background: color-mix(in srgb, var(--fkx-accent-soft) 38%, transparent 62%);
}

.tx-keyfaktura .fkx-cell-link {
    color: var(--fkx-title);
    font-weight: 400;
    text-decoration: none;
}

.tx-keyfaktura .fkx-cell-link:hover,
.tx-keyfaktura .fkx-cell-link:focus-visible {
    color: var(--fkx-accent);
}

.tx-keyfaktura .fkx-link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--fkx-accent);
    color: #fff;
    font-family: var(--label-family), sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 6px 14px rgba(180, 80, 35, 0.14);
}

.tx-keyfaktura .fkx-link-pill:hover,
.tx-keyfaktura .fkx-link-pill:focus-visible {
    background: color-mix(in srgb, var(--fkx-accent) 88%, black 12%);
    color: #fff;
    transform: translateY(-1px);
}

.tx-keyfaktura .fkx-link-pill--danger {
    background: #616161;
    box-shadow: 0 6px 14px rgba(97, 97, 97, 0.18);
}

.tx-keyfaktura .fkx-link-pill--danger:hover,
.tx-keyfaktura .fkx-link-pill--danger:focus-visible {
    background: #4a4a4a;
}

.tx-keyfaktura .fkx-detail-grid {
    display: grid;
    gap: 1rem;
    margin-top: 3em;
    margin-bottom: 1.5rem;
    padding: 0 3em;
    align-items: start;
}

.tx-keyfaktura .fkx-detail-card {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    align-content: start;
}

.tx-keyfaktura .fkx-detail-card-title,
.tx-keyfaktura .fkx-form-panel-title,
.tx-keyfaktura .fkx-modal__title {
    margin: 0;
    color: var(--fkx-title);
    font-family: var(--title-family), sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: var(--title-weight);
}

.tx-keyfaktura .fkx-detail-stack {
    display: grid;
    gap: 0.25rem;
    color: var(--fkx-text);
}

.tx-keyfaktura .fkx-kundendetail-company {
    margin-bottom: 0.5rem;
}

.tx-keyfaktura .fkx-kundendetail-name {
    color: var(--fkx-title);
    font-size: 1.125rem;
    font-weight: 700;
}

.tx-keyfaktura .fkx-kundendetail-meta-table {
    width: 100%;
}

.tx-keyfaktura .fkx-kundendetail-meta-table td {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgb(224,224,224);
    vertical-align: top;
}

.tx-keyfaktura .fkx-kundendetail-meta-table tr:last-child td {
    border-bottom: 0;
}

.tx-keyfaktura .fkx-kundendetail-meta-table td:first-child {
    width: 9rem;
    color: var(--fkx-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.tx-keyfaktura .fkx-detail-card--meta .fkx-kundendetail-meta-table td {
    padding: 0.25rem 0;
    border-bottom: 0;
    color: var(--fkx-text);
    font-size: 1rem;
    font-weight: 400;
}

.tx-keyfaktura .fkx-detail-card--meta .fkx-kundendetail-meta-table td:first-child {
    width: 140px;
    color: var(--fkx-text);
    font-size: 1rem;
    font-weight: 700;
}

.tx-keyfaktura .fkx-detail-card--meta .fkx-kundendetail-meta-table td:first-child::after {
    content: ":";
}

.tx-keyfaktura .fkx-hidden-form {
    display: none;
}

.tx-keyfaktura .fkx-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 1rem;
    background: rgba(34, 11, 1, 0.45);
    align-items: center;
    justify-content: center;
}

.tx-keyfaktura .fkx-modal__panel {
    width: min(100%, 42rem);
    padding: 1.5rem;
}

.tx-keyfaktura .fkx-aa-modal__panel {
    width: min(100%, 600px);
    padding: 3rem;
    text-align: center;
}

.tx-keyfaktura .fkx-aa-modal__panel form {
    text-align: left;
}

.tx-keyfaktura .fkx-modal__panel--md {
    width: min(100%, 48rem);
}

.tx-keyfaktura .fkx-aa-modal__title {
    margin: 0 0 1em;
    color: rgb(97, 97, 97);
    font-family: var(--headline-family), serif;
    font-size: 2rem;
    font-weight: var(--headline-weight);
    line-height: var(--headline-line-height);
    text-align: center;
}

.tx-keyfaktura .fkx-position-modal__panel {
    width: min(100%, 760px);
}

.tx-keyfaktura .fkx-position-modal__panel .fkx-field-label {
    text-align: left;
}

.tx-keyfaktura .fkx-position-article-modal__panel {
    width: min(100%, 760px);
}

.tx-keyfaktura .fkx-position-description {
    min-height: 5.8rem;
}

.tx-keyfaktura .fkx-position-article-step,
.tx-keyfaktura .fkx-position-article-preview {
    text-align: left;
}

.tx-keyfaktura .fkx-position-article-preview {
    padding: 1.2rem;
    border: 1px solid var(--fkx-border);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--fkx-surface-soft) 72%, white 28%);
}

.tx-keyfaktura .fkx-position-article-preview-table {
    width: 100%;
    border-collapse: collapse;
}

.tx-keyfaktura .fkx-position-article-preview-table th,
.tx-keyfaktura .fkx-position-article-preview-table td {
    padding: 0.55rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--fkx-border) 70%, transparent 30%);
    text-align: left;
    vertical-align: top;
}

.tx-keyfaktura .fkx-position-article-preview-table tr:last-child th,
.tx-keyfaktura .fkx-position-article-preview-table tr:last-child td {
    border-bottom: 0;
}

.tx-keyfaktura .fkx-position-article-preview-table th {
    width: 11rem;
    padding-right: 1rem;
    color: var(--fkx-title);
    font-weight: 700;
}

.tx-keyfaktura .fkx-position-article-preview-table td {
    color: var(--fkx-text);
    white-space: pre-line;
}

.tx-keyfaktura .fkx-position-inline-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    text-align: left;
}

.tx-keyfaktura .fkx-position-actions {
    margin-top: 2.25rem;
    margin-bottom: 0;
}

.tx-keyfaktura .fkx-button[disabled],
.tx-keyfaktura button[disabled].fkx-button {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tx-keyfaktura .fkx-dokument-modal__panel {
    width: min(100%, 760px);
}

.tx-keyfaktura .fkx-dokument-modal__panel .fkx-field-label {
    text-align: left;
}

.tx-keyfaktura .fkx-dokument-form-field {
    margin-bottom: 1rem;
    text-align: left;
}

.tx-keyfaktura .fkx-dokument-actions {
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.tx-keyfaktura .fkx-dropzone {
    position: relative;
    min-height: 150px;
    padding: 1.5rem;
    border: 2px dashed color-mix(in srgb, var(--fkx-accent) 35%, var(--fkx-border) 65%);
    border-radius: 10px;
    background: color-mix(in srgb, var(--fkx-accent) 6%, var(--fkx-surface) 94%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tx-keyfaktura .fkx-dropzone.is-dragover {
    border-color: var(--fkx-accent);
    background: color-mix(in srgb, var(--fkx-accent) 12%, var(--fkx-surface) 88%);
}

.tx-keyfaktura .fkx-dropzone-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.tx-keyfaktura .fkx-dropzone-text {
    color: var(--fkx-text-muted);
    line-height: 1.45;
}

.tx-keyfaktura .fkx-dropzone-file {
    margin-top: 0.75rem;
    color: var(--fkx-text);
    font-weight: 600;
}

.tx-keyfaktura #js-position-bezeichnung {
    display: block;
    width: 100%;
    max-width: 100%;
}

.tx-keyfaktura button.fkx-button.fkx-aa-modal__cancel {
    background: rgb(97, 97, 97);
    color: #fff;
    border-color: rgb(97, 97, 97);
    box-shadow: none;
}

.tx-keyfaktura button.fkx-button.fkx-aa-modal__cancel:hover,
.tx-keyfaktura button.fkx-button.fkx-aa-modal__cancel:focus-visible {
    background: rgb(77, 77, 77);
    color: #fff;
    border-color: rgb(77, 77, 77);
    box-shadow: none;
}

.tx-keyfaktura #js-aa-name:focus {
    outline: none;
    border-color: var(--fkx-border);
}

.tx-keyfaktura .js-position-accordion .fkx-position-card__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 12px 16px;
    border-bottom: 1px solid #c7c7c7;
    background: #d8d8d8;
}

.tx-keyfaktura .js-position-accordion .fkx-position-card__title {
    color: #333;
}

.tx-keyfaktura .js-position-accordion .fkx-position-card__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex: 0 0 auto;
    width: auto;
}

.tx-keyfaktura .js-position-accordion .position-item-actions .wf-my-switch {
    position: static;
    right: auto;
    top: auto;
    display: flex;
    align-items: center;
    align-self: center;
    margin: 0 18px;
}

.tx-keyfaktura .js-position-accordion .position-item-actions .wf-my-switch-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    width: 40px;
    height: 21px;
    margin: 0;
    cursor: pointer;
}

.tx-keyfaktura .js-position-accordion .position-item-actions .wf-my-switch-btn input.js-position-hidden-toggle {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    appearance: none;
}

.tx-keyfaktura .js-position-accordion .position-item-actions .wf-my-slider {
    position: absolute;
    inset: 0;
    display: block;
    width: 40px;
    height: 21px;
    background-color: #000;
    border-radius: 24px;
    transition: background-color 0.4s;
}

.tx-keyfaktura .js-position-accordion .position-item-actions .wf-my-slider::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    top: 3px;
    right: 3px;
    background-color: #fff;
    border-radius: 50%;
    transform: translateX(0);
    transition: transform 0.4s;
    will-change: transform;
}

.tx-keyfaktura .js-position-accordion .position-item-actions input.js-position-hidden-toggle:checked + .wf-my-slider {
    background-color: #a6a6a6;
}

.tx-keyfaktura .js-position-accordion .position-item-actions input.js-position-hidden-toggle:checked + .wf-my-slider::before {
    transform: translateX(-18px);
}

.tx-keyfaktura .js-position-accordion .position-manage-controls .fkx-icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #333;
}

.tx-keyfaktura .js-position-accordion .position-manage-controls {
    display: flex;
    align-items: center;
}

.tx-keyfaktura .js-position-accordion .position-manage-controls .fkx-inline-form {
    display: flex;
    align-items: center;
}

.tx-keyfaktura .js-position-accordion .position-manage-controls .fkx-icon-button:hover,
.tx-keyfaktura .js-position-accordion .position-manage-controls .fkx-icon-button:focus-visible,
.tx-keyfaktura .js-position-accordion .position-sort-btn:hover,
.tx-keyfaktura .js-position-accordion .position-sort-btn:focus-visible {
    background: transparent;
    color: var(--wf-color4, var(--fkx-accent));
}

.tx-keyfaktura .js-position-accordion .position-manage-controls .fkx-icon-button svg {
    width: 28px;
    height: 28px;
}

.tx-keyfaktura .js-position-accordion .fkx-position-visible-control {
    display: contents;
}

.tx-keyfaktura .js-position-accordion .fkx-position-visible-control__label {
    display: none;
}

.tx-keyfaktura .js-position-accordion .position-sort-btn {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    line-height: 0.9;
    font-size: 28px;
    font-weight: 400;
    color: #333;
}

.tx-keyfaktura .js-position-accordion .fkx-position-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0.45rem 0.35rem;
    table-layout: fixed;
}

.tx-keyfaktura .js-position-accordion .fkx-position-table thead th {
    padding: 12px 10px;
    background: #f3f3f3;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
}

.tx-keyfaktura .js-position-accordion .fkx-position-table tbody td {
    padding: 16px 10px;
    vertical-align: top;
    text-align: left;
}

.tx-keyfaktura .js-vertragsposition-accordion .fkx-position-table tbody td {
    padding: 4px 10px;
    vertical-align: top;
    text-align: left;
}

.tx-keyfaktura .accordion__item.js-accordion-item.js-vertragsposition-row {
    margin-bottom: 1.3em;
}

.tx-keyfaktura .js-position-accordion .fkx-position-table th.position-col-price,
.tx-keyfaktura .js-position-accordion .fkx-position-table td.position-col-price {
    text-align: right;
}

.tx-keyfaktura .js-position-accordion .fkx-position-table tfoot td {
    padding: 14px 12px;
    border-top: 2px solid #d6d6d6;
    background: #fafafa;
}

.tx-keyfaktura .js-position-accordion .fkx-position-table__sum-label {
    color: #333;
    font-weight: 700;
    text-align: right;
}

.tx-keyfaktura .js-position-accordion .fkx-position-table__sum-value {
    color: #333;
    font-weight: 700;
}

.tx-keyfaktura .js-position-accordion .js-position-sum-item {
    border: 0;
    border-radius: 0;
    overflow: visible;
    margin: 12px 0;
    background: transparent;
}

.tx-keyfaktura .js-position-accordion .fkx-position-total-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 14px 12px;
    border-top: 2px solid #d6d6d6;
    background: #fafafa;
}

.tx-keyfaktura .js-position-accordion .fkx-position-total-row .fkx-position-table__sum-label {
    text-align: left;
}

.tx-keyfaktura .fkx-dokument-card {
    margin: 1rem 0;
    border: 1px solid var(--fkx-border);
    border-radius: 10px;
    background: var(--fkx-surface);
    overflow: hidden;
}

.tx-keyfaktura .fkx-dokument-card__header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--fkx-border) 70%, transparent 30%);
    background: #fafafa;
}

.tx-keyfaktura .fkx-dokument-card__body {
    padding: 1rem;
}

.tx-keyfaktura .fkx-dokument-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0.4rem 0.35rem;
    table-layout: fixed;
}

.tx-keyfaktura .fkx-dokument-table thead th {
    padding: 12px 10px;
    background: #f3f3f3;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
}

.tx-keyfaktura .fkx-dokument-table tbody td {
    padding: 12px 10px;
    vertical-align: top;
    text-align: left;
}

.tx-keyfaktura .fkx-dokument-table .fkx-table-action-col {
    text-align: center;
}

.tx-keyfaktura .fkx-icon-link,
.tx-keyfaktura .fkx-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #333;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.tx-keyfaktura .fkx-icon-link:hover,
.tx-keyfaktura .fkx-icon-link:focus-visible,
.tx-keyfaktura .fkx-icon-button:hover,
.tx-keyfaktura .fkx-icon-button:focus-visible {
    color: var(--wf-color4, var(--fkx-accent));
}

.tx-keyfaktura .fkx-field-label,
.tx-keyfaktura .fkx-form-field label {
    display: block;
    margin-bottom: 0.45rem;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

.tx-keyfaktura .fkx-field-control,
.tx-keyfaktura .form-control,
.tx-keyfaktura input[type="text"],
.tx-keyfaktura input[type="email"],
.tx-keyfaktura input[type="url"],
.tx-keyfaktura input[type="date"],
.tx-keyfaktura select,
.tx-keyfaktura textarea {
    width: 100%;
    min-height: 2rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--fkx-border);
    border-radius: 7px;
    background: var(--fkx-surface);
    color: var(--fkx-text);
    font: inherit;
    box-shadow: none;
}

.tx-keyfaktura input.fkx-field-control,
.tx-keyfaktura select.fkx-field-control,
.tx-keyfaktura .fkx-field-select,
.tx-keyfaktura .form-control,
.tx-keyfaktura input[type="text"],
.tx-keyfaktura input[type="email"],
.tx-keyfaktura input[type="url"],
.tx-keyfaktura input[type="date"],
.tx-keyfaktura select {
    height: 40px;
    min-height: 40px;
    line-height: 1.2;
}

.tx-keyfaktura textarea {
    min-height: 7rem;
    resize: vertical;
}

.tx-keyfaktura .fkx-field-control:focus,
.tx-keyfaktura .form-control:focus,
.tx-keyfaktura input:focus,
.tx-keyfaktura select:focus,
.tx-keyfaktura textarea:focus {
    outline: none;
    border-color: var(--fkx-accent);
    box-shadow: none;
}

.tx-keyfaktura .fkx-field-control--mb-md {
    margin-bottom: 1rem;
}

.tx-keyfaktura .fkx-field-control--mb-lg {
    margin-bottom: 1.35rem;
}

.tx-keyfaktura .fkx-form-panel {
    padding: 1.5rem;
}

.tx-keyfaktura .fkx-form-row {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.tx-keyfaktura .fkx-kunden-form .fkx-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tx-keyfaktura .fkx-form-row:first-of-type {
    margin-top: 1.25rem;
}

.tx-keyfaktura .fkx-form-row-single {
    grid-template-columns: 1fr;
}

.tx-keyfaktura .fkx-form-field {
    min-width: 0;
}

.tx-keyfaktura .fkx-kunden-form .fkx-form-field > .fkx-field-control,
.tx-keyfaktura .fkx-kunden-form .fkx-form-field > .form-control,
.tx-keyfaktura .fkx-kunden-form .fkx-form-field > .fkx-form-value {
    width: calc(100% - 2.6rem);
    max-width: 100%;
    min-width: 0;
    margin-right: auto;
    margin-bottom: 0.45rem;
}

.tx-keyfaktura .fkx-kunden-form select.fkx-field-control,
.tx-keyfaktura .fkx-kunden-form textarea.fkx-field-control {
    display: block;
}

.tx-keyfaktura .fkx-kunden-form .fkx-form-field {
    width: 100%;
}

.tx-keyfaktura .fkx-kunden-form-page .fkx-button {
    height: 2.7rem;
    min-height: 2.7rem;
    padding: 0.65rem 1.05rem;
}

.tx-keyfaktura .fkx-kunden-form-page .fkx-card {
    box-shadow: none;
}

.tx-keyfaktura .fkx-form-value {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--fkx-border);
    border-radius: 7px;
    background: var(--fkx-surface);
    color: var(--fkx-title);
}

.tx-keyfaktura .fkx-form-check-row {
    display: flex;
    align-items: center;
    min-height: 3rem;
}

.tx-keyfaktura .fkx-form-check {
    display: inline-flex;
    gap: 0.85rem;
    align-items: center;
    min-height: 40px;
    line-height: 1.2;
    white-space: nowrap;
    margin-bottom: 0;
}

.tx-keyfaktura .fkx-form-field label.fkx-form-check {
    display: inline-flex;
    margin-bottom: 0;
}

.tx-keyfaktura .fkx-form-check input[type="checkbox"] {
    display: block;
    margin: 0;
    flex: 0 0 auto;
    align-self: center;
}

.tx-keyfaktura .fkx-form-accordion {
    margin-top: 1rem;
    border: 1px solid var(--fkx-border);
    border-radius: 1.25rem;
    background: var(--fkx-surface);
    box-shadow: var(--fkx-shadow);
}

.tx-keyfaktura .fkx-form-accordion summary {
    padding: 1rem 1.25rem;
    color: var(--fkx-title);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.tx-keyfaktura .fkx-form-accordion summary::-webkit-details-marker {
    display: none;
}

.tx-keyfaktura .fkx-form-accordion-body {
    padding: 0 1.25rem 1.25rem;
}

.tx-keyfaktura .fkx-stunden-month-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--fkx-border);
}

.tx-keyfaktura .fkx-stunden-table-wrap {
    padding: 0;
}

.tx-keyfaktura .fkx-stunden-arrow {
    min-width: 7rem;
    border-radius: 10px;
    text-align: center;
    white-space: nowrap;
}

.tx-keyfaktura .fkx-stunden-month-title {
    min-width: 220px;
    color: var(--fkx-title);
    font-family: var(--headline-family), serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    text-align: center;
}

.tx-keyfaktura .fkx-stunden-matrix-wrap {
    overflow-x: auto;
    padding: 0 1rem 1rem;
}

.tx-keyfaktura .fkx-stunden-matrix {
    width: 100%;
    min-width: 1100px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.tx-keyfaktura .fkx-stunden-matrix thead th {
    background: var(--fkx-accent);
    color: #fff;
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.8rem 0.5rem;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.tx-keyfaktura .fkx-stunden-matrix thead th:last-child {
    border-right: 0;
}

.tx-keyfaktura .fkx-stunden-day-head {
    width: 210px;
    text-align: center;
}

.tx-keyfaktura .fkx-stunden-hour-label {
    min-width: 56px;
}

.tx-keyfaktura .fkx-stunden-matrix tbody th,
.tx-keyfaktura .fkx-stunden-matrix tbody td {
    color: #1b2a3a;
    border: 0;
    border-top: 1px solid #e1eaf3;
    vertical-align: top;
}

.tx-keyfaktura .fkx-stunden-matrix tbody tr:nth-child(odd) th,
.tx-keyfaktura .fkx-stunden-matrix tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.tx-keyfaktura .fkx-stunden-matrix tbody tr:nth-child(even) th,
.tx-keyfaktura .fkx-stunden-matrix tbody tr:nth-child(even) td {
    background: #f3f4f4;
}

.tx-keyfaktura .fkx-stunden-daylabel {
    padding: 0.75rem;
    font-size: 0.88rem;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.tx-keyfaktura .fkx-stunden-daylabel__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
}

.tx-keyfaktura .fkx-stunden-daylabel__weekday {
    font-weight: 700;
}

.tx-keyfaktura .fkx-stunden-daylabel--weekend .fkx-stunden-daylabel__weekday {
    font-weight: 400;
}

.tx-keyfaktura .fkx-stunden-daylabel--today {
    color: #b32020;
}

.tx-keyfaktura .fkx-stunden-timeline-cell {
    padding: 0.3rem 0.4rem;
}

.tx-keyfaktura .fkx-stunden-timeline {
    position: relative;
    min-height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
}

.tx-keyfaktura .fkx-stunden-entry {
    position: absolute;
    height: 28px;
    border: 1px solid rgb(47, 47, 47);
    border-radius: 8px;
    background: rgb(47, 47, 47);
    opacity: 1;
}

.tx-keyfaktura .fkx-stunden-entry__label {
    display: block;
    overflow: hidden;
    padding: 0.3rem 0.45rem;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tx-keyfaktura .fkx-stunden-time-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.tx-keyfaktura .fkx-stunden-modal-panel {
    width: min(100%, 48rem);
}

.tx-keyfaktura .fkx-stunden-modal-form {
    margin-top: 1.25rem;
    text-align: left;
}

.tx-keyfaktura .fkx-stunden-modal-actions {
    margin-top: 1.5rem;
    justify-content: center;
}

.tx-keyfaktura .fkx-kunden-log-panel {
    width: min(100%, 78rem);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tx-keyfaktura .fkx-kunden-log-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tx-keyfaktura .fkx-kunden-log-header__main {
    min-width: 0;
}

.tx-keyfaktura .fkx-kunden-log-title {
    margin-bottom: 0.35rem;
}

.tx-keyfaktura .fkx-kunden-log-location {
    margin: 0;
}

.tx-keyfaktura .fkx-kunden-log-close-top {
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--fkx-accent);
    color: #fff;
    font-family: var(--label-family), sans-serif;
    font-size: var(--label-medium-size);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 10px 20px rgba(180, 80, 35, 0.18);
    -webkit-appearance: none;
    appearance: none;
}

.tx-keyfaktura .fkx-kunden-log-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    min-height: 0;
}

.tx-keyfaktura .fkx-kunden-log-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.tx-keyfaktura .fkx-kunden-log-column-title {
    margin-bottom: 1rem;
    color: var(--fkx-title);
    font-family: var(--headline-family), serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.tx-keyfaktura .fkx-kunden-log-accordion {
    margin-bottom: 1rem;
    border: 1px solid rgb(224, 224, 224);
    border-radius: 12px;
    background: #fff;
    overflow: visible;
}

.tx-keyfaktura .fkx-kunden-log-accordion__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    width: 100%;
    min-height: auto;
    height: auto;
    padding: 1rem 1.1rem;
    border: 0;
    background: transparent;
    color: var(--fkx-title);
    font: inherit;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    overflow: visible;
}

.tx-keyfaktura .fkx-kunden-log-accordion__header > span:first-child {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
}

.tx-keyfaktura .fkx-kunden-log-accordion__header .fkx-collapsible-indicator {
    display: block;
    margin-top: 0.15rem;
}

.tx-keyfaktura .fkx-kunden-log-accordion__body {
    padding: 0 1.1rem 1.1rem;
}

.tx-keyfaktura .fkx-kunden-log-divider {
    height: 1px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, rgba(65, 65, 65, 0) 0%, rgba(65, 65, 65, 0.28) 18%, rgba(65, 65, 65, 0.28) 82%, rgba(65, 65, 65, 0) 100%);
}

.tx-keyfaktura .fkx-kunden-log-list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.tx-keyfaktura .fkx-kunden-log-entry {
    padding: 0.9rem 1rem;
    border: 1px solid rgb(224, 224, 224);
    border-radius: 12px;
    background: #fff;
}

.tx-keyfaktura .fkx-kunden-log-entry__date {
    color: var(--fkx-title);
    font-size: 0.95rem;
    font-weight: 700;
}

.tx-keyfaktura .fkx-kunden-log-entry__contact {
    margin-top: 0.35rem;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

.tx-keyfaktura .fkx-kunden-log-entry__text {
    margin-top: 0.45rem;
    color: #333;
    line-height: 1.45;
    white-space: normal;
}

.tx-keyfaktura .fkx-kunden-log-empty {
    margin: 0;
    color: var(--fkx-text-muted);
}

.tx-keyfaktura .fkx-stats-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tx-keyfaktura .fkx-stats-month-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.tx-keyfaktura .fkx-stats-arrow {
    min-width: 7rem;
    border-radius: 10px;
    text-align: center;
    white-space: nowrap;
}

.tx-keyfaktura .fkx-stats-month-title {
    min-width: 220px;
    color: var(--fkx-title);
    font-family: var(--headline-family), serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    text-align: center;
}

.tx-keyfaktura .fkx-stats-user-card {
    margin-top: 0;
}

.tx-keyfaktura .fkx-stats-accordion .fkx-position-card__actions {
    gap: 0;
}

.tx-keyfaktura .fkx-stats-order-total {
    color: #333;
    font-weight: 700;
    text-align: right;
}

.tx-keyfaktura .fkx-stats-order-customer {
    font-weight: 400;
}

.tx-keyfaktura .fkx-stats-table {
    width: 100%;
}

.tx-keyfaktura .fkx-stats-table th.fkx-table-action-col,
.tx-keyfaktura .fkx-stats-table td.fkx-table-action-col {
    width: 3.25rem;
    text-align: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.tx-keyfaktura .fkx-stats-table td {
    color: #333;
}

.tx-keyfaktura .fkx-stats-overall-total {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 14px 12px;
    border-top: 2px solid #d6d6d6;
    background: #fafafa;
}

.tx-keyfaktura .fkx-stats-empty {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #f7f7f1;
    color: #415043;
}

@media (min-width: 720px) {
    .tx-keyfaktura .fkx-page-header {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .tx-keyfaktura .fkx-detail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tx-keyfaktura .fkx-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tx-keyfaktura .fkx-vertrag-filter-actions {
        margin-left: 0;
        justify-content: center;
    }

    .tx-keyfaktura .fkx-kunden-table-toolbar {
        align-items: stretch;
    }

    .tx-keyfaktura .fkx-kunden-table-toolbar-search,
    .tx-keyfaktura .fkx-kunden-search-label,
    .tx-keyfaktura .fkx-kunden-search-input {
        width: 100%;
    }

    .tx-keyfaktura .fkx-kunden-table-toolbar-search {
        margin-left: 0;
    }

    .tx-keyfaktura .fkx-kunden-pagination {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .tx-keyfaktura .fkx-kunden-table {
        min-width: 0;
    }

    .tx-keyfaktura .fkx-kunden-table thead {
        display: none;
    }

    .tx-keyfaktura .fkx-kunden-table,
    .tx-keyfaktura .fkx-kunden-table tbody,
    .tx-keyfaktura .fkx-kunden-table tr,
    .tx-keyfaktura .fkx-kunden-table td {
        display: block;
        width: 100%;
    }

    .tx-keyfaktura .fkx-kunden-table tr {
        padding: 1rem 0;
        border-bottom: 1px solid var(--fkx-border);
    }

    .tx-keyfaktura .fkx-kunden-table tbody td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 8rem) 1fr;
        gap: 0.75rem;
        padding: 0.35rem 0;
        border-bottom: 0;
    }

    .tx-keyfaktura .fkx-kunden-table tbody td::before {
        content: attr(data-label);
        color: var(--fkx-text-muted);
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .tx-keyfaktura .fkx-kundendetail-meta-table td:first-child {
        width: 7rem;
    }

    .tx-keyfaktura .fkx-customer-tabs__nav {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .tx-keyfaktura .fkx-aa-actions {
        grid-template-columns: 1fr;
    }

    .tx-keyfaktura .js-position-accordion .fkx-position-table__sum-label {
        text-align: left;
    }

    .tx-keyfaktura .fkx-stunden-month-nav {
        gap: 0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .tx-keyfaktura .fkx-stunden-matrix {
        min-width: 980px;
    }

    .tx-keyfaktura .fkx-stunden-day-head {
        width: 170px;
    }

    .tx-keyfaktura .fkx-stunden-arrow {
        min-width: 5.5rem;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .tx-keyfaktura .fkx-stunden-month-title {
        min-width: 150px;
        font-size: 1.05rem;
    }

    .tx-keyfaktura .fkx-stats-arrow {
        min-width: 5.5rem;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .tx-keyfaktura .fkx-stats-month-title {
        min-width: 150px;
        font-size: 1.05rem;
    }
}

@media (max-width: 560px) {
    .tx-keyfaktura .js-position-accordion .fkx-position-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tx-keyfaktura .js-position-accordion .fkx-position-card__actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
}
