/* Ruitwassr portal design system, derived from the approved dashboard mockup.
   Scoped to authenticated beheer/pro shells so public pages remain untouched. */

.page-shell.portal-owner,
.page-shell.portal-pro {
  width: 100%;
  max-width: none;
  margin: 0;
}

.portal-owner .topbar,
.portal-pro .topbar {
  min-height: 86px;
  padding: 0 clamp(24px, 4.2vw, 72px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e6edf2;
  box-shadow: 0 1px 0 rgba(16,33,58,.025);
  position: relative;
  z-index: 90;
}

.portal-owner .brand,
.portal-pro .brand { flex: 0 0 auto; }

.portal-owner .brand-context,
.portal-pro .brand-context {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: #eaf4ff;
  color: #1767b1;
  font-size: 11px;
  letter-spacing: .015em;
  text-transform: none;
}

.owner-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.owner-nav-link {
  position: relative;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #253d58;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.owner-nav-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.owner-nav-link:hover {
  color: #0b5fa8;
  background: #f3f8fc;
}

.owner-nav-link.active {
  color: #095cac;
  background: #e7f2ff;
  border-color: #dbeeff;
}

.owner-nav-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #df3d4d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(223,61,77,.25);
}

.owner-nav-form { margin: 0; }
.owner-nav-form .owner-nav-link { border: 0; font: inherit; }

.owner-page {
  width: min(1520px, calc(100% - 64px));
  margin: 0 auto;
  padding: 42px 0 54px;
}

.owner-page-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 42px;
  align-items: end;
  margin-bottom: 30px;
}

.owner-page-hero .eyebrow { color: #14809a; }
.owner-page-hero h1 {
  margin: 7px 0 10px;
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: .95;
  letter-spacing: -.055em;
  color: #102442;
}
.owner-page-hero p {
  max-width: 650px;
  margin: 0;
  color: #71839a;
  font-size: 17px;
  line-height: 1.55;
}

.owner-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}
.owner-stat {
  min-width: 200px;
  min-height: 126px;
  padding: 20px;
  border: 1px solid #dce9f3;
  border-radius: 16px;
  background: linear-gradient(145deg,#f6fbff,#eef7ff);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
  align-items: start;
}
.owner-stat.green { background: linear-gradient(145deg,#f5fcf8,#edf9f3); border-color:#d9eee4; }
.owner-stat.slate { background: linear-gradient(145deg,#f8fbfd,#eff4f8); border-color:#e0e8ee; }
.owner-stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f2ff;
  color: #1267b3;
}
.owner-stat.green .owner-stat-icon { background:#e3f6eb; color:#158456; }
.owner-stat.slate .owner-stat-icon { background:#e9f0f6; color:#4d647c; }
.owner-stat-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.owner-stat-label { display:block; color:#31475f; font-size:13px; font-weight:820; }
.owner-stat strong { display:block; margin-top:2px; color:#102442; font-size:34px; line-height:1; letter-spacing:-.04em; }
.owner-stat small { display:block; margin-top:6px; color:#7a8a9d; font-size:12px; }

.owner-inbox-toolbar {
  display: grid;
  grid-template-columns: minmax(280px,1fr) 190px 190px 180px;
  gap: 14px;
  margin-bottom: 22px;
}
.owner-search { position: relative; }
.owner-search svg {
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:21px;
  height:21px;
  stroke:#55708a;
  fill:none;
  stroke-width:1.9;
  pointer-events:none;
}
.owner-search input,
.owner-inbox-toolbar select,
.owner-inbox-toolbar .ruit-select-trigger {
  min-height: 54px !important;
  margin-top: 0 !important;
  border-radius: 13px !important;
  background: #fff;
  border-color: #d7e3ec;
  box-shadow: 0 2px 7px rgba(26,55,78,.025);
  font-size: 14px;
}
.owner-search input { padding-left: 50px; }
.owner-inbox-toolbar .ruit-select { margin-top:0; }

.owner-inbox-list { display:grid; gap:14px; }
.owner-application-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px,1.05fr) minmax(210px,.9fr) minmax(190px,.8fr) minmax(240px,1fr) minmax(180px,.72fr);
  min-height: 158px;
  align-items: stretch;
  border: 1px solid #dce7ef;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 28px rgba(32,67,94,.045);
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.owner-application-card:hover { transform: translateY(-1px); box-shadow:0 12px 30px rgba(32,67,94,.07); }
.owner-application-card.is-new {
  border-color: #cfe5f7;
  background: linear-gradient(100deg,#f9fcff 0%,#f2f9ff 100%);
}
.owner-application-cell {
  min-width:0;
  padding: 23px 24px;
  display:flex;
  align-items:center;
  border-right:1px solid #e3ebf1;
}
.owner-application-cell:last-child { border-right:0; }
.owner-person { display:flex; align-items:center; gap:16px; min-width:0; }
.owner-avatar {
  width:60px;
  height:60px;
  flex:0 0 60px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e7f3ff;
  color:#145eaa;
  font-size:20px;
  font-weight:900;
}
.owner-avatar.cleaner { background:#e7f7ef; color:#147554; }
.owner-person-copy { min-width:0; }
.owner-person-copy h2 { margin:0; color:#102442; font-size:18px; letter-spacing:-.025em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.owner-type-pill {
  display:inline-flex;
  align-items:center;
  margin-top:7px;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  background:#eaf1f7;
  color:#536b81;
  font-size:11px;
  font-weight:820;
}
.owner-person-copy small { display:block; margin-top:7px; color:#8492a3; font-size:12px; }

.owner-info { display:flex; gap:12px; align-items:flex-start; min-width:0; }
.owner-info-icon { width:28px; height:28px; flex:0 0 28px; color:#0e6bc1; }
.owner-info-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.owner-info-copy { min-width:0; }
.owner-info-copy strong { display:block; color:#18314f; font-size:14px; line-height:1.35; }
.owner-info-copy span,
.owner-info-copy small { display:block; margin-top:5px; color:#74869b; font-size:12px; line-height:1.45; }
.owner-service-list { display:grid; gap:5px; margin-top:6px; }
.owner-service-list span { position:relative; padding-left:20px; margin:0; }
.owner-service-list span:before {
  content:'✓';
  position:absolute;
  left:0;
  top:0;
  width:15px;
  height:15px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e4f6ec;
  color:#138158;
  font-size:10px;
  font-weight:900;
}

.owner-application-action { width:100%; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:9px; }
.owner-status-pill {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:#e7f6ed;
  color:#15734f;
  font-size:11px;
  font-weight:900;
}
.owner-status-pill:before { content:''; width:8px; height:8px; border-radius:50%; background:currentColor; }
.owner-status-pill.rejected { background:#fff0f1; color:#c52432; }
.owner-status-pill.handled { background:#edf2f5; color:#657789; }
.owner-status-pill.accepted { background:#e8f7ee; color:#137751; }
.owner-application-action small { color:#7e8da0; line-height:1.45; }
.owner-card-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:2px; }
.owner-card-actions .button { min-height:44px; padding:0 15px; border-radius:12px; font-size:12px; }
.owner-card-actions .danger-lite { background:#fff; color:#c32634; border-color:#f0b9bd; }
.owner-detail-link { color:#08748c; text-decoration:none; font-size:12px; font-weight:850; }

.owner-cleaner-detail {
  grid-column:1/-1;
  border-top:1px solid #e3ebf1;
  padding:18px 24px 22px;
  background:rgba(255,255,255,.72);
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.owner-cleaner-detail > div { padding:13px 14px; border:1px solid #e3eaf0; border-radius:13px; background:#fff; }
.owner-cleaner-detail span { display:block; color:#8290a0; font-size:11px; font-weight:750; }
.owner-cleaner-detail strong { display:block; margin-top:4px; color:#233c56; font-size:13px; }

.owner-empty {
  padding:54px 28px;
  text-align:center;
  border:1px solid #dde7ee;
  border-radius:18px;
  background:#fff;
  color:#74869b;
}

/* Consistency layer for older beheer/pro detail templates. */
.portal-owner .narrow-main,
.portal-pro .narrow-main {
  width:min(1180px,calc(100% - 64px));
  max-width:1180px;
  margin:0 auto;
  padding:42px 0 60px;
}
.portal-owner .hero.small,
.portal-pro .hero.small {
  margin:0 0 26px;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.portal-owner .hero.small .eyebrow,
.portal-pro .hero.small .eyebrow { color:#2b7993; }
.portal-owner .hero.small h1,
.portal-pro .hero.small h1 {
  margin:7px 0 10px;
  color:#102442;
  font-size:clamp(44px,4.5vw,64px);
  line-height:.97;
  letter-spacing:-.05em;
}
.portal-owner .hero.small p,
.portal-pro .hero.small p {
  max-width:760px;
  margin:0;
  color:#71839a;
  font-size:16px;
  line-height:1.55;
}
.portal-owner .card.form-card,
.portal-pro .card.form-card,
.portal-owner .work-card.card,
.portal-pro .work-card.card {
  border:1px solid #dce7ef;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 36px rgba(24,55,87,.055);
}
.portal-owner .card.form-card,
.portal-pro .card.form-card { padding:26px; }
.portal-owner .section-heading h2,
.portal-pro .section-heading h2 { color:#17304e; letter-spacing:-.025em; }
.portal-owner .section-heading p,
.portal-pro .section-heading p,
.portal-owner .form-note,
.portal-pro .form-note { color:#71839a; }
.portal-owner .form-stack input,
.portal-owner .form-stack select,
.portal-owner .form-stack .ruit-select-trigger,
.portal-pro .form-stack input,
.portal-pro .form-stack select,
.portal-pro .form-stack .ruit-select-trigger {
  min-height:56px!important;
  border-radius:14px!important;
  background:#fbfdff!important;
  border-color:#d7e3ec!important;
}
.portal-owner .choice-card,
.portal-pro .choice-card {
  border-radius:15px;
  border-color:#dce7ef;
  background:#fbfdff;
}
.portal-owner .button.primary,
.portal-pro .button.primary {
  min-height:52px;
  border-radius:13px;
  background:linear-gradient(135deg,#2c7ddd,#2aa497);
  border:0;
}
.portal-owner .button.secondary,
.portal-pro .button.secondary {
  min-height:48px;
  border-radius:12px;
}
.portal-owner .overview-section,
.portal-pro .overview-section { padding-top:24px; }
.portal-owner .overview-head h2,
.portal-pro .overview-head h2 { color:#17304e; letter-spacing:-.03em; }
.portal-owner .admin-list,
.portal-pro .admin-list { display:grid; gap:12px; }
.portal-owner .work-card.card,
.portal-pro .work-card.card { padding:20px 22px; }
.portal-owner .work-title h2,
.portal-pro .work-title h2 { color:#17304e; }
.portal-owner .work-tags span,
.portal-pro .work-tags span {
  border-radius:999px;
  background:#f1f5f8;
  color:#5f7488;
  border:0;
}
.portal-owner .info-box,
.portal-pro .info-box {
  border:1px solid #d8e8f3;
  border-radius:16px;
  background:linear-gradient(145deg,#f8fcff,#eef7ff);
}
.portal-owner .saved-area,
.portal-pro .saved-area {
  border-color:#dce7ef;
  border-radius:15px;
  background:#fbfdff;
}
.portal-owner .coverage-toolbar input,
.portal-pro .coverage-toolbar input { min-height:54px!important; border-radius:13px!important; }
.portal-owner #coverage-map,
.portal-pro #coverage-map { border-color:#dce7ef!important; border-radius:18px!important; }

@media (max-width: 1220px) {
  .owner-page { width:min(1180px,calc(100% - 40px)); }
  .owner-page-hero { grid-template-columns:1fr; align-items:start; }
  .owner-stat-grid { width:100%; grid-template-columns:repeat(3,1fr); }
  .owner-stat { min-width:0; }
  .owner-application-card { grid-template-columns:1.1fr 1fr 1fr; }
  .owner-application-cell:nth-child(4), .owner-application-cell:nth-child(5) { border-top:1px solid #e3ebf1; }
  .owner-application-cell:nth-child(3) { border-right:0; }
  .owner-application-cell:nth-child(4) { grid-column:1/3; }
  .owner-application-cell:nth-child(5) { grid-column:3; }
}

@media (max-width: 980px) {
  .portal-owner .topbar, .portal-pro .topbar { padding:0 20px; }
  .owner-nav { gap:4px; overflow-x:auto; scrollbar-width:none; }
  .owner-nav::-webkit-scrollbar { display:none; }
  .owner-nav-link { min-height:48px; padding:0 12px; }
  .owner-nav-link svg { width:19px; height:19px; flex-basis:19px; }
  .owner-inbox-toolbar { grid-template-columns:1fr 1fr; }
  .owner-search { grid-column:1/-1; }
  .portal-owner .narrow-main,
  .portal-pro .narrow-main { width:calc(100% - 36px); }
}

@media (max-width: 720px) {
  .owner-page { width:calc(100% - 22px); padding-top:24px; }
  .owner-page-hero h1 { font-size:44px; }
  .owner-stat-grid { grid-template-columns:1fr; }
  .owner-stat { min-height:92px; grid-template-columns:40px 1fr; }
  .owner-inbox-toolbar { grid-template-columns:1fr; }
  .owner-search { grid-column:auto; }
  .owner-application-card { grid-template-columns:1fr; }
  .owner-application-cell { border-right:0; border-bottom:1px solid #e3ebf1; padding:18px; }
  .owner-application-cell:last-of-type { border-bottom:0; }
  .owner-application-cell:nth-child(4), .owner-application-cell:nth-child(5) { grid-column:auto; border-top:0; }
  .owner-cleaner-detail { grid-template-columns:1fr 1fr; padding:16px 18px; }
  .owner-nav-link span.owner-nav-label { display:none; }
  .owner-nav-link { width:46px; justify-content:center; padding:0; }
  .owner-nav-count { position:absolute; right:2px; top:4px; min-width:18px; height:18px; font-size:9px; }
  .portal-owner .narrow-main,
  .portal-pro .narrow-main { width:calc(100% - 22px); padding-top:24px; }
  .portal-owner .card.form-card,
  .portal-pro .card.form-card { padding:20px; }
}

@media (max-width: 480px) {
  .portal-owner .brand-copy small, .portal-pro .brand-copy small { display:none; }
  .owner-page-hero h1 { font-size:38px; }
  .owner-cleaner-detail { grid-template-columns:1fr; }
}
