:root {
    color-scheme: dark;

    --bg: #101112;
    --surface: #181a1b;
    --surface-2: #202224;
    --border: #303437;

    --text: #f1f3f3;
    --muted: #949b9e;

    --accent: #00d2b2;
    --accent-hover: #00efca;

    --danger: #ff6b6b;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            #172421 0,
            var(--bg) 420px
        );

    color: var(--text);
}

a {
    color: var(--accent);
}

input,
select {
    font: inherit;
}
button {
    cursor: pointer;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.brand span {
    color: var(--accent);
}

.brand small {
    display: block;
    margin-top: 3px;

    color: var(--muted);

    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-body {
    display: grid;
    place-items: center;

    padding: 24px;
}

.login-card {
    width: min(100%, 420px);

    padding: 36px;

    background: rgba(24, 26, 27, .96);

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .35);
}

.login-card h1 {
    margin:
        34px 0 6px;

    font-size: 1.7rem;
}

.login-card form {
    display: grid;
    gap: 18px;

    margin-top: 28px;
}

label {
    display: grid;
    gap: 8px;

    color: #c7cbcd;
    font-size: .9rem;
}

input,
select {
    width: 100%;

    padding: 11px 12px;

    color: var(--text);
    background: #111314;

    border: 1px solid var(--border);
    border-radius: 7px;

    outline: none;
}

input:focus,
select:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 2px
        rgba(var(--accent-rgb, 0, 210, 178), .12);
}
button {

    

    color: var(--button-text, #07110f);
    background: var(--accent);

    border: 0;


    

}
button:hover {
    background: var(--accent-hover);
}
.button-secondary {


    color: #d8dcdd;
    background: transparent;

    border: 1px solid var(--border);
}
.button-secondary:hover {
    color: white;
    background: var(--surface-2);
}

.alert {
    margin-top: 20px;
    padding: 12px 14px;

    color: #ffdada;
    background: rgba(255, 107, 107, .09);

    border: 1px solid rgba(255, 107, 107, .25);
    border-radius: 7px;
}

.muted {
    color: var(--muted);
}

.topbar {
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;

    background: rgba(16, 17, 18, .92);

    border-bottom: 1px solid var(--border);
}

.account {
    display: flex;
    align-items: center;
    gap: 18px;

    color: #b6bcbe;
    font-size: .88rem;
}

.page {
    width: min(1400px, calc(100% - 48px));

    margin: 44px auto;
}

.heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 28px;
}

.heading h1,
.section-title h2 {
    margin: 3px 0;
}

.eyebrow {
    margin: 0;

    color: var(--accent);

    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.customer-switch {
    width: min(360px, 100%);
}

.card {
    padding: 26px;

    background: rgba(24, 26, 27, .94);

    border: 1px solid var(--border);
    border-radius: 12px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;
}

.role {
    padding: 4px 9px;

    color: var(--accent);
    background: rgba(var(--accent-rgb, 0, 210, 178), .08);

    border: 1px solid rgba(var(--accent-rgb, 0, 210, 178), .22);
    border-radius: 999px;

    font-size: .72rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;

    text-align: left;

    border-bottom: 1px solid #292c2e;

    white-space: nowrap;
}

th {
    color: var(--muted);

    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

td {
    font-size: .88rem;
}

.invoice-number {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;
}

.money {
    text-align: right;
}

.action {
    text-align: right;
}

.pdf-link {
    display: inline-block;

    padding: 6px 11px;

    text-decoration: none;

    border: 1px solid rgba(var(--accent-rgb, 0, 210, 178), .35);
    border-radius: 6px;
}

.pdf-link:hover {
    background: rgba(var(--accent-rgb, 0, 210, 178), .08);
}

.status {
    display: inline-block;

    padding: 3px 8px;

    background: #25282a;

    border-radius: 999px;

    color: #bbc0c2;

    font-size: .72rem;
}

.status-paid {
    color: var(--accent);
}

@media (max-width: 720px) {

    .topbar {
        padding: 0 18px;
    }

    .account > span {
        display: none;
    }

    .page {
        width:
            calc(100% - 24px);

        margin: 24px auto;
    }

    .heading {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-switch {
        width: 100%;
    }

    .card {
        padding: 18px;
    }
}

.pdf-unavailable {
    display: inline-block;

    padding: 6px 10px;

    color: var(--muted);

    border: 1px solid var(--border);
    border-radius: 6px;

    font-size: .78rem;
}

/* ADMIN_PRICE_EDITOR_BEGIN */

.admin-price-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.admin-price-input {
    width: 90px;
    padding: 7px 9px;
    text-align: right;
}

.admin-price-save {
    padding: 7px 10px;
    font-size: .78rem;
}

.admin-success {
    margin-bottom: 22px;
    padding: 12px 14px;

    color: var(--accent);
    background: rgba(var(--accent-rgb, 0, 210, 178), .08);

    border: 1px solid rgba(var(--accent-rgb, 0, 210, 178), .25);
    border-radius: 7px;
}

/* ADMIN_PRICE_EDITOR_END */

/* ADMIN_PLAN_CREATE_BEGIN */

.admin-create-row td {
    padding-top: 8px;
    padding-bottom: 20px;
}

.admin-create-details {
    padding: 12px 14px;

    background: rgba(var(--accent-rgb, 0, 210, 178), .03);

    border: 1px dashed
        rgba(var(--accent-rgb, 0, 210, 178), .22);

    border-radius: 8px;
}

.admin-create-details summary {
    color: var(--accent);

    cursor: pointer;

    font-size: .84rem;
    font-weight: 700;
}

.admin-create-form {
    display: grid;

    grid-template-columns:
        minmax(180px, 2fr)
        minmax(180px, 1.6fr)
        minmax(140px, 1fr)
        minmax(130px, 1fr)
        auto;

    gap: 14px;

    align-items: end;

    margin-top: 18px;
}

.admin-money-field {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-money-field input {
    min-width: 90px;
}

.admin-create-action {
    display: grid;
    gap: 6px;
}

.admin-create-action small {
    white-space: nowrap;
}

@media (max-width: 1050px) {

    .admin-create-form {
        grid-template-columns:
            1fr 1fr;
    }
}

/* ADMIN_PLAN_CREATE_END */

/* ADMIN_LEGEND_CSS_BEGIN */

.field-help {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: .72rem;
    line-height: 1.35;
}

.admin-legend {
    margin-top: 28px;
}

.legend-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 16px;
}

.legend-grid > div {
    padding: 16px;

    background: var(--surface-2);

    border: 1px solid var(--border);
    border-radius: 8px;
}

.legend-grid strong {
    display: block;

    margin-bottom: 8px;

    color: var(--accent);
}

.legend-grid code {
    display: inline-block;

    margin-bottom: 8px;

    color: #e7eeee;
}

.legend-grid p {
    margin: 0;

    color: var(--muted);

    font-size: .82rem;
    line-height: 1.45;
}

/* ADMIN_LEGEND_CSS_END */

/* ADMIN_STATUS_TOGGLE_BEGIN */

.admin-status-form {
    margin: 0;
}

.status-toggle {
    padding: 5px 10px;

    border-radius: 999px;

    font-size: .72rem;
    font-weight: 700;
}

.status-toggle-active {
    color: var(--accent);
    background: rgba(var(--accent-rgb, 0, 210, 178), .08);

    border: 1px solid
        rgba(var(--accent-rgb, 0, 210, 178), .25);
}

.status-toggle-active:hover {
    color: var(--button-text, #07110f);
    background: var(--accent);
}

.status-toggle-inactive {
    color: var(--muted);
    background: #25282a;

    border: 1px solid var(--border);
}

.status-toggle-inactive:hover {
    color: white;
    background: #34383a;
}

/* ADMIN_STATUS_TOGGLE_END */

/* PLAN_STATUS_MODAL_BEGIN */

.status-toggle-archived {
    color: #ff8d8d;
    background: rgba(255, 107, 107, .08);

    border: 1px solid
        rgba(255, 107, 107, .28);
}

.status-toggle-archived:disabled {
    cursor: default;
    opacity: .85;
}

.status-choice-list {
    display: grid;
    gap: 10px;

    margin: 22px 0;
}

.status-choice-list label {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px;

    background: var(--surface-2);

    border: 1px solid var(--border);
    border-radius: 8px;

    cursor: pointer;
}

.status-choice-list input {
    width: auto;

    margin-top: 3px;
}

.status-choice-list span {
    display: grid;
    gap: 4px;
}

.status-choice-list small {
    color: var(--muted);
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 24px;
}

.archive-blocked {
    margin-top: 14px;
    padding: 12px 14px;

    color: #ffb3b3;
    background:
        rgba(255, 107, 107, .08);

    border: 1px solid
        rgba(255, 107, 107, .28);

    border-radius: 7px;
}

.confirm-box {
    margin-top: 20px;
    padding: 16px;

    background: var(--surface-2);

    border: 1px solid var(--border);
    border-radius: 8px;
}

.archive-warning {
    margin-top: 20px;
    padding: 20px;

    color: #ffdada;
    background:
        rgba(255, 55, 55, .13);

    border: 2px solid #ff4d4d;
    border-radius: 9px;

    box-shadow:
        0 0 28px
        rgba(255, 50, 50, .12);
}

.archive-warning strong {
    color: #ff6363;

    font-size: 1.05rem;
}
.danger-button {
    color: white;
    background: #d93636;
}
.danger-button:hover {
    background: #f04444;
}

/* PLAN_STATUS_MODAL_END */

/* ADMIN_CREATE_HELP_CLEAN */

.admin-create-form label {
    min-width: 0;
}

.admin-create-form label small {
    display: block;

    margin-top: 5px;

    max-width: 100%;

    white-space: normal;
    overflow-wrap: anywhere;

    font-size: .72rem;
    line-height: 1.25;
}

/* ADMIN_CREATE_HELP_CLEAN_END */

/* STATUS_MODAL_HIDDEN_FIX */
.status-choice-list label[hidden] {
    display: none !important;
}
/* STATUS_MODAL_HIDDEN_FIX_END */


/* PRODUCT_GROUP_UI_BEGIN */

.product-group-row td {
    padding-top: 22px;
    padding-bottom: 12px;

    background:
        rgba(var(--accent-rgb, 0, 210, 178), .025);

    border-bottom:
        1px solid rgba(var(--accent-rgb, 0, 210, 178), .24);
}

.product-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.product-group-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.product-group-title strong {
    font-size: 1.05rem;
}

.product-group-title code {
    color: var(--muted);
    font-size: .82rem;
}

/* PRODUCT_GROUP_UI_END */


/* PRODUCT_ACTION_MENU_BEGIN */

.product-group-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-action-menu {
    position: relative;
}
.product-action-menu summary {
    display: grid;
    place-items: center;


    

    cursor: pointer;

    color: var(--muted);

    border: 1px solid var(--border);


    

    user-select: none;
}
.product-action-menu summary::-webkit-details-marker {
    display: none;
}
.product-action-menu summary::marker {
    content: "";
}
.product-action-menu summary:hover {
    color: var(--text);

    border-color:
        rgba(var(--accent-rgb, 0, 210, 178), .55);

    background:
        rgba(var(--accent-rgb, 0, 210, 178), .06);
}
.product-action-popup {
    position: absolute;
    z-index: 30;

    top: calc(100% + 8px);
    right: 0;


    background: var(--surface);

    border: 1px solid var(--border);


    box-shadow:
        0 16px 45px
        rgba(0, 0, 0, .45);
}
.product-action-popup button {


    text-align: left;

    background: transparent;
    border: 0;

}
.product-action-popup button:disabled {
    opacity: .55;
    cursor: default;
}

.product-action-separator {
    height: 1px;

    margin: 6px 4px;

    background: var(--border);
}

.product-action-future {
    display: block;

    padding: 7px 10px;

    color: var(--muted);
    font-size: .78rem;
}

/* PRODUCT_ACTION_MENU_END */


/* TARIFF_ROW_DOTS_BEGIN */

.tariff-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tariff-action-menu {
    flex: 0 0 auto;
}
.product-action-popup button:disabled {
    opacity: 1 !important;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
    cursor: default;
}
.product-action-popup button {
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}
.product-action-popup button:hover:not(:disabled) {
    background: rgba(var(--accent-rgb, 0, 210, 178), .08);
}
/* ACTION_MENU_TEXT_FIX_END */


/* TOP_ACCOUNT_MENU_BEGIN */

.top-account-menu {
    position: relative;
}

.top-account-menu > summary {
    list-style: none;
}

.top-account-menu > summary::-webkit-details-marker {
    display: none;
}

.top-account-menu > summary::marker {
    content: "";
}

.top-account-trigger {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 8px 12px;

    cursor: pointer;
    user-select: none;

    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 8px;

    background: transparent;
}

.top-account-trigger:hover {
    border-color: rgba(var(--accent-rgb, 0, 210, 178), .55);

    background:
        rgba(var(--accent-rgb, 0, 210, 178), .06);
}

.top-account-chevron {
    color: var(--muted);
    font-size: .8rem;

    transition:
        transform .15s ease;
}

.top-account-menu[open]
.top-account-chevron {
    transform: rotate(180deg);
}

.top-account-dropdown {
    position: absolute;
    z-index: 100;

    top: calc(100% + 8px);
    right: 0;

    width: 245px;

    padding: 8px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, .48);
}

.top-account-section {
    padding: 8px 10px 5px;

    color: var(--muted);

    font-size: .72rem;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.top-account-item {
    display: block;

    padding: 9px 10px;

    color: var(--text);
    text-decoration: none;

    border-radius: 6px;
}

a.top-account-item:hover {
    color: var(--text);

    background:
        rgba(var(--accent-rgb, 0, 210, 178), .08);
}

.top-account-subitem {
    padding-left: 26px;

    font-size: .9rem;
}

.top-account-subitem::before {
    content: "└─";

    margin-right: 7px;

    color: var(--muted);
}

.top-account-item.is-disabled {
    color: var(--muted);
    opacity: .55;

    cursor: default;
}

.top-account-separator {
    height: 1px;

    margin: 7px 5px;

    background: var(--border);
}

.top-account-logout {
    margin: 0;
}
.top-account-logout button {


    cursor: pointer;

    color: var(--text);
    -webkit-text-fill-color: var(--text);

    text-align: left;

    border: 0;


    background: transparent;
}
.top-account-logout button:hover {
    background:
        rgba(var(--accent-rgb, 0, 210, 178), .08);
}

/* TOP_ACCOUNT_MENU_END */


/* TABLE_TOOLS_BEGIN */

.table-tools {
    display: flex;
    justify-content: flex-end;

    margin:
        0
        0
        14px;
}
.table-search {


    color: var(--text);

    background: transparent;

    border:
        1px solid
        var(--border);


}
.table-search:focus {
    outline: none;

    border-color:
        rgba(var(--accent-rgb, 0, 210, 178), .65);
}

.sortable-header {
    cursor: pointer;
    user-select: none;
}

.sortable-header::after {
    content: " ↕";

    color: var(--muted);

    font-size: .72rem;
}

.sortable-header[data-direction="asc"]::after {
    content: " ↑";
}

.sortable-header[data-direction="desc"]::after {
    content: " ↓";
}
.user-action-menu .product-action-popup button,
.user-action-menu .product-action-popup a {
    box-sizing: border-box;


    

    text-align: left;
}

.user-action-menu .product-action-separator {
    margin: 4px 3px;
}

/* USER_ACTION_MENU_COMPACT_END */


/* USER_STATUS_DOTS_BEGIN */

.user-status-dot {
    display: inline-block;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    vertical-align: middle;
}

.user-status-active {
    background: #00d2b2;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 0, 210, 178), .10);
}

.user-status-invited {
    background: #d9a441;
}

.user-status-disabled {
    background: #666;
}

.user-status-unassigned {
    background: transparent;
    border: 1px solid #777;
}

/* USER_STATUS_DOTS_END */


/* CUSTOMER_USERS_NO_SCROLL_BEGIN */

.customer-users-wrap {
    overflow: visible !important;

    width: 100%;

    height: auto !important;
    max-height: none !important;

    /*
     * Platz für das geöffnete 3-Dot-Menü.
     * Damit bleibt auch die letzte Tabellenzeile entspannt.
     */
    padding-bottom: 190px;
}

.customer-users-table {
    width: 100% !important;
    min-width: 0 !important;
}

.customer-users-table th:last-child,
.customer-users-table td:last-child {
    width: 42px;
    white-space: nowrap;
}

.customer-users-table th:nth-last-child(2),
.customer-users-table td:nth-last-child(2) {
    width: 90px;
}

.customer-users-table td {
    overflow-wrap: anywhere;
}

/* CUSTOMER_USERS_NO_SCROLL_END */


/* SEMANTIC_STATUS_COLORS_BEGIN */

:root {
    --status-active: #00d2b2;
    --status-invited: #d9a441;
    --status-disabled: #70777d;
    --status-archived: #a86f78;
    --status-unassigned: #777d82;
}


/* BADGES */

.status-state-active {
    color: var(--status-active);

    background:
        rgba(var(--accent-rgb, 0, 210, 178), .10);

    border-color:
        rgba(var(--accent-rgb, 0, 210, 178), .28);
}

.status-state-invited {
    color: var(--status-invited);

    background:
        rgba(217, 164, 65, .10);

    border-color:
        rgba(217, 164, 65, .28);
}

.status-state-disabled {
    color: var(--status-disabled);

    background:
        rgba(112, 119, 125, .10);

    border-color:
        rgba(112, 119, 125, .24);
}


/* STATUSPUNKTE */

.user-status-active {
    background:
        var(--status-active);

    box-shadow:
        0 0 0 3px
        rgba(var(--accent-rgb, 0, 210, 178), .10);
}

.user-status-invited {
    background:
        var(--status-invited);
}

.user-status-disabled {
    background:
        var(--status-disabled);
}

.user-status-unassigned {
    background: transparent;

    border:
        1px solid
        var(--status-unassigned);
}

/* SEMANTIC_STATUS_COLORS_END */


/* ADMIN_USERS_NO_SCROLL_BEGIN */

.admin-users-wrap {
    overflow: visible !important;

    width: 100%;

    height: auto !important;
    max-height: none !important;

    /*
     * Luft für das geöffnete 3-Dot-Menü.
     * Keine Scrollbar-Orgie innerhalb der Card.
     */
    padding-bottom: 190px;
}

#admin-users-table {
    width: 100% !important;
    min-width: 0 !important;
}

#admin-users-table th:last-child,
#admin-users-table td:last-child {
    width: 46px;
    white-space: nowrap;
}

.entity-link {
    color: inherit;
    text-decoration: none;
}

.entity-link:hover {
    color: #00d2b2;
    text-decoration: underline;
}

/* ADMIN_USERS_NO_SCROLL_END */


/* USER_MEMBERSHIPS_NO_SCROLL_BEGIN */

.user-memberships-wrap {
    overflow: visible !important;

    width: 100%;

    height: auto !important;
    max-height: none !important;

    padding-bottom: 170px;
}

.user-memberships-table {
    width: 100% !important;
    min-width: 0 !important;
}

.user-memberships-table th:last-child,
.user-memberships-table td:last-child {
    width: 46px;
    white-space: nowrap;
}

.user-memberships-table td {
    overflow-wrap: anywhere;
}
.user-action-menu .product-action-popup {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    overflow: hidden;
}
.user-action-menu .product-action-popup > a,
.user-action-menu .product-action-popup > button {
    display: block !important;

    box-sizing: border-box !important;


    


    margin: 0 !important;

    white-space: normal !important;
    overflow-wrap: break-word;

    text-align: left !important;
}

.user-action-menu .product-action-separator {
    width: 100%;
    flex: 0 0 auto;
}

/* ACTION_MENU_COLUMN_FIX_END */


/* ADMIN_PRODUCTS_NO_SCROLL_BEGIN */

.admin-products-wrap {
    overflow: visible !important;

    width: 100%;

    height: auto !important;
    max-height: none !important;

    padding-bottom: 190px;
}

.admin-products-wrap table {
    width: 100% !important;
    min-width: 0 !important;
}

.admin-products-wrap th:last-child,
.admin-products-wrap td:last-child {
    white-space: nowrap;
}

/* ADMIN_PRODUCTS_NO_SCROLL_END */


/* USER_ARCHIVED_STATUS_BEGIN */

.status-state-archived {
    color: var(--status-archived);
    background: rgba(168, 111, 120, .10);
    border-color: rgba(168, 111, 120, .28);
}

.user-status-archived {
    background: var(--status-archived);
}

/* USER_ARCHIVED_STATUS_END */

/* USER_UNASSIGNED_X_BEGIN */

.user-status-unassigned {
    position: relative;

    width: 14px;
    height: 14px;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0;

    color: var(--status-unassigned);
}

.user-status-unassigned::before {
    content: "×";

    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* USER_UNASSIGNED_X_END */


/* USER_ARCHIVED_X_BEGIN */

.user-status-archived {
    position: relative;

    width: 14px !important;
    height: 14px !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    color: var(--status-archived);
}

.user-status-archived::before {
    content: "×";

    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* USER_ARCHIVED_X_END */


/* USER_STATUS_SYMBOL_FIX_BEGIN */

.user-status-unassigned {
    position: static !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;

    background: transparent !important;
    border: 1px solid var(--status-unassigned) !important;
}

.user-status-unassigned::before {
    content: none !important;
}

.user-status-disabled {
    position: relative;
    width: 14px !important;
    height: 14px !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    color: var(--status-disabled);
}

.user-status-disabled::before {
    content: "×";

    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* USER_STATUS_SYMBOL_FIX_END */


/* ADMIN_CUSTOMERS_NO_SCROLL_BEGIN */

.admin-customers-wrap {
    overflow: visible !important;

    width: 100%;

    height: auto !important;
    max-height: none !important;

    padding-bottom: 170px;
}

#admin-customers-table {
    width: 100% !important;
    min-width: 0 !important;
}

#admin-customers-table th:last-child,
#admin-customers-table td:last-child {
    width: 46px;
    white-space: nowrap;
}
.top-back-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;


    


    

    margin: 0 8px 0 0 !important;


    


    color: var(--muted) !important;

    border: 1px solid var(--border) !important;


    background: transparent !important;
    box-shadow: none !important;

    cursor: pointer;
}
.top-back-button:hover {
    color: var(--text) !important;

    border-color:
        rgba(var(--accent-rgb, 0, 210, 178), .45) !important;

    background:
        rgba(var(--accent-rgb, 0, 210, 178), .05) !important;
}
.top-back-button:focus-visible {
    outline:
        1px solid rgba(var(--accent-rgb, 0, 210, 178), .55);

    outline-offset: 2px;
}

/* TOP_BACK_BUTTON_END */


/* STICKY_TOPBAR_BEGIN */

.topbar {
    position: sticky !important;
    top: 0;
    z-index: 1000;

    background: var(--surface);

    box-shadow:
        0 1px 0 var(--border),
        0 8px 24px rgba(0, 0, 0, .18);
}

/* STICKY_TOPBAR_END */


/* USER_DETAIL_MERGED_CARD_BEGIN */

.user-detail-divider {
    height: 1px;

    margin:
        28px
        0
        24px;

    background: var(--border);
}

/* USER_DETAIL_MERGED_CARD_END */


/* TOP_ADMIN_HEADER_NAV_BEGIN */

.topbar-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 24px;

    margin-left: auto;
    min-width: 0;
}


.top-admin-nav {
    display: flex;
    align-items: center;

    gap: 26px;
}


.top-admin-group {
    display: grid;
    gap: 3px;
}


.top-admin-label {
    padding-left: 7px;

    color: var(--muted);

    font-size: .61rem;
    font-weight: 800;

    letter-spacing: .10em;
    line-height: 1;

    text-transform: uppercase;
}


.top-admin-links {
    display: flex;
    align-items: center;

    gap: 2px;
}


.top-admin-link {
    display: block;

    padding: 7px 8px;

    color: #d8dcdd;
    text-decoration: none;

    border-radius: 6px;

    font-size: .80rem;
    line-height: 1;

    white-space: nowrap;
}


a.top-admin-link:hover {
    color: var(--text);

    background:
        rgba(var(--accent-rgb, 0, 210, 178), .08);
}


.top-admin-link.is-current {
    color: var(--accent);

    background:
        rgba(var(--accent-rgb, 0, 210, 178), .08);
}


.top-admin-link.is-disabled {
    color: var(--muted);

    opacity: .42;

    cursor: default;
}


.top-account-dropdown {
    width: 220px;
}


@media (max-width: 1100px) {

    .topbar-tools {
        gap: 14px;
    }

    .top-admin-nav {
        gap: 10px;
    }

    .top-admin-label {
        display: none;
    }

    .top-admin-link {
        padding:
            6px
            6px;

        font-size: .75rem;
    }
}

/* TOP_ADMIN_HEADER_NAV_END */

/* CENTRAL_ENTITY_CREATE_BEGIN */

.admin-list-create {
    margin-bottom: 18px;
}


.admin-create-user-form {
    grid-template-columns:
        minmax(220px, 1.2fr)
        minmax(260px, 1.5fr)
        auto;
}


.admin-create-customer-form {
    grid-template-columns:
        repeat(
            4,
            minmax(150px, 1fr)
        );
}
.admin-create-customer-form button {
    justify-self: start;
}


@media (max-width: 1000px) {

    .admin-create-customer-form {
        grid-template-columns:
            repeat(
                2,
                minmax(180px, 1fr)
            );
    }
}


@media (max-width: 650px) {

    .admin-create-user-form,
    .admin-create-customer-form {
        grid-template-columns: 1fr;
    }
}

/* CENTRAL_ENTITY_CREATE_END */


/* CUSTOMER_NUMBER_CHECK_BEGIN */

.customer-number-status {
    display: block;

    margin-top: 6px;

    font-size: .78rem;
    line-height: 1.3;

    color: var(--muted);
}

.customer-number-status.is-available {
    color: #45d483;
}

.customer-number-status.is-taken,
.customer-number-status.is-invalid {
    color: #ff6868;
}

.customer-number-status.is-auto {
    color: var(--accent);
}

.customer-number-status.is-checking {
    color: var(--muted);
}

/* CUSTOMER_NUMBER_CHECK_END */


.customer-number-status:empty {
    display: none;
}


.customer-number-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.customer-number-label-row .customer-number-status {
    margin: 0;
    font-size: .72rem;
    line-height: 1;
    white-space: nowrap;
    text-align: right;
}


/* USER_LICENSES_BEGIN */

.user-license-count {
    width: 84px;
    text-align: center;
}

.license-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 26px;

    padding: 0 8px;

    border: 1px solid
        rgba(0, 220, 190, .25);

    border-radius: 999px;

    background:
        rgba(0, 220, 190, .07);

    color: var(--accent);

    font-size: .78rem;
    font-weight: 700;

    cursor: help;
}

.user-license-list {
    display: grid;
    gap: 8px;

    max-height: 340px;

    margin-top: 4px;

    overflow-y: auto;
}

.user-license-option {
    display: grid;
    gap: 8px;

    padding: 10px 0;

    border-bottom: 1px solid
        rgba(255,255,255,.07);
}

.user-license-option:last-child {
    border-bottom: 0;
}

.user-license-check {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    cursor: pointer;
}

.user-license-check input[type="checkbox"] {
    width: auto;
    min-width: 0;

    margin: 0;

    flex: 0 0 auto;
}

.user-license-check span {
    display: grid;
    gap: 2px;
}

.user-license-check small {
    color: var(--muted);
}

.user-license-option select {
    width: 100%;
}

.user-license-no-plan {
    padding-left: 25px;
    font-size: .75rem;
}


/* ==========================================================
   HEADLINE ADD BUTTON STANDARD
   ========================================================== */

.section-title-actions,
.product-group-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.headline-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;


    


    color: var(--accent);
    background: transparent;

    border: 1px solid rgba(var(--accent-rgb, 0, 210, 178), .45);


    


    cursor: pointer;
}
.headline-add-button:hover,
.headline-add-button[aria-expanded="true"] {
    background: rgba(var(--accent-rgb, 0, 210, 178), .09);
    border-color: var(--accent);
}

.inline-create-panel {
    margin: 10px 0 18px;
    padding: 12px 14px;

    border: 1px dashed rgba(var(--accent-rgb, 0, 210, 178), .22);
    border-radius: 8px;

    background: rgba(var(--accent-rgb, 0, 210, 178), .025);
}

.inline-create-panel[hidden],
.admin-create-row[hidden] {
    display: none !important;
}

.inline-create-panel-row {
    margin: 0;
}

.admin-create-row td {
    padding-top: 10px;
    padding-bottom: 14px;
}

/* END HEADLINE ADD BUTTON STANDARD */


/* TARIFF_SORT_V2_BEGIN */

.tariff-sort-header {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.tariff-sort-header:hover {
    color: var(--accent);
}

.tariff-sort-arrow {
    display: inline-block;

    margin-left: 3px;

    color: var(--muted);

    font-size: .75em;
}

.tariff-sort-header[data-sort-direction] {
    color: var(--accent);
}

.tariff-sort-header[data-sort-direction]
.tariff-sort-arrow {
    color: var(--accent);
}

/* TARIFF_SORT_V2_END */


/* ==========================================================
   TARIFF STATUS DISPLAY ONLY
   ========================================================== */


/*
 * Haken / X ist ab jetzt ausschließlich Anzeige.
 * Kein Hover-Effekt, kein Klick, kein Pointer.
 */

.tariff-status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: default !important;
    pointer-events: none !important;

    user-select: none;
}


/* ----------------------------------------------------------
   Menü-Forms sollen sich wie normale Menüeinträge verhalten
   ---------------------------------------------------------- */

.tariff-menu-form {
    display: block;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;
}
.tariff-menu-form button {
    display: block;


    margin: 0 !important;


    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;

    text-align: left;

    border: 0;


    background: transparent;

    cursor: pointer;
}
.tariff-menu-form button:hover {
    background:
        rgba(var(--accent-rgb, 0, 210, 178), .08);
}


/* Archivieren etwas absetzen */

.tariff-menu-form .tariff-menu-archive {
    color: #ff8d8d !important;
    -webkit-text-fill-color: #ff8d8d !important;
}


/* ==========================================================
   END TARIFF STATUS DISPLAY ONLY
   ========================================================== */


/* ==========================================================
   SORTABLE TABLE UI STANDARD
   Kunden + Benutzer
   ========================================================== */

.sortable-table th[data-sort] {
    cursor: pointer;
    user-select: none;

    transition:
        color .12s ease;
}


/*
 * Wie im Tarif-Katalog:
 * Header + Sortierindikator werden beim Hover türkis.
 */

.sortable-table th[data-sort]:hover,
.sortable-table th[data-sort]:hover::before,
.sortable-table th[data-sort]:hover::after,
.sortable-table th[data-sort]:hover > span {
    color: var(--accent) !important;
}


/*
 * Falls portal-table.js die aktive Richtung
 * über eines dieser Attribute markiert.
 */

.sortable-table th[data-sort][data-sort-direction],
.sortable-table th[data-sort][data-sort-dir],
.sortable-table th[data-sort][aria-sort="ascending"],
.sortable-table th[data-sort][aria-sort="descending"] {
    color: var(--accent) !important;
}


.sortable-table th[data-sort][data-sort-direction]::after,
.sortable-table th[data-sort][data-sort-dir]::after,
.sortable-table th[data-sort][aria-sort="ascending"]::after,
.sortable-table th[data-sort][aria-sort="descending"]::after {
    color: var(--accent) !important;
}


/* END SORTABLE TABLE UI STANDARD */


/* ==========================================================
   CUSTOMER DETAIL INLINE EDIT
   ========================================================== */

.detail-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-head-save-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.detail-head-button {

    

    
    color: var(--text);
    border: 1px solid rgba(255,255,255,.12);

    background: rgba(255,255,255,.02);
    cursor: pointer;
}
.detail-head-button:hover {
    border-color: rgba(var(--accent-rgb, 0, 210, 178),.45);
    color: var(--accent);
}
.detail-head-button-primary {
    color: var(--button-text, #081412);
    border-color: var(--accent);
    background: var(--accent);
}
.detail-head-button-primary:hover {
    color: var(--button-text, #081412);
    filter: brightness(1.03);
}

.customer-inline-edit-form .inline-edit-field {
    width: 100%;
    min-height: 40px;
    padding: 0;
    font: inherit;
    color: var(--text);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.customer-inline-edit-form .inline-edit-field:disabled {
    opacity: 1;
    cursor: default;
    -webkit-text-fill-color: var(--text);
}

.customer-inline-edit-form[data-editing="1"] .inline-edit-field {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.02);
}

.customer-inline-edit-form[data-editing="1"] .inline-edit-field:focus {
    border-color: rgba(var(--accent-rgb, 0, 210, 178),.55);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb, 0, 210, 178),.18);
}

.inline-address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.inline-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;


    


    

    color: var(--accent);

    border: 1px solid rgba(var(--accent-rgb, 0, 210, 178),.45);

    background: transparent;
    cursor: pointer;
}
.inline-icon-button:hover {
    background: rgba(var(--accent-rgb, 0, 210, 178),.08);
}

.external-toggle-details > summary {
    display: none;
}

.external-toggle-details[open] {
    margin-top: 14px;
}

/* ==========================================================
   END CUSTOMER DETAIL INLINE EDIT
   ========================================================== */


/* ==========================================================
   CUSTOMER DETAIL EDIT MODE VISIBILITY FIX
   ========================================================== */

.detail-head-save-group[hidden] {
    display: none !important;
}

.js-customer-edit-start[hidden] {
    display: none !important;
}

/* END CUSTOMER DETAIL EDIT MODE VISIBILITY FIX */


/* ==========================================================
   CUSTOMER DETAIL SELECT READ MODE
   ========================================================== */

/*
 * Selects im Lesemodus sollen wie normaler Text aussehen.
 * Kein Browser-Pfeil, kein Select-Look.
 */

.customer-inline-edit-form[data-editing="0"] select.inline-edit-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: none !important;
    background-color: transparent !important;

    padding-right: 0 !important;

    border: 0 !important;
    box-shadow: none !important;

    pointer-events: none;
}


/*
 * Im Bearbeiten-Modus wieder normales Select-Verhalten.
 */

.customer-inline-edit-form[data-editing="1"] select.inline-edit-field {
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;

    pointer-events: auto;
}

/* END CUSTOMER DETAIL SELECT READ MODE */


/* ==========================================================
   CUSTOMER USER ADD - CLOSED STATE
   ========================================================== */

.external-toggle-details:not([open]) {
    display: none !important;
}

.external-toggle-details[open] {
    display: block !important;
}

/* END CUSTOMER USER ADD - CLOSED STATE */


/* CUSTOMER DETAIL - DUPLICATE DIVIDER FIX */

.customer-inline-edit-form + .user-detail-divider {
    display: none !important;
}

/* END CUSTOMER DETAIL - DUPLICATE DIVIDER FIX */


/* ==========================================================
   CUSTOMER DETAIL - SECTION DIVIDER FINAL
   ========================================================== */

/* letzte graue Tabellenlinie unter TELEFON entfernen */

.customer-inline-edit-form
table tbody tr:last-child > th,

.customer-inline-edit-form
table tbody tr:last-child > td {
    border-bottom: 0 !important;
}


/* Übergang Stammdaten -> Benutzer */

.customer-inline-edit-form + .user-detail-divider {
    display: block !important;

    width: 100% !important;
    height: 2px !important;

    margin: 28px 0 24px !important;

    border: 0 !important;

    background:
        rgba(var(--accent-rgb, 0, 210, 178), .58) !important;

    opacity: 1 !important;
}

/* END CUSTOMER DETAIL - SECTION DIVIDER FINAL */


/* ==========================================================
   USER DETAIL INLINE EDIT
   ========================================================== */

.user-inline-edit-form .inline-edit-field {
    width: 100%;
    min-height: 40px;

    padding: 0;

    font: inherit;
    color: var(--text);

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
    outline: none;
}


.user-inline-edit-form .inline-edit-field:disabled {
    opacity: 1;
    cursor: default;

    -webkit-text-fill-color:
        var(--text);
}


.user-inline-edit-form[data-editing="1"]
.inline-edit-field {

    min-height: 42px;

    padding:
        10px
        12px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 10px;

    background:
        rgba(255,255,255,.02);
}


.user-inline-edit-form[data-editing="1"]
.inline-edit-field:focus {

    border-color:
        rgba(var(--accent-rgb, 0, 210, 178),.55);

    box-shadow:
        0 0 0 1px
        rgba(var(--accent-rgb, 0, 210, 178),.18);
}


/* hidden muss gegen bestehende flex-Regeln gewinnen */

.js-user-edit-start[hidden],
.js-user-edit-actions[hidden] {
    display: none !important;
}


/* letzte graue Tabellenlinie raus */

.user-inline-edit-form
table tbody tr:last-child > th,

.user-inline-edit-form
table tbody tr:last-child > td {
    border-bottom: 0 !important;
}


/* derselbe Abschnittstrenner wie Kunden */

.user-account-divider {
    display: block !important;

    width: 100% !important;
    height: 2px !important;

    margin:
        28px 0
        24px !important;

    border: 0 !important;

    background:
        rgba(var(--accent-rgb, 0, 210, 178),.58) !important;

    opacity: 1 !important;
}

/* END USER DETAIL INLINE EDIT */


/* ==========================================================
   USER ACCOUNT DETAIL V2
   ========================================================== */

#user-inline-edit-form {
    display: none;
}


.js-user-edit-start[hidden],
.js-user-edit-actions[hidden] {
    display: none !important;
}


input[data-user-edit-field] {
    width: 100%;
    min-height: 40px;

    padding: 0;

    font: inherit;
    color: var(--text);

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;
    outline: none;
}


input[data-user-edit-field]:disabled {
    opacity: 1;
    cursor: default;

    -webkit-text-fill-color:
        var(--text);
}


input[data-user-edit-field].is-editing {
    min-height: 42px;

    padding:
        10px
        12px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 10px;

    background:
        rgba(255,255,255,.02);
}


input[data-user-edit-field].is-editing:focus {
    border-color:
        rgba(var(--accent-rgb, 0, 210, 178),.55);

    box-shadow:
        0 0 0 1px
        rgba(var(--accent-rgb, 0, 210, 178),.18);
}


.user-account-divider {
    display: block !important;

    width: 100% !important;
    height: 2px !important;

    margin:
        28px 0
        24px !important;

    border: 0 !important;

    background:
        rgba(var(--accent-rgb, 0, 210, 178),.58) !important;

    opacity: 1 !important;
}

/* END USER ACCOUNT DETAIL V2 */


/* ==========================================================
   MAILSERVER CONFIG
   ========================================================== */

.mail-config-card {
    max-width: 900px;
}


.mail-config-form {
    margin-top: 18px;
}


.mail-config-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(180px, .45fr);

    gap:
        18px
        20px;
}


.mail-config-grid label {
    display: grid;

    gap: 7px;

    color: var(--muted);

    font-size: .78rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .04em;
}


.mail-config-grid input {
    width: 100%;

    min-height: 42px;

    padding:
        10px
        12px;

    color: var(--text);

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 10px;

    background:
        rgba(255,255,255,.02);

    outline: none;

    text-transform: none;
    letter-spacing: normal;
}


.mail-config-grid input:focus {
    border-color:
        rgba(var(--accent-rgb, 0, 210, 178),.55);

    box-shadow:
        0 0 0 1px
        rgba(var(--accent-rgb, 0, 210, 178),.18);
}


.mail-config-full {
    grid-column:
        1 / -1;
}


.mail-config-check {
    display: flex !important;

    grid-template-columns: none !important;

    flex-direction: row;
    align-items: center;

    gap: 10px !important;

    text-transform: none !important;
    letter-spacing: normal !important;

    font-weight: 500 !important;
}


.mail-config-check input {
    width: 16px !important;
    min-height: 16px !important;

    margin: 0;
    padding: 0;
}


.mail-config-info {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-top: 24px;
    padding-top: 18px;

    border-top:
        1px solid
        var(--border);

    color: var(--muted);

    font-size: .82rem;
}


.mail-config-info strong {
    display: block;

    margin-bottom: 4px;

    color: var(--text);
}


.mail-config-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 24px;
}


@media (max-width: 700px) {

    .mail-config-grid,
    .mail-config-info {
        grid-template-columns:
            1fr;
    }

    .mail-config-full {
        grid-column:
            auto;
    }
}

/* END MAILSERVER CONFIG */


/* ==========================================================
   MAILSERVER CONFIG FINAL
   ========================================================== */

/* Card wie alle anderen über volle Breite */

.mail-config-card {
    width: 100% !important;
    max-width: none !important;
}


/* Reporting */

.mail-config-reporting {
    margin-top: 26px;
    padding-top: 22px;

    border-top:
        1px solid
        var(--border);
}


.mail-reporting-option {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-top: 10px;

    cursor: pointer;
}


.mail-reporting-option input {
    width: 17px;
    height: 17px;

    margin-top: 3px;

    flex:
        0 0 auto;
}


.mail-reporting-option span {
    display: grid;

    gap: 5px;
}


.mail-reporting-option strong {
    color: var(--text);

    font-size: .9rem;
}


.mail-reporting-option small {
    max-width: 720px;

    color: var(--muted);

    font-size: .8rem;
    line-height: 1.45;
}


/* Passwortstatus braucht keine zweispaltige Infobox mehr */

.mail-config-info {
    grid-template-columns:
        1fr !important;
}

/* END MAILSERVER CONFIG FINAL */


/* ==========================================================
   SMTP TEST
   ========================================================== */

.mail-config-actions {
    gap: 10px;
}
#smtp-test-button:disabled {
    opacity: .6;

    cursor: wait;
}


/* ==========================================================
   PORTAL OWN PROFILE
   ========================================================== */

.account-profile-card {
    width: 100%;
}


.account-profile-security {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;
}


.account-profile-id {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: .82rem;
}


/* letzte Tabellenlinie ruhig stehen lassen,
   weil hier kein Folgeabschnitt in derselben Card sitzt */


/* END PORTAL OWN PROFILE */


/* ==========================================================
   PORTAL PROFILE INLINE EDIT FINAL
   ========================================================== */

.account-profile-card {
    width: 100%;
}


.profile-head-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;
}


.js-profile-edit-start[hidden],
.js-profile-edit-actions[hidden] {
    display: none !important;
}


.account-profile-security {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;
}


.portal-profile-edit-form {
    margin: 0;
}


.profile-inline-field {
    width: 100%;
    min-height: 40px;

    padding: 0;

    color: var(--text);
    font: inherit;

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;
    outline: none;
}


.profile-inline-field:disabled {
    opacity: 1;
    cursor: default;

    -webkit-text-fill-color:
        var(--text);
}


.profile-inline-field.is-editing {
    min-height: 42px;

    padding:
        10px
        12px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 10px;

    background:
        rgba(255,255,255,.02);
}


.profile-inline-field.is-editing:focus {
    border-color:
        rgba(var(--accent-rgb, 0, 210, 178),.55);

    box-shadow:
        0 0 0 1px
        rgba(var(--accent-rgb, 0, 210, 178),.18);
}


.account-profile-id {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: .82rem;
}


/* END PORTAL PROFILE INLINE EDIT FINAL */


/* ==========================================================
   ADMIN BILLING CHANNEL
   ========================================================== */

.admin-billing-channel-form {
    margin: 0;
}


.admin-billing-channel-select {
    min-width: 112px;

    padding:
        7px
        9px;

    font-size: .78rem;

    border-radius: 8px;
}


.plan-edit-billing-note {
    margin: 0;

    font-size: .76rem;
    line-height: 1.45;
}


.plan-edit-change-summary {
    display: grid;
    gap: 4px;

    margin: 4px 0;
}


.plan-edit-change-row {
    display: grid;

    grid-template-columns:
        minmax(95px, .8fr)
        minmax(170px, 1.2fr);

    gap: 12px;

    padding: 8px 0;

    border-bottom:
        1px solid
        rgba(255,255,255,.08);

    font-size: .8rem;
}


.plan-edit-change-row span {
    text-align: right;
}


.plan-price-display {
    white-space: nowrap;
}


/* END PLAN EDIT SAFE FLOW V2 */


/* ==========================================================
   CUSTOMER LICENSING V1
   ========================================================== */

.customer-license-card {
    margin-top: 22px;
}


.customer-license-table td {
    vertical-align: top;
}


.customer-license-target-cell {
    min-width: 220px;
}


.customer-license-assignment {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 7px;
}


.customer-license-revoke-form {
    margin: 0;
}
.customer-license-small-button {


    white-space: nowrap;
}


.customer-license-target-note,
.customer-license-seats {
    margin-top: 7px;

    font-size: .74rem;
}


.customer-plan-assign-form,
#customer-license-assign-form {
    width: min(390px, calc(100vw - 64px));

    display: grid;

    gap: 14px;
}


.customer-plan-assign-form label,
#customer-license-assign-form label {
    display: grid;

    gap: 6px;
}


.customer-plan-preview {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 10px;

    padding:
        11px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 10px;
}


.customer-plan-preview > div {
    display: grid;

    gap: 3px;
}


/* END CUSTOMER LICENSING V1 */


/* ==========================================================
   LICENSE CUSTOMER READONLY V1
   ========================================================== */

.license-customer-readonly {
    width: 100%;

    min-height: 36px;

    display: flex;
    align-items: center;

    padding:
        7px
        11px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 7px;

    background:
        rgba(255,255,255,.025);

    color:
        var(--text);

    font-size: .82rem;

    box-sizing: border-box;
}


/* END LICENSE CUSTOMER READONLY V1 */


/* PIGEON_USER_SERVICE_BLOCK_V1 */

.pigeon-service-block {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 2px solid #22c7b8;
}

.pigeon-service-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pigeon-service-head h2 {
    margin: .15rem 0 0;
}


/* PIGEON_MAILBOX_RULE_CARDS_V2 */

.pigeon-rule-stack {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.pigeon-rule-card {
    padding: 20px;

    background: rgba(17, 19, 20, .72);

    border: 1px solid var(--border);
    border-radius: 10px;
}

.pigeon-rule-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 18px;
}

.pigeon-rule-head h3 {
    margin: 3px 0 0;
}

.pigeon-rule-columns {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.pigeon-rule-column {
    min-width: 0;

    padding: 16px;

    background: rgba(0, 0, 0, .14);

    border: 1px solid var(--border);
    border-radius: 8px;
}

.pigeon-rule-column h4 {
    margin: 0 0 14px;
}

.pigeon-rule-tags {
    display: grid;
    gap: 8px;

    min-height: 36px;

    margin-bottom: 14px;
}

.pigeon-rule-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 8px 10px;

    background: var(--surface-2);

    border: 1px solid var(--border);
    border-radius: 7px;
}

.pigeon-rule-tag form {
    margin: 0;
}

.pigeon-rule-delete {
    min-width: 30px;

    padding: 4px 8px;

    color: #ff9d9d;
    background: transparent;

    border:
        1px solid
        rgba(255, 107, 107, .25);
}

.pigeon-rule-delete:hover {
    color: #fff;

    background:
        rgba(255, 107, 107, .16);
}

.pigeon-rule-add {
    display: grid;

    grid-template-columns:
        minmax(130px, .7fr)
        minmax(170px, 1.25fr)
        minmax(150px, 1fr)
        auto;

    gap: 8px;

    align-items: end;
}
.pigeon-rule-add button {
    white-space: nowrap;
}

@media (max-width: 1000px) {

    .pigeon-rule-columns {
        grid-template-columns: 1fr;
    }

    .pigeon-rule-add {
        grid-template-columns: 1fr;
    }

}


/* USER_DETAIL_PASSWORD_LICENSE */

.user-password-write {
    display: grid;

    grid-template-columns:
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        auto;

    gap: 8px;

    align-items: center;

    max-width: 900px;
}
.user-password-write input {
    margin: 0;
}


.user-password-write button {
    margin: 0;
}

@media (max-width: 900px) {

    .user-password-write {
        grid-template-columns:
            1fr;
    }

}


/* USER_PASSWORD_DIALOG */

.user-password-row {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

.user-password-state {
    min-width: 90px;
}

.user-reset-mail-form {
    display: inline-flex;

    margin: 0;
}

@media (max-width: 700px) {

    .user-password-row {
        align-items:
            stretch;

        flex-direction:
            column;
    }
.user-reset-mail-form {
        width: 100%;
    }

}


/* USER_SECURITY_COMPACT */

.user-security-line {
    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    flex-wrap:
        wrap;
}

.user-security-value {
    min-width:
        86px;
}

.user-security-actions {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        5px;
}

.user-security-inline-form {
    display:
        inline-flex;

    margin:
        0;
}
.user-security-mini-button {
    appearance:
        none;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;


    margin:
        0;


    border:
        1px solid
        var(--border);


    background:
        transparent;

    color:
        var(--text);


    cursor:
        pointer;
}
.user-security-mini-button:hover {
    color:
        var(--accent);

    border-color:
        var(--accent);
}


.user-mfa-select {
    width:
        auto !important;

    min-width:
        190px;

    max-width:
        280px;

    margin:
        0 !important;
}


/* alten Passwort-Layoutzwang neutralisieren */

.user-password-row {
    display:
        contents;
}

@media (
    max-width: 700px
) {

    .user-security-actions {
        display:
            inline-flex;

        flex-direction:
            row;

        flex-wrap:
            wrap;
    }

}
.user-security-mini-button {

    

    /* exakt von button-secondary übernehmen */


    margin: 0 !important;
}

.user-security-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

.user-security-inline-form {
    display: inline-flex !important;
    margin: 0 !important;
}


/* USER_SECURITY_HIDDEN */
.user-security-actions[data-user-security-edit][hidden] {
    display: none !important;
}

.user-action-menu .product-action-separator-customer {
    height: 2px;
    margin: 7px 3px;
    background: #18b8b0;
}
button,
.button,
.detail-head-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;


    text-align: center;
    vertical-align: middle;


}
.product-action-popup button {
    display: block;
    justify-content: flex-start;
    text-align: left;
}
.button-secondary,
.dialog-actions button {
    align-items: center;
    justify-content: center;
    text-align: center;
}
.admin-table-search {

    

    box-sizing: border-box;

}


/* PORTAL_OVERVIEW_CI */
.portal-role-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 8px;
}

.portal-overview-card + .portal-overview-card {
    margin-top: 18px;
}


/* Keep one configuration column aligned with each licensed user's revoke action. */
.customer-license-target-cell .customer-license-assignment {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) 6rem 7rem;
    align-items: center;
    gap: .75rem;
}
.customer-license-assignment-heading { color: var(--muted, #9ca3af); font-size: .75rem; }
.customer-license-configuration { text-align: center; }

.customer-license-assignment-heading span:nth-child(2) { text-align: center; }

.portal-dashboard-nav { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 1.2rem; }
.portal-dashboard-nav a { text-decoration: none; }
.portal-dashboard-current { border-color: var(--accent); color: var(--accent); }
.portal-management-details { margin: .7rem 0; }
.portal-management-details > summary { cursor: pointer; border: 1px solid #347b75; border-left: 3px solid var(--accent); border-radius: .35rem; padding: .55rem; color: var(--accent); background: #14332f; }
.portal-management-form { display: grid; gap: .65rem; max-width: 28rem; padding: .8rem 0; }
.portal-management-form label { display: grid; gap: .3rem; }
.portal-management-form input, .portal-management-form select { width: 100%; box-sizing: border-box; }
.portal-license-group { border-top: 1px solid #303737; padding: 1rem 0; }
.portal-license-assignment { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .7rem; margin: .65rem 0; }
.portal-license-assignment form { margin: 0; }
.portal-license-assignment > label { min-width: 0; flex: 1 1 14rem; }
.portal-license-assignment select { width: 100%; max-width: 100%; box-sizing: border-box; }
.portal-license-assignment > a { min-width: 0; overflow-wrap: anywhere; }
.portal-dashboard-nav a { display: inline-flex; align-items: center; padding: .55rem .85rem; border: 1px solid #303737; border-radius: .4rem; background: #171b1b; font-size: .85rem; }
.portal-dashboard-nav a[aria-current=page] { border-color: var(--accent); color: var(--accent); background: #14332f; }
.portal-dashboard-page > .card + .card { margin-top: 1.1rem; }

/* Customer navigation occupies the same header position as system navigation. */
.portal-header-nav .top-admin-links { flex-wrap: wrap; }
.portal-customer-controls .user-service-actions { margin-bottom: .4rem; }
.portal-customer-controls > p { margin: 0; max-width: 65rem; }
.portal-scope-divider { height: 1px; border: 0; background: var(--accent); opacity: .75; margin: 1.4rem 0; }
.portal-personal-controls h2 { margin: .2rem 0 .4rem; }
.portal-personal-controls .user-service-actions { margin: .65rem 0 0; }
.portal-summary-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; }
.portal-summary-grid--single { grid-template-columns: minmax(0, 1fr); }
.portal-summary-grid > .card { min-width: 0; margin: 0; }
.portal-summary-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.portal-summary-stats dt { color: var(--muted); font-size: .8rem; }
.portal-summary-stats dd { margin: .15rem 0 0; color: var(--accent); font-size: 1.4rem; font-weight: 700; }
.portal-summary-licenses, .portal-invoice-quicklist { list-style: none; padding: 0; margin: .8rem 0; }
.portal-summary-licenses li { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.portal-summary-licenses li span { min-width: 0; overflow-wrap: anywhere; }
.portal-summary-licenses li strong { white-space: nowrap; }
.portal-recent-invoices { margin-top: 1rem; }
.portal-invoice-quicklist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.portal-invoice-quicklist small { display: block; margin-top: .2rem; }
.portal-invoice-quicklist a, .portal-invoice-quicklist strong { overflow-wrap: anywhere; }
@media (max-width: 800px) {
    .topbar:has(.portal-header-nav) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; padding: .65rem 1rem; }
    .topbar:has(.portal-header-nav) .topbar-tools { display: contents; }
    .topbar:has(.portal-header-nav) .brand { grid-column: 1; grid-row: 1; }
    .topbar:has(.portal-header-nav) .account { grid-column: 2; grid-row: 1; }
    .portal-header-nav { grid-column: 1 / -1; grid-row: 2; }
    .portal-header-nav .top-admin-links { gap: .25rem; }
    .portal-summary-grid { grid-template-columns: minmax(0, 1fr); }
    .portal-invoice-quicklist li { gap: .5rem; font-size: .85rem; }
}
.portal-personal-controls { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 800px) { .portal-dashboard-page > .heading > .status { align-self: flex-start; } }
