body[data-page="patrol"] .patrol-summary{display:grid!important;grid-template-columns:2fr 1fr 1fr!important;gap:20px;padding:18px!important}
body[data-page="patrol"] .patrol-summary>div{min-width:0;display:flex;flex-direction:column;gap:8px}
body[data-page="patrol"] .official-query-box{display:flex;flex-wrap:wrap;gap:12px}
body[data-page="pending"] .stat-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
body[data-page="qc-product-images"] td img{display:block!important;margin:0 auto!important}
body[data-page="qc-product-images"] td .r4-cell{display:flex;justify-content:center;align-items:center}
body[data-page="master-data"] .business-card>.business-toolbar{min-height:0!important;padding:10px 14px!important;margin:0!important;align-items:center!important}
body[data-page="master-data"] .business-card>.business-toolbar h3,body[data-page="master-data"] .business-card>.business-toolbar p{margin:3px 0!important}
body[data-page="certificates"] .r4-cell{max-height:none!important;overflow:visible!important}
body[data-page="certificates"] td{height:auto!important;min-height:52px;overflow:visible!important}
#r7-grants section{padding:12px 0;border-bottom:1px solid #eee}#r7-grants label{display:inline-flex;align-items:center;gap:5px;margin:5px 12px 5px 0}
#r7-records{max-height:50vh;overflow:auto}#r7-records .purge-record{padding:8px;border-bottom:1px solid #eee}
#modal.admin-profile-modal .account-permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.r7-module-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}.r7-permission-module{grid-column:1/-1}.r7-permission-module summary{padding:8px;cursor:pointer}

html body[data-page="pending"] #content .metric-card .label{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:10px!important;width:100%}
html body[data-page="pending"] #content .metric-card .label .value{display:inline-block!important;margin:0!important;font-size:22px!important;line-height:1.3!important}
html body[data-page="pending"] #content .metric-card{min-height:130px!important;padding:15px!important}
html body[data-page="patrol"] #content .official-query-box-dual{display:grid!important;grid-template-columns:minmax(200px,1fr) minmax(220px,300px)!important;gap:12px!important;align-items:center!important}
html body[data-page="patrol"] #content .official-query-actions{grid-column:2;display:flex;gap:8px}
html body[data-page="patrol"] #content #officialCertificateNo{width:100%!important}
html body #modal .account-permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:750px){html body[data-page="patrol"] #content .official-query-box-dual{grid-template-columns:1fr!important}html body[data-page="patrol"] #content .official-query-actions{grid-column:1}}

.help-page-directory{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.pw-history-job{border-bottom:1px solid #e2e8f0;padding:10px 0}

html body[data-page="settings"] #content #r7-settings{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;min-height:0!important;height:auto!important;padding:8px 0!important;margin:0 0 12px!important}
html body[data-page="settings"] #content #r7-settings>button{flex:0 0 auto!important;margin:0!important}
html body #modal#modal#modal.admin-profile-modal #modalBody{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:16px!important}
html body #modal#modal#modal.admin-profile-modal .admin-profile{display:flex;align-items:center;gap:16px;padding:10px 12px;width:100%;box-sizing:border-box}
html body #modal#modal#modal.admin-profile-modal .admin-profile-avatar{width:40px;height:40px;flex:0 0 40px;padding:8px;margin:0}
html body #modal#modal#modal.admin-profile-modal .admin-profile p{margin:0}
html body #modal#modal#modal.admin-profile-modal .form-grid{gap:12px!important}
@media(max-width:650px){html body #modal#modal#modal.admin-profile-modal .form-grid,html body #modal#modal#modal .r7-module-pages{grid-template-columns:minmax(0,1fr)!important}.admin-profile{flex-wrap:wrap}}
