.customer-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.customer-header h1 {
    margin-bottom: 0.25rem;
}

.customer-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer-filter-tabs {
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.customer-table-wrap {
    border: 1px solid rgba(15, 118, 106, 0.18);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 118, 106, 0.08);
}

.customer-shell.is-embedded {
    min-height: 320px;
}

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

.customer-table thead {
    display: none;
}

.customer-table tbody,
.customer-table tr,
.customer-table td {
    display: block;
    width: 100%;
}

.customer-table tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    padding: 0.85rem 0.95rem;
}

.customer-table tr.is-inactive {
    background: rgba(226, 232, 240, 0.72);
}

.customer-table tr:last-child {
    border-bottom: none;
}

.customer-table td {
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.customer-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgba(15, 23, 42, 0.62);
}

.customer-action-cell {
    padding-top: 0.8rem;
}

.customer-action-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.customer-email-cell {
    word-break: break-word;
}

.customer-action-cell .rz-button {
    width: 100%;
}

.customer-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.customer-status.is-active {
    background: rgba(220, 252, 231, 0.9);
    color: #166534;
    border: 1px solid rgba(134, 239, 172, 0.8);
}

.customer-status.is-cancelled {
    background: rgba(254, 226, 226, 0.9);
    color: #b91c1c;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.customer-status.is-inactive {
    background: rgba(226, 232, 240, 0.95);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.55);
}

.customer-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    z-index: 40;
}

.customer-dialog {
    position: fixed;
    inset: 0;
    z-index: 41;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 0.7rem;
    overflow-y: auto;
}

.customer-dialog-panel {
    width: min(1280px, 100%);
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 34px 60px rgba(2, 6, 23, 0.32);
}

.customer-dialog .customer-details.is-embedded {
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

@media (min-width: 900px) {
    .customer-table thead {
        display: table-header-group;
    }

    .customer-table tbody {
        display: table-row-group;
    }

    .customer-table tr {
        display: table-row;
        padding: 0;
    }

    .customer-table tr.is-inactive td {
        background: rgba(226, 232, 240, 0.55);
    }

    .customer-table th,
    .customer-table td {
        display: table-cell;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.22);
        vertical-align: middle;
    }

    .customer-table th {
        font-size: 0.76rem;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: rgba(15, 23, 42, 0.66);
        background: rgba(240, 253, 250, 0.65);
        font-weight: 700;
        border-bottom-color: rgba(15, 118, 106, 0.22);
    }

    .customer-table td::before {
        display: none;
    }

    .customer-action-cell {
        width: 220px;
        text-align: right;
    }

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

    .customer-action-stack {
        align-items: flex-end;
    }

    .customer-action-cell .rz-button {
        width: 100%;
        max-width: 190px;
    }

    .customer-dialog {
        padding: 1.4rem;
    }
}
