﻿/* ============================================================================
   Customer information dialog
   ----------------------------------------------------------------------------
   Customer form card, fields, validation, actions, and mobile full-width
   behavior. Repeated compact-dialog typography lives in
   StoreDialogPatterns.css.

   Source: Pasted text (3)(1).txt
   ============================================================================ */

.store-customer-dialog .store-customer-card {
    min-width: 0;
    background: var(--store-white);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.store-customer-dialog .store-customer-description {
    max-width: 42rem;
    margin: 0.35rem 0 0;
    color: var(--store-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.store-customer-dialog .store-customer-grid {
    width: 100%;
    margin: 0;
    padding: 0;
}

.store-customer-dialog .store-customer-field {
    min-width: 0;
    padding-top: 0 !important;
    padding-bottom: 1rem !important;
}

    .store-customer-dialog .store-customer-field:last-child {
        padding-bottom: 0 !important;
    }

.store-customer-dialog .store-customer-input {
    min-width: 0;
}

.store-customer-dialog .mud-input-control {
    margin-top: 0;
}

.store-customer-dialog .mud-input-label.mud-input-label-inputcontrol {
    background: var(--store-white);
}

.store-customer-dialog .mud-error-text {
    margin-top: 0.35rem;
    color: var(--store-danger);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.4;
}

.store-customer-dialog .mud-dialog-actions {
    padding: 0;
    background: var(--store-white);
}

.store-customer-dialog .store-action-bar {
    padding: 1rem clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.5rem);
}

.store-customer-dialog .store-btn-primary {
    order: 2;
    min-width: 10rem;
}

.store-customer-dialog .store-btn-secondary {
    order: 1;
}

.store-customer-dialog .mud-dialog-content {
    padding: 0;
}

@media screen and (max-width: 600px) {
    .store-customer-dialog {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

        .store-customer-dialog::before {
            height: 0.25rem;
        }

        .store-customer-dialog .store-customer-dialog-content {
            padding: 0;
        }

        .store-customer-dialog .store-customer-card {
            padding: 1rem;
        }

        .store-customer-dialog .store-customer-header {
            margin-bottom: 1rem;
        }

        .store-customer-dialog .store-customer-field {
            padding-bottom: 0.75rem !important;
        }

        .store-customer-dialog .store-action-bar {
            flex-direction: column;
            gap: 0.55rem;
            padding: 0 1rem 1rem;
        }

        .store-customer-dialog .store-btn {
            width: 100%;
        }

        .store-customer-dialog .store-btn-primary {
            order: 1;
        }

        .store-customer-dialog .store-btn-secondary {
            order: 2;
        }
}
