/* Housing workspace and shared audit dialogs. Intentionally scoped for WordPress/Elementor. */
.wram-housing-app,.wram-update-monitor,.wh-dialog{--wh-blue:#173f63;--wh-accent:#148271;--wh-ink:#21364b;--wh-muted:#64778c;--wh-line:#dce5ed;--wh-bg:#f3f6f9;font-family:Tajawal,system-ui,sans-serif;color:var(--wh-ink);font-size:14px;line-height:1.65;box-sizing:border-box;text-align:right}
.wram-housing-app *,.wram-update-monitor *,.wh-dialog *{box-sizing:border-box}
.wram-housing-app [hidden],.wram-update-monitor [hidden],.wh-dialog [hidden]{display:none!important}
.wh-dialog:not([open]){display:none!important}.wh-dialog[open]{display:flex!important;flex-direction:column}
.wram-housing-app button,.wram-update-monitor button,.wh-dialog button{appearance:none;font:inherit;font-weight:700;line-height:1.4;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;border:1px solid var(--wh-line);border-radius:8px;padding:9px 14px;background:#fff;color:var(--wh-blue);box-shadow:none;text-decoration:none;text-transform:none;transition:background .16s,border-color .16s,box-shadow .16s}
.wram-housing-app button:hover,.wram-update-monitor button:hover,.wh-dialog button:hover{background:#eff5fa;border-color:#9db4c7}
.wram-housing-app button:disabled,.wram-update-monitor button:disabled,.wh-dialog button:disabled{opacity:.55;cursor:not-allowed}
.wram-housing-app :focus-visible,.wram-update-monitor :focus-visible,.wh-dialog :focus-visible{outline:3px solid #3c94ce;outline-offset:3px}
.wram-housing-app .wh-primary,.wh-dialog .wh-primary{background:var(--wh-blue);border-color:var(--wh-blue);color:#fff}.wh-primary:hover{background:#215781!important;color:#fff!important}
.wram-housing-app .wh-icon-button,.wh-dialog .wh-icon-button{width:38px;height:38px;min-height:38px;padding:8px;flex:none}
.wram-housing-app{width:100%;max-width:1720px;min-width:0;margin:16px auto;padding:14px;background:var(--wh-bg);border-radius:12px;isolation:isolate}
.wh-shell{width:100%;max-width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:14px;direction:ltr;align-items:start}.wh-main{min-width:0;direction:rtl}.wh-sidebar{direction:rtl;position:sticky;top:16px;display:flex;flex-direction:column;padding:12px;background:#173f63;border:1px solid #123550;color:#fff;border-radius:10px;box-shadow:0 12px 24px #173f631a;min-height:520px}
.wh-sidebar-brand{display:flex;align-items:center;gap:10px;padding:2px 0 16px;border-bottom:1px solid #ffffff26}.wh-sidebar-brand img{width:46px;height:46px;object-fit:contain;padding:4px;background:#fff;border-radius:8px}.wh-sidebar-brand strong{display:block;font-size:19px;font-weight:800}.wh-sidebar-brand span{font-size:12px;color:#c2d5e5}.wh-sidebar-label{display:block;margin:16px 8px 8px;color:#c2d5e5;font-size:11px;font-weight:700}.wh-sidebar nav{display:grid;gap:7px}
.wh-sidebar .wh-nav-item{display:flex;justify-content:flex-start;align-items:center;width:100%;min-height:43px;gap:10px;padding:10px 12px;border:1px solid #ffffff1c;background:#ffffff09;color:#eaf2f8;text-align:right;font-weight:500;font-size:13px;line-height:1.6;border-radius:7px;text-decoration:none}.wh-sidebar .wh-nav-item i{width:17px;flex:none;text-align:center;color:#b7dbe6}.wh-sidebar .wh-nav-item:hover{background:#ffffff1d;color:#fff;border-color:#ffffff40}.wh-sidebar .wh-nav-item.is-active{background:#fff;color:#173f63;border-color:#fff;box-shadow:inset 4px 0 0 #148271;font-weight:800}.wh-sidebar .wh-nav-item.is-active i{color:#148271}.wh-sidebar-footer{display:grid;gap:7px;border-top:1px solid #ffffff26;margin-top:26px;padding-top:15px}
.wh-topbar{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--wh-line);border-top:3px solid #c6d5e1;border-radius:9px;padding:14px 18px;margin-bottom:14px}.wh-page-title{flex:1}.wh-page-title h2{font-size:22px;margin:0;font-weight:800;line-height:1.4}.wh-page-title p{margin:2px 0 0;color:var(--wh-muted);font-size:12px}.wh-user{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--wh-line);background:#f7fafc;border-radius:20px;padding:6px 12px;font-size:12px}.wh-nav-toggle,.wh-nav-close{display:none!important}
.wram-update-monitor{background:#fff;border:1px solid var(--wh-line);border-inline-start:4px solid var(--wh-accent);border-radius:9px;padding:15px 18px;margin:0 0 16px}.wh-monitor-top,.wh-monitor-top>div,.wh-monitor-actions{display:flex;align-items:center;gap:9px}.wh-monitor-top{justify-content:space-between;gap:16px;flex-wrap:wrap}.wh-monitor-top strong{font-size:14px}.wh-monitor-top>div>i{color:var(--wh-accent)}.wh-monitor-actions{flex-wrap:wrap}.wram-update-monitor button{font-size:12px;min-height:34px;padding:7px 10px}.wh-live{font-size:11px;color:#148271;background:#e9f6f0;border-radius:5px;padding:3px 7px}.wram-monitor-counts{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.wram-monitor-counts span{display:inline-flex;align-items:center;gap:9px;border:1px solid #e6edf3;background:#f5f8fb;border-radius:6px;padding:4px 10px;font-size:12px;color:#526a80}.wram-monitor-counts b{font-size:16px;color:var(--wh-blue)}.wh-monitor-latest{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;color:#61778c;font-size:12px;min-height:23px}.wh-monitor-latest strong{color:#304e68}.wh-monitor-latest time{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}.wh-monitor-latest .wh-separator{color:#acbbc7}.wh-monitor-latest>.wh-spin{color:#148271}
.wh-section-caption{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:16px 0 10px}.wh-section-caption h3{margin:0;font-size:15px;font-weight:800}.wh-section-caption span{font-size:12px;color:var(--wh-muted)}.wram-housing-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:18px}.wram-housing-sections button{display:grid;grid-template-columns:32px 1fr auto;text-align:right;padding:17px 14px;gap:3px 10px;min-height:106px;background:#fff}.wram-housing-sections i{grid-row:1/3;color:#148271;font-size:20px}.wram-housing-sections span{font-size:13px;line-height:1.6}.wram-housing-sections strong{grid-column:3;grid-row:1/3;font-size:28px;line-height:1.2}.wram-housing-sections small{grid-column:2;font-size:11px;font-weight:400;color:var(--wh-muted)}.wram-housing-sections button[aria-pressed=true]{background:var(--wh-blue);color:#fff;border-color:var(--wh-blue)}.wram-housing-sections button[aria-pressed=true] i,.wram-housing-sections button[aria-pressed=true] small{color:#c5e1e8}
.wram-housing-roster{border:1px solid var(--wh-line);border-radius:10px;background:#fff;overflow:hidden}.wh-roster-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px;gap:12px}.wh-roster-heading h3{font-size:17px;margin:0;font-weight:800}.wh-roster-heading p{font-size:12px;color:var(--wh-muted);margin:3px 0 0}.wh-roster-heading button{min-height:36px;font-size:12px;flex:none}.wh-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px 18px;flex-wrap:wrap}.wh-presence-tabs{display:flex;background:#edf2f6;padding:4px;border-radius:9px;gap:3px}.wh-presence-tabs button{background:transparent;border-color:transparent;padding:7px 11px;font-size:12px;min-height:34px}.wh-presence-tabs button[aria-pressed=true]{background:#fff;border-color:#dce5ed;box-shadow:0 2px 4px #1d3e5b0a}.wh-presence-tabs b{display:inline-block;min-width:20px;background:#eaf0f5;border-radius:4px;font-size:11px;padding:0 4px}.wh-search{display:flex;align-items:center;position:relative;flex:1;max-width:360px;min-width:210px}.wh-search i{position:absolute;inset-inline-start:12px;color:#8ba0b2}.wh-search input{font:inherit!important;font-size:12px!important;width:100%;height:42px!important;padding:9px 35px 9px 12px!important;border:1px solid #cfdae3!important;border-radius:8px!important;background:#fff!important;color:#21364b!important;box-shadow:none!important}.wh-table-area{position:relative;min-height:160px}.wram-housing-table-wrap{overflow:auto;max-width:100%}.wram-housing-table-wrap table{width:100%;border-collapse:collapse;border:0;margin:0;font-size:12px;text-align:right;min-width:790px;line-height:1.6}.wram-housing-table-wrap th{background:#edf3f7;color:#566f86;padding:12px 13px;border:0;border-block:1px solid #e2eaf1;text-align:right;font-size:11px;font-weight:700;white-space:nowrap}.wram-housing-table-wrap td{padding:14px 13px;border:0;border-bottom:1px solid #e8eef3;vertical-align:top;background:#fff;overflow-wrap:anywhere}.wram-housing-table-wrap tr:hover td{background:#f9fbfd}.wram-housing-table-wrap td>strong{display:block;color:#27465f;font-size:12px}.wram-housing-table-wrap small{display:block;font-size:11px;color:#6d8295;line-height:1.7}.wh-tags-inline{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.wh-chip,.wh-tag{display:inline-flex;gap:5px;align-items:center;border-radius:5px;padding:2px 7px;background:#eff3f8;color:#536a81;font-size:10px;font-weight:500;line-height:1.7}.wh-badge{display:inline-flex;gap:5px;align-items:center;border-radius:5px;background:#e8f5ef;color:#167354;padding:4px 9px;font-size:11px;font-weight:700;white-space:nowrap}.wh-badge.is-outside{background:#fff2df;color:#925e17}.wh-row-actions{display:flex;gap:5px;flex-wrap:wrap;max-width:235px}.wh-row-actions button{font-size:11px;min-height:32px;padding:6px 8px}.wh-empty{padding:28px 16px!important;text-align:center;color:var(--wh-muted)}.wh-empty i{display:block;font-size:25px;margin-bottom:8px;color:#9bafbf}.wh-empty strong{font-size:14px!important}.wh-empty p{font-size:12px;margin:5px 0}.wh-empty button{margin-top:8px}.wh-pages{display:flex;justify-content:center;align-items:center;gap:13px;padding:12px;font-size:12px}.wh-pages button{min-height:32px;font-size:12px;padding:6px 11px}
.wh-message,.wh-error{padding:11px 14px;border-radius:7px;border:1px solid #edc5bf;background:#fff3f0;color:#a2382b;font-size:13px;margin:10px 0;line-height:1.7}.wh-message{margin:0 18px 14px}.wh-message.is-success{background:#eaf7f0;color:#1b7257;border-color:#b9ddcc}.wh-error{display:block}.wh-loading{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:170px;background:#ffffffed;color:var(--wh-muted);font-size:12px}.wh-loading>.wh-spin{font-size:28px;color:var(--wh-accent);margin-bottom:4px}.wh-loading strong{font-size:14px;color:var(--wh-blue)}.wh-roster-loading{position:absolute;inset:0;z-index:2;min-height:160px}.wh-spin{animation:wh-spin .85s linear infinite}.is-loading>i{animation:wh-spin .85s linear infinite}.is-loading{cursor:progress!important}@keyframes wh-spin{to{transform:rotate(360deg)}}
.wh-dialog{position:fixed;inset:0;width:min(850px,calc(100vw - 32px));max-width:calc(100vw - 32px)!important;max-height:min(900px,calc(100dvh - 40px));padding:0!important;margin:auto!important;border:1px solid #dde6ee!important;border-radius:14px!important;box-shadow:0 24px 80px #0e2a4655;background:#fff!important;overflow:hidden;z-index:999999;color:#21364b;direction:rtl}.wh-dialog::backdrop{background:#102a48a8;backdrop-filter:blur(3px)}.wh-dialog[open]{animation:wh-dialog-in .16s ease-out}@keyframes wh-dialog-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.wh-dialog form{display:flex;flex-direction:column;min-height:0;max-height:inherit;padding:0!important;margin:0!important}.wh-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 16px;flex:none;border-bottom:1px solid var(--wh-line)}.wh-dialog-head h3{margin:2px 0!important;font:800 21px/1.4 Tajawal,system-ui,sans-serif!important;color:#21364b}.wh-dialog-head p{margin:3px 0 0;font-size:12px;color:var(--wh-muted)}.wh-eyebrow{font-size:11px;letter-spacing:.2px;color:#148271;font-weight:700}.wh-dialog-head .wh-icon-button{background:#f4f7fa;border-color:#e4ebf1;color:#526d83}
.wh-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0!important;padding:16px 24px!important;list-style:none!important;background:#f8fafc;border-bottom:1px solid var(--wh-line);flex:none;counter-reset:none}.wh-steps li{display:flex;align-items:center;gap:8px;font-size:12px;color:#8a9dac;line-height:1.4;list-style:none!important;padding:0!important;margin:0!important}.wh-steps li>span{width:27px;height:27px;display:flex;align-items:center;justify-content:center;flex:none;border:1px solid #d8e2eb;border-radius:50%;font-weight:700;font-family:system-ui,sans-serif;font-size:11px;background:#fff}.wh-steps li.is-current{color:#173f63}.wh-steps li.is-current>span{background:#173f63;border-color:#173f63;color:#fff}.wh-steps li.is-done{color:#148271}.wh-steps li.is-done>span{background:#e5f4ee;color:#148271;border-color:#b6d8cb}.wh-wizard-body{padding:22px 24px;overflow:auto;overscroll-behavior:contain;min-height:280px}.wh-wizard-body h4{font-size:18px;margin:0 0 5px;font-weight:800}.wh-help{margin:0 0 20px;font-size:13px;color:var(--wh-muted)}
.wh-dialog label{display:flex;flex-direction:column;gap:6px;color:#2c475e;font-size:13px;font-weight:700;line-height:1.7;margin:0}.wh-dialog input:not([type=radio]):not([type=checkbox]):not([type=hidden]),.wh-dialog select,.wh-dialog textarea{display:block;width:100%;min-width:0;min-height:43px;height:auto;border:1px solid #cad7e2!important;border-radius:8px!important;background:#fff!important;font:400 14px/1.5 Tajawal,system-ui,sans-serif!important;color:#21364b!important;padding:10px 12px!important;box-shadow:none!important;margin:0!important;transition:border-color .15s,box-shadow .15s}.wh-dialog select{appearance:auto!important;padding-inline-end:25px!important}.wh-dialog input:focus,.wh-dialog select:focus,.wh-dialog textarea:focus{border-color:#4488b4!important;outline:2px solid #dcecf8;outline-offset:1px}.wh-dialog [aria-invalid=true]{border-color:#c74f42!important;outline-color:#f7dfdb!important}.wh-dialog label small{font-weight:400;color:#718498;font-size:11px}.wh-required{color:#b44e41;font-size:12px}.wh-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.wh-wide{grid-column:1/-1}.wh-field-group{margin:18px 0}.wh-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wh-dialog .wh-choice{position:relative;display:grid;grid-template-columns:28px 1fr;align-content:start;border:1px solid #d4dfe9;border-radius:10px;padding:18px 16px;gap:5px 10px;cursor:pointer;background:#fff;transition:border-color .15s,background .15s,box-shadow .15s}.wh-choice input{position:absolute;top:16px;inset-inline-end:14px;width:16px;height:16px;margin:0;accent-color:#173f63}.wh-choice>i{grid-column:1;grid-row:1/3;font-size:21px;color:#7692a9;padding-top:3px}.wh-choice>strong{grid-column:2;font-size:15px;padding-inline-end:18px}.wh-choice>span{grid-column:2;font-size:12px;font-weight:400;color:#708395}.wh-choice:has(input:checked){border-color:#287ea0;background:#f0f8fc;box-shadow:0 0 0 1px #287ea0}.wh-choice:has(input:checked)>i{color:#148271}.wh-choice:has(input:focus-visible){outline:3px solid #69a5d0;outline-offset:2px}.wh-fieldset{border:0;border-bottom:1px solid #e7edf3;padding:0 0 20px;margin:20px 0}.wh-fieldset legend{font-size:14px;font-weight:800;margin-bottom:12px;padding:0;color:#28445c;float:none;width:auto}.wh-fieldset legend small{font-weight:400;color:#7e8f9f;font-size:11px;margin-inline-start:8px}.wh-tags{display:flex;flex-wrap:wrap;gap:8px}.wh-dialog .wh-tag-choice{display:inline-flex;position:relative;cursor:pointer}.wh-tag-choice input{position:absolute;opacity:0;width:1px;height:1px}.wh-tag-choice span{font-size:12px;font-weight:500;border:1px solid #d5e0e9;border-radius:20px;padding:7px 13px;background:#fff;color:#546d83;line-height:1.4}.wh-tag-choice:has(input:checked) span{background:#e8f4f0;color:#176b57;border-color:#82b9a7;font-weight:700}.wh-tag-choice:has(input:focus-visible) span{outline:3px solid #67a7d1;outline-offset:2px}.wh-hint{font-size:12px;color:#6d8092;background:#f4f7fa;padding:10px 12px;border-radius:7px;margin:10px 0 0}.wh-extra{border-top:1px solid #e3ebf2;margin-top:20px;padding-top:12px}.wh-extra summary{cursor:pointer;color:#46647c;font-weight:700;font-size:13px;padding:5px 0}.wh-extra summary small{font-size:11px;color:#8a9bad;font-weight:400;margin-inline-start:5px}.wh-lookup{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px;margin-top:14px;padding:14px;background:#f3f8fc;border:1px solid #dce8f0;border-radius:9px}.wh-lookup p{grid-column:1/-1;font-size:12px;color:#58788e;margin:0}.wh-lookup button{margin-bottom:1px}.wh-lookup.is-loading{border-color:#8cb6cc}.wh-presence-choice .wh-choice{padding:15px 13px}.wh-presence-choice .wh-choice strong{font-size:14px}
.wh-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:16px 24px;border-top:1px solid var(--wh-line);background:#fff;flex:none}.wh-dialog-footer>small{margin-inline-end:auto;font-size:11px;color:#74889a}.wh-review-impact{display:flex;align-items:center;gap:12px;background:#eaf6f0;border:1px solid #b4d9c8;border-radius:9px;padding:15px;margin-bottom:18px;color:#176c51}.wh-review-impact.is-outside{background:#fff5e6;border-color:#ecd3a9;color:#916220}.wh-review-impact i{font-size:22px}.wh-review-impact strong{display:block;font-size:15px}.wh-review-impact p{margin:2px 0 0;font-size:12px}.wh-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;margin:0}.wh-review-grid>div{border-bottom:1px solid #e5ecf2;padding:12px 0;min-width:0}.wh-review-grid dt{color:#7a8c9c;font-size:11px}.wh-review-grid dd{margin:3px 0 0;font-size:14px;font-weight:700;overflow-wrap:anywhere;white-space:pre-wrap}.wh-review-grid .wh-wide dd{font-size:13px;font-weight:400}
.wh-audit-dialog{width:min(880px,calc(100vw - 32px))}.wh-audit-toolbar{display:flex;align-items:center;gap:9px;padding:12px 24px;background:#f7fafc;border-bottom:1px solid #e3ebf1;flex:none}.wh-audit-toolbar>span{margin-inline-end:auto;font-size:12px;color:#6a8093}.wh-audit-toolbar button{font-size:12px;min-height:33px;padding:6px 10px}.wh-audit-body{min-height:240px;overflow:auto;overscroll-behavior:contain;padding:20px 24px;background:#f6f8fb}.wh-timeline{display:grid;gap:12px}.wh-audit-event{background:#fff;border:1px solid #dae5ee;border-radius:10px;overflow:hidden}.wh-audit-event>summary{display:flex;align-items:flex-start;gap:12px;padding:16px;list-style:none;cursor:pointer}.wh-audit-event>summary::-webkit-details-marker{display:none}.wh-audit-avatar{display:flex;align-items:center;justify-content:center;width:35px;height:35px;flex:none;background:#eaf2f7;color:#2b6181;border-radius:8px;font-size:12px;font-weight:800}.wh-audit-summary{min-width:0;flex:1}.wh-audit-summary strong{display:block;font-size:13px;color:#25445f}.wh-audit-meta{display:flex;flex-wrap:wrap;gap:5px 10px;margin-top:3px;font-size:11px;color:#73889a}.wh-audit-meta time{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}.wh-audit-event summary>i{color:#8ba0b2;font-size:12px;margin-top:10px}.wh-audit-event[open] summary>i{transform:rotate(180deg)}.wh-audit-worker{display:block;font-size:11px;color:#52738b;margin-top:5px;overflow-wrap:anywhere}.wh-audit-changes{border-top:1px solid #e5edf3;padding:0 16px 12px;max-height:400px;overflow:auto}.wh-audit-changes table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;border:0;margin:0;text-align:right}.wh-audit-changes th,.wh-audit-changes td{padding:9px 8px;border:0;border-bottom:1px solid #e8eef4;background:#fff;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere;color:#4d647b;text-align:right;line-height:1.6}.wh-audit-changes th{background:#f5f8fb;font-size:11px;font-weight:700;color:#6d8295}.wh-audit-changes th:first-child{width:26%}.wh-audit-changes td:last-child{background:#f0f8f4;color:#216e53;font-weight:700}.wh-audit-changes p{color:#70869a;font-size:12px;margin:12px 0}.wh-audit-dialog .wh-dialog-footer .wh-pages{padding:0}
@media(max-width:1100px){.wh-shell{grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:10px}.wh-user{display:none}.wram-housing-sections button{grid-template-columns:1fr auto;padding:14px 11px}.wram-housing-sections i{display:none}.wram-housing-sections strong{grid-column:2}.wram-housing-sections small{grid-column:1}.wh-topbar{padding:12px 14px}.wh-sidebar .wh-nav-item{padding:8px;font-size:12px}}
@media(max-width:1023px){.wram-housing-app{padding:9px;margin:8px auto}.wh-shell{display:block}.wh-sidebar{display:none;position:fixed;inset:0 auto 0 0;width:260px;max-width:85vw;z-index:100001;top:0;border-radius:0;overflow:auto;min-height:100dvh}.wram-housing-app.is-nav-open .wh-sidebar{display:flex}.wh-nav-backdrop{position:fixed;inset:0;z-index:100000;background:#102c4c88!important;border:0!important;border-radius:0!important;width:100%;height:100%}.wh-nav-close{display:inline-flex!important;margin-inline-start:auto;background:#ffffff12!important;color:#fff!important;border-color:#ffffff26!important}.wh-nav-toggle{display:inline-flex!important}.wh-topbar{gap:10px;flex-wrap:wrap}.wh-page-title h2{font-size:19px}.wh-page-title p{font-size:11px}.wh-topbar>.wh-primary{font-size:12px;min-height:36px}.wh-monitor-top{gap:10px}.wh-monitor-actions .wh-live{display:none}.wram-update-monitor{padding:12px}.wh-section-caption span{display:none}.wram-housing-sections{gap:7px}.wram-housing-sections span{font-size:11px}.wram-housing-sections strong{font-size:23px}.wram-housing-sections small{font-size:10px}.wh-toolbar{padding:0 12px 12px}.wh-search{max-width:none}.wh-roster-heading{padding:14px 12px 10px}.wh-roster-heading h3{font-size:15px}.wh-roster-heading p{font-size:11px}.wh-roster-heading button{padding:7px;font-size:11px}.wh-roster-heading button span{display:none}.wh-presence-tabs{width:100%}.wh-presence-tabs button{flex:1;padding:7px 6px;font-size:11px}}
@media(max-width:640px){.wram-housing-sections{grid-template-columns:1fr}.wram-housing-sections button{min-height:70px;grid-template-columns:28px 1fr auto;padding:12px}.wram-housing-sections i{display:block;font-size:18px}.wram-housing-sections strong{grid-column:3;font-size:25px}.wram-housing-sections span{font-size:13px}.wram-housing-sections small{grid-column:2}.wram-housing-table-wrap table{min-width:0;display:block}.wram-housing-table-wrap thead{display:none}.wram-housing-table-wrap tbody{display:grid;gap:10px;background:#f4f7fa;padding:10px}.wram-housing-table-wrap tr{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #dfe8ef;border-radius:9px;overflow:hidden}.wram-housing-table-wrap td{display:block;padding:10px!important;border-bottom:1px solid #eef2f6;min-width:0}.wram-housing-table-wrap td::before{content:attr(data-label);display:block;font-size:10px;color:#5f7381;margin-bottom:4px}.wram-housing-table-wrap td:last-child,.wram-housing-table-wrap td.wh-empty{grid-column:1/-1}.wh-row-actions{max-width:none}.wh-row-actions button{flex:1}.wh-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px);border-radius:11px!important}.wh-dialog-head{padding:16px}.wh-dialog-head h3{font-size:18px!important}.wh-steps{padding:12px!important;gap:5px}.wh-steps li{flex-direction:column;gap:5px;text-align:center;font-size:10px}.wh-wizard-body{padding:18px 16px;min-height:220px}.wh-choice-grid,.wh-form-grid{grid-template-columns:1fr;gap:12px}.wh-presence-choice{grid-template-columns:1fr 1fr;gap:9px}.wh-presence-choice .wh-choice{display:flex;flex-direction:column;padding:14px 10px;gap:5px}.wh-presence-choice .wh-choice>i{font-size:17px}.wh-presence-choice .wh-choice>strong{font-size:12px;padding:0}.wh-presence-choice .wh-choice>span{font-size:11px}.wh-presence-choice .wh-choice input{top:13px;inset-inline-end:9px}.wh-dialog-footer{padding:12px 16px;gap:7px;flex-wrap:wrap}.wh-dialog-footer>small{flex-basis:100%;order:5;text-align:center}.wh-dialog-footer>button{flex:1;font-size:12px;min-height:40px;padding:8px}.wh-review-grid{grid-template-columns:1fr}.wh-audit-body{padding:12px}.wh-audit-toolbar{padding:10px 12px;flex-wrap:wrap}.wh-audit-event>summary{padding:12px;gap:8px}.wh-audit-changes{padding:0 5px 6px}.wh-audit-changes td,.wh-audit-changes th{font-size:11px;padding:7px 5px}.wh-audit-avatar{width:30px;height:30px}.wh-audit-dialog .wh-dialog-footer{justify-content:center}.wh-audit-dialog .wh-dialog-footer>small{order:5}.wh-lookup{grid-template-columns:1fr}.wh-message{margin-inline:12px}.wh-review-impact{padding:12px}.wh-monitor-latest{line-height:1.8}.wh-monitor-top>div>strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){.wh-dialog[open]{animation:none}.wh-spin,.is-loading>i{animation-duration:2s}.wram-housing-app *,.wh-dialog *{scroll-behavior:auto!important;transition:none!important}}
.wram-housing-table-wrap .wh-just-saved td{background:#f1f9f5}.wram-housing-table-wrap .wh-just-saved td:first-child{box-shadow:inset -3px 0 0 #148271}

/* Keep the sidebar within its column, including inside Elementor/theme layouts. */
.wram-housing-app .wh-sidebar{box-sizing:border-box;min-width:0;max-width:100%;margin:0}
.wram-housing-app .wh-sidebar nav,.wram-housing-app .wh-sidebar-footer,.wram-housing-app .wh-sidebar-brand{min-width:0;max-width:100%}
.wram-housing-app .wh-sidebar nav,.wram-housing-app .wh-sidebar-footer{grid-template-columns:minmax(0,1fr)}
.wram-housing-app .wh-sidebar .wh-nav-item{box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;height:auto}
.wram-housing-app .wh-sidebar .wh-nav-item>span{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}
.wram-housing-app .wh-sidebar-brand>div{min-width:0;overflow-wrap:anywhere}.wram-housing-app .wh-sidebar-brand img{flex:none}

/* Shared worker identity lookup. */
.wh-identity-note{padding:12px 14px;border:1px solid #b8dacd;border-radius:10px;background:#eff9f5;color:#164b3b;line-height:1.7}
.wh-lookup{display:flex;flex-wrap:wrap}
.wh-lookup>label{flex:1 1 180px;min-width:0}
.wh-lookup>p{flex-basis:100%}
@media(max-width:600px){.wh-lookup>label,.wh-lookup>button{flex-basis:100%;width:100%}}

/* Identity-first registration and case follow-up reuse the Housing palette. */
.wh-case-wizard .wh-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
.wh-case-wizard .wh-steps li{color:#5f7588}
.wh-case-wizard .wh-help,.wh-case-wizard .wh-hint{color:#526b80}
.wh-worker-summary{border:1px solid #cddfe7;border-radius:10px;background:#f5fafb;padding:12px 14px;margin-bottom:18px;overflow-wrap:anywhere}
.wh-worker-summary-head{display:flex;gap:9px;align-items:center;color:#173f63;font-size:15px}.wh-worker-summary-head strong{min-width:0}
.wh-worker-summary>p{font-size:12px;color:#4d6579;line-height:1.7;margin:6px 0 0}.wh-source-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.wh-source-badges .wh-chip{font-size:11px;background:#e6f0f4;color:#335a70}
.wh-current-customer{display:flex;flex-wrap:wrap;gap:3px 12px;border-top:1px solid #dce8ed;margin-top:10px;padding-top:8px;font-size:12px;color:#35556b}.wh-current-customer>strong{color:#1b5d54}.wh-current-customer>small{flex-basis:100%;font-size:12px;line-height:1.5}.wh-context-notice{color:#855c16!important}
.wh-dossier{margin:18px 0 0;border:1px solid #dae4ec;border-radius:9px;background:#fff}.wh-dossier>summary{padding:13px 15px;cursor:pointer;font-weight:700;font-size:13px;color:#294d69}.wh-dossier[open]>summary{border-bottom:1px solid #e1e9ef}.wh-dossier>div{padding:12px;display:grid;gap:10px}
.wh-contact-card{padding:12px;border:1px solid #dce9e5;border-radius:8px;background:#f5faf8}.wh-contact-card h5{font-size:13px;line-height:1.5;color:#216254;margin:0 0 5px}
.wh-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 18px;margin:0}.wh-context-grid>div{min-width:0}.wh-context-grid dt{font-size:11px;color:#536d80;margin:0}.wh-context-grid dd{font-size:13px;color:#213c53;margin:3px 0 0;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.65}
.wh-context-section{border:1px solid #e0e8ee;border-radius:8px;overflow:hidden}.wh-context-section>summary{padding:11px 12px;font-size:13px;font-weight:700;cursor:pointer;background:#f7f9fb}.wh-context-section>.wh-help{padding:12px;margin:0}.wh-context-item{padding:12px;border-bottom:1px solid #e5ecf1}.wh-context-item:last-child{border-bottom:0}.wh-context-item>a{display:inline-block;font-size:13px;margin-top:8px;text-decoration:underline;color:#226a92;min-height:24px}
.wh-dialog .wh-text-button{margin-top:12px;color:#1c638d;text-decoration:underline;background:#f7fbfd;border-color:#d8e5ee}
.wh-time-kind>label{display:flex;flex-direction:row;align-items:center;gap:8px;padding:7px 0;font-weight:500}.wh-time-kind input{width:17px;height:17px;flex:none;accent-color:#173f63}
.wh-case-wizard [data-identity-conflicts]{padding:12px;background:#fff7e9;border:1px solid #e9d7b1;border-radius:8px;color:#805719;font-size:13px;margin-top:12px}.wh-case-wizard [data-identity-conflicts] ul{margin-bottom:0;padding-inline-start:22px}
.wh-case-wizard [data-housing-review]>.wh-context-grid{gap:0 20px}.wh-case-wizard [data-housing-review]>.wh-context-grid>div{padding:12px 0;border-bottom:1px solid #e4ebf1}
.wh-case-filters>label:not(.wh-search){display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:#38556d;min-width:140px}.wh-case-filters select{font:inherit;color:#28465e;background:#fff;border:1px solid #cad8e2;border-radius:8px;min-height:42px;padding:8px 10px;max-width:100%}
.wh-case-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px 18px 18px;min-height:100px}.wh-case-list-item{border:1px solid #dbe5ed;background:#fff;border-radius:9px;padding:14px;min-width:0}.wh-case-list-head{display:flex;gap:10px;justify-content:space-between;align-items:flex-start}.wh-case-list-head>strong{font-size:13px;min-width:0;overflow-wrap:anywhere}.wh-case-list-item h4{font-size:14px;margin:10px 0 3px;color:#234864}.wh-case-meta,.wh-case-list-item>small{font-size:11px;color:#557087;line-height:1.6}.wh-case-meta{margin:0}.wh-case-excerpt{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0}.wh-case-list-item .wh-row-actions{margin-top:12px;max-width:none}.wh-case-list>.wh-empty{grid-column:1/-1}
.wh-case-badge{display:inline-flex;align-items:center;font-size:11px;font-weight:700;line-height:1.7;padding:3px 8px;border-radius:5px;white-space:nowrap}.wh-case-badge.is-open{background:#fff1dc;color:#815414}.wh-case-badge.is-resolved{background:#e7f5ed;color:#176a4e}.wh-case-badge.is-voided{background:#eef1f5;color:#536477}
.wh-case-detail-dialog [data-case-detail]>.wh-case-badge{margin-bottom:12px}.wh-case-detail-dialog [data-case-detail]>h4{font-size:14px;margin:18px 0 8px}.wh-case-detail-dialog [data-case-events]{max-height:320px;overflow:auto}.wh-case-detail-dialog{width:min(740px,calc(100vw - 32px))}
@media(max-width:640px){.wh-case-list{grid-template-columns:minmax(0,1fr);padding:4px 12px 12px}.wh-case-filters>label:not(.wh-search){flex:1;min-width:120px}.wh-case-filters .wh-search{flex-basis:100%}.wh-context-grid{grid-template-columns:minmax(0,1fr);gap:10px}.wh-worker-summary{padding:11px 12px;margin-bottom:15px}.wh-worker-summary-head{font-size:14px}.wh-current-customer{flex-direction:column;gap:4px}.wh-dossier>div{padding:8px}.wh-contact-card{padding:10px}.wh-case-wizard .wh-steps li{font-size:11px}.wh-case-wizard .wh-dialog-footer>button{min-height:44px}.wh-case-detail-dialog .wh-dialog-footer>button{min-height:44px}.wh-case-list-head{gap:8px}.wh-case-wizard [data-housing-review]>.wh-context-grid{grid-template-columns:minmax(0,1fr)}}

/* 2.11: focused Saudi Arabic workspace; slate navigation and restrained green actions. */
.wram-housing-app{--wh-accent:#087f65;--wh-blue:#163f53;--wh-line:#e0e7eb;--wh-bg:#f5f7f8;padding:16px;border-radius:16px}
.wh-shell{grid-template-columns:minmax(0,200px) minmax(0,1fr);gap:18px}.wh-sidebar{border-radius:12px;background:#163f53!important;box-shadow:none!important}.wh-sidebar .wh-nav-item{border-color:transparent;background:transparent;font-size:13px;margin:3px 0;min-height:44px}.wh-sidebar .wh-nav-item.is-active{background:#fff!important;border-inline-start:3px solid #0b8b70}.wh-sidebar-footer{padding-top:12px;margin-top:18px}.wh-sidebar-footer a{font-size:12px;opacity:.85}
.wh-topbar{border-top:0;border-radius:12px;box-shadow:none;padding:14px 18px}.wh-topbar h2{font-size:21px}.wh-topbar .wh-primary,.wh-dialog .wh-primary{background:#087f65;border-color:#087f65}.wh-primary:hover{background:#076853!important}
.wram-housing-app .wram-update-monitor{background:transparent;border:0;padding:0 2px;margin:0 0 12px;min-height:24px}.wram-housing-app .wh-monitor-top,.wram-housing-app .wram-monitor-counts{display:none}.wram-housing-app .wh-monitor-latest{font-size:11px;gap:6px;flex-wrap:wrap;color:#64778c}.wram-housing-app .wh-monitor-latest>span:empty{display:none}
.wh-roster-heading{padding:16px 18px 12px}.wh-list-title{display:flex;align-items:center;gap:9px;min-width:0}.wh-list-title h3{font-size:17px}.wh-total{font-size:14px;min-width:28px;padding:1px 8px;background:#e8f4ef;color:#086550;border-radius:7px;text-align:center}.wram-housing-app .wh-help-icon{min-height:30px;width:30px;padding:5px;border:0;border-radius:50%;background:transparent;color:#6d8190;flex:none}
.wh-purpose-tabs{display:flex;gap:4px;flex-wrap:wrap;background:#f1f5f5;padding:4px;border-radius:9px}.wram-housing-app .wh-purpose-tabs button{min-height:36px;background:transparent;border-color:transparent;font-size:12px;padding:6px 10px;gap:7px}.wram-housing-app .wh-purpose-tabs button[aria-pressed=true]{background:#fff;border-color:#c4d9d0;color:#086550;box-shadow:0 1px 3px #143f5308}.wh-purpose-tabs b{font-size:11px;font-weight:700}.wh-toolbar{padding-bottom:12px;gap:9px}.wh-toolbar .wh-search{max-width:none;flex:1 1 225px}.wh-extra-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:12px 18px;border-top:1px solid #e7ecef;background:#f8fafb}.wh-extra-filters label{font-size:12px;display:flex;flex-direction:column;gap:4px}.wh-extra-filters select,.wh-extra-filters input{border:1px solid #ced9df;border-radius:7px;padding:8px;font:inherit;background:#fff;max-width:100%;min-height:40px}.wh-filter-chips{display:flex;align-items:center;gap:6px;padding:0 18px 10px;flex-wrap:wrap}.wh-filter-chips button{min-height:30px;font-size:11px;padding:4px 8px}
.wram-housing-table-wrap{max-height:66vh;min-height:150px;scrollbar-width:thin;scrollbar-color:#8faeaa #eef3f4}.wram-housing-table-wrap th{position:sticky;top:0;z-index:1;background:#f1f5f5;color:#4e646e;padding:11px 12px}.wram-housing-table-wrap td{padding:13px 12px;vertical-align:middle;font-size:13px}.wram-housing-table-wrap tbody tr:hover td{background:#f4faf7}.wram-housing-table-wrap td:first-child{min-width:135px}.wram-housing-table-wrap td:nth-child(2){max-width:195px}.wram-housing-app .wh-cell-link{display:inline-flex;justify-content:flex-start;text-align:start;padding:0!important;margin:0;min-height:32px;border:0;background:transparent;font-size:12px;font-weight:500;line-height:1.5;color:#526a78;white-space:normal;overflow-wrap:anywhere;max-width:100%}.wram-housing-app .wh-cell-link:hover{background:transparent;color:#087f65}.wram-housing-app .wh-cell-link.wh-employer{font-weight:800;color:#233e49;font-size:13px}.wh-cell-link i{display:none}.wh-status-pill{display:inline-block;font-size:11px;line-height:1.6;color:#465f6b;background:#f0f4f6;border-radius:6px;padding:4px 8px;max-width:175px}.wh-status-pill.is-attention{background:#fff3dd;color:#825b13}.wh-row-actions{flex-wrap:nowrap;max-width:none;align-items:center;gap:6px}.wh-row-actions button{white-space:nowrap;font-size:11px;min-height:36px;border-color:#d9e3e5}.wh-row-actions .wh-icon-button{width:34px;min-height:36px;height:36px}.wh-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wh-action-menu{position:fixed;z-index:100010;min-width:184px;padding:5px;background:#fff;border:1px solid #d8e2e5;border-radius:10px;box-shadow:0 12px 32px #163f5326;direction:rtl;font-family:Tajawal,system-ui,sans-serif}.wh-action-menu[hidden]{display:none}.wh-action-menu button{display:flex;align-items:center;gap:9px;width:100%;border:0;background:#fff;color:#294653;text-align:right;padding:11px 12px;border-radius:6px;font:500 13px Tajawal,system-ui,sans-serif;cursor:pointer}.wh-action-menu button:hover,.wh-action-menu button:focus-visible{background:#edf7f2;color:#076650;outline:2px solid #087f65;outline-offset:-2px}.wh-action-menu i{width:17px;text-align:center}
.wh-tooltip{position:fixed;z-index:100020;max-width:min(310px,calc(100vw - 16px));padding:9px 12px;background:#183b46;color:#fff;border-radius:8px;box-shadow:0 5px 18px #163f5320;direction:rtl;text-align:right;font:400 12px/1.7 Tajawal,system-ui,sans-serif;pointer-events:none}.wh-tooltip[hidden]{display:none}
.wh-dialog.wh-detail-drawer{inset-block:0;inset-inline-start:auto;inset-inline-end:0;width:min(600px,100vw);max-width:100vw!important;height:100dvh;max-height:100dvh;margin:0;border:0;border-inline-start:1px solid #dae4e7;border-radius:0!important;box-shadow:-12px 0 40px #173f6320}.wh-detail-drawer .wh-wizard-body{padding:20px}.wh-detail-drawer .wh-dialog-head{padding:20px}.wh-detail-drawer .wh-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wh-dialog.wh-movement-dialog{width:min(510px,calc(100vw - 24px));max-width:calc(100vw - 24px)!important;border-radius:14px}.wh-movement-dialog .wh-wizard-body{padding:18px 22px}.wh-movement-worker{margin:0 0 16px;font-size:14px;font-weight:700}.wh-movement-impact{font-size:12px;line-height:1.8;background:#eff7f3;border:1px solid #d5e9df;border-radius:8px;padding:10px 12px;margin:16px 0 0}.wh-field-group small{font-size:11px;font-weight:400;color:#64778c}
@media(max-width:1023px){.wh-shell{grid-template-columns:minmax(0,1fr)}.wh-sidebar{position:fixed}.wh-purpose-tabs{flex:1 1 100%}.wh-detail-drawer .wh-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.wram-housing-app{padding:8px;border-radius:10px;margin:8px auto}.wh-shell{gap:8px}.wh-topbar{gap:8px;padding:12px;flex-wrap:wrap}.wh-topbar .wh-page-title{flex:1}.wh-topbar h2{font-size:18px}.wh-topbar .wh-page-title p{display:none}.wh-topbar .wh-user{display:none}.wh-topbar [data-housing-add]{min-height:38px;font-size:12px;padding:8px 11px}.wh-list-title h3{font-size:15px}.wh-roster-heading{padding:12px}.wh-toolbar{padding:0 12px 12px;gap:7px}.wram-housing-app .wh-purpose-tabs{flex-wrap:nowrap;justify-content:space-between;width:100%;padding:3px;gap:2px}.wram-housing-app .wh-purpose-tabs button{padding:7px 5px;font-size:10px;gap:4px;flex:1;white-space:nowrap}.wh-purpose-tabs b{font-size:10px}.wh-toolbar .wh-search{min-width:0;flex:1}.wh-search input{font-size:12px!important}.wh-filter-toggle{padding:8px!important;font-size:11px!important}.wh-extra-filters{padding:10px 12px;gap:8px}.wram-housing-table-wrap table{min-width:0!important;width:100%}.wram-housing-table-wrap td{padding:12px 10px}.wh-pages{padding:12px 7px;gap:8px;font-size:11px}.wh-dialog.wh-detail-drawer{width:100vw;height:100dvh;max-height:100dvh!important}.wh-dialog.wh-detail-drawer .wh-wizard-body{padding:16px}.wh-detail-drawer .wh-context-grid{grid-template-columns:1fr}.wh-dialog.wh-movement-dialog{height:auto!important;max-height:calc(100dvh - 24px)!important;inset:0;margin:auto!important}.wh-movement-dialog .wh-dialog-footer{flex-wrap:wrap;padding:12px 16px}.wh-movement-dialog .wh-wizard-body{padding:16px}.wh-tooltip{font-size:12px}}

/* Keep every field and both actions visible in the compact phone cards. */
@media(max-width:640px){
 .wram-housing-table-wrap table{min-width:0!important;width:100%}
 .wram-housing-table-wrap tbody{padding:8px;gap:8px}
 .wram-housing-table-wrap tr{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wram-housing-table-wrap td{padding:8px 10px!important;overflow-wrap:anywhere}
 .wram-housing-table-wrap td:first-child{min-width:0}
 .wram-housing-table-wrap td:nth-child(2){max-width:none}
 .wram-housing-table-wrap td:nth-child(3){grid-column:1;grid-row:2}
 .wram-housing-table-wrap td:nth-child(4){grid-column:1/-1;grid-row:3;display:flex;align-items:center;gap:8px}
 .wram-housing-table-wrap td:nth-child(4)::before{margin:0;flex:none}
 .wram-housing-table-wrap td:nth-child(5){grid-column:2;grid-row:2}
 .wram-housing-table-wrap td:last-child{grid-column:1/-1;grid-row:4;border:0}
 .wram-housing-table-wrap td:last-child::before{display:none}
 .wram-housing-table-wrap td.wh-empty{grid-column:1/-1;grid-row:auto;display:block}
 .wram-housing-table-wrap .wh-row-actions{justify-content:flex-end;min-width:0}
 .wram-housing-table-wrap .wh-row-actions button{flex:0 1 auto;min-height:40px}
 .wram-housing-table-wrap .wh-row-actions .wh-icon-button{flex:0 0 40px;width:40px;height:40px}
 .wram-housing-table-wrap .wh-status-pill{max-width:none;min-width:0}
}
