.customer-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.customer-header h1 {
    margin-bottom: 0.25rem;
}

.customer-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1 1 auto;
    transition: width 0.2s ease, flex-basis 0.2s ease;
}

.customer-shell {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
}

.customer-shell.is-embedded {
    min-height: 420px;
}

.customer-shell.is-embedded .customer-list {
    flex: 1 1 0;
    min-width: 240px;
}

.customer-list.is-collapsed {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    gap: 0;
}

.customer-list-toggle {
    border: none;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    align-self: center;
}

.customer-list-toggle:focus {
    outline: none;
}

.customer-list-body.is-hidden {
    display: none;
}

.customer-details-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.customer-details-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.customer-details-panel {
    position: relative;
    flex: 0 0 0;
    width: 0;
    max-width: 0;
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    transform: translateX(100%);
    opacity: 0;
    max-height: 0;
    transition: transform 0.32s ease, opacity 0.2s ease;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.customer-details-panel.is-open {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    background: #f8fafc;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    transform: translateX(0);
    opacity: 1;
    max-height: none;
    overflow: auto;
    pointer-events: auto;
}

.customer-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 118, 106, 0.15);
    box-shadow: 0 18px 38px rgba(15, 118, 106, 0.08);
    cursor: pointer;
    text-align: left;
}

.customer-license {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

.customer-status {
    align-self: flex-start;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.customer-status.is-cancelled {
    background: rgba(254, 226, 226, 0.9);
    color: #b91c1c;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.customer-card h3 {
    margin: 0 0 0.35rem;
}

@media (min-width: 720px) {
    .customer-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .customer-shell.is-embedded {
        min-height: 560px;
    }
}
