.order-upsert-dialog {
    width: auto;
    max-width: calc(100vw - 2rem);
    max-height: 85vh;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    overflow: auto;
}

.order-upsert-dialog .dialog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-upsert-dialog .dialog-info {
    background: #f8fafc;
}

.order-upsert-dialog .dialog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.order-upsert-dialog .dialog-field {
    flex: 1 1 100%;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-upsert-dialog .dialog-field-wide {
    flex: 1 1 100%;
}

.order-upsert-dialog .floating-field {
    position: relative;
    padding-top: 0.0rem;
    min-height: 46px;
}

.order-upsert-dialog .floating-field .floating-label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(100% - 0.8rem);
    display: block;
}

.order-upsert-dialog .floating-field.filled .floating-label {
    top: -1rem;
    transform: translateY(0);
    font-size: 0.75rem;
    color: #2563eb;
    opacity: 1;
    left: 0.2rem;
}

.order-upsert-dialog .floating-field:focus-within .floating-label {
    top: -1rem;
    transform: translateY(0);
    font-size: 0.75rem;
    color: #2563eb;
    opacity: 1;
    left: 0.2rem;
}

.order-upsert-dialog .floating-field .rz-inputtext,
.order-upsert-dialog .floating-field textarea,
.order-upsert-dialog .floating-field input {
    background: transparent;
    text-overflow: ellipsis;
}

.order-upsert-dialog .currency-suffix-field {
    padding-right: 2.25rem;
    position: relative;
}

.order-upsert-dialog .currency-suffix-field .currency-suffix {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.order-upsert-dialog .currency-suffix-field .rz-inputtext,
.order-upsert-dialog .currency-suffix-field input {
    padding-right: 2.25rem;
}

.order-upsert-dialog .dialog-input,
.order-upsert-dialog .dialog-input .rz-inputtext {
    height: 46px;
    border-radius: 12px;
}

.order-upsert-dialog .dialog-input .rz-dropdown-label {
    display: flex;
    align-items: center;
}

.order-upsert-dialog .dialog-muted {
    color: #475569;
    font-size: 0.95rem;
}

.order-upsert-dialog .dialog-hint {
    color: #475569;
    font-size: 0.95rem;
}

.order-upsert-dialog .dialog-lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-upsert-dialog .dialog-line-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.order-upsert-dialog .dialog-line-title {
    font-weight: 600;
    color: #0f172a;
}

.order-upsert-dialog .dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

@media (min-width: 900px) {
    .order-upsert-dialog .dialog-field {
        flex: 1 1 calc(50% - 1rem);
    }
}
