/* Shared close icon: keep the existing close control and its click handler. */
body.nakliyat-pro #modal_block#modal_block .inner>div.close{display:flex!important;align-items:center!important;justify-content:center!important;background:#fff!important;color:#075a9c!important;border:1px solid #d7e4f2!important;border-radius:9px!important;width:36px!important;height:36px!important;padding:0!important;cursor:pointer}
body.nakliyat-pro #modal_block#modal_block .inner>div.close:before,body.nakliyat-pro #modal_block#modal_block .inner>div.close:after{content:none!important;display:none!important}
body.nakliyat-pro #modal_block#modal_block .inner>div.close>div{display:block!important;background:none!important;width:auto!important;height:auto!important;position:static!important;margin:0!important;padding:0!important;transform:none!important}
body.nakliyat-pro #modal_block#modal_block .inner>div.close>div:before{content:"\f00d"!important;display:block!important;font-family:"Font Awesome 6 Free"!important;font-weight:900!important;font-size:16px!important;line-height:1!important;color:#075a9c!important;background:none!important;width:auto!important;height:auto!important;position:static!important;transform:none!important}
body.nakliyat-pro #modal_block#modal_block .inner>div.close>div:after{content:none!important;display:none!important}
body.nakliyat-pro .popup.popup .caption>.close.small,body.nakliyat-pro .popup.popup .body>.close.small{width:36px!important;height:36px!important;border:1px solid #d7e4f2!important;border-radius:9px!important;background:#fff!important;display:flex!important;align-items:center;justify-content:center;cursor:pointer}
body.nakliyat-pro .popup.popup .close.small:before{content:"\f00d"!important;font-family:"Font Awesome 6 Free"!important;font-weight:900!important;font-size:16px!important;line-height:1!important;color:#075a9c!important;background:none!important;width:auto!important;height:auto!important;position:static!important;opacity:1!important;transform:none!important}
body.nakliyat-pro .popup.popup .close.small:after{content:none!important;display:none!important}
@media(max-width:767px){
 /* Profile overflow menu remains inside its own tab bar. */
 body.nakliyat-pro:is(.my-profile-page,.profile-page) #controller_area ul.tabs{position:relative!important;overflow:visible!important;max-width:100%!important;box-sizing:border-box}
 body.nakliyat-pro:is(.my-profile-page,.profile-page) #controller_area ul.tabs>li.overflowed{left:auto!important;right:0!important;top:100%!important;width:min(280px,100%)!important;max-width:100%!important;margin:4px 0 0!important;z-index:60!important}
 body.nakliyat-pro:is(.my-profile-page,.profile-page) #controller_area ul.tabs>li.overflowed>ul{width:100%!important;margin:0!important;padding:6px!important;box-sizing:border-box;background:#fff!important;border:1px solid #d7e4f2;border-radius:12px;box-shadow:0 8px 24px rgba(14,35,78,.12)}
 body.nakliyat-pro:is(.my-profile-page,.profile-page) #controller_area ul.tabs>li.overflowed>ul>li>a{display:flex!important;align-items:center;gap:8px;min-height:44px;height:auto!important;width:100%!important;padding:10px 12px!important;box-sizing:border-box;white-space:normal!important;line-height:1.4!important;background:#fff!important;border-radius:8px!important}
 body.nakliyat-pro:is(.my-profile-page,.profile-page) #controller_area ul.tabs>li.overflowed>ul>li.active>a{background:#edf5fc!important;color:#075a9c!important}
 /* Payment records become full-width cards. */
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions>.header{display:none!important}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions>.row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;width:100%!important;margin:0!important;padding:16px!important;min-height:0!important;height:auto!important;box-sizing:border-box;border-bottom:1px solid #d7e4f2}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions>.row>div{position:static!important;float:none!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0!important;padding:0!important;min-width:0!important;grid-column:auto!important;text-align:start!important;box-sizing:border-box;overflow-wrap:anywhere}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions>.row>div:before,body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions>.row>div:after{display:none!important;content:none!important}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions .iteration{color:#68758d;font-size:12px}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions .content{font-weight:700;color:#17335e!important}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions .table-cell{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;gap:10px!important;width:100%!important;padding:8px 0!important;box-sizing:border-box}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions .table-cell>.name,body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions .table-cell>.value{float:none!important;width:auto!important;min-width:0!important;padding:0!important;font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.5!important}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions .table-cell>.name:before{font-family:"Font Awesome 6 Free";font-weight:900;color:#075a9c;margin-inline-end:7px;content:"\f09d"}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions .table-cell:nth-child(2)>.name:before{content:"\f51e"}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions .table-cell:nth-child(3)>.name:before{content:"\f02b"}
 body.nakliyat-pro.payment-history-page #controller_area .transactions.ni-transactions .table-cell:nth-child(4)>.name:before{content:"\f073"}
 /* Saved searches: selection row followed by full-width criteria and actions. */
 body.nakliyat-pro #controller_area #saved_search.list-table.ni-saved-search>.header{display:none!important}
 body.nakliyat-pro #controller_area #saved_search.list-table.ni-saved-search>.row{display:grid!important;grid-template-columns:26px minmax(0,1fr)!important;gap:12px!important;padding:16px!important;margin:0 0 12px!important;width:100%!important;height:auto!important;min-height:0!important;box-sizing:border-box;align-items:start!important;background:#fff;border:1px solid #d7e4f2!important;border-radius:12px}
 body.nakliyat-pro #controller_area #saved_search.list-table.ni-saved-search>.row>.content,body.nakliyat-pro #controller_area #saved_search.list-table.ni-saved-search>.row>.date-cell,body.nakliyat-pro #controller_area #saved_search.list-table.ni-saved-search>.row>.status-cell{grid-column:1 / -1!important;justify-self:stretch!important;text-align:start!important;width:100%!important;min-width:0!important;box-sizing:border-box}
 body.nakliyat-pro #controller_area #saved_search.list-table.ni-saved-search .ni-saved-criteria{width:100%;padding:12px!important;box-sizing:border-box}
 body.nakliyat-pro #controller_area #saved_search.list-table.ni-saved-search .ni-saved-criteria>.table-cell{grid-template-columns:minmax(0,1fr)!important;gap:3px!important}
 body.nakliyat-pro #controller_area #saved_search.list-table.ni-saved-search .ni-saved-criteria .name,body.nakliyat-pro #controller_area #saved_search.list-table.ni-saved-search .ni-saved-criteria .value{white-space:normal!important;overflow-wrap:anywhere}
 body.nakliyat-pro #controller_area #saved_search .do-search{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px!important;border-radius:9px;background:#edf5fc;color:#075a9c!important;box-sizing:border-box;white-space:normal}
 body.nakliyat-pro #controller_area #saved_search_obj #mass_actions{display:flex;flex-wrap:wrap;gap:8px}
 body.nakliyat-pro #controller_area #saved_search_obj #mass_actions>a{min-height:42px;display:inline-flex!important;align-items:center;gap:7px;padding:10px 12px!important;box-sizing:border-box}
}

/* Older cached popup scripts may still create both controls. Keep the caption close. */
body.nakliyat-pro .popup.popup.fill-edge>div>div>.caption~.body>span.close.small{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.nakliyat-pro .popup.popup.fill-edge>div>div>.caption~.body>span.close.small:before,body.nakliyat-pro .popup.popup.fill-edge>div>div>.caption~.body>span.close.small:after{display:none!important;content:none!important}
