/* ===== Modal form (shared): the fields of a form in a Bootstrap modal =====
   Header subtitle, groups with label / required star / hint, the loading / error state, and a grey box of read-only
   facts (label left, value right). Used by the Chi phí VNV modal (.modal-form__*) and, under their older names
   (.payment-settings__*, .payment-modal__*), by the invoice modals: Cài đặt, Thanh toán, Xuất hóa đơn, Nhập hóa đơn tay.
   Load before the app CSS. */

.modal-form__subtitle,
.payment-settings__house {
    margin: 0.125rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.modal-form__group,
.payment-settings__group {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}

.modal-form__label,
.payment-settings__label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.modal-form__required,
.payment-settings__required {
    color: #dc2626;
}

.modal-form__hint,
.payment-settings__hint {
    margin: 0.375rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.modal-form__hint:empty,
.payment-settings__hint:empty {
    display: none;
}

.modal-form__state,
.payment-settings__state {
    padding: 2rem 0;
    text-align: center;
    color: #6b7280;
}

.modal-form__info,
.payment-modal__info {
    margin: 0 0 1rem;
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    background: #f3f4f6;
}

.modal-form__row,
.payment-modal__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.375rem 0;
    font-size: 0.9rem;
}

.modal-form__row dt,
.payment-modal__row dt {
    flex-shrink: 0;
    font-weight: 400;
    color: #4b5563;
}

.modal-form__row dd,
.payment-modal__row dd {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0;
    font-weight: 600;
    text-align: right;
    color: #111827;
}

.modal-form__row dd small,
.payment-modal__row dd small {
    font-weight: 400;
    color: #6b7280;
}
