/* Re:Noah private application shell: one natural-scroll document layout. */
:root{--rn-management-sidebar:248px;--rn-management-navy:#0B132B;--rn-management-gold:#D4AF37;--rn-management-adminbar-offset:0px;--rn-management-staging-offset:0px}
body.admin-bar.renoah-management-surface{--rn-management-adminbar-offset:32px}
body.renoah-management-surface{margin:0;background:#f5f6f8;color:#101828}
body.renoah-management-surface>.rn-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}
body.renoah-management-surface>.rn-v3120-header,
body.renoah-management-surface>.rn-v3120-footer{display:none!important}

/* Public app.css defines .rn-admin itself as a two-column demo component.
   Private admin screens wrap their real shell one level deeper, so retaining
   that public grid constrains the entire application to its first 270px cell. */
body.renoah-admin-surface .rn-admin{
  display:block!important;width:100%!important;max-width:none!important;min-width:0!important;
  min-height:0!important;margin:0!important;padding:0!important;background:#f5f6f8!important;box-sizing:border-box!important
}

/* The page owns scrolling. Headers remain in normal flow. */
body.renoah-management-surface .rn-dashboard-v20-integrated-header,
body.renoah-management-surface .rn-dashboard-v20-head,
body.renoah-management-surface .rn-broker-header,
body.renoah-management-surface .rn-v3795-header,
body.renoah-management-surface .rn-v3795-detail-header{
  position:static!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  width:100%!important;max-width:none!important;margin-left:0!important;transform:none!important
}

/* Shared two-column application grid. A stretched, auto-height sidebar paints
   the full document row while still guaranteeing one viewport of navy. */
body.renoah-admin-surface .rn-dashboard-official-v20,
body.renoah-admin-surface .rn-ui-master-v20,
body.renoah-admin-surface .rn-admin>main,
body.renoah-admin-surface .rn-v3300-shell,
body.renoah-broker-surface .rn-broker-app,
body.renoah-broker-surface .rn-v3795-broker,
body.renoah-broker-surface .rn-v3300-shell{
  display:grid!important;grid-template-columns:var(--rn-management-sidebar) minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  align-items:stretch!important;width:100%!important;max-width:none!important;min-height:100vh!important;
  margin:0!important;padding:0!important;overflow:visible!important;box-sizing:border-box!important
}
body.renoah-management-surface .rn-admin-sidebar.rn-admin-sidebar-unified,
body.renoah-management-surface .rn-dashboard-v20-sidebar,
body.renoah-management-surface .rn-broker-sidebar,
body.renoah-management-surface .rn-v3795-sidebar{
  position:static!important;inset:auto!important;top:auto!important;bottom:auto!important;grid-column:1!important;grid-row:1 / span 2!important;
  align-self:stretch!important;display:flex!important;flex-direction:column!important;width:var(--rn-management-sidebar)!important;
  min-width:var(--rn-management-sidebar)!important;max-width:var(--rn-management-sidebar)!important;height:auto!important;
  min-height:100vh!important;max-height:none!important;margin:0!important;overflow:visible!important;transform:none!important;
  background:var(--rn-management-navy)!important;color:#fff!important;box-sizing:border-box!important
}
body.renoah-management-surface .rn-admin-sidebar nav,
body.renoah-management-surface .rn-broker-sidebar nav,
body.renoah-management-surface .rn-v3795-sidebar-nav{
  flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain
}
body.renoah-management-surface .rn-dashboard-v20-brand,
body.renoah-management-surface .rn-broker-sidebar-brand,
body.renoah-management-surface .rn-v3795-sidebar-logo{flex:0 0 auto!important}
body.renoah-management-surface .rn-sidebar-account{
  display:flex!important;flex:0 0 auto!important;flex-direction:column!important;margin-top:auto!important;min-width:0!important
}
body.renoah-management-surface .rn-sidebar-account .rn-dashboard-v20-user{flex:0 0 auto!important;margin:0!important}
body.renoah-management-surface .rn-sidebar-account .rn-admin-side-logout,
body.renoah-management-surface .rn-sidebar-account .rn-v3795-sidebar-logout{flex:0 0 auto!important;margin:0!important}
body.renoah-management-surface .rn-broker-sidebar-account .rn-v3795-sidebar-separator{flex:0 0 auto!important;margin:0!important}
body.renoah-management-surface .rn-admin-sidebar>.rn-admin-side-logout,
body.renoah-management-surface .rn-broker-sidebar>.rn-admin-side-logout{
  display:flex!important;align-items:center!important;gap:13px!important;min-height:44px!important;padding:10px 14px!important;
  border-top:1px solid rgba(255,255,255,.24)!important;color:#fff!important;text-decoration:none!important;font-size:13px!important;font-weight:800!important
}

body.renoah-admin-surface .rn-dashboard-v20-main,
body.renoah-admin-surface .rn-ui-master-v20>.rn202-body,
body.renoah-admin-surface .rn-admin>main>.rn-admin-content,
body.renoah-admin-surface .rn-v3300-shell>.rn-v3300-workspace,
body.renoah-broker-surface .rn-broker-main,
body.renoah-broker-surface .rn-v3795-main,
body.renoah-broker-surface .rn-v3300-shell>.rn-v3300-workspace{
  grid-column:2!important;grid-row:2!important;display:block!important;width:100%!important;max-width:none!important;
  min-width:0!important;margin:0!important;box-sizing:border-box!important
}
body.renoah-admin-surface .rn-dashboard-v20-main{margin-left:0!important}
body.renoah-broker-surface .rn-broker-main,
body.renoah-broker-surface .rn-v3795-main{
  grid-row:1 / span 2!important
}

/* Legacy AI-center selectors previously deducted the sidebar twice. These
   higher-specificity rules keep every child screen in the shared app grid. */
body.renoah-management-surface.renoah-admin-surface.renoah-admin-v3710>.rn-main{
  width:100%!important;max-width:none!important;min-width:0!important;margin:0!important
}
body.renoah-management-surface.renoah-admin-surface.renoah-admin-v3710:not(.renoah-dashboard-official-v20-body) .rn-admin>main,
body.renoah-management-surface.renoah-admin-surface.renoah-admin-v3710:not(.renoah-dashboard-official-v20-body) .rn-ui-master-v20,
body.renoah-management-surface.renoah-admin-surface.renoah-admin-v3710:not(.renoah-dashboard-official-v20-body) .rn-v3300-shell{
  display:grid!important;grid-template-columns:var(--rn-management-sidebar) minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  align-items:stretch!important;width:100%!important;max-width:none!important;min-width:0!important;
  min-height:100vh!important;margin:0!important;padding:0!important;overflow:visible!important
}
body.renoah-management-surface.renoah-admin-surface.renoah-admin-v3710:not(.renoah-dashboard-official-v20-body) .rn-admin>main>.rn-admin-content,
body.renoah-management-surface.renoah-admin-surface.renoah-admin-v3710:not(.renoah-dashboard-official-v20-body) .rn-ui-master-v20>.rn202-body,
body.renoah-management-surface.renoah-admin-surface.renoah-admin-v3710:not(.renoah-dashboard-official-v20-body) .rn-v3300-shell>.rn-v3300-workspace{
  grid-column:2!important;grid-row:2!important;display:block!important;width:100%!important;
  max-width:none!important;min-width:0!important;margin:0!important
}
body.renoah-management-surface.renoah-admin-v3710 .rn-admin-sidebar.rn-admin-sidebar-unified{
  position:static!important;inset:auto!important;grid-column:1!important;grid-row:1 / span 2!important;
  align-self:stretch!important;height:auto!important;min-height:100vh!important;max-height:none!important;
  overflow:visible!important;transform:none!important
}
body.renoah-management-surface .rn-admin-content,
body.renoah-management-surface .rn-reins-content,
body.renoah-management-surface .rn-sale-register-content,
body.renoah-management-surface .rn-ai-selector-v11-content{
  width:100%!important;max-width:none!important;min-width:0!important;writing-mode:horizontal-tb!important;
  word-break:normal!important;overflow-wrap:break-word
}

/* The private application header is present, but participates in document flow. */
body.renoah-admin-surface .rn-admin-app-header{
  grid-column:2!important;grid-row:1!important;position:static!important;inset:auto!important;z-index:auto!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;
  width:100%!important;max-width:none!important;min-width:0!important;min-height:64px!important;margin:0!important;
  padding:8px 32px!important;border-bottom:1px solid rgba(255,255,255,.13)!important;
  background:var(--rn-management-navy)!important;color:#fff!important;box-sizing:border-box!important
}
.rn-admin-app-home{display:flex!important;align-items:center!important;gap:16px!important;color:#fff!important;text-decoration:none!important}
.rn-admin-app-home .rn-brand-logo{display:block!important;width:140px!important;height:40px!important;object-fit:contain!important;object-position:left center!important}
.rn-admin-app-home>span{padding-left:16px;border-left:1px solid rgba(255,255,255,.24);font-size:12px;font-weight:800;white-space:nowrap}
.rn-admin-app-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0;font-size:13px}
.rn-admin-app-actions>a{color:#fff;text-decoration:none;font-weight:750;white-space:nowrap}
.rn-admin-app-actions>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.09)}
.rn-admin-app-actions svg{width:19px;height:19px}.rn-admin-app-actions>strong{white-space:nowrap}

/* Both private headers retain a direct route back to the public home. */
.rn-management-home-link{
  display:flex!important;align-items:center!important;gap:13px!important;min-width:0!important;
  color:var(--rn-management-navy)!important;text-decoration:none!important;font-size:12px!important;font-weight:800!important
}
.rn-management-home-link .rn-brand-logo{
  display:block!important;width:136px!important;height:38px!important;max-width:136px!important;
  object-fit:contain!important;object-position:left center!important
}
.rn-management-home-link>span{
  padding-left:13px!important;border-left:1px solid #d9dde5!important;white-space:nowrap!important
}

/* Brand treatment shared by both private applications. */
.rn-broker-sidebar-brand,.rn-v3795-sidebar-logo{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;text-decoration:none!important}
.rn-broker-sidebar-brand{padding:4px 14px 20px;margin-bottom:14px;border-bottom:1px solid rgba(255,255,255,.16)}
.rn-broker-sidebar-brand .rn-brand-logo,.rn-v3795-sidebar-logo .rn-brand-logo{display:block;width:168px;max-width:100%;height:47px;object-fit:contain;object-position:left center}
.rn-broker-sidebar-brand small,.rn-v3795-sidebar-logo small{color:rgba(255,255,255,.72);font-size:11px}
.rn-v3795-sidebar-logo>span,.rn-v3795-sidebar-logo>strong{display:none!important}

/* Shared private PageContainer primitives. Individual screens own their
   content design, while the application shell owns width and gutters. */
body.renoah-management-surface .rn-management-page{
  width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
  padding:28px 32px 48px!important;box-sizing:border-box!important;background:#f5f6f8!important;
  writing-mode:horizontal-tb!important;word-break:normal!important;overflow-wrap:break-word!important
}
.rn-management-page-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 22px;padding:0 0 18px;
  border-bottom:1px solid #e1e5eb
}
.rn-management-page-head small{display:block;margin-bottom:5px;color:#947019;font-size:11px;font-weight:900;letter-spacing:.12em}
.rn-management-page-head h1{margin:0;color:var(--rn-management-navy);font-size:30px;line-height:1.25}
.rn-management-page-head p{margin:7px 0 0;color:#667085;font-size:14px;line-height:1.65}
.rn-management-page-head>a,.rn-management-actions>a{
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border:1px solid var(--rn-management-gold);
  border-radius:7px;background:#fff;color:#76550d;font-size:13px;font-weight:850;text-decoration:none;white-space:nowrap
}
.rn-management-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.rn-management-summary-grid article,.rn-management-panel{border:1px solid #e1e5eb;border-radius:10px;background:#fff;box-shadow:0 7px 20px rgba(11,19,43,.05)}
.rn-management-summary-grid article{padding:18px}.rn-management-summary-grid small{display:block;color:#667085;font-size:12px}
.rn-management-summary-grid strong{display:block;margin-top:7px;color:var(--rn-management-navy);font-size:26px}.rn-management-summary-grid em{margin-left:3px;font-size:12px;font-style:normal}
.rn-management-panel{padding:22px}.rn-management-panel h2{margin:0 0 8px;color:var(--rn-management-navy);font-size:20px}
.rn-management-panel p{margin:0;color:#667085;line-height:1.75}.rn-management-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}

/* Retire old black brand surfaces while retaining the established hierarchy. */
.rn-v3795-page-head,.rn-v2986-welcome,.rn-v2986-line-cta,.rn-admin-hero{background:var(--rn-management-navy)!important}
body.renoah-admin-surface .rn-dashboard-v20-kpis>a{
  border-color:#e0c26a!important;background:#fff!important;color:var(--rn-management-navy)!important;
  box-shadow:0 7px 18px rgba(11,19,43,.08)!important
}
body.renoah-admin-surface .rn-dashboard-v20-kpis b,
body.renoah-admin-surface .rn-dashboard-v20-kpis strong,
body.renoah-admin-surface .rn-dashboard-v20-kpis strong em,
body.renoah-admin-surface .rn-dashboard-v20-kpis small{color:var(--rn-management-navy)!important}
body.renoah-admin-surface .rn-dashboard-v20-kpis small span{color:#218449!important}

/* Property registration uses the same PageHeader/card vocabulary as the
   current AdminLayout. Its links and form-routing behavior are untouched. */
body.renoah-admin-surface .rn-ui-master-v20 .rn220-select-head{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:20px!important;
  min-height:0!important;margin:0!important;padding:24px 34px 18px!important;border:0!important;
  border-bottom:1px solid #e5e7eb!important;background:#fff!important;color:var(--rn-management-navy)!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-select-head>div{display:block!important}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-select-head h1{
  margin:0 0 7px!important;color:var(--rn-management-navy)!important;font-size:28px!important;line-height:1.25!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-select-head>div>span:last-child{
  color:#667085!important;font-size:14px!important;font-weight:500!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-select-head .rn221-version{
  align-self:center!important;border-color:#e1c566!important;background:#fffaf0!important;color:#8c6510!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-main{padding:26px 34px 56px!important;background:#f5f6f8!important}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-card-wrap{
  width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-card-wrap>h2{
  margin:0 0 8px!important;color:var(--rn-management-navy)!important;font-size:28px!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-card-wrap>p{margin:0!important;color:#667085!important;font-size:14px!important}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-cards{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important;margin-top:24px!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-card{
  position:relative!important;display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;
  min-height:230px!important;padding:28px!important;border:1px solid #e0e4ea!important;border-top:4px solid var(--rn-management-gold)!important;
  border-radius:12px!important;background:#fff!important;color:var(--rn-management-navy)!important;
  box-shadow:0 10px 26px rgba(11,19,43,.08)!important;text-align:left!important;overflow:hidden!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-card:before{display:none!important}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-card:hover{
  transform:translateY(-3px)!important;border-color:#d4af37!important;box-shadow:0 16px 34px rgba(11,19,43,.13)!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-card .rn221-type-icon{
  width:52px!important;height:52px!important;margin:0 0 22px!important;padding:10px!important;
  border:1px solid #e3c765!important;border-radius:12px!important;background:#fffaf0!important;filter:none!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-card h3{
  margin:0 0 10px!important;color:var(--rn-management-navy)!important;font-size:24px!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-card p{
  max-width:none!important;margin:0 0 22px!important;color:#667085!important;font-size:14px!important;line-height:1.7!important;text-align:left!important
}
body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-card em{
  display:inline-flex!important;margin:auto 0 0!important;padding:8px 16px!important;border:1px solid #d4af37!important;
  border-radius:999px!important;background:#fffaf0!important;color:#76520a!important;font-size:12px!important;font-weight:800!important
}

/* Desktop sidebars are the persistent application control surface. Header and
   main content continue to use normal document scrolling. */
@media(min-width:1024px){
  body.renoah-admin-surface .rn-dashboard-official-v20,
  body.renoah-admin-surface .rn-ui-master-v20,
  body.renoah-admin-surface .rn-admin>main,
  body.renoah-admin-surface .rn-v3300-shell,
  body.renoah-broker-surface .rn-broker-app,
  body.renoah-broker-surface .rn-v3795-broker,
  body.renoah-broker-surface .rn-v3300-shell{
    background:linear-gradient(90deg,var(--rn-management-navy) 0,var(--rn-management-sidebar),#f5f6f8 var(--rn-management-sidebar),#f5f6f8 100%)!important
  }
  body.renoah-management-surface .rn-admin-sidebar.rn-admin-sidebar-unified,
  body.renoah-management-surface .rn-dashboard-v20-sidebar,
  body.renoah-management-surface .rn-broker-sidebar,
  body.renoah-management-surface .rn-v3795-sidebar{
    position:sticky!important;top:var(--rn-management-adminbar-offset)!important;align-self:start!important;
    height:calc(100dvh - var(--rn-management-adminbar-offset) - var(--rn-management-staging-offset))!important;
    min-height:0!important;max-height:calc(100dvh - var(--rn-management-adminbar-offset) - var(--rn-management-staging-offset))!important;
    overflow:hidden!important
  }
}

@media(max-width:782px){body.admin-bar.renoah-management-surface{--rn-management-adminbar-offset:46px}}

@media(max-width:1023px){
  body.renoah-admin-surface .rn-dashboard-official-v20,
  body.renoah-admin-surface .rn-ui-master-v20,
  body.renoah-admin-surface .rn-admin>main,
  body.renoah-admin-surface .rn-v3300-shell,
  body.renoah-broker-surface .rn-broker-app,
  body.renoah-broker-surface .rn-v3795-broker,
  body.renoah-broker-surface .rn-v3300-shell{grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important}
  body.renoah-management-surface .rn-dashboard-v20-sidebar,
  body.renoah-management-surface .rn-admin-sidebar.rn-admin-sidebar-unified,
  body.renoah-management-surface .rn-broker-sidebar,
  body.renoah-management-surface .rn-v3795-sidebar{
    position:fixed!important;inset:var(--rn-management-adminbar-offset) auto 0 0!important;z-index:1000!important;width:260px!important;min-width:260px!important;
    max-width:260px!important;height:calc(100dvh - var(--rn-management-adminbar-offset))!important;min-height:0!important;
    max-height:calc(100dvh - var(--rn-management-adminbar-offset))!important;overflow:hidden!important;transform:translateX(-100%)!important
  }
  body.renoah-management-surface .is-sidebar-open .rn-dashboard-v20-sidebar,
  body.rn-v3795-sidebar-open .rn-v3795-sidebar{transform:translateX(0)!important}
  body.renoah-admin-surface .rn-dashboard-v20-main,
  body.renoah-admin-surface .rn-ui-master-v20>.rn202-body,
  body.renoah-admin-surface .rn-admin>main>.rn-admin-content,
  body.renoah-admin-surface .rn-v3300-shell>.rn-v3300-workspace,
  body.renoah-broker-surface .rn-broker-main,
  body.renoah-broker-surface .rn-v3795-main,
  body.renoah-broker-surface .rn-v3300-shell>.rn-v3300-workspace{grid-column:1!important;grid-row:2!important;width:100%!important}
  body.renoah-admin-surface .rn-admin-app-header{grid-column:1!important;grid-row:1!important;padding-left:72px!important}
  .rn-admin-app-home .rn-brand-logo{width:118px!important}
  .rn-admin-app-home>span,.rn-admin-app-actions>a{display:none!important}
  .rn-management-home-link .rn-brand-logo{width:112px!important;max-width:112px!important}
  .rn-management-home-link>span{display:none!important}
  body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-cards{grid-template-columns:1fr!important}
  body.renoah-admin-surface .rn-ui-master-v20 .rn220-select-head,
  body.renoah-admin-surface .rn-ui-master-v20 .rn220-type-main{padding-left:20px!important;padding-right:20px!important}
  body.renoah-management-surface .rn-management-page{padding:22px 18px 38px!important}
  .rn-management-page-head{flex-direction:column}.rn-management-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){.rn-management-summary-grid{grid-template-columns:1fr}}
