body:has(#portal-list:not([hidden]) #service-history[hidden]) .portal-shell{max-width:1440px;margin:auto;padding:clamp(16px,3vw,44px)}
body:has(#portal-list:not([hidden]) #service-history[hidden]) :is(#portal-heading,.portal-shell>.eyebrow){display:none}
#property-overview{min-width:0}
#portal-list:has(#service-history:not([hidden])) #property-overview{display:none}
#portal-list:has(#service-history[hidden]){display:grid;grid-template-columns:200px minmax(0,1fr);gap:14px 28px;background:#f7f8f5;border:0}
#portal-list[hidden]{display:none!important}
#portal-list:has(#service-history[hidden]) .service-home{display:flex;flex-direction:column;grid-column:1;align-self:start;margin:0;gap:5px}
#portal-list:has(#service-history[hidden]) .service-tile,#portal-list #portal-next-visit-button{background:white;color:#184b39;min-height:44px;border:1px solid #dce5dd;text-align:left;justify-content:flex-start;padding:10px 14px;border-radius:8px}
#property-overview{grid-column:2;grid-row:1/span 4}
.overview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}.overview-head h2{font-size:clamp(28px,3vw,42px);letter-spacing:-.04em;margin:0}
.overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.overview-grid>section{padding:20px;background:white;border:1px solid #dbe3db;border-radius:14px}.overview-grid h3{margin:0 0 12px}.overview-grid button{margin-top:12px}.overview-grid .overview-visit{background:#e6efdf;grid-column:1/-1}.overview-visit .next-visit-card{background:transparent;border:0;padding:0}.overview-photos{grid-column:1/-1}
[data-images]{display:flex;gap:10px;flex-wrap:wrap}[data-images] button{width:min(30%,180px);padding:0;background:none;margin:0;border:0}[data-images] img{display:block;width:100%;aspect-ratio:1.45;object-fit:cover;border-radius:8px}
@media(max-width:700px){#portal-list:has(#service-history[hidden]){display:flex;flex-direction:column;padding:10px}#portal-list:has(#service-history[hidden]) .service-home{flex-direction:row;flex-wrap:wrap;width:100%}#portal-list .service-home:has(#overview-menu:not([aria-expanded=true])) .service-tile{display:none}#overview-menu{min-height:44px}.overview-grid{grid-template-columns:1fr}.overview-head{flex-direction:column-reverse;align-items:stretch}.overview-grid section{padding:16px}}
@media(min-width:701px){#overview-menu{display:none}}
#overview-menu,.overview-current{display:none}
body:has(#portal-list:not([hidden]) #service-history[hidden])>header{background:#103d2b;color:white;display:flex;align-items:center;gap:12px;min-height:54px;padding:8px 16px}
body:has(#portal-list:not([hidden]) #service-history[hidden]) .portal-shell{padding:12px;max-width:1300px}
body:has(#portal-list:not([hidden]) #service-history[hidden]):not(.portal-preview) #portal-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0}
#portal-list:has(#service-history[hidden]){margin:0;padding:12px;background:#fdfbf6;box-shadow:none}
#property-overview .overview-head h2{font-size:clamp(23px,2.5vw,34px)}
.overview-head select{height:44px;font-size:16px}
.overview-grid .overview-visit{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:4px 12px;background:#e0e9d4}
.overview-calendar{grid-row:span 2;width:42px;height:44px;fill:none;stroke:#17492f;stroke-width:1.6}
#property-overview .next-visit-card p{margin:3px 0;font-size:15px;line-height:1.35;color:#21382c}
#property-overview .next-visit-label{padding:0;background:none;color:#17492f;font-size:16px;font-weight:700}
#property-overview .next-visit-date,[data-balance] strong{display:block;font-weight:750;font-size:22px}
#property-overview :is([data-next],[data-gallery],[data-invoices]){background:transparent!important;color:#16452e!important;border:0;box-shadow:none;text-decoration:underline;min-height:36px;padding:4px 0;margin:0;text-align:left;justify-self:start}
#property-overview [data-latest] button{width:100%}
.overview-grid>section{border-radius:8px;padding:14px}.overview-grid h3{font-size:19px;margin:0 0 5px}.photos-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
#property-overview .overview-photos{background:transparent;border:0;padding:0}
#property-overview [data-images]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#property-overview [data-images] button{width:100%}
@media(min-width:701px){#overview-navigation .overview-current{display:block;background:#d8e5cf;border-left:4px solid #205b39;padding:12px}}
@media(max-width:700px){body:has(#portal-list:not([hidden]) #service-history[hidden]) #overview-menu{display:inline-flex;background:transparent;color:white;border:0;margin:0;padding:6px;font-size:22px}body:has(#portal-list:not([hidden]) #service-history[hidden]) .customer-ribbon{display:none!important}body:has(#portal-list #service-history[hidden]) #overview-navigation{display:none}body:has(#overview-menu[aria-expanded=true]) #portal-list #overview-navigation{display:flex}#portal-list #overview-navigation .service-tile{display:flex}#portal-list:has(#service-history[hidden]){padding:0;gap:0}.overview-head{gap:10px;margin:0 0 10px}.overview-grid{gap:9px}.overview-grid>section{padding:12px}.portal-brand{min-width:0}#customer-portal-user{overflow-wrap:anywhere}}

.client-wordmark{display:none}body:has(#portal-list:not([hidden]) #service-history[hidden]) .client-wordmark{display:block;text-transform:uppercase;font-size:13px;letter-spacing:.025em;font-weight:750}
body:has(#portal-list:not([hidden]) #service-history[hidden]) .portal-brand{display:flex;align-items:center;gap:8px}
body:has(#portal-list:not([hidden]) #service-history[hidden]) .portal-brand img{width:38px;height:38px}
body:has(#portal-list:not([hidden]) #service-history[hidden]) .portal-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
body:has(#portal-list:not([hidden]) #service-history[hidden]) #customer-portal-user{font-size:12px}
@media(max-width:700px){body:has(#portal-list:not([hidden]) #service-history[hidden]) .portal-heading{display:grid;gap:0}.client-wordmark{line-height:1.05}}

#property-overview [data-picker] select{box-sizing:border-box;line-height:1.2;padding:0 32px 0 12px;height:44px}
#property-overview [data-images]:not(:has(button)){display:block}
#portal-list #overview-navigation .service-tile{width:100%;display:flex;flex-direction:row;align-items:center;gap:10px;aspect-ratio:auto;height:auto;min-height:44px;background:transparent;color:#153b29;border:0;box-shadow:none}
#portal-list #overview-navigation .service-tile span{font-size:17px}
#portal-list #overview-navigation #portal-photos{order:2}#portal-list #overview-navigation #portal-billing-button{order:3}#portal-list #overview-navigation #portal-next-visit-button{order:4}

body:has(#portal-list:not([hidden]) #service-history[hidden]) .client-wordmark[hidden]{display:block!important}
@media(max-width:700px){body:has(#portal-list:not([hidden]) #service-history[hidden]) #overview-menu[hidden]{display:inline-flex!important}body:has(#portal-list:not([hidden]) #service-history[hidden]) #customer-portal-user{max-width:32vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

body[data-portal=customer]:has(.customer-ribbon:not([hidden]))>header{position:relative;z-index:5;background:#163d32;color:white}
#client-section-menu{position:absolute;top:100%;left:10px;width:min(260px,calc(100vw - 20px));padding:6px;background:white;border:1px solid #ccd8cf;border-radius:9px;box-shadow:0 6px 16px #14372924}
#client-section-menu:not([hidden]){display:grid}
#client-section-menu button{background:white!important;color:#173e30!important;text-align:left;padding:10px 14px;min-height:44px;border:0;box-shadow:none}
#client-section-menu button:hover,#client-section-menu button:focus-visible{background:#edf4ed!important}
#portal-list:has(#service-history:not([hidden])) #overview-navigation{display:none!important}
body:has(#portal-list:not([hidden]) #service-history:not([hidden])) .portal-shell>.eyebrow{display:none}
body:has(#portal-list:not([hidden]) #service-history:not([hidden])) #portal-status{margin:4px 0;font-size:14px;padding:6px 0;background:none}
#service-history #service-home-back{background:transparent!important;color:#17432e!important;padding-left:0;border:0;box-shadow:none}
@media(max-width:800px){
 body[data-portal=customer]:has(.customer-ribbon:not([hidden])) #overview-menu[hidden]{display:inline-flex!important;align-items:center;justify-content:center;color:white;background:transparent;border:0;min-width:44px}
 body[data-portal=customer] .customer-ribbon{display:none!important}
 body[data-portal=customer] #portal-list #overview-navigation{display:none!important}
}


#property-overview .overview-primary{margin:0 0 1rem}
.overview-primary img{display:block;max-width:100%;max-height:22rem;border-radius:8px;margin:.5rem 0}
.overview-primary [data-photo-status]:empty{display:none}
#property-overview :is([data-next],[data-gallery],[data-invoices]){padding:8px 14px;min-height:44px}

.overview-primary [data-primary-image]:has(img){position:relative;display:table;max-width:100%;margin:.5rem 0}
.overview-primary [data-primary-image] img{margin:0}
#property-overview [data-primary-image] [data-change-photo]{position:absolute;bottom:4px;left:4px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;color:white!important;background:radial-gradient(circle,#173e30 0 52%,transparent 54%)!important}

/* The signed-in workspace provides its own section navigation. */
@media screen {
  .client-workspace.signed-in #portal-list:has(#service-history[hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }
  .client-workspace.signed-in #property-overview {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
  .signed-in .overview-primary [data-primary-image]:has(img),
  .signed-in .overview-primary [data-primary-image] img {
    display: block;
    width: 100%;
  }
  .signed-in .overview-primary [data-primary-image] img {
    height: auto;
    max-height: none;
  }
}
