.customer-billing-page {
    padding: 0;
}

.customer-billing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.customer-billing-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-billing-card,
.customer-billing-dialog .dialog-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.customer-billing-page .eyebrow,
.customer-billing-dialog .eyebrow {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.customer-billing-table .jans-table-header,
.customer-billing-table .jans-table-row {
    min-width: 62rem;
}

.customer-billing-table .customer-billing-col-customer {
    flex: 1.45 0 14rem;
}

.customer-billing-table .customer-billing-col-title {
    flex: 1.2 0 13rem;
}

.customer-billing-table .customer-billing-col-number {
    flex: 0.8 0 10rem;
}

.customer-billing-table .customer-billing-col-action,
.customer-billing-table .customer-billing-col-status,
.customer-billing-table .customer-billing-col-interval {
    flex: 0.7 0 8rem;
}

.customer-billing-table .customer-billing-col-date {
    flex: 0.65 0 8rem;
}

.customer-billing-table .customer-billing-col-total {
    flex: 0.65 0 8rem;
    justify-content: flex-end;
    text-align: right;
}

.customer-billing-dialog {
    display: grid;
    gap: 1rem;
}

.customer-billing-dialog .dialog-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-billing-dialog .dialog-field {
    display: grid;
    gap: 0.35rem;
}

.customer-billing-dialog .dialog-field-wide {
    grid-column: 1 / -1;
}

.customer-billing-dialog .dialog-input {
    width: 100%;
}

.customer-billing-dialog .dialog-textarea {
    min-height: 6rem;
}

.customer-billing-dialog .dialog-toggle-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.customer-billing-dialog .dialog-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.customer-billing-detail-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-billing-detail-grid div {
    display: grid;
    gap: 0.2rem;
}

.customer-billing-detail-grid span,
.customer-billing-line span,
.customer-billing-audit-entry span {
    color: #64748b;
    font-size: 0.85rem;
}

.customer-billing-lines,
.customer-billing-audit {
    display: grid;
    gap: 0.7rem;
}

.customer-billing-line {
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0.65rem 0;
}

.customer-billing-line:last-child {
    border-bottom: 0;
}

.customer-billing-audit-entry {
    border-left: 3px solid #3b82f6;
    display: grid;
    gap: 0.2rem;
    padding-left: 0.75rem;
}

.customer-billing-audit-entry p {
    color: #334155;
    margin: 0;
}

.customer-billing-email-body {
    min-height: 14rem;
}

@media (max-width: 768px) {
    .customer-billing-header {
        display: grid;
    }

    .customer-billing-actions {
        justify-content: stretch;
    }

    .customer-billing-actions .rz-button {
        width: 100%;
    }

    .customer-billing-dialog .dialog-grid,
    .customer-billing-detail-grid,
    .customer-billing-line {
        grid-template-columns: 1fr;
    }

    .customer-billing-dialog .dialog-footer {
        justify-content: stretch;
    }

    .customer-billing-dialog .dialog-footer .rz-button {
        width: 100%;
    }
}

.customer-billing-mask-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.customer-billing-customer-mask {
    background: #ffffff;
}

.customer-billing-assignment-mask {
    background: #fbfdff;
}

.customer-billing-customers-table .jans-table-row {
    cursor: pointer;
}

@media (max-width: 768px) {
    .customer-billing-mask-header {
        display: grid;
    }

    .customer-billing-mask-header .rz-button {
        width: 100%;
    }
}
