From ca849e2d33357be2a6626050fd98e2bb0754cfbc Mon Sep 17 00:00:00 2001 From: Venkatesh Date: Wed, 8 Apr 2026 15:44:58 +0530 Subject: [PATCH] FIX_OPD_POLICY_TERMS_ALIGNMENT_ISSUE --- app/Views/other_policy_terms.php | 345 ++++++++++++++++++------------- 1 file changed, 204 insertions(+), 141 deletions(-) diff --git a/app/Views/other_policy_terms.php b/app/Views/other_policy_terms.php index 22c092f..5b2d307 100755 --- a/app/Views/other_policy_terms.php +++ b/app/Views/other_policy_terms.php @@ -23,6 +23,14 @@ max-width: 440px; } +#OtherPolicyTermsForm #familyFloaterDiv_others .form-check-inline .form-check-input { + margin-right: 4px; +} + +#OtherPolicyTermsForm #familyFloaterDiv_others .form-check-inline .form-check-label { + margin-right: 14px; +} + .btn-si-add-teal { background-color: #00a8b5; border: 1px solid #00a8b5; @@ -45,63 +53,60 @@ -webkit-overflow-scrolling: touch; } -/* Fixed columns so Min/Max Age and Payable align across Self / Spouse / Children / Other ages */ -.policy-72-ff-grid { - display: grid; - grid-template-columns: 248px 148px 148px minmax(200px, 1fr); - column-gap: 20px; - row-gap: 14px; - align-items: center; - min-width: 680px; +.policy-72-ff-table { + width: 100%; + min-width: 860px; } -.policy-72-ff-grid .ff-cell.ff-member { +.policy-72-ff-table td { + vertical-align: middle; + padding: 5px 6px; +} + +.policy-72-ff-table .ff-member-label-col { + width: 11%; +} + +.policy-72-ff-table .ff-member-control-col { + width: 11%; +} + +.policy-72-ff-table .ff-elders-col { + width: 22%; +} + +.policy-72-ff-table .ff-min-col { + width: 23%; +} + +.policy-72-ff-table .ff-max-col { + width: 23%; +} + +.policy-72-ff-table .ff-pay-label-col { + width: 20%; +} + +.policy-72-ff-table .ff-pay-check-col { + width: 12%; +} + +.policy-72-ff-table .ff-age-wrap { + display: flex; + align-items: center; + gap: 6px; +} + +.policy-72-ff-table .ff-elders-wrap { display: flex; align-items: center; gap: 8px; - min-width: 0; } -.policy-72-ff-grid .ff-cell.ff-member-children .ff-children-select { - flex: 1; - min-width: 0; - max-width: 110px; - width: auto; -} - -.policy-72-ff-grid .ff-cell.ff-min, -.policy-72-ff-grid .ff-cell.ff-max { - display: flex; +.policy-72-ff-table .ff-pay-wrap { + display: inline-flex; align-items: center; gap: 6px; - justify-self: start; -} - -.policy-72-ff-grid .ff-cell.ff-pay { - display: flex; - align-items: center; - justify-content: flex-end; - gap: 10px; - justify-self: stretch; - text-align: right; -} - -.policy-72-ff-grid .ff-cell.ff-other-top { - grid-column: 1 / -1; - display: flex; - flex-direction: column; - align-items: stretch; - gap: 6px; - min-width: 0; -} - -.policy-72-ff-grid .ff-other-select { - width: 100%; - max-width: 100%; -} - -.policy-72-ff-grid .ff-grid-spacer { - min-height: 1px; } .policy-72-other-members-age-row { @@ -109,20 +114,31 @@ } .policy-72-other-members-age-row.policy-72-other-ages-open { - display: contents; + display: table-row; } -.policy-72-ff-grid .ff-field-label { +.policy-72-ff-table .ff-field-label { white-space: nowrap; font-size: 0.9rem; color: #212529; } -.policy-72-ff-grid .ff-age-input { - width: 64px; +.policy-72-ff-table .ff-pay-wrap .ff-field-label { + white-space: nowrap; + font-size: 12px; + line-height: 1.2; +} + +.policy-72-ff-table .ff-age-input { + width: 68px; min-width: 48px; } +.policy-72-ff-table .ff-elders-count-input { + width: 64px; + background: #d3d3d3; +} + .button-like { display: inline-block; padding: 8px 15px; @@ -242,92 +258,138 @@ label {