:root {
    --dipeo-orange: #f26a21;
    --dipeo-orange-dark: #d9530c;
    --dipeo-anthracite: #20242a;
    --dipeo-ink: #30353c;
    --dipeo-muted: #707780;
    --dipeo-border: #e5e7eb;
    --dipeo-surface: #f5f6f8;
    --dipeo-white: #ffffff;
    --dipeo-success: #15803d;
    --dipeo-danger: #b42318;
    --sidebar-width: 250px;
    --shadow: 0 18px 45px rgba(32, 36, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--dipeo-anthracite);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--dipeo-surface);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.enterprise-eyebrow {
    margin: 0 0 8px;
    color: var(--dipeo-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.enterprise-brand,
.auth-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--dipeo-white);
    text-decoration: none;
}

.enterprise-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--dipeo-white);
    font-size: 21px;
    font-weight: 800;
    background: var(--dipeo-orange);
}

.enterprise-brand strong,
.auth-brand strong {
    display: block;
    font-size: 19px;
}

.enterprise-brand small,
.auth-brand small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-body {
    background: var(--dipeo-white);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(340px, 0.9fr) minmax(480px, 1.1fr);
}

.auth-brand-panel {
    display: flex;
    min-height: 100vh;
    padding: 52px;
    flex-direction: column;
    justify-content: space-between;
    color: var(--dipeo-white);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(242, 106, 33, 0.28),
            transparent 34%
        ),
        linear-gradient(145deg, #1e2228, #292e35);
}

.auth-introduction {
    max-width: 560px;
}

.auth-introduction h1 {
    max-width: 500px;
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.auth-introduction > p:last-child {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 18px;
    line-height: 1.65;
}

.auth-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
}

.auth-form-panel {
    display: grid;
    min-height: 100vh;
    padding: 48px;
    place-items: center;
    background: var(--dipeo-white);
}

.auth-card {
    width: min(100%, 460px);
}

.auth-card-header {
    margin-bottom: 34px;
}

.auth-card-header h2 {
    margin: 0 0 12px;
    font-size: 36px;
    letter-spacing: -0.035em;
}

.auth-card-header > p:last-child {
    margin: 0;
    color: var(--dipeo-muted);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 22px;
}

.auth-form label > span {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--dipeo-border);
    border-radius: 10px;
    outline: none;
    color: var(--dipeo-anthracite);
    background: var(--dipeo-white);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.auth-form input:focus {
    border-color: var(--dipeo-orange);
    box-shadow: 0 0 0 4px rgba(242, 106, 33, 0.12);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 13px;
}

.auth-options a,
.secondary-link {
    color: var(--dipeo-orange-dark);
    font-weight: 700;
    text-decoration: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dipeo-muted);
}

.checkbox-label span {
    margin: 0 !important;
    font-weight: 500 !important;
}

.primary-button {
    width: 100%;
    padding: 15px 20px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    color: var(--dipeo-white);
    font-weight: 800;
    background: var(--dipeo-orange);
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.primary-button:hover {
    background: var(--dipeo-orange-dark);
    transform: translateY(-1px);
}

.secondary-link {
    display: block;
    text-align: center;
}

.form-message {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}

.form-message-error {
    color: var(--dipeo-danger);
    background: #fff0ee;
}

.form-message-success {
    color: var(--dipeo-success);
    background: #eefbf2;
}

.form-error {
    display: block;
    margin-top: 7px;
    color: var(--dipeo-danger);
}

.enterprise-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.enterprise-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    padding: 28px 22px;
    flex-direction: column;
    color: var(--dipeo-white);
    background: var(--dipeo-anthracite);
}

.enterprise-navigation {
    display: grid;
    gap: 5px;
    margin-top: 46px;
}

.enterprise-navigation a,
.enterprise-navigation span {
    display: block;
    padding: 11px 13px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    text-decoration: none;
}

.enterprise-navigation a.is-active {
    color: var(--dipeo-white);
    background: rgba(242, 106, 33, 0.17);
}

.enterprise-sidebar-footer {
    display: grid;
    gap: 4px;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
}

.enterprise-sidebar-footer small {
    color: rgba(255, 255, 255, 0.38);
}

.enterprise-main {
    display: flex;
    min-height: 100vh;
    grid-column: 2;
    flex-direction: column;
}

.enterprise-header {
    display: flex;
    min-height: 104px;
    padding: 24px 38px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid var(--dipeo-border);
    background: var(--dipeo-white);
}

.enterprise-header h1 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.03em;
}

.enterprise-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.enterprise-user-data {
    display: grid;
    gap: 3px;
    text-align: right;
}

.enterprise-user-data strong {
    font-size: 13px;
}

.enterprise-user-data span {
    color: var(--dipeo-muted);
    font-size: 12px;
}

.enterprise-logout {
    padding: 9px 13px;
    border: 1px solid var(--dipeo-border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--dipeo-ink);
    background: var(--dipeo-white);
}

.enterprise-content {
    width: 100%;
    max-width: 1500px;
    padding: 38px;
    margin: 0 auto;
}

.enterprise-footer {
    display: flex;
    padding: 22px 38px;
    margin-top: auto;
    justify-content: space-between;
    color: var(--dipeo-muted);
    font-size: 12px;
}

.dashboard-welcome {
    display: flex;
    padding: 32px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid var(--dipeo-border);
    border-radius: 16px;
    background: var(--dipeo-white);
    box-shadow: var(--shadow);
}

.dashboard-welcome h2 {
    margin: 0 0 10px;
    font-size: 30px;
    letter-spacing: -0.035em;
}

.dashboard-welcome p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--dipeo-muted);
    line-height: 1.6;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: var(--dipeo-success);
    font-size: 13px;
    font-weight: 700;
}

.system-status span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--dipeo-success);
}

.dashboard-grid {
    display: grid;
    gap: 20px;
    margin-top: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-card {
    min-height: 220px;
    padding: 25px;
    border: 1px solid var(--dipeo-border);
    border-radius: 14px;
    background: var(--dipeo-white);
}

.dashboard-card-number {
    display: block;
    margin-bottom: 34px;
    color: var(--dipeo-orange);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-card h3 {
    margin: 0 0 11px;
    font-size: 19px;
}

.dashboard-card p {
    margin: 0 0 24px;
    color: var(--dipeo-muted);
    font-size: 14px;
    line-height: 1.55;
}

.dashboard-card-status {
    color: var(--dipeo-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .auth-shell {
        display: block;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 32px 24px;
    }

    .auth-introduction {
        margin: 70px 0;
    }

    .auth-form-panel {
        min-height: auto;
        padding: 60px 24px;
    }

    .enterprise-shell {
        display: block;
    }

    .enterprise-sidebar {
        position: static;
        width: 100%;
    }

    .enterprise-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .enterprise-main {
        display: flex;
    }

    .enterprise-header,
    .dashboard-welcome,
    .enterprise-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .enterprise-user {
        width: 100%;
        justify-content: space-between;
    }

    .enterprise-user-data {
        text-align: left;
    }
}

@media (max-width: 620px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-content,
    .enterprise-header,
    .enterprise-footer {
        padding-right: 22px;
        padding-left: 22px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Dipeo corporate logo */
.auth-logo,
.enterprise-brand {
    display: flex;
    align-items: center;
    width: fit-content;
}

.dipeo-logo {
    display: block;
    width: auto;
    height: 54px;
    object-fit: contain;
}

.enterprise-sidebar .dipeo-logo {
    max-width: 180px;
}

@media (max-width: 620px) {
    .dipeo-logo {
        height: 48px;
    }
}

/* Dipeo corporate wordmark */
.dipeo-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: auto;
}

.dipeo-wordmark-icon {
    display: block;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    object-fit: contain;
}

.dipeo-wordmark-text {
    display: grid;
    gap: 2px;
    line-height: 1;
}

.dipeo-wordmark-text strong {
    color: #ff5a00;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.dipeo-wordmark-text strong span {
    font-size: 0.65em;
    letter-spacing: -0.025em;
}

.dipeo-wordmark-text small {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.enterprise-sidebar .dipeo-wordmark {
    gap: 11px;
}

.enterprise-sidebar .dipeo-wordmark-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.enterprise-sidebar .dipeo-wordmark-text strong {
    font-size: 22px;
}

.enterprise-sidebar .dipeo-wordmark-text small {
    max-width: 115px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    line-height: 1.2;
}

@media (max-width: 620px) {
    .dipeo-wordmark-icon {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .dipeo-wordmark-text strong {
        font-size: 29px;
    }

    .dipeo-wordmark-text small {
        font-size: 12px;
    }
}

/* ==========================================================
   D3.2 – Enterprise Navigation Completion
   ========================================================== */

.enterprise-navigation a {
    border: 1px solid transparent;
    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.enterprise-navigation a:hover {
    color: var(--dipeo-white);
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.enterprise-navigation a.is-active {
    border-color: rgba(242, 106, 33, 0.28);
}

.enterprise-header-context {
    min-width: 0;
}

.enterprise-breadcrumb {
    display: flex;
    margin-top: 8px;
    align-items: center;
    gap: 8px;
    color: var(--dipeo-muted);
    font-size: 12px;
}

.enterprise-breadcrumb a {
    color: var(--dipeo-orange-dark);
    font-weight: 700;
    text-decoration: none;
}

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

.module-placeholder {
    display: flex;
    min-height: 260px;
    padding: 38px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    border: 1px solid var(--dipeo-border);
    border-radius: 16px;
    background: var(--dipeo-white);
    box-shadow: var(--shadow);
}

.module-placeholder-content {
    max-width: 720px;
}

.module-placeholder h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.module-placeholder-content > p:last-child {
    margin: 0;
    color: var(--dipeo-muted);
    font-size: 16px;
    line-height: 1.7;
}

.module-status-badge {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 12px;
    align-items: center;
    white-space: nowrap;
    border: 1px solid rgba(242, 106, 33, 0.22);
    border-radius: 999px;
    color: var(--dipeo-orange-dark);
    font-size: 12px;
    font-weight: 800;
    background: rgba(242, 106, 33, 0.08);
}

.dashboard-card-link {
    color: inherit;
    text-decoration: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.dashboard-card-link:hover {
    border-color: rgba(242, 106, 33, 0.32);
    box-shadow: 0 20px 50px rgba(32, 36, 42, 0.12);
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    :root {
        --sidebar-width: 210px;
    }

    .enterprise-sidebar {
        padding-right: 16px;
        padding-left: 16px;
    }

    .enterprise-header {
        padding-right: 24px;
        padding-left: 24px;
    }

    .enterprise-content {
        padding-right: 24px;
        padding-left: 24px;
    }

    .enterprise-user-data {
        display: none;
    }
}

@media (max-width: 700px) {
    .enterprise-shell {
        display: block;
    }

    .enterprise-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        padding: 18px;
    }

    .enterprise-navigation {
        display: flex;
        margin-top: 22px;
        padding-bottom: 6px;
        gap: 7px;
        overflow-x: auto;
    }

    .enterprise-navigation a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .enterprise-sidebar-footer {
        display: none;
    }

    .enterprise-main {
        min-height: auto;
    }

    .enterprise-header {
        min-height: auto;
        padding: 20px;
        align-items: flex-start;
    }

    .enterprise-content {
        padding: 20px;
    }

    .enterprise-footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .module-placeholder {
        min-height: 220px;
        padding: 26px;
        flex-direction: column;
    }
}

/* ==========================================================
   D4.3 – Customer Explorer
   ========================================================== */

.customer-explorer {
    display: grid;
    gap: 24px;
}

.customer-explorer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.customer-explorer-header h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.customer-explorer-header p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--dipeo-muted);
    line-height: 1.65;
}

.primary-action-button,
.secondary-button {
    display: inline-flex;
    min-height: 42px;
    padding: 10px 16px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.primary-action-button {
    border: 1px solid var(--dipeo-orange);
    color: var(--dipeo-white);
    background: var(--dipeo-orange);
}

.secondary-button {
    border: 1px solid var(--dipeo-border);
    color: var(--dipeo-anthracite);
    background: var(--dipeo-white);
}

.primary-action-button:disabled,
.secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.customer-statistics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.customer-statistics article {
    display: grid;
    gap: 7px;
    padding: 20px;
    border: 1px solid var(--dipeo-border);
    border-radius: 13px;
    background: var(--dipeo-white);
}

.customer-statistics span {
    color: var(--dipeo-muted);
    font-size: 12px;
    font-weight: 700;
}

.customer-statistics strong {
    font-size: 25px;
}

.customer-table-panel {
    overflow: hidden;
    border: 1px solid var(--dipeo-border);
    border-radius: 15px;
    background: var(--dipeo-white);
    box-shadow: var(--shadow);
}

.customer-table-scroll {
    overflow-x: auto;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.customer-table th,
.customer-table td {
    padding: 15px 14px;
    border-bottom: 1px solid var(--dipeo-border);
    text-align: left;
    vertical-align: top;
}

.customer-table th {
    color: var(--dipeo-muted);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #fafafa;
}

.customer-table tbody tr:hover {
    background: #fffaf7;
}

.customer-table td strong,
.customer-table td small {
    display: block;
}

.customer-table td small {
    margin-top: 5px;
    color: var(--dipeo-muted);
}

.customer-table td a {
    color: var(--dipeo-orange-dark);
    font-weight: 700;
    text-decoration: none;
}

.customer-reference {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.customer-badge,
.customer-status {
    display: inline-flex;
    padding: 5px 9px;
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.customer-badge {
    color: var(--dipeo-ink);
    background: #f0f2f5;
}

.customer-badge.is-professional {
    color: #854d0e;
    background: #fef3c7;
}

.customer-badge.is-premium {
    color: #7e22ce;
    background: #f3e8ff;
}

.customer-badge.is-legacy {
    color: #475569;
    background: #e2e8f0;
}

.customer-status.is-active {
    color: var(--dipeo-success);
    background: #eefbf2;
}

.customer-status.is-inactive {
    color: var(--dipeo-danger);
    background: #fff0ee;
}

.customer-pagination {
    display: flex;
    padding: 16px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.customer-pagination p {
    margin: 0;
    color: var(--dipeo-muted);
    font-size: 12px;
}

.customer-pagination-links {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 12px;
    font-weight: 700;
}

.customer-pagination-links a {
    color: var(--dipeo-orange-dark);
    text-decoration: none;
}

.customer-pagination-links .is-disabled {
    color: #b6bbc2;
}

.customer-empty-state {
    display: grid;
    min-height: 300px;
    padding: 40px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.customer-empty-state h3 {
    margin: 0 0 10px;
    font-size: 25px;
}

.customer-empty-state > p:not(.enterprise-eyebrow) {
    max-width: 480px;
    margin: 0 0 22px;
    color: var(--dipeo-muted);
}


@media (max-width: 700px) {
    .customer-explorer-header {
        flex-direction: column;
    }

.customer-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================================
   D4.3 – Final Enterprise Footer
   ========================================================== */

.enterprise-footer {
    display: flex;
    min-height: 82px;
    padding: 18px 38px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--dipeo-white);
}

.enterprise-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dipeo-anthracite);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.enterprise-footer-brand > span > span {
    color: var(--dipeo-orange);
}

.enterprise-footer-logo {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.enterprise-footer-copyright {
    color: var(--dipeo-muted);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .enterprise-footer {
        min-height: auto;
        padding: 18px 20px;
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================================
   D4.3A – Enterprise Icon System
   ========================================================== */

.enterprise-navigation a {
    display: flex;
    align-items: center;
    gap: 11px;
}

.enterprise-navigation-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    stroke-width: 1.8;
}

.enterprise-navigation a.is-active .enterprise-navigation-icon {
    color: var(--dipeo-orange);
}

.enterprise-button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke-width: 2;
}

.enterprise-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.enterprise-label-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--dipeo-orange-dark);
    stroke-width: 2;
}

.primary-action-button,
.secondary-button {
    gap: 8px;
}

@media (max-width: 700px) {
    .enterprise-navigation-icon {
        width: 18px;
        height: 18px;
    }
}

/* =========================================================
   D5.1 – Enterprise Mail Template Explorer
   ========================================================= */

.enterprise-page {
    display: grid;
    gap: 1.5rem;
}

.enterprise-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.enterprise-page-eyebrow,
.enterprise-dialog-eyebrow {
    margin-bottom: 0.4rem;
    color: #f97316;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.enterprise-page-heading {
    margin: 0;
    color: #172033;
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    line-height: 1.15;
}

.enterprise-page-description {
    max-width: 760px;
    margin: 0.65rem 0 0;
    color: #667085;
    line-height: 1.65;
}

.enterprise-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease;
}

.enterprise-button-primary {
    background: #f97316;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.2);
}

.enterprise-button-primary:hover {
    background: #ea580c;
}

.enterprise-button-secondary {
    border-color: #d9dee8;
    background: #ffffff;
    color: #344054;
}

.enterprise-button-secondary:hover {
    border-color: #bfc7d5;
    background: #f8fafc;
}

.enterprise-button-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
}

.enterprise-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    font-size: 0.9rem;
}

.enterprise-alert ul {
    margin: 0.45rem 0 0;
    padding-left: 1.2rem;
}

.enterprise-alert-success {
    border-color: #a7f3d0;
    background: #ecfdf3;
    color: #067647;
}

.enterprise-alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b42318;
}

.enterprise-alert-icon {
    width: 1.3rem;
    height: 1.3rem;
    flex: none;
}

.enterprise-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.enterprise-stat-card {
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    background: #ffffff;
    padding: 1.1rem;
    box-shadow: 0 4px 15px rgba(16, 24, 40, 0.04);
}

.enterprise-stat-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: none;
    place-items: center;
    border-radius: 12px;
    background: #fff7ed;
    color: #f97316;
}

.enterprise-stat-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.enterprise-stat-label {
    display: block;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 700;
}

.enterprise-stat-value {
    display: block;
    margin-top: 0.2rem;
    color: #172033;
    font-size: 1.65rem;
    line-height: 1;
}

.enterprise-card {
    overflow: hidden;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.04);
}

.enterprise-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #edf0f5;
    padding: 1.15rem 1.25rem;
}

.enterprise-card-header h3 {
    margin: 0;
    color: #172033;
    font-size: 1rem;
}

.enterprise-card-header p {
    margin: 0.3rem 0 0;
    color: #667085;
    font-size: 0.83rem;
}


.enterprise-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.5rem;
}

.enterprise-form-field {
    display: grid;
    gap: 0.45rem;
}

.enterprise-form-field-full {
    grid-column: 1 / -1;
}

.enterprise-form-field label {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 700;
}

.enterprise-input,
.enterprise-select,
.enterprise-textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #d9dee8;
    border-radius: 9px;
    background-color: #ffffff;
    color: #172033;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    outline: none;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}

.enterprise-input,
.enterprise-select {
    height: 44px;
    min-height: 44px;
    padding: 0 0.85rem;
}

.enterprise-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.75rem;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem 1rem;
    cursor: pointer;
}

.enterprise-select::-ms-expand {
    display: none;
}

.enterprise-textarea {
    min-height: 118px;
    max-height: 190px;
    padding: 0.85rem;
    resize: vertical;
}

.enterprise-input:focus,
.enterprise-select:focus,
.enterprise-textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.enterprise-input:disabled,
.enterprise-select:disabled,
.enterprise-textarea:disabled {
    border-color: #e4e7ec;
    background-color: #f2f4f7;
    color: #98a2b3;
    cursor: not-allowed;
    opacity: 1;
}

.enterprise-select:disabled {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2398A2B3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.enterprise-input-icon-wrapper {
    position: relative;
}

.enterprise-input-leading-icon {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    width: 1.05rem;
    height: 1.05rem;
    color: #98a2b3;
    transform: translateY(-50%);
    pointer-events: none;
}

.enterprise-input-with-icon {
    padding-left: 2.45rem;
}

.enterprise-form-hint {
    color: #667085;
    font-size: 0.76rem;
    line-height: 1.5;
}

.enterprise-table-wrapper {
    overflow-x: auto;
}

table.enterprise-table {
    width: 100%;
    border-collapse: collapse;
}

table.enterprise-table th {
    background: #f8fafc;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

table.enterprise-table th,
table.enterprise-table td {
    border-bottom: 1px solid #edf0f5;
    padding: 0.95rem 1rem;
    vertical-align: middle;
}

table.enterprise-table tbody tr:hover {
    background: #fcfcfd;
}

table.enterprise-table tbody tr:last-child td {
    border-bottom: 0;
}

.enterprise-table-primary {
    color: #172033;
    font-size: 0.88rem;
    font-weight: 700;
}

.enterprise-table-secondary,
.enterprise-table-description {
    margin-top: 0.22rem;
    color: #667085;
    font-size: 0.76rem;
    line-height: 1.45;
}

.enterprise-badge,
.enterprise-version-badge,
.enterprise-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.62rem;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.enterprise-badge {
    background: #f2f4f7;
    color: #475467;
}

.enterprise-version-badge {
    background: #eff6ff;
    color: #1d4ed8;
}

.enterprise-status-draft {
    background: #fffaeb;
    color: #b54708;
}

.enterprise-status-active {
    background: #ecfdf3;
    color: #067647;
}

.enterprise-status-archived {
    background: #f2f4f7;
    color: #475467;
}

.enterprise-table-action-column {
    width: 112px;
    text-align: right !important;
}

.enterprise-table-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.45rem;
}

.enterprise-inline-form {
    display: inline;
}

.enterprise-icon-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #d9dee8;
    border-radius: 9px;
    background: #ffffff;
    color: #475467;
    cursor: pointer;
}

.enterprise-icon-button:hover {
    border-color: #f97316;
    color: #ea580c;
}

.enterprise-icon-button-danger:hover {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
}

.enterprise-icon-button svg {
    width: 1.05rem;
    height: 1.05rem;
}

.enterprise-empty-state {
    display: grid;
    justify-items: center;
    padding: 4rem 1.5rem;
    text-align: center;
}

.enterprise-empty-state-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 17px;
    background: #fff7ed;
    color: #f97316;
}

.enterprise-empty-state-icon svg {
    width: 1.8rem;
    height: 1.8rem;
}

.enterprise-empty-state h3 {
    margin: 1rem 0 0;
    color: #172033;
}

.enterprise-empty-state p {
    max-width: 470px;
    margin: 0.55rem 0 1.25rem;
    color: #667085;
    line-height: 1.6;
}

.enterprise-pagination {
    border-top: 1px solid #edf0f5;
    padding: 1rem 1.25rem;
}

.enterprise-dialog {
    width: min(820px, calc(100vw - 2rem));
    max-width: 820px;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
}

.enterprise-dialog::backdrop {
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(3px);
}

.enterprise-dialog-panel {
    display: flex;
    max-height: calc(100vh - 2rem);
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
}

.enterprise-dialog-header {
    display: flex;
    flex: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #edf0f5;
    padding: 1.4rem 1.6rem;
}

.enterprise-dialog-header h3 {
    margin: 0;
    color: #172033;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
}

.enterprise-dialog-form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.enterprise-dialog-body {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 1.4rem 1.6rem;
}


.enterprise-dialog-actions {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin: 0;
    border-top: 1px solid #edf0f5;
    background: #ffffff;
    padding: 1rem 1.6rem 1.35rem;
}

.enterprise-dialog-actions .enterprise-button {
    min-height: 44px;
}


@media (max-width: 1100px) {
    .enterprise-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


}

@media (max-width: 720px) {
    .enterprise-page-header,
    .enterprise-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .enterprise-stat-grid,
    .enterprise-form-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-form-field-full,

    .enterprise-page-header > .enterprise-button {
        width: 100%;
    }

    .enterprise-dialog-actions .enterprise-button {
        width: 100%;
    }
}

/* D5.2.2.1 – Enterprise Mail Editor Workspace */
.mail-editor-page {
    display: grid;
    gap: 24px;
}

.mail-editor-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.mail-editor-page-header h2 {
    margin: 6px 0 8px;
    color: #172033;
    font-size: clamp(1.7rem, 2vw, 2.25rem);
    line-height: 1.15;
}

.mail-editor-page-header p {
    max-width: 760px;
    color: #667085;
}

.mail-editor-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    color: #667085;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.mail-editor-back-link:hover {
    color: #e56626;
}

.mail-editor-back-link svg {
    width: 17px;
    height: 17px;
}

.mail-editor-template-state {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mail-editor-workspace {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.07);
}

.mail-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    padding: 14px 18px;
    border-bottom: 1px solid #e4e7ec;
    background: #fff;
}

.mail-editor-toolbar-group,
.mail-editor-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.mail-editor-toolbar-label {
    margin-right: 5px;
    color: #98a2b3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mail-editor-toolbar-group > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    color: #667085;
    background: #f9fafb;
    font-size: 0.82rem;
    font-weight: 600;
}

.mail-editor-toolbar-group > button svg {
    width: 18px;
    height: 18px;
}

.mail-editor-toolbar button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.mail-editor-save-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 6px;
    color: #667085;
    font-size: 0.8rem;
}

.mail-editor-save-state > span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f79009;
}

.mail-editor-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    min-height: 680px;
}

.mail-editor-canvas-panel {
    min-width: 0;
    background: #f2f4f7;
}

.mail-editor-inspector {
    border-left: 1px solid #e4e7ec;
    background: #fff;
}

.mail-editor-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 73px;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e7ec;
    background: #fff;
}

.mail-editor-panel-header h3 {
    margin-top: 2px;
    color: #172033;
    font-size: 1rem;
}

.mail-editor-panel-eyebrow {
    color: #e56626;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mail-editor-block-count {
    padding: 5px 9px;
    border-radius: 999px;
    color: #475467;
    background: #f2f4f7;
    font-size: 0.72rem;
    font-weight: 700;
}

.mail-editor-canvas-scroll {
    height: auto;
    overflow: visible;
    padding: 38px;
}

.mail-editor-document {
    width: min(760px, 100%);
    min-height: 540px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.mail-editor-document-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 28px;
    border-bottom: 1px solid #eaecf0;
}

.mail-editor-document-header img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.mail-editor-document-header strong {
    color: #172033;
    font-size: 1.05rem;
}

.mail-editor-document-header strong span {
    color: #e56626;
}

.mail-editor-document-body {
    min-height: 410px;
    padding: 42px;
}

.mail-editor-document-footer {
    padding: 17px 28px;
    border-top: 1px solid #eaecf0;
    color: #98a2b3;
    background: #f9fafb;
    font-size: 0.72rem;
    text-align: center;
}

.mail-editor-empty-state {
    display: flex;
    min-height: 325px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 470px;
    margin: auto;
    text-align: center;
}

.mail-editor-empty-state-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 15px;
    color: #e56626;
    background: #fff3ed;
}

.mail-editor-empty-state-icon svg {
    width: 28px;
    height: 28px;
}

.mail-editor-empty-state h3 {
    margin: 6px 0 9px;
    color: #172033;
    font-size: 1.18rem;
}

.mail-editor-empty-state > p:not(.enterprise-eyebrow) {
    margin-bottom: 21px;
    color: #667085;
    line-height: 1.65;
}

.mail-editor-inspector-section {
    padding: 20px;
    border-bottom: 1px solid #eaecf0;
}

.mail-editor-inspector-section h4 {
    margin-bottom: 14px;
    color: #344054;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mail-editor-property-list {
    display: grid;
    gap: 13px;
}

.mail-editor-property-list > div {
    display: grid;
    gap: 3px;
}

.mail-editor-property-list dt {
    color: #98a2b3;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.mail-editor-property-list dd {
    overflow-wrap: anywhere;
    color: #344054;
    font-size: 0.84rem;
    font-weight: 600;
}

.mail-editor-inspector-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 22px 12px;
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    color: #98a2b3;
    background: #f9fafb;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.mail-editor-inspector-empty svg {
    width: 23px;
    height: 23px;
}

.mail-editor-statusbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    min-height: 38px;
    padding: 8px 18px;
    border-top: 1px solid #e4e7ec;
    color: #98a2b3;
    background: #f9fafb;
    font-size: 0.7rem;
}

.mail-editor-block + .mail-editor-block {
    margin-top: 20px;
}

.mail-editor-block h1 {
    font-size: 2rem;
}

.mail-editor-block h2 {
    font-size: 1.55rem;
}

.mail-editor-block h3 {
    font-size: 1.2rem;
}

.mail-editor-block p {
    color: #475467;
    line-height: 1.7;
}

.mail-editor-block hr {
    border: 0;
    border-top: 1px solid #d0d5dd;
}

@media (max-width: 1100px) {
    .mail-editor-workspace-grid {
        grid-template-columns: 1fr;
    }

    .mail-editor-inspector {
        border-top: 1px solid #e4e7ec;
        border-left: 0;
    }
}

@media (max-width: 760px) {
    .mail-editor-page-header,
    .mail-editor-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .mail-editor-toolbar-group,
    .mail-editor-toolbar-actions {
        flex-wrap: wrap;
    }

    .mail-editor-canvas-scroll {
        height: auto;
        padding: 18px;
    }

    .mail-editor-document-body {
        padding: 25px 20px;
    }

    .mail-editor-statusbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

.mail-editor-block{
    position:relative;
    border:0;
    border-radius:0;
    padding:0;
    cursor:pointer;
    transition:background .15s ease;
}

.mail-editor-block::after{
    content:"";
    position:absolute;
    inset:-2px;
    z-index:1;
    pointer-events:none;
    border:2px solid transparent;
    border-radius:6px;
    box-shadow:none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.mail-editor-block:hover{
    background:#FFF8F4;
}

.mail-editor-block:hover::after{
    border-color:#E56626;
}

.mail-editor-block-active{
    background:#FFF3ED;
}

.mail-editor-block-active::after{
    border-color:#E56626;
    box-shadow:0 0 0 3px rgba(229,102,38,.15);
}

.mail-editor-toolbar-group form {
    display: contents;
}

.mail-editor-toolbar-group form > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    color: #475467;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        background 0.15s ease;
}

.mail-editor-toolbar-group form > button:hover,
.mail-editor-toolbar-group form > button:focus-visible {
    border-color: #e56626;
    color: #c84f17;
    background: #fff8f4;
}

.mail-editor-toolbar-group form > button svg {
    width: 18px;
    height: 18px;
}

.mail-editor-empty-state-hint {
    margin: 0;
    color: #98a2b3;
    font-size: 0.8rem;
    font-weight: 600;
}

/* D5.2.2.4 – Block Editing Foundation */
.mail-editor-inspector-form {
    display: grid;
    gap: 16px;
}

.mail-editor-inspector-form[hidden],
.mail-editor-inspector-empty[hidden],
.mail-editor-inspector-form [hidden] {
    display: none;
}

.mail-editor-inspector-form .enterprise-textarea {
    min-height: 150px;
    resize: vertical;
}

.mail-editor-inspector-form .enterprise-button {
    width: 100%;
    justify-content: center;
}

/* D5.3.3.1 – Enterprise Dialog Runtime */
html.enterprise-dialog-open,
html.enterprise-dialog-open body {
    overflow: hidden;
}

/* ==========================================================
   ENTERPRISE RICH TEXT FOUNDATION
   ========================================================== */

.enterprise-rich-text-editor {
    min-height: 180px;
    overflow: hidden;
    border: 1px solid var(--enterprise-border-color, #d7dde5);
    border-radius: 8px;
    background: #ffffff;
}

.enterprise-rich-text-editor[hidden] {
    display: none;
}

.enterprise-rich-text-content {
    min-height: 180px;
    padding: 14px 16px;
    outline: none;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

.enterprise-rich-text-content,
.enterprise-rich-text-rendered {
    overflow-wrap: anywhere;
    word-break: normal;
}

.enterprise-rich-text-content > :first-child,
.enterprise-rich-text-rendered > :first-child {
    margin-top: 0;
}

.enterprise-rich-text-content > :last-child,
.enterprise-rich-text-rendered > :last-child {
    margin-bottom: 0;
}

.enterprise-rich-text-content p,
.enterprise-rich-text-rendered p {
    margin: 0 0 0.85em;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

.enterprise-rich-text-content ul,
.enterprise-rich-text-content ol,
.enterprise-rich-text-rendered ul,
.enterprise-rich-text-rendered ol {
    margin: 0 0 0.85em;
    padding-left: 1.75em;
    list-style-position: outside;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

.enterprise-rich-text-content ul,
.enterprise-rich-text-rendered ul {
    list-style-type: disc;
}

.enterprise-rich-text-content ol,
.enterprise-rich-text-rendered ol {
    list-style-type: decimal;
}

.enterprise-rich-text-content li,
.enterprise-rich-text-rendered li {
    margin: 0.35em 0;
    padding-left: 0.2em;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

.enterprise-rich-text-content li > p,
.enterprise-rich-text-rendered li > p {
    margin: 0;
}

.enterprise-rich-text-content li > ul,
.enterprise-rich-text-content li > ol,
.enterprise-rich-text-rendered li > ul,
.enterprise-rich-text-rendered li > ol {
    margin-top: 0.35em;
    margin-bottom: 0;
}

.enterprise-rich-text-content a,
.enterprise-rich-text-rendered a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.enterprise-rich-text-content strong,
.enterprise-rich-text-rendered strong {
    font-weight: 700;
}

.enterprise-rich-text-content em,
.enterprise-rich-text-rendered em {
    font-style: italic;
}

.enterprise-rich-text-content u,
.enterprise-rich-text-rendered u {
    text-decoration: underline;
}

.enterprise-rich-text-content br,
.enterprise-rich-text-rendered br {
    content: "";
}

.enterprise-rich-text-content:focus {
    box-shadow: inset 0 0 0 2px rgba(229, 103, 23, 0.18);
}

.enterprise-rich-text-content p.is-editor-empty:first-child::before {
    height: 0;
    float: left;
    pointer-events: none;
    color: #8993a4;
    content: attr(data-placeholder);
}

/* ==========================================================
   D5.5.8.3 – Enterprise Rich Text Formatting Toolbar
   ========================================================== */

.enterprise-rich-text-formatting-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 4px;
    padding: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #f7f8fa;
}

.enterprise-rich-text-format-button {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #303846;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 120ms ease,
        border-color 120ms ease,
        color 120ms ease;
}

.enterprise-rich-text-format-button:hover,
.enterprise-rich-text-format-button:focus-visible {
    border-color: #c7ced9;
    background: #ffffff;
    outline: none;
}

.enterprise-rich-text-format-button.is-active,
.enterprise-rich-text-format-button[aria-pressed="true"] {
    border-color: #f26a21;
    background: #fff1e8;
    color: #b9470c;
}

.enterprise-rich-text-format-button strong,
.enterprise-rich-text-format-button em,
.enterprise-rich-text-underline-symbol {
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
}

.enterprise-rich-text-underline-symbol {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.enterprise-rich-text-clear-symbol {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* Enterprise Mail Editor Block Actions */
.mail-editor-block-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.mail-editor-block-actions[hidden] {
    display: none;
}

.mail-editor-block-actions form {
    width: 100%;
    margin: 0;
}

.mail-editor-block-action-button {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding-inline: 1rem;
    text-align: left;
}

.mail-editor-block-action-button .enterprise-button-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.mail-editor-block-actions .enterprise-button-danger {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b42318;
    box-shadow: none;
}

.mail-editor-block-actions .enterprise-button-danger:hover {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

/* ==========================================================
   Enterprise Asset Library
   ========================================================== */

.enterprise-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.enterprise-asset-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e7ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgb(15 23 42 / 4%);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease;
}


.enterprise-asset-card.is-archived {
    background: #f8fafc;
    border-color: #d0d5dd;
    box-shadow: 0 2px 8px rgb(15 23 42 / 3%);
}

.enterprise-asset-card.is-archived:hover {
    transform: none;
    box-shadow: 0 3px 10px rgb(15 23 42 / 4%);
    border-color: #c7ced8;
}

.enterprise-asset-card.is-archived .enterprise-asset-card-actions {
    background: #f3f4f6;
    border-bottom-color: #d9dee8;
}

.enterprise-asset-card.is-archived .enterprise-asset-preview img {
    filter: grayscale(30%) brightness(0.95) contrast(0.94);
}

.enterprise-asset-card.is-archived .enterprise-asset-card-body {
    opacity: 0.88;
}

.enterprise-status-archived {
    background: #eef1f4;
    border: 1px solid #cfd6df;
    color: #4b5563;
}

.enterprise-asset-card.is-archived .enterprise-asset-preview img {
    filter: grayscale(18%) brightness(0.92);
    transition: filter 160ms ease;
}

.enterprise-asset-card.is-archived .enterprise-asset-card-body {
    opacity: 0.92;
}

.enterprise-status-archived {
    border: 1px solid #d0d5dd;
    font-weight: 800;
}

.enterprise-asset-card.is-archived:hover {
    transform: translateY(-1px);
}

.enterprise-asset-card.is-archived .enterprise-asset-action-button[data-asset-lifecycle] {
    color: #475467;
}

.enterprise-asset-card.is-archived .enterprise-asset-action-button[data-asset-lifecycle]:hover,
.enterprise-asset-card.is-archived .enterprise-asset-action-button[data-asset-lifecycle]:focus-visible {
    color: #067647;
}

.enterprise-asset-card:hover {
    border-color: #cbd2dc;
    box-shadow: 0 8px 24px rgb(15 23 42 / 8%);
    transform: translateY(-1px);
}

.enterprise-asset-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-bottom: 1px solid #e7eaf0;
    background:
        linear-gradient(45deg, #f4f5f7 25%, transparent 25%),
        linear-gradient(-45deg, #f4f5f7 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f4f5f7 75%),
        linear-gradient(-45deg, transparent 75%, #f4f5f7 75%),
        #ffffff;
    background-position:
        0 0,
        0 8px,
        8px -8px,
        -8px 0;
    background-size: 16px 16px;
}

.enterprise-asset-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.enterprise-asset-file-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: #667085;
}

.enterprise-asset-file-placeholder svg {
    width: 100%;
    height: 100%;
}

.enterprise-asset-card-body {
    padding: 1rem;
}

.enterprise-asset-type {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-bottom: 0.55rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #fff1e8;
    color: #b9470c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.enterprise-asset-card-body h3 {
    margin: 0;
    overflow: hidden;
    color: #182230;
    font-size: 0.98rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-asset-file-name {
    margin: 0.35rem 0 0;
    overflow: hidden;
    color: #667085;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-asset-meta {
    display: grid;
    gap: 0.45rem;
    margin: 0.9rem 0 0;
    padding-top: 0.8rem;
    border-top: 1px solid #edf0f4;
}

.enterprise-asset-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.enterprise-asset-meta dt,
.enterprise-asset-meta dd {
    margin: 0;
    font-size: 0.78rem;
}

.enterprise-asset-meta dt {
    color: #667085;
}

.enterprise-asset-meta dd {
    color: #344054;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 720px) {
    .enterprise-asset-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}


/*
 * Enterprise Native Visibility Contract
 *
 * Das native hidden-Attribut besitzt Vorrang vor sämtlichen
 * Komponenten- und Alert-Darstellungen.
 */
[hidden] {
    display: none !important;
}

/* ==========================================================
   D5.6.4 – Enterprise Upload Experience
   ========================================================== */

.enterprise-asset-upload-dialog {
    width: min(920px, calc(100vw - 2rem));
    max-width: 920px;
}

.enterprise-dialog-description {
    max-width: 620px;
    margin: 0.55rem 0 0;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.5;
}

.enterprise-upload-section + .enterprise-upload-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #edf0f5;
}

.enterprise-upload-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.enterprise-upload-section-heading h4 {
    margin: 0;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
}

.enterprise-upload-section-heading p {
    margin: 0.25rem 0 0;
    color: #667085;
    font-size: 0.84rem;
    line-height: 1.5;
}

.enterprise-upload-section-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    color: #ea580c;
    background: #fff7ed;
}

.enterprise-upload-section-icon svg {
    width: 20px;
    height: 20px;
}

.enterprise-upload-dropzone {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
    border: 2px dashed #cfd5df;
    border-radius: 14px;
    padding: 1.5rem;
    color: #344054;
    background:
        linear-gradient(
            180deg,
            rgba(249, 250, 251, 0.9),
            rgba(255, 255, 255, 1)
        );
    cursor: pointer;
    outline: none;
    transition:
        border-color 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.enterprise-upload-dropzone:hover,
.enterprise-upload-dropzone:focus-visible,
.enterprise-upload-dropzone.is-dragover {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.enterprise-upload-dropzone.is-dragover {
    transform: scale(1.005);
}

.enterprise-upload-dropzone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 0.25rem;
    border-radius: 15px;
    color: #ea580c;
    background: #ffedd5;
}

.enterprise-upload-dropzone-icon svg {
    width: 28px;
    height: 28px;
}

.enterprise-upload-dropzone strong {
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
}

.enterprise-upload-dropzone > span {
    color: #475467;
    font-size: 0.9rem;
}

.enterprise-upload-dropzone small {
    margin-top: 0.35rem;
    color: #98a2b3;
    font-size: 0.78rem;
    text-align: center;
}

.enterprise-upload-selection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    color: #344054;
    font-size: 0.85rem;
    font-weight: 700;
}

.enterprise-text-button {
    border: 0;
    padding: 0;
    color: #ea580c;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
}

.enterprise-text-button:hover {
    text-decoration: underline;
}

.enterprise-text-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.enterprise-upload-preview-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.enterprise-upload-preview-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1rem;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e7ee;
    border-radius: 13px;
    padding: 0.75rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.enterprise-upload-preview-media {
    display: flex;
    width: 150px;
    height: 120px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background:
        linear-gradient(45deg, #f2f4f7 25%, transparent 25%),
        linear-gradient(-45deg, #f2f4f7 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f2f4f7 75%),
        linear-gradient(-45deg, transparent 75%, #f2f4f7 75%);
    background-position:
        0 0,
        0 8px,
        8px -8px,
        -8px 0;
    background-size: 16px 16px;
}

.enterprise-upload-preview-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.enterprise-upload-preview-placeholder {
    display: flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #475467;
    background: #f2f4f7;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.enterprise-upload-preview-body {
    min-width: 0;
}

.enterprise-upload-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.enterprise-upload-preview-header > div {
    min-width: 0;
}

.enterprise-upload-preview-header strong {
    display: block;
    overflow: hidden;
    color: #182230;
    font-size: 0.9rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-upload-preview-header span {
    display: block;
    margin-top: 0.25rem;
    overflow: hidden;
    color: #667085;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-upload-preview-remove {
    display: flex;
    flex: none;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    color: #667085;
    background: #ffffff;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition:
        color 140ms ease,
        border-color 140ms ease,
        background 140ms ease;
}

.enterprise-upload-preview-remove:hover {
    border-color: #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

.enterprise-upload-preview-remove:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.enterprise-upload-preview-title-field {
    display: block;
    margin-top: 1rem;
}

.enterprise-upload-preview-title-field > span {
    display: block;
    margin-bottom: 0.35rem;
    color: #344054;
    font-size: 0.76rem;
    font-weight: 800;
}

.enterprise-upload-progress {
    margin-top: 1.5rem;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 1rem;
    background: #fffaf5;
}

.enterprise-upload-progress-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.enterprise-upload-progress-heading strong {
    display: block;
    overflow: hidden;
    color: #9a3412;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-upload-progress-heading span {
    display: block;
    margin-top: 0.2rem;
    color: #c2410c;
    font-size: 0.75rem;
}

.enterprise-upload-progress-heading > span {
    flex: none;
    margin-top: 0;
    font-weight: 900;
}

.enterprise-upload-progress-track {
    height: 8px;
    margin-top: 0.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #ffedd5;
}

.enterprise-upload-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #f97316;
    transition: width 120ms linear;
}

@media (max-width: 720px) {
    .enterprise-upload-preview-card {
        grid-template-columns: 1fr;
    }

    .enterprise-upload-preview-media {
        width: 100%;
        height: 180px;
    }

    .enterprise-upload-selection-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* END D5.6.4 – Enterprise Upload Experience */

/* D5.7.1A.6 – Central Enterprise Filter Contract */

/*
 * Wiederverwendbarer zentraler Modifikator für Filterleisten
 * mit Suchfeld, einem Auswahlfeld und einer Aktion.
 */
.enterprise-filter-grid-three-column {
    grid-template-columns:
        minmax(260px, 2fr)
        minmax(170px, 1fr)
        auto;
}

/* Enterprise DAM Type Navigation */

.enterprise-asset-filter-chips {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0 1.25rem;
    border-top: 1px solid #e5e9ef;
}

.enterprise-asset-filter-chip {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #667085;
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition:
        color 140ms ease,
        background-color 140ms ease;
}

.enterprise-asset-filter-chip svg {
    display: none;
}

.enterprise-asset-filter-chip::after {
    position: absolute;
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
    content: "";
}

.enterprise-asset-filter-chip:hover,
.enterprise-asset-filter-chip:focus-visible {
    background: #f8fafc;
    color: #1f2937;
    outline: none;
}

.enterprise-asset-filter-chip.is-active {
    background: transparent;
    color: #c95013;
}

.enterprise-asset-filter-chip.is-active::after {
    background: #f26a21;
}

/* Enterprise Asset Discovery Metadata */

.enterprise-asset-card-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.enterprise-asset-collection-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid #e1e6ed;
    border-radius: 5px;
    background: #f6f8fa;
    color: #596579;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
}

.enterprise-asset-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.enterprise-asset-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 4px 7px;
    border: 1px solid #e1e6ed;
    border-radius: 5px;
    background: #f8fafc;
    color: #667085;
    font-size: 0.67rem;
    font-weight: 700;
    text-decoration: none;
}

.enterprise-asset-collection-badge svg,
.enterprise-asset-tag-chip svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
}

.enterprise-asset-collection-badge:hover,
.enterprise-asset-collection-badge:focus-visible,
.enterprise-asset-tag-chip:hover,
.enterprise-asset-tag-chip:focus-visible {
    border-color: #f26a21;
    background: #fff8f3;
    color: #c95013;
    outline: none;
}

.enterprise-asset-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 9px 0 0;
    color: #667085;
    font-size: 0.79rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.enterprise-asset-card .enterprise-asset-meta {
    margin-top: 14px;
}

@media (max-width: 900px) {
    .enterprise-filter-grid-three-column {
        grid-template-columns: 1fr 1fr;
    }

    .enterprise-filter-grid-three-column .enterprise-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .enterprise-filter-grid-three-column {
        grid-template-columns: 1fr;
    }

    .enterprise-filter-grid-three-column .enterprise-filter-actions {
        grid-column: auto;
    }

    .enterprise-filter-grid-three-column .enterprise-button {
        width: 100%;
    }

    .enterprise-asset-filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-inline: 0.75rem;
        scrollbar-width: thin;
    }

    .enterprise-asset-filter-chip {
        flex: 0 0 auto;
        padding-inline: 12px;
    }
}

/*
|--------------------------------------------------------------------------
| D5.7.1B.2 – Enterprise Asset Management UI
|--------------------------------------------------------------------------
*/

.enterprise-asset-preview {
    position: relative;
}

.enterprise-asset-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--enterprise-border);
    background: var(--enterprise-surface);
}

.enterprise-asset-card-actions-label {
    color: var(--enterprise-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.enterprise-asset-card-actions-buttons {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.enterprise-asset-action-button {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: var(--enterprise-text-muted);
    background: transparent;
    box-shadow: none;
}

.enterprise-asset-action-button svg {
    width: 1.1rem;
    height: 1.1rem;
}

.enterprise-asset-action-button:hover,
.enterprise-asset-action-button:focus-visible {
    color: var(--enterprise-primary);
    border-color: var(--enterprise-border);
    background: var(--enterprise-surface-muted);
}

.enterprise-icon-button-danger.enterprise-asset-action-button:hover,
.enterprise-icon-button-danger.enterprise-asset-action-button:focus-visible {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(220, 38, 38, 0.06);
}

.enterprise-asset-management-dialog {
    width: min(46rem, calc(100vw - 2rem));
}

.enterprise-asset-delete-dialog {
    width: min(34rem, calc(100vw - 2rem));
}

.enterprise-asset-management-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.enterprise-asset-management-field-full {
    grid-column: 1 / -1;
}

.enterprise-asset-delete-warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 0.85rem;
    background: rgba(239, 68, 68, 0.08);
}

.enterprise-asset-delete-warning-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 0.7rem;
    color: #f87171;
    background: rgba(239, 68, 68, 0.14);
}

.enterprise-asset-delete-warning-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.enterprise-asset-delete-warning strong {
    display: block;
    margin-bottom: 0.35rem;
}

.enterprise-asset-delete-warning p {
    margin: 0;
    color: var(--enterprise-text-muted);
}

.enterprise-button-danger {
    color: #ffffff;
    border-color: #dc2626;
    background: #dc2626;
}

.enterprise-button-danger:hover,
.enterprise-button-danger:focus-visible {
    border-color: #b91c1c;
    background: #b91c1c;
}

.enterprise-asset-card.is-removing {
    pointer-events: none;
    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

@media (max-width: 720px) {
    .enterprise-asset-card-actions {
        opacity: 1;
        transform: none;
    }

    .enterprise-asset-management-form-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-asset-management-field-full {
        grid-column: auto;
    }
}

/*
|--------------------------------------------------------------------------
| D5.7.1B.3B – Enterprise Asset Usage Dialog
|--------------------------------------------------------------------------
*/

.enterprise-asset-usage-dialog {
    width: min(42rem, calc(100vw - 2rem));
}

.enterprise-asset-usage-loading {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 7rem;
    padding: 1.25rem;
    border: 1px solid var(--enterprise-border);
    border-radius: 0.85rem;
    background: var(--enterprise-surface-muted);
}

.enterprise-asset-usage-loading[hidden] {
    display: none;
}

.enterprise-asset-usage-loading strong {
    display: block;
    margin-bottom: 0.3rem;
}

.enterprise-asset-usage-loading p {
    margin: 0;
    color: var(--enterprise-text-muted);
}

.enterprise-asset-usage-spinner {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--enterprise-border);
    border-top-color: var(--enterprise-primary);
    border-radius: 999px;
    animation: enterprise-asset-usage-spin 800ms linear infinite;
}

@keyframes enterprise-asset-usage-spin {
    to {
        transform: rotate(360deg);
    }
}

.enterprise-asset-usage-result[hidden] {
    display: none;
}

.enterprise-asset-usage-warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 0.85rem;
    background: rgba(245, 158, 11, 0.09);
}

.enterprise-asset-usage-warning-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: 0.75rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.enterprise-asset-usage-warning-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.enterprise-asset-usage-warning strong {
    display: block;
    margin-bottom: 0.35rem;
}

.enterprise-asset-usage-warning p {
    margin: 0;
    color: var(--enterprise-text-muted);
}

.enterprise-asset-usage-section {
    margin-top: 1.25rem;
}

.enterprise-asset-usage-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.enterprise-asset-usage-section-header h4 {
    margin: 0.15rem 0 0;
    font-size: 1rem;
}

.enterprise-asset-usage-count {
    display: grid;
    min-width: 2rem;
    height: 2rem;
    padding-inline: 0.55rem;
    place-items: center;
    border: 1px solid var(--enterprise-border);
    border-radius: 999px;
    color: var(--enterprise-primary);
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--enterprise-surface-muted);
}

.enterprise-asset-usage-list {
    display: grid;
    gap: 0.75rem;
}

.enterprise-asset-usage-reference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--enterprise-border);
    border-radius: 0.75rem;
    background: var(--enterprise-surface);
}

.enterprise-asset-usage-reference-content {
    min-width: 0;
}

.enterprise-asset-usage-reference-type {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--enterprise-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.enterprise-asset-usage-reference-label {
    display: block;
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-asset-usage-reference-location {
    display: block;
    margin-top: 0.25rem;
    color: var(--enterprise-text-muted);
    font-size: 0.78rem;
}

.enterprise-asset-usage-reference-action {
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .enterprise-asset-usage-reference {
        align-items: stretch;
        flex-direction: column;
    }

    .enterprise-asset-usage-reference-action {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .enterprise-asset-usage-spinner {
        animation-duration: 1600ms;
    }
}

/*
|--------------------------------------------------------------------------
| D5.7.1C.3.3 – Enterprise Asset Detail Layout
|--------------------------------------------------------------------------
*/

.enterprise-asset-detail-dialog {
    width: min(1120px, calc(100vw - 32px));
    max-width: 1120px;
}

.enterprise-asset-detail-dialog .enterprise-dialog-panel {
    width: 100%;
    max-width: none;
}

.enterprise-asset-detail-dialog .enterprise-dialog-body {
    padding: 0;
}

.enterprise-asset-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    min-height: 540px;
}

.enterprise-asset-detail-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 540px;
    padding: 32px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(148, 163, 184, 0.12),
            rgba(148, 163, 184, 0.04)
        );
    border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.enterprise-asset-detail-preview img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 580px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.18),
        0 2px 8px rgba(15, 23, 42, 0.08);
}

.enterprise-asset-detail-preview img[hidden],
.enterprise-asset-detail-placeholder[hidden] {
    display: none;
}

.enterprise-asset-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(320px, 100%);
    min-height: 260px;
    padding: 36px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 16px;
    color: inherit;
    text-align: center;
    background: rgba(148, 163, 184, 0.08);
}

.enterprise-asset-detail-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.72;
}

.enterprise-asset-detail-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
}

.enterprise-asset-detail-content {
    min-width: 0;
    padding: 30px;
    overflow-y: auto;
}

.enterprise-asset-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.enterprise-asset-detail-badges > span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.enterprise-asset-detail-dialog .enterprise-status-active {
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(34, 197, 94, 0.12);
}

.enterprise-asset-detail-dialog .enterprise-status-archived {
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.12);
}

.enterprise-asset-detail-description {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    background: rgba(148, 163, 184, 0.06);
}

.enterprise-asset-detail-description[hidden] {
    display: none;
}

.enterprise-asset-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.enterprise-asset-detail-list > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 0.58fr);
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.enterprise-asset-detail-list > div:first-child {
    padding-top: 0;
}

.enterprise-asset-detail-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.enterprise-asset-detail-list > div[hidden] {
    display: none;
}

.enterprise-asset-detail-list dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.68;
}

.enterprise-asset-detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.45;
}

@media (max-width: 880px) {
    .enterprise-asset-detail-dialog {
        width: min(720px, calc(100vw - 24px));
    }

    .enterprise-asset-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .enterprise-asset-detail-preview {
        min-height: 320px;
        padding: 22px;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    }

    .enterprise-asset-detail-preview img {
        max-height: 420px;
    }
}

@media (max-width: 560px) {
    .enterprise-asset-detail-dialog {
        width: calc(100vw - 16px);
    }

    .enterprise-asset-detail-preview {
        min-height: 240px;
        padding: 16px;
    }

    .enterprise-asset-detail-content {
        padding: 22px 18px;
    }

    .enterprise-asset-detail-list > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
        padding: 12px 0;
    }
}

/*
|--------------------------------------------------------------------------
| D5.7.1C.3.4 – Enterprise Asset Detail UX
|--------------------------------------------------------------------------
*/

.enterprise-asset-detail-preview {
    align-items: stretch;
    padding: 28px 28px 82px;
}

.enterprise-asset-detail-preview > img {
    align-self: center;
}

.enterprise-asset-detail-preview-meta {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 62px;
    padding: 13px 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.79rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
}

.enterprise-asset-detail-preview-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.enterprise-asset-detail-preview-meta svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    opacity: 0.68;
}

.enterprise-asset-detail-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.enterprise-asset-detail-badges {
    margin-bottom: 0;
}

.enterprise-asset-detail-group {
    display: grid;
    gap: 13px;
}

.enterprise-asset-detail-group-title {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    opacity: 0.72;
}

.enterprise-asset-detail-description {
    margin: 0;
    padding: 16px 17px;
}

.enterprise-asset-detail-empty {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    opacity: 0.6;
}

.enterprise-asset-detail-empty[hidden] {
    display: none;
}

.enterprise-asset-detail-list > div {
    grid-template-columns: minmax(138px, 0.42fr) minmax(0, 0.58fr);
    gap: 18px;
}

.enterprise-asset-detail-list dt {
    display: flex;
    align-items: center;
    gap: 9px;
}

.enterprise-asset-detail-list dt svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    opacity: 0.7;
}

.enterprise-asset-detail-list dd {
    align-self: center;
}

.enterprise-asset-detail-tags {
    display: grid;
    gap: 11px;
    padding-top: 3px;
}

.enterprise-asset-detail-tags-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.72;
}

.enterprise-asset-detail-tags-label svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.enterprise-asset-detail-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.enterprise-asset-detail-tags-list[hidden] {
    display: none;
}

.enterprise-asset-detail-tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 8px;
    color: rgb(67, 56, 202);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    background: rgba(99, 102, 241, 0.08);
    overflow-wrap: anywhere;
}

@media (max-width: 880px) {
    .enterprise-asset-detail-preview {
        padding: 22px 22px 78px;
    }

    .enterprise-asset-detail-content {
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .enterprise-asset-detail-preview {
        padding: 16px 16px 92px;
    }

    .enterprise-asset-detail-preview-meta {
        justify-content: flex-start;
        gap: 8px 10px;
        padding: 12px 16px;
    }

    .enterprise-asset-detail-preview-meta > span[aria-hidden="true"] {
        display: none;
    }

    .enterprise-asset-detail-list > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }
}

/*
|--------------------------------------------------------------------------
| D5.7.1C.3.5 – Enterprise Asset Visual Polish
|--------------------------------------------------------------------------
*/

.enterprise-asset-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.enterprise-asset-detail-badges > span,
.enterprise-asset-detail-tag-chip,
.enterprise-asset-card .enterprise-status-badge,
.enterprise-asset-card .enterprise-asset-type,
.enterprise-asset-card .enterprise-asset-collection-badge,
.enterprise-asset-card .enterprise-asset-tag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 32px;
    margin: 0;
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}

.enterprise-asset-detail-tags-list {
    align-items: center;
}

.enterprise-asset-detail-list dt,
.enterprise-asset-detail-list dd {
    min-height: 32px;
}

.enterprise-asset-detail-list dt {
    align-items: center;
}

.enterprise-asset-detail-list dd {
    display: flex;
    align-items: center;
}

.enterprise-asset-detail-list [data-asset-detail-collection] {
    width: fit-content;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 9px;
    color: rgb(29, 78, 216);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    background: rgba(59, 130, 246, 0.08);
}

.enterprise-asset-detail-group-title {
    text-transform: none;
    letter-spacing: 0.025em;
}

@media (max-width: 560px) {
    .enterprise-asset-detail-badges > span,
    .enterprise-asset-detail-tag-chip,
    .enterprise-asset-detail-list [data-asset-detail-collection] {
        min-height: 30px;
        padding: 5px 10px;
    }
}

/*
|--------------------------------------------------------------------------
| Enterprise Chip Overflow Fix
|--------------------------------------------------------------------------
*/

.enterprise-asset-detail-tag-chip,
.enterprise-asset-detail-list [data-asset-detail-collection] {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/*
|--------------------------------------------------------------------------
| D5.7.1C.3.6 – Enterprise Asset Card Layout Polish
|--------------------------------------------------------------------------
|
| Reines UI-/UX-Release:
| - breitere Desktop-Asset-Cards
| - größere Vorschaufläche
| - verbesserte Textdarstellung
| - konsistente Abstände
| - größere Aktionsflächen
| - unveränderte Business- und JavaScript-Runtime
|
*/

/*
|--------------------------------------------------------------------------
| Enterprise Asset Grid
|--------------------------------------------------------------------------
*/

.enterprise-asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: start;
    align-items: stretch;
    gap: 1.5rem;
}

/*
|--------------------------------------------------------------------------
| Enterprise Asset Card
|--------------------------------------------------------------------------
*/

.enterprise-asset-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 100%;
}

/*
|--------------------------------------------------------------------------
| Enterprise Asset Preview
|--------------------------------------------------------------------------
*/

.enterprise-asset-card .enterprise-asset-preview {
    width: 100%;
    min-height: 17rem;
    aspect-ratio: 16 / 10;
}

.enterprise-asset-card .enterprise-asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
|--------------------------------------------------------------------------
| Enterprise Asset Card Body
|--------------------------------------------------------------------------
*/

.enterprise-asset-card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.25rem;
}

.enterprise-asset-card-badges {
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/*
|--------------------------------------------------------------------------
| Enterprise Asset Title
|--------------------------------------------------------------------------
*/

.enterprise-asset-card [data-asset-management-title],
.enterprise-asset-card-body h3 {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.35;
}

/*
|--------------------------------------------------------------------------
| Enterprise Asset Filename
|--------------------------------------------------------------------------
*/

.enterprise-asset-card [data-asset-original-name],
.enterprise-asset-card .enterprise-asset-original-name {
    display: -webkit-box;
    min-width: 0;
    margin-top: 0.375rem;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Enterprise Asset Description
|--------------------------------------------------------------------------
*/

.enterprise-asset-card [data-asset-management-description] {
    display: -webkit-box;
    min-width: 0;
    margin-top: 0.875rem;
    overflow: hidden;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.5;
}

/*
|--------------------------------------------------------------------------
| Enterprise Asset Collection And Tags
|--------------------------------------------------------------------------
*/

.enterprise-asset-card .enterprise-asset-tags {
    gap: 0.5rem;
    margin-top: 1rem;
}

.enterprise-asset-card .enterprise-status-badge,
.enterprise-asset-card .enterprise-asset-type,
.enterprise-asset-card .enterprise-asset-collection-badge,
.enterprise-asset-card .enterprise-asset-tag-chip {
    max-width: 100%;
    min-height: 1.75rem;
    white-space: nowrap;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    text-overflow: ellipsis;
}

/*
|--------------------------------------------------------------------------
| Enterprise Asset Metadata
|--------------------------------------------------------------------------
*/

.enterprise-asset-card .enterprise-asset-meta {
    gap: 0.625rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.enterprise-asset-card .enterprise-asset-meta > div {
    min-width: 0;
    line-height: 1.45;
}

.enterprise-asset-card .enterprise-asset-meta dt,
.enterprise-asset-card .enterprise-asset-meta dd {
    min-width: 0;
}

.enterprise-asset-card .enterprise-asset-meta dd {
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    text-overflow: ellipsis;
}

/*
|--------------------------------------------------------------------------
| Enterprise Asset Action Toolbar
|--------------------------------------------------------------------------
*/

.enterprise-asset-card-actions {
    padding: 0.875rem 1rem;
}

.enterprise-asset-card-actions-buttons {
    gap: 0.375rem;
}

.enterprise-asset-card-actions .enterprise-asset-action-button,
.enterprise-asset-card-actions .enterprise-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
}

/*
|--------------------------------------------------------------------------
| Responsive Contract
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {
    .enterprise-asset-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .enterprise-asset-card {
        width: 100%;
        max-width: none;
    }

    .enterprise-asset-card .enterprise-asset-preview {
        min-height: 13rem;
    }

    .enterprise-asset-card-body {
        padding: 1rem;
    }
}

/* =========================================================
   ENTERPRISE PAGINATION CONTRACT – D5.x.2
   ========================================================= */

.enterprise-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid var(--enterprise-border-color, #d9dee7);
    border-radius: 12px;
    background: var(--enterprise-surface, #ffffff);
}

.enterprise-pagination-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    color: var(--enterprise-text-muted, #667085);
    font-size: 14px;
    line-height: 1.4;
}

.enterprise-pagination-summary strong {
    color: var(--enterprise-text, #1d2939);
    font-weight: 600;
}

.enterprise-pagination-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.enterprise-pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.enterprise-pagination-button,
.enterprise-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--enterprise-border-color, #d9dee7);
    border-radius: 8px;
    background: var(--enterprise-surface, #ffffff);
    color: var(--enterprise-text, #1d2939);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.enterprise-pagination-button {
    gap: 7px;
    padding: 0 12px;
    white-space: nowrap;
}

.enterprise-pagination-button:hover,
.enterprise-pagination-page:hover {
    border-color: var(--enterprise-primary, #e56b1f);
    color: var(--enterprise-primary, #e56b1f);
}

.enterprise-pagination-button:focus-visible,
.enterprise-pagination-page:focus-visible,
.enterprise-pagination-size select:focus-visible {
    outline: 3px solid rgba(229, 107, 31, 0.18);
    outline-offset: 2px;
}

.enterprise-pagination-page.is-current {
    border-color: var(--enterprise-primary, #e56b1f);
    background: var(--enterprise-primary, #e56b1f);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(229, 107, 31, 0.18);
    cursor: default;
}

.enterprise-pagination-button.is-disabled {
    border-color: var(--enterprise-border-color, #d9dee7);
    background: var(--enterprise-surface-muted, #f8fafc);
    color: var(--enterprise-text-disabled, #98a2b3);
    cursor: not-allowed;
    opacity: 0.72;
}

.enterprise-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 38px;
    color: var(--enterprise-text-muted, #667085);
    font-size: 14px;
    font-weight: 600;
}

.enterprise-pagination-size {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
}

.enterprise-pagination-size label {
    color: var(--enterprise-text-muted, #667085);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.enterprise-pagination-size select {
    min-width: 76px;
    min-height: 38px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--enterprise-border-color, #d9dee7);
    border-radius: 8px;
    background-color: var(--enterprise-surface, #ffffff);
    color: var(--enterprise-text, #1d2939);
    font: inherit;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .enterprise-pagination {
        grid-template-columns: 1fr auto;
    }

    .enterprise-pagination-navigation {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .enterprise-pagination-summary {
        grid-column: 1;
        grid-row: 2;
    }

    .enterprise-pagination-size {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 700px) {
    .enterprise-pagination {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px;
    }

    .enterprise-pagination-navigation {
        width: 100%;
        justify-content: space-between;
    }

    .enterprise-pagination-pages {
        flex: 1 1 auto;
        min-width: 0;
    }

    .enterprise-pagination-pages
        .enterprise-pagination-page:not(.is-current) {
        display: none;
    }

    .enterprise-pagination-ellipsis {
        display: none;
    }

    .enterprise-pagination-page.is-current::before {
        content: "Seite ";
    }

    .enterprise-pagination-button {
        min-width: 42px;
        padding: 0 10px;
    }

    .enterprise-pagination-button-label {
        display: none;
    }

    .enterprise-pagination-summary {
        justify-content: center;
        text-align: center;
    }

    .enterprise-pagination-size {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* D5.x.4.2 – ENTERPRISE PAGINATION VISUAL POLISH START */

/*
 * Dieser Contract verfeinert ausschließlich die zentrale
 * Enterprise-Pagination. Fachliche Pagination-Logik,
 * Query-Parameter und Paginator-Runtime bleiben unverändert.
 */

.enterprise-pagination {
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-color: rgba(203, 213, 225, 0.72);
    border-radius: 0.875rem;
    box-shadow: 0 0.25rem 1.25rem rgba(15, 23, 42, 0.035);
}

/*
 * Ergebnisanzeige
 */

.enterprise-pagination-summary,
.enterprise-pagination__summary,
.enterprise-pagination [class*="pagination-summary"] {
    color: #64748b;
    font-size: 0.925rem;
    font-weight: 500;
    line-height: 1.4;
}

.enterprise-pagination-summary strong,
.enterprise-pagination__summary strong,
.enterprise-pagination [class*="pagination-summary"] strong {
    color: #1e293b;
    font-weight: 700;
}

/*
 * Navigation
 */

.enterprise-pagination-navigation,
.enterprise-pagination__navigation,
.enterprise-pagination [class*="pagination-navigation"] {
    gap: 0.5rem;
}

.enterprise-pagination a,
.enterprise-pagination button,
.enterprise-pagination [role="button"] {
    min-height: 2.5rem;
    border-color: rgba(203, 213, 225, 0.82);
    border-radius: 0.65rem;
    box-shadow: none;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.enterprise-pagination a:hover,
.enterprise-pagination button:hover:not(:disabled),
.enterprise-pagination [role="button"]:hover {
    border-color: rgba(249, 115, 22, 0.34);
    background: rgba(249, 115, 22, 0.045);
    color: #c2410c;
    transform: translateY(-1px);
}

.enterprise-pagination a:focus-visible,
.enterprise-pagination button:focus-visible,
.enterprise-pagination select:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.28);
    outline-offset: 2px;
}

/*
 * Zurück / Weiter
 */

.enterprise-pagination-previous,
.enterprise-pagination-next,
.enterprise-pagination__previous,
.enterprise-pagination__next,
.enterprise-pagination [class*="pagination-previous"],
.enterprise-pagination [class*="pagination-next"] {
    padding-inline: 0.875rem;
    background: #ffffff;
    color: #64748b;
    font-weight: 600;
}

.enterprise-pagination [aria-disabled="true"],
.enterprise-pagination button:disabled,
.enterprise-pagination .is-disabled {
    border-color: rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.82);
    color: #b6c0ce;
    box-shadow: none;
    cursor: default;
    transform: none;
}

/*
 * Seitennummern
 */

.enterprise-pagination-page,
.enterprise-pagination__page,
.enterprise-pagination [class*="pagination-page"] {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.65rem;
    box-shadow: none;
    font-size: 0.925rem;
    font-weight: 650;
}

.enterprise-pagination [aria-current="page"],
.enterprise-pagination-page.is-current,
.enterprise-pagination-page.is-active,
.enterprise-pagination__page.is-current,
.enterprise-pagination__page.is-active,
.enterprise-pagination [class*="pagination-page"][class*="current"],
.enterprise-pagination [class*="pagination-page"][class*="active"] {
    border-color: rgba(249, 115, 22, 0.2);
    background: rgba(249, 115, 22, 0.105);
    color: #c2410c;
    box-shadow: none;
}

.enterprise-pagination [aria-current="page"] > * {
    background: transparent;
    color: inherit;
    box-shadow: none;
}

/*
 * Einträge pro Seite
 */

.enterprise-pagination-per-page,
.enterprise-pagination__per-page,
.enterprise-pagination [class*="pagination-per-page"] {
    gap: 0.625rem;
    color: #64748b;
    font-size: 0.925rem;
    font-weight: 600;
}

.enterprise-pagination select {
    width: auto;
    min-width: 4.25rem;
    min-height: 2.5rem;
    padding-block: 0.35rem;
    border-color: rgba(203, 213, 225, 0.9);
    border-radius: 0.6rem;
    background-color: #ffffff;
    color: #1e293b;
    box-shadow: none;
    font-weight: 600;
}

/*
 * Mobile Contract
 */

@media (max-width: 640px) {
    .enterprise-pagination {
        gap: 0.875rem;
        padding: 1rem;
        border-radius: 0.8rem;
        box-shadow: none;
    }

    .enterprise-pagination-summary,
    .enterprise-pagination__summary,
    .enterprise-pagination [class*="pagination-summary"] {
        width: 100%;
        text-align: center;
    }

    .enterprise-pagination-navigation,
    .enterprise-pagination__navigation,
    .enterprise-pagination [class*="pagination-navigation"] {
        width: 100%;
        display: grid;
        grid-template-columns: 2.5rem minmax(2.5rem, auto) 2.5rem;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    .enterprise-pagination-previous,
    .enterprise-pagination-next,
    .enterprise-pagination__previous,
    .enterprise-pagination__next,
    .enterprise-pagination [class*="pagination-previous"],
    .enterprise-pagination [class*="pagination-next"] {
        width: 2.5rem;
        min-width: 2.5rem;
        height: 2.5rem;
        min-height: 2.5rem;
        padding: 0;
    }

    .enterprise-pagination-page,
    .enterprise-pagination__page,
    .enterprise-pagination [class*="pagination-page"],
    .enterprise-pagination [aria-current="page"] {
        min-width: 2.5rem;
        width: auto;
        height: 2.5rem;
        min-height: 2.5rem;
        padding: 0.25rem 0.625rem;
        border-radius: 0.625rem;
        font-size: 0.9rem;
        line-height: 1;
    }

    .enterprise-pagination-per-page,
    .enterprise-pagination__per-page,
    .enterprise-pagination [class*="pagination-per-page"] {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        padding-top: 0.125rem;
    }

    .enterprise-pagination select {
        min-width: 4rem;
        min-height: 2.375rem;
    }
}

/* D5.x.4.2 – ENTERPRISE PAGINATION VISUAL POLISH END */

/* D5.x.4.3 – ENTERPRISE PAGINATION FOOTER CONTRACT START */

/*
 * Die Enterprise-Pagination ist eine sekundäre Listennavigation.
 * Sie wird deshalb nicht als eigenständige Card dargestellt,
 * sondern als transparenter Footer der Ergebnisliste.
 */

.enterprise-pagination {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 0 0;
    gap: 1rem;

    border: 0;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 0;

    background: transparent;
    box-shadow: none;
}

/*
 * Ergebnisanzeige
 */

.enterprise-pagination-summary {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.enterprise-pagination-summary strong {
    color: #334155;
    font-weight: 650;
}

/*
 * Zentrale Navigation
 */

.enterprise-pagination-navigation {
    gap: 0.375rem;
}

.enterprise-pagination-button {
    min-height: 2.25rem;
    padding: 0.375rem 0.625rem;

    border: 1px solid transparent;
    border-radius: 0.5rem;

    background: transparent;
    color: #64748b;
    box-shadow: none;

    font-size: 0.875rem;
    font-weight: 600;
}

.enterprise-pagination-button:hover {
    border-color: rgba(203, 213, 225, 0.7);
    background: rgba(248, 250, 252, 0.88);
    color: #334155;
    box-shadow: none;
    transform: none;
}

.enterprise-pagination-button.is-disabled {
    border-color: transparent;
    background: transparent;
    color: #c0c8d3;
    box-shadow: none;
    cursor: default;
}

.enterprise-pagination-button.is-disabled:hover {
    border-color: transparent;
    background: transparent;
    color: #c0c8d3;
}

/*
 * Seiten
 */

.enterprise-pagination-pages {
    gap: 0.25rem;
}

.enterprise-pagination-page {
    width: auto;
    min-width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.55rem;

    border: 1px solid transparent;
    border-radius: 0.5rem;

    background: transparent;
    color: #64748b;
    box-shadow: none;

    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
}

.enterprise-pagination-page:hover {
    border-color: rgba(203, 213, 225, 0.7);
    background: rgba(248, 250, 252, 0.88);
    color: #334155;
    box-shadow: none;
    transform: none;
}

.enterprise-pagination-page.is-current,
.enterprise-pagination-page[aria-current="page"] {
    border-color: rgba(249, 115, 22, 0.18);
    background: rgba(249, 115, 22, 0.08);
    color: #c2410c;
    box-shadow: none;
}

.enterprise-pagination-ellipsis {
    min-width: 1.75rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

/*
 * Seitengröße
 */

.enterprise-pagination-size {
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.enterprise-pagination-size label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.enterprise-pagination-size select {
    width: auto;
    min-width: 4rem;
    min-height: 2.25rem;
    padding-block: 0.25rem;

    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 0.5rem;

    background-color: #ffffff;
    color: #334155;
    box-shadow: none;

    font-size: 0.875rem;
    font-weight: 600;
}

/*
 * Mobile Footer Contract
 */

@media (max-width: 640px) {
    .enterprise-pagination {
        margin-top: 1.25rem;
        padding: 0.875rem 0 0;
        gap: 0.75rem;

        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .enterprise-pagination-summary {
        width: 100%;
        text-align: center;
    }

    .enterprise-pagination-navigation {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.375rem;
    }

    .enterprise-pagination-button {
        width: 2.25rem;
        min-width: 2.25rem;
        height: 2.25rem;
        min-height: 2.25rem;
        padding: 0;
    }

    .enterprise-pagination-button-label {
        display: none;
    }

    .enterprise-pagination-pages {
        display: flex;
        justify-content: center;
        gap: 0.25rem;
    }

    .enterprise-pagination-page {
        width: auto;
        min-width: 2.25rem;
        height: 2.25rem;
        min-height: 2.25rem;
        padding: 0.25rem 0.55rem;
    }

    .enterprise-pagination-size {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .enterprise-pagination-size select {
        min-width: 4rem;
        min-height: 2.25rem;
    }
}

/* D5.x.4.3 – ENTERPRISE PAGINATION FOOTER CONTRACT END */

/*
|--------------------------------------------------------------------------
| D5.7.1D.3.3 – Enterprise Native PDF Preview
|--------------------------------------------------------------------------
*/

.enterprise-asset-detail-pdf {
    display: block;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 430px;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.18),
        0 2px 8px rgba(15, 23, 42, 0.08);
}

.enterprise-asset-detail-pdf[hidden] {
    display: none;
}

.enterprise-asset-detail-preview:has(
    .enterprise-asset-detail-pdf:not([hidden])
) {
    align-items: stretch;
}

@media (max-width: 880px) {
    .enterprise-asset-detail-pdf {
        min-height: 480px;
    }
}

@media (max-width: 560px) {
    .enterprise-asset-detail-pdf {
        min-height: 420px;
        border-radius: 9px;
    }
}

/* ==========================================================
   D5.7.1D.4.5 – Shared Enterprise List Contracts
   Wiederverwendbar für administrative Listen und Formulare
   ========================================================== */

.enterprise-list-page {
    display: grid;
    gap: 24px;
}

.enterprise-list-header,
.enterprise-list-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.enterprise-list-header h2,
.enterprise-list-card-header h3,
.enterprise-empty-state h3 {
    margin: 0;
    color: #18222f;
}

.enterprise-list-description,
.enterprise-list-card-header p,
.enterprise-empty-state p {
    margin: 8px 0 0;
    color: #66727c;
    line-height: 1.6;
}

.enterprise-list-card {
    border: 1px solid #e3e7ea;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(24, 34, 47, .05);
}


.enterprise-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


.enterprise-list-card {
    overflow: hidden;
}

.enterprise-list-card-header {
    padding: 22px 24px;
    border-bottom: 1px solid #e8ebed;
}

.enterprise-table-scroll {
    overflow-x: auto;
}

table.enterprise-table {
    width: 100%;
    border-collapse: collapse;
}

table.enterprise-table th,
table.enterprise-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f2;
    text-align: left;
    vertical-align: middle;
}

table.enterprise-table th {
    background: #f7f8f9;
    color: #66727c;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

table.enterprise-table tbody tr:last-child td {
    border-bottom: 0;
}

table.enterprise-table tbody tr:hover {
    background: #fafbfc;
}

table.enterprise-table a {
    color: #b01f82;
    text-decoration: none;
}

.enterprise-table-actions {
    white-space: nowrap;
    text-align: right !important;
}

.enterprise-table-actions .enterprise-button {
    margin-left: 6px;
}

.enterprise-table-hint,
.enterprise-table-muted,
.enterprise-form-help,
.enterprise-form-error {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.enterprise-table-hint,
.enterprise-table-muted,
.enterprise-form-help {
    color: #7b8791;
}

.enterprise-form-error {
    color: #b42318;
    font-weight: 650;
}

.enterprise-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.enterprise-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #e1c5d8;
    border-radius: 999px;
    background: #faf2f7;
    color: #761457;
    font-size: 12px;
    font-weight: 700;
}

.enterprise-empty-state {
    display: grid;
    justify-items: center;
    padding: 54px 24px;
    text-align: center;
}

.enterprise-empty-state > svg {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    color: #b01f82;
}

.enterprise-button-compact {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.enterprise-button-danger {
    border: 1px solid #b42318;
    background: #b42318;
    color: #ffffff;
}

.enterprise-button-danger:hover {
    background: #8f1b13;
}

.enterprise-alert-danger {
    border-color: #f1b8b2;
    background: #fff3f2;
    color: #7a271a;
}

.enterprise-dialog-panel-compact {
    max-width: 560px;
}

.enterprise-dialog-body .enterprise-form-grid {
    width: 100%;
}


@media (max-width: 760px) {
    .enterprise-list-header,
    .enterprise-list-card-header {
        flex-direction: column;
        align-items: stretch;
    }

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

    .enterprise-table th,
    .enterprise-table td {
        padding: 13px 14px;
    }

    .enterprise-table-actions {
        white-space: normal;
    }

    .enterprise-table-actions .enterprise-button {
        display: flex;
        width: 100%;
        margin: 6px 0 0;
    }
}

/* ==========================================================
   ENTERPRISE ROLE PICKER
   ========================================================== */

.enterprise-role-picker {
    position: relative;
    width: 100%;
}

.enterprise-role-picker__summary {
    display: flex;
    min-height: 3.4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #101828;
    cursor: pointer;
    list-style: none;
}

.enterprise-role-picker__summary::-webkit-details-marker {
    display: none;
}

.enterprise-role-picker__summary:hover,
.enterprise-role-picker[open] .enterprise-role-picker__summary {
    border-color: #ff6b00;
}

.enterprise-role-picker__summary-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-role-picker__chevron {
    flex: 0 0 auto;
    color: #667085;
    transition: transform 160ms ease;
}

.enterprise-role-picker[open] .enterprise-role-picker__chevron {
    transform: rotate(180deg);
}

.enterprise-role-picker__menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    padding: 0.4rem;
    border: 1px solid #d0d5dd;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow:
        0 12px 24px rgba(16, 24, 40, 0.10),
        0 2px 6px rgba(16, 24, 40, 0.06);
}

.enterprise-role-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.55rem;
    color: #101828;
    cursor: pointer;
}

.enterprise-role-option:hover {
    background: #f8fafc;
}

.enterprise-role-option__checkbox {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: #ff6b00;
}

.enterprise-role-option__title {
    color: #101828;
    font-weight: 400;
    line-height: 1.4;
}

.enterprise-role-help {
    margin-top: 0.65rem;
}

.enterprise-role-help__item {
    margin: 0.25rem 0 0;
    color: #667085;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.enterprise-role-help__label {
    color: #475467;
    font-weight: 400;
}

.enterprise-role-option__checkbox:disabled,
.enterprise-role-option__checkbox:disabled
    + .enterprise-role-option__title {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .enterprise-role-picker__menu {
        position: absolute;
    }
}


/* ==========================================================
   ENTERPRISE ROLE PICKER – NEUTRAL COLOR CORRECTION
   ========================================================== */

.enterprise-role-picker .enterprise-role-option,
.enterprise-role-picker .enterprise-role-option:hover,
.enterprise-role-picker .enterprise-role-option:focus,
.enterprise-role-picker .enterprise-role-option:active,
.enterprise-role-picker .enterprise-role-option__title {
    color: #101828 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.enterprise-role-picker__menu {
    overflow: visible;
    max-height: none;
}

.enterprise-role-help {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.65rem;
}

.enterprise-role-help__item {
    margin: 0;
    color: #667085;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.enterprise-role-help__label {
    color: #475467;
    font-weight: 400;
}

/* ==========================================================

D5.7.1D.4.7 – Enterprise Filter Component Contract
   Header · dominantes Suchfeld · responsives CSS Grid
   ========================================================== */

[data-enterprise-filter] {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--enterprise-border-color, #e4e7ec);
    border-radius: 10px;
    background: var(--enterprise-surface, #ffffff);
}

[data-enterprise-filter-header] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}

.enterprise-filter-heading {
    min-width: 0;
}

.enterprise-filter-title {
    margin: 0;
    color: var(--enterprise-text-primary, #101828);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.enterprise-filter-description {
    margin: 4px 0 0;
    color: var(--enterprise-text-secondary, #667085);
    font-size: 0.875rem;
    line-height: 1.5;
}

.enterprise-filter-reset {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--enterprise-text-secondary, #475467);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 140ms ease,
        color 140ms ease;
}

.enterprise-filter-reset:hover {
    background: var(--enterprise-surface-muted, #f2f4f7);
    color: var(--enterprise-text-primary, #101828);
}

.enterprise-filter-reset:focus-visible {
    outline: 2px solid var(--enterprise-focus-color, #f26a21);
    outline-offset: 2px;
}

.enterprise-filter-reset-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

[data-enterprise-filter-form] {
    min-width: 0;
    margin: 0;
    padding: 20px 24px 24px;
}

[data-enterprise-filter-fields] {
    display: grid;
    grid-template-columns:
        var(
            --enterprise-filter-columns,
            minmax(340px, 2.5fr)
            repeat(4, minmax(145px, 1fr))
        );
    align-items: end;
    gap: 16px;
    min-width: 0;
}

[data-enterprise-filter-fields] > * {
    min-width: 0;
}

[data-enterprise-filter-search],
.enterprise-filter-search {
    min-width: 0;
}

[data-enterprise-filter-search] .enterprise-input,
[data-enterprise-filter-search] .enterprise-input-icon-wrapper,
.enterprise-filter-search .enterprise-input,
.enterprise-filter-search .enterprise-input-icon-wrapper {
    width: 100%;
    min-width: 0;
}

[data-enterprise-filter-actions] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    margin-top: 20px;
    padding-top: 20px;
}

[data-enterprise-filter-submit],
[data-enterprise-filter-reset] {
    width: auto;
    min-width: max-content;
    min-height: 44px;
    white-space: nowrap;
}

.enterprise-filter-hidden {
    display: none;
}

@media (max-width: 1380px) {
    [data-enterprise-filter-fields] {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }

    [data-enterprise-filter-search],
    .enterprise-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    [data-enterprise-filter-header] {
        padding: 18px 20px;
    }

    [data-enterprise-filter-form] {
        padding: 18px 20px 20px;
    }

    [data-enterprise-filter-fields] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    [data-enterprise-filter-search],
    .enterprise-filter-search {
        grid-column: 1 / -1;
    }

}

@media (max-width: 760px) {
    [data-enterprise-filter-header] {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .enterprise-filter-reset {
        align-self: flex-start;
        margin-left: -12px;
    }

    [data-enterprise-filter-form] {
        padding: 16px;
    }

    [data-enterprise-filter-fields] {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    [data-enterprise-filter-search],
    .enterprise-filter-search {
        grid-column: auto;
    }

    [data-enterprise-filter-actions] {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        margin-top: 16px;
        padding-top: 16px;
    }

    [data-enterprise-filter-actions] .enterprise-button,
    [data-enterprise-filter-submit],
    [data-enterprise-filter-reset] {
        justify-content: center;
        width: 100%;
        min-width: 0;
    }
}

/* D5.7.1D.4.7 – Enterprise Filter Component Contract END */

/*
|--------------------------------------------------------------------------
| Enterprise Filter Field Groups
|--------------------------------------------------------------------------
|
| Zentrale, modulunabhängige Erweiterungen des Enterprise Filter Contracts.
| Module dürfen innerhalb eines Filters keine eigenen Grid-, Spacing-,
| Größen- oder Buttonregeln definieren.
|
*/

.enterprise-filter-field-group {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 18px;
}

.enterprise-filter-field-group > * {
    min-width: 0;
}

.enterprise-filter-date-range {
    display: grid;
    min-width: 0;
    margin: 0;
    padding: 18px;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 16px;
    border: 1px solid var(--dipeo-border);
    border-radius: 12px;
}

.enterprise-filter-date-range legend {
    padding: 0 6px;
    color: var(--dipeo-muted);
    font-size: 13px;
    font-weight: 700;
}

.enterprise-filter-date-range label {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.enterprise-filter-date-range label > span {
    color: var(--dipeo-anthracite);
    font-size: 13px;
    font-weight: 700;
}

.enterprise-filter-date-range input,
.enterprise-filter-date-range select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--dipeo-border);
    border-radius: 9px;
    outline: none;
    color: var(--dipeo-anthracite);
    background: var(--dipeo-white);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.enterprise-filter-date-range input:focus,
.enterprise-filter-date-range select:focus {
    border-color: var(--dipeo-orange);
    box-shadow: 0 0 0 4px rgba(242, 106, 33, 0.12);
}

@media (max-width: 1380px) {
    .enterprise-filter-field-group {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 980px) {
    .enterprise-filter-field-group,
    .enterprise-filter-date-range {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .enterprise-filter-date-range {
        padding: 14px;
    }
}

/* D5.7.1D.4.5.1 – Enterprise Filter Layout Contract */

.enterprise-filter-primary-grid {
    display: grid;
    grid-template-columns:
        minmax(320px, 2fr)
        repeat(4, minmax(170px, 1fr));
    align-items: end;
    gap: 18px;
    min-width: 0;
}

.enterprise-filter-primary-grid > *,
.enterprise-filter-field-group > *,
.enterprise-filter-sections > * {
    min-width: 0;
}

.enterprise-filter-primary-grid .enterprise-filter-search {
    grid-column: auto;
}

.enterprise-filter-primary-grid .enterprise-filter-field-group {
    display: contents;
}

.enterprise-filter-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--dipeo-border);
}

.enterprise-filter-date-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px 18px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.enterprise-filter-date-range > legend {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--dipeo-ink);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.35;
}

.enterprise-filter-date-range .enterprise-form-field,
.enterprise-filter-date-range label,
.enterprise-filter-date-range input,
.enterprise-filter-date-range select {
    min-width: 0;
    width: 100%;
}

@media (max-width: 1400px) {
    .enterprise-filter-primary-grid {
        grid-template-columns:
            minmax(280px, 2fr)
            repeat(2, minmax(170px, 1fr));
    }

    .enterprise-filter-primary-grid .enterprise-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1000px) {
    .enterprise-filter-primary-grid,
    .enterprise-filter-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .enterprise-filter-primary-grid .enterprise-filter-search {
        grid-column: 1 / -1;
    }

    .enterprise-filter-date-range {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .enterprise-filter-primary-grid,
    .enterprise-filter-sections,
    .enterprise-filter-date-range {
        grid-template-columns: minmax(0, 1fr);
    }

    .enterprise-filter-primary-grid .enterprise-filter-search,
    .enterprise-filter-date-range > legend {
        grid-column: auto;
    }
}

/* ============================================================
   D5.7.1D.5.2 – Enterprise Customer Filament Table
   ============================================================ */

[data-dipeo-customer-table] {
    --dipeo-table-accent: var(--enterprise-primary, #d86b2c);
    --dipeo-table-border: var(--enterprise-border, #e5e7eb);
    --dipeo-table-text: var(--enterprise-text, #18222f);
    --dipeo-table-muted: var(--enterprise-text-muted, #697386);
    --dipeo-table-surface: var(--enterprise-surface, #ffffff);
    --dipeo-table-surface-soft: var(--enterprise-surface-soft, #f8fafc);
    color: var(--dipeo-table-text);
    width: 100%;
    min-width: 0;
}

[data-dipeo-customer-table] .fi-ta {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

[data-dipeo-customer-table] .fi-ta-header,
[data-dipeo-customer-table] .fi-ta-header-toolbar {
    background: var(--dipeo-table-surface);
    border-bottom: 1px solid var(--dipeo-table-border);
}

[data-dipeo-customer-table] .fi-input-wrp {
    border-color: var(--dipeo-table-border);
    border-radius: 10px;
    box-shadow: none;
}

[data-dipeo-customer-table] .fi-input-wrp:focus-within {
    border-color: var(--dipeo-table-accent);
    box-shadow: 0 0 0 3px color-mix(
        in srgb,
        var(--dipeo-table-accent) 16%,
        transparent
    );
}

[data-dipeo-customer-table] .fi-btn.fi-color-primary,
[data-dipeo-customer-table] .fi-ac-btn-action.fi-color-primary {
    background: var(--dipeo-table-accent);
    border-color: var(--dipeo-table-accent);
}

[data-dipeo-customer-table] .fi-ta-table {
    font-size: 0.875rem;
}

[data-dipeo-customer-table] .fi-ta-header-cell {
    background: var(--dipeo-table-surface-soft);
    color: var(--dipeo-table-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

[data-dipeo-customer-table] .fi-ta-cell {
    color: var(--dipeo-table-text);
    vertical-align: middle;
}

[data-dipeo-customer-table] .dipeo-customer-table-row {
    cursor: pointer;
}

[data-dipeo-customer-table] .dipeo-customer-table-row:hover {
    background: color-mix(
        in srgb,
        var(--dipeo-table-accent) 5%,
        var(--dipeo-table-surface)
    );
}

[data-dipeo-customer-table] .fi-badge {
    border-radius: 999px;
    font-weight: 650;
}

[data-dipeo-customer-table] .fi-pagination {
    border-top: 1px solid var(--dipeo-table-border);
    background: var(--dipeo-table-surface);
}

[data-dipeo-customer-table] input[type="checkbox"] {
    accent-color: var(--dipeo-table-accent);
}

.enterprise-panel-flush {
    overflow: hidden;
    padding: 0;
}

.enterprise-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.enterprise-definition-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.enterprise-definition-list > div {
    display: grid;
    grid-template-columns: minmax(140px, 0.75fr) minmax(0, 1.5fr);
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--enterprise-border, #e5e7eb);
}

.enterprise-definition-list > div:last-child {
    border-bottom: 0;
}

.enterprise-definition-list dt {
    color: var(--enterprise-text-muted, #697386);
    font-size: 0.8125rem;
    font-weight: 650;
}

.enterprise-definition-list dd {
    min-width: 0;
    margin: 0;
    color: var(--enterprise-text, #18222f);
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .enterprise-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    [data-dipeo-customer-table] {
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .enterprise-definition-list > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
}

/* ============================================================
   D5.7.1D.5.2B ENTERPRISE CUSTOMER TABLE
   ============================================================ */

.enterprise-customer-page {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.enterprise-customer-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.enterprise-customer-page-header .enterprise-page-header-content {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.enterprise-customer-page-header .enterprise-page-eyebrow {
    margin: 0;
    color: var(--enterprise-color-primary, #b01f82);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.enterprise-customer-page-header .enterprise-page-title {
    margin: 0;
    color: var(--enterprise-color-text, #172033);
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.enterprise-customer-page-header .enterprise-page-description {
    max-width: 780px;
    margin: 0;
    color: var(--enterprise-color-text-muted, #667085);
    font-size: 0.95rem;
    line-height: 1.6;
}

.enterprise-customer-table-section,
.enterprise-customer-table-runtime {
    min-width: 0;
}

.enterprise-customer-table-runtime .fi-ta {
    overflow: hidden;
    border: 1px solid var(--enterprise-color-border, #e4e7ec);
    border-radius: 16px;
    background: var(--enterprise-color-surface, #ffffff);
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 8px 24px rgba(16, 24, 40, 0.04);
}

.enterprise-customer-table-runtime .fi-ta-header,
.enterprise-customer-table-runtime .fi-ta-ctn {
    background: var(--enterprise-color-surface, #ffffff);
}

.enterprise-customer-table-runtime .fi-ta-header {
    border-bottom: 1px solid var(--enterprise-color-border, #e4e7ec);
}

.enterprise-customer-table-runtime .fi-input-wrp {
    border-color: var(--enterprise-color-border, #d0d5dd);
    border-radius: 10px;
    box-shadow: none;
}

.enterprise-customer-table-runtime .fi-input-wrp:focus-within {
    border-color: var(--enterprise-color-primary, #b01f82);
    box-shadow: 0 0 0 3px rgba(176, 31, 130, 0.12);
}

.enterprise-customer-table-runtime .fi-ta-table thead {
    background: var(--enterprise-color-surface-subtle, #f8fafc);
}

.enterprise-customer-table-runtime .fi-ta-header-cell {
    color: var(--enterprise-color-text-muted, #475467);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.enterprise-customer-table-runtime .fi-ta-row {
    transition:
        background-color 140ms ease,
        box-shadow 140ms ease;
}

.enterprise-customer-table-runtime .fi-ta-row:hover {
    background: var(--enterprise-color-primary-soft, #fdf4fa);
}

.enterprise-customer-table-runtime .fi-ta-row[wire\:key] {
    cursor: pointer;
}

.enterprise-customer-table-runtime .fi-btn.fi-color-primary {
    background: var(--enterprise-color-primary, #b01f82);
}

.enterprise-customer-table-runtime .fi-btn.fi-color-primary:hover {
    background: var(--enterprise-color-primary-hover, #94196d);
}

.enterprise-customer-table-runtime .fi-pagination {
    border-top-color: var(--enterprise-color-border, #e4e7ec);
    background: var(--enterprise-color-surface, #ffffff);
}

.enterprise-customer-table-runtime .fi-pagination-item.fi-active .fi-pagination-item-button {
    background: var(--enterprise-color-primary, #b01f82);
    color: #ffffff;
}

.enterprise-customer-table-runtime .fi-ta-empty-state {
    padding-block: 56px;
}

.enterprise-customer-table-runtime .fi-ta-empty-state-heading {
    color: var(--enterprise-color-text, #172033);
    font-weight: 700;
}

.enterprise-customer-table-runtime .fi-ta-empty-state-description {
    color: var(--enterprise-color-text-muted, #667085);
}

@media (max-width: 768px) {
    .enterprise-customer-page {
        gap: 18px;
    }

    .enterprise-customer-page-header {
        display: block;
    }

    .enterprise-customer-table-runtime .fi-ta {
        border-radius: 12px;
    }
}

/* DIPEO ENTERPRISE CUSTOMER FILAMENT RUNTIME START */

/*
 * Filament bleibt die technische Tabellenruntime.
 * Diese Regeln bilden die zentrale Dipeo-Designschicht darüber.
 *
 * Die Selektoren sind bewusst auf die Customer-Runtime begrenzt, damit
 * keine Filament-Administration oder andere Dipeo-Module unbeabsichtigt
 * verändert werden.
 */

.enterprise-customer-table-runtime {
    --spacing: 0.25rem;

    --primary-50: #fdf2f8;
    --primary-100: #fce7f3;
    --primary-200: #fbcfe8;
    --primary-300: #f9a8d4;
    --primary-400: #f472b6;
    --primary-500: #d92f8a;
    --primary-600: #bd1f78;
    --primary-700: #9f1765;
    --primary-800: #831452;
    --primary-900: #6d1346;

    width: 100%;
    min-width: 0;
    color: var(--enterprise-text, #172033);
    font-family: inherit;
}

/*
 * Verbindlicher Schutz gegen unskalierte Heroicons.
 *
 * Ohne eine aufgelöste Filament-Größenvariable können SVGs ihre
 * intrinsische Größe annehmen und den gesamten Tabellenbereich füllen.
 */
.enterprise-customer-table-runtime .fi-icon,
.enterprise-customer-table-runtime svg.fi-icon {
    display: inline-block !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    flex: 0 0 1.25rem !important;
}

.enterprise-customer-table-runtime .fi-icon.fi-size-xs {
    width: 0.75rem !important;
    height: 0.75rem !important;
    min-width: 0.75rem !important;
    min-height: 0.75rem !important;
    max-width: 0.75rem !important;
    max-height: 0.75rem !important;
    flex-basis: 0.75rem !important;
}

.enterprise-customer-table-runtime .fi-icon.fi-size-sm {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    min-height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
    flex-basis: 1rem !important;
}

.enterprise-customer-table-runtime .fi-icon.fi-size-lg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
    max-width: 1.5rem !important;
    max-height: 1.5rem !important;
    flex-basis: 1.5rem !important;
}

.enterprise-customer-table-runtime .fi-icon.fi-size-xl {
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
    min-height: 1.75rem !important;
    max-width: 1.75rem !important;
    max-height: 1.75rem !important;
    flex-basis: 1.75rem !important;
}

.enterprise-customer-table-runtime .fi-icon > svg,
.enterprise-customer-table-runtime svg.fi-icon > svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Tabellenrahmen */

.enterprise-customer-table-runtime .fi-ta {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--enterprise-border, #dfe4ec);
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 10px 30px rgba(15, 23, 42, 0.035);
}

/* Toolbar */

.enterprise-customer-table-runtime .fi-ta-header,
.enterprise-customer-table-runtime .fi-ta-header-toolbar {
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--enterprise-border, #e3e7ee);
    background: #ffffff;
}

.enterprise-customer-table-runtime .fi-ta-header-toolbar {
    align-items: center;
    flex-wrap: wrap;
}

/* Suche und Eingaben */

.enterprise-customer-table-runtime .fi-input-wrp {
    min-height: 2.5rem;
    border: 1px solid var(--enterprise-border, #d9dee8);
    border-radius: 0.65rem;
    background: #ffffff;
    box-shadow: none;
}

.enterprise-customer-table-runtime .fi-input-wrp:focus-within {
    border-color: var(--enterprise-primary, #bd1f78);
    box-shadow: 0 0 0 3px rgba(189, 31, 120, 0.12);
}

.enterprise-customer-table-runtime .fi-input {
    min-height: 2.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--enterprise-text, #172033);
    font-family: inherit;
    font-size: 0.875rem;
}

.enterprise-customer-table-runtime .fi-input::placeholder {
    color: var(--enterprise-muted, #7c879b);
}

/* Buttons */

.enterprise-customer-table-runtime .fi-btn,
.enterprise-customer-table-runtime .fi-icon-btn {
    font-family: inherit;
}

.enterprise-customer-table-runtime .fi-icon-btn {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    margin: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
}

.enterprise-customer-table-runtime .fi-icon-btn:hover {
    background: #f5f6f8;
}

/* Tabellenkopf */

.enterprise-customer-table-runtime .fi-ta-table {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.enterprise-customer-table-runtime .fi-ta-header-cell {
    padding: 0;
    border-bottom: 1px solid var(--enterprise-border, #e2e6ed);
    background: #f7f8fa;
}

.enterprise-customer-table-runtime .fi-ta-header-cell-btn,
.enterprise-customer-table-runtime .fi-ta-header-cell-label {
    color: var(--enterprise-text, #1c2536);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.enterprise-customer-table-runtime .fi-ta-header-cell-btn {
    gap: 0.35rem;
    min-height: 3rem;
    padding: 0.75rem 0.85rem;
}

.enterprise-customer-table-runtime .fi-ta-header-cell-btn:hover {
    background: #f0f2f5;
}

/* Tabellenzeilen */

.enterprise-customer-table-runtime .fi-ta-row {
    background: #ffffff;
}

.enterprise-customer-table-runtime .fi-ta-row:nth-child(even) {
    background: #fbfcfd;
}

.enterprise-customer-table-runtime .fi-ta-row:hover {
    background: #fff7fb;
}

.enterprise-customer-table-runtime .fi-ta-cell {
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid #edf0f4;
    color: var(--enterprise-text, #273044);
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Badges */

.enterprise-customer-table-runtime .fi-badge {
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 650;
}

/* Checkboxen */

/* Leerer Zustand */

.enterprise-customer-table-runtime .fi-empty-state {
    min-height: 18rem;
    padding: 3rem 1.5rem;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.enterprise-customer-table-runtime .fi-empty-state-content {
    display: grid;
    max-width: 32rem;
    margin: 0 auto;
    justify-items: center;
    text-align: center;
}

.enterprise-customer-table-runtime .fi-empty-state-icon-bg {
    display: inline-flex !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    min-width: 3.5rem !important;
    min-height: 3.5rem !important;
    max-width: 3.5rem !important;
    max-height: 3.5rem !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    overflow: hidden !important;
}

.enterprise-customer-table-runtime .fi-empty-state-icon-bg .fi-icon,
.enterprise-customer-table-runtime .fi-empty-state-icon-bg svg {
    display: block !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
    min-height: 1.75rem !important;
    max-width: 1.75rem !important;
    max-height: 1.75rem !important;
    flex: 0 0 1.75rem !important;
}

.enterprise-customer-table-runtime .fi-empty-state-heading {
    margin: 0;
    color: var(--enterprise-text, #172033);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.enterprise-customer-table-runtime .fi-empty-state-description {
    max-width: 34rem;
    margin-top: 0.4rem;
    color: var(--enterprise-muted, #68748a);
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Pagination */

.enterprise-customer-table-runtime .fi-ta-pagination {
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--enterprise-border, #e3e7ee);
    background: #ffffff;
}

.enterprise-customer-table-runtime .fi-pagination {
    gap: 0.75rem;
    font-family: inherit;
}

.enterprise-customer-table-runtime .fi-pagination-overview {
    color: var(--enterprise-muted, #68748a);
    font-size: 0.8rem;
}

/* Kleine Bildschirme */

@media (max-width: 900px) {
    .enterprise-customer-table-runtime .fi-ta-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .enterprise-customer-table-runtime .fi-ta-table {
        min-width: 65rem;
    }
}

/* DIPEO ENTERPRISE CUSTOMER FILAMENT RUNTIME END */


/* ==========================================================
   Enterprise Explorer Foundation
   ========================================================== */

.enterprise-explorer-shell{
    margin-top:2rem;
}

.enterprise-explorer-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    overflow:hidden;
}

.enterprise-explorer-header{
    padding:1.75rem 2rem 1rem;
    border-bottom:1px solid #eef2f7;
}

/* DIPEO D5.7.3.4.2 CUSTOMER EXPLORER START */

.enterprise-customer-page {
    display: grid;
    gap: 1.5rem;
}

.dipeo-customer-statistics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dipeo-customer-stat-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dipeo-customer-stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(176, 31, 130, 0.1);
    color: #b01f82;
}

.dipeo-customer-stat-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.dipeo-customer-stat-icon-success {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}

.dipeo-customer-stat-icon-muted {
    background: #f1f5f9;
    color: #64748b;
}

.dipeo-customer-stat-content {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.dipeo-customer-stat-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.dipeo-customer-stat-value {
    color: #172033;
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1.1;
}

.dipeo-customer-explorer {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.dipeo-customer-explorer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid #edf0f4;
}

.dipeo-customer-explorer-title {
    margin: 0.2rem 0 0;
    color: #172033;
    font-size: 1.15rem;
    font-weight: 750;
    line-height: 1.3;
}

.dipeo-customer-explorer-description {
    max-width: 52rem;
    margin: 0.4rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.dipeo-customer-explorer-count {
    flex: 0 0 auto;
    min-width: 7rem;
    display: grid;
    justify-items: end;
    gap: 0.15rem;
}

.dipeo-customer-explorer-count span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dipeo-customer-explorer-count strong {
    color: #172033;
    font-size: 1.25rem;
    line-height: 1.2;
}

.dipeo-customer-explorer-runtime {
    min-width: 0;
}

/*
 * Filament bleibt die technische Tabellenruntime.
 * Die Regeln sind strikt auf den Customer Explorer begrenzt.
 */
.dipeo-customer-explorer-runtime .enterprise-customer-table-runtime {
    min-width: 0;
}

.dipeo-customer-explorer-runtime .fi-ta {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dipeo-customer-explorer-runtime .fi-ta-header {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #edf0f4;
}

.dipeo-customer-explorer-runtime .fi-ta-content {
    border-radius: 0;
}

.dipeo-customer-explorer-runtime .fi-ta-table > thead {
    background: #f8fafc;
}

.dipeo-customer-explorer-runtime .fi-ta-header-cell {
    color: #475569;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.dipeo-customer-explorer-runtime .fi-ta-row {
    transition:
        background-color 140ms ease,
        box-shadow 140ms ease;
}

.dipeo-customer-explorer-runtime .fi-ta-row:hover {
    background: #fcf7fb;
}

.dipeo-customer-explorer-runtime .fi-ta-empty-state {
    min-height: 15rem;
    padding: 2.5rem 1.5rem;
}

.dipeo-customer-explorer-runtime .fi-ta-footer {
    border-top: 1px solid #edf0f4;
}

@media (max-width: 960px) {
    .dipeo-customer-statistics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dipeo-customer-stat-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .enterprise-customer-page {
        gap: 1rem;
    }

    .dipeo-customer-statistics {
        grid-template-columns: minmax(0, 1fr);
    }

    .dipeo-customer-stat-card:last-child {
        grid-column: auto;
    }

    .dipeo-customer-explorer-header {
        display: grid;
        padding: 1.15rem;
    }

    .dipeo-customer-explorer-count {
        justify-items: start;
    }

    .dipeo-customer-explorer-runtime .fi-ta-header {
        padding: 0.85rem;
    }
}

/* DIPEO D5.7.3.4.2 CUSTOMER EXPLORER END */

/* DIPEO D5.7.3.4.3 CUSTOMER TABLE RUNTIME START */

/*
|--------------------------------------------------------------------------
| Customer Table Runtime
|--------------------------------------------------------------------------
|
| Filament bleibt die technische Tabellenengine.
| Sämtliche Regeln bleiben auf das Kundenmodul begrenzt.
|
*/

.enterprise-customer-table-runtime {
    min-width: 0;
    background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Tabellencontainer
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.enterprise-customer-table-runtime .fi-ta-ctn {
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

/*
|--------------------------------------------------------------------------
| Toolbar
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
}

.enterprise-customer-table-runtime .fi-ta-header-toolbar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.enterprise-customer-table-runtime .fi-ta-header-toolbar > * {
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Suche
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-search-field {
    width: min(100%, 25rem);
    flex: 1 1 18rem;
}

.enterprise-customer-table-runtime .fi-input-wrp {
    min-height: 2.65rem;
    border: 1px solid #d9e0e9;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: none;
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        background-color 140ms ease;
}

.enterprise-customer-table-runtime .fi-input-wrp:hover {
    border-color: #bec8d5;
}

.enterprise-customer-table-runtime .fi-input-wrp:focus-within {
    border-color: #b01f82;
    box-shadow: 0 0 0 3px rgba(176, 31, 130, 0.12);
}

.enterprise-customer-table-runtime .fi-input-wrp input {
    min-height: 2.55rem;
    color: #172033;
    font-size: 0.875rem;
}

.enterprise-customer-table-runtime .fi-input-wrp input::placeholder {
    color: #8a96a8;
}

/*
|--------------------------------------------------------------------------
| Buttons und Toolbar-Aktionen
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-btn,
.enterprise-customer-table-runtime .fi-icon-btn {
    min-height: 2.5rem;
    border-radius: 9px;
    box-shadow: none;
}

.enterprise-customer-table-runtime .fi-icon-btn {
    min-width: 2.5rem;
}

.enterprise-customer-table-runtime .fi-btn.fi-color-gray,
.enterprise-customer-table-runtime .fi-icon-btn.fi-color-gray {
    color: #475569;
    background: #ffffff;
    border: 1px solid #d9e0e9;
}

.enterprise-customer-table-runtime .fi-btn.fi-color-gray:hover,
.enterprise-customer-table-runtime .fi-icon-btn.fi-color-gray:hover {
    color: #b01f82;
    background: #fcf7fb;
    border-color: rgba(176, 31, 130, 0.35);
}

/*
|--------------------------------------------------------------------------
| Icons und Ladeindikatoren
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime svg {
    max-width: 1.25rem;
    max-height: 1.25rem;
}

.enterprise-customer-table-runtime .fi-loading-indicator {
    display: none;
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem;
    min-height: 1rem;
}

.enterprise-customer-table-runtime
    [wire\:loading]:not([wire\:loading\.class]):not([wire\:loading\.attr]) {
    width: 1rem;
    height: 1rem;
}

/*
|--------------------------------------------------------------------------
| Aktive Filter
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-filters-above-content-ctn,
.enterprise-customer-table-runtime .fi-ta-filters-below-content-ctn {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    background: #fafbfc;
    border-bottom: 1px solid #e8edf3;
}

.enterprise-customer-table-runtime .fi-badge {
    border-radius: 999px;
    font-weight: 650;
}

/*
|--------------------------------------------------------------------------
| Tabellenkopf
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-content {
    overflow-x: auto;
    border-radius: 0;
}

.enterprise-customer-table-runtime table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.enterprise-customer-table-runtime .fi-ta-table > thead {
    background: #f5f7fa;
}

.enterprise-customer-table-runtime .fi-ta-header-cell {
    min-height: 2.8rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    color: #445065;
    background: #f5f7fa;
    border-bottom: 1px solid #dfe5ec;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.025em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

.enterprise-customer-table-runtime .fi-ta-header-cell button {
    gap: 0.35rem;
    color: inherit;
    font: inherit;
}

.enterprise-customer-table-runtime .fi-ta-header-cell svg {
    width: 0.85rem;
    height: 0.85rem;
    color: #8793a5;
}

/*
|--------------------------------------------------------------------------
| Tabellenzeilen
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-row {
    background: #ffffff;
    transition:
        background-color 140ms ease,
        box-shadow 140ms ease;
}

.enterprise-customer-table-runtime .fi-ta-row:hover {
    background: #fcf8fb;
}

.enterprise-customer-table-runtime .fi-ta-cell {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    color: #263247;
    border-bottom: 1px solid #edf0f4;
    font-size: 0.82rem;
    vertical-align: middle;
}

.enterprise-customer-table-runtime
    .fi-ta-row:last-child
    .fi-ta-cell {
    border-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| Checkboxen
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| Empty State
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-empty-state {
    min-height: 17rem;
    display: grid;
    place-items: center;
    padding: 3rem 1.5rem;
    background: #ffffff;
}

.enterprise-customer-table-runtime .fi-ta-empty-state-content {
    max-width: 34rem;
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    text-align: center;
}

.enterprise-customer-table-runtime .fi-ta-empty-state-icon-ctn {
    width: 3.5rem;
    height: 3.5rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #b01f82;
    background: rgba(176, 31, 130, 0.09);
}

.enterprise-customer-table-runtime .fi-ta-empty-state-icon-ctn svg {
    width: 1.6rem;
    height: 1.6rem;
}

.enterprise-customer-table-runtime .fi-ta-empty-state-heading {
    margin: 0;
    color: #172033;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.35;
}

.enterprise-customer-table-runtime .fi-ta-empty-state-description {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-footer {
    padding: 0.9rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid #e8edf3;
}

.enterprise-customer-table-runtime .fi-pagination {
    gap: 0.4rem;
}

.enterprise-customer-table-runtime .fi-pagination-item {
    border-radius: 8px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {
    .enterprise-customer-table-runtime .fi-ta-header {
        align-items: stretch;
        padding: 0.9rem;
    }

    .enterprise-customer-table-runtime .fi-ta-header-toolbar {
        align-items: stretch;
    }

    .enterprise-customer-table-runtime .fi-ta-search-field {
        width: 100%;
        flex-basis: 100%;
    }

    .enterprise-customer-table-runtime
        .fi-ta-filters-above-content-ctn,
    .enterprise-customer-table-runtime
        .fi-ta-filters-below-content-ctn {
        padding-right: 0.9rem;
        padding-left: 0.9rem;
    }

    .enterprise-customer-table-runtime .fi-ta-footer {
        padding-right: 0.9rem;
        padding-left: 0.9rem;
    }
}

/* DIPEO D5.7.3.4.3 CUSTOMER TABLE RUNTIME END */

/* BEGIN D5.7.3.4.4 – ENTERPRISE FILAMENT RUNTIME DOM INTEGRATION */

/*
|--------------------------------------------------------------------------
| Dipeo Enterprise Filament Table Runtime
|--------------------------------------------------------------------------
|
| Filament bleibt die technische Tabellen-Engine.
| Diese Ebene integriert die reale Filament-4-DOM-Struktur in die
| Dipeo Enterprise UI.
|
| Scope:
| - ausschließlich Tabellen innerhalb des expliziten Runtime-Wrappers
| - keine Änderungen am Filament-Core
| - keine Vendor-Overrides
| - keine JavaScript-Manipulationen
|
*/

.enterprise-customer-table-runtime {
    --dipeo-runtime-border: #dfe5ec;
    --dipeo-runtime-border-strong: #cfd8e3;
    --dipeo-runtime-surface: #ffffff;
    --dipeo-runtime-surface-soft: #f8fafc;
    --dipeo-runtime-surface-hover: #f3f6f9;
    --dipeo-runtime-text: #172033;
    --dipeo-runtime-text-muted: #667085;
    --dipeo-runtime-primary: #a7197d;
    --dipeo-runtime-primary-hover: #8f156b;
    --dipeo-runtime-primary-soft: #f9edf6;
    --dipeo-runtime-focus: rgba(167, 25, 125, 0.18);
    --dipeo-runtime-danger: #c2415d;
    --dipeo-runtime-radius-sm: 8px;
    --dipeo-runtime-radius-md: 12px;
    --dipeo-runtime-radius-lg: 16px;
    --dipeo-runtime-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 8px 24px rgba(16, 24, 40, 0.05);

    display: block;
    min-width: 0;
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Tabellencontainer
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-ctn {
    overflow: visible;
    width: 100%;
    border: 1px solid var(--dipeo-runtime-border);
    border-radius: var(--dipeo-runtime-radius-lg);
    background: var(--dipeo-runtime-surface);
    box-shadow: var(--dipeo-runtime-shadow);
}

.enterprise-customer-table-runtime .fi-ta-main {
    min-width: 0;
    overflow: visible;
    border-radius: inherit;
}

/*
|--------------------------------------------------------------------------
| Header und Toolbar
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-header-ctn {
    position: relative;
    z-index: 5;
    border-bottom: 1px solid var(--dipeo-runtime-border);
    border-radius:
        var(--dipeo-runtime-radius-lg)
        var(--dipeo-runtime-radius-lg)
        0
        0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            var(--dipeo-runtime-surface-soft) 100%
        );
}

.enterprise-customer-table-runtime .fi-ta-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 14px 16px;
}

.enterprise-customer-table-runtime .fi-ta-header-toolbar > div {
    min-width: 0;
}

.enterprise-customer-table-runtime .fi-ta-header-toolbar > div:last-child {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.enterprise-customer-table-runtime .fi-ta-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.enterprise-customer-table-runtime .fi-ta-actions:empty {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Suchfeld
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-search-field {
    flex: 1 1 420px;
    min-width: 220px;
    max-width: 560px;
}

.enterprise-customer-table-runtime .fi-ta-search-field .fi-input-wrp {
    display: flex;
    align-items: center;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid var(--dipeo-runtime-border-strong);
    border-radius: var(--dipeo-runtime-radius-md);
    background: var(--dipeo-runtime-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.enterprise-customer-table-runtime
.fi-ta-search-field
.fi-input-wrp:focus-within {
    border-color: var(--dipeo-runtime-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--dipeo-runtime-focus);
}

.enterprise-customer-table-runtime
.fi-ta-search-field
.fi-input-wrp-prefix {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding-left: 12px;
    color: var(--dipeo-runtime-text-muted);
}

.enterprise-customer-table-runtime
.fi-ta-search-field
.fi-input-wrp-prefix
.fi-icon {
    width: 18px;
    height: 18px;
}

.enterprise-customer-table-runtime
.fi-ta-search-field
.fi-input-wrp-content-ctn {
    flex: 1 1 auto;
    min-width: 0;
}

.enterprise-customer-table-runtime .fi-ta-search-field .fi-input {
    width: 100%;
    min-height: 40px;
    padding: 9px 13px 9px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dipeo-runtime-text);
    font-size: 14px;
    line-height: 20px;
}

.enterprise-customer-table-runtime
.fi-ta-search-field
.fi-input::placeholder {
    color: #98a2b3;
    opacity: 1;
}

/*
|--------------------------------------------------------------------------
| Toolbar-Iconbuttons
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime
.fi-ta-header-toolbar
.fi-dropdown-trigger {
    display: inline-flex;
}

.enterprise-customer-table-runtime
.fi-ta-header-toolbar
.fi-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--dipeo-runtime-border-strong);
    border-radius: var(--dipeo-runtime-radius-md);
    background: var(--dipeo-runtime-surface);
    color: #475467;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    cursor: pointer;
    transition:
        color 150ms ease,
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.enterprise-customer-table-runtime
.fi-ta-header-toolbar
.fi-icon-btn:hover {
    border-color: #c3ccd8;
    background: var(--dipeo-runtime-surface-hover);
    color: var(--dipeo-runtime-primary);
}

.enterprise-customer-table-runtime
.fi-ta-header-toolbar
.fi-icon-btn:focus-visible {
    outline: 0;
    border-color: var(--dipeo-runtime-primary);
    box-shadow: 0 0 0 4px var(--dipeo-runtime-focus);
}

.enterprise-customer-table-runtime
.fi-ta-header-toolbar
.fi-icon-btn:active {
    transform: translateY(1px);
}

.enterprise-customer-table-runtime
.fi-ta-header-toolbar
.fi-icon-btn
.fi-icon {
    width: 19px;
    height: 19px;
}

/*
|--------------------------------------------------------------------------
| Filterstatus-Badge
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime
.fi-ta-filters-dropdown
.fi-icon-btn-badge-ctn {
    position: absolute;
    top: -6px;
    right: -6px;
}

.enterprise-customer-table-runtime
.fi-ta-filters-dropdown
.fi-icon-btn-badge-ctn
.fi-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--dipeo-runtime-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Dropdown-Panels
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-dropdown-panel {
    /* D5.7.7A: Filament FloatingUI controls dropdown geometry */

    
    
    border: 1px solid var(--dipeo-runtime-border);
    border-radius: var(--dipeo-runtime-radius-lg);
    background: var(--dipeo-runtime-surface);
    box-shadow:
        0 12px 34px rgba(16, 24, 40, 0.14),
        0 3px 8px rgba(16, 24, 40, 0.08);
}

[data-enterprise-table-shell]
.fi-ta-filters-dropdown
.fi-dropdown-panel,
[data-enterprise-table-shell]
.fi-ta-col-manager-dropdown
.fi-dropdown-panel {
    width: min(380px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 120px));
    overflow-y: auto;
}

/*
|--------------------------------------------------------------------------
| Filterpanel
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
}

.enterprise-customer-table-runtime .fi-ta-filters-header,
.enterprise-customer-table-runtime .fi-ta-col-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dipeo-runtime-border);
}

.enterprise-customer-table-runtime .fi-ta-filters-heading,
.enterprise-customer-table-runtime .fi-ta-col-manager-heading {
    margin: 0;
    color: var(--dipeo-runtime-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.enterprise-customer-table-runtime .fi-ta-filters .fi-sc {
    gap: 16px;
}

.enterprise-customer-table-runtime
.fi-ta-filters
.fi-fo-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.enterprise-customer-table-runtime
.fi-ta-filters
.fi-fo-field-label-content {
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.enterprise-customer-table-runtime
.fi-ta-filters
.fi-fo-select
.fi-input-wrp {
    min-height: 40px;
    border: 1px solid var(--dipeo-runtime-border-strong);
    border-radius: var(--dipeo-runtime-radius-sm);
    background: #ffffff;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.enterprise-customer-table-runtime
.fi-ta-filters
.fi-fo-select
.fi-input-wrp:focus-within {
    border-color: var(--dipeo-runtime-primary);
    box-shadow: 0 0 0 3px var(--dipeo-runtime-focus);
}

.enterprise-customer-table-runtime
.fi-ta-filters
.fi-select-input {
    width: 100%;
    min-height: 40px;
    padding: 8px 34px 8px 11px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dipeo-runtime-text);
    font-size: 14px;
}

.enterprise-customer-table-runtime
.fi-ta-filters
.fi-checkbox-input,
.enterprise-customer-table-runtime
.fi-ta-col-manager
.fi-checkbox-input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--dipeo-runtime-primary);
}

.enterprise-customer-table-runtime
.fi-ta-filters
.fi-fo-field-label:has(.fi-checkbox-input) {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.enterprise-customer-table-runtime .fi-ta-filters-actions-ctn {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid var(--dipeo-runtime-border);
}

/*
|--------------------------------------------------------------------------
| Enterprise Buttons innerhalb der Runtime
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime
.fi-ta-filters-actions-ctn
.fi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid var(--dipeo-runtime-primary);
    border-radius: var(--dipeo-runtime-radius-sm);
    background: var(--dipeo-runtime-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(167, 25, 125, 0.18);
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.enterprise-customer-table-runtime
.fi-ta-filters-actions-ctn
.fi-btn:hover {
    border-color: var(--dipeo-runtime-primary-hover);
    background: var(--dipeo-runtime-primary-hover);
    box-shadow: 0 4px 10px rgba(167, 25, 125, 0.22);
}

.enterprise-customer-table-runtime
.fi-ta-filters-actions-ctn
.fi-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px var(--dipeo-runtime-focus);
}

.enterprise-customer-table-runtime
.fi-ta-filters-actions-ctn
.fi-btn:active {
    transform: translateY(1px);
}

/*
|--------------------------------------------------------------------------
| Links innerhalb der Panels
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime
.fi-ta-filters-header
.fi-link,
.enterprise-customer-table-runtime
.fi-ta-col-manager-header
.fi-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--dipeo-runtime-danger);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.enterprise-customer-table-runtime
.fi-ta-filters-header
.fi-link:hover,
.enterprise-customer-table-runtime
.fi-ta-col-manager-header
.fi-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Spaltenmanager
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime .fi-ta-col-manager {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.enterprise-customer-table-runtime .fi-ta-col-manager-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.enterprise-customer-table-runtime .fi-ta-col-manager-item {
    border-radius: var(--dipeo-runtime-radius-sm);
    transition: background-color 140ms ease;
}

.enterprise-customer-table-runtime .fi-ta-col-manager-item:hover {
    background: var(--dipeo-runtime-surface-hover);
}

.enterprise-customer-table-runtime .fi-ta-col-manager-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 9px;
    color: #344054;
    font-size: 13px;
    line-height: 18px;
    cursor: pointer;
}

.enterprise-customer-table-runtime
.fi-ta-col-manager-label
.fi-checkbox-input:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.enterprise-customer-table-runtime
.fi-ta-col-manager-label:has(.fi-checkbox-input:disabled) {
    cursor: not-allowed;
    color: #667085;
}

/*
|--------------------------------------------------------------------------
| Bulk Actions
|--------------------------------------------------------------------------
*/

.enterprise-customer-table-runtime
.fi-ta-actions
.fi-ac-btn-group.fi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--dipeo-runtime-border-strong);
    border-radius: var(--dipeo-runtime-radius-sm);
    background: #ffffff;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.enterprise-customer-table-runtime
.fi-ta-actions
.fi-ac-btn-group.fi-btn:hover {
    border-color: var(--dipeo-runtime-primary);
    background: var(--dipeo-runtime-primary-soft);
    color: var(--dipeo-runtime-primary);
}


/*
|--------------------------------------------------------------------------
| Responsive Runtime
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .enterprise-customer-table-runtime .fi-ta-header-toolbar {
        align-items: stretch;
        flex-direction: column;
        min-height: auto;
    }

    .enterprise-customer-table-runtime
    .fi-ta-header-toolbar
    > div:last-child {
        width: 100%;
        justify-content: flex-start;
    }

    .enterprise-customer-table-runtime .fi-ta-search-field {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }

    .enterprise-customer-table-runtime .fi-ta-actions {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .enterprise-customer-table-runtime .fi-ta-header-toolbar {
        padding: 12px;
    }

    .enterprise-customer-table-runtime
    .fi-ta-header-toolbar
    > div:last-child {
        flex-wrap: wrap;
    }

    .enterprise-customer-table-runtime .fi-ta-search-field {
        flex-basis: 100%;
        order: -1;
    }

    .enterprise-customer-table-runtime
    .fi-ta-filters-dropdown
    .fi-dropdown-panel,
    .enterprise-customer-table-runtime
    .fi-ta-col-manager-dropdown
    .fi-dropdown-panel {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 88px);
    }
}

/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .enterprise-customer-table-runtime *,
    .enterprise-customer-table-runtime *::before,
    .enterprise-customer-table-runtime *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}

/* END D5.7.3.4.4 – ENTERPRISE FILAMENT RUNTIME DOM INTEGRATION */

/* BEGIN D5.7.3.5.2 – ENTERPRISE LOADING RUNTIME */

/*
 * Filament und Livewire bleiben für den technischen Request-State
 * verantwortlich. Sichtbar ist ausschließlich der Dipeo-Ladevertrag.
 */

.enterprise-customer-table-runtime {
    position: relative;
}

.enterprise-customer-table-runtime .fi-loading-indicator {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.enterprise-customer-table-runtime .enterprise-loading-runtime {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--enterprise-color-border, #e4e7ec);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.06),
        0 6px 18px rgba(16, 24, 40, 0.08);
    color: var(--enterprise-color-text, #172033);
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1;
    pointer-events: none;
}

.enterprise-customer-table-runtime
.enterprise-loading-runtime__bar {
    position: relative;
    display: block;
    width: 2.5rem;
    height: 0.1875rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--enterprise-color-border, #e4e7ec);
}

.enterprise-customer-table-runtime
.enterprise-loading-runtime__bar::after {
    content: "";
    position: absolute;
    inset-block: 0;
    left: -45%;
    width: 45%;
    border-radius: inherit;
    background: var(--enterprise-color-primary, #b01f82);
    animation: enterprise-loading-runtime-progress 1.15s ease-in-out infinite;
}

.enterprise-customer-table-runtime
.enterprise-loading-runtime__label {
    white-space: nowrap;
}

@keyframes enterprise-loading-runtime-progress {
    0% {
        left: -45%;
    }

    55% {
        left: 55%;
    }

    100% {
        left: 110%;
    }
}

@media (max-width: 640px) {
    .enterprise-customer-table-runtime
    .enterprise-loading-runtime {
        top: 0.625rem;
        right: 0.625rem;
        padding-inline: 0.625rem;
    }

    .enterprise-customer-table-runtime
    .enterprise-loading-runtime__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .enterprise-customer-table-runtime
    .enterprise-loading-runtime__bar::after {
        left: 0;
        width: 100%;
        animation: none;
    }
}

/* END D5.7.3.5.2 – ENTERPRISE LOADING RUNTIME */

/* BEGIN D5.7.3.5.3 – ENTERPRISE ACCESSIBILITY RUNTIME */

/*
 * Filament verwendet .fi-sr-only für Statusinformationen, die
 * ausschließlich für Screenreader bestimmt sind.
 *
 * Diese Utility bleibt technisch und semantisch vorhanden, darf jedoch
 * innerhalb der sichtbaren Dipeo Enterprise Runtime keinen Layoutplatz
 * einnehmen.
 */

.enterprise-customer-table-runtime .fi-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* END D5.7.3.5.3 – ENTERPRISE ACCESSIBILITY RUNTIME */

/* BEGIN D5.7.4.3.2.4 – ENTERPRISE TABLE SHELL CUSTOMER INTEGRATION */

/*
 * Filament bleibt technische Tabellenruntime.
 * Die Enterprise Table Shell übernimmt ausschließlich die sichtbare
 * Dipeo-Struktur, Flächen, Abstände und Zustandsdarstellung.
 */

[data-enterprise-table-shell] {
    --enterprise-table-shell-border:
        var(--enterprise-color-border, #e4e7ec);
    --enterprise-table-shell-surface:
        var(--enterprise-color-surface, #ffffff);
    --enterprise-table-shell-muted-surface:
        var(--enterprise-color-surface-muted, #f8fafc);
    --enterprise-table-shell-text:
        var(--enterprise-color-text, #101828);
    --enterprise-table-shell-muted-text:
        var(--enterprise-color-text-muted, #667085);
    --enterprise-table-shell-radius:
        var(--enterprise-radius-large, 0.875rem);

    min-width: 0;
}

[data-enterprise-table-shell-runtime] {
    min-width: 0;
}

[data-enterprise-table-shell] .fi-ta-ctn {
    overflow: hidden;
    border: 1px solid var(--enterprise-table-shell-border);
    border-radius: var(--enterprise-table-shell-radius);
    background: var(--enterprise-table-shell-surface);
    box-shadow: none;
}

[data-enterprise-table-shell] .fi-ta-main {
    min-width: 0;
    background: transparent;
}

/*
 * Toolbar
 */

[data-enterprise-table-shell] .fi-ta-header-ctn {
    border-bottom: 1px solid var(--enterprise-table-shell-border);
    background: var(--enterprise-table-shell-surface);
}

[data-enterprise-table-shell] .fi-ta-header {
    padding: 1rem 1.25rem;
}

[data-enterprise-table-shell] .fi-ta-header-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--enterprise-table-shell-border);
    background: var(--enterprise-table-shell-surface);
}

[data-enterprise-table-shell] .fi-ta-header-toolbar > * {
    min-width: 0;
}

[data-enterprise-table-shell] .fi-ta-header-toolbar .fi-input-wrp {
    min-height: 2.625rem;
    border-color: var(--enterprise-table-shell-border);
    border-radius: var(--enterprise-radius-medium, 0.625rem);
    background: var(--enterprise-table-shell-surface);
    box-shadow: none;
}

[data-enterprise-table-shell] .fi-ta-header-toolbar .fi-input-wrp:focus-within {
    border-color: var(--enterprise-color-primary, #b01f82);
    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--enterprise-color-primary, #b01f82) 14%,
            transparent
        );
}

[data-enterprise-table-shell] .fi-ta-header-toolbar .fi-input {
    color: var(--enterprise-table-shell-text);
}

[data-enterprise-table-shell]
.fi-ta-header-toolbar
.fi-input::placeholder {
    color: var(--enterprise-table-shell-muted-text);
}

/*
 * Filter und Auswahlzustände
 */

[data-enterprise-table-shell] .fi-ta-filter-indicators,
[data-enterprise-table-shell] .fi-ta-selection-indicator,
[data-enterprise-table-shell] .fi-ta-reorder-indicator {
    padding-inline: 1.25rem;
    border-top: 1px solid var(--enterprise-table-shell-border);
    background: var(--enterprise-table-shell-muted-surface);
}

[data-enterprise-table-shell] .fi-ta-filter-indicators {
    padding-block: 0.75rem;
}

[data-enterprise-table-shell] .fi-ta-selection-indicator,
[data-enterprise-table-shell] .fi-ta-reorder-indicator {
    padding-block: 0.75rem;
}

/*
 * Tabelleninhalt
 */

[data-enterprise-table-shell] .fi-ta-content-ctn {
    min-width: 0;
    overflow-x: auto;
    background: var(--enterprise-table-shell-surface);
}

[data-enterprise-table-shell] .fi-ta-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

[data-enterprise-table-shell] .fi-ta-table > thead {
    background: #f8fafc;
}

[data-enterprise-table-shell] .fi-ta-header-cell {
    padding: 0.95rem 1rem;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    border-radius: 0;
    background: #f8fafc;
    background-clip: border-box;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

[data-enterprise-table-shell] .fi-ta-header-cell-sort-btn {
    display: inline-flex;
    width: auto;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    box-shadow: none;
}

[data-enterprise-table-shell] .fi-ta-header-cell-sort-btn:hover,
[data-enterprise-table-shell] .fi-ta-header-cell-sort-btn:focus-visible {
    background: transparent;
    color: var(--enterprise-table-shell-text);
}

[data-enterprise-table-shell] .fi-ta-header-cell-sort-btn .fi-icon {
    width: 0.9rem;
    height: 0.9rem;
    color: #8793a5;
}

[data-enterprise-table-shell] .fi-ta-row {
    background: var(--enterprise-table-shell-surface);
}

[data-enterprise-table-shell] .fi-ta-row:hover {
    background: #fcfcfd;
}

[data-enterprise-table-shell] .fi-ta-cell {
    padding: 0.95rem 1rem;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    color: var(--enterprise-table-shell-text);
    vertical-align: middle;
}

[data-enterprise-table-shell] .fi-ta-row:last-child .fi-ta-cell {
    border-bottom: 0;
}

/*
 * Checkboxen und Aktionen bleiben vollständig Filament-gesteuert.
 * Die Shell vereinheitlicht lediglich Abstände und Ausrichtung.
 */

[data-enterprise-table-shell] {
    /*
     * Dipeo Enterprise Table Primary Color Contract
     *
     * Dipeo definiert ausschließlich die sichtbare Farbe.
     * Filament behält Zustand, Interaktion und Accessibility.
     */
    --dipeo-table-accent: var(--dipeo-orange);
    --enterprise-primary: var(--dipeo-orange);
    --enterprise-color-primary: var(--dipeo-orange);
    --enterprise-color-primary-hover: var(--dipeo-orange-dark);
    --enterprise-color-primary-soft:
        color-mix(in srgb, var(--dipeo-orange) 8%, #ffffff);

    --dipeo-runtime-primary: var(--dipeo-orange);
    --dipeo-runtime-primary-hover: var(--dipeo-orange-dark);
    --dipeo-runtime-primary-soft:
        color-mix(in srgb, var(--dipeo-orange) 8%, #ffffff);
    --dipeo-runtime-focus:
        color-mix(in srgb, var(--dipeo-orange) 18%, transparent);

    /*
     * Filaments Primary-Palette wird ausschließlich innerhalb
     * der Enterprise Table Shell auf die Dipeo-Markenfarbe abgebildet.
     */
    --primary-400: #f58a50;
    --primary-500: var(--dipeo-orange);
    --primary-600: var(--dipeo-orange-dark);
}

[data-enterprise-table-shell] .fi-ta-selection-cell {
    width: 3rem;
}

/*
|--------------------------------------------------------------------------
| Enterprise Table Checkbox Contract
|--------------------------------------------------------------------------
|
| Filament bleibt für Zustand, Interaktion und Accessibility zuständig.
| Die Enterprise Table Shell definiert ausschließlich die zentrale
| sichtbare Darstellung sämtlicher Tabellen-Checkboxen.
|
*/

[data-enterprise-table-shell] .fi-checkbox-input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    color: var(--dipeo-orange);
    accent-color: var(--dipeo-orange);
}

[data-enterprise-table-shell] .fi-checkbox-input:checked,
[data-enterprise-table-shell] .fi-checkbox-input:indeterminate {
    color: var(--dipeo-orange);
    background-color: var(--dipeo-orange);
}

[data-enterprise-table-shell] .fi-checkbox-input:focus {
    --tw-ring-color: var(--dipeo-orange);
}

[data-enterprise-table-shell] .fi-checkbox-input:checked:focus,
[data-enterprise-table-shell] .fi-checkbox-input:indeterminate:focus {
    --tw-ring-color: var(--dipeo-orange);
}

[data-enterprise-table-shell] .fi-ta-actions {
    gap: 0.5rem;
}

/*
 * Loading State
 */

[data-enterprise-table-shell] .fi-ta-table-loading-ctn {
    min-height: 12rem;
    padding: 2rem;
    background:
        color-mix(
            in srgb,
            var(--enterprise-table-shell-surface) 94%,
            transparent
        );
    color: var(--enterprise-table-shell-muted-text);
}

/*
 * Empty State
 */

[data-enterprise-table-shell] .fi-ta-empty-state {
    min-height: 17rem;
    padding: 3rem 1.5rem;
    border: 0;
    background: var(--enterprise-table-shell-surface);
}

[data-enterprise-table-shell] .fi-ta-empty-state-content {
    max-width: 32rem;
    margin-inline: auto;
}

[data-enterprise-table-shell] .fi-ta-empty-state-icon-bg {
    background: var(--enterprise-table-shell-muted-surface);
}

[data-enterprise-table-shell] .fi-ta-empty-state-heading {
    color: var(--enterprise-table-shell-text);
}

[data-enterprise-table-shell] .fi-ta-empty-state-description {
    color: var(--enterprise-table-shell-muted-text);
}

/*
 * Pagination
 */

[data-enterprise-table-shell] .fi-pagination {
    min-height: 4rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--enterprise-table-shell-border);
    background: var(--enterprise-table-shell-surface);
}

[data-enterprise-table-shell] .fi-pagination-overview {
    color: var(--enterprise-table-shell-muted-text);
}

/*
 * Accessibility
 */

[data-enterprise-table-shell]
:is(
    button,
    a,
    input,
    select,
    [role="button"]
):focus-visible {
    outline: 2px solid var(--enterprise-color-primary, #b01f82);
    outline-offset: 2px;
}

/*
 * Responsive Verhalten
 */

@media (max-width: 768px) {
    [data-enterprise-table-shell] .fi-ta-header,
    [data-enterprise-table-shell] .fi-ta-header-toolbar,
    [data-enterprise-table-shell] .fi-pagination {
        padding-inline: 1rem;
    }

    [data-enterprise-table-shell] .fi-ta-header-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    [data-enterprise-table-shell]
    .fi-ta-header-toolbar
    > * {
        width: 100%;
    }

    [data-enterprise-table-shell] .fi-ta-filter-indicators,
    [data-enterprise-table-shell] .fi-ta-selection-indicator,
    [data-enterprise-table-shell] .fi-ta-reorder-indicator {
        padding-inline: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-enterprise-table-shell] *,
    [data-enterprise-table-shell] *::before,
    [data-enterprise-table-shell] *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* END D5.7.4.3.2.4 – ENTERPRISE TABLE SHELL CUSTOMER INTEGRATION */

/* BEGIN D5.7.4.3.2.5.1 – ENTERPRISE TABLE TOOLBAR FOUNDATION */

/*
|--------------------------------------------------------------------------
| Enterprise Table Toolbar
|--------------------------------------------------------------------------
|
| Dieser Contract definiert ausschließlich die zentrale sichtbare
| Toolbar-Struktur. Suche, Filter, Sortierung, Spaltenverwaltung,
| Bulk Actions und Livewire-Zustände bleiben technische Aufgabe der
| jeweiligen Runtime.
|
| Es entstehen weder eine parallele Tabellenengine noch ein
| Filament-Vendor-Override.
|
*/

[data-enterprise-table-toolbar],
[data-enterprise-table-toolbar-host] {
    --enterprise-toolbar-border:
        var(--enterprise-color-border, #dfe5ec);
    --enterprise-toolbar-surface:
        var(--enterprise-color-surface, #ffffff);
    --enterprise-toolbar-surface-muted:
        var(--enterprise-color-surface-muted, #f8fafc);
    --enterprise-toolbar-text:
        var(--enterprise-color-text, #172033);
    --enterprise-toolbar-muted:
        var(--enterprise-color-text-muted, #667085);
    --enterprise-toolbar-primary: var(--dipeo-orange);
    --enterprise-toolbar-focus:
        color-mix(
            in srgb,
            var(--enterprise-toolbar-primary) 10%,
            transparent
        );
    --enterprise-toolbar-radius:
        var(--enterprise-radius-medium, 0.75rem);
    --enterprise-toolbar-control-size: 2.875rem;

    min-width: 0;
}

[data-enterprise-table-toolbar] {
    display: grid;
    width: 100%;
    gap: 0;
    border-block: 1px solid var(--enterprise-toolbar-border);
    background: var(--enterprise-toolbar-surface);
    color: var(--enterprise-toolbar-text);
}

.enterprise-table-toolbar__status {
    min-width: 0;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--enterprise-toolbar-border);
    background: var(--enterprise-toolbar-surface-muted);
    color: var(--enterprise-toolbar-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.enterprise-table-toolbar__main {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
}

.enterprise-table-toolbar__primary {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.75rem;
}

.enterprise-table-toolbar__search {
    min-width: 13.75rem;
    max-width: 42rem;
    flex: 1 1 28rem;
}

.enterprise-table-toolbar__primary-actions,
.enterprise-table-toolbar__controls,
.enterprise-table-toolbar__bulk {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
}

.enterprise-table-toolbar__controls {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.enterprise-table-toolbar__bulk {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--enterprise-toolbar-border);
    background: var(--enterprise-toolbar-surface-muted);
}

.enterprise-table-toolbar__extension {
    min-width: 0;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--enterprise-toolbar-border);
}

/*
 * Vorhandene Filament Toolbar Runtime.
 *
 * In diesem Foundation-Release wird sie noch nicht extrahiert.
 * Sie wird lediglich über den zentralen Enterprise Host eingeordnet.
 */

[data-enterprise-table-toolbar-host] .fi-ta-header-toolbar {
    display: flex;
    min-width: 0;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
}

[data-enterprise-table-toolbar-host] .fi-ta-header-toolbar
> * {
    min-width: 0;
}

[data-enterprise-table-toolbar-host] .fi-ta-header-toolbar
> div:last-child {
    display: flex;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
}

[data-enterprise-table-toolbar-host] .fi-ta-search-field {
    width: auto;
    min-width: 13.75rem;
    max-width: none;
    flex: 1 1 auto;
}

[data-enterprise-table-toolbar-host] .fi-ta-header-toolbar
.fi-dropdown-trigger {
    display: inline-flex;
    flex: 0 0 auto;
}

[data-enterprise-table-toolbar-host] .fi-ta-header-toolbar
.fi-icon-btn {
    position: relative;
    display: inline-flex;
    width: var(--enterprise-toolbar-control-size);
    min-width: var(--enterprise-toolbar-control-size);
    height: var(--enterprise-toolbar-control-size);
    min-height: var(--enterprise-toolbar-control-size);
    align-items: center;
    justify-content: center;
    border: 1px solid var(--enterprise-toolbar-border);
    border-radius: var(--enterprise-toolbar-radius);
    background: var(--enterprise-toolbar-surface);
    color: #475467;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

[data-enterprise-table-toolbar-host] .fi-ta-header-toolbar
.fi-icon-btn:hover {
    border-color:
        color-mix(
            in srgb,
            var(--enterprise-toolbar-primary) 35%,
            var(--enterprise-toolbar-border)
        );
    background:
        color-mix(
            in srgb,
            var(--enterprise-toolbar-primary) 5%,
            var(--enterprise-toolbar-surface)
        );
    color: var(--enterprise-toolbar-primary);
}

[data-enterprise-table-toolbar-host] .fi-ta-header-toolbar
.fi-icon-btn:focus-visible {
    outline: 0;
    border-color: var(--enterprise-toolbar-primary);
    box-shadow: 0 0 0 2px var(--enterprise-toolbar-focus);
}

[data-enterprise-table-toolbar-host] .fi-ta-header-toolbar
.fi-icon-btn:active {
    transform: translateY(1px);
}

[data-enterprise-table-toolbar-host] .fi-ta-header-toolbar
.fi-icon-btn .fi-icon {
    width: 1.125rem;
    height: 1.125rem;
}

[data-enterprise-table-toolbar-host]
.fi-ta-filters-dropdown
.fi-icon-btn-badge-ctn {
    top: -0.35rem;
    right: -0.35rem;
}

[data-enterprise-table-toolbar-host]
.fi-ta-filters-dropdown
.fi-icon-btn-badge-ctn
.fi-badge {
    min-width: 1.125rem;
    height: 1.125rem;
    padding-inline: 0.25rem;
    border: 2px solid var(--enterprise-toolbar-surface);
    border-radius: 999px;
    background: var(--enterprise-toolbar-primary);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
}

.enterprise-table-toolbar--compact
.enterprise-table-toolbar__main {
    padding-block: 0.625rem;
}

@media (max-width: 900px) {
    .enterprise-table-toolbar--stack-tablet
    .enterprise-table-toolbar__main,
    [data-enterprise-table-toolbar-host] .fi-ta-header-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .enterprise-table-toolbar--stack-tablet
    .enterprise-table-toolbar__primary,
    .enterprise-table-toolbar--stack-tablet
    .enterprise-table-toolbar__controls,
    [data-enterprise-table-toolbar-host] .fi-ta-search-field {
        width: 100%;
        max-width: none;
    }

    .enterprise-table-toolbar--stack-tablet
    .enterprise-table-toolbar__controls {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .enterprise-table-toolbar__main,
    .enterprise-table-toolbar__status,
    .enterprise-table-toolbar__bulk,
    .enterprise-table-toolbar__extension {
        padding-inline: 0.875rem;
    }

    .enterprise-table-toolbar__primary {
        align-items: stretch;
        flex-direction: column;
    }

    .enterprise-table-toolbar__search {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .enterprise-table-toolbar__controls,
    .enterprise-table-toolbar__primary-actions {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-enterprise-table-toolbar] *,
    [data-enterprise-table-toolbar] *::before,
    [data-enterprise-table-toolbar] *::after,
    [data-enterprise-table-toolbar-host] .fi-ta-header-toolbar
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* END D5.7.4.3.2.5.1 – ENTERPRISE TABLE TOOLBAR FOUNDATION */

/* BEGIN D5.7.4.3.2.5.2 – ENTERPRISE TABLE SEARCH INTEGRATION */

/*
|--------------------------------------------------------------------------
| Enterprise Table Search Integration
|--------------------------------------------------------------------------
|
| Die Suchausführung bleibt vollständig Bestandteil der vorhandenen
| Filament- und Livewire-Runtime.
|
| Dipeo übernimmt ausschließlich den sichtbaren Such- und Fokus-Contract.
| Sämtliche Filament-Selektoren bleiben auf einen expliziten Enterprise
| Search Host begrenzt.
|
*/

[data-enterprise-table-search],
[data-enterprise-table-search-host] {
    --enterprise-search-height: 2.875rem;
    --enterprise-search-radius:
        var(--enterprise-radius-medium, 0.75rem);
    --enterprise-search-border:
        var(--enterprise-color-border, #dfe5ec);
    --enterprise-search-border-hover:
        var(--enterprise-color-border-strong, #c4ccd7);
    --enterprise-search-surface:
        var(--enterprise-color-surface, #ffffff);
    --enterprise-search-text:
        var(--enterprise-color-text, #172033);
    --enterprise-search-placeholder:
        var(--enterprise-color-text-muted, #667085);
    --enterprise-search-primary: var(--dipeo-orange);
    --enterprise-search-focus:
        color-mix(
            in srgb,
            var(--dipeo-orange) 10%,
            transparent
        );
}

[data-enterprise-table-search] {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: var(--enterprise-search-height);
    align-items: center;
    border: 1px solid var(--enterprise-search-border);
    border-radius: var(--enterprise-search-radius);
    background: var(--enterprise-search-surface);
    color: var(--enterprise-search-text);
}

.enterprise-table-search__icon {
    display: grid;
    width: 2.625rem;
    min-width: 2.625rem;
    place-items: center;
    color: var(--enterprise-search-placeholder);
    pointer-events: none;
}

.enterprise-table-search__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.enterprise-table-search__runtime {
    min-width: 0;
    flex: 1 1 auto;
}

.enterprise-table-search__clear {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding-inline-end: 0.375rem;
}

.enterprise-table-search__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

[data-enterprise-table-search-host] .fi-ta-search-field {
    width: auto;
    min-width: min(100%, 15rem);
    max-width: none;
    flex: 1 1 auto;
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-input-wrp {
    display: flex;
    min-height: var(--enterprise-search-height);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--enterprise-search-border);
    border-radius: var(--enterprise-search-radius);
    background: var(--enterprise-search-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-input-wrp:hover {
    border-color: var(--enterprise-search-border-hover);
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-input-wrp:focus-within {
    border-color:
        color-mix(
            in srgb,
            var(--enterprise-search-primary) 70%,
            var(--enterprise-search-border)
        );
    box-shadow: 0 0 0 2px var(--enterprise-search-focus);
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-input {
    width: 100%;
    min-height: calc(var(--enterprise-search-height) - 2px);
    padding: 0.625rem 0.875rem 0.625rem 0.375rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--enterprise-search-text);
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: none;
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-input::placeholder {
    color: var(--enterprise-search-placeholder);
    opacity: 1;
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-input-wrp-prefix {
    display: inline-flex;
    min-width: 2.875rem;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 0.75rem;
    border: 0;
    border-inline-end: 0;
    background: transparent;
    color: var(--enterprise-search-placeholder);
    box-shadow: none;
}

[data-enterprise-table-search-host]
.fi-ta-search-field
.fi-input-wrp-prefix::before,
[data-enterprise-table-search-host]
.fi-ta-search-field
.fi-input-wrp-prefix::after {
    display: none;
    content: none;
}

[data-enterprise-table-search-host]
.fi-ta-search-field
.fi-input-wrp-prefix
.fi-icon {
    width: 1.125rem;
    height: 1.125rem;
}

[data-enterprise-table-search-host]
.fi-ta-search-field
.fi-input-wrp-content-ctn {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    box-shadow: none;
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-input-wrp-suffix {
    min-height: var(--enterprise-search-height);
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-icon-btn {
    width: 2.125rem;
    min-width: 2.125rem;
    height: 2.125rem;
    min-height: 2.125rem;
    border: 0;
    border-radius: calc(var(--enterprise-search-radius) - 0.25rem);
    background: transparent;
    box-shadow: none;
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-icon-btn:hover {
    background:
        var(--enterprise-color-surface-muted, #f8fafc);
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-icon-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--enterprise-search-focus);
}

[data-enterprise-table-search-host] .fi-ta-search-field .fi-loading-indicator {
    width: 1rem;
    height: 1rem;
    color: var(--enterprise-search-primary);
}

@media (max-width: 900px) {
    [data-enterprise-table-search-host] .fi-ta-search-field {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex-basis: auto;
    }
}

@media (max-width: 640px) {
    [data-enterprise-table-search-host] .fi-ta-search-field .fi-input {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-enterprise-table-search-host] .fi-ta-search-field .fi-input-wrp {
        transition-duration: 0.01ms !important;
    }
}

/* END D5.7.4.3.2.5.2 – ENTERPRISE TABLE SEARCH INTEGRATION */


/* ============================================================
   D5.7.7A – ENTERPRISE TABLE MODAL RUNTIME CONTRACT
   ============================================================ */

[data-enterprise-table-shell] .fi-dropdown-panel {

    overflow: visible;

    z-index: 9999 !important;
}


[data-enterprise-table-toolbar-host] {

    position: relative;
    z-index: 90;

}


[data-enterprise-table-toolbar-host]
.fi-ta-header-toolbar {

    position: relative;
    z-index: 90;

}


[data-enterprise-table-toolbar-host]
.fi-dropdown-trigger {

    position: relative;

}



/* ============================================================
   D5.7.7B – ENTERPRISE FORM CONTROL ACCENT TEST
   Central Dipeo Accent Override
   ============================================================ */

[data-enterprise-table-shell] .fi-pagination select:focus,
[data-enterprise-table-shell] .fi-ta-pagination select:focus {

    border-color: #ff6b00 !important;

    box-shadow:
        0 0 0 3px rgba(255,107,0,.18) !important;

}


/* ============================================================
   D5.7.7B – FILAMENT PAGINATION ENTERPRISE ADAPTER
   Uses existing Dipeo Pagination Foundation
   ============================================================ */

.enterprise-pagination-size select,
[data-enterprise-table-shell] .fi-pagination-records-per-page-select select {

    width: auto;
    min-width: 4rem;
    min-height: 2.25rem;

    padding-block: 0.25rem;

    border: 1px solid rgba(203,213,225,.8);
    border-radius: .5rem;

    background-color:#ffffff;
    color:#334155;

    box-shadow:none;

    font-size:.875rem;
    font-weight:600;
}



/* ============================================================
   D5.7.7B – PAGINATION INPUT WRAPPER ADAPTER
   Maps Filament input shell to Dipeo Foundation
   ============================================================ */

[data-enterprise-table-shell] .fi-pagination-records-per-page-select .fi-input-wrp {

    border: 1px solid rgba(203,213,225,.8) !important;

    border-radius: .5rem !important;

    background: #ffffff !important;

    box-shadow: none !important;

}


[data-enterprise-table-shell] .fi-pagination-records-per-page-select .fi-input-wrp-content-ctn {

    background: transparent !important;

}


[data-enterprise-table-shell] .fi-pagination-records-per-page-select select {

    border: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

}


/* ============================================================
   D5.8.4A.1.1 – ENTERPRISE TABLE CSS CONTRACT NORMALIZATION
   ============================================================

   table.enterprise-table
   → bestehender Tabellenvertrag für Users und Mail Templates

   .enterprise-table
   → nativer Enterprise-Table-Container

   .enterprise-table__table
   → innere semantische Tabelle des nativen Renderers

   Die öffentliche Klassen-API bleibt unverändert. Durch die
   Elementqualifizierung konkurrieren Tabellen- und Container-
   Eigenschaften nicht länger innerhalb der CSS-Kaskade.
   ============================================================ */

/* ============================================================
   D5.8.2.1 – ENTERPRISE TABLE VISUAL FOUNDATION
   Dipeo native table renderer
   ============================================================ */

.enterprise-table {
    width: 100%;
    overflow: hidden;
}

.enterprise-table__wrapper {
    width: 100%;
    overflow-x: auto;
}

.enterprise-table__table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.enterprise-table__head th {
    padding: 1rem 1.25rem;
    text-align: left;

    color: #64748b;
    background: #f8fafc;

    font-size: 0.875rem;
    font-weight: 700;

    border-bottom: 1px solid #e2e8f0;
}

.enterprise-table__row td {
    padding: 1rem 1.25rem;

    color: #1e293b;

    border-bottom: 1px solid #e2e8f0;
}

.enterprise-table__row:hover {
    background: #fff7ed;
}


/* ============================================================
   D5.8.2.3 – ENTERPRISE TABLE FOOTER PAGINATION
   ============================================================ */

.enterprise-table-shell__footer {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;

    border-top: 1px solid rgba(203, 213, 225, .7);

    background: transparent;
}

.enterprise-table-shell__pagination {
    display: block;
}


/* ============================================================
   D5.8.2.4 – PAGINATION OUTSIDE TABLE SHELL
   ============================================================ */

.enterprise-table-shell__pagination-footer {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;

    border-top: 1px solid rgba(203,213,225,.7);

    background: transparent;
}

