/* MyWaqf detail program v1: use Zakatmu-like structured information in existing modal. */
.modal:has(.mw-rich-detail){width:min(100%,820px)!important;max-height:min(90dvh,850px)!important;padding:30px!important}
.modal:has(.mw-rich-detail) #modalTitle{padding-right:12px}
.mw-rich-detail{margin:24px 0 21px;border:1px solid #dbece7;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 7px 22px rgba(15,76,66,.055)}
.mw-rich-label{font-size:10px;letter-spacing:.135em;font-weight:800;color:#147f76;padding:19px 22px 0;background:#f4fbf8}
.mw-rich-tabs{display:flex;gap:1px;overflow-x:auto;scrollbar-width:thin;padding:13px 10px 0;background:#f4fbf8;border-bottom:1px solid #deeee8;-webkit-overflow-scrolling:touch}
.mw-rich-tabs button{flex:none;border:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;background:transparent;color:#557b75;cursor:pointer;padding:12px 13px;min-height:42px;white-space:nowrap;font:800 11px/1.3 "DM Sans",sans-serif}
.mw-rich-tabs button[aria-selected="true"]{color:#087a75;border-bottom-color:#078983;background:#e4f5f1}
.mw-rich-tabs button:hover{background:#e9f5f2}
.mw-rich-tabs button:focus-visible{outline:2px solid #0aa28b;outline-offset:-3px}
.mw-rich-content{padding:26px 23px 27px;min-height:230px;color:#365955}
.mw-rich-content h3{font-size:19px!important;line-height:1.28!important;margin:0 0 13px!important;color:#174c49!important}
.mw-rich-content h4{font-size:14px!important;line-height:1.5!important;margin:20px 0 8px!important;color:#215753!important}
.mw-rich-content p{font-size:12px!important;line-height:1.8!important;color:#526f6a!important;margin:0 0 13px!important}
.mw-rich-content p:last-child{margin-bottom:0!important}
.mw-rich-note{padding:15px 16px;margin:17px 0;background:#eef8f5;border:1px solid #d5ebe5;border-radius:11px}
.mw-rich-note b{display:block;margin:0 0 5px;color:#136e66;font-size:12px}
.mw-rich-note p{font-size:11px!important;margin:0!important;line-height:1.7!important}
.mw-rich-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 20px}
.mw-rich-facts>div{background:#f6fbf9;border:1px solid #e1efeb;border-radius:11px;padding:14px}
.mw-rich-facts small,.mw-rich-facts strong{display:block}
.mw-rich-facts small{font-size:10px;color:#76958d;margin-bottom:8px}
.mw-rich-facts strong{font-size:12px;color:#176a61}
.mw-rich-plan{padding:0!important;list-style:none!important;margin:14px 0!important;display:grid;gap:9px}
.mw-rich-plan li{display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid #e3efec;border-radius:11px;padding:13px}
.mw-rich-plan li b{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:50%;background:#e1f5ef;color:#0a8078;font-size:12px}
.mw-rich-plan li span{padding-top:4px;font-size:12px;line-height:1.65;color:#496761}
.mw-rich-update{padding:14px 16px;margin:12px 0;background:#fcfefd;border:1px solid #dcece7;border-left:3px solid #0a9690;border-radius:10px}
.mw-rich-update small{display:block;color:#168980;font-size:10px;font-weight:800;margin-bottom:5px}
.mw-rich-update h4{margin:0 0 7px!important}
.mw-rich-update p{margin:0!important}
.mw-rich-disclaimer{padding:12px 22px;background:#fbfdfc;border-top:1px solid #e4efec;color:#71918a;font-size:10px;line-height:1.6}
.mw-rich-form-help{grid-column:1/-1;padding:13px 15px;border-radius:11px;background:#eef8f5;border:1px solid #d3e9e1}
.mw-rich-form-help strong{display:block;font-size:12px;color:#155d56;margin-bottom:5px}
.modal-form .mw-rich-form-help p{font-size:11px;color:#4a7069;line-height:1.55;margin:0 0 7px}
.mw-rich-return{color:#087d75;font-size:11px;font-weight:800;background:transparent;border:0;padding:4px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media(max-width:620px){
 .modal:has(.mw-rich-detail){padding:23px 14px!important;max-height:90dvh!important}
 .mw-rich-detail{margin:19px 0;border-radius:13px}
 .mw-rich-label{padding:16px 16px 0;font-size:9px}
 .mw-rich-tabs{padding:10px 7px 0}
 .mw-rich-tabs button{font-size:10px;padding:11px 12px}
 .mw-rich-content{padding:20px 16px;min-height:220px}
 .mw-rich-content h3{font-size:17px!important}
 .mw-rich-facts{gap:7px}
 .mw-rich-plan li{padding:11px}
}
