/* Tax settings and two informational dialogs only; no policy changes. */
@media screen {
html body[data-active-page] #detailModal:has(:is(#taxProfileForm,#detailModalTitle[data-ui-label="سياسة الضريبة"],#detailModalTitle[data-ui-label="التقارير والطباعة"])) .detail-modal-card {height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;overflow:hidden!important;width:min(960px,100%)!important}
html body[data-active-page] #detailModal:has(:is(#taxProfileForm,#detailModalTitle[data-ui-label="سياسة الضريبة"],#detailModalTitle[data-ui-label="التقارير والطباعة"])) #detailModalBody {display:block!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 130px)!important;overflow:auto!important;padding:18px!important}
html body #detailModal:has(:is(#taxProfileForm,#detailModalTitle[data-ui-label="سياسة الضريبة"],#detailModalTitle[data-ui-label="التقارير والطباعة"])) :is(.erp-detail-frame,.erp-detail-content) {display:block!important;height:auto!important;min-height:0!important}
html body #settingsTaxProfilesTable .status {width:auto!important;justify-self:start!important;min-height:30px!important;padding:6px 14px!important}
html body #detailModal #taxProfileForm:not(.settings-panel-hidden) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;height:auto!important;min-height:0!important}
html body #detailModal #taxProfileForm > :is(.eyebrow,h2,small,button) {grid-column:1/-1!important}
html body #detailModal #taxProfileForm > label {display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;margin:0!important}
html body #detailModal #taxProfileForm input:not([type=checkbox]) {width:100%!important;min-width:0!important;height:40px!important;box-sizing:border-box!important}
html body #detailModal #taxProfileForm .switch-line {display:flex!important;align-items:center!important;gap:8px!important;min-height:40px!important}
html body #detailModal #taxProfileActive {width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px!important}
html body #detailModal #taxProfileForm > button {width:auto!important;min-width:130px!important;justify-self:start!important;white-space:nowrap!important}
html body #detailModal:has(:is(#detailModalTitle[data-ui-label="سياسة الضريبة"],#detailModalTitle[data-ui-label="التقارير والطباعة"])) .detail-summary {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
html body #detailModal:has(:is(#detailModalTitle[data-ui-label="سياسة الضريبة"],#detailModalTitle[data-ui-label="التقارير والطباعة"])) .detail-summary > span {padding:12px!important;min-width:0!important;line-height:1.8!important}
html body #detailModal:has(:is(#detailModalTitle[data-ui-label="سياسة الضريبة"],#detailModalTitle[data-ui-label="التقارير والطباعة"])) .empty-state {padding:12px!important;margin:12px 0 0!important;min-height:0!important;line-height:1.8!important}
}
@media screen and (max-width:600px) {
html body #detailModal #taxProfileForm:not(.settings-panel-hidden),
html body #detailModal:has(:is(#detailModalTitle[data-ui-label="سياسة الضريبة"],#detailModalTitle[data-ui-label="التقارير والطباعة"])) .detail-summary {grid-template-columns:minmax(0,1fr)!important}
}
