:root{
  --rw-bg: #132033;
  --rw-panel: rgba(255, 255, 255, 0.94);
  --rw-panel-border: rgba(15, 23, 42, 0.12);
  --rw-text: #0f172a;
  --rw-muted: #475569;
  --rw-accent: #0ea5e9;
  --rw-accent-dark: #0369a1;
  --rw-navy: #0e2948;
  --rw-navy-shine: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 32%), linear-gradient(180deg, #1a406c 0%, #0e2948 58%, #0c2038 100%);
  --rw-green: #dcfce7;
  --rw-green-border: #86efac;
  --rw-gray: #e5e7eb;
  --rw-gray-border: #9ca3af;
  --rw-blue: #e0f2fe;
  --rw-blue-border: #7dd3fc;
  --rw-chat-assistant: #4ade80;
  --rw-chat-assistant-border: #15803d;
  --rw-chat-user: #94a3b8;
  --rw-chat-user-border: #334155;
  --rw-chat-agent: #38bdf8;
  --rw-chat-agent-border: #0369a1;
  --rw-chat-vendor: #f59e0b;
  --rw-chat-vendor-border: #b45309;
  --rw-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  --rw-radius: 18px;
  --rw-header-h: 72px;
  --rw-composer-h: 62px;
  --rw-chat-width: 100%;
  --rw-sidebar-width: 248px;
  --rw-gutter: 15px;
  --ra-page-end: 2.5rem;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html,
body{
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

input,
select,
textarea{
  font-size: 16px;
  font-family: inherit;
}

button{
  font-family: inherit;
}

body.ra-portal{
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--rw-text);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 0.8125rem;
  background: var(--rw-bg);
}

body.ra-portal.ra-portal--signed-in{
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.ra-portal__bg{
  position: fixed;
  inset: 0;
  background-color: var(--rw-bg);
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.42));
  z-index: 0;
}

.ra-portal__overlay{
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 42%);
  z-index: 0;
  pointer-events: none;
}

.ra-portal__header{
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px));
  padding: 10px var(--rw-gutter);
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-left: calc(var(--rw-gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--rw-gutter) + env(safe-area-inset-right, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 32, 54, 0.72);
  backdrop-filter: blur(14px);
  color: #fff;
}

.ra-portal__brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.ra-portal__brand-title{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.ra-portal__brand-home{
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

body.ra-portal.ra-portal--page-scroll{
  height: auto;
  min-height: 100dvh;
  overflow: auto;
  background: #fff;
}

body.ra-portal.ra-portal--page-scroll .ra-portal__bg,
body.ra-portal.ra-portal--page-scroll .ra-portal__overlay{
  display: none;
}

body.ra-portal.ra-portal--page-scroll .ra-portal__header{
  position: static;
  background: #fff;
  color: #0f172a;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: none;
}

body.ra-portal.ra-portal--page-scroll .ra-portal__brand-title,
body.ra-portal.ra-portal--page-scroll .ra-portal__mode-label,
body.ra-portal.ra-portal--page-scroll .ra-portal__company-name{
  color: #0f172a;
}

body.ra-portal.ra-portal--page-scroll .ra-portal__menu-btn{
  border-color: #d1d5db;
  background: #e5e7eb;
  color: #374151;
}

body.ra-portal.ra-portal--page-scroll .ra-portal__menu-btn-bars,
body.ra-portal.ra-portal--page-scroll .ra-portal__menu-btn-bars::before,
body.ra-portal.ra-portal--page-scroll .ra-portal__menu-btn-bars::after{
  background: #374151;
}

body.ra-portal.ra-portal--page-scroll .ra-portal__main{
  overflow: visible;
  height: auto;
  flex: none;
}

.ra-portal__roles[hidden],
.ra-portal__mode-label[hidden]{
  display: none !important;
}

.ra-portal__mode-label{
  margin: 0;
  justify-self: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
}

.ra-portal--signed-in .ra-portal__header{
  grid-template-columns: auto 1fr auto;
}

.ra-portal--signed-in .ra-portal__brand{
  grid-column: 1;
  grid-row: 1;
}

.ra-portal--signed-in .ra-portal__mode-label{
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.ra-portal--signed-in .ra-portal__header-actions{
  grid-column: 3;
  grid-row: 1;
}

.ra-portal__signed-in,
.ra-portal__user-chip{
  display: inline-flex;
  align-items: center;
  max-width: min(70vw, 16rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ra-portal__company-name{
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.ra-portal__company-name[hidden]{
  display: none !important;
}

.ra-portal__user-chip{
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.ra-portal__roles{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.ra-portal__role{
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.ra-portal__role.is-active{
  background: #fff;
  color: var(--rw-text);
}

.ra-portal__header-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  position: relative;
  z-index: 5;
  grid-column: 2;
  grid-row: 1;
}

.ra-portal__account-menu{
  position: relative;
}

.ra-portal__account-menu[hidden]{
  display: none !important;
}

.ra-portal__menu-btn{
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.ra-portal__menu-btn-bars,
.ra-portal__menu-btn-bars::before,
.ra-portal__menu-btn-bars::after{
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.ra-portal__menu-btn-bars{
  position: relative;
}

.ra-portal__menu-btn-bars::before,
.ra-portal__menu-btn-bars::after{
  content: "";
  position: absolute;
  left: 0;
}

.ra-portal__menu-btn-bars::before{
  top: -5px;
}

.ra-portal__menu-btn-bars::after{
  top: 5px;
}

.ra-portal__menu-list{
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  min-width: 168px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 32, 54, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

.ra-portal__menu-list[hidden]{
  display: none !important;
}

.ra-portal__menu-item{
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ra-portal__menu-item:hover,
.ra-portal__menu-item.is-active{
  background: rgba(255, 255, 255, 0.12);
}

.ra-portal__menu-item[hidden]{
  display: none !important;
}

#rwAccountMenuList .ra-owner__nav-group{
  display: flex;
  flex-direction: column;
  width: 100%;
}

#rwAccountMenuList .ra-owner__nav-sub{
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  width: auto;
  margin: 0;
  padding: 0 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

#rwAccountMenuList .ra-owner__nav-sub.is-modal{
  position: static;
  width: auto;
}

.ra-portal__menu-item--signout{
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 8px 8px;
  color: #fda4af;
}

.ra-portal__ghost-btn[hidden],
.ra-portal__signed-in[hidden],
.ra-portal__user-chip[hidden]{
  display: none !important;
}

.ra-portal__ghost-btn{
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.ra-portal__main{
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ra-portal__main--signed-in{
  min-height: 0;
}

.ra-portal__main--signed-in .ra-portal__signin,
.ra-portal--signed-in .ra-portal__signin,
.ra-portal__signin[hidden]{
  display: none !important;
}

.ra-portal__signin{
  display: grid;
  place-items: center;
  flex: 1;
  padding: 24px var(--rw-gutter) 40px;
}

body.ra-portal.ra-portal--home{
  height: auto;
  min-height: 100dvh;
  overflow: auto;
  background: #fff;
  color: #111827;
}

body.ra-portal.ra-portal--home .ra-portal__bg,
body.ra-portal.ra-portal--home .ra-portal__overlay{
  display: none;
}

body.ra-portal.ra-portal--home .ra-portal__header{
  position: sticky;
  background: var(--rw-navy-shine);
  color: #fff;
  border-bottom: 1px solid #061222;
  backdrop-filter: none;
}

body.ra-portal.ra-portal--home .ra-portal__brand-title{
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

body.ra-portal.ra-portal--home .ra-home__pm-btn{
  background: #fff;
  color: #0e2948;
  padding: 6px 10px;
  font-size: 0.75rem;
}

body.ra-portal.ra-portal--home .ra-home__pm-btn:hover{
  background: #e8eef5;
}

body.ra-portal.ra-portal--home .ra-portal__account-menu{
  display: none;
}

body.ra-portal:not(.ra-portal--home) #rwHomeCreatePm,
body.ra-portal--pm-account #rwHomeCreatePm{
  display: none;
}

body.ra-portal.ra-portal--home .ra-portal__menu-btn{
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #374151;
}

body.ra-portal.ra-portal--home .ra-portal__menu-btn-bars,
body.ra-portal.ra-portal--home .ra-portal__menu-btn-bars::before,
body.ra-portal.ra-portal--home .ra-portal__menu-btn-bars::after{
  background: #374151;
}

body.ra-portal.ra-portal--home .ra-portal__main{
  overflow: visible;
  height: auto;
  flex: none;
}

body.ra-portal.ra-portal--home .ra-portal__signin{
  position: relative;
  display: block;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.ra-home__pointer{
  display: none !important;
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ra-home__pointer[hidden]{
  display: none !important;
}

.ra-home__pointer-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ra-home__pointer-glow,
.ra-home__pointer-line{
  fill: none;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}

.ra-home__pointer-glow{
  stroke: #fff;
  stroke-width: 7;
}

.ra-home__pointer-line{
  stroke: #0e2948;
  stroke-width: 3;
}

.ra-home__stage{
  position: relative;
  width: 100%;
  height: 70vh;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 18px;
  background: #f3f4f6;
}

@media (max-width: 520px){
  body.ra-portal.ra-portal--home .ra-home__stage{
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 0;
  }
}

.ra-home__picture{
  display: block;
  width: 100%;
  height: 100%;
}

.ra-home__hero{
  display: none;
  margin: 0;
}

.ra-home__photo{
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 521px){
  body.ra-portal.ra-portal--home .ra-portal__signin{
    width: 100%;
    min-height: calc(100dvh - var(--rw-header-h) - env(safe-area-inset-top, 0px));
    box-sizing: border-box;
  }

  body.ra-portal.ra-portal--home .ra-home__photo{
    position: fixed;
    z-index: 0;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    width: 100vw;
    height: calc(100dvh - var(--rw-header-h) - env(safe-area-inset-top, 0px));
    max-width: none;
    object-fit: fill;
  }

  body.ra-portal.ra-portal--home .ra-home__hero{
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 2;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px));
    bottom: 0;
    left: 40px;
    justify-content: center;
    margin: 0;
    color: #fff;
    font-size: 90px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    transform: translateY(-100px);
  }

  body.ra-portal.ra-portal--home .ra-home__roles{
    position: relative;
    z-index: 2;
  }

  body.ra-portal.ra-portal--home .ra-home__stage{
    position: relative;
    z-index: auto;
    overflow: visible;
    background: transparent;
  }
}

body.ra-portal--pm-account:has(#rwHomeCreate.is-open) .ra-home__roles,
body.ra-portal--pm-account:has(#rwHomeCreate.is-open) .ra-home__photo,
body.ra-portal--pm-account:has(#rwHomeCreate.is-open) .ra-home__hero{
  display: none !important;
}

body.ra-portal.ra-portal--home .ra-home__roles{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

@media (min-width: 521px){
  body.ra-portal.ra-portal--home .ra-home__roles{
    position: fixed;
    z-index: 4;
    left: 200px;
    right: 200px;
    bottom: 0;
    width: auto;
    height: 200px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 12px;
    border-radius: 0;
    border-top: 1px solid #061222;
    background-color: #0c2038;
    background-image: var(--rw-navy-shine);
    background-repeat: no-repeat;
    background-size: 100% var(--rw-header-h);
    background-position: top;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.8s ease-out;
    animation-name: ra-home-bar-in;
  }

@keyframes ra-home-bar-in{
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

  body.ra-portal.ra-portal--home .ra-home__roles.is-in{
    transform: translateY(0);
  }

  body.ra-portal.ra-portal--home .ra-home__pointer-glow,
  body.ra-portal.ra-portal--home .ra-home__pointer-line{
    stroke: #fff;
  }
}

body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role{
  position: relative;
  border: 2px solid #0e2948;
  border-radius: 12px;
  padding: 12px 10px 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  color: #0e2948;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 1px rgba(11, 35, 64, 0.05), 0 8px 16px rgba(11, 35, 64, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role::before{
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  margin: 0 auto 8px;
  border-radius: 99px;
  background: var(--rw-navy-shine);
}

body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role:hover{
  border-color: #0e2948;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(11, 35, 64, 0.12);
}

body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role.is-active{
  border-color: #061222;
  background: var(--rw-navy-shine);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px rgba(11, 35, 64, 0.22);
}

body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role.is-active::before{
  background: #fff;
}

@media (min-width: 521px){
  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role{
    flex: 1 1 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
    text-align: center;
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role::before{
    display: none;
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role:not(:last-child)::after{
    content: "";
    position: absolute;
    top: 15%;
    bottom: 15%;
    right: 0;
    width: 1px;
    background: #fff;
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role:hover{
    transform: none;
    border-color: transparent;
    box-shadow: none;
    background: transparent;
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role.is-active{
    border-color: transparent;
    background: transparent;
    color: #fff;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 10px;
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role.is-active::before{
    display: none;
  }

  body.ra-portal.ra-portal--home #rwHomeSignIn.is-open{
    position: fixed;
    z-index: 6;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 200px;
    left: 0;
    padding: 24px;
  }
}

@media (max-width: 840px){
  body.ra-portal.ra-portal--home .ra-portal__signin{
    width: 100%;
    min-height: calc(100dvh - var(--rw-header-h) - env(safe-area-inset-top, 0px));
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body.ra-portal.ra-portal--home .ra-home__picture{
    position: fixed;
    z-index: 0;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    background: #0e2948;
  }

  body.ra-portal.ra-portal--home .ra-home__photo{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    object-position: center;
  }

  body.ra-portal.ra-portal--home .ra-home__hero{
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 2;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px));
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    justify-content: center;
    margin: 0;
    color: #fff;
    font-size: clamp(28px, min(11vw, 8vh), 52px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    transform: none;
  }

  body.ra-portal.ra-portal--home .ra-home__stage{
    position: relative;
    z-index: auto;
    width: 100%;
    height: 0;
    min-height: 0;
    margin: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  body.ra-portal.ra-portal--home .ra-home__roles{
    position: fixed;
    z-index: 4;
    left: calc(12px + env(safe-area-inset-left, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: 0;
    width: auto;
    height: calc(108px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    border-radius: 0;
    border-top: 1px solid #061222;
    background-color: #0c2038;
    background-image: var(--rw-navy-shine);
    background-repeat: no-repeat;
    background-size: 100% var(--rw-header-h);
    background-position: top;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.8s ease-out;
  }

  body.ra-portal.ra-portal--home .ra-home__roles.is-in{
    transform: translateY(0);
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role{
    flex: 1 1 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    padding: 0 4px;
    background: transparent;
    color: #fff;
    font-size: clamp(14px, 4vw, 20px);
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
    text-align: center;
    white-space: nowrap;
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role::before{
    display: none;
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role:not(:last-child)::after{
    content: "";
    position: absolute;
    top: 15%;
    bottom: 15%;
    right: 0;
    width: 1px;
    background: #fff;
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role:hover,
  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role.is-active{
    transform: none;
    border-color: transparent;
    background: transparent;
    color: #fff;
    box-shadow: none;
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role.is-active{
    text-decoration: underline;
    text-underline-offset: 6px;
  }

  body.ra-portal.ra-portal--home .ra-home__roles .ra-portal__role.is-active::before{
    display: none;
  }

  body.ra-portal.ra-portal--home #rwHomeSignIn.is-open{
    position: fixed;
    z-index: 6;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    left: 0;
    padding: 16px;
  }
}

@media (max-width: 1024px){
  body.ra-portal.ra-portal--home .ra-home__picture{
    position: fixed;
    z-index: 0;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    background: #0e2948;
  }

  body.ra-portal.ra-portal--home .ra-home__photo{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    object-position: center;
  }
}

.ra-home__forgot{
  align-self: flex-start;
  margin: -8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0e2948;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ra-home__pm-btn{
  margin: 0;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  background: #111827;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.ra-home__pm-btn:hover{
  background: #1f2937;
}

body.ra-portal.ra-portal--home .ra-home__card .ra-portal__primary-btn{
  padding: 10px 14px;
  font-size: 0.92rem;
}

.ra-home__reveal:not(.is-open),
.ra-home__reveal[hidden]{
  display: none !important;
}

.ra-home__reveal.is-open{
  display: flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
}

.ra-home__reveal > .ra-home__card{
  width: min(420px, 100%);
  margin: 0;
  border: 2px solid #0e2948;
  background: #fff;
  box-shadow: 0 18px 40px rgba(11, 35, 64, 0.28);
}

html:has(body.ra-portal--pm-account),
body.ra-portal.ra-portal--pm-account{
  height: auto;
  overflow: visible;
}

body.ra-portal.ra-portal--home.ra-portal--pm-account .ra-portal__header{
  position: static;
}

body.ra-portal--pm-account .ra-home__stage{
  height: auto;
  min-height: 0;
  margin-top: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

#rwHomeCreate.is-open{
  position: relative;
  z-index: 1;
  inset: auto;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0 5px calc(52px + 3.75rem);
  box-sizing: border-box;
}

#rwHomeCreate > .ra-home__card{
  width: min(520px, 100%);
  margin-top: 0;
  padding-top: 25px;
  padding-bottom: 25px;
}

#rwHomeCreate .ra-portal__form{
  gap: 12.6px;
}

#rwHomeCreate .ra-portal__field input,
#rwHomeCreate .ra-portal__field select{
  height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
  line-height: 20px;
}

#rwHomeCreateTitle{
  font-size: 1.15rem;
  line-height: 1.35;
  color: #0e2948;
}

#rwHomeCreate .ra-portal__card-lead{
  margin: 0 0 14px;
  font-size: 0.92rem;
}

#rwHomeCreate #rwAdminAuthForm{
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.ra-portal--pm-account:has(#rwHomeCreate.is-open) .ra-portal__admin-scroll,
body.ra-portal--pm-account:has(#rwHomeCreate.is-open) #rwAdminApp,
body.ra-portal--pm-account:has(#rwHomeCreate.is-open) #rwAdminAuth,
body.ra-portal--home #rwAdminAddBtn{
  display: none !important;
}

body.ra-portal--pm-account:has(#rwHomeCreate.is-open) .ra-portal__signin{
  padding: 12px 0 0;
}

body.ra-portal--pm-account.ra-portal--home .ra-home__stage{
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

body.ra-portal--pm-account:has(#rwHomeCreate.is-open) .ra-portal__admin,
body.ra-portal--pm-account:has(#rwHomeCreate.is-open) .ra-portal__admin-footer{
  display: none !important;
}

body.ra-portal--pm-account .ra-home__pointer{
  display: none !important;
}

body.ra-portal.ra-portal--home .ra-home__card .ra-portal__field input,
body.ra-portal--pm-account .ra-portal__field input{
  border: 1px solid #6d8299;
}

.ra-email__table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ra-email__table th,
.ra-email__table td{
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.ra-email__table tr[data-rw-email]{
  cursor: pointer;
}

.ra-email__toggle{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 600;
}

#rwInvoiceAnalysis .ra-email__toggle{
  width: fit-content;
}

#rwInvoiceAnalysis .ra-email__table th{
  white-space: nowrap;
}

#rwInvoiceAnalysis .ra-email__table td,
#rwEmailInvoices .ra-email__table td{
  white-space: normal;
}

#rwEmailInvoices .ra-email__table tr[data-rw-email-invoice]{
  cursor: pointer;
}

#rwEmailInvoiceEstimates{
  min-height: 0;
  height: auto;
  max-height: 4.8rem;
}

#rwEmailInvoiceHint,
#rwAgentInvoiceBatchListHint{
  color: #b91c1c;
  font-weight: 600;
}

.ra-invoice-doc-line{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

#rwEmailInvoiceForm .ra-invoice-approve-row{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

#rwEmailInvoiceForm .ra-invoice-approve-row #rwEmailInvoiceHint{
  margin: 0;
}

#rwEmailInvoiceForm .ra-invoice-approve-row .ra-estimate-send{
  width: auto;
  height: 32px;
  margin: 0 0 0 auto;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--rw-navy-shine);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.ra-invoice-link-missing{
  color: #b91c1c;
  font-weight: 600;
}

#rwEmailInvoiceForm.ra-estimate-card{
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ra-invoice-doc-line[hidden],
#rwEmailInvoiceFileRow[hidden]{
  display: none !important;
}

#rwEmailInvoiceProperty.is-invalid,
#rwEmailInvoiceCategory.is-empty{
  color: #b91c1c;
}

#rwEmailInvoiceProperty option,
#rwEmailInvoiceCategory option{
  color: #0f172a;
}

#rwEmailInvoiceProperty option[value=""],
#rwEmailInvoiceProperty option[value="__invoice_address"],
#rwEmailInvoiceCategory option[value=""]{
  color: #b91c1c;
}

#rwEmailInvoiceForm .ra-estimate-pair select,
#rwEmailInvoiceForm .ra-estimate-grow,
#rwEmailInvoiceForm .ra-estimate-block input,
#rwEmailInvoiceForm .ra-estimate-block textarea,
#rwEmailInvoiceLinePage .ra-estimate-tax-amount input{
  height: 30px;
  min-height: 30px;
  padding: 2px 8px;
  font-size: 13px;
}

#rwEmailInvoiceForm #rwEmailInvoiceEstimates{
  height: auto;
  min-height: 84px;
  max-height: 126px;
  padding: 4px 8px;
}

#rwEmailInvoiceForm .ra-estimate-pair{
  margin-bottom: 6px;
}

.ra-invoice-scan{
  display: flex;
  align-items: center;
  gap: 10px;
}

#rwInvoiceScanDots{
  font-weight: 700;
  letter-spacing: 3px;
  min-width: 8em;
}

#rwInvoiceAnalysis .ra-invoice-other th,
#rwInvoiceAnalysis .ra-invoice-other td{
  white-space: normal;
}

#rwEmailProcessing label:not(.ra-email__toggle){
  display: grid;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

#rwEmailProcessing select{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 500;
}

.ra-email__body{
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
}

.ra-home__companies{
  display: grid;
  gap: 8px;
}

.ra-home__companies button{
  border: 1px solid #6d8299;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #0e2948;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

#rwSignInForm.is-picking-company .ra-portal__field,
#rwSignInForm.is-picking-company .ra-home__forgot,
#rwSignInForm.is-picking-company #rwSignInBtn{
  display: none;
}

.ra-home__card{
  margin-top: 28px;
  box-shadow: none;
  border: 1px solid #e5e7eb;
  background: #fff;
}

@media (max-width: 520px){
  body.ra-portal.ra-portal--home .ra-home__roles{
    grid-template-columns: 1fr 1fr;
  }
}

.ra-portal__card{
  width: min(var(--rw-chat-width), 100%);
  padding: 28px 24px;
  border: 1px solid var(--rw-panel-border);
  border-radius: var(--rw-radius);
  background: var(--rw-panel);
  box-shadow: var(--rw-shadow);
}

.ra-portal__card-title{
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.ra-portal__card-lead{
  margin: 0 0 18px;
  color: var(--rw-muted);
  line-height: 1.45;
}

.ra-portal__form,
.ra-portal__lead-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ra-portal__form[hidden],
.ra-portal__lead-form[hidden]{
  display: none !important;
}

.ra-portal__field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
}

.ra-portal__password{
  position: relative;
  display: block;
}

.ra-portal__password input{
  padding-right: 44px;
}

.ra-portal__password-toggle{
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6d8299;
  transform: translateY(-50%);
  cursor: pointer;
}

.ra-portal__password-toggle svg{
  width: 22px;
  height: 22px;
}

.ra-portal__password-toggle .ra-portal__eye-off{
  display: none;
}

.ra-portal__password-toggle.is-visible .ra-portal__eye{
  display: none;
}

.ra-portal__password-toggle.is-visible .ra-portal__eye-off{
  display: block;
}

.ra-portal__field input,
.ra-portal__field select{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--rw-text);
  box-sizing: border-box;
}

.ra-portal__field .ra-portal__password input{
  padding-right: 44px;
}

.ra-portal__field--recent{
  margin-bottom: 8px;
}

.ra-portal__recent-select{
  cursor: pointer;
}

.ra-portal__recent-select:disabled{
  cursor: not-allowed;
  opacity: 0.7;
}

.ra-portal__field--inline input{
  min-width: 0;
}

.ra-portal__primary-btn,
.ra-portal__send-btn{
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--rw-accent), var(--rw-accent-dark));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ra-portal__primary-btn{
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px rgba(11, 35, 64, 0.2);
}

.ra-portal__primary-btn:hover{
  filter: brightness(1.03);
}

.ra-portal__primary-btn:disabled,
.ra-portal__send-btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

.ra-portal__hint{
  margin: 0;
  font-size: 0.82rem;
  color: #b45309;
}

#rwVerifyMailText{
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.4;
}

#rwVerifyMailModal .ra-portal__modal-actions{
  margin-top: 16px;
}

#rwVerifyMailOk{
  flex: 1 1 0;
  min-height: 48px;
}

.ra-portal__chat{
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.ra-portal__sidebar{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: calc(100vh - var(--rw-header-h));
  max-height: calc(100vh - var(--rw-header-h));
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 32, 54, 0.82);
  backdrop-filter: blur(12px);
}

.ra-portal__sidebar[hidden]{
  display: none !important;
}

.ra-portal__sidebar-label{
  margin: 0;
  padding: 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.ra-portal__new-chat-btn{
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(14, 165, 233, 0.18);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.ra-portal__new-chat-btn:hover{
  background: rgba(14, 165, 233, 0.28);
}

.ra-portal__idle-panel{
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: var(--rw-chat-width);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ra-portal__idle-panel[hidden]{
  display: none !important;
}

.ra-portal__idle-home{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  flex: 1;
  min-width: 0;
  margin-inline: 0;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
  overflow: hidden;
}

.ra-portal__idle-dropdown{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.ra-portal__idle-dropdown[hidden]{
  display: none !important;
}

.ra-portal__idle-select{
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--rw-text);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  box-sizing: border-box;
}

.ra-portal__idle-select:disabled{
  cursor: not-allowed;
  opacity: 0.7;
}

.ra-portal__idle-hint{
  margin: 0;
  color: #fde68a;
  font-size: 0.62rem;
  text-align: center;
}

.ra-portal__idle-btn{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  min-height: 44px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  text-align: center;
}

.ra-portal__idle-btn:hover:not(:disabled){
  background: rgba(255, 255, 255, 0.14);
}

.ra-portal__idle-btn[hidden]{
  display: none !important;
}

.ra-portal__idle-btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

.ra-portal__idle-btn--primary{
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.28);
}

.ra-portal__idle-btn--primary:hover:not(:disabled){
  background: rgba(14, 165, 233, 0.38);
}

.ra-portal__idle-btn--ghost{
  margin-top: 2px;
  background: transparent;
}

.ra-portal__idle-btn .ra-portal__unread-dot{
  position: absolute;
  top: 10px;
  right: 12px;
}

.ra-portal__sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ra-portal__idle-list{
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
}

.ra-portal__idle-row{
  display: flex;
  align-items: stretch;
  flex-grow: 0;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.ra-portal__idle-item{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.ra-portal__idle-item:hover{
  background: rgba(255, 255, 255, 0.14);
}

.ra-portal__idle-item.is-selected{
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(14, 165, 233, 0.28);
}

.ra-portal__idle-item-text{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.ra-portal__idle-item-titleline,
.ra-rowhead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.ra-portal__idle-item-title{
  min-width: 0;
  max-width: 100%;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ra-handler{
  flex: 0 1 auto;
  max-width: 46%;
  padding: 2px 8px;
  border-radius: 999px;
  background: #4a84c4;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ra-people__row span.ra-handler,
.ra-owner__property span.ra-handler,
.ra-vendor__row span.ra-handler,
.ra-portal__idle-item span.ra-handler{
  background: #4a84c4;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.ra-rowdate{
  color: #64748b;
  font-size: 0.78rem;
}

.ra-people__row .ra-rowdate,
.ra-vendor__row .ra-rowdate{
  display: block;
  margin-bottom: 8px;
}

.ra-estimate-list-line{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ra-people__row .ra-rowhead + .ra-estimate-list-line{
  margin-top: 0.5lh;
}

.ra-estimate-list-money{
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 16px;
  text-align: right;
  white-space: nowrap;
}

.ra-status-chip{
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.ra-status-chip--occupied{
  background: #bbf7d0;
}

.ra-status-chip--leased{
  background: #fde68a;
}

.ra-status-chip--vacant,
.ra-status-chip--rejected{
  background: #fecaca;
}

.ra-status-chip--closed,
.ra-status-chip--done{
  background: #e2e8f0;
}

.ra-status-chip--approved,
.ra-status-chip--pay-full{
  background: #bbf7d0;
}

.ra-status-chip--waiting{
  background: #fecaca;
}

.ra-status-chip--received{
  background: #fed7aa;
}

.ra-status-chip--sent{
  background: #fde68a;
}

.ra-status-chip--pay-partial{
  background: #fde68a;
}

.ra-status-chip--pay-unpaid{
  background: #fecaca;
}

.ra-invoice-number-line{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 400;
}

.ra-invoice-select-all{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-weight: 700;
}

.ra-invoice-select-all[hidden]{
  display: none !important;
}

.ra-invoice-batch-row{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.ra-invoice-batch-body{
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.ra-invoice-batch-check,
.ra-invoice-select-all input{
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #0e2948;
  border-radius: 2px;
  background: #fff;
  flex: 0 0 auto;
  vertical-align: middle;
}

.ra-invoice-batch-check:checked,
.ra-invoice-select-all input:checked{
  background: #0e2948;
  box-shadow: inset 0 0 0 3px #fff;
}

.ra-invoice-batch-close{
  border: 0;
  margin: 12px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ra-invoice-batch-close[hidden]{
  display: none !important;
}

.ra-invoice-batch-close legend{
  font-weight: 700;
  margin-bottom: 4px;
}

.ra-invoice-batch-close label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ra-invoice-address,
.ra-invoice-agent{
  display: block;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
}

.ra-estimate-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  flex: 0 0 auto;
}

.ra-estimate-dot--closed{
  background: #000;
}

.ra-estimate-thread{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.ra-estimate-note{
  margin: 0;
}

.ra-estimate-flow{
  margin: 12px 0;
  padding-left: 1.2rem;
}

.ra-estimate-flow time{
  font-weight: 700;
}

.ra-estimate-sheet{
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.ra-estimate-sheet th,
.ra-estimate-sheet td{
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}

.ra-estimate-sheet td:last-child,
.ra-estimate-sheet th:last-child{
  text-align: right;
  white-space: nowrap;
}

.ra-estimate-sheet tfoot td{
  font-weight: 700;
}

.ra-estimate-summary,
[data-rw-estimate-summary]{
  margin: 12px 0;
  white-space: pre-wrap;
  font-weight: 400;
}

.ra-estimate-line{
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.ra-estimate-line input[data-rw-line-text]{
  flex: 1 1 auto;
  min-width: 0;
}

.ra-estimate-card{
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #6d8299;
  border-radius: 16px;
  background: #fff;
}

.ra-estimate-pair{
  --ra-estimate-label: 7.5rem;
  display: grid;
  grid-template-columns: var(--ra-estimate-label) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.ra-linked-estimate{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-weight: 400;
}

.ra-linked-estimate__more{
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0 4px;
}

.ra-linked-estimate__close{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-weight: 600;
}

.ra-estimate-invoice-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 400;
}

.ra-estimate-invoice-links button,
.ra-linked-estimate__link{
  border: 0;
  background: transparent;
  color: #0369a1;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.ra-estimate-pair span:first-child,
.ra-estimate-pair > span{
  font-weight: 700;
}

.ra-estimate-pair > span.ra-estimate-block{
  display: block;
  margin: 0;
  font-weight: 700;
}

.ra-linked-estimate{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-weight: 400;
}

.ra-linked-estimate__more{
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0 4px;
}

.ra-linked-estimate__close{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-weight: 600;
}

.ra-estimate-invoice-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 400;
}

.ra-estimate-invoice-links button,
.ra-linked-estimate__link{
  border: 0;
  background: transparent;
  color: #0369a1;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.ra-estimate-desc{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
}

.ra-estimate-desc > span:first-child{
  font-weight: 700;
}

.ra-estimate-desc > span:last-child{
  font-weight: 400;
  white-space: pre-wrap;
  border: 0;
  padding: 0;
  background: none;
}

.ra-estimate-pair[hidden]{
  display: none !important;
}

.ra-estimate-vendor-drop{
  position: relative;
  min-width: 0;
}

.ra-estimate-vendor-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.ra-estimate-pair .ra-estimate-vendor-toggle span{
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.ra-estimate-vendor-toggle::after{
  content: "";
  flex: 0 0 auto;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
}

.ra-estimate-vendor-list{
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: calc(-1 * (var(--ra-estimate-label) + 8px));
  width: calc(100% + var(--ra-estimate-label) + 8px);
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.ra-estimate-vendor-list[hidden]{
  display: none !important;
}

.ra-estimate-vendor-option{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.ra-estimate-vendor-option:last-child{
  border-bottom: 0;
}

.ra-estimate-vendor-option.is-selected{
  background: #eff6ff;
}

.ra-estimate-vendor-name{
  font-size: 15px;
  font-weight: 500;
}

.ra-estimate-vendor-list .ra-people__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ra-estimate-photo-page{
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #e2e8f0;
  color: #0f172a;
}

.ra-estimate-photo-page[hidden]{
  display: none !important;
}

#rwEstimatePhotoPage{
  display: flex;
  inset: auto;
  top: 10vh;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(720px, calc(100vw - 48px));
  height: min(76vh, 760px);
  max-height: min(76vh, 760px);
  transform: translateX(-50%);
  z-index: 120;
  border: 2px solid #334155;
  border-radius: 10px;
  box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

#rwEstimatePhotoPage .ra-estimate-photo-modal__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 0;
}

#rwEstimatePhotoPage .ra-estimate-photo-modal__bar h2{
  margin: 0;
}

#rwEstimatePhotoPage .ra-estimate-photo-page__footer{
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
  background: #e2e8f0;
}

#rwEstimatePhotoPage .ra-estimate-photo-page__footer button{
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
  padding: 0 16px;
  border-radius: 10px;
}

#rwEstimatePhotoPage #rwEstimatePhotoSave{
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ra-estimate-line-page{
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #e2e8f0;
  color: #0f172a;
}

.ra-estimate-line-page[hidden]{
  display: none !important;
}

.ra-estimate-line-page__fields{
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 16px 16px 24px;
  font-size: 1.125rem;
}

.ra-estimate-line-page .ra-estimate-tax-amount,
.ra-estimate-line-page .ra-estimate-tax-included,
.ra-estimate-line-page input{
  font-size: 1.125rem;
}

.ra-estimate-line-page .ra-estimate-tax-amount input{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 400;
}

.ra-estimate-line-page .ra-portal__chat-title-bar{
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#rwAgentEstimateLinePage .ra-owner__muted:empty,
#rwVendorEstimateLinePage .ra-owner__muted:empty{
  display: none;
}

.ra-estimate-line-page .ra-portal__chat-title-text{
  width: auto;
  flex: 1 1 auto;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: left;
  margin-right: auto;
}

.ra-estimate-photo-page__scroll{
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 16px calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
}

.ra-estimate-photo-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.ra-estimate-photo-tile{
  position: relative;
  display: block;
  min-height: 120px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.ra-estimate-photo-check{
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 6px;
  background: #fff;
}

.ra-estimate-photo-check input{
  width: 20px;
  height: 20px;
  margin: 0;
}

.ra-estimate-photo-open{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #0f172a;
  font: inherit;
  cursor: pointer;
}

.ra-estimate-photo-tile img,
.ra-estimate-photo-open img{
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.ra-estimate-owner-photos{
  margin-top: 8px;
}

.ra-estimate-owner-photos .ra-estimate-check{
  font-weight: 500;
  margin: 8px 0;
}

.ra-estimate-owner-photos .ra-estimate-photo-add,
#rwVendorEstimatePhotos .ra-estimate-photo-add,
#rwAgentOwnerInvoicePhotos .ra-estimate-photo-add{
  display: inline;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: underline;
}

.ra-estimate-photo-add{
  display: block;
  width: 100%;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
  margin: 8px 0;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.ra-estimate-photo-zoom{
  z-index: 90;
  background: #0f172a;
}

.ra-estimate-photo-zoom__stage{
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.ra-estimate-photo-zoom__stage img{
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transform-origin: center center;
  will-change: transform;
}

.ra-estimate-photo-zoom__stage p{
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.ra-estimate-photo-page .ra-estimate-footer{
  position: static;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
}

.ra-estimate-photo-page__footer button + button{
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.28);
}

[data-rw-estimate-photo-line]{
  margin: 8px 0;
}

.ra-estimate-photo-thumbs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ra-estimate-photo-thumb{
  display: block;
  flex: 0 0 3cm;
  width: 3cm;
  height: 3cm;
  min-width: 3cm;
  min-height: 3cm;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
  color: #0f172a;
  font: inherit;
  cursor: pointer;
}

.ra-estimate-photo-thumb img{
  width: 3cm;
  height: 3cm;
  min-width: 3cm;
  min-height: 3cm;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ra-estimate-photo-more,
button[data-rw-estimate-photo-open]{
  display: block;
  margin-top: 8px;
  border: 0;
  padding: 0;
  background: none;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-align: left;
  cursor: pointer;
}

.ra-estimate-pair select{
  width: 100%;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

#rwVendorInvoiceProperty:has(option[value=""]:checked),
#rwVendorInvoiceProperty option[value=""],
#rwAgentOwnerInvoiceProperty:has(option[value=""]:checked),
#rwAgentOwnerInvoiceProperty option[value=""]{
  color: #b91c1c;
  font-size: 17px;
}

.ra-estimate-block input,
.ra-estimate-block textarea,
.ra-estimate-grow,
.ra-estimate-readonly{
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 400;
}

.ra-estimate-block{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  font-weight: 400;
}

.ra-estimate-tax-line,
.ra-estimate-send-row{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ra-estimate-tax-line .ra-estimate-send{
  width: auto;
  margin: 0 0 0 auto;
}

#rwVendorEstimateApplyTax,
#rwAgentEstimateApplyTax,
#rwAgentEstimateCommissionView{
  display: block;
  margin-top: 8px;
}

#rwVendorEstimateHint.ra-estimate-alert,
#rwAgentEstimateEditHint.ra-estimate-alert{
  color: #b91c1c;
  font-size: 1.125rem;
}

#rwVendorInvoiceHint.ra-estimate-alert,
#rwVendorInvoiceLineHint.ra-estimate-alert{
  color: #b91c1c;
}

.ra-estimate-prepare{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ra-estimate-prepare-btn{
  appearance: none;
  display: block;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.ra-estimate-send-row .ra-estimate-send{
  width: auto;
  margin: 0 0 0 auto;
}

#rwVendorEstimateTaxAmount,
#rwAgentEstimateTaxAmount,
#rwVendorInvoiceTaxAmount,
#rwAgentOwnerInvoiceTaxAmount{
  width: 5ch;
  box-sizing: content-box;
}

#rwVendorEstimateEdit .ra-estimate-gap{
  height: 4px;
}

#rwVendorEstimateEdit .ra-estimate-block{
  margin-top: 4px;
}

.ra-estimate-grid td[data-rw-estimate-line-item]{
  position: relative;
}

.ra-estimate-line-commission{
  color: #16a34a;
  font-weight: 700;
}

.ra-estimate-commission-note,
.ra-estimate-commission-lack{
  margin: 12px 0 0;
  font-weight: 700;
}

.ra-estimate-commission-note{
  color: #16a34a;
}

.ra-estimate-commission-lack{
  color: #b91c1c;
}

#rwEstimateReadyConfirm[hidden],
#rwEstimateReadyReview[hidden],
#rwEstimatePhotoCamera[hidden]{
  display: none !important;
}

#rwEstimateReadyModal.is-review .ra-portal__modal{
  width: min(36rem, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
}

#rwEstimateReadyReview .ra-portal__modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

#rwEstimateReadyReview .ra-portal__modal-actions button{
  flex: 0 0 auto;
  width: auto;
  min-height: 36px;
  height: 36px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

#rwEstimateReadySend{
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 0;
}

.ra-estimate-form-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ra-estimate-form-head h3{
  margin: 0;
}

#rwVendorInvoiceForm .ra-estimate-form-head{
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 8px;
}

#rwVendorInvoiceCancel{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 22px;
  margin: -6px 0 0;
  font-size: 26px;
  line-height: 1;
}

#rwAgentOwnerEstimateHead .ra-estimate-form-head,
#rwAgentEstimateForm .ra-estimate-form-head{
  align-items: center;
  margin-bottom: 12px;
}

#rwAgentOwnerEstimateHead .ra-estimate-form-head h3,
#rwAgentEstimateForm .ra-estimate-form-head h3{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.ra-estimate-choose{
  color: #dc2626;
  font-weight: 600;
}

.ra-estimate-pair--desc{
  align-items: start;
}

.ra-estimate-pair--desc textarea{
  width: 100%;
  box-sizing: border-box;
}

.ra-estimate-picked{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px 7.5rem;
}

.ra-estimate-picked img{
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.ra-estimate-bubble-x{
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.ra-estimate-story--unsent{
  position: relative;
}

.ra-estimate-story--unsent > .ra-estimate-bubble-x{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.ra-estimate-line-t{
  position: absolute;
  right: 100%;
  margin-right: 6px;
  top: 8px;
  color: #1d4ed8;
  font-weight: 700;
  line-height: 1.2;
}

.ra-estimate-line-x{
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

#rwVendorEstimateAnswer,
#rwAgentEstimateToOwner{
  overflow: visible;
}

#rwVendorEstimatePreview,
#rwVendorEstimatePreview .ra-estimate-grid,
#rwAgentEstimatePreview,
#rwAgentEstimatePreview .ra-estimate-grid,
#rwVendorInvoicePreview,
#rwVendorInvoicePreview .ra-estimate-grid,
#rwVendorInvoiceBody .ra-estimate-grid,
#rwAgentInvoiceBody .ra-estimate-grid,
#rwAgentOwnerInvoicePreview,
#rwAgentOwnerInvoicePreview .ra-estimate-grid,
#rwAgentOwnerInvoiceBody .ra-estimate-grid,
#rwOwnerLedgerInvoiceBody .ra-estimate-grid{
  overflow: visible;
}

#rwVendorEstimatePreview .ra-estimate-line-x-cell,
#rwAgentEstimatePreview .ra-estimate-line-x-cell,
#rwVendorInvoicePreview .ra-estimate-line-x-cell,
#rwAgentOwnerInvoicePreview .ra-estimate-line-x-cell{
  width: 0;
  max-width: 0;
  padding: 0;
  border: 0;
  position: relative;
  overflow: visible;
}

#rwVendorEstimatePreview .ra-estimate-line-x,
#rwAgentEstimatePreview .ra-estimate-line-x,
#rwVendorInvoicePreview .ra-estimate-line-x,
#rwAgentOwnerInvoicePreview .ra-estimate-line-x{
  position: absolute;
  left: auto;
  right: -18px;
  top: 0;
}

.ra-estimate-tax-amount{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 400;
}

.ra-estimate-tax-included{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.ra-estimate-tax-col{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.ra-estimate-text-btn{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #1d4ed8;
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

.ra-estimate-commission-edit{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.ra-estimate-commission-edit[hidden]{
  display: none !important;
}

.ra-estimate-commission-edit input[type="number"]{
  width: 8ch;
}

tr[data-rw-line-edit]{
  cursor: pointer;
}

#rwVendorEstimateTotals{
  font-weight: 400;
}

.ra-estimate-grow{
  resize: none;
  overflow: hidden;
  min-height: 44px;
}

.ra-estimate-readonly{
  white-space: pre-wrap;
  min-height: 44px;
}

.ra-estimate-commission{
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ra-estimate-commission label{
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.ra-estimate-gap{
  height: 1.2rem;
}

.ra-estimate-story{
  max-width: 100%;
  padding: 16px;
  border: 1px solid #6d8299;
  border-radius: 16px;
  background: #fff;
  touch-action: pan-y;
}

#rwOwnerLedgerInvoiceBody .ra-estimate-story[data-rw-invoice-card="paper"]{
  border: 2px solid #1e293b;
  border-radius: 4px;
}

#rwOwnerLedgerInvoiceBody .ra-estimate-line-t{
  display: none;
}

.ra-estimate-story input,
.ra-estimate-story textarea,
.ra-estimate-story button{
  touch-action: pan-y;
}

#rwOwnerEstimateDetail,
#rwAgentEstimateDetail,
#rwVendorEstimateForm,
#rwVendorEstimateDetail,
#rwVendorInvoiceForm,
#rwVendorInvoiceDetail,
#rwAgentOwnerInvoiceForm,
#rwAgentOwnerInvoiceDetail{
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

#rwEstimateCommissionModal,
#rwEstimateReadyModal{
  z-index: 70;
}

.ra-estimate-story-wrap{
  width: 100%;
}

.ra-estimate-from{
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  color: #64748b;
}

.ra-estimate-story-gap{
  height: 2.5rem;
}

#rwAgentInvoiceBody,
#rwVendorInvoiceBody,
#rwAgentOwnerInvoiceBody,
#rwOwnerLedgerInvoiceBody{
  padding-bottom: 3.5rem;
}

.ra-estimate-comment-gap{
  height: 1.25rem;
}

.ra-estimate-story__head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
}

.ra-estimate-story__head h3{
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.ra-estimate-check-mark,
.ra-estimate-x-mark{
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  margin-left: 6px;
}

.ra-estimate-check-mark{
  color: #16a34a;
}

.ra-invoice-ai-field{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ra-invoice-ai-field select{
  flex: 1 1 auto;
  min-width: 0;
}

.ra-invoice-ai-field .ra-estimate-check-mark{
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.ra-invoice-ai-field .ra-estimate-check-mark[hidden]{
  display: none !important;
}

.ra-estimate-x-mark{
  color: #dc2626;
}

[data-rw-vendor-pending]{
  margin: 0 0 12px;
  font-weight: 800;
  color: #0f172a;
}

.ra-estimate-story__who{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
}

.ra-estimate-reply,
.ra-estimate-send{
  appearance: none;
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 15px;
  text-align: right;
  text-decoration: underline;
  cursor: pointer;
}

.ra-invoice-actions{
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 10px;
}

.ra-invoice-actions .ra-estimate-reply{
  width: auto;
  margin: 0;
}

.ra-invoice-actions [data-rw-invoice-reply]{
  margin-left: auto;
}

.ra-invoice-payments{
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ra-invoice-pay-name{
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: #64748b;
}

.ra-estimate-reply[hidden],
.ra-estimate-send[hidden],
.ra-estimate-reply-compose[hidden]{
  display: none !important;
}

.ra-estimate-reply-compose textarea{
  width: 100%;
  margin-top: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  font-weight: 400;
}

.ra-estimate-tabs{
  display: flex;
  gap: 0;
  margin: 0 0 16px;
  border-bottom: 1px solid #d1d5db;
}

.ra-estimate-tabs button{
  appearance: none;
  flex: 1;
  margin: 0;
  padding: 12px 8px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.ra-estimate-tabs button.is-active{
  background: transparent;
  color: #0e2948;
  border-bottom-color: #0e2948;
}

#rwVendorInvoiceAddLine[hidden],
#rwVendorInvoiceTaxLine[hidden]{
  display: none !important;
}

#rwVendorInvoiceSend{
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px rgba(11, 35, 64, 0.2);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

#rwVendorInvoiceOwnNumber,
#rwVendorInvoiceOwnTotal,
#rwVendorInvoiceOwnEstimates{
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  box-sizing: border-box;
}

#rwVendorInvoiceOwnFileField{
  margin-bottom: 18px;
}

#rwVendorInvoiceOwnFileField[hidden],
#rwVendorInvoiceAttach[hidden],
#rwVendorInvoiceAttached[hidden]{
  display: none !important;
}

.ra-invoice-file-slot{
  min-width: 0;
}

#rwVendorInvoiceAttach{
  appearance: none;
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b91c1c;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  text-decoration-line: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ra-invoice-attached{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

#rwVendorInvoiceAttachedName{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  text-decoration-line: underline;
  text-underline-offset: 2px;
}

#rwVendorInvoiceAttachedClear{
  flex: 0 0 auto;
  width: 28px;
  height: 22px;
  margin: 0;
  color: #b91c1c;
}

.ra-invoice-mark-wrap{
  position: relative;
  display: block;
  min-width: 0;
}

.ra-invoice-mark-wrap input{
  width: 100%;
  padding-left: 28px;
}

.ra-invoice-mark{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #b91c1c;
  font-weight: 700;
  pointer-events: none;
}

#rwVendorInvoiceOwnNumberField .ra-invoice-mark{
  color: #000;
}

.ra-invoice-mark-wrap:has(input:not(:placeholder-shown)) .ra-invoice-mark{
  visibility: hidden;
}

#rwAgentEstimateAddLine,
#rwVendorEstimateAddLine,
#rwVendorInvoiceAddLine,
#rwAgentOwnerInvoiceAddLine{
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 10px 0 0;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.ra-estimate-grid{
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.ra-estimate-grid th,
.ra-estimate-grid td{
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 4px;
  text-align: left;
  vertical-align: top;
}

.ra-estimate-grid td:last-child,
.ra-estimate-grid th:last-child{
  text-align: right;
}

#rwVendorEstimateEdit .ra-estimate-grid th,
#rwAgentEstimateToOwner .ra-estimate-grid th,
#rwVendorInvoicePreview .ra-estimate-grid th,
#rwVendorInvoiceBody .ra-estimate-grid th,
#rwAgentInvoiceBody .ra-estimate-grid th,
#rwAgentOwnerInvoicePreview .ra-estimate-grid th,
#rwAgentOwnerInvoiceBody .ra-estimate-grid th,
#rwOwnerLedgerInvoiceBody .ra-estimate-grid th,
#rwVendorEstimateEdit .ra-estimate-block,
#rwAgentEstimateToOwner .ra-estimate-block,
#rwVendorInvoiceEdit .ra-estimate-block,
#rwAgentOwnerInvoiceEdit .ra-estimate-block{
  text-align: center;
}

#rwVendorEstimateEdit .ra-estimate-grid th:nth-child(1),
#rwVendorEstimateEdit .ra-estimate-grid td:nth-child(1),
#rwAgentEstimateToOwner .ra-estimate-grid th:nth-child(1),
#rwAgentEstimateToOwner .ra-estimate-grid td:nth-child(1),
#rwVendorEstimatePreview .ra-estimate-grid th:nth-child(1),
#rwVendorEstimatePreview .ra-estimate-grid td:nth-child(1),
#rwAgentEstimateVendorPreview .ra-estimate-grid th:nth-child(1),
#rwAgentEstimateVendorPreview .ra-estimate-grid td:nth-child(1),
#rwVendorInvoicePreview .ra-estimate-grid th:nth-child(1),
#rwVendorInvoicePreview .ra-estimate-grid td:nth-child(1),
#rwVendorInvoiceBody .ra-estimate-grid th:nth-child(1),
#rwVendorInvoiceBody .ra-estimate-grid td:nth-child(1),
#rwAgentInvoiceBody .ra-estimate-grid th:nth-child(1),
#rwAgentInvoiceBody .ra-estimate-grid td:nth-child(1),
#rwAgentOwnerInvoicePreview .ra-estimate-grid th:nth-child(1),
#rwAgentOwnerInvoicePreview .ra-estimate-grid td:nth-child(1),
#rwAgentOwnerInvoiceBody .ra-estimate-grid th:nth-child(1),
#rwAgentOwnerInvoiceBody .ra-estimate-grid td:nth-child(1),
#rwOwnerLedgerInvoiceBody .ra-estimate-grid th:nth-child(1),
#rwOwnerLedgerInvoiceBody .ra-estimate-grid td:nth-child(1){
  width: 33%;
}

#rwVendorEstimateEdit .ra-estimate-grid th:nth-child(2),
#rwVendorEstimateEdit .ra-estimate-grid td:nth-child(2),
#rwAgentEstimateToOwner .ra-estimate-grid th:nth-child(2),
#rwAgentEstimateToOwner .ra-estimate-grid td:nth-child(2),
#rwVendorEstimatePreview .ra-estimate-grid th:nth-child(2),
#rwVendorEstimatePreview .ra-estimate-grid td:nth-child(2),
#rwAgentEstimateVendorPreview .ra-estimate-grid th:nth-child(2),
#rwAgentEstimateVendorPreview .ra-estimate-grid td:nth-child(2),
#rwVendorInvoicePreview .ra-estimate-grid th:nth-child(2),
#rwVendorInvoicePreview .ra-estimate-grid td:nth-child(2),
#rwVendorInvoiceBody .ra-estimate-grid th:nth-child(2),
#rwVendorInvoiceBody .ra-estimate-grid td:nth-child(2),
#rwAgentInvoiceBody .ra-estimate-grid th:nth-child(2),
#rwAgentInvoiceBody .ra-estimate-grid td:nth-child(2),
#rwAgentOwnerInvoicePreview .ra-estimate-grid th:nth-child(2),
#rwAgentOwnerInvoicePreview .ra-estimate-grid td:nth-child(2),
#rwAgentOwnerInvoiceBody .ra-estimate-grid th:nth-child(2),
#rwAgentOwnerInvoiceBody .ra-estimate-grid td:nth-child(2),
#rwOwnerLedgerInvoiceBody .ra-estimate-grid th:nth-child(2),
#rwOwnerLedgerInvoiceBody .ra-estimate-grid td:nth-child(2){
  width: 43%;
}

#rwVendorEstimateEdit .ra-estimate-grid th:nth-child(3),
#rwVendorEstimateEdit .ra-estimate-grid td:nth-child(3),
#rwAgentEstimateToOwner .ra-estimate-grid th:nth-child(3),
#rwAgentEstimateToOwner .ra-estimate-grid td:nth-child(3),
#rwVendorEstimatePreview .ra-estimate-grid th:nth-child(3),
#rwVendorEstimatePreview .ra-estimate-grid td:nth-child(3),
#rwAgentEstimateVendorPreview .ra-estimate-grid th:nth-child(3),
#rwAgentEstimateVendorPreview .ra-estimate-grid td:nth-child(3),
#rwVendorInvoicePreview .ra-estimate-grid th:nth-child(3),
#rwVendorInvoicePreview .ra-estimate-grid td:nth-child(3),
#rwVendorInvoiceBody .ra-estimate-grid th:nth-child(3),
#rwVendorInvoiceBody .ra-estimate-grid td:nth-child(3),
#rwAgentInvoiceBody .ra-estimate-grid th:nth-child(3),
#rwAgentInvoiceBody .ra-estimate-grid td:nth-child(3),
#rwAgentOwnerInvoicePreview .ra-estimate-grid th:nth-child(3),
#rwAgentOwnerInvoicePreview .ra-estimate-grid td:nth-child(3),
#rwAgentOwnerInvoiceBody .ra-estimate-grid th:nth-child(3),
#rwAgentOwnerInvoiceBody .ra-estimate-grid td:nth-child(3),
#rwOwnerLedgerInvoiceBody .ra-estimate-grid th:nth-child(3),
#rwOwnerLedgerInvoiceBody .ra-estimate-grid td:nth-child(3){
  width: 24%;
  text-align: center;
}

#rwVendorEstimateEdit [data-rw-line-amount],
#rwAgentEstimateToOwner [data-rw-line-amount],
#rwVendorInvoicePreview [data-rw-estimate-line-amount],
#rwVendorInvoiceBody [data-rw-estimate-line-amount],
#rwAgentInvoiceBody [data-rw-estimate-line-amount],
#rwAgentOwnerInvoicePreview [data-rw-estimate-line-amount],
#rwAgentOwnerInvoiceBody [data-rw-estimate-line-amount],
#rwOwnerLedgerInvoiceBody [data-rw-estimate-line-amount]{
  text-align: center;
}

.ra-estimate-grid input{
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px;
  font: inherit;
}

.ra-estimate-grid td[colspan="3"]{
  text-align: left;
  white-space: pre-wrap;
}

.ra-estimate-check{
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
  font-weight: 700;
}

.ra-estimate-footer{
  display: flex;
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  gap: 0;
  margin: 0;
  padding: 0;
  min-height: 52px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #0e2948;
}

.ra-estimate-footer button[hidden],
.ra-estimate-footer[hidden],
#rwAgentEstimateDetail[data-rw-can-send="0"] #rwAgentEstimateSaveLines{
  display: none !important;
}

.ra-estimate-footer button{
  flex: 1 1 0;
  height: 52px;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ra-estimate-footer button + button{
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.28);
}

.ra-estimate-footer--start{
  justify-content: flex-start;
}

.ra-estimate-footer--start button{
  flex: 0 0 auto;
  padding: 0 18px;
}

body:has([data-rw-agent-page="invoices"]:not([hidden]) #rwAgentInvoiceListView:not([hidden])) .ra-owner__pages,
body:has(.ra-estimate-card:not([hidden]) .ra-estimate-footer:not([hidden])) .ra-owner__pages,
body:has(#rwOwnerEstimateDetail:not([hidden]) .ra-estimate-footer:not([hidden])) .ra-owner__pages,
body:has(#rwOwnerDetailFooter:not([hidden])) .ra-owner__pages,
body:has(#rwTenantLeasesFooter:not([hidden])) .ra-owner__pages,
body:has(#rwPeopleForm:not([hidden])) .ra-owner__pages{
  /* Footer, plus two rows so the last line clears it. */
  padding-bottom: calc(72px + var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 720px){
  body.ra-portal--agent .ra-owner__pages:has([data-rw-agent-page="estimates"]:not([hidden])),
  body.ra-portal--vendor .ra-owner__pages:has([data-rw-vendor-page="estimates"]:not([hidden])),
  body.ra-portal--owner .ra-owner__pages:has([data-rw-owner-page="estimates"]:not([hidden])),
  body.ra-portal--agent .ra-owner__pages:has([data-rw-agent-page="invoices"]:not([hidden])),
  body.ra-portal--agent .ra-owner__pages:has([data-rw-agent-page="owner-invoices"]:not([hidden])),
  body.ra-portal--vendor .ra-owner__pages:has([data-rw-vendor-page="invoices"]:not([hidden])),
  body.ra-portal--vendor .ra-owner__pages:has([data-rw-vendor-page="ledger"]:not([hidden])){
    padding-left: calc(5px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
  }
}

.ra-owner__pages.ra-owner__pages--line{
  padding-top: 0;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: calc(8px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(72px + var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
}

.ra-owner__property .ra-rowhead > strong,
.ra-people__row .ra-rowhead > strong{
  min-width: 0;
  flex: 1 1 auto;
}

.ra-mobile-back{
  display: none;
}

.ra-property__meta{
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.78rem;
}

.ra-portal__idle-item-meta{
  min-width: 0;
  max-width: 100%;
  font-weight: 400;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ra-portal__unread-dot,
.ra-portal__closed-dot{
  margin-top: 5px;
}

.ra-portal__idle-item-empty{
  margin: 0;
  padding: 8px 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  text-align: center;
}

.ra-portal__unread-dot{
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.ra-portal__closed-dot{
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.22);
}

.ra-portal__unread-dot[hidden],
.ra-portal__closed-dot[hidden]{
  display: none !important;
}

.ra-portal__idle-actions{
  display: flex;
  flex-direction: column;
  flex: 0 0 76px;
  width: 76px;
  max-width: 76px;
  gap: 4px;
}

.ra-portal__idle-toggle{
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.ra-portal__idle-toggle:hover{
  background: rgba(255, 255, 255, 0.18);
}

.ra-portal__load-previous{
  align-self: center;
  margin: 4px 0 10px;
  border: 1px solid var(--rw-gray-border);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  color: var(--rw-text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.ra-portal__load-previous:hover{
  background: var(--rw-gray);
}

.ra-portal__composer[hidden],
.ra-portal__chat-main--idle .ra-portal__composer,
.ra-portal__chat-main--handoff .ra-portal__composer,
.ra-portal__closed-bar[hidden],
.ra-portal__chat-main--idle .ra-portal__closed-bar,
.ra-portal__chat-main--handoff .ra-portal__closed-bar{
  display: none !important;
}

.ra-portal__closed-bar{
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
  user-select: none;
}

.ra-portal__footer{
  position: sticky;
  bottom: 0;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: var(--rw-chat-width);
  padding-top: 4px;
  background: transparent;
  overflow: hidden;
}

.ra-portal__footer[hidden]{
  display: none !important;
}

.ra-portal__conversation-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  min-height: 0;
  flex: 1;
}

.ra-portal__conversation-item{
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
}

.ra-portal__conversation-item:hover{
  background: rgba(255, 255, 255, 0.1);
}

.ra-portal__conversation-item.is-active{
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(14, 165, 233, 0.24);
}

.ra-portal__conversation-item-title{
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ra-portal__conversation-item-time{
  display: block;
  margin-top: 3px;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.62);
}

.ra-portal__chat-main{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 16px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  padding-left: calc(10px + env(safe-area-inset-left, 0px));
  padding-right: calc(10px + env(safe-area-inset-right, 0px));
  gap: 10px;
}

.ra-portal__chat-main--handoff{
  justify-content: center;
}

.ra-portal__handoff-notice{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--rw-chat-width);
  flex: 1;
}

.ra-portal__handoff-notice[hidden]{
  display: none !important;
}

.ra-portal__handoff-notice-card{
  width: 100%;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  text-align: center;
}

.ra-portal__handoff-notice-text{
  margin: 0 0 18px;
  line-height: 1.45;
  font-size: 1rem;
  color: var(--rw-text);
}

.ra-portal__handoff-notice-card .ra-portal__primary-btn{
  min-width: 120px;
}

.ra-portal__chat[hidden]{
  display: none !important;
}

.ra-portal__chat--active{
  flex: 1;
  min-height: 0;
}

.ra-portal__conversation-box{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: var(--rw-chat-width);
  width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.ra-portal__conversation-box[hidden]{
  display: none !important;
}

.ra-portal__chat-title-bar{
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px;
  background: #d1d5db;
  border: 0;
  border-bottom: 1px solid var(--rw-gray-border);
  border-radius: 0;
  text-align: center;
}

.ra-portal__chat-title-bar:has(#rwChatCloseBtn:not([hidden])){
  padding-left: 84px;
  padding-right: 84px;
}

.ra-portal__chat-title-close{
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  padding: 6px 10px;
  background: #1d4ed8;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

.ra-portal__chat-title-close[hidden]{
  display: none !important;
}

.ra-portal__chat-title-text{
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ra-portal__chat-title-place{
  display: block;
  width: 100%;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: #4b5563;
}

.ra-portal__chat-title-place[hidden]{
  display: none !important;
}

.ra-portal__chat-scroll{
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.ra-portal__chat-messages{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px calc(12px + env(safe-area-inset-right, 0px)) calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
}

.ra-portal__row{
  display: flex;
  width: 100%;
}

.ra-portal__row--right{
  justify-content: flex-end;
}

.ra-portal__row--center{
  justify-content: center;
}

.ra-portal__vendor-added{
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(88%, 320px);
  margin: 4px 0;
  padding: 4px 10px;
  border: 1px solid var(--rw-gray-border);
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.ra-portal__vendor-added-text{
  margin: 0;
  font-size: 0.58rem;
}

.ra-portal__vendor-added-time{
  display: block;
  margin-top: 2px;
  font-size: 0.58rem;
  font-weight: 500;
  color: #64748b;
}

.ra-portal__bubble{
  max-width: min(72%, 300px);
  padding: 6px 9px;
  border-radius: 12px 12px 12px 3px;
  border: 1px solid var(--rw-chat-assistant-border);
  background: var(--rw-chat-assistant);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.ra-portal__bubble--assistant{
  border-color: var(--rw-chat-assistant-border);
  background: var(--rw-chat-assistant);
}

.ra-portal__bubble--user{
  border-color: var(--rw-chat-user-border);
  background: var(--rw-chat-user);
}

.ra-portal__bubble--agent{
  border-color: var(--rw-chat-agent-border);
  background: var(--rw-chat-agent);
}

.ra-portal__bubble--vendor{
  border-color: var(--rw-chat-vendor-border);
  background: var(--rw-chat-vendor);
}

.ra-portal__row--right .ra-portal__bubble{
  border-radius: 12px 12px 3px 12px;
}

.ra-portal__bubble-meta{
  display: block;
  margin-bottom: 1px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #0f172a;
}

.ra-portal__bubble-text{
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.35;
  font-size: 0.88rem;
}

.ra-portal__bubble--welcome .ra-portal__bubble-text{
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.ra-portal__bubble-time{
  display: block;
  margin-top: 2px;
  font-size: 0.58rem;
  color: #1e293b;
}

.ra-portal__lead-panel{
  margin: 0 auto;
  width: 100%;
  max-width: var(--rw-chat-width);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  backdrop-filter: blur(10px);
}

.ra-portal__lead-copy{
  margin: 0 0 12px;
  line-height: 1.45;
}

.ra-portal__composer{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: var(--rw-chat-width);
  margin: 0 auto;
  min-height: var(--rw-composer-h);
  padding: 0;
  border: 0;
  background: transparent;
}

.ra-portal__chat-scroll .ra-portal__card-lead{
  font-size: 0.75rem;
}

.ra-portal__composer input{
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  font: inherit;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.ra-portal__send-btn{
  min-width: 64px;
  padding: 9px 12px;
  font-size: 0.75rem;
  border-radius: 999px;
}

.ra-portal__composer-hint{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% + 4px);
  color: #fde68a;
}

@media (max-width: 860px){
  .ra-portal__chat-main{
    min-height: 0;
    padding-top: 12px;
  }

  .ra-portal--signed-in .ra-portal__header{
    grid-template-columns: auto 1fr auto;
  }

  .ra-portal--signed-in .ra-portal__brand{
    grid-column: 1;
    grid-row: 1;
  }

  .ra-portal--signed-in .ra-portal__mode-label{
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    font-size: 1.05rem;
  }

  .ra-portal--signed-in .ra-portal__header-actions{
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .ra-portal__brand-title{
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .ra-portal__card{
    padding: 22px 16px;
  }
}

@media (max-width: 520px){
  :root{
    --rw-header-h: 58px;
  }

  .ra-portal__role{
    flex: 1 1 0;
    padding: 7px 8px;
    font-size: 0.72rem;
  }

  .ra-portal__user-chip{
    max-width: min(58vw, 14rem);
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .ra-portal__bubble{
    max-width: 88%;
  }
}

.ra-portal__modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  padding: var(--rw-gutter);
  padding-left: calc(var(--rw-gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--rw-gutter) + env(safe-area-inset-right, 0px));
  background: transparent;
  overflow-x: hidden;
}

.ra-portal__modal-overlay[hidden]{
  display: none !important;
}

.ra-portal__modal-overlay--dim{
  z-index: 40;
  background: rgba(15, 23, 42, 0.45);
}

.ra-portal--modal-open{
  overflow: hidden;
}

.ra-portal__modal{
  width: 100%;
  max-width: var(--rw-chat-width);
  padding: 22px;
  border-radius: var(--rw-radius);
  border: 2px solid #334155;
  background: var(--rw-panel);
  box-shadow: var(--rw-shadow);
}

.ra-portal__modal--compact{
  width: 100%;
  max-width: var(--rw-chat-width);
  padding: 16px 14px;
}

.ra-portal__modal--compact .ra-portal__modal-title{
  margin: 0 0 8px;
  font-size: 0.82rem;
}

.ra-portal__modal--compact .ra-portal__card-lead{
  margin: 0 0 10px;
  font-size: 0.68rem;
  line-height: 1.35;
}

.ra-portal__modal--compact .ra-portal__card-lead--compact{
  margin-top: -4px;
  margin-bottom: 8px;
  font-size: 0.62rem;
}

.ra-portal__modal--compact .ra-portal__field{
  gap: 4px;
  font-size: 0.64rem;
}

.ra-portal__modal--compact .ra-portal__field input,
.ra-portal__modal--compact .ra-portal__field select{
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 16px;
}

.ra-portal__modal--compact .ra-portal__primary-btn,
.ra-portal__modal--compact .ra-portal__ghost-btn--on-dark{
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 600;
}

.ra-portal__modal--compact .ra-portal__modal-actions{
  gap: 6px;
  margin-top: 10px;
}

.ra-portal__modal--compact .ra-portal__modal-link-btn{
  margin-top: 8px;
  font-size: 0.64rem;
  padding: 6px 8px;
}

.ra-portal__modal--compact .ra-portal__hint{
  font-size: 0.64rem;
}

.ra-portal__modal-title{
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.ra-portal__modal-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ra-portal__warn-row{
  display: flex;
  align-items: center;
  gap: 12px;
}

#rwEstimateReadyText,
#rwEstimateCommissionText,
#rwAppConfirmText,
#rwAgentInvoiceBatchText{
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: inherit;
  white-space: pre-line;
}

#rwAppConfirm{
  z-index: 120;
}

#rwAppConfirm .ra-portal__warn-row{
  display: block;
}

#rwAppConfirm .ra-portal__modal-actions{
  margin-top: 16px;
}

#rwEstimateReadyModal .ra-portal__modal-title,
#rwEstimateCommissionModal .ra-portal__modal-title{
  font-size: 1.05rem;
}

.ra-portal__warn-row .ra-portal__card-lead{
  margin: 0;
  flex: 1 1 auto;
}

.ra-portal__warn-row .ra-portal__modal-actions{
  margin: 0 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.ra-portal__modal-link-btn{
  margin-top: 12px;
  width: 100%;
}

.ra-portal__recent-list{
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}

.ra-portal__recent-item{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--rw-panel-border);
  border-radius: 12px;
  background: #fff;
  color: var(--rw-text);
  text-align: left;
  cursor: pointer;
}

.ra-portal__recent-item:hover{
  border-color: var(--rw-accent);
}

.ra-portal__ghost-btn--on-dark{
  color: var(--rw-muted);
  border-color: var(--rw-panel-border);
  background: transparent;
}

.ra-portal__card-lead--compact{
  margin-top: -8px;
  margin-bottom: 12px;
  font-size: 0.78rem;
}

.ra-portal__conversation-item-badge{
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  color: #0369a1;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.ra-portal__recent-item-badge{
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 700;
}

.ra-portal__title-suggestions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.ra-portal__title-chip{
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--rw-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.25;
}

.ra-portal__title-chip:hover,
.ra-portal__title-chip.is-selected{
  border-color: var(--rw-accent);
  background: rgba(14, 165, 233, 0.1);
  color: var(--rw-accent-dark);
}

body.ra-portal--pm-account .ra-portal__admin{
  width: min(920px, 100%);
  margin: 0 auto;
  flex: none;
  height: auto;
  padding: 28px 24px 72px;
}

body.ra-portal--pm-account .ra-portal__admin-page,
body.ra-portal--pm-account .ra-portal__admin-scroll{
  max-width: none;
  height: auto;
  overflow: visible;
}

body.ra-portal--pm-account .ra-portal__admin-hero .ra-portal__card-title,
body.ra-portal--pm-account .ra-portal__admin-auth-actions{
  display: none;
}

body.ra-portal--pm-account #rwAdminPanel:not([hidden]) #rwAdminAuthForm{
  width: min(420px, 100%);
  border: 2px solid #0e2948;
  background: #fff;
  box-shadow: 0 18px 40px rgba(11, 35, 64, 0.28);
}

body.ra-portal--pm-account .ra-portal__admin-footer{
  margin-top: 16px;
}

body.ra-portal--pm-account .ra-portal__admin-footer .ra-portal__ghost-btn{
  color: #0e2948;
  border-color: #0e2948;
  background: #fff;
}

.ra-portal__admin[hidden]{
  display: none !important;
}

.ra-portal__admin{
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 0 var(--rw-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
}

.ra-portal__admin-page{
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--rw-chat-width);
  margin: 0 auto;
  min-height: 0;
  flex: 1;
}

.ra-portal__admin-scroll{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 0 calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
}

.ra-portal__admin-hero{
  margin-bottom: 12px;
}

.ra-portal__admin-auth-actions{
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.ra-portal__admin-auth-actions .ra-portal__primary-btn,
.ra-portal__admin-auth-actions .ra-portal__ghost-btn{
  flex: 1 1 0;
}

.ra-portal__admin-manage-title{
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
}

.ra-portal__admin-toolbar{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.ra-portal__admin-select{
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--rw-text);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  box-sizing: border-box;
}

.ra-portal__admin-select:disabled{
  cursor: not-allowed;
  opacity: 0.7;
}

.ra-portal__admin-add{
  min-width: 72px;
  padding: 10px 14px;
  font-size: 1rem;
  line-height: 1;
}

.ra-portal__admin-row-actions{
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.ra-portal__admin-row-actions .ra-portal__ghost-btn{
  flex: 1 1 0;
}

.ra-portal__admin-id{
  margin: 0 0 8px;
  color: var(--rw-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.ra-portal__admin-footer{
  flex-shrink: 0;
  padding-top: 10px;
}

.ra-portal__admin-footer .ra-portal__ghost-btn{
  width: 100%;
}

.ra-portal__photo-btn{
  border: 1px solid var(--rw-gray-border);
  border-radius: 999px;
  padding: 9px 10px;
  background: #fff;
  color: var(--rw-text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ra-portal__photo-btn[hidden],
.ra-portal__photo-btn:disabled{
  display: none;
}

.ra-portal__photo-thumb-btn{
  display: block;
  margin: 4px 0 2px;
  padding: 0;
  border: 0;
  background: #e5e7eb;
  border-radius: 8px;
  cursor: zoom-in;
}

.ra-portal__photo-thumb{
  display: block;
  flex: 0 0 3cm;
  width: 3cm;
  height: 3cm;
  min-width: 3cm;
  min-height: 3cm;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--rw-gray-border);
}

.ra-portal__photo-lightbox{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  padding: 24px 12px;
}

.ra-portal__photo-lightbox[hidden]{
  display: none !important;
}

.ra-portal__photo-lightbox-stage{
  position: relative;
  max-width: min(92vw, 720px);
  max-height: 86vh;
  overflow: auto;
  touch-action: pinch-zoom;
}

.ra-portal__photo-lightbox-stage img{
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  transform-origin: center center;
  transition: transform 0.12s ease;
}

.ra-portal__photo-lightbox-close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.ra-portal__vendor-pick-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 42vh;
  overflow: auto;
  margin: 8px 0 12px;
}

.ra-portal__vendor-pick{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--rw-gray-border);
  border-radius: 10px;
  background: #fff;
  color: var(--rw-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ra-portal__vendor-pick:disabled{
  opacity: 0.55;
  cursor: default;
}

.ra-portal__vendor-pick-name{
  font-weight: 600;
  font-size: 0.9rem;
}

.ra-portal__vendor-pick-meta{
  color: var(--rw-muted);
  font-size: 0.75rem;
}

.ra-portal__activity[hidden]{
  display: none !important;
}

.ra-portal__activity{
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 0 var(--rw-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  /* background: #f8fafc; */
  /* background: #eef2f6; */
  background: #e2e8f0;
  color: #0f172a;
}

.ra-portal__activity-page{
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--rw-chat-width);
  margin: 0 auto;
  min-height: 0;
  flex: 1;
}

.ra-portal__activity-scroll{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 0 calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
}

.ra-portal__activity-toggle{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}

.ra-tt-log{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ra-tt-log__bubble{
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ra-tt-log__line{
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 8px;
}

.ra-tt-log__line span:first-child{
  font-weight: 700;
}

.ra-tt-log__data{
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.ra-portal__activity-pre{
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 12rem;
}

.ra-portal__activity-line{
  display: block;
}

.ra-portal__activity-time{
  font-weight: 700;
  color: #166534;
}

.ra-portal__activity-date{
  color: #dc2626;
  font-weight: 700;
}

.ra-portal__activity-footer{
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 10px;
}

.ra-portal__activity-footer .ra-portal__ghost-btn,
.ra-portal__activity-footer .ra-portal__primary-btn{
  flex: 1 1 0;
}

.ra-vendor[hidden]{
  display: none !important;
}

.ra-vendor{
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100dvh - var(--rw-header-h));
  background: #fff;
  color: #0f172a;
}

.ra-vendor__scroll{
  flex: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 16px var(--rw-gutter) calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
}

.ra-vendor__title{
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.ra-vendor__hint{
  margin: 0 0 12px;
  color: #b45309;
}

.ra-vendor__filters{
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.ra-vendor__filters label,
.ra-vendor__card label{
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.ra-vendor__filters input,
.ra-vendor__filters select,
.ra-vendor__card input,
.ra-vendor__card select,
.ra-vendor__card textarea{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 500;
}

#rwVendorAddBtn{
  width: 100%;
}

.ra-vendor__btn{
  flex: 1 1 0;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #d1d5db;
  color: #1f2937;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ra-vendor__rows{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ra-vendor__row{
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ra-vendor__row strong{
  font-size: 1rem;
}

.ra-vendor__empty{
  margin: 12px 0;
  color: #64748b;
}

.ra-vendor__form{
  display: grid;
  gap: 12px;
}

.ra-vendor__card{
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ra-vendor__card h3{
  margin: 0 0 12px;
  font-size: 1rem;
}

.ra-vendor__card label + label,
.ra-vendor__added{
  margin-top: 10px;
}

.ra-vendor__added{
  margin-bottom: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.ra-vendor__checks{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.ra-vendor__checks label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ra-vendor__checks input{
  width: auto;
}

.ra-vendor__footer{
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px var(--rw-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.ra-owner__nav[hidden],
.ra-owner__pages[hidden]{
  display: none !important;
}

body.ra-portal--owner .ra-portal__main,
body.ra-portal--tenant .ra-portal__main,
body.ra-portal--agent .ra-portal__main,
body.ra-portal--vendor .ra-portal__main{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}

body.ra-portal--owner .ra-owner__nav,
body.ra-portal--tenant .ra-owner__nav,
body.ra-portal--agent .ra-owner__nav,
body.ra-portal--vendor .ra-owner__nav{
  grid-column: 1;
  grid-row: 1;
}

body.ra-portal--agent.ra-portal--agent-directory #rwAgentPages{
  display: none !important;
}

body.ra-portal--agent.ra-portal--agent-directory #rwAdminPanel,
body.ra-portal--agent.ra-portal--agent-directory #rwVendorPage{
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  overflow: auto;
  /* background: #f8fafc; */
  /* background: #eef2f6; */
  background: #e2e8f0;
  color: #0f172a;
}

body.ra-portal--agent.ra-portal--agent-directory #rwAdminPanel .ra-portal__admin-hero,
body.ra-portal--agent.ra-portal--agent-directory #rwAdminAuth,
body.ra-portal--agent.ra-portal--agent-directory .ra-portal__admin-footer{
  display: none !important;
}

body.ra-portal--agent.ra-portal--agent-directory .ra-portal__admin-manage-title{
  color: #0f172a;
}

body.ra-portal--agent.ra-portal--agent-directory #rwVendorPage{
  min-height: 0;
  height: auto;
}

body.ra-portal--owner .ra-owner__pages,
body.ra-portal--owner #rwChatPanel,
body.ra-portal--owner #rwActivityPanel,
body.ra-portal--tenant .ra-owner__pages,
body.ra-portal--tenant #rwChatPanel,
body.ra-portal--tenant #rwActivityPanel,
body.ra-portal--agent .ra-owner__pages,
body.ra-portal--agent #rwChatPanel,
body.ra-portal--agent #rwActivityPanel,
body.ra-portal--vendor .ra-owner__pages,
body.ra-portal--vendor #rwChatPanel,
body.ra-portal--vendor #rwActivityPanel,
body.ra-portal--owner #rwBankAccounts:not([hidden]),
body.ra-portal--tenant #rwBankAccounts:not([hidden]),
body.ra-portal--agent #rwBankAccounts:not([hidden]),
body.ra-portal--vendor #rwBankAccounts:not([hidden]){
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
}

body.ra-portal--owner #rwChatPanel,
body.ra-portal--tenant #rwChatPanel,
body.ra-portal--agent #rwChatPanel,
body.ra-portal--vendor #rwChatPanel{
  overflow: hidden;
  /* background: #f8fafc; */
  /* background: #eef2f6; */
  background: #e2e8f0;
  color: #0f172a;
}

body.ra-portal--owner #rwChatPanel .ra-portal__chat-main,
body.ra-portal--tenant #rwChatPanel .ra-portal__chat-main,
body.ra-portal--agent #rwChatPanel .ra-portal__chat-main,
body.ra-portal--vendor #rwChatPanel .ra-portal__chat-main{
  align-items: stretch;
  padding: 24px calc(20px + env(safe-area-inset-right, 0px)) calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
}

body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread .ra-portal__chat-main,
body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread .ra-portal__chat-main,
body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread .ra-portal__chat-main,
body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread .ra-portal__chat-main{
  padding: 0 calc(12px + env(safe-area-inset-right, 0px)) calc(52px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
}

body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread .ra-portal__footer,
body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread .ra-portal__footer,
body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread .ra-portal__footer,
body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread .ra-portal__footer{
  padding-left: 12px;
  padding-right: 12px;
}

body.ra-portal--owner #rwChatPanel .ra-portal__idle-home,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-home,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-home,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-home,
body.ra-portal--owner #rwChatPanel .ra-portal__conversation-box,
body.ra-portal--tenant #rwChatPanel .ra-portal__conversation-box,
body.ra-portal--agent #rwChatPanel .ra-portal__conversation-box,
body.ra-portal--vendor #rwChatPanel .ra-portal__conversation-box{
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

body.ra-portal--owner #rwChatPanel .ra-portal__chat-scroll,
body.ra-portal--tenant #rwChatPanel .ra-portal__chat-scroll,
body.ra-portal--agent #rwChatPanel .ra-portal__chat-scroll,
body.ra-portal--vendor #rwChatPanel .ra-portal__chat-scroll,
body.ra-portal--owner #rwChatPanel .ra-portal__footer,
body.ra-portal--tenant #rwChatPanel .ra-portal__footer,
body.ra-portal--agent #rwChatPanel .ra-portal__footer,
body.ra-portal--vendor #rwChatPanel .ra-portal__footer{
  background: transparent;
}

body.ra-portal--owner #rwChatPanel .ra-portal__chat-title-bar,
body.ra-portal--tenant #rwChatPanel .ra-portal__chat-title-bar,
body.ra-portal--agent #rwChatPanel .ra-portal__chat-title-bar,
body.ra-portal--vendor #rwChatPanel .ra-portal__chat-title-bar{
  position: sticky;
  top: 0;
  z-index: 3;
  background: #d1d5db;
  border: 0;
  border-bottom: 1px solid #9ca3af;
  border-radius: 0;
  box-shadow: none;
}

body.ra-portal--owner #rwChatPanel .ra-portal__idle-item,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-item,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-item,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-item{
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.ra-portal--owner #rwChatPanel .ra-portal__idle-item:hover,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-item:hover,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-item:hover,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-item:hover{
  background: #f8fafc;
}

body.ra-portal--owner #rwChatPanel .ra-portal__idle-item.is-selected,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-item.is-selected,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-item.is-selected,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-item.is-selected{
  border-color: #7dd3fc;
  background: #e0f2fe;
}

body.ra-portal--owner #rwChatPanel .ra-portal__idle-item-meta,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-item-meta,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-item-meta,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-item-meta,
body.ra-portal--owner #rwChatPanel .ra-portal__idle-item-empty,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-item-empty,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-item-empty,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-item-empty{
  color: #64748b;
}

body.ra-portal--owner #rwChatPanel .ra-portal__idle-hint,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-hint,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-hint,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-hint,
body.ra-portal--owner #rwChatPanel .ra-portal__composer-hint,
body.ra-portal--tenant #rwChatPanel .ra-portal__composer-hint,
body.ra-portal--agent #rwChatPanel .ra-portal__composer-hint,
body.ra-portal--vendor #rwChatPanel .ra-portal__composer-hint{
  color: #b45309;
}

body.ra-portal--owner #rwChatPanel .ra-portal__idle-toggle,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-toggle,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-toggle,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-toggle{
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
}

body.ra-portal--owner #rwChatPanel .ra-portal__idle-toggle:hover,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-toggle:hover,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-toggle:hover,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-toggle:hover{
  background: #f8fafc;
}

body.ra-portal--owner #rwChatPanel .ra-portal__idle-btn,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-btn,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-btn,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-btn{
  border: 0;
  background: #0e2948;
  color: #fff;
}

body.ra-portal--owner #rwChatPanel .ra-portal__idle-btn:hover:not(:disabled),
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-btn:hover:not(:disabled),
body.ra-portal--agent #rwChatPanel .ra-portal__idle-btn:hover:not(:disabled),
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-btn:hover:not(:disabled){
  background: #1a406c;
}

body.ra-portal--owner #rwChatPanel .ra-portal__composer input,
body.ra-portal--tenant #rwChatPanel .ra-portal__composer input,
body.ra-portal--agent #rwChatPanel .ra-portal__composer input,
body.ra-portal--vendor #rwChatPanel .ra-portal__composer input{
  border: 1px solid #6d8299;
  box-shadow: none;
}

.ra-owner__nav{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  overflow: visible;
}

.ra-owner__nav-row{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.ra-owner__nav-row > .ra-owner__nav-btn,
.ra-owner__nav-row > .ra-owner__nav-group{
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

.ra-owner__page.ra-people-on > :not(#rwPeople){
  display: none;
}

.ra-people{
  max-width: 420px;
}

.ra-people__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ra-people__bar-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ra-people__bar h2,
.ra-people__form h2{
  margin: 0;
  font-size: 1.25rem;
  color: #0f172a;
}

#rwPeopleAddedBy{
  margin: 0;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
}

#rwPeopleInactiveSince{
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.ra-people__bar h2.ra-owner__title{
  font-size: 1.35rem;
}

.ra-people__plus{
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 10px;
  background: #0e2948;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ra-people__plus:disabled{
  opacity: 0.35;
  cursor: default;
}

.ra-bank-default{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.ra-bank-row-btn{
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #0e2948;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

body:has(#rwBankForm:not([hidden])) #rwBankAccounts{
  padding-bottom: calc(72px + var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
}

#rwBankAccounts:not([hidden]){
  max-width: none;
  background: #e2e8f0;
  color: #0f172a;
}

.ra-people__form[hidden],
#rwOwnerDetail[hidden],
#rwPropertyForm[hidden],
#rwTenantLeases[hidden],
#rwOwnerMenu[hidden],
#rwTenantMenu[hidden],
#rwAgentEstimateMenu[hidden],
#rwVendorInvoiceMenu[hidden],
#rwAgentOwnerInvoiceMenu[hidden],
#rwVendorInvoiceEstimatePick[hidden],
#rwAgentOwnerInvoiceEstimatePick[hidden],
#rwAgentOwnerEstimateHead[hidden],
#rwPropertyLease[hidden]{
  display: none !important;
}

#rwPropertyLease{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ra-people__menu{
  position: fixed;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

#rwAgentEstimateMenu{
  background: #fff;
}

.ra-people__menu button{
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ra-people__menu button:hover{
  background: #e0f2fe;
}

.ra-people__line{
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.ra-people__line .ra-people__row{
  flex: 1;
  width: auto;
}

.ra-people__more{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  flex: 0 0 36px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.ra-people__more span{
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: #0f172a;
}

.ra-people__add-prop{
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #0e2948;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ra-people__meta{
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.85rem;
}

.ra-people__hint{
  margin: 0 0 8px;
  color: #b45309;
  font-size: 0.85rem;
}

.ra-people__rows{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ra-people__row{
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ra-people__row strong{
  display: block;
}

.ra-people__titleline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ra-people__who{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ra-people__corner{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.ra-people__corner .ra-people__units,
.ra-people__corner .ra-status-chip{
  margin-left: 0;
}

.ra-status-chip--inactive{
  background: #e5e7eb;
}

.ra-people__row span.ra-status-chip.ra-status-chip--rate-excellent{
  background: #4ade80;
  color: #000;
}

.ra-people__row span.ra-status-chip.ra-status-chip--rate-good{
  background: #bbf7d0;
  color: #000;
}

.ra-people__row span.ra-status-chip.ra-status-chip--rate-not-good{
  background: #eab308;
  color: #000;
}

.ra-people__row span.ra-status-chip.ra-status-chip--rate-bad{
  background: #dc2626;
  color: #000;
}

.ra-people__fact{
  display: block;
}

.ra-people__id{
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}

.ra-people__row .ra-people__name,
.ra-vendor__row .ra-rowhead > strong{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.ra-people__tag{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}

.ra-people__tag--area{
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.ra-people__tag--tech{
  background: #e5e7eb;
}

.ra-people__row .ra-people__units{
  margin-left: auto;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.ra-people__row span{
  color: #64748b;
  font-size: 0.8rem;
}

.ra-people__row span.ra-status-chip{
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
}

.ra-people__status{
  display: flex;
  align-items: center;
  gap: 6px;
}

.ra-people__dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.ra-people__dot--vacant{
  background: #dc2626;
}

.ra-people__dot--leased{
  background: #eab308;
}

.ra-people__dot--occupied,
.ra-people__dot--active,
.ra-people__dot--rate-excellent{
  background: #16a34a;
}

.ra-people__dot--rate-good{
  background: #4ade80;
}

.ra-people__dot--rate-not-good{
  background: #eab308;
}

.ra-people__dot--rate-bad{
  background: #dc2626;
}

.ra-people__dot--inactive,
.ra-people__dot--unread{
  background: #dc2626;
}

.ra-people__row:disabled,
.ra-people__row--static{
  cursor: default;
}

.ra-people__row:disabled{
  opacity: 0.72;
}

.ra-people__form{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ra-people__field{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.ra-people__field[hidden],
.ra-portal__field[hidden]{
  display: none !important;
}

.ra-people__picks{
  display: flex;
  flex-direction: column;
  max-height: 160px;
  overflow: auto;
  border: 1px solid #6d8299;
  border-radius: 10px;
  background: #fff;
}

.ra-people__pick{
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: 40px;
}

.ra-people__gap,
.ra-property-form-gap{
  height: 40px;
}

.ra-people__pick-name,
.ra-people__pick-delete{
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ra-people__pick-name{
  flex: 1;
  text-align: left;
  padding: 6px 8px;
}

.ra-people__pick-name:hover,
.ra-people__pick-delete:hover{
  background: #e0f2fe;
}

.ra-people__pick-delete{
  padding: 6px 8px;
  color: #b91c1c;
}

.ra-people__other-row{
  display: flex;
  align-items: center;
  gap: 8px;
}

.ra-people__other-row input{
  flex: 1;
  min-width: 0;
}

.ra-people__other-row button{
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #0e2948;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ra-people__tech{
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ra-people__tech[hidden]{
  display: none !important;
}

.ra-people__tech button,
.ra-people__row .ra-people__chip{
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e0f2fe;
  color: #0f172a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
}

.ra-people__tech button{
  cursor: pointer;
}

.ra-people__field input,
.ra-people__field select,
.ra-people__field textarea{
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid #6d8299;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
}

.ra-people__other-row input{
  width: auto;
}

.ra-people__field textarea{
  height: auto;
  min-height: 72px;
  resize: vertical;
}

.ra-people__field input[readonly]{
  background: #f1f5f9;
  color: #475569;
}

.ra-people__actions{
  display: flex;
  gap: 8px;
}

.ra-people__actions button{
  flex: 1 1 0;
  height: 40px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ra-people__actions button[type="submit"]{
  border: 0;
  background: #0e2948;
  color: #fff;
}

.ra-people__actions button.is-busy,
#rwPeopleSave.is-busy,
#rwAgentInvoicePay.is-busy,
#rwAgentInvoiceBatchTop.is-busy,
#rwAgentInvoiceBatchMini.is-busy,
#rwAgentInvoiceBatchConfirm.is-busy{
  position: relative;
  color: transparent;
  pointer-events: none;
}

.ra-people__actions button.is-busy::after,
#rwPeopleSave.is-busy::after,
#rwAgentInvoicePay.is-busy::after,
#rwAgentInvoiceBatchTop.is-busy::after,
#rwAgentInvoiceBatchMini.is-busy::after,
#rwAgentInvoiceBatchConfirm.is-busy::after{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ra-spin 0.7s linear infinite;
}

.ra-spinner{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #fff;
}

.ra-spinner[hidden]{
  display: none !important;
}

.ra-spinner__ring{
  width: 36px;
  height: 36px;
  border: 3px solid #d6dee8;
  border-top-color: #0e2948;
  border-radius: 50%;
  animation: ra-spin 0.7s linear infinite;
}

@keyframes ra-spin{
  to{ transform: rotate(360deg); }
}

.ra-people__actions button[type="button"]{
  border: 1px solid #6d8299;
  background: #fff;
  color: #0f172a;
}

.ra-owner__nav-btn[hidden],
.ra-owner__nav-group[hidden],
.ra-owner__nav-sub[hidden]{
  display: none !important;
}

.ra-owner__nav-group{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ra-owner__nav-sub{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.ra-owner__nav-btn--sub{
  padding-left: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}

.ra-owner__nav-sub.is-modal{
  position: fixed;
  z-index: 40;
  width: min(220px, calc(100vw - 16px));
  margin: 0;
}

.ra-owner__nav-btn,
.ra-owner__subnav-btn,
.ra-owner__back{
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ra-owner__nav-btn{
  text-align: center;
  white-space: nowrap;
}

.ra-owner__nav-btn.is-active,
.ra-owner__subnav-btn.is-active{
  background: #e0f2fe;
  color: #0369a1;
}

.ra-owner__pages{
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  /* background: #f8fafc; */
  /* background: #eef2f6; */
  background: #e2e8f0;
  padding: 24px calc(20px + env(safe-area-inset-right, 0px)) calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
}

.ra-owner__page[hidden],
.ra-owner__custom[hidden],
#rwOwnerPropertyDetail[hidden],
#rwOwnerLedgerInvoice[hidden],
#rwTenantPropertyDetail[hidden],
#rwTenantLedgerDoc[hidden],
#rwAgentPropertyDetail[hidden],
#rwAgentMaintDetail[hidden],
#rwAgentOwnerDetail[hidden],
#rwAgentTenantDetail[hidden],
#rwAgentVendorPick[hidden],
#rwAgentInvoiceDetail[hidden],
#rwVendorLedgerInvoice[hidden]{
  display: none !important;
}

.ra-invoice-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ra-invoice-toolbar{
  position: sticky;
  top: 0;
  z-index: 6;
  background: #e2e8f0;
  padding-bottom: 12px;
}

#rwAgentInvoiceBatchListHint:empty{
  display: none;
}

.ra-invoice-head__actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.ra-invoice-head .ra-invoice-reset{
  flex: 0 0 auto;
  height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--rw-navy-shine);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ra-invoice-head .ra-owner__title{
  margin: 0;
}

.ra-invoice-filter{
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #0e2948;
  color: #fff;
  cursor: pointer;
}

.ra-invoice-filter svg{
  display: block;
}

.ra-invoice-filters,
#rwAgentInvoiceFilters{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 26px;
}

.ra-invoice-filters .ra-owner__field,
#rwAgentInvoiceFilters .ra-owner__field{
  margin-bottom: 0;
}

.ra-invoice-filters .ra-owner__field select,
#rwAgentInvoiceFilters .ra-owner__field select,
#rwAgentInvoiceReset{
  height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
}

#rwAgentInvoiceDrafts{
  width: 168px;
  min-width: 168px;
  flex: 0 0 168px;
  justify-content: center;
  box-sizing: border-box;
  font-size: 0.78rem;
}

.ra-invoice-title--draft{
  font-size: 1.01rem;
}

.ra-invoice-filter-property{
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.ra-invoice-filter-property .ra-owner__field{
  margin-bottom: 0;
}

.ra-invoice-reset{
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ra-invoice-page__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ra-invoice-page__head .ra-owner__title{
  margin: 0;
}

.ra-invoice-paystate{
  margin: 0;
  font-weight: 700;
}

.ra-invoice-paystate--full{
  color: #16a34a;
}

.ra-invoice-paystate--due{
  color: #b91c1c;
}

.ra-invoice-addpay{
  border: 0;
  background: none;
  padding: 0;
  color: #1a406c;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.ra-invoice-payform{
  display: grid;
  gap: 8px;
  max-width: 280px;
  margin-top: 8px;
}

.ra-invoice-payform[hidden]{
  display: none !important;
}

.ra-invoice-payform input{
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

#rwAgentInvoiceListView[hidden]{
  display: none !important;
}

.ra-invoice-filters[hidden],
.ra-invoice-reset[hidden]{
  display: none !important;
}

.ra-owner__title{
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.ra-dash__version{
  margin: -8px 0 14px;
  color: #64748b;
  font-size: 0.8rem;
}

.ra-owner__lead,
.ra-owner__muted{
  margin: 0 0 12px;
  color: #64748b;
}

.ra-owner__field{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  max-width: 280px;
  font-weight: 600;
}

.ra-invoice-filters .ra-owner__field[hidden]{
  display: none !important;
}

.ra-owner__field input,
.ra-owner__field select{
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.ra-owner__custom{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#rwOwnerLedgerFilters,
#rwOwnerReportFilters{
  align-items: flex-end;
}

#rwOwnerLedgerFilters > .ra-owner__field,
#rwOwnerLedgerCustom > .ra-owner__field,
#rwOwnerReportFilters > .ra-owner__field,
#rwOwnerReportCustom > .ra-owner__field{
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
}

#rwOwnerLedgerFilters .ra-owner__field select,
#rwOwnerLedgerFilters .ra-owner__field input,
#rwOwnerReportFilters .ra-owner__field select,
#rwOwnerReportFilters .ra-owner__field input,
#rwOwnerLedgerCustom .ra-owner__field input,
#rwOwnerReportCustom .ra-owner__field input{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1023px){
  #rwOwnerLedgerFilters > .ra-owner__field,
  #rwOwnerReportFilters > .ra-owner__field,
  #rwOwnerLedgerCustom > .ra-owner__field,
  #rwOwnerReportCustom > .ra-owner__field{
    flex: 1 1 calc(50% - 12px);
    width: calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

#rwOwnerLedgerCustom,
#rwOwnerReportCustom{
  flex: 1 1 100%;
  min-width: 0;
}

.ra-owner__card{
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #6d8299;
  border-radius: 16px;
  background: #fff;
}

.ra-owner__card h3{
  margin: 0 0 8px;
}

.ra-owner__card p{
  margin: 0 0 8px;
}

.ra-dash{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ra-dash__bubble{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  height: 112px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #6d8299;
  border-radius: 20px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ra-dash__bubble--soon{
  cursor: default;
  pointer-events: none;
}

.ra-dash__label{
  font-weight: 600;
}

.ra-dash__count{
  font-size: 1.75rem;
  line-height: 1;
}

.ra-dash__activity{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 10px;
}

.ra-dash__activity span{
  color: #64748b;
  font-size: 0.85rem;
}

.ra-dash__link{
  border: 0;
  padding: 0;
  background: transparent;
  color: #0369a1;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.ra-owner__subnav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ra-owner__list{
  display: grid;
  gap: 8px;
}

.ra-owner__property{
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ra-invoice-numbers{
  display: block;
  white-space: pre-line;
}

.ra-owner__property--line{
  cursor: default;
}

.ra-owner__ledger{
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.ra-owner__ledger td[data-rw-ledger-date],
.ra-owner__ledger td[data-rw-tx-date]{
  white-space: nowrap;
}

.ra-owner__ledger th,
.ra-owner__ledger td{
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.ra-owner__ledger th{
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.ra-owner__ledger th:first-child,
.ra-owner__ledger td:first-child,
.ra-owner__ledger td[data-rw-ledger-date],
.ra-owner__ledger td[data-rw-tx-date]{
  width: 6.4rem;
  padding-left: 8px;
  padding-right: 6px;
}

.ra-owner__ledger .ra-ledger__money{
  width: 5.2rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ra-owner__ledger th[data-rw-ledger-property-col],
.ra-owner__ledger td[data-rw-ledger-property]{
  width: 18%;
}

.ra-owner__ledger th[data-rw-ledger-category-col],
.ra-owner__ledger td[data-rw-ledger-category]{
  width: 16%;
  white-space: nowrap;
}

.ra-tax-report{
  overflow-x: auto;
  width: 100%;
  margin-top: 12px;
}

.ra-tax-report table{
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.ra-tax-report th,
.ra-tax-report td{
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.ra-tax-report thead th{
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  text-align: right;
}

.ra-tax-report th:first-child,
.ra-tax-report td:first-child{
  min-width: 12rem;
  text-align: left;
  background: #fff;
}

.ra-tax-report thead th:not(:first-child){
  width: 5.25rem;
  min-width: 5.25rem;
  max-width: 5.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  vertical-align: bottom;
}

.ra-tax-report__address{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.15;
  max-height: 2.3em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ra-tax-report__toggle{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.ra-tax-report__toggle::before{
  content: "▾ ";
}

.ra-tax-report__toggle[aria-expanded="false"]::before{
  content: "▸ ";
}

#rwOwnerReportBody[data-rw-tax-closed~="income"] [data-rw-tax-section="income"][data-rw-tax-part="line"],
#rwOwnerReportBody[data-rw-tax-closed~="expenses"] [data-rw-tax-section="expenses"][data-rw-tax-part="line"]{
  display: none;
}

.ra-tax-report td.ra-tax-report__money{
  width: 5.25rem;
  min-width: 5.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ra-tax-report tr.ra-tax-report__section th,
.ra-tax-report tr.ra-tax-report__section td{
  background: #e2e8f0;
  font-weight: 700;
  color: #0f172a;
}

.ra-tax-report tr.ra-tax-report__group th,
.ra-tax-report tr.ra-tax-report__group td{
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
}

.ra-tax-report tr.ra-tax-report__sum--in th,
.ra-tax-report tr.ra-tax-report__sum--in td{
  color: #15803d;
  font-weight: 700;
}

.ra-tax-report tr.ra-tax-report__sum--out th,
.ra-tax-report tr.ra-tax-report__sum--out td{
  color: #b91c1c;
  font-weight: 700;
}

.ra-owner__ledger th[data-rw-ledger-details-col],
.ra-owner__ledger td[data-rw-ledger-details],
.ra-owner__ledger .ra-ledger__clip{
  width: auto;
}

.ra-owner__ledger tfoot td{
  font-weight: 700;
  border-bottom: 0;
}

.ra-owner__ledger th[hidden]{
  display: none;
}

.ra-owner__ledger tr[data-rw-owner-bill],
.ra-owner__ledger tr[data-rw-tenant-bill],
.ra-owner__ledger tr[data-rw-vendor-payment],
.ra-owner__ledger tr[data-rw-owner-tx],
#rwVendorLedgerHost tr[data-rw-vendor-payment]{
  cursor: pointer;
}

.ra-owner__ledger .ra-ledger__clip{
  overflow: hidden;
  max-width: 0;
}

.ra-owner__ledger .ra-ledger__clip span{
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ra-ledger__in{
  color: #15803d;
}

.ra-ledger__out{
  color: #b91c1c;
}

@media (max-width: 720px){
  .ra-mobile-back:not([hidden]){
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 52px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border: 0;
    background: #0e2948;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .ra-owner__back{
    display: none !important;
  }

  .ra-estimate-footer,
  .ra-vendor__footer{
    z-index: 60;
  }

  body:has(#rwPeopleForm:not([hidden])) #rwMobileBack,
  body:has(#rwVendorForm:not([hidden])) #rwMobileBack,
  body:has(#rwInvoiceForm:not([hidden])) #rwMobileBack{
    display: none !important;
  }

  body:has(#rwMobileBack:not([hidden])) .ra-owner__pages,
  body:has(#rwMobileBack:not([hidden])) .ra-vendor__scroll,
  body:has(#rwMobileBack:not([hidden])) .ra-portal__admin-scroll{
    padding-bottom: calc(72px + var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
  }

  body.ra-portal--owner .ra-portal__main,
  body.ra-portal--tenant .ra-portal__main,
  body.ra-portal--agent .ra-portal__main,
  body.ra-portal--vendor .ra-portal__main{
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.ra-portal--owner .ra-owner__nav,
  body.ra-portal--tenant .ra-owner__nav,
  body.ra-portal--agent .ra-owner__nav,
  body.ra-portal--vendor .ra-owner__nav{
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  body.ra-portal--owner .ra-owner__pages,
  body.ra-portal--owner #rwChatPanel,
  body.ra-portal--owner #rwActivityPanel,
  body.ra-portal--tenant .ra-owner__pages,
  body.ra-portal--tenant #rwChatPanel,
  body.ra-portal--tenant #rwActivityPanel,
  body.ra-portal--agent .ra-owner__pages,
  body.ra-portal--agent #rwChatPanel,
  body.ra-portal--agent #rwActivityPanel,
  body.ra-portal--agent.ra-portal--agent-directory #rwAdminPanel,
  body.ra-portal--agent.ra-portal--agent-directory #rwVendorPage,
  body.ra-portal--vendor .ra-owner__pages,
  body.ra-portal--vendor #rwChatPanel,
  body.ra-portal--vendor #rwActivityPanel,
  body.ra-portal--owner #rwBankAccounts:not([hidden]),
  body.ra-portal--tenant #rwBankAccounts:not([hidden]),
  body.ra-portal--agent #rwBankAccounts:not([hidden]),
  body.ra-portal--vendor #rwBankAccounts:not([hidden]){
    grid-column: 1;
    grid-row: 2;
  }

  .ra-owner__nav-btn{
    padding: 8px 6px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

@media (max-width: 1023px) and (orientation: landscape){
  body.ra-portal--owner .ra-owner__nav,
  body.ra-portal--tenant .ra-owner__nav,
  body.ra-portal--agent .ra-owner__nav,
  body.ra-portal--vendor .ra-owner__nav{
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
  }

  body.ra-portal--owner .ra-owner__nav-row,
  body.ra-portal--tenant .ra-owner__nav-row,
  body.ra-portal--agent .ra-owner__nav-row,
  body.ra-portal--vendor .ra-owner__nav-row{
    display: contents;
  }

  .ra-owner__nav-row > .ra-owner__nav-btn,
  .ra-owner__nav-row > .ra-owner__nav-group{
    flex: 1 1 auto;
    min-width: max-content;
  }

  .ra-owner__nav .ra-owner__nav-btn{
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
  }
}

#rwNewConvModal .ra-portal__card-lead,
#rwNewConvModal #rwNewConvTitleInput,
#rwNewConvModal #rwNewConvTitleInput::placeholder{
  font-size: 1.15rem;
}

@media (min-width: 1024px){
  body.ra-portal--owner,
  body.ra-portal--tenant,
  body.ra-portal--agent,
  body.ra-portal--vendor{
    --rw-side-nav: 144px;
  }

  *{
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.22) transparent;
  }

  *::-webkit-scrollbar{
    width: 3px;
    height: 3px;
  }

  *::-webkit-scrollbar-track{
    background: transparent;
  }

  *::-webkit-scrollbar-thumb{
    background: rgba(15, 23, 42, 0.22);
    border-radius: 3px;
  }

  #rwNewConvModal{
    left: var(--rw-side-nav);
    width: auto;
    padding-left: 50px;
    padding-right: 50px;
  }

  #rwNewConvModal .ra-portal__modal{
    width: 100%;
    max-width: none;
  }

  body.ra-portal--owner .ra-portal__main,
  body.ra-portal--tenant .ra-portal__main,
  body.ra-portal--agent .ra-portal__main,
  body.ra-portal--vendor .ra-portal__main{
    grid-template-columns: var(--rw-side-nav) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  body.ra-portal--owner .ra-owner__nav,
  body.ra-portal--tenant .ra-owner__nav,
  body.ra-portal--agent .ra-owner__nav,
  body.ra-portal--vendor .ra-owner__nav{
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    overflow: auto;
    flex-direction: column;
    gap: 4px;
    padding: 12px 10px;
    border-bottom: 0;
    border-right: 1px solid #061222;
    background-color: #0c2038;
    background-image: var(--rw-navy-shine);
    background-repeat: no-repeat;
    background-size: 100% var(--rw-header-h);
    background-position: top;
    color: #fff;
  }

  body.ra-portal--owner .ra-owner__nav-row,
  body.ra-portal--tenant .ra-owner__nav-row,
  body.ra-portal--agent .ra-owner__nav-row,
  body.ra-portal--vendor .ra-owner__nav-row{
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
  }

  .ra-owner__nav .ra-owner__nav-row > .ra-owner__nav-btn,
  .ra-owner__nav .ra-owner__nav-row > .ra-owner__nav-group,
  .ra-owner__nav .ra-owner__nav-group{
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .ra-owner__nav .ra-owner__nav-btn{
    width: 100%;
    padding: 8px 8px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.78rem;
    text-align: left;
    white-space: normal;
  }

  .ra-owner__nav .ra-owner__nav-btn:hover{
    background: rgba(255, 255, 255, 0.1);
  }

  .ra-owner__nav .ra-owner__nav-btn.is-active{
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
  }

  .ra-owner__nav .ra-owner__nav-sub,
  .ra-owner__nav .ra-owner__nav-sub.is-modal{
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    margin: 0;
    padding: 0 0 4px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ra-owner__nav .ra-owner__nav-btn--sub{
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.7rem;
  }

  body.ra-portal--owner .ra-owner__pages,
  body.ra-portal--owner #rwChatPanel,
  body.ra-portal--owner #rwActivityPanel,
  body.ra-portal--tenant .ra-owner__pages,
  body.ra-portal--tenant #rwChatPanel,
  body.ra-portal--tenant #rwActivityPanel,
  body.ra-portal--agent .ra-owner__pages,
  body.ra-portal--agent #rwChatPanel,
  body.ra-portal--agent #rwActivityPanel,
  body.ra-portal--agent.ra-portal--agent-directory #rwAdminPanel,
  body.ra-portal--agent.ra-portal--agent-directory #rwVendorPage,
  body.ra-portal--vendor .ra-owner__pages,
  body.ra-portal--vendor #rwChatPanel,
  body.ra-portal--vendor #rwActivityPanel,
  body.ra-portal--owner #rwBankAccounts:not([hidden]),
  body.ra-portal--tenant #rwBankAccounts:not([hidden]),
  body.ra-portal--agent #rwBankAccounts:not([hidden]),
  body.ra-portal--vendor #rwBankAccounts:not([hidden]){
    grid-column: 2;
    grid-row: 1;
  }

  #rwBankAccounts:not([hidden]){
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    column-gap: 32px;
    padding: 24px calc(52px + env(safe-area-inset-right, 0px)) calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px)) calc(52px + env(safe-area-inset-left, 0px));
    max-width: none;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #e2e8f0;
    color: #0f172a;
  }

  body:has(#rwBankForm:not([hidden])) #rwBankAccounts:not([hidden]){
    padding-bottom: calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
  }

  #rwBankAccounts[hidden]{
    display: none !important;
  }

  #rwBankAccounts > #rwBankList{
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: none;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  #rwBankAccounts > #rwBankForm:not([hidden]){
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
  }

  #rwBankAccounts .ra-people__rows{
    width: 100%;
    max-width: none;
  }

  #rwBankAccounts .ra-estimate-footer{
    position: sticky;
    bottom: 0;
    left: auto;
    right: auto;
    width: 100%;
    margin-top: auto;
    z-index: 2;
    display: flex !important;
  }

  .ra-owner__title,
  .ra-people__bar h2,
  .ra-people__bar h2.ra-owner__title{
    font-size: 2rem;
  }

  .ra-dash,
  .ra-dash-recent{
    width: 50%;
    margin-inline: auto;
  }

  .ra-people{
    max-width: 432px;
  }

  .ra-owner__list,
  .ra-people__rows,
  .ra-vendor__rows,
  body.ra-portal--owner #rwChatPanel .ra-portal__idle-home,
  body.ra-portal--tenant #rwChatPanel .ra-portal__idle-home,
  body.ra-portal--agent #rwChatPanel .ra-portal__idle-home,
  body.ra-portal--vendor #rwChatPanel .ra-portal__idle-home{
    width: min(432px, 100%);
    max-width: 432px;
    margin-inline: 0;
  }

  .ra-owner__list,
  .ra-people__rows,
  .ra-vendor__rows{
    gap: 0;
    border: 0;
    background: transparent;
    align-content: start;
  }

  .ra-people__rows{
    justify-content: flex-start;
  }

  .ra-owner__list,
  .ra-vendor__rows{
    justify-content: stretch;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
  }

  body.ra-portal--owner #rwChatPanel .ra-portal__idle-list,
  body.ra-portal--tenant #rwChatPanel .ra-portal__idle-list,
  body.ra-portal--agent #rwChatPanel .ra-portal__idle-list,
  body.ra-portal--vendor #rwChatPanel .ra-portal__idle-list{
    gap: 0;
    border: 0;
    background: transparent;
    align-content: start;
    justify-content: flex-start;
  }

  body.ra-portal--owner #rwChatPanel .ra-portal__idle-row,
  body.ra-portal--tenant #rwChatPanel .ra-portal__idle-row,
  body.ra-portal--agent #rwChatPanel .ra-portal__idle-row,
  body.ra-portal--vendor #rwChatPanel .ra-portal__idle-row{
    gap: 0;
    width: 100%;
    max-width: none;
  }

  body.ra-portal--owner #rwChatPanel .ra-portal__idle-actions,
  body.ra-portal--tenant #rwChatPanel .ra-portal__idle-actions,
  body.ra-portal--agent #rwChatPanel .ra-portal__idle-actions,
  body.ra-portal--vendor #rwChatPanel .ra-portal__idle-actions{
    display: none;
  }

  .ra-people__row,
  .ra-owner__property,
  .ra-vendor__row,
  body.ra-portal--owner #rwChatPanel .ra-portal__idle-item,
  body.ra-portal--tenant #rwChatPanel .ra-portal__idle-item,
  body.ra-portal--agent #rwChatPanel .ra-portal__idle-item,
  body.ra-portal--vendor #rwChatPanel .ra-portal__idle-item{
    border-radius: 0;
    box-shadow: none;
  }

  .ra-people__row,
  .ra-owner__property,
  .ra-vendor__row,
  body.ra-portal--owner #rwChatPanel .ra-portal__idle-item,
  body.ra-portal--tenant #rwChatPanel .ra-portal__idle-item,
  body.ra-portal--agent #rwChatPanel .ra-portal__idle-item,
  body.ra-portal--vendor #rwChatPanel .ra-portal__idle-item{
    border-right: 0;
    border-left: 0;
    border-top: 0;
    border-bottom: 1px solid #94a3b8;
  }

  .ra-people__line,
  .ra-owner__property,
  .ra-vendor__row,
  body.ra-portal--owner #rwChatPanel .ra-portal__idle-row,
  body.ra-portal--tenant #rwChatPanel .ra-portal__idle-row,
  body.ra-portal--agent #rwChatPanel .ra-portal__idle-row,
  body.ra-portal--vendor #rwChatPanel .ra-portal__idle-row{
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }

  .ra-people__row.is-selected,
  .ra-owner__property.is-selected,
  .ra-vendor__row.is-selected{
    background: #dbeafe;
    box-shadow: inset 4px 0 0 #1a406c;
  }

  [data-rw-owner-page="properties"],
  [data-rw-owner-page="estimates"],
  [data-rw-tenant-page="leases"],
  [data-rw-tenant-page="conversations"],
  [data-rw-agent-page="properties"],
  [data-rw-agent-page="owners"],
  [data-rw-agent-page="tenants"],
  [data-rw-agent-page="estimates"],
  [data-rw-agent-page="invoices"],
  [data-rw-agent-page="owner-invoices"],
  [data-rw-agent-page="vendors"],
  [data-rw-vendor-page="estimates"],
  [data-rw-vendor-page="invoices"]{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    column-gap: 32px;
    padding-left: 32px;
    padding-right: 32px;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  [data-rw-tenant-page="leases"] > #rwTenantLeaseListView,
  [data-rw-tenant-page="conversations"] > #rwTenantConvList{
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  [data-rw-tenant-page="leases"] .ra-people__rows,
  [data-rw-tenant-page="conversations"] .ra-people__rows{
    width: 100%;
    max-width: none;
  }

  [data-rw-owner-page="properties"] .ra-owner__list,
  [data-rw-owner-page="estimates"] .ra-owner__list,
  [data-rw-agent-page="properties"] .ra-owner__list,
  [data-rw-agent-page="owners"] .ra-owner__list,
  [data-rw-agent-page="tenants"] .ra-owner__list,
  [data-rw-agent-page="estimates"] .ra-owner__list,
  [data-rw-agent-page="invoices"] .ra-owner__list,
  [data-rw-agent-page="owner-invoices"] .ra-owner__list,
  [data-rw-agent-page="vendors"] .ra-owner__list,
  [data-rw-vendor-page="estimates"] .ra-owner__list,
  [data-rw-vendor-page="invoices"] .ra-owner__list{
    width: 100%;
    max-width: none;
  }

  [data-rw-agent-page="vendors"] > h2,
  [data-rw-agent-page="vendors"] > #rwAgentVendorList{
    grid-column: 1;
  }

  [data-rw-agent-page="vendors"] > #rwAgentVendorPick{
    grid-column: 2;
    grid-row: 1 / span 8;
  }

  .ra-owner__page:has(#rwOwnerPropertyDetail:not([hidden])),
  .ra-owner__page:has(#rwOwnerEstimateDetail:not([hidden])),
  .ra-owner__page:has(#rwAgentPropertyDetail:not([hidden])),
  .ra-owner__page:has(#rwAgentOwnerDetail:not([hidden])),
  .ra-owner__page:has(#rwAgentTenantDetail:not([hidden])),
  .ra-owner__page:has(#rwAgentEstimateForm:not([hidden])),
  .ra-owner__page:has(#rwAgentEstimateDetail:not([hidden])),
  .ra-owner__page:has(#rwAgentEstimateLinePage:not([hidden])),
  .ra-owner__page:has(#rwAgentInvoiceDetail:not([hidden])),
  .ra-owner__page:has(#rwAgentInvoiceEstimatePick:not([hidden])),
  .ra-owner__page:has(#rwAgentInvoicePayPage:not([hidden])),
  .ra-owner__page:has(#rwAgentOwnerInvoiceForm:not([hidden])),
  .ra-owner__page:has(#rwAgentOwnerInvoiceDetail:not([hidden])),
  .ra-owner__page:has(#rwAgentOwnerInvoiceLinePage:not([hidden])),
  .ra-owner__page:has(#rwAgentOwnerInvoiceEstimatePick:not([hidden])),
  .ra-owner__page:has(#rwVendorEstimateForm:not([hidden])),
  .ra-owner__page:has(#rwVendorEstimateDetail:not([hidden])),
  .ra-owner__page:has(#rwVendorEstimateLinePage:not([hidden])),
  .ra-owner__page:has(#rwVendorInvoiceForm:not([hidden])),
  .ra-owner__page:has(#rwVendorInvoiceDetail:not([hidden])),
  .ra-owner__page:has(#rwVendorInvoiceLinePage:not([hidden])),
  .ra-owner__page:has(#rwVendorInvoiceEstimatePick:not([hidden])){
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    column-gap: 32px;
    padding-left: 32px;
    padding-right: 32px;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .ra-owner__page:has(#rwOwnerPropertyDetail:not([hidden])) #rwOwnerPropertyListView,
  .ra-owner__page:has(#rwOwnerEstimateDetail:not([hidden])) #rwOwnerEstimateListPane,
  .ra-owner__page:has(#rwAgentPropertyDetail:not([hidden])) #rwAgentPropertyListView,
  .ra-owner__page:has(#rwAgentOwnerDetail:not([hidden])) #rwAgentOwnerListView,
  .ra-owner__page:has(#rwAgentTenantDetail:not([hidden])) #rwAgentTenantListView,
  .ra-owner__page:has(#rwAgentEstimateForm:not([hidden])) #rwAgentEstimateListPane,
  .ra-owner__page:has(#rwAgentEstimateDetail:not([hidden])) #rwAgentEstimateListPane,
  .ra-owner__page:has(#rwAgentEstimateLinePage:not([hidden])) #rwAgentEstimateListPane,
  .ra-owner__page:has(#rwAgentInvoiceDetail:not([hidden])) #rwAgentInvoiceListView,
  .ra-owner__page:has(#rwAgentInvoiceEstimatePick:not([hidden])) #rwAgentInvoiceListView,
  .ra-owner__page:has(#rwAgentInvoicePayPage:not([hidden])) #rwAgentInvoiceListView,
  .ra-owner__page:has(#rwAgentOwnerInvoiceForm:not([hidden])) #rwAgentOwnerInvoiceListPane,
  .ra-owner__page:has(#rwAgentOwnerInvoiceDetail:not([hidden])) #rwAgentOwnerInvoiceListPane,
  .ra-owner__page:has(#rwAgentOwnerInvoiceLinePage:not([hidden])) #rwAgentOwnerInvoiceListPane,
  .ra-owner__page:has(#rwAgentOwnerInvoiceEstimatePick:not([hidden])) #rwAgentOwnerInvoiceListPane,
  .ra-owner__page:has(#rwVendorEstimateForm:not([hidden])) #rwVendorEstimateListPane,
  .ra-owner__page:has(#rwVendorEstimateDetail:not([hidden])) #rwVendorEstimateListPane,
  .ra-owner__page:has(#rwVendorEstimateLinePage:not([hidden])) #rwVendorEstimateListPane,
  .ra-owner__page:has(#rwVendorInvoiceForm:not([hidden])) #rwVendorInvoiceListPane,
  .ra-owner__page:has(#rwVendorInvoiceDetail:not([hidden])) #rwVendorInvoiceListPane,
  .ra-owner__page:has(#rwVendorInvoiceLinePage:not([hidden])) #rwVendorInvoiceListPane,
  .ra-owner__page:has(#rwVendorInvoiceEstimatePick:not([hidden])) #rwVendorInvoiceListPane{
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: auto;
    max-height: 100%;
    overflow: hidden;
    grid-column: 1;
    grid-row: 1;
  }

  .ra-owner__page:has(#rwOwnerPropertyDetail:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwOwnerEstimateDetail:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentPropertyDetail:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentOwnerDetail:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentTenantDetail:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentEstimateForm:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentEstimateDetail:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentEstimateLinePage:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentInvoiceDetail:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentInvoiceEstimatePick:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentInvoicePayPage:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentOwnerInvoiceForm:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentOwnerInvoiceDetail:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentOwnerInvoiceLinePage:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwAgentOwnerInvoiceEstimatePick:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwVendorEstimateForm:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwVendorEstimateDetail:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwVendorEstimateLinePage:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwVendorInvoiceForm:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwVendorInvoiceDetail:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwVendorInvoiceLinePage:not([hidden])) > :not([hidden]),
  .ra-owner__page:has(#rwVendorInvoiceEstimatePick:not([hidden])) > :not([hidden]){
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    max-width: none;
    width: auto;
    min-width: 0;
    max-height: 100%;
    overflow: auto;
    grid-row: 1;
  }

  [data-rw-owner-page="properties"] > #rwOwnerPropertyDetail,
  [data-rw-owner-page="estimates"] > #rwOwnerEstimateDetail,
  [data-rw-agent-page="properties"] > #rwAgentPropertyDetail,
  [data-rw-agent-page="owners"] > #rwAgentOwnerDetail,
  [data-rw-agent-page="tenants"] > #rwAgentTenantDetail,
  [data-rw-agent-page="estimates"] > #rwAgentEstimateForm,
  [data-rw-agent-page="estimates"] > #rwAgentEstimateDetail,
  [data-rw-agent-page="estimates"] > #rwAgentEstimateLinePage,
  [data-rw-agent-page="invoices"] > :not(#rwAgentInvoiceListView),
  [data-rw-agent-page="owner-invoices"] > :not(#rwAgentOwnerInvoiceListPane),
  [data-rw-vendor-page="estimates"] > :not(#rwVendorEstimateListPane),
  [data-rw-vendor-page="invoices"] > :not(#rwVendorInvoiceListPane){
    grid-column: 2;
    grid-row: 1;
  }

  #rwPeople > #rwPeopleList{
    grid-column: 1;
    grid-row: 1;
  }

  #rwPeople > #rwOwnerDetail,
  #rwPeople > #rwTenantLeases,
  #rwPeople > #rwPeopleForm,
  #rwPeople > #rwPropertyForm{
    grid-column: 2;
    grid-row: 1;
  }

  [data-rw-agent-page="vendors"]:has(#rwAgentVendorPick:not([hidden])){
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    padding-left: 32px;
    padding-right: 32px;
    align-items: start;
    justify-content: stretch;
  }

  [data-rw-agent-page="vendors"]:has(#rwAgentVendorPick:not([hidden])) > h2{
    grid-column: 1;
  }

  [data-rw-vendor-page="ledger"]{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding-left: 32px;
    padding-right: 32px;
  }

  [data-rw-vendor-page="ledger"] > .ra-owner__title,
  [data-rw-vendor-page="ledger"] > .ra-invoice-toolbar,
  [data-rw-vendor-page="ledger"] > #rwVendorLedgerHost,
  [data-rw-vendor-page="ledger"] > .ra-owner__ledger{
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  [data-rw-vendor-page="ledger"] > #rwVendorLedgerHost{
    overflow-x: auto;
    overflow-y: auto;
  }

  [data-rw-vendor-page="ledger"] #rwVendorLedgerHost > table.ra-invoice-grid{
    width: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 0;
    table-layout: fixed;
  }

  [data-rw-vendor-page="ledger"] > #rwVendorLedgerDetail:not([hidden]){
    width: min(720px, 100%);
    margin: 12px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  [data-rw-vendor-page="ledger"] > #rwVendorLedgerDetail:not([hidden]) .ra-owner__back{
    display: block;
    width: fit-content;
    margin: 16px auto 0;
    padding: 10px 18px;
    border-radius: 10px;
    background: #0e2948;
    color: #fff;
  }

  [data-rw-owner-page="ledger"] > .ra-owner__ledger{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #rwOwnerLedgerFilters,
  #rwOwnerReportFilters{
    flex-wrap: nowrap;
  }

  #rwOwnerLedgerCustom,
  #rwOwnerReportCustom{
    flex: 1.6 1 0;
  }

  [data-rw-owner-page="ledger"] > #rwOwnerLedgerInvoice:not([hidden]){
    width: min(720px, 100%);
    margin: 12px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  [data-rw-owner-page="ledger"] > [data-rw-owner-bill-back]:not([hidden]){
    display: block;
    width: fit-content;
    margin: 16px auto 0;
    padding: 10px 18px;
    border-radius: 10px;
    background: #0e2948;
    color: #fff;
  }

  [data-rw-agent-page="owner-transactions"] > .ra-owner__ledger{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  [data-rw-agent-page="owner-transactions"] > #rwOwnerTxDetail:not([hidden]){
    width: min(720px, 100%);
    margin: 12px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  [data-rw-agent-page="owner-transactions"] > #rwOwnerTxDetail:not([hidden]) .ra-owner__back{
    display: block;
    width: fit-content;
    margin: 16px auto 0;
    padding: 10px 18px;
    border-radius: 10px;
    background: #0e2948;
    color: #fff;
  }

  #rwPeople:not([hidden]),
  #rwPeople:not([hidden]):has(#rwOwnerDetail:not([hidden])),
  #rwPeople:not([hidden]):has(#rwTenantLeases:not([hidden])),
  #rwPeople:not([hidden]):has(#rwPeopleForm:not([hidden])),
  #rwPeople:not([hidden]):has(#rwPropertyForm:not([hidden])){
    display: contents;
  }

  #rwPeople[hidden]{
    display: none !important;
  }

  body.ra-portal--agent .ra-owner__pages:has(.ra-owner__page:not([hidden]).ra-people-on){
    overflow: hidden;
  }

  .ra-owner__page.ra-people-on:not([hidden]){
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  #rwPeople > .ra-people__gap{
    display: none;
  }

  #rwPeople > #rwPeopleList,
  #rwPeople > #rwOwnerDetail,
  #rwPeople > #rwTenantLeases,
  #rwPeople > #rwPeopleForm,
  #rwPeople > #rwPropertyForm{
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    max-height: 100%;
  }

  #rwPeople > #rwPeopleList{
    overflow: hidden;
  }

  #rwPeople > #rwOwnerDetail,
  #rwPeople > #rwTenantLeases,
  #rwPeople > #rwPeopleForm,
  #rwPeople > #rwPropertyForm{
    overflow: auto;
  }

  #rwPeople .ra-people__rows{
    width: 100%;
    max-width: none;
  }

  #rwPeople:not([hidden]):has(#rwOwnerDetail:not([hidden])) > #rwPeopleList,
  #rwPeople:not([hidden]):has(#rwOwnerDetail:not([hidden])) > #rwOwnerDetail,
  #rwPeople:not([hidden]):has(#rwTenantLeases:not([hidden])) > #rwPeopleList,
  #rwPeople:not([hidden]):has(#rwTenantLeases:not([hidden])) > #rwTenantLeases,
  #rwPeople:not([hidden]):has(#rwPeopleForm:not([hidden])) > #rwPeopleList,
  #rwPeople:not([hidden]):has(#rwPeopleForm:not([hidden])) > #rwPeopleForm,
  #rwPeople:not([hidden]):has(#rwPropertyForm:not([hidden])) > #rwPeopleList,
  #rwPeople:not([hidden]):has(#rwPropertyForm:not([hidden])) > #rwPropertyForm{
    max-width: none;
    width: 100%;
  }

  #rwPeople > #rwOwnerDetail,
  #rwPeople > #rwTenantLeases,
  #rwPeople > #rwPeopleForm,
  #rwPeople > #rwPropertyForm{
    margin-left: 0;
  }

  .ra-owner__page:not([hidden]) #rwPeople:not([hidden]):has(#rwOwnerDetail:not([hidden])) #rwPeopleList,
  .ra-owner__page:not([hidden]) #rwPeople:not([hidden]):has(#rwPeopleForm:not([hidden])) #rwPeopleList,
  .ra-owner__page:not([hidden]) #rwPeople:not([hidden]):has(#rwTenantLeases:not([hidden])) #rwPeopleList,
  .ra-owner__page:not([hidden]) #rwPeople:not([hidden]):has(#rwPropertyForm:not([hidden])) #rwPeopleList{
    display: flex !important;
    flex-direction: column;
  }

  .ra-owner__page:not([hidden]) #rwPeople:not([hidden]):has(#rwPropertyForm:not([hidden])) #rwOwnerDetail{
    display: none !important;
  }

  .ra-owner__page:not([hidden]) #rwPeople:not([hidden]):has(#rwPropertyForm:not([hidden])) #rwPropertyForm{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    align-items: center;
    column-gap: 8px;
  }

  #rwAgentPropertyHeading,
  #rwOwnerPropertyAddress,
  #rwTenantLeasesName,
  #rwOwnerDetailName,
  #rwPropertyTitle,
  #rwPeopleFormTitle,
  #rwTenantRentalsTitle,
  #rwBankFormTitle{
    font-size: 1.15rem;
    font-weight: 600;
  }

  #rwAgentPropertyDetail > .ra-owner__back,
  #rwOwnerPropertyDetail > .ra-owner__back,
  #rwAgentOwnerDetail > .ra-owner__back,
  #rwOwnerDetail > .ra-owner__back{
    display: none;
  }

  .ra-owner__pages .ra-estimate-footer{
    position: sticky;
    bottom: 0;
    left: auto;
    right: auto;
    width: 100%;
    margin-top: auto;
    z-index: 2;
  }

  body:has([data-rw-agent-page="invoices"]:not([hidden]) #rwAgentInvoiceListView:not([hidden])) .ra-owner__pages,
  body:has(.ra-estimate-card:not([hidden]) .ra-estimate-footer:not([hidden])) .ra-owner__pages,
  body:has(#rwOwnerEstimateDetail:not([hidden]) .ra-estimate-footer:not([hidden])) .ra-owner__pages,
  body:has(#rwOwnerDetailFooter:not([hidden])) .ra-owner__pages,
  body:has(#rwTenantLeasesFooter:not([hidden])) .ra-owner__pages,
  body:has(#rwPeopleForm:not([hidden])) .ra-owner__pages{
    padding-bottom: calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
  }

  #rwOwnerDetail:not([hidden]),
  #rwTenantLeases:not([hidden]),
  #rwPeopleForm:not([hidden]){
    display: flex;
    flex-direction: column;
  }

  #rwOwnerDetail,
  #rwTenantLeases{
    position: relative;
  }

  #rwOwnerDetail > .ra-people__bar h2{
    margin-right: 0;
  }

  #rwTenantLeases > .ra-people__bar h2{
    margin-right: 48px;
  }

  #rwOwnerDetailFooter,
  #rwTenantLeasesFooter{
    position: absolute;
    top: 0;
    right: 44px;
    bottom: auto;
    left: auto;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    z-index: 3;
  }

  #rwTenantLeasesFooter{
    right: 0;
  }

  #rwTenantLeasesEdit{
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #0e2948;
    color: #fff;
    box-shadow: none;
    font-size: 0;
    line-height: 1;
  }

  #rwTenantLeasesEdit::before{
    content: "···";
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
  }

  .ra-owner__pages .ra-estimate-footer{
    display: none !important;
  }

  #rwOwnerDetailFooter:not([hidden]),
  #rwTenantLeasesFooter:not([hidden]),
  .ra-owner__pages .ra-estimate-footer:has(#rwPeopleSave, #rwOwnerEstimateApprove, #rwOwnerEstimateReject, #rwAgentEstimateLineSave, #rwAgentInvoicePay, #rwAgentInvoiceBatch, #rwAgentOwnerInvoicePost, #rwAgentOwnerInvoiceLineSave, #rwVendorEstimateStart, #rwVendorEstimateLineSave, #rwVendorInvoiceLineSave){
    display: flex !important;
  }

  [data-rw-delete-toggle],
  #rwPeopleDelete,
  #rwAgentEstimateDelete{
    display: none !important;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread .ra-portal__chat-main,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread .ra-portal__chat-main,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread .ra-portal__chat-main,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread .ra-portal__chat-main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    padding: 12px 0 0;
    position: relative;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread #rwIdlePanel,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread #rwIdlePanel,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwIdlePanel,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread #rwIdlePanel{
    display: none !important;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread #rwConversationBox,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread #rwConversationBox,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwConversationBox,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread #rwConversationBox{
    flex: 1 1 auto;
    width: calc(100% - 280px);
    min-width: 0;
    max-width: none;
    min-height: 0;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread #rwChatFooter,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread #rwChatFooter,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwChatFooter,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread #rwChatFooter{
    width: calc(100% - 280px);
    max-width: none;
    flex: 0 0 auto;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread{
    position: relative;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread #rwConversationBox,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread #rwConversationBox,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwConversationBox,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread #rwConversationBox{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    box-shadow: none;
    overflow: hidden;
    margin: 0;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread #rwChatFooter,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread #rwChatFooter,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwChatFooter,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread #rwChatFooter{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 8px 12px 12px;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread #rwChatScroll,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread #rwChatScroll,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwChatScroll,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread #rwChatScroll{
    background: #fff;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread:has(#rwAddVendorBtn:not([hidden])) .ra-portal__chat-title-bar,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread:has(#rwAddVendorBtn:not([hidden])) .ra-portal__chat-title-bar,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread:has(#rwAddVendorBtn:not([hidden])) .ra-portal__chat-title-bar,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread:has(#rwAddVendorBtn:not([hidden])) .ra-portal__chat-title-bar{
    padding-left: 108px;
    padding-right: 108px;
  }

  #rwChatPanel.ra-portal__chat--thread #rwChatBackFooter:not([hidden]){
    display: flex !important;
    position: static;
    justify-content: center;
    align-self: center;
    width: calc(100% - 280px);
    min-height: 0;
    margin: 12px auto 12px;
    padding: 0;
    background: transparent;
    z-index: 6;
  }

  #rwChatPanel.ra-portal__chat--thread #rwChatBackBtn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: #0e2948;
    color: #fff;
    box-shadow: none;
    font-weight: 700;
  }

  #rwChatPanel.ra-portal__chat--thread #rwAddVendorBtn[hidden],
  #rwChatPanel.ra-portal__chat--thread #rwChatCloseBtn[hidden]{
    display: none !important;
  }

  #rwChatPanel.ra-portal__chat--thread #rwAddVendorBtn,
  #rwChatPanel.ra-portal__chat--thread #rwChatCloseBtn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.7rem;
    height: 2.7rem;
    min-height: 2.7rem;
    padding: 6px 8px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--rw-accent), var(--rw-accent-dark));
    color: #fff;
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  #rwChatPanel.ra-portal__chat--thread #rwAddVendorBtn{
    position: absolute;
    top: 20px;
    right: calc(140px + 16px);
  }

  #rwChatPanel.ra-portal__chat--thread .ra-portal__chat-title-bar{
    position: relative;
    min-height: 3.5rem;
    box-sizing: border-box;
  }

  #rwChatPanel.ra-portal__chat--thread:has(#rwChatCloseBtn:not([hidden])) .ra-portal__chat-title-bar{
    padding-left: 6.2rem;
  }

  #rwChatPanel.ra-portal__chat--thread #rwChatCloseBtn{
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread .ra-portal__idle-home,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread .ra-portal__idle-home,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread .ra-portal__idle-home,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread .ra-portal__idle-home{
    width: 100%;
    max-width: none;
  }

  body.ra-portal--owner #rwChatPanel:not(.ra-portal__chat--thread),
  body.ra-portal--tenant #rwChatPanel:not(.ra-portal__chat--thread),
  body.ra-portal--agent #rwChatPanel:not(.ra-portal__chat--thread),
  body.ra-portal--vendor #rwChatPanel:not(.ra-portal__chat--thread){
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 32px;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding-top: 24px;
    padding-bottom: calc(var(--ra-page-end) + env(safe-area-inset-bottom, 0px));
    padding-left: calc(20px + 32px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + 32px + env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    scrollbar-gutter: stable;
    overflow-x: hidden;
  }

  body.ra-portal--owner #rwChatPanel:not(.ra-portal__chat--thread) #rwChatFooter,
  body.ra-portal--tenant #rwChatPanel:not(.ra-portal__chat--thread) #rwChatFooter,
  body.ra-portal--agent #rwChatPanel:not(.ra-portal__chat--thread) #rwChatFooter,
  body.ra-portal--vendor #rwChatPanel:not(.ra-portal__chat--thread) #rwChatFooter{
    display: none;
  }

  body.ra-portal--owner #rwChatPanel:not(.ra-portal__chat--thread) #rwChatMain,
  body.ra-portal--tenant #rwChatPanel:not(.ra-portal__chat--thread) #rwChatMain,
  body.ra-portal--agent #rwChatPanel:not(.ra-portal__chat--thread) #rwChatMain,
  body.ra-portal--vendor #rwChatPanel:not(.ra-portal__chat--thread) #rwChatMain{
    display: contents;
  }

  body.ra-portal--owner #rwChatPanel:not(.ra-portal__chat--thread) #rwIdlePanel,
  body.ra-portal--tenant #rwChatPanel:not(.ra-portal__chat--thread) #rwIdlePanel,
  body.ra-portal--agent #rwChatPanel:not(.ra-portal__chat--thread) #rwIdlePanel,
  body.ra-portal--vendor #rwChatPanel:not(.ra-portal__chat--thread) #rwIdlePanel{
    grid-column: 1;
    grid-row: 1;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.ra-portal--owner #rwChatPanel:not(.ra-portal__chat--thread) .ra-portal__idle-home,
  body.ra-portal--tenant #rwChatPanel:not(.ra-portal__chat--thread) .ra-portal__idle-home,
  body.ra-portal--agent #rwChatPanel:not(.ra-portal__chat--thread) .ra-portal__idle-home,
  body.ra-portal--vendor #rwChatPanel:not(.ra-portal__chat--thread) .ra-portal__idle-home{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
  }

  body.ra-portal--owner #rwChatPanel .ra-portal__idle-list,
  body.ra-portal--tenant #rwChatPanel .ra-portal__idle-list,
  body.ra-portal--agent #rwChatPanel .ra-portal__idle-list,
  body.ra-portal--vendor #rwChatPanel .ra-portal__idle-list{
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    align-self: stretch;
    overflow-y: auto;
    padding-bottom: 0;
  }

  body.ra-portal--owner #rwChatPanel .ra-portal__idle-item,
  body.ra-portal--tenant #rwChatPanel .ra-portal__idle-item,
  body.ra-portal--agent #rwChatPanel .ra-portal__idle-item,
  body.ra-portal--vendor #rwChatPanel .ra-portal__idle-item{
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: auto;
    box-sizing: border-box;
  }

  #rwOwnerPropertyListView,
  #rwOwnerEstimateListPane,
  #rwAgentPropertyListView,
  #rwAgentOwnerListView,
  #rwAgentTenantListView,
  #rwAgentEstimateListPane,
  #rwAgentInvoiceListView,
  #rwAgentOwnerInvoiceListPane,
  #rwVendorEstimateListPane,
  #rwVendorInvoiceListPane,
  #rwPeopleList,
  #rwOwnerDetail,
  #rwTenantLeases,
  #rwTenantLeaseListView,
  #rwTenantConvList,
  #rwIdlePanel{
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  .ra-tax-report thead th:not(:first-child),
  .ra-tax-report td.ra-tax-report__money{
    width: 12rem;
    min-width: 12rem;
    max-width: 12rem;
    text-align: center;
  }

  .ra-tax-report thead th:not(:first-child){
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .ra-tax-report th:first-child,
  .ra-tax-report td:first-child{
    padding-right: 2px;
  }

  .ra-tax-report thead th:nth-child(2),
  .ra-tax-report td:nth-child(2){
    padding-left: 2px;
  }

  .ra-tax-report__address{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    text-align: center;
    line-height: 1.2;
    max-height: 2.4em;
  }

  .ra-people__rows,
  .ra-portal__idle-list{
    justify-content: flex-start;
  }

  .ra-owner__list,
  .ra-vendor__rows{
    justify-content: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .ra-owner__list,
  .ra-people__rows,
  .ra-vendor__rows,
  .ra-portal__idle-list{
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
    scrollbar-gutter: auto;
  }

  .ra-owner__list::-webkit-scrollbar,
  .ra-people__rows::-webkit-scrollbar,
  .ra-vendor__rows::-webkit-scrollbar,
  .ra-portal__idle-list::-webkit-scrollbar,
  #rwOwnerPropertyListView::-webkit-scrollbar,
  #rwOwnerEstimateListPane::-webkit-scrollbar,
  #rwAgentPropertyListView::-webkit-scrollbar,
  #rwAgentOwnerListView::-webkit-scrollbar,
  #rwAgentTenantListView::-webkit-scrollbar,
  #rwAgentEstimateListPane::-webkit-scrollbar,
  #rwAgentInvoiceListView::-webkit-scrollbar,
  #rwAgentOwnerInvoiceListPane::-webkit-scrollbar,
  #rwVendorEstimateListPane::-webkit-scrollbar,
  #rwVendorInvoiceListPane::-webkit-scrollbar,
  #rwPeopleList::-webkit-scrollbar,
  #rwOwnerDetail::-webkit-scrollbar,
  #rwTenantLeases::-webkit-scrollbar,
  #rwIdlePanel::-webkit-scrollbar{
    width: 2px;
    height: 2px;
    background: transparent;
  }
}

.ra-stripe-form{
  display: grid;
  gap: 10px;
  margin: 12px 0 4px;
  max-width: 420px;
}
.ra-stripe-form label{
  display: grid;
  gap: 4px;
}
.ra-stripe-form input,
.ra-stripe-form select{
  font: inherit;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.ra-stripe-row{
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}
.ra-stripe-id{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

@media (min-width: 1024px){
  [data-rw-agent-page="email-invoices"]:has(#rwEmailInvoiceForm:not([hidden])),
  [data-rw-agent-page="email-invoices"]:has(#rwEmailInvoiceLinePage:not([hidden])){
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    column-gap: 32px;
    padding-left: 32px;
    padding-right: 32px;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  [data-rw-agent-page="email-invoices"]:has(#rwEmailInvoiceForm:not([hidden])) #rwEmailInvoiceListPane,
  [data-rw-agent-page="email-invoices"]:has(#rwEmailInvoiceLinePage:not([hidden])) #rwEmailInvoiceListPane{
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    max-width: none;
    width: auto;
    max-height: 100%;
    overflow: auto;
    grid-column: 1;
    grid-row: 1;
  }

  [data-rw-agent-page="email-invoices"] > #rwEmailInvoiceForm:not([hidden]),
  [data-rw-agent-page="email-invoices"] > #rwEmailInvoiceLinePage:not([hidden]){
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    height: 100%;
    overflow: auto;
  }

  .ra-owner__pages .ra-estimate-footer:has(#rwEmailInvoiceLineSave){
    display: flex !important;
    position: static;
    width: auto;
    margin: 16px 16px 0;
    left: auto;
    right: auto;
    bottom: auto;
  }
}

#rwAgentInvoiceBatchTop,
#rwAgentInvoiceBatchApprove,
#rwAgentInvoiceDrafts,
.ra-invoice-filter__label{
  display: none;
}

.ra-invoice-tool{
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--rw-navy-shine);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ra-invoice-mini{
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.ra-invoice-mini.is-on{
  box-shadow: inset 0 0 0 2px #fff;
}

.ra-invoice-grid{
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: #fff;
  border: 1px solid #e4ebf2;
}

.ra-invoice-grid th{
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  padding: 4px 8px;
  border: 1px solid #e4ebf2;
  white-space: nowrap;
}

.ra-invoice-grid td{
  padding: 4px 10px;
  border: 1px solid #e4ebf2;
  vertical-align: middle;
  line-height: 1.25;
}

.ra-invoice-grid .ra-status-chip{
  margin-left: 0;
}

.ra-invoice-grid .ra-invoice-money{
  text-align: center;
  white-space: nowrap;
}

.ra-invoice-money--short{
  color: #b91c1c;
  font-weight: 700;
}

.ra-invoice-money--full{
  color: #15803d;
  font-weight: 700;
}

.ra-invoice-grid .ra-inv-check{
  width: 22px;
  max-width: 22px;
  padding: 4px 3px;
  box-sizing: border-box;
  text-align: center;
}

.ra-invoice-file-col,
.ra-invoice-grid .ra-inv-file{
  width: 36px;
  max-width: 36px;
  padding: 4px 2px;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.ra-invoice-files{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0;
}

.ra-invoice-grid .ra-invoice-file,
.ra-invoice-grid .ra-invoice-download{
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.ra-invoice-files svg{
  width: 14px;
  height: 14px;
}

.ra-invoice-grid td.ra-inv-file,
.ra-invoice-grid th.ra-inv-file{
  padding: 2px;
  text-align: center;
}

.ra-invoice-download{
  display: inline-grid;
  place-items: center;
  margin-left: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #0e2948;
  cursor: pointer;
  vertical-align: middle;
}

.ra-invoice-grid--draft .ra-inv-file{
  width: 36px;
  max-width: 36px;
}

.ra-invoice-grid--draft .ra-inv-x{
  width: 22px;
  max-width: 22px;
  text-align: center;
  padding: 2px 0;
}

.ra-invoice-row-x{
  border: 0;
  background: transparent;
  color: #b91c1c;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  width: 18px;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 1024px){
  body.ra-portal--agent .ra-owner__pages:has([data-rw-agent-page="invoices"]:not([hidden]) #rwAgentInvoiceListView:not([hidden])):not(:has(#rwAgentInvoicePayPage:not([hidden]))):not(:has(#rwAgentInvoiceEstimatePick:not([hidden]))){
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    touch-action: pan-x pan-y;
  }

  .ra-owner__page[data-rw-agent-page="invoices"]:not([hidden]):not(:has(#rwAgentInvoicePayPage:not([hidden]))):not(:has(#rwAgentInvoiceEstimatePick:not([hidden]))):not(:has(#rwAgentInvoiceDetail:not([hidden]))){
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .ra-owner__page[data-rw-agent-page="invoices"]:has(#rwAgentInvoiceDetail:not([hidden])) #rwAgentInvoiceListView{
    display: none !important;
  }

  .ra-owner__page[data-rw-agent-page="invoices"]:not([hidden]) #rwAgentInvoiceListView:not([hidden]){
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  #rwAgentInvoiceListView .ra-invoice-toolbar,
  #rwAgentInvoiceListView > #rwAgentInvoiceSelectAll,
  #rwAgentInvoiceListView > #rwAgentInvoiceBatchListHint{
    position: static;
    flex: 0 0 auto;
  }

  [data-rw-agent-page="invoices"] #rwAgentInvoiceSplit{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  #rwAgentInvoices:has(.ra-invoice-grid){
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    background: #fff;
  }

  .ra-invoice-grid thead th{
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
  }

  #rwAgentInvoices .ra-invoice-grid--pay{
    width: 949px;
    min-width: 949px;
    max-width: none;
    margin: 0;
    table-layout: fixed;
  }

  #rwAgentInvoices .ra-invoice-grid--draft{
    width: 498px;
    min-width: 498px;
    max-width: none;
    margin: 0;
    table-layout: fixed;
  }

  .ra-invoice-grid--pay .ra-inv-check,
  .ra-invoice-grid--draft .ra-inv-check{ width: 22px; max-width: 22px; }
  .ra-invoice-grid--pay .ra-inv-date{ width: 156px; }
  .ra-invoice-grid--pay .ra-inv-name{ width: 123px; }
  .ra-invoice-grid--pay .ra-inv-address{ width: 218px; }
  .ra-invoice-grid--pay .ra-inv-source{ width: 97px; }
  .ra-invoice-grid--pay .ra-inv-paid,
  .ra-invoice-grid--pay .ra-inv-total{ width: 101px; }
  .ra-invoice-grid--pay .ra-inv-status{ width: 153px; }
  .ra-invoice-grid--pay .ra-inv-file,
  .ra-invoice-grid--draft .ra-inv-file{ width: 36px; max-width: 36px; }
  .ra-invoice-grid--draft .ra-inv-x{ width: 22px; max-width: 22px; }
  .ra-invoice-grid--draft .ra-inv-date,
  .ra-invoice-grid--draft .ra-inv-address,
  .ra-invoice-grid--draft .ra-inv-name,
  .ra-invoice-grid--draft .ra-inv-amount{
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ra-invoice-grid--draft .ra-inv-date{ width: 92px; }
  .ra-invoice-grid--draft .ra-inv-address{ width: 140px; }
  .ra-invoice-grid--draft .ra-inv-name{ width: 110px; }
  .ra-invoice-grid--draft .ra-inv-amount{ width: 76px; }

  #rwAgentInvoiceListView.is-draft-open .ra-invoice-toolbar,
  #rwAgentInvoiceListView.is-draft-open > #rwAgentInvoiceSelectAll,
  #rwAgentInvoiceListView.is-draft-open > #rwAgentInvoiceBatchListHint,
  #rwAgentInvoiceListView.is-draft-open #rwAgentInvoices{
    display: none !important;
  }

  #rwAgentInvoiceListView.is-draft-open #rwAgentInvoiceDraftPane{
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  #rwAgentInvoiceBatchFooter{
    display: none !important;
  }
}

@media (min-width: 1025px){
  .ra-invoice-grid--pay,
  .ra-invoice-grid--draft{
    table-layout: fixed;
  }

  .ra-invoice-grid--pay .ra-inv-check,
  .ra-invoice-grid--draft .ra-inv-check{ width: 22px; max-width: 22px; }
  .ra-invoice-grid--pay .ra-inv-date{ width: 15.9%; }
  .ra-invoice-grid--pay .ra-inv-name{ width: calc(18.3% - 25px); }
  .ra-invoice-grid--pay .ra-inv-address{ width: calc(24.3% - 20px); }
  .ra-invoice-grid--pay .ra-inv-source{ width: 9.9%; }
  .ra-invoice-grid--pay .ra-inv-paid,
  .ra-invoice-grid--pay .ra-inv-total{ width: 10.3%; }
  .ra-invoice-grid--pay .ra-inv-status{ width: calc(11% + 45px); }
  .ra-invoice-grid--pay .ra-inv-file,
  .ra-invoice-grid--draft .ra-inv-file{ width: 36px; max-width: 36px; }

  .ra-invoice-grid--draft .ra-inv-x{ width: 22px; max-width: 22px; }
  .ra-invoice-grid--draft .ra-inv-date{ width: 11%; }
  .ra-invoice-grid--draft .ra-inv-address{ width: calc(42.5% - 2px); }
  .ra-invoice-grid--draft .ra-inv-name{ width: calc(31.5% - 20px); }
  .ra-invoice-grid--draft .ra-inv-amount{ width: 15%; }
  .ra-invoice-grid--draft .ra-inv-file{ width: 36px; max-width: 36px; }

  .ra-invoice-grid .ra-inv-name,
  .ra-invoice-grid .ra-inv-address,
  .ra-invoice-grid .ra-inv-date,
  .ra-invoice-grid .ra-inv-source,
  .ra-invoice-grid .ra-inv-status{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.ra-invoice-file{
  display: inline-grid;
  place-items: center;
  color: #0e2948;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.ra-invoice-file-link{
  border: 0;
  padding: 0;
  background: none;
  color: #1d4ed8;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.ra-invoice-file-page{
  z-index: 90;
  background: #e2e8f0;
  touch-action: pan-x pan-y;
}

#rwInvoiceFilePage iframe,
#rwAgentInvoiceDraftPane,
#rwEmailInvoiceForm,
#rwAgentInvoiceModal{
  touch-action: pan-x pan-y;
}

@media (max-width: 1024px){
  input,
  select,
  textarea{
    font-size: 16px !important;
  }
}

.ra-invoice-file-page__stage{
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.ra-invoice-file-page__stage iframe{
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  border-radius: 8px;
}

.ra-invoice-file-page__stage img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.ra-invoice-file-page__stage:has(.ra-invoice-file-page__doc:not([hidden])){
  align-items: stretch;
  justify-content: center;
}

.ra-invoice-file-page__doc{
  width: min(100%, 840px);
  height: 100%;
  margin: 0 auto;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  color: #0f172a;
  box-sizing: border-box;
}

.ra-invoice-file-page__doc[hidden]{
  display: none !important;
}

.ra-invoice-doc p{
  margin: 0 0 8px;
}

.ra-invoice-doc img{
  max-width: 100%;
  height: auto;
}

.ra-invoice-doc table{
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
}

.ra-invoice-doc td{
  border: 1px solid #e4ebf2;
  padding: 4px 6px;
  vertical-align: top;
}

.ra-invoice-file svg{
  display: block;
}

.ra-invoice-grid tbody tr{
  cursor: pointer;
}

.ra-invoice-grid tbody tr:hover{
  background: #f8fafc;
}

.ra-invoice-grid__keep{
  width: 0;
  max-width: 0;
  padding: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.ra-invoice-sheet__x{
  display: none;
}

@media (min-width: 1025px){
  .ra-invoice-mini{
    display: none !important;
  }

  #rwAgentInvoiceBatchTop:not([hidden]),
  #rwAgentInvoiceBatchApprove:not([hidden]),
  #rwAgentInvoiceDrafts:not([hidden]){
    display: inline-flex;
    align-items: center;
  }

  .ra-invoice-filter__label{
    display: inline;
  }

  .ra-invoice-head__actions{
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  #rwAgentInvoiceFilters{
    align-items: center;
    gap: 0;
  }

  #rwAgentInvoiceFilters .ra-owner__field{
    display: grid;
    grid-template-columns: auto minmax(10rem, 16rem);
    align-items: center;
    column-gap: 10px;
    max-width: none;
    margin: 0 20px;
  }

  #rwAgentInvoiceReset{
    margin: 0 20px 0 0;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: var(--rw-navy-shine);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .ra-invoice-tool,
  #rwAgentInvoiceFilter{
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: var(--rw-navy-shine);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
  }

  #rwAgentInvoiceFilter{
    width: auto;
    flex: 0 0 auto;
    height: 32px;
    padding: 0 12px;
    gap: 6px;
  }

  #rwAgentInvoiceFilter svg,
  .ra-invoice-filter[data-rw-list-filter] svg{
    display: none;
  }

  .ra-invoice-filter[data-rw-list-filter]{
    width: auto;
    flex: 0 0 auto;
    height: 32px;
    padding: 0 12px;
    gap: 6px;
  }

  .ra-invoice-filters .ra-owner__field{
    display: grid;
    grid-template-columns: auto minmax(10rem, 16rem);
    align-items: center;
    column-gap: 10px;
    max-width: none;
    margin: 0 20px 0 0;
  }

  .ra-owner__page[data-rw-agent-page="invoices"]:not([hidden]):not(:has(#rwAgentInvoicePayPage:not([hidden]))):not(:has(#rwAgentInvoiceEstimatePick:not([hidden]))){
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  body.ra-portal--agent .ra-owner__pages:has([data-rw-agent-page="invoices"]:not([hidden]) #rwAgentInvoiceListView:not([hidden])):not(:has(#rwAgentInvoicePayPage:not([hidden]))):not(:has(#rwAgentInvoiceEstimatePick:not([hidden]))){
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 16px;
  }

  .ra-owner__page[data-rw-agent-page="invoices"]:not([hidden]):not(:has(#rwAgentInvoicePayPage:not([hidden]))):not(:has(#rwAgentInvoiceEstimatePick:not([hidden]))) #rwAgentInvoiceListView{
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  #rwAgentInvoiceListView .ra-invoice-toolbar{
    position: static;
    flex: 0 0 auto;
  }

  #rwAgentInvoiceSplit{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #rwAgentInvoices{
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  #rwAgentInvoiceListView:not(.is-draft-open) #rwAgentInvoices:has(.ra-invoice-grid--draft){
    width: calc(100% - 12px - (45% - 6px));
    max-width: calc(100% - 12px - (45% - 6px));
    flex: 0 0 auto;
    align-self: flex-start;
    scrollbar-gutter: stable;
  }

  #rwAgentInvoiceListView.is-draft-open #rwAgentInvoiceSplit{
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(45% - 6px);
    justify-content: stretch;
    gap: 12px;
    overflow: hidden;
  }

  #rwAgentInvoiceListView.is-draft-open #rwAgentInvoices{
    width: 100%;
    max-width: none;
    scrollbar-gutter: stable;
  }

  #rwAgentInvoiceListView.is-draft-open #rwEmailInvoiceForm,
  #rwAgentInvoiceListView.is-draft-open #rwEmailInvoiceForm > .ra-estimate-story{
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  #rwAgentInvoiceListView.is-draft-open #rwAgentInvoices,
  #rwAgentInvoiceDraftPane{
    min-height: 0;
    overflow: auto;
  }

  #rwAgentInvoiceDraftPane{
    background: transparent;
    border-radius: 0;
    padding-top: 0;
    scrollbar-gutter: stable;
  }

  #rwAgentInvoiceDraftPane[hidden]{
    display: none !important;
  }

  .ra-invoice-grid--draft tr.is-selected td,
  #rwAgentInvoices tr.is-selected td{
    background: #d4e1ee;
  }

  .ra-invoice-grid thead th{
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
  }

  #rwAgentInvoiceBatchModal,
  #rwAppConfirm,
  #rwEstimateReadyModal:not(.is-review),
  #rwOwnerTxStripeModal,
  #rwVerifyMailModal,
  #rwPeopleMailModal{
    left: var(--rw-side-nav, 144px);
    width: auto;
    align-content: center;
    justify-content: center;
    padding-bottom: 16vh;
  }

  #rwAgentInvoiceBatchModal .ra-portal__modal,
  #rwAppConfirm .ra-portal__modal,
  #rwEstimateReadyModal:not(.is-review) .ra-portal__modal,
  #rwOwnerTxStripeModal .ra-portal__modal,
  #rwVerifyMailModal .ra-portal__modal,
  #rwPeopleMailModal .ra-portal__modal{
    width: 70%;
    max-width: 70%;
    font-size: 1.05rem;
  }

  #rwAppConfirm .ra-portal__modal{
    width: min(960px, 96%);
    max-width: min(960px, 96%);
  }

  #rwAppConfirm .ra-portal__modal-title,
  #rwAppConfirmText,
  #rwEstimateReadyText,
  #rwOwnerTxStripeText,
  #rwVerifyMailText,
  #rwPeopleMailText{
    font-size: 1.05rem;
  }

  #rwAgentInvoiceBatchText{
    font-size: 1.2rem;
  }

  #rwAgentInvoiceBatchModal .ra-portal__primary-btn,
  #rwAgentInvoiceBatchModal .ra-portal__ghost-btn--on-dark,
  #rwAppConfirm .ra-portal__ghost-btn--on-dark,
  #rwEstimateReadyModal:not(.is-review) .ra-portal__ghost-btn--on-dark,
  #rwOwnerTxStripeModal .ra-portal__primary-btn,
  #rwVerifyMailModal .ra-portal__primary-btn,
  #rwPeopleMailModal .ra-portal__primary-btn{
    font-size: 0.95rem;
  }

  #rwAgentInvoiceSelectAll{
    display: none !important;
  }

  #rwAgentInvoices:has(.ra-invoice-grid){
    display: block;
  }

  .ra-owner__pages .ra-estimate-footer#rwAgentInvoiceBatchFooter:not(:has(#rwAgentInvoiceBatchLeave:not([hidden]))){
    display: none !important;
  }

  #rwAgentInvoiceModal:not(.is-open){
    display: none;
  }

  #rwAgentInvoiceModal.is-open{
    position: fixed;
    z-index: 80;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    left: var(--rw-side-nav, 144px);
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 24px 32px;
    background: rgba(15, 23, 42, 0.45);
  }

  #rwAgentInvoiceModal.is-open .ra-invoice-sheet__panel{
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc((100% - 64px) * 0.7);
    max-height: min(78vh, calc(100% - 32px));
    overflow: auto;
    background: #e2e8f0;
    border: 2px solid #334155;
    border-radius: 16px;
    padding: 16px 20px 8px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  }

  #rwAgentInvoiceModal.is-open .ra-invoice-sheet__x{
    display: grid;
    place-items: center;
    position: sticky;
    top: 0;
    align-self: flex-end;
    z-index: 2;
    margin: 0 0 8px;
    background: #e2e8f0;
  }

  #rwAgentInvoiceModal.is-open #rwAgentInvoiceDetail > .ra-owner__title{
    margin-top: 0;
    padding-right: 36px;
  }

  #rwAgentInvoiceModal.is-open [data-rw-agent-invoice-back]{
    display: none !important;
  }
}

.ra-list-x{
  display: inline-grid;
  place-items: center;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

table.ra-invoice-grid tr,
tr.ra-owner__property,
tr.ra-portal__idle-item,
tr.ra-people__row{
  display: table-row !important;
  flex: none !important;
  width: auto !important;
  height: auto !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
}

table.ra-invoice-grid tr[hidden]{
  display: none !important;
}

.ra-invoice-grid .ra-people__name,
.ra-invoice-grid .ra-people__fact,
.ra-invoice-grid .ra-people__id,
.ra-invoice-grid .ra-people__units,
.ra-invoice-grid .ra-rowdate,
.ra-invoice-grid .ra-portal__idle-item-title,
.ra-invoice-grid .ra-portal__idle-item-meta,
.ra-invoice-grid strong{
  display: inline;
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.25;
  color: inherit;
}

body.ra-portal--agent #rwChatPanel #rwIdleHome,
body.ra-portal--owner #rwChatPanel #rwIdleHome,
body.ra-portal--tenant #rwChatPanel #rwIdleHome,
body.ra-portal--vendor #rwChatPanel #rwIdleHome,
body.ra-portal--agent #rwChatPanel #rwIdleRecentList,
body.ra-portal--owner #rwChatPanel #rwIdleRecentList,
body.ra-portal--tenant #rwChatPanel #rwIdleRecentList,
body.ra-portal--vendor #rwChatPanel #rwIdleRecentList,
#rwTenantConvList,
#rwTenantConvRows{
  width: 100% !important;
  max-width: none !important;
}

table.ra-invoice-grid th,
table.ra-invoice-grid td{
  display: table-cell !important;
  width: auto;
  height: auto;
}

.ra-owner__list:has(> table.ra-invoice-grid),
.ra-portal__idle-list:has(> table.ra-invoice-grid){
  display: block;
  width: 100%;
  max-width: none;
  overflow: auto;
  background: #fff;
}

#rwPeopleRows,
#rwIdleRecentList,
#rwTenantConvRows{
  max-width: 100% !important;
  min-width: 0;
  overflow-x: auto;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

#rwIdleRecentList,
#rwTenantConvRows,
#rwAgentPropertyList,
#rwOwnerPropertyList,
#rwAgentEstimateList,
#rwOwnerEstimateList,
#rwVendorEstimateList,
#rwVendorBillRows,
#rwAgentOwnerInvoiceRows{
  width: 100%;
  max-width: none;
}

#rwPeopleRows > table.ra-invoice-grid,
.ra-owner__list > table.ra-invoice-grid,
.ra-portal__idle-list > table.ra-invoice-grid{
  width: 100%;
  min-width: 0;
}

#rwChatTitleBar,
#rwAgentEstimateDetail,
#rwOwnerEstimateDetail,
#rwVendorEstimateDetail,
#rwAgentPropertyDetail,
#rwOwnerPropertyDetail,
#rwVendorInvoiceDetail,
#rwAgentOwnerInvoiceDetail,
#rwPeopleForm,
#rwOwnerDetail,
#rwTenantLeases,
#rwAgentOwnerDetail,
#rwAgentTenantDetail{
  position: relative;
}

#rwIdleHome{
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  color: #0f172a;
}

.ra-list-grid .ra-inv-name,
.ra-list-grid .ra-inv-address,
.ra-list-grid .ra-inv-date,
.ra-list-grid .ra-inv-source,
.ra-list-grid .ra-inv-status,
.ra-portal__idle-item-title{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ra-list-grid--talk{
  width: 100%;
  table-layout: fixed;
}
.ra-list-grid--talk .ra-inv-date{ width: calc(11% * 0.6 * 0.7 * 0.6 * 4); }
.ra-list-grid--talk .ra-inv-source{ width: calc(10% * 0.85 * 0.7 * 0.85 * 1.1); }
.ra-list-grid--talk .ra-inv-name{ width: calc(18% * 0.8); }
.ra-list-grid--talk .ra-inv-age{ width: calc(7% * 0.9); }
.ra-list-grid--talk .ra-inv-updated{ width: 9%; }
.ra-list-grid--talk .ra-inv-status{ width: calc(14% * 0.7); }

.ra-list-grid--talk tbody td{
  padding: 4px 8px;
  vertical-align: middle;
  line-height: 1.25;
}

.ra-list-grid--talk .ra-portal__unread-dot{
  display: inline-block;
  margin: 0 6px 0 0;
  vertical-align: middle;
  box-shadow: none;
}

.ra-list-grid--talk .ra-inv-actions{
  width: 74px;
  white-space: nowrap;
}

.ra-list-grid--talk .ra-invoice-tool{
  height: 22px;
  margin: 0 2px 0 0;
  padding: 0 4px;
  font-size: 11px;
  line-height: 20px;
}

#rwAgentEstimateDetail > .ra-estimate-footer,
#rwOwnerEstimateDetail > .ra-estimate-footer,
#rwVendorEstimateDetail > .ra-estimate-footer,
#rwVendorEstimateForm > .ra-estimate-footer,
#rwAgentOwnerInvoiceDetail > .ra-estimate-footer,
#rwVendorInvoiceDetail > .ra-estimate-footer,
#rwPeopleFormFooter,
#rwChatBackFooter{
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  min-height: 0;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  order: -1;
}

#rwAgentEstimateDetail > .ra-estimate-footer button,
#rwOwnerEstimateDetail > .ra-estimate-footer button,
#rwVendorEstimateDetail > .ra-estimate-footer button,
#rwVendorEstimateForm > .ra-estimate-footer button,
#rwAgentOwnerInvoiceDetail > .ra-estimate-footer button,
#rwVendorInvoiceDetail > .ra-estimate-footer button,
#rwPeopleFormFooter button,
#rwChatBackFooter button,
#rwAgentPropertyDetail > .ra-owner__back,
#rwOwnerPropertyDetail > .ra-owner__back{
  flex: 0 0 auto;
  width: auto;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--rw-navy-shine);
  box-shadow: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (min-width: 1025px){
  .ra-list-x{
    display: none !important;
  }

  [data-rw-agent-page="properties"]:not([hidden]),
  [data-rw-agent-page="estimates"]:not([hidden]),
  [data-rw-agent-page="owners"]:not([hidden]),
  [data-rw-agent-page="tenants"]:not([hidden]),
  [data-rw-agent-page="agents"]:not([hidden]),
  [data-rw-agent-page="vendors"]:not([hidden]),
  [data-rw-agent-page="owner-invoices"]:not([hidden]),
  [data-rw-owner-page="properties"]:not([hidden]),
  [data-rw-owner-page="estimates"]:not([hidden]),
  [data-rw-vendor-page="estimates"]:not([hidden]),
  [data-rw-vendor-page="invoices"]:not([hidden]),
  [data-rw-tenant-page="conversations"]:not([hidden]){
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100%;
    max-width: none;
    height: auto;
    overflow: auto;
  }

  .ra-people,
  #rwPeopleList,
  .ra-people__rows,
  .ra-owner__list,
  .ra-portal__idle-home,
  .ra-portal__idle-list{
    width: 100% !important;
    max-width: none !important;
  }

  .ra-list-grid,
  #rwVendorBillRows .ra-invoice-grid,
  #rwVendorLedgerHost .ra-invoice-grid,
  #rwAgentOwnerInvoiceRows .ra-invoice-grid,
  #rwPeopleRows .ra-invoice-grid,
  #rwIdleRecentList .ra-invoice-grid,
  #rwTenantConvRows .ra-invoice-grid,
  #rwAgentPropertyList .ra-invoice-grid,
  #rwOwnerPropertyList .ra-invoice-grid{
    width: 100%;
    table-layout: fixed;
  }

  .ra-list-grid .ra-inv-check,
  .ra-invoice-grid--pay .ra-inv-check{ width: 22px; max-width: 22px; }
  .ra-list-grid .ra-inv-date,
  .ra-invoice-grid--pay .ra-inv-date{ width: 15.9%; }
  .ra-list-grid--estimate .ra-inv-date{ width: calc(15.9% * 0.6); }
  .ra-list-grid .ra-inv-name,
  .ra-invoice-grid--pay .ra-inv-name{ width: calc(18.3% - 25px); }
  .ra-list-grid .ra-inv-address,
  .ra-invoice-grid--pay .ra-inv-address{ width: calc(24.3% - 20px); }
  .ra-list-grid .ra-inv-source,
  .ra-invoice-grid--pay .ra-inv-source{ width: 9.9%; }
  .ra-list-grid .ra-inv-status,
  .ra-invoice-grid--pay .ra-inv-status{ width: calc(11% + 45px); }
  .ra-list-grid--estimate col.ra-inv-status,
  .ra-list-grid--estimate .ra-inv-status{
    width: calc(181px * 0.85 * 1.1 * 1.1) !important;
    max-width: calc(181px * 0.85 * 1.1 * 1.1) !important;
    min-width: 0 !important;
  }
  .ra-list-grid--estimate .ra-inv-name{
    width: calc((18.3% - 25px) - (181px * 0.85 * 1.1 * 0.1));
  }
  .ra-list-grid .ra-inv-paid,
  .ra-list-grid .ra-inv-total,
  .ra-invoice-grid--pay .ra-inv-paid,
  .ra-invoice-grid--pay .ra-inv-total{ width: 10.3%; }

  #rwAgentPropertyListView[hidden],
  #rwOwnerPropertyListView[hidden],
  #rwAgentEstimateListPane[hidden],
  #rwOwnerEstimateListPane[hidden],
  #rwVendorEstimateListPane[hidden],
  #rwVendorInvoiceListPane[hidden],
  #rwAgentOwnerInvoiceListPane[hidden],
  #rwPeopleList[hidden],
  #rwChatPanel.ra-portal__chat--thread #rwIdlePanel{
    display: flex !important;
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  #rwAgentPropertyDetail:not([hidden]),
  #rwOwnerPropertyDetail:not([hidden]),
  #rwAgentEstimateDetail:not([hidden]),
  #rwOwnerEstimateDetail:not([hidden]),
  #rwVendorEstimateDetail:not([hidden]),
  #rwAgentEstimateForm:not([hidden]),
  #rwVendorEstimateForm:not([hidden]),
  #rwAgentOwnerDetail:not([hidden]),
  #rwAgentTenantDetail:not([hidden]),
  #rwAgentVendorPick:not([hidden]),
  #rwPeopleForm:not([hidden]),
  #rwOwnerDetail:not([hidden]),
  #rwTenantLeases:not([hidden]),
  #rwPropertyForm:not([hidden]),
  #rwVendorInvoiceDetail:not([hidden]),
  #rwVendorInvoiceForm:not([hidden]),
  #rwAgentOwnerInvoiceDetail:not([hidden]),
  #rwAgentOwnerInvoiceForm:not([hidden]),
  #rwChatPanel.ra-portal__chat--thread #rwConversationBox{
    position: fixed !important;
    z-index: 80;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px) + 24px) !important;
    left: calc(var(--rw-side-nav, 144px) + 32px + (100vw - var(--rw-side-nav, 144px) - 64px) * 0.15) !important;
    width: calc((100vw - var(--rw-side-nav, 144px) - 64px) * 0.7) !important;
    max-width: none !important;
    height: auto !important;
    max-height: min(78vh, calc(100dvh - var(--rw-header-h) - 48px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin: 0 !important;
    background: #e2e8f0;
    border: 2px solid #334155;
    border-radius: 16px;
    padding: 16px 20px 8px;
    box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.45);
  }

  #rwAgentPropertyDetail:not([hidden]) .ra-list-x,
  #rwOwnerPropertyDetail:not([hidden]) .ra-list-x,
  #rwAgentEstimateDetail:not([hidden]) .ra-list-x,
  #rwOwnerEstimateDetail:not([hidden]) .ra-list-x,
  #rwVendorEstimateDetail:not([hidden]) .ra-list-x,
  #rwAgentOwnerDetail:not([hidden]) .ra-list-x,
  #rwAgentTenantDetail:not([hidden]) .ra-list-x,
  #rwPeopleForm:not([hidden]) .ra-list-x,
  #rwOwnerDetail:not([hidden]) .ra-list-x,
  #rwTenantLeases:not([hidden]) .ra-list-x,
  #rwVendorInvoiceDetail:not([hidden]) .ra-list-x,
  #rwAgentOwnerInvoiceDetail:not([hidden]) .ra-list-x,
  #rwChatPanel.ra-portal__chat--thread .ra-list-x{
    display: inline-grid !important;
    position: sticky !important;
    top: 0;
    align-self: flex-end;
    float: none;
    z-index: 4;
    margin: 0 0 8px;
    background: #e2e8f0;
  }

  #rwChatPanel.ra-portal__chat--thread #rwConversationBox{
    display: flex;
    flex-direction: column;
    height: min(78vh, calc(100dvh - var(--rw-header-h) - 48px));
    box-sizing: border-box;
    padding-bottom: 76px;
  }

  #rwChatPanel.ra-portal__chat--thread #rwChatFooter{
    position: fixed;
    z-index: 81;
    left: calc(var(--rw-side-nav, 144px) + (100vw - var(--rw-side-nav, 144px)) * 0.15);
    width: calc((100vw - var(--rw-side-nav, 144px)) * 0.7);
    bottom: calc(100dvh - var(--rw-header-h) - 24px - min(78vh, calc(100dvh - var(--rw-header-h) - 48px)));
    box-sizing: border-box;
    margin: 0;
    padding: 0 16px 12px;
    background: #e2e8f0;
    border-radius: 0 0 16px 16px;
  }

  .ra-list-grid tr.is-selected td,
  #rwVendorBillRows tr.is-selected td,
  #rwAgentOwnerInvoiceRows tr.is-selected td,
  #rwPeopleRows tr.is-selected td,
  #rwAgentInvoices tr.is-selected td,
  #rwIdleRecentList tr.is-selected td,
  #rwTenantConvRows tr.is-selected td{
    background: #d4e1ee;
  }

}

@media (max-width: 1024px){
  .ra-owner__page:has(#rwAgentEstimateDetail:not([hidden])) #rwAgentEstimateListPane,
  .ra-owner__page:has(#rwOwnerEstimateDetail:not([hidden])) #rwOwnerEstimateListPane,
  .ra-owner__page:has(#rwVendorEstimateDetail:not([hidden])) #rwVendorEstimateListPane,
  .ra-owner__page:has(#rwAgentPropertyDetail:not([hidden])) #rwAgentPropertyListView,
  .ra-owner__page:has(#rwOwnerPropertyDetail:not([hidden])) #rwOwnerPropertyListView,
  .ra-owner__page:has(#rwVendorInvoiceDetail:not([hidden])) #rwVendorInvoiceListPane,
  .ra-owner__page:has(#rwAgentOwnerInvoiceDetail:not([hidden])) #rwAgentOwnerInvoiceListPane,
  #rwChatPanel.ra-portal__chat--thread #rwIdlePanel{
    display: none !important;
  }
}

#rwPeopleForm.ra-people__form--sheet:not([hidden]){
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  column-gap: 8px;
}

#rwPeopleForm.ra-people__form--sheet:not([hidden]) > #rwPeopleFormTitle{
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

#rwPeopleForm.ra-people__form--sheet:not([hidden]) > #rwPeopleFormFooter{
  grid-column: 1 / -1;
  grid-row: auto;
  order: 40;
  position: static;
  top: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 26px 0 0;
  background: transparent;
}

#rwPeopleForm.ra-people__form--sheet:not([hidden]) > .ra-list-x{
  display: inline-grid !important;
  grid-column: 2;
  grid-row: 1;
  position: static !important;
  top: auto !important;
  right: auto !important;
  align-self: center !important;
  justify-self: end;
  float: none !important;
  margin: 0 !important;
  z-index: 6;
  background: transparent;
}

#rwPeopleForm.ra-people__form--sheet:not([hidden]) > :not(#rwPeopleFormFooter):not(.ra-list-x):not(#rwPeopleFormTitle){
  grid-column: 1 / -1;
}

#rwPeopleForm.ra-people__form--sheet #rwPeopleSave{
  order: -1;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px rgba(11, 35, 64, 0.2);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
}

#rwPeopleForm.ra-people__form--sheet #rwPeopleCancel{
  display: none !important;
}

#rwPeopleForm{
  scroll-margin-top: calc(var(--rw-header-h) + 8px);
}

#rwPeopleForm #rwPeopleActiveField{
  margin-bottom: 0;
}

#rwPeopleForm:has(#rwTenantRentals:not([hidden])) #rwPeopleActiveField,
#rwPeopleForm:has(#rwOwnerPropertiesForm:not([hidden])) #rwPeopleActiveField{
  margin-bottom: 0;
}

.ra-tenant-left-date{
  margin-left: 8px;
  color: #0f172a;
  font-size: 12.5px;
}

.ra-list-grid--vendor{
  width: 100%;
  table-layout: fixed;
}

.ra-list-grid--vendor .ra-inv-date{ width: calc(15.9% * 0.65 * 0.9); }
.ra-list-grid--vendor .ra-inv-name{ width: calc(18% * 0.9); }
.ra-list-grid--vendor .ra-inv-id{ width: calc(7% * 0.75); }
.ra-list-grid--vendor .ra-inv-rate{ width: calc(12% * 0.75); }
.ra-list-grid--vendor .ra-inv-status{ width: calc(12% * 0.7); }

.ra-list-grid--people{
  width: 100%;
  table-layout: fixed;
}
.ra-list-grid--people .ra-inv-date{ width: calc(15.9% * 0.65 * 0.9); }
.ra-list-grid--people .ra-inv-name{ width: 28%; }
.ra-list-grid--people .ra-inv-id{ width: 16%; }
.ra-list-grid--people .ra-inv-units{ width: 12%; }
.ra-list-grid--people .ra-inv-status{ width: calc(12% * 0.7); }

.ra-list-grid--tenant{
  width: 100%;
  table-layout: fixed;
}
.ra-list-grid--tenant .ra-inv-date{ width: calc(15.9% * 0.65 * 0.9 * 0.8 * 1.15); }
.ra-list-grid--tenant .ra-inv-name{ width: calc(18% * 0.9); }
.ra-list-grid--tenant .ra-inv-id{ width: calc(7% * 0.75); }
.ra-list-grid--tenant .ra-inv-lease{ width: calc(13% * 1.15); }
.ra-list-grid--tenant .ra-inv-status{ width: calc(12% * 0.7); }
.ra-list-grid--tenant .ra-inv-active{ width: calc(12% * 0.75); }
.ra-list-grid--tenant .ra-inv-place,
.ra-list-grid--tenant .ra-inv-lease,
.ra-list-grid--tenant .ra-inv-place span,
.ra-list-grid--tenant .ra-inv-lease span,
.ra-list-grid--tenant .ra-inv-id,
.ra-list-grid--tenant .ra-inv-id span,
.ra-list-grid--tenant .ra-inv-date,
.ra-list-grid--tenant .ra-inv-date span,
.ra-list-grid--tenant .ra-inv-name,
.ra-list-grid--tenant .ra-inv-name strong{
  color: #0f172a;
}
.ra-list-grid--tenant .ra-inv-place,
.ra-list-grid--tenant .ra-inv-lease{
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  vertical-align: top;
}
.ra-people__stack{
  display: block;
}

#rwTenantLeasesBack{
  display: none !important;
}

.ra-list-grid--vendor thead th{
  background: #334155;
  color: #fff;
  font-size: 14px;
}

.ra-tenant-rentals__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 8px;
}

#rwTenantRentalsTitle{
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 600;
}

#rwTenantRentProperty{
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

#rwTenantRentalsRows{
  margin-bottom: 32px;
}

#rwPeopleForm #rwTenantRentalsRows,
#rwPeopleForm #rwOwnerPropertiesGrid{
  margin-bottom: 0;
}

#rwTenantRentalsRows table{
  width: 100%;
  table-layout: fixed;
}

#rwTenantRentalsRows .ra-inv-address{ width: calc(46% * 0.85); }
#rwTenantRentalsRows .ra-inv-date,
#rwTenantRentalsRows .ra-inv-lease{ width: 14%; }
#rwTenantRentalsRows .ra-inv-status{ width: calc(14% * 1.3); }
#rwTenantRentalsRows .ra-inv-left{
  width: calc(12% * 0.8);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  text-align: left;
}

#rwTenantRentModal:not([hidden]){
  z-index: 90;
  padding: 16px;
  background: transparent;
  align-items: center;
  justify-content: center;
}

.ra-tenant-rent-modal{
  width: 100%;
  max-width: none;
  max-height: min(78vh, 720px);
  overflow: auto;
  background: #e2e8f0;
  border: 2px solid #334155;
  box-shadow: none;
}

@media (min-width: 1025px){
  #rwTenantRentModal:not([hidden]){
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px) + 24px + 10px);
    right: auto;
    bottom: auto;
    left: calc(var(--rw-side-nav, 144px) + 32px + (100vw - var(--rw-side-nav, 144px) - 64px) * 0.15 + 10px);
    width: calc((100vw - var(--rw-side-nav, 144px) - 64px) * 0.7 - 20px);
    height: calc(min(78vh, 100dvh - var(--rw-header-h) - 48px) - 20px);
    max-height: calc(min(78vh, 100dvh - var(--rw-header-h) - 48px) - 20px);
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  #rwTenantRentModal .ra-tenant-rent-modal{
    width: 100%;
    height: 100%;
    max-height: 100%;
  }

  #rwAgentPropertyDetail:not([hidden]),
  #rwOwnerPropertyDetail:not([hidden]),
  #rwAgentEstimateDetail:not([hidden]),
  #rwOwnerEstimateDetail:not([hidden]),
  #rwVendorEstimateDetail:not([hidden]),
  #rwAgentEstimateForm:not([hidden]),
  #rwVendorEstimateForm:not([hidden]){
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px)) !important;
  }
}

.ra-tenant-rent-modal{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
}

.ra-tenant-rent-bar{
  display: contents;
}

.ra-tenant-rent-modal > :not(.ra-tenant-rent-bar){
  grid-column: 1 / -1;
}

#rwTenantRentTitle{
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  text-align: left;
  font-size: 1.15rem;
}

#rwTenantRentClose{
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}

#rwTenantRentSave{
  grid-column: 1 / -1;
  grid-row: 20;
  justify-self: center;
  box-sizing: border-box;
  width: 120px;
  min-width: 120px;
  margin-top: 26px;
}

#rwTenantRentSave{
  height: 38.4px;
  min-height: 38.4px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

#rwTenantRentPickRows tr.is-selected td{
  background: #d4e1ee;
}

#rwTenantRentPickRows tr[data-rw-rent-property]{
  cursor: pointer;
}

.ra-people__stack + .ra-people__stack{
  margin-top: 6px;
}

.ra-tenant-rent-dates{
  display: flex;
  gap: 16px;
  margin: 0 0 12px;
}

.ra-tenant-rent-dates .ra-people__field{
  flex: 0 1 220px;
}

#rwTenantRentPickRows tr[data-rw-rent-property]{
  cursor: pointer;
}

.ra-tenant-rental{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  color: #0f172a;
}

.ra-tenant-rental__line{
  color: #0f172a;
}

.ra-tenant-left{
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0e2948;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

#rwAgentInvoices tr.is-selected td,
#rwPeopleRows tr.is-selected td,
#rwIdleRecentList tr.is-selected td,
#rwTenantConvRows tr.is-selected td{
  background: #d4e1ee;
}
.ra-list-grid--vendor .ra-inv-areas,
.ra-list-grid--vendor .ra-inv-expert{
  width: calc(18% + (18% * 0.1 + 15.9% * 0.65 * 0.1 + 7% * 0.25 + 12% * 0.25 + 12% * 0.3) / 2);
  white-space: normal;
}

#rwPeopleRows .ra-list-grid--vendor tr.is-selected,
#rwPeopleRows .ra-list-grid--vendor tr.is-selected td{
  background: #d4e1ee;
}

[data-rw-agent-page="vendors"] #rwPeopleList > .ra-invoice-toolbar,
[data-rw-agent-page="owners"] #rwPeopleList > .ra-invoice-toolbar,
[data-rw-agent-page="tenants"] #rwPeopleList > .ra-invoice-toolbar,
#rwIdleHome > .ra-invoice-toolbar,
#rwTenantConvList > .ra-invoice-toolbar{
  flex: 0 0 auto;
  padding-bottom: 0;
}

[data-rw-agent-page="vendors"] #rwPeopleRows,
[data-rw-agent-page="owners"] #rwPeopleRows,
[data-rw-agent-page="tenants"] #rwPeopleRows,
#rwIdleRecentList,
#rwTenantConvRows{
  justify-content: flex-start;
  align-content: start;
  margin-top: 0;
}

[data-rw-agent-page="vendors"] #rwPeopleFilters,
[data-rw-agent-page="owners"] #rwPeopleFilters,
[data-rw-agent-page="tenants"] #rwPeopleFilters,
#rwIdleFilters,
#rwTenantConvFilters{
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 26px;
}

#rwPeopleFilters .ra-owner__field[hidden]{
  display: none !important;
}

[data-rw-agent-page="vendors"] #rwPeopleFilters .ra-owner__field,
[data-rw-agent-page="owners"] #rwPeopleFilters .ra-owner__field,
[data-rw-agent-page="tenants"] #rwPeopleFilters .ra-owner__field,
#rwIdleFilters .ra-owner__field,
#rwTenantConvFilters .ra-owner__field{
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  justify-content: start;
  align-items: center;
  column-gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  margin: 0;
  font-size: 0.75rem;
}

[data-rw-agent-page="vendors"] #rwPeopleFilters .ra-owner__field select,
[data-rw-agent-page="owners"] #rwPeopleFilters .ra-owner__field select,
[data-rw-agent-page="tenants"] #rwPeopleFilters .ra-owner__field select,
#rwIdleFilters .ra-owner__field select,
#rwTenantConvFilters .ra-owner__field select{
  width: 70%;
  max-width: 70%;
  min-width: 0;
  justify-self: start;
  height: 32px;
  padding: 0 6px;
  border-radius: 4px;
}

.ra-people__pair:not(:has(> :not([hidden]))){
  display: none !important;
}

@media (min-width: 1025px){
  #rwPeopleForm.ra-people__form--sheet .ra-people__pair{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }
}

table.ra-invoice-grid thead th,
table.ra-list-grid thead th{
  background: #456888 !important;
  color: #fff !important;
  font-size: 14px !important;
}

#rwChatPanel.ra-portal__chat--thread .ra-portal__chat-title-bar{
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  align-self: stretch;
  column-gap: 8px;
  flex: 0 0 auto;
  flex-direction: row;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 0;
  box-sizing: border-box;
  padding: 8px 12px !important;
  background: #d1d5db !important;
  border-radius: 16px 16px 0 0;
}

#rwChatPanel.ra-portal__chat--thread #rwChatCloseBtn{
  grid-column: 1;
  grid-row: 1 / span 2;
}

#rwChatPanel.ra-portal__chat--thread #rwChatTitleText{
  grid-column: 2;
  grid-row: 1;
}

#rwChatPanel.ra-portal__chat--thread #rwChatTitlePlace{
  grid-column: 2;
  grid-row: 2;
}

#rwChatPanel.ra-portal__chat--thread #rwAddVendorBtn{
  grid-column: 3;
  grid-row: 1 / span 2;
}

#rwChatPanel.ra-portal__chat--thread .ra-list-x{
  grid-column: 4;
  grid-row: 1 / span 2;
  position: static !important;
  top: auto !important;
  align-self: center !important;
  margin: 0 !important;
  background: transparent !important;
}

#rwChatPanel.ra-portal__chat--thread #rwChatCloseBtn,
#rwChatPanel.ra-portal__chat--thread #rwAddVendorBtn{
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  width: auto;
  height: 32px;
  min-height: 32px;
}

@media (min-width: 1025px){
#rwChatPanel.ra-portal__chat--thread #rwConversationBox{
  top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px)) !important;
  left: calc(var(--rw-side-nav, 144px) + (100vw - var(--rw-side-nav, 144px)) * 0.15) !important;
  right: auto !important;
  bottom: 16px !important;
  width: calc((100vw - var(--rw-side-nav, 144px)) * 0.7) !important;
  height: auto !important;
  max-height: none !important;
  background: #fff !important;
  padding: 0 !important;
  border: 2px solid #334155 !important;
  border-radius: 16px !important;
  box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.45) !important;
  overflow: hidden !important;
}

#rwChatPanel.ra-portal__chat--thread #rwChatScroll{
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
  padding-bottom: 72px;
  box-sizing: border-box;
}

#rwChatPanel.ra-portal__chat--thread #rwChatFooter{
  position: fixed !important;
  z-index: 81;
  left: calc(var(--rw-side-nav, 144px) + (100vw - var(--rw-side-nav, 144px)) * 0.15) !important;
  right: auto !important;
  bottom: 16px !important;
  width: calc((100vw - var(--rw-side-nav, 144px)) * 0.7) !important;
  margin: 0 !important;
  padding: 8px 12px 12px !important;
  background: #fff !important;
  border: 2px solid #334155 !important;
  border-top: 0 !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
}

.ra-estimate-footer,
.ra-people__plus,
.ra-people__add-prop,
.ra-people__other-row button,
.ra-people__actions button[type="submit"],
.ra-invoice-filter,
.ra-mobile-back,
#rwTenantLeasesEdit,
#rwChatBackBtn,
body.ra-portal--owner #rwChatPanel .ra-portal__idle-btn,
body.ra-portal--tenant #rwChatPanel .ra-portal__idle-btn,
body.ra-portal--agent #rwChatPanel .ra-portal__idle-btn,
body.ra-portal--vendor #rwChatPanel .ra-portal__idle-btn,
[data-rw-vendor-page="ledger"] > #rwVendorLedgerDetail:not([hidden]) .ra-owner__back,
[data-rw-owner-page="ledger"] > [data-rw-owner-bill-back]:not([hidden]),
[data-rw-agent-page="owner-transactions"] > #rwOwnerTxDetail:not([hidden]) .ra-owner__back{
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#rwAgentOwnerInvoiceForm > .ra-estimate-footer{
  display: none !important;
}

#rwVendorInvoiceForm > .ra-estimate-footer,
#rwBankForm > .ra-estimate-footer{
  justify-content: center;
  margin-top: 26px;
}

#rwBankSave{
  box-sizing: border-box;
  width: 116px;
  min-width: 116px;
  height: 38.4px;
  min-height: 38.4px;
}

#rwAgentEstimateCreateSend,
#rwAgentEstimateSaveLines,
#rwVendorEstimateSave,
#rwVendorInvoiceSend,
#rwAgentOwnerInvoicePost{
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px rgba(11, 35, 64, 0.2);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

#rwAgentOwnerInvoicePost{
  margin-top: 26px;
}

#rwAgentOwnerInvoiceHint:empty{
  display: none;
}

#rwOwnerPropertiesGrid .ra-list-grid{
  width: 100%;
  table-layout: fixed;
}

#rwOwnerPropertiesGrid .ra-inv-date{ width: calc(18% * 0.9); }
#rwOwnerPropertiesGrid col.ra-inv-status,
#rwOwnerPropertiesGrid .ra-inv-status{
  width: calc(92px * 0.6 * 0.6 * 4) !important;
  max-width: calc(92px * 0.6 * 0.6 * 4) !important;
  min-width: 0 !important;
  overflow: hidden;
}
#rwOwnerPropertiesGrid .ra-inv-source{ width: calc(24% * 0.85); }
#rwOwnerPropertiesGrid .ra-inv-total{ width: calc(29% * 0.9); }
#rwOwnerPropertiesGrid .ra-inv-address{ width: auto; }

#rwAgentPropertyList .ra-list-grid--property .ra-inv-date{ width: calc(15.9% * 0.65); }
#rwAgentPropertyList .ra-list-grid--property .ra-inv-name{ width: calc((18.3% - 25px) * 0.75); }
#rwAgentPropertyList > table.ra-list-grid--property,
#rwOwnerPropertyList > table.ra-list-grid--property,
#rwOwnerPropertiesGrid > table{
  table-layout: fixed;
}
#rwAgentPropertyList .ra-list-grid--property col.ra-inv-status,
#rwAgentPropertyList .ra-list-grid--property .ra-inv-status,
#rwOwnerPropertyList .ra-list-grid--property col.ra-inv-status,
#rwOwnerPropertyList .ra-list-grid--property .ra-inv-status{
  width: calc(92px * 0.6 * 0.6 * 4) !important;
  max-width: calc(92px * 0.6 * 0.6 * 4) !important;
  min-width: 0 !important;
  overflow: hidden;
}
#rwAgentPropertyList .ra-list-grid--property .ra-inv-address{ width: calc((24.3% - 20px) * 1.2); }
#rwAgentPropertyList .ra-list-grid--property .ra-inv-source{ width: calc(9.9% * 1.2); }
#rwAgentPropertyList .ra-list-grid--property .ra-inv-total{ width: auto; }

#rwAgentPropertyList .ra-inv-source,
#rwAgentPropertyList .ra-inv-total{
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  vertical-align: top;
}

#rwAgentPropertyList .ra-people__stack span{
  display: block;
}

#rwAgentPropertyList .ra-people__stack span + span{
  margin-top: 4px;
}

#rwAgentPropertyHistory{
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

#rwAgentPropertyHistory[aria-pressed="true"]{
  background: #e0f2fe;
  color: #0369a1;
  box-shadow: none;
}

.ra-portal__primary-btn,
.ra-estimate-footer button,
#rwTenantRentProperty,
#rwTenantRentSave,
#rwAgentEstimateCreateSend,
#rwAgentEstimateSaveLines,
#rwAgentEstimateDetail > .ra-estimate-footer button,
#rwOwnerEstimateDetail > .ra-estimate-footer button,
#rwVendorEstimateDetail > .ra-estimate-footer button,
#rwVendorEstimateForm > .ra-estimate-footer button,
#rwAgentOwnerInvoiceDetail > .ra-estimate-footer button,
#rwVendorInvoiceDetail > .ra-estimate-footer button,
#rwPeopleFormFooter button,
#rwChatBackFooter button,
#rwAgentPropertyDetail > .ra-owner__back,
#rwOwnerPropertyDetail > .ra-owner__back,
.ra-mobile-back,
#rwChatBackBtn,
#rwTenantLeasesEdit,
#rwAgentPropertyHistory,
#rwEstimatePhotoPage #rwEstimatePhotoSave{
  border-radius: 10px;
}

.ra-list-grid--talk .ra-inv-date{ width: calc(11% * 0.6 * 0.7 * 0.6 * 4); }
.ra-list-grid--talk .ra-inv-source{ width: calc(10% * 0.85 * 0.7 * 0.85 * 1.1); }
.ra-list-grid--talk .ra-inv-name{ width: calc(18% * 0.8); }
.ra-list-grid--talk .ra-inv-age{ width: calc(7% * 0.9); }
.ra-list-grid--talk .ra-inv-updated{ width: 9%; }
.ra-list-grid--talk .ra-inv-status{ width: calc(14% * 0.7); }
.ra-list-grid--talk .ra-inv-address{ width: auto; }

#rwAppConfirm{
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  justify-content: center;
  align-items: center;
}

#rwAppConfirm .ra-portal__modal{
  width: min(400px, 92vw) !important;
  max-width: min(400px, 92vw) !important;
  min-height: 0;
  padding: 22px !important;
  box-sizing: border-box;
}

#rwEstimateReadyYes,
#rwAppConfirmYes{
  background: var(--rw-navy-shine) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#rwAgentEstimateAddPhotos{
  display: inline;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#rwEstimatePhotoPage #rwEstimatePhotoBack{
  display: none !important;
}

#rwAgentEstimateDetail:has(#rwAgentOwnerEstimateHead:not([hidden])) > .ra-list-x{
  display: none !important;
}

#rwAgentEstimateToOwner[hidden]{
  display: none !important;
}

#rwAgentEstimateToOwner:not([hidden]){
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#rwAgentEstimateSaveLines{
  align-self: flex-end;
}

.ra-estimate-owner-line{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

#rwAgentOwnerEstimateHead .ra-estimate-pair{
  --ra-estimate-label: max-content;
  width: auto;
  margin: 0;
  grid-template-columns: max-content 14rem;
}

#rwAgentOwnerEstimateHead .ra-estimate-pair select{
  width: 14rem;
  max-width: 40vw;
}

#rwAgentOwnerEstimateHead .ra-estimate-form-head{
  align-items: center;
}

#rwAgentEstimateFilters,
#rwAgentPropertyFilters{
  flex-wrap: nowrap;
}

#rwPropertyCancel{
  display: none !important;
}

#rwPropertyForm:not([hidden]){
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  column-gap: 8px;
}

#rwPropertyForm:not([hidden]) > #rwPropertyActions{
  grid-column: 1 / -1;
  order: 40;
  position: static;
  top: auto;
  z-index: auto;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 26px 0 0;
  background: transparent;
}

#rwPropertyForm:not([hidden]) > #rwPropertyTitle{
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

#rwPropertyForm:not([hidden]) > .ra-list-x{
  display: inline-grid !important;
  grid-column: 2;
  grid-row: 1;
  position: static !important;
  top: auto !important;
  align-self: center !important;
  justify-self: end;
  margin: 0 !important;
  background: transparent !important;
}

#rwPropertyForm:not([hidden]) > :not(#rwPropertyActions):not(#rwPropertyTitle):not(.ra-list-x){
  grid-column: 1 / -1;
}

#rwPropertyForm #rwPropertySave{
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 176px;
  min-width: 176px;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
}

#rwPropertyForm > .ra-property-form-gap{
  height: 0;
  margin: 0;
}

@media (min-width: 1025px){
  #rwVendorBillAddressField,
  #rwVendorLedgerFilterActions,
  #rwVendorLedgerFilters{
    display: none !important;
  }

  #rwPropertyForm .ra-property-top{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ra-invoice-filters .ra-owner__field select,
  #rwAgentInvoiceFilters .ra-owner__field select{
    font-size: 0.75rem;
    font-weight: 400;
    height: 32px;
  }

  #rwPropertyForm .ra-property-top .ra-people__field{
    max-width: none;
    min-width: 0;
  }

  #rwAgentEstimateFilters .ra-owner__field,
  #rwAgentPropertyFilters .ra-owner__field{
    grid-template-columns: auto minmax(9rem, 14.4rem);
    margin-right: 12px;
  }

  #rwAgentEstimateLinePage .ra-estimate-tax-amount,
  #rwVendorEstimateLinePage .ra-estimate-tax-amount{
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 12px;
  }

  #rwAgentEstimateLinePage .ra-estimate-tax-amount input,
  #rwVendorEstimateLinePage .ra-estimate-tax-amount input{
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #rwVendorBillRows > table.ra-invoice-grid--pay{
    table-layout: fixed;
  }

  #rwVendorBillRows .ra-inv-date{
    width: calc(15.9% * 0.8 * 1.1);
    max-width: calc(15.9% * 0.8 * 1.1);
  }

  body.ra-portal--vendor .ra-list-grid--talk .ra-portal__unread-dot{
    display: none !important;
  }

  #rwAgentInvoiceEstimatePick:not([hidden]),
  #rwAgentOwnerInvoiceEstimatePick:not([hidden]),
  #rwVendorInvoiceEstimatePick:not([hidden]){
    position: fixed !important;
    z-index: 90;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px) + 24px) !important;
    left: calc(var(--rw-side-nav, 144px) + 32px + (100vw - var(--rw-side-nav, 144px) - 64px) * 0.15) !important;
    width: calc((100vw - var(--rw-side-nav, 144px) - 64px) * 0.7) !important;
    max-width: none !important;
    height: auto !important;
    max-height: min(78vh, calc(100dvh - var(--rw-header-h) - 48px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: auto !important;
    margin: 0 !important;
    background: #e2e8f0;
    border: 2px solid #334155;
    border-radius: 16px;
    padding: 16px 20px 8px;
    box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.45);
  }

  .ra-owner__page:has(#rwAgentInvoiceEstimatePick:not([hidden])) #rwAgentInvoiceListView[hidden],
  .ra-owner__page:has(#rwAgentOwnerInvoiceEstimatePick:not([hidden])) #rwAgentOwnerInvoiceListPane[hidden],
  .ra-owner__page:has(#rwVendorInvoiceEstimatePick:not([hidden])) #rwVendorInvoiceListPane[hidden]{
    display: none !important;
  }

  #rwVendorBillRows .ra-inv-address{
    width: calc((24.3% - 20px) * 0.6);
    max-width: calc((24.3% - 20px) * 0.6);
  }

  #rwVendorBillRows .ra-inv-paid,
  #rwVendorBillRows .ra-inv-total{
    width: 10.3%;
    max-width: 10.3%;
  }

  #rwVendorBillRows .ra-inv-status{
    width: calc(11% + 45px);
    max-width: calc(11% + 45px);
  }

  #rwAgentEstimateLinePage:not([hidden]){
    position: fixed !important;
    z-index: 80;
    top: calc(var(--rw-header-h) + env(safe-area-inset-top, 0px) + 24px) !important;
    left: calc(var(--rw-side-nav, 144px) + 32px + (100vw - var(--rw-side-nav, 144px) - 64px) * 0.15) !important;
    width: calc((100vw - var(--rw-side-nav, 144px) - 64px) * 0.7) !important;
    max-width: none !important;
    height: auto !important;
    max-height: min(78vh, calc(100dvh - var(--rw-header-h) - 48px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: auto !important;
    margin: 0 !important;
    background: #e2e8f0;
    border: 2px solid #334155;
    border-radius: 16px;
    padding: 16px 20px 8px;
    box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.45);
  }

  #rwAgentPropertyDetail:not([hidden]),
  #rwOwnerPropertyDetail:not([hidden]),
  #rwAgentEstimateDetail:not([hidden]),
  #rwOwnerEstimateDetail:not([hidden]),
  #rwVendorEstimateDetail:not([hidden]),
  #rwAgentOwnerDetail:not([hidden]),
  #rwAgentTenantDetail:not([hidden]),
  #rwOwnerDetail:not([hidden]){
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    align-items: center;
    column-gap: 8px;
  }

  #rwAgentPropertyDetail:not([hidden]) > .ra-list-x,
  #rwOwnerPropertyDetail:not([hidden]) > .ra-list-x,
  #rwAgentEstimateDetail:not([hidden]) > .ra-list-x,
  #rwOwnerEstimateDetail:not([hidden]) > .ra-list-x,
  #rwVendorEstimateDetail:not([hidden]) > .ra-list-x,
  #rwAgentOwnerDetail:not([hidden]) > .ra-list-x,
  #rwAgentTenantDetail:not([hidden]) > .ra-list-x,
  #rwOwnerDetail:not([hidden]) > .ra-list-x{
    grid-column: 2;
    grid-row: 1;
    position: static !important;
    align-self: center !important;
    justify-self: end;
    margin: 0 !important;
  }

  #rwAgentPropertyDetail:not([hidden]) > .ra-owner__title,
  #rwOwnerPropertyDetail:not([hidden]) > .ra-owner__title,
  #rwAgentEstimateDetail:not([hidden]) > .ra-owner__title,
  #rwOwnerEstimateDetail:not([hidden]) > .ra-owner__title,
  #rwVendorEstimateDetail:not([hidden]) > .ra-owner__title,
  #rwAgentOwnerDetail:not([hidden]) > .ra-owner__title,
  #rwAgentTenantDetail:not([hidden]) > .ra-owner__title,
  #rwOwnerDetail:not([hidden]) > .ra-owner__title{
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  #rwAgentPropertyDetail:not([hidden]) > :not(.ra-list-x):not(.ra-owner__title),
  #rwOwnerPropertyDetail:not([hidden]) > :not(.ra-list-x):not(.ra-owner__title),
  #rwAgentEstimateDetail:not([hidden]) > :not(.ra-list-x):not(.ra-owner__title),
  #rwOwnerEstimateDetail:not([hidden]) > :not(.ra-list-x):not(.ra-owner__title),
  #rwVendorEstimateDetail:not([hidden]) > :not(.ra-list-x):not(.ra-owner__title),
  #rwAgentOwnerDetail:not([hidden]) > :not(.ra-list-x):not(.ra-owner__title),
  #rwAgentTenantDetail:not([hidden]) > :not(.ra-list-x):not(.ra-owner__title),
  #rwOwnerDetail:not([hidden]) > :not(.ra-list-x):not(.ra-owner__title){
    grid-column: 1 / -1;
  }
}

#rwAgentEstimateLinePage .ra-portal__chat-title-bar{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#rwAgentEstimateLinePage .ra-list-x,
.ra-estimate-line-page .ra-list-x{
  display: inline-grid !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin: 0 0 0 auto !important;
  justify-self: end;
  background: transparent !important;
}

#rwAgentEstimateProperty:has(option[value=""]:checked){
  color: #b91c1c;
}

#rwAgentEstimateVendorLabel:empty::before{
  content: "Select vendor";
  color: #b91c1c;
}

#rwAgentEstimateDesc::placeholder{
  color: #b91c1c;
  opacity: 1;
}

#rwAgentEstimateLinePage .ra-portal__chat-title-text{
  font-size: 1.35rem;
}

#rwAgentEstimateLinePage .ra-estimate-line-page__fields,
#rwAgentEstimateLinePage .ra-estimate-tax-amount,
#rwAgentEstimateLinePage .ra-estimate-tax-included,
#rwAgentEstimateLinePage input{
  font-size: 15px;
  gap: 12px;
}

#rwAgentEstimateLinePage .ra-estimate-footer,
.ra-estimate-line-page > .ra-estimate-footer{
  justify-content: center;
  background: transparent;
  margin-top: 26px;
  padding: 0 0 12px;
}

#rwAgentEstimateLinePage .ra-estimate-line-page__fields,
#rwVendorEstimateLinePage .ra-estimate-line-page__fields{
  padding-bottom: 0;
}

#rwAgentEstimateLinePage > .ra-estimate-footer,
#rwVendorEstimateLinePage > .ra-estimate-footer{
  position: static !important;
  left: auto;
  right: auto;
  bottom: auto;
  min-height: 0;
  margin: 26px 0;
  padding: 0;
}

#rwAgentEstimateLinePage #rwAgentEstimateLineBack,
#rwVendorEstimateLinePage #rwVendorEstimateLineBack{
  display: none !important;
}

body:has(#rwAgentEstimateLinePage:not([hidden])) #rwMobileBack,
body:has(#rwVendorEstimateLinePage:not([hidden])) #rwMobileBack{
  display: none !important;
}

#rwAgentEstimateLinePage #rwAgentEstimateLineSave,
.ra-estimate-line-page [id$="LineSave"]{
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 144px;
  min-width: 144px;
  height: 43.2px;
  min-height: 43.2px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--rw-navy-shine);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ra-dash__activity-board{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}

#rwAgentDashRecentConversationRow{ grid-column: 1; grid-row: 1; }
#rwAgentDashRecentInvoiceRow{ grid-column: 2; grid-row: 1; }
.ra-dash__activity-gap{
  grid-column: 1 / -1;
  grid-row: 2;
  height: 28px;
}
#rwAgentDashRecentEstimateRow{ grid-column: 1; grid-row: 3; }
.ra-dash__activity--blank{ grid-column: 2; grid-row: 3; min-height: 1px; }

.ra-dash__activity-board .ra-dash__activity{
  margin-top: 0;
}

.ra-home__rentals{
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#rwRentals{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  min-height: calc(100dvh - var(--rw-header-h));
  padding: 16px 16px 48px;
  background: #e2e8f0;
  overflow: auto;
}

#rwRentals[hidden]{
  display: none !important;
}

body:has(#rwRentals:not([hidden])){
  height: auto;
  min-height: 100dvh;
  overflow: auto;
}

body:has(#rwRentals:not([hidden])) #rwRentalsLink,
body:has(#rwRentals:not([hidden])) #rwRentalsClose,
body:has(#rwRentals:not([hidden])) .ra-owner__nav{
  display: none !important;
}

body:has(#rwRentals:not([hidden])) .ra-portal__main{
  display: block !important;
  grid-template-columns: none !important;
}

body:has(#rwRentals:not([hidden])) #rwRentals{
  height: auto;
  min-height: calc(100dvh - var(--rw-header-h));
}

.ra-rentals__top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.ra-rentals__top-side{
  flex: 1 1 0;
  min-width: 0;
  max-width: 46%;
}

.ra-rentals__top-side--end{
  margin-left: auto;
}

.ra-rentals__consult,
.ra-rentals__banner{
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  white-space: pre-wrap;
}

.ra-rentals__consult{
  text-align: right;
}

.ra-rentals__banner{
  text-align: left;
}

.ra-rentals__banner[hidden],
.ra-rentals__line-form[hidden],
#rwRentalTitleForm[hidden],
#rwRentalPreview[hidden],
#rwRentalIntroSave[hidden],
#rwRentalIntroStatus[hidden],
#rwRentalBgLabel[hidden]{
  display: none !important;
}

.ra-rentals__bg{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.ra-rentals__bg input{
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ra-rentals__header-status{
  margin: 0;
  color: #86efac;
  font-size: 0.85rem;
  font-weight: 700;
}

.ra-rentals__header-status.is-error{
  color: #fdba74;
}

.ra-rentals__line-form{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.ra-rentals__line-form input,
#rwRentalTitleInput{
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font: inherit;
  font-size: 1rem;
}

.ra-rentals__lead{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 100%;
  margin-top: 36px;
  text-align: center;
}

.ra-rentals__title{
  width: 75%;
  align-self: center;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

#rwRentalApplyOnline,
#rwRentalSearchSubmit{
  border: 0;
  border-radius: 12px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px rgba(11, 35, 64, 0.2);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  cursor: pointer;
}

.ra-rentals__pitch{
  margin: 0;
  width: 100%;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ra-rentals__pitch[hidden],
.ra-rentals__pitch-form[hidden]{
  display: none !important;
}

.ra-rentals__pitch-form{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 75%;
}

#rwRentalPitchInput{
  width: 100%;
  min-height: 7.5rem;
  box-sizing: border-box;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  resize: vertical;
}

.ra-rentals__pitch-save{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.ra-rentals__align{
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ra-rentals__align button{
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #6d8299;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.ra-rentals__align button.is-on{
  background: #d4e1ee;
}

.ra-rentals__mini-save{
  border: 0;
  border-radius: 8px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 3px 8px;
  cursor: pointer;
}

.ra-rentals__pitch-status{
  margin: 0;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 700;
}

.ra-rentals__pitch-status.is-error{
  color: #b45309;
}

.ra-rentals__pitch-status[hidden]{
  display: none !important;
}

.ra-rentals__search{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 100%;
}

.ra-rentals__search-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
}

.ra-rentals__search-row label,
.ra-rentals__search-field{
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
}

.ra-rentals__search input,
.ra-rentals__search select{
  width: 9rem;
  height: calc(24.67px * 1.3);
  box-sizing: border-box;
  text-align: left;
}

.ra-rentals__search-field select{
  width: calc(18rem + 28px);
}

body.ra-portal--signed-in #rwRentals{
  height: 100%;
  min-height: 0;
}

.ra-rentals__bar{
  display: flex;
  align-items: center;
  gap: 12px;
}

.ra-rentals__bar h2,
.ra-rentals__bar h3{
  margin: 0;
  flex: 1 1 auto;
}

#rwRentalsClose,
#rwRentalGalleryClose,
#rwRentalPhotoClose,
#rwRentalApplicationDetailClose{
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ra-rentals__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 20px;
  align-items: start;
  box-sizing: border-box;
  width: 100%;
  padding: 0 100px;
}

.ra-rentals__card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.ra-rentals__facts{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  line-height: 1.15;
}

.ra-rentals__shot{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #dbe3ee;
  cursor: pointer;
}

.ra-rentals__shot img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #dbe3ee;
}

#rwRentalGalleryImg,
#rwRentalPhotoImg{
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: cover;
  background: #dbe3ee;
  border-radius: 12px;
}

#rwRentalGalleryImg[hidden],
#rwRentalPhotoImg[hidden],
#rwRentalGalleryEmpty[hidden],
#rwRentalCall[hidden],
#rwRentalDetailPhone[hidden],
#rwRentalDetailPane[hidden],
#rwRentalMapPane[hidden],
.ra-rentals__viewer[hidden]{
  display: none !important;
}

.ra-rentals__placeholder{
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  color: #64748b;
  font-size: 0.9rem;
}

.ra-rentals__words,
.ra-rentals__kind,
.ra-rentals__count{
  width: 100%;
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}

.ra-rentals__card textarea,
.ra-rentals__card input,
.ra-rentals__card select,
.ra-rentals__price input,
.ra-rentals__rooms input{
  box-sizing: border-box;
  font: inherit;
  text-align: center;
}

.ra-rentals__grid--edit .ra-rentals__card{
  border: 1px solid #94a3b8;
  padding: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.ra-rentals__price{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
}

.ra-rentals__price input{
  width: 6rem;
  margin-left: 4px;
  margin-right: 1ch;
}

.ra-rentals__rooms{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  line-height: 1.15;
  color: #0f172a;
  font-size: 0.95rem;
}

.ra-rentals__rooms input{
  width: 3.2rem;
}

.ra-rentals__address{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
}

.ra-rentals__address input{
  flex: 1;
  min-width: 0;
  width: auto;
  text-align: center;
}

.ra-rentals__available{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
}

.ra-rentals__available input{
  width: 9rem;
  text-align: center;
}

#rwRentalAdd{
  margin-top: 8px;
}

#rwRentalSearchSubmit:disabled{
  opacity: 0.45;
  cursor: default;
}

.ra-rentals__remove,
.ra-rentals__add-photo,
.ra-rentals__actions button,
.ra-rentals__form-actions button,
#rwRentalAdd{
  border: 0;
  border-radius: 10px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}

.ra-rentals__add-photo{
  display: inline-flex;
  width: fit-content;
}

.ra-rentals__actions,
.ra-rentals__form-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ra-rentals__composer{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  padding: 0 100px 8px;
}

.ra-rentals__composer[hidden]{
  display: none !important;
}

.ra-rentals__composer-shot,
.ra-rentals__composer-field,
.ra-rentals__composer .ra-rentals__price,
.ra-rentals__composer .ra-rentals__rooms,
.ra-rentals__composer .ra-rentals__available{
  width: calc((100% - 40px) / 3);
}

.ra-rentals__composer-shot{
  cursor: pointer;
}

.ra-rentals__composer-field{
  display: grid;
  gap: 4px;
  margin: 0;
}

.ra-rentals__composer-field input,
.ra-rentals__composer-field textarea,
.ra-rentals__composer-field select{
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font: inherit;
}

.ra-rentals__sheet{
  position: fixed;
  z-index: 40;
  inset: calc(var(--rw-header-h) + 12px) 12px 12px;
  overflow: auto;
  box-sizing: border-box;
  padding: 16px;
  border: 2px solid #334155;
  border-radius: 16px;
  background: #e2e8f0;
  box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.45);
}

.ra-rentals__sheet[hidden]{
  display: none !important;
}

#rwRentalApply{
  left: 10%;
  right: 10%;
}

.ra-rentals__apply,
.ra-rentals__apply legend,
.ra-rentals__apply label,
.ra-rentals__apply p,
.ra-rentals__fine{
  font-size: 13.8px;
  line-height: 1.35;
}

.ra-rentals__apply input:not([type="checkbox"]),
.ra-rentals__apply select{
  box-sizing: border-box;
  min-height: 27.6px;
}

.ra-rentals__apply textarea{
  box-sizing: border-box;
  min-height: 55.2px;
}

.ra-rentals__apply-read{
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.ra-rentals__apply-read div{
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 12px;
}

.ra-rentals__apply-read dt,
.ra-rentals__apply-read dd{
  margin: 0;
}

#rwRentalApplications tr[data-rw-application]{
  cursor: pointer;
}

.ra-rentals__detail{
  background: #fff;
}

.ra-rentals__detail-col{
  width: 100%;
  margin: 0 auto;
  text-align: left;
  color: #0f172a;
}

.ra-rentals__detail-top{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.ra-rentals__inquire{
  margin: 8px 0 0;
  padding: 14px 16px;
  border: 1px solid #6d8299;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.ra-rentals__inquire-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ra-rentals__inquire-head h4{
  margin: 0;
}

.ra-rentals__inquire-head a{
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.ra-rentals__detail-photo{
  display: block;
  width: 100%;
  margin: 8px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ra-rentals__detail-street,
.ra-rentals__detail-city{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.ra-rentals__detail-rent{
  margin: 14px 0 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.ra-rentals__detail-currency{
  margin: 2px 0 12px;
  color: #64748b;
  font-size: 0.95rem;
}

.ra-rentals__detail h4{
  margin: 18px 0 8px;
  font-size: 1.15rem;
}

.ra-rentals__specs{
  display: grid;
  margin: 0 0 12px;
}

.ra-rentals__specs div{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid #e4ebf2;
}

.ra-rentals__specs dt,
.ra-rentals__specs dd{
  margin: 0;
}

.ra-rentals__tabs{
  display: flex;
  gap: 18px;
  margin-top: 8px;
  border-bottom: 1px solid #cbd5e1;
}

.ra-rentals__tabs button{
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  padding: 8px 0;
  cursor: pointer;
}

.ra-rentals__tabs button.is-on{
  border-bottom-color: #0e2948;
}

#rwRentalDetailBlurb{
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

#rwRentalMapFrame{
  display: block;
  width: 100%;
  height: 280px;
  margin-top: 12px;
  border: 0;
}

.ra-rentals__agent{
  margin: 0;
}

.ra-rentals__call{
  display: inline-flex;
  margin: 8px 0 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

#rwRentalInquire button{
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--rw-navy-shine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
}

.ra-rentals__detail .ra-rentals__inquire label{
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.ra-rentals__inquire textarea{
  min-height: 72px;
  resize: vertical;
}

@media (max-width: 1024px){
  .ra-rentals__detail-top{
    grid-template-columns: 1fr;
  }
}

.ra-rentals__viewer{
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.72);
}

.ra-rentals__viewer-frame{
  position: relative;
  width: min(960px, 92vw);
}

#rwRentalPhotoImg{
  max-height: 82vh;
  object-fit: contain;
  background: #0f172a;
}

#rwRentalPhotoClose{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
}

.ra-rentals__viewer-arrow{
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 72px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

#rwRentalGalleryPrev{ left: 8px; }
#rwRentalGalleryNext{ right: 8px; }

.ra-rentals__sheet label,
.ra-rentals__sheet fieldset{
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
}

.ra-rentals__sheet fieldset{
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px;
}

.ra-rentals__consent{
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

#rwRentalApplications{
  overflow-x: auto;
  min-width: 0;
  touch-action: pan-x pan-y;
}

@media (min-width: 1024px){
  [data-rw-agent-page="applications"]{
    box-sizing: border-box;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1025px){
  .ra-rentals__apply input,
  .ra-rentals__apply select,
  .ra-rentals__apply textarea{
    font-size: 13.8px;
  }
}

@media (max-width: 1024px){
  body.ra-portal--agent .ra-owner__pages:has([data-rw-agent-page="properties"]:not([hidden])),
  body.ra-portal--agent .ra-owner__pages:has([data-rw-agent-page="estimates"]:not([hidden])),
  body.ra-portal--agent .ra-owner__pages:has([data-rw-agent-page="owners"]:not([hidden])),
  body.ra-portal--agent .ra-owner__pages:has([data-rw-agent-page="tenants"]:not([hidden])),
  body.ra-portal--agent .ra-owner__pages:has([data-rw-agent-page="vendors"]:not([hidden])),
  body.ra-portal--agent #rwChatPanel:not(.ra-portal__chat--thread){
    min-width: 0;
    overflow-x: hidden;
    touch-action: pan-x pan-y;
  }

  body.ra-portal--agent .ra-owner__page[data-rw-agent-page="properties"],
  body.ra-portal--agent .ra-owner__page[data-rw-agent-page="estimates"],
  body.ra-portal--agent .ra-owner__page[data-rw-agent-page="owners"],
  body.ra-portal--agent .ra-owner__page[data-rw-agent-page="tenants"],
  body.ra-portal--agent .ra-owner__page[data-rw-agent-page="vendors"]{
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.ra-portal--agent #rwPeople{
    width: 100%;
    max-width: none;
  }

  #rwPeopleList,
  #rwAgentPropertyListView,
  #rwAgentEstimateListPane,
  #rwIdlePanel,
  #rwIdleHome{
    min-width: 0;
    max-width: 100%;
  }

  #rwPeopleRows,
  #rwIdleRecentList,
  #rwAgentPropertyList,
  #rwAgentEstimateList{
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  #rwPeopleRows > table.ra-list-grid,
  #rwIdleRecentList > table.ra-list-grid,
  #rwAgentPropertyList > table.ra-list-grid,
  #rwAgentEstimateList > table.ra-list-grid{
    width: 960px;
    min-width: 960px;
    max-width: none;
    table-layout: fixed;
  }

  #rwPeopleRows > table.ra-list-grid--tenant{
    width: 940px;
    min-width: 940px;
  }

  .ra-list-grid--tenant .ra-inv-date{ width: 90px; }
  .ra-list-grid--tenant .ra-inv-name{ width: 156px; }
  .ra-list-grid--tenant .ra-inv-id{ width: 50px; }
  .ra-list-grid--tenant .ra-inv-place{ width: 289px; }
  .ra-list-grid--tenant .ra-inv-lease{ width: 188px; }
  .ra-list-grid--tenant .ra-inv-status{ width: 81px; }
  .ra-list-grid--tenant .ra-inv-active{ width: 86px; }

  #rwAgentEstimateList > table.ra-list-grid--estimate,
  #rwOwnerEstimateList > table.ra-list-grid--estimate,
  #rwVendorEstimateList > table.ra-list-grid--estimate{
    width: 784px;
    min-width: 784px;
  }

  .ra-list-grid--estimate .ra-inv-date,
  .ra-list-grid--estimate .ra-inv-paid,
  .ra-list-grid--estimate .ra-inv-total{ width: 96px; }
  .ra-list-grid--estimate .ra-inv-address,
  .ra-list-grid--estimate .ra-inv-name{ width: 160px; }
  .ra-list-grid--estimate .ra-inv-status{ width: 176px; }

  .ra-list-grid--talk .ra-inv-source{ width: calc(10% * 0.85 * 0.7 * 0.85 * 1.1 * 1.2); }
  .ra-list-grid--talk .ra-portal__unread-dot{ display: none !important; }

  .ra-invoice-toolbar{
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
  }

  .ra-invoice-filters,
  #rwAgentInvoiceFilters,
  [data-rw-agent-page="vendors"] #rwPeopleFilters,
  [data-rw-agent-page="owners"] #rwPeopleFilters,
  [data-rw-agent-page="tenants"] #rwPeopleFilters,
  #rwIdleFilters,
  #rwTenantConvFilters{
    justify-content: flex-start;
    align-items: flex-end;
    gap: 12px;
  }

  .ra-invoice-filters .ra-owner__field,
  #rwAgentInvoiceFilters .ra-owner__field,
  [data-rw-agent-page="vendors"] #rwPeopleFilters .ra-owner__field,
  [data-rw-agent-page="owners"] #rwPeopleFilters .ra-owner__field,
  [data-rw-agent-page="tenants"] #rwPeopleFilters .ra-owner__field,
  #rwIdleFilters .ra-owner__field,
  #rwTenantConvFilters .ra-owner__field{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: stretch;
    flex: 0 0 11.25rem;
    width: 11.25rem;
    min-width: 11.25rem;
    max-width: 11.25rem;
    margin: 0;
    font-size: inherit;
    font-weight: 600;
  }

  .ra-invoice-filters .ra-owner__field select,
  #rwAgentInvoiceFilters .ra-owner__field select,
  [data-rw-agent-page="vendors"] #rwPeopleFilters .ra-owner__field select,
  [data-rw-agent-page="owners"] #rwPeopleFilters .ra-owner__field select,
  [data-rw-agent-page="tenants"] #rwPeopleFilters .ra-owner__field select,
  #rwIdleFilters .ra-owner__field select,
  #rwTenantConvFilters .ra-owner__field select{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    box-sizing: border-box;
    justify-self: stretch;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font: inherit;
  }

  select.ra-filter-address{
    pointer-events: none;
  }

  .ra-filter-address-menu{
    position: fixed;
    z-index: 80;
    width: max-content;
    max-height: 50vh;
    overflow: auto;
    margin: 0;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  }

  .ra-filter-address-option{
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
  }

  .ra-filter-address-option.is-selected{
    background: #d4e1ee;
  }

  .ra-estimate-owner-line{
    display: grid;
    grid-template-columns: 6.5rem minmax(0, calc(14rem * 1.4));
    align-items: center;
    justify-content: start;
    column-gap: 8px;
    row-gap: 12px;
  }

  #rwAgentOwnerEstimateHead .ra-estimate-owner-line .ra-estimate-pair{
    display: contents;
  }

  #rwAgentOwnerEstimateHead .ra-estimate-pair select{
    width: 100%;
    max-width: none;
  }

  #rwAgentEstimateDetail:has(#rwAgentOwnerEstimateHead:not([hidden])) #rwAgentEstimateBack{
    display: none !important;
  }

  #rwVendorBillRows > table.ra-invoice-grid--pay{
    width: calc(1061px - 234px * 0.2 - 436px * 0.55);
    min-width: calc(1061px - 234px * 0.2 - 436px * 0.55);
    table-layout: fixed;
  }

  #rwVendorBillRows .ra-inv-date{ width: calc(234px * 0.8); }
  #rwVendorBillRows .ra-inv-status{ width: 153px; }
  #rwVendorBillRows .ra-inv-address{ width: calc(436px * 0.45); }
  #rwVendorBillRows .ra-inv-paid,
  #rwVendorBillRows .ra-inv-total{ width: 101px; }
  #rwVendorBillRows .ra-inv-file{ width: 36px; max-width: 36px; }

  [data-rw-vendor-page="ledger"]{
    align-items: stretch;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
  }

  [data-rw-vendor-page="ledger"] > .ra-invoice-toolbar,
  [data-rw-vendor-page="ledger"] > #rwVendorLedgerHost{
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  [data-rw-vendor-page="ledger"] #rwVendorLedgerHost{
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  [data-rw-vendor-page="ledger"] #rwVendorLedgerHost > table.ra-invoice-grid{
    width: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 0;
    table-layout: fixed;
  }

  #rwAgentOwnerInvoiceRows{
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  #rwAgentOwnerInvoiceRows > table.ra-invoice-grid{
    width: max-content;
    min-width: 860px;
    table-layout: auto;
  }

  body.ra-portal--vendor #rwChatPanel:not(.ra-portal__chat--thread){
    padding: 0;
    overflow: auto;
  }

  body.ra-portal--vendor #rwChatPanel:not(.ra-portal__chat--thread) .ra-portal__chat-main{
    padding: 12px;
  }

  #rwTenantConvRows{
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  #rwTenantConvRows > table.ra-list-grid,
  body.ra-portal--owner #rwIdleRecentList > table.ra-list-grid,
  body.ra-portal--vendor #rwIdleRecentList > table.ra-list-grid{
    width: 960px;
    min-width: 960px;
    max-width: none;
    table-layout: fixed;
  }

  #rwChatPanel:not(.ra-portal__chat--thread) #rwIdlePanel,
  #rwChatPanel:not(.ra-portal__chat--thread) #rwIdleHome,
  #rwChatPanel:not(.ra-portal__chat--thread) #rwIdleRecentList,
  #rwTenantConvList,
  #rwTenantConvRows{
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    background: transparent;
  }

  #rwChatPanel.ra-portal__chat--thread .ra-list-x{
    grid-row: 1;
    align-self: center !important;
  }

  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread #rwChatBackFooter{
    display: none !important;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread{
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread #rwChatMain,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread #rwChatMain,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwChatMain,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread #rwChatMain{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread #rwConversationBox,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread #rwConversationBox,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwConversationBox,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread #rwConversationBox{
    flex: 1 1 auto;
    width: 100% !important;
    max-width: none !important;
    min-height: 0;
    margin: 0;
    border-radius: 0;
  }

  #rwChatPanel.ra-portal__chat--thread .ra-portal__chat-title-bar{
    width: 100%;
    border-radius: 0 !important;
    background: #d1d5db !important;
  }

  body.ra-portal--owner #rwChatPanel.ra-portal__chat--thread #rwChatFooter,
  body.ra-portal--tenant #rwChatPanel.ra-portal__chat--thread #rwChatFooter,
  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwChatFooter,
  body.ra-portal--vendor #rwChatPanel.ra-portal__chat--thread #rwChatFooter{
    flex: 0 0 auto;
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: #fff;
  }

  #rwChatPanel.ra-portal__chat--thread .ra-portal__composer{
    width: 100%;
    max-width: none;
  }

  #rwChatPanel.ra-portal__chat--thread #rwChatBackFooter{
    display: none !important;
  }

  #rwChatPanel.ra-portal__chat--thread #rwChatCloseBtn,
  #rwChatPanel.ra-portal__chat--thread #rwAddVendorBtn{
    width: 4.2rem;
    height: auto;
    min-height: 2.4rem;
    padding: 4px 6px;
    border: 0;
    border-radius: 10px;
    background: #1d4ed8 !important;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: normal;
    line-height: 1.05;
    text-align: center;
  }

  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwChatCloseBtn{
    display: none !important;
  }

  body.ra-portal--agent #rwChatPanel.ra-portal__chat--thread #rwAddVendorBtn{
    grid-column: 1;
    grid-row: 1 / span 2;
  }
}

body.ra-portal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
body.ra-portal select,
body.ra-portal textarea{
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #6d8299 !important;
}

#rwAgentOwnerInvoiceDetail:not([hidden]),
#rwVendorInvoiceDetail:not([hidden]){
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  column-gap: 8px;
}

#rwAgentOwnerInvoiceDetail:not([hidden]) > .ra-list-x,
#rwVendorInvoiceDetail:not([hidden]) > .ra-list-x,
#rwAgentInvoiceModal.is-open .ra-invoice-sheet__x{
  display: grid !important;
  grid-column: 2;
  grid-row: 1;
  position: static !important;
  top: auto !important;
  align-self: center !important;
  justify-self: end;
  margin: 0 !important;
  background: transparent !important;
}

#rwAgentOwnerInvoiceDetail:not([hidden]) > .ra-owner__title,
#rwVendorInvoiceDetail:not([hidden]) > .ra-owner__title,
#rwAgentInvoiceModal.is-open #rwAgentInvoiceDetail:not([hidden]) > .ra-owner__title{
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding-right: 0;
}

#rwAgentOwnerInvoiceDetail:not([hidden]) > :not(.ra-list-x):not(.ra-owner__title),
#rwVendorInvoiceDetail:not([hidden]) > :not(.ra-list-x):not(.ra-owner__title){
  grid-column: 1 / -1;
}

#rwAgentInvoiceModal.is-open .ra-invoice-sheet__panel:has(#rwAgentInvoiceDetail:not([hidden])){
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  column-gap: 8px;
}

#rwAgentInvoiceModal.is-open #rwAgentInvoiceDetail:not([hidden]){
  display: contents;
}

#rwAgentInvoiceModal.is-open #rwAgentInvoiceDetail:not([hidden]) > :not(.ra-owner__title){
  grid-column: 1 / -1;
}
