/* Module 3.7: scoped to .rh37-* to avoid changing the existing Blazor layout. */
.rh37-page{direction:rtl;color:#223542;padding:24px 26px 38px;font-family:Tahoma,"Segoe UI",sans-serif;font-size:13px;background:#f3f6f8;min-height:100%}
.rh37-page *,.rh37-overlay *{box-sizing:border-box}
.rh37-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px;flex-wrap:wrap}
.rh37-heading small{display:block;color:#0f8b8d;font-weight:700;margin-bottom:8px}
.rh37-heading h1{font-size:23px;font-weight:700;margin:0 0 9px;color:#142b3b}
.rh37-heading p{color:#71818c;line-height:1.9;margin:0}
.rh37-actions,.rh37-inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rh37-btn{font:inherit;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;border:1px solid #dfe7ec;background:#fff;border-radius:9px;color:#263e4c;cursor:pointer;white-space:nowrap}
.rh37-btn:hover:not(:disabled){border-color:#0f8b8d;color:#0b7779}
.rh37-btn:disabled{opacity:.5;cursor:not-allowed}
.rh37-primary{background:#0f8b8d;border-color:#0f8b8d;color:#fff}
.rh37-primary:hover:not(:disabled){background:#0c7677;color:#fff}
.rh37-small{font-size:11px;padding:7px 10px}
.rh37-danger{color:#b84747;border-color:#f3d5d5}
.rh37-notice,.rh37-note{border:1px solid #cfe5e4;background:#f0faf9;color:#38656b;border-radius:10px;padding:12px 15px;line-height:1.9;margin:0 0 18px}
.rh37-note{font-size:11px;margin-top:16px}
.rh37-alert{border-radius:9px;padding:11px 14px;margin:10px 0;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.rh37-error{border:1px solid #f3caca;background:#fff1f1;color:#a73f40}
.rh37-success{border:1px solid #bbdfcf;background:#e9f8f0;color:#18734b}
.rh37-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.rh37-stat{background:#fff;border:1px solid #e2e9ed;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:9px;box-shadow:0 2px 8px rgba(24,45,60,.04)}
.rh37-stat span{font-size:11px;color:#71818c}.rh37-stat strong{font-size:25px;color:#142b3b;font-weight:700}.rh37-stat small{font-size:10px;color:#82919b}
.rh37-panel{background:#fff;border:1px solid #e2e9ed;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(25,48,62,.045)}
.rh37-panel-head{padding:18px 20px;border-bottom:1px solid #e2e9ed}
.rh37-panel-head h2{font-size:14px;margin:0 0 7px}.rh37-panel-head p{margin:0;color:#71818c;font-size:11px;line-height:1.8}
.rh37-count{display:inline-block;font-weight:500;margin-right:6px;background:#edf3f5;color:#607784;border-radius:7px;padding:5px 8px;font-size:10px}
.rh37-filters{display:grid;grid-template-columns:minmax(180px,1.65fr) repeat(3,minmax(115px,1fr)) auto;gap:10px;align-items:end;padding:15px 20px;border-bottom:1px solid #e2e9ed}
.rh37-field{display:flex;flex-direction:column;gap:7px;min-width:0}.rh37-field label{font-size:11px;color:#526571;font-weight:700}
.rh37-field input,.rh37-field select,.rh37-field textarea,.rh37-inline-actions select,.rh37-toolbar select{font:inherit;border:1px solid #dbe4e9;background:#fff;border-radius:8px;padding:9px 10px;width:100%;min-width:0;color:#223542;direction:rtl}
.rh37-field input:focus,.rh37-field select:focus,.rh37-field textarea:focus{outline:none;border-color:#0f8b8d;box-shadow:0 0 0 3px #0f8b8d17}
.rh37-field textarea{resize:vertical;line-height:1.9;min-height:80px}
.rh37-filter-actions{justify-content:flex-start}
.rh37-table-wrap{overflow-x:auto;max-width:100%}
.rh37-table-wrap table{width:100%;border-collapse:collapse;text-align:right;min-width:790px}
.rh37-table-wrap th{font-size:10px;color:#71818c;background:#f8fafb;font-weight:700;padding:13px 14px;border-bottom:1px solid #e2e9ed;white-space:nowrap}
.rh37-table-wrap td{font-size:12px;padding:13px 14px;border-bottom:1px solid #edf1f3;vertical-align:middle;line-height:1.75}
.rh37-table-wrap tr:last-child td{border-bottom:0}.rh37-table-wrap tr:hover td{background:#fbfdfd}
.rh37-table-wrap td strong{display:block;font-weight:700}.rh37-table-wrap td small{display:block;color:#738491;margin-top:4px}
.rh37-table-footer{border-top:1px solid #e2e9ed;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#71818c;font-size:11px}
.rh37-empty{padding:38px 18px;text-align:center;color:#81929d;line-height:2}
.rh37-risk{font-size:13px;min-width:35px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;padding:5px 7px;font-weight:800}
.rh37-risk-low{color:#18845b;background:#e8f6ef}.rh37-risk-medium{color:#a96d0b;background:#fff4df}.rh37-risk-high{color:#b84747;background:#fff0f0}.rh37-risk-critical{color:#fff;background:#9e2929}.rh37-risk-unknown{color:#657580;background:#eef1f4}
.rh37-badge{display:inline-flex;align-items:center;border-radius:20px;padding:5px 9px;font-size:11px;font-weight:700;white-space:nowrap}
.rh37-done{color:#168257;background:#e8f6ef}.rh37-muted{color:#687783;background:#edf1f4}.rh37-warning{color:#ab700c;background:#fff3df}.rh37-reviewing{color:#356fc0;background:#edf3fd}.rh37-waiting{color:#667882;background:#eef2f5}
.rh37-overlay{position:fixed;inset:0;background:#1024329c;z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}
.rh37-overlay-front{z-index:1010;background:#102432af}
.rh37-modal{width:min(900px,100%);max-height:94vh;overflow:auto;background:#fff;border-radius:15px;box-shadow:0 25px 80px #00111d40;direction:rtl;font:13px Tahoma,"Segoe UI",sans-serif;color:#223542}
.rh37-modal-large{width:min(1120px,100%)}.rh37-modal-action{width:min(650px,100%)}
.rh37-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;background:#fff;position:sticky;top:0;z-index:1;padding:18px 22px;border-bottom:1px solid #e2e9ed}
.rh37-modal-head h2{font-size:17px;margin:0 0 8px}.rh37-modal-head small{color:#71818c;font-size:11px;line-height:1.7}
.rh37-close{width:34px;height:34px;border:0;border-radius:8px;font-size:23px;background:#f0f4f6;color:#627782;cursor:pointer;line-height:1}
.rh37-modal-body{padding:20px 22px;line-height:1.85}
.rh37-modal-foot{display:flex;gap:9px;justify-content:flex-end;align-items:center;background:#fafcfc;padding:14px 22px;border-top:1px solid #e2e9ed;position:sticky;bottom:0;z-index:1}
.rh37-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.rh37-full{grid-column:1/-1}.rh37-hint{font-size:11px;color:#748592;line-height:1.9;margin:8px 0 0}
.rh37-search-line{display:flex;align-items:center;gap:8px}.rh37-search-line input{flex:1}
.rh37-calculation{border:1px solid #d7ece8;background:#f5faf9;padding:12px;border-radius:10px;display:flex;flex-direction:column;gap:6px}
.rh37-calculation strong{font-size:15px;color:#0d7374}.rh37-calculation small{font-size:10px;color:#657d7d}
.rh37-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rh37-detail-grid>div{padding:13px;background:#f8fafb;border:1px solid #e5ecef;border-radius:9px;min-width:0;overflow-wrap:anywhere}
.rh37-detail-grid label{display:block;color:#71818c;margin-bottom:7px;font-size:10px}
.rh37-detail-grid strong{font-size:12px;font-weight:700}.rh37-detail-grid p{margin:0;white-space:pre-wrap;line-height:1.8}
.rh37-detail-full{grid-column:1/-1}.rh37-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#f8fafb;border-radius:10px;margin:18px 0 12px;padding:12px}
.rh37-toolbar label{font-size:11px;color:#536875}.rh37-toolbar select{width:auto;min-width:155px}
.rh37-inline-actions{min-width:190px;gap:5px}.rh37-inline-actions select{width:auto;min-width:115px;padding:6px;font-size:10px}
.rh37-section{font-size:13px;font-weight:700;border-right:3px solid #0f8b8d;padding-right:9px;margin:20px 0 12px}
.rh37-modal .validation-summary-errors,.rh37-modal .validation-message{color:#b84747;font-size:11px;line-height:1.9}
@media(max-width:1180px){.rh37-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.rh37-filter-actions{grid-column:1/-1}}
@media(max-width:800px){.rh37-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rh37-page{padding:18px 12px}.rh37-heading h1{font-size:20px}.rh37-modal-body{padding:15px}.rh37-detail-grid{grid-template-columns:1fr}.rh37-detail-full{grid-column:auto}}
@media(max-width:510px){.rh37-filters{grid-template-columns:1fr}.rh37-filter-actions{grid-column:auto}.rh37-grid{grid-template-columns:1fr}.rh37-full{grid-column:auto}.rh37-stats{gap:8px}.rh37-stat{padding:12px}.rh37-stat strong{font-size:20px}.rh37-table-footer{align-items:flex-start;flex-direction:column}.rh37-modal-head,.rh37-modal-foot{padding:12px}.rh37-overlay{padding:9px}}
