/* House tabs aligned with approved find-room tabs; desktop only. */
@media(min-width:769px){
 body #page-houses .hp2-head{justify-content:flex-start!important;height:auto!important;min-height:36px!important;margin:0 0 12px!important}
 body :is(#page-houses,#page-house-intake) .sf-mode-tabs.hp-switch{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;height:auto!important;min-height:36px!important;width:auto!important;flex:0 0 auto!important;position:static!important;inset:auto!important;transform:none!important;overflow:visible!important;flex-wrap:wrap!important;margin:0 0 12px!important}
 body #page-houses .hp2-head .sf-mode-tabs.hp-switch{margin:0!important}
 body #page-house-intake .ik-head:empty{display:none!important}
 body :is(#page-houses,#page-house-intake) .sf-mode-tabs.hp-switch > .sf-mode-tab.hp-tab{display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;min-width:0!important;width:auto!important;height:36px!important;padding:0 14px!important;gap:7px!important;margin:0!important;border:1px solid #dbeafe!important;border-radius:9px!important;background:var(--wp-color-bg-card,#fff)!important;color:#1e3a8a!important;font-size:12.5px!important;font-weight:600!important;line-height:normal!important;white-space:nowrap!important;box-sizing:border-box!important;box-shadow:none!important;transition:background .15s,border-color .15s,color .15s}
 body :is(#page-houses,#page-house-intake) .sf-mode-tabs.hp-switch > .sf-mode-tab.hp-tab.active{background:var(--wp-color-primary,#2563eb)!important;color:#fff!important;border-color:var(--wp-color-primary,#2563eb)!important}
 body :is(#page-houses,#page-house-intake) .sf-mode-tabs.hp-switch > .sf-mode-tab.hp-tab:hover:not(.active){background:var(--wp-color-primary-soft,#eff6ff)!important;border-color:var(--wp-color-primary,#2563eb)!important}
 body :is(#page-houses,#page-house-intake) .sf-mode-tabs.hp-switch > .sf-mode-tab.hp-tab::before,body :is(#page-houses,#page-house-intake) .sf-mode-tabs.hp-switch > .sf-mode-tab.hp-tab::after{display:none!important;content:none!important}
 body :is(#page-houses,#page-house-intake) .hp-tab .house-tab-mobile-icon{display:none!important}
 body :is(#page-houses,#page-house-intake) .hp-tab .house-tab-desktop-icon{display:block!important;flex:none;width:18px!important;height:18px!important}
}
/* Approved find-room PC tabs and native statistics; business handlers unchanged. */
@media(min-width:769px){
 body #page-vacant>.page-content>.sf-mode-tabs{gap:4px!important;padding:0!important;margin:0 0 12px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;flex-wrap:wrap}
 body #page-vacant>.page-content>.sf-mode-tabs>.sf-mode-tab{flex:0 0 auto!important;min-width:0!important;height:36px!important;padding:0 14px!important;gap:7px!important;border:1px solid #dbeafe!important;border-radius:9px!important;background:var(--wp-color-bg-card,#fff)!important;color:#1e3a8a!important;font-size:12.5px!important;font-weight:600!important;box-shadow:none!important;line-height:normal!important;transition:background .15s,border-color .15s,color .15s}
 body #page-vacant>.page-content>.sf-mode-tabs>.sf-mode-tab svg{width:18px!important;height:18px!important}
 body #page-vacant>.page-content>.sf-mode-tabs>.sf-mode-tab.active{background:var(--wp-color-primary,#2563eb)!important;color:#fff!important;border-color:var(--wp-color-primary,#2563eb)!important;box-shadow:none!important}
 body #page-vacant>.page-content>.sf-mode-tabs>.sf-mode-tab::before,body #page-vacant>.page-content>.sf-mode-tabs>.sf-mode-tab::after{display:none!important;content:none!important}
 body #page-vacant>.page-content>.sf-mode-tabs>.sf-mode-tab:hover:not(.active){background:var(--wp-color-primary-soft,#eff6ff)!important;border-color:var(--wp-color-primary,#2563eb)!important}
 body #page-vacant #vc-stats-bar,body #sf-deposit-mode .dp-stats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;padding:0!important;margin:0 0 14px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
 body #page-vacant #vc-stats-bar .vc-stat-item,body #sf-deposit-mode .dp-stats .dp-stat{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;grid-template-rows:15px 22.8px!important;column-gap:12px!important;row-gap:2px!important;align-content:center!important;align-items:center!important;justify-items:start!important;justify-content:normal!important;text-align:left!important;height:auto!important;min-height:81px!important;padding:12px 14px!important;border:1px solid #eef1f6!important;border-radius:12px!important;background:var(--wp-color-bg-card,#fff)!important;box-shadow:0 1px 2px rgba(15,23,42,.045)!important;transform:none!important;position:relative}
 body #page-vacant #vc-stats-bar .vc-stat-item.vc-active,body #sf-deposit-mode .dp-stats .dp-stat.active{border-color:var(--wp-color-primary,#2563eb)!important;box-shadow:inset 0 0 0 1px var(--wp-color-primary-ring,rgba(37,99,235,.12))!important}
 body #page-vacant #vc-stats-bar .vc-stat-item:hover,body #sf-deposit-mode .dp-stats .dp-stat:hover{border-color:var(--wp-color-primary,#2563eb)!important;transform:none!important}
 body #page-vacant #vc-stats-bar .vc-stat-lbl,body #sf-deposit-mode .dp-stats .dp-stat-label{grid-column:2!important;grid-row:1!important;font-size:12px!important;line-height:15px!important;font-weight:500!important;color:#1e3a8a!important;margin:0!important;letter-spacing:.02em;display:block!important;white-space:nowrap}
 body #page-vacant #vc-stats-bar .vc-stat-value,body #sf-deposit-mode .dp-stats .dp-stat-val{grid-column:2!important;grid-row:2!important;font-size:19px!important;line-height:22.8px!important;font-weight:700!important;font-variant-numeric:tabular-nums;letter-spacing:0!important;margin:0!important;color:inherit!important}
 body #page-vacant #vc-stats-bar .vc-stat-ic,body #sf-deposit-mode .dp-stats .dp-circle{grid-column:1!important;grid-row:1 / 3!important;width:48px!important;height:48px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;position:static!important;background:var(--stat-soft,#eff6ff)!important;color:var(--stat-ink,#3b82f6)!important}
 body #page-vacant #vc-stats-bar .vc-stat-ic svg,body #sf-deposit-mode .dp-circle .dp-stat-ico{width:24px!important;height:24px!important;color:inherit!important}
 body #page-vacant .vc-stat-blue,body #sf-deposit-mode .dp-stat-blue{--stat-ink:var(--wp-color-info,#3b82f6);--stat-soft:var(--wp-color-primary-soft,#eff6ff);color:var(--stat-ink)!important}
 body #page-vacant .vc-stat-purple,body #sf-deposit-mode .dp-stat-indigo{--stat-ink:var(--wp-data-3,#8b5cf6);--stat-soft:var(--wp-color-purple-soft,#f5f3ff);color:var(--stat-ink)!important}
 body #page-vacant .vc-stat-pink,body #sf-deposit-mode .dp-stat-red{--stat-ink:var(--wp-color-danger,#ef4444);--stat-soft:var(--wp-color-danger-soft,#fff1f2);color:var(--stat-ink)!important}
 body #page-vacant .vc-stat-green,body #sf-deposit-mode .dp-stat-green{--stat-ink:var(--wp-color-success-strong,#16a34a);--stat-soft:var(--wp-color-success-soft,#ecfdf5);color:var(--stat-ink)!important}
 body #page-vacant .vc-stat-orange,body #sf-deposit-mode .dp-stat-orange{--stat-ink:var(--wp-color-warning-strong,#d97706);--stat-soft:var(--wp-color-warning-soft,#fff7ed);color:var(--stat-ink)!important}
 body #sf-deposit-mode .dp-stats .dp-stat{grid-template-rows:15px 22.8px 14.3px!important;row-gap:1px!important}
 body #sf-deposit-mode .dp-stats .dp-circle{grid-row:1 / 4!important}
 body #sf-deposit-mode .dp-stats .dp-stat-sub{grid-column:2!important;grid-row:3!important;font-size:11px!important;line-height:14.3px!important;margin:0!important;padding:0!important;background:transparent!important;color:var(--wp-color-text-muted,#64748b)!important;border-radius:0!important;opacity:1!important}
 body #sf-deposit-mode .dp-stats .dp-stat-val small{font-size:11px!important;font-weight:400!important;color:var(--wp-color-text-muted,#64748b)!important;margin-left:4px!important}
}
@media(min-width:769px) and (max-width:1450px){
 body #page-vacant #vc-stats-bar .vc-stat-item,body #sf-deposit-mode .dp-stats .dp-stat{grid-template-columns:40px minmax(0,1fr)!important;column-gap:8px!important;padding:12px 10px!important}
 body #page-vacant #vc-stats-bar .vc-stat-ic,body #sf-deposit-mode .dp-stats .dp-circle{width:40px!important;height:40px!important}
 body #page-vacant #vc-stats-bar .vc-stat-ic svg,body #sf-deposit-mode .dp-circle .dp-stat-ico{width:22px!important;height:22px!important}
}

@media(min-width:769px){
 body #page-vacant .sf-mode-tabs .find-tab-mobile-icon{display:none!important}
 body #page-vacant .sf-mode-tabs .find-tab-desktop-icon{display:block!important;flex:none}
 body #sf-deposit-mode .dp-stats .dp-stat .dp-stat-label .dp-stat-ico{position:absolute!important;left:14px!important;top:50%!important;transform:translateY(-50%)!important;width:48px!important;height:48px!important;padding:12px!important;box-sizing:border-box!important;border-radius:50%!important;color:var(--stat-ink,#3b82f6)!important;background:var(--stat-soft,#eff6ff)!important;margin:0!important}
}
@media(min-width:769px) and (max-width:1450px){
 body #sf-deposit-mode .dp-stats .dp-stat .dp-stat-label .dp-stat-ico{left:10px!important;width:40px!important;height:40px!important;padding:9px!important}
}
/* Desktop module titles aligned to the current after-sales standard. */
@media(min-width:769px){
 .wnc-module-native-title{display:none!important}
 .wnc-module-title-line.wnc-module-reused{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;min-height:34px!important;margin:0 0 12px!important;padding:0!important}

 body :is(#page-houses,#page-house-intake,#page-vacant)>.page-content{padding:16px 18px 20px!important}
 body #page-performance>.page-content{padding:0!important}
 .wnc-module-title-line{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:34px;margin:0 0 12px;padding:0}
 .wnc-module-title-text{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0}
 .wnc-module-title-text h1{margin:0;font-size:20px;line-height:28px;font-weight:600;color:var(--wp-color-primary-deep,#1e3a8a);letter-spacing:0}
 .wnc-module-title-text p{margin:0;font-size:13px;line-height:19.5px;font-weight:400;color:var(--wp-color-text-tertiary,#64748b)}
 .wnc-module-title-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 14px;flex:none;border:1px solid #2563eb;border-radius:9px;background:var(--wp-color-primary,#2563eb);color:#fff;font-size:12.5px;font-weight:600;cursor:pointer;transition:background .15s,box-shadow .15s,transform .15s}
 .wnc-module-title-action svg{width:18px;height:18px}.wnc-module-title-action:hover{background:#1d4ed8;box-shadow:0 3px 9px #2563eb24}.wnc-module-title-action:active{transform:translateY(1px)}
 .wnc-module-title-action:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
 body #main-area .page.wnc-module-heading-page>.page-content{padding:16px 18px 20px!important}
 body #page-boss_ai.wnc-module-heading-page>#boss-ai-container,body #page-finance.wnc-module-heading-page>#finance-container{padding:16px 18px 20px!important}
 body #page-dashboard .wnc-module-title-line{grid-column:1/-1}
 body #page-customer-service.wnc-module-heading-page .csw-app{padding:0!important}
 body #page-customer-service.wnc-module-heading-page .csw-head{margin:0 0 12px!important;padding:0!important}
 body #page-devices.wnc-module-heading-page .dm-wrap{padding:0!important}
 body #page-boss_ai.wnc-module-heading-page iframe{width:100%;height:calc(100vh - 140px);border:0;display:block}
 body #page-houses .hp2-head{margin-bottom:14px!important}
 body #page-house-intake .sf-mode-tabs.hp-switch,body #page-vacant>.page-content>.sf-mode-tabs{margin-bottom:14px!important}
 body.wnc-sales-heading .spp{max-width:none!important;background:transparent!important;padding:0!important}
 body.wnc-sales-heading .sp-content{padding:16px 18px 20px!important}
 body.wnc-sales-heading .sales-tabs{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:4px!important;height:auto!important;padding:0!important;margin:0 0 14px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;position:static!important}
 body.wnc-sales-heading .sales-tabs .st-tab{display:inline-flex!important;align-items:center!important;gap:7px!important;flex:none!important;height:36px!important;min-height:36px!important;padding:0 14px!important;line-height:normal!important;font-size:12.5px!important;font-weight:600!important;color:#1e3a8a!important;background:#fff!important;border:1px solid #dbeafe!important;border-radius:9px!important;box-shadow:none!important}
 body.wnc-sales-heading .sales-tabs .st-tab.active{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
 body.wnc-sales-heading .sales-tabs .st-tab:after,body.wnc-sales-heading .sales-tabs .st-tab:before{display:none!important;content:none!important}
 .wnc-module-title-line~.sales-tabs svg{width:18px;height:18px;flex:none}
}
@media(max-width:768px){.wnc-module-title-line[data-wnc-module-heading]{display:none}}

/* Organization desktop headings use the housing module title standard. */
@media(min-width:769px){
 body :is(#page-organization,#page-permissions) .ov-root .ov-page-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;min-height:36px!important;height:auto!important;margin:0 0 12px!important;padding:0!important}
 body :is(#page-organization,#page-permissions) .ov-root .ov-page-head > div:first-child{display:flex!important;align-items:baseline!important;flex-wrap:wrap!important;gap:4px 12px!important;min-width:0!important}
 body :is(#page-organization,#page-permissions) .ov-root .ov-page-head h1{margin:0!important;font-size:20px!important;line-height:28px!important;font-weight:600!important;color:var(--wp-color-primary-deep,#1e3a8a)!important;letter-spacing:0!important}
 body :is(#page-organization,#page-permissions) .ov-root .ov-page-head p{margin:0!important;font-size:13px!important;line-height:19.5px!important;font-weight:400!important;color:var(--wp-color-text-tertiary,#64748b)!important}
}

/* Compact organization workspace: fill the tree column and keep one tree scroller. */
@media(min-width:769px){
 body #page-organization .ov-root .orgc3-layout{grid-template-columns:clamp(260px,25vw,320px) minmax(0,1fr)!important;gap:12px!important;align-items:start!important}
 body #page-organization .ov-root .orgc3-tree{width:auto!important;max-width:none!important;min-width:0!important;min-height:0!important;max-height:none!important;padding:12px!important;overflow:hidden!important}
 body #page-organization .ov-root .orgc3-tree-head{padding:0!important;margin:0 0 10px!important;gap:8px!important;min-height:36px!important}
 body #page-organization .ov-root .orgc3-search{height:36px!important;padding:0 10px!important;min-width:0!important;gap:6px!important}
 body #page-organization .ov-root .orgc3-search input{height:32px!important;min-height:0!important;min-width:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;font-size:12px!important}
 body #page-organization .ov-root .orgc3-addbtn{height:36px!important;flex:none!important;padding:0 10px!important}
 body #page-organization .ov-root .orgc3-treelist{min-height:0!important;max-height:max(180px,calc(100dvh - 390px))!important;overflow:auto!important;overscroll-behavior:contain;padding-right:3px!important}
 body #page-organization .ov-root .orgc3-detail{min-width:0!important;padding:16px!important}
 body #page-organization .ov-org-overview .orgc3-detail-h{padding:0 0 12px!important;margin:0 0 12px!important}
 body #page-organization .ov-org-overview .orgc3-sec{margin:12px 0 6px!important;padding:0!important;background:transparent!important;border:0!important;font-size:13px!important;line-height:20px!important}
 body #page-organization .ov-org-overview .ov-company-grid{margin-top:12px!important;gap:8px!important}
 body #page-organization .ov-root,body #page-organization .ov-root *,body #page-permissions .ov-root,body #page-permissions .ov-root *,body #main-area:has(> #page-organization.active),body #main-area:has(> #page-permissions.active){scrollbar-width:thin!important;scrollbar-color:#c3cede transparent!important}
 body #page-organization .ov-root::-webkit-scrollbar,body #page-organization .ov-root *::-webkit-scrollbar,body #page-permissions .ov-root::-webkit-scrollbar,body #page-permissions .ov-root *::-webkit-scrollbar,body #main-area:has(> #page-organization.active)::-webkit-scrollbar,body #main-area:has(> #page-permissions.active)::-webkit-scrollbar{width:4px!important;height:4px!important}
 body #page-organization .ov-root::-webkit-scrollbar-track,body #page-organization .ov-root *::-webkit-scrollbar-track,body #page-permissions .ov-root::-webkit-scrollbar-track,body #page-permissions .ov-root *::-webkit-scrollbar-track,body #main-area:has(> #page-organization.active)::-webkit-scrollbar-track,body #main-area:has(> #page-permissions.active)::-webkit-scrollbar-track{background:transparent!important}
 body #page-organization .ov-root::-webkit-scrollbar-thumb,body #page-organization .ov-root *::-webkit-scrollbar-thumb,body #page-permissions .ov-root::-webkit-scrollbar-thumb,body #page-permissions .ov-root *::-webkit-scrollbar-thumb,body #main-area:has(> #page-organization.active)::-webkit-scrollbar-thumb,body #main-area:has(> #page-permissions.active)::-webkit-scrollbar-thumb{background:#c3cede!important;border:0!important;border-radius:8px!important}
 body #page-organization .ov-root *::-webkit-scrollbar-thumb:hover,body #page-permissions .ov-root *::-webkit-scrollbar-thumb:hover{background:#9baec8!important}
 @supports selector(::-webkit-scrollbar){
  body #page-organization .ov-root,body #page-organization .ov-root *,body #page-permissions .ov-root,body #page-permissions .ov-root *,body #main-area:has(> #page-organization.active),body #main-area:has(> #page-permissions.active){scrollbar-width:auto!important;scrollbar-color:auto!important}
 }
}
@media(min-width:769px) and (max-width:1050px){
 body #page-organization .ov-root .orgc3-layout{grid-template-columns:260px minmax(0,1fr)!important}
 body #page-organization .ov-company-grid{grid-template-columns:minmax(0,1fr)!important}
}
