:root{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --text:#162033;
  --muted:#667085;
  --line:#e1e7f0;
  --primary:#1677ff;
  --primary-strong:#0b5ed7;
  --green:#12805c;
  --orange:#b45309;
  --shadow:0 18px 45px rgba(16,24,40,.08);
}

.nav a,
.mobile-app-nav a{
  position:relative;
}

.nav-badge{
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:950;
  line-height:18px;
  text-align:center;
  box-shadow:0 6px 14px rgba(239,68,68,.28);
}

.nav .nav-badge{
  margin-left:auto;
}

.mobile-app-nav .nav-badge{
  position:absolute;
  top:8px;
  right:22%;
}

.chat-page .main{
  min-height:100vh;
}

.chat-shell{
  display:grid;
  grid-template-columns:minmax(280px,360px) minmax(0,1fr);
  height:calc(100vh - 150px);
  min-height:620px;
  overflow:hidden;
  border:1px solid rgba(214,224,236,.9);
  border-radius:18px;
  background:#f7fafc;
  box-shadow:0 22px 70px rgba(15,23,42,.08);
}

.chat-list{
  overflow:auto;
  border-right:1px solid rgba(214,224,236,.9);
  background:#fff;
}

.chat-list-head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px;
  border-bottom:1px solid rgba(214,224,236,.9);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
}

.chat-list-head strong{
  color:#111827;
  font-size:20px;
  font-weight:950;
}

.chat-list-head span{
  min-width:28px;
  height:28px;
  border-radius:999px;
  background:#e8f2ff;
  color:#0b63ce;
  font-size:13px;
  font-weight:950;
  line-height:28px;
  text-align:center;
}

.chat-thread{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid rgba(226,232,240,.78);
  color:inherit;
  text-decoration:none;
}

.chat-thread.active,
.chat-thread:hover{
  background:#edf6ff;
}

.chat-avatar{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:16px;
  background:#dff7ea;
  color:#128c4a;
}

.chat-avatar.sms{
  background:#e8f2ff;
  color:#0b63ce;
}

.chat-thread-main{
  min-width:0;
}

.chat-thread-main strong,
.chat-thread-main small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.chat-thread-main strong{
  color:#111827;
  font-size:15px;
  font-weight:950;
}

.chat-thread-main small{
  margin-top:3px;
  color:#667085;
  font-size:12px;
  font-weight:750;
}

.chat-thread-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.chat-thread-meta time{
  color:#98a2b3;
  font-size:11px;
  font-weight:850;
}

.chat-thread-meta b{
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#22c55e;
  color:#fff;
  font-size:11px;
  font-weight:950;
  line-height:20px;
  text-align:center;
}

.chat-window{
  display:flex;
  min-width:0;
  min-height:0;
  flex-direction:column;
  background:
    radial-gradient(circle at 20% 12%, rgba(37,99,235,.08), transparent 28%),
    linear-gradient(135deg,#f8fbff 0%,#f7faf7 100%);
}

.chat-header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 18px;
  border-bottom:1px solid rgba(214,224,236,.9);
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(16px);
}

.chat-header div{
  min-width:0;
  flex:1;
}

.chat-header strong,
.chat-header span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.chat-header strong{
  color:#111827;
  font-size:16px;
  font-weight:950;
}

.chat-header span{
  color:#667085;
  font-size:12px;
  font-weight:800;
}

.chat-back{
  display:none;
  color:#0b63ce;
  font-size:30px;
  font-weight:900;
  text-decoration:none;
}

.chat-customer-link{
  padding:9px 12px;
  border-radius:10px;
  background:#edf6ff;
  color:#0b63ce;
  font-size:12px;
  font-weight:950;
  text-decoration:none;
}

.chat-messages{
  flex:1;
  min-height:0;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:20px;
}

.chat-bubble{
  max-width:min(620px,78%);
  padding:10px 12px 7px;
  border-radius:16px;
  box-shadow:0 8px 20px rgba(15,23,42,.07);
}

.chat-bubble.in{
  align-self:flex-start;
  border-bottom-left-radius:5px;
  background:#fff;
  color:#111827;
}

.chat-bubble.out{
  align-self:flex-end;
  border-bottom-right-radius:5px;
  background:#d9fdd3;
  color:#17251a;
}

.chat-bubble p{
  margin:0;
  font-size:14px;
  font-weight:700;
  line-height:1.42;
}

.chat-bubble time{
  display:block;
  margin-top:5px;
  color:#667085;
  font-size:10px;
  font-weight:800;
  text-align:right;
}

.chat-compose{
  display:flex;
  align-items:flex-end;
  gap:10px;
  padding:12px 14px;
  border-top:1px solid rgba(214,224,236,.9);
  background:rgba(255,255,255,.94);
}

.chat-compose textarea{
  min-height:44px;
  max-height:110px;
  resize:vertical;
  border-radius:14px;
  background:#f8fafc;
}

.chat-compose button{
  min-height:44px;
  padding:0 18px;
  border-radius:14px;
  background:#1677ff;
  color:#fff;
  font-weight:950;
}

.chat-empty{
  display:flex;
  flex:1;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  padding:24px;
  text-align:center;
}

.chat-empty strong{
  color:#111827;
  font-size:22px;
  font-weight:950;
}

.chat-empty span{
  color:#667085;
  font-weight:800;
}

@media (max-width: 760px){
  .chat-page .topbar{
    padding-bottom:10px;
  }

  .chat-shell{
    grid-template-columns:1fr;
    height:calc(100vh - 188px);
    min-height:0;
    border-radius:0;
    border-left:0;
    border-right:0;
    margin:0 -16px;
  }

  .chat-list{
    max-height:214px;
    border-right:0;
    border-bottom:1px solid rgba(214,224,236,.9);
  }

  .chat-list-head{
    padding:12px 16px;
  }

  .chat-thread{
    grid-template-columns:42px minmax(0,1fr) auto;
    padding:11px 14px;
  }

  .chat-window{
    min-height:0;
  }

  .chat-back{
    display:inline-flex;
  }

  .chat-header{
    padding:10px 12px;
  }

  .chat-customer-link{
    padding:8px 10px;
  }

  .chat-messages{
    padding:13px 12px 80px;
  }

  .chat-bubble{
    max-width:86%;
  }

  .chat-compose{
    position:sticky;
    bottom:0;
    padding:10px 12px;
  }
}

/* Dashboard pro cockpit */
body.dashboard-pro-page{
  background:#f6f9fd;
}

.dash-pro-hero{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:16px;
  margin-bottom:16px;
}

.dash-pro-hero-copy,
.dash-pro-today,
.dash-pro-kpi,
.dash-pro-panel{
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:rgba(255,255,255,.86);
  box-shadow:0 18px 45px rgba(15,23,42,.07);
  backdrop-filter:blur(18px) saturate(1.15);
}

.dash-pro-hero-copy{
  position:relative;
  overflow:hidden;
  min-height:214px;
  padding:28px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,149,0,.20), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(0,122,255,.16), transparent 34%),
    rgba(255,255,255,.90);
}

.dash-pro-hero-copy > span{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  padding:0 11px;
  border-radius:999px;
  color:#006dff;
  background:#e8f2ff;
  font-size:12px;
  font-weight:900;
}

.dash-pro-hero-copy h2{
  margin:14px 0 8px;
  color:#071936;
  font-size:34px;
  line-height:1.05;
  font-weight:920;
}

.dash-pro-hero-copy p{
  max-width:760px;
  margin:0;
  color:#64748b;
  font-size:14px;
  font-weight:700;
  line-height:1.45;
}

.dash-pro-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:22px;
}

.dash-pro-actions a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  text-decoration:none;
}

.dash-pro-today{
  display:flex;
  min-height:214px;
  flex-direction:column;
  justify-content:center;
  padding:24px;
  color:inherit;
  text-decoration:none;
}

.dash-pro-today span,
.dash-pro-kpi span,
.dash-pro-kpi em,
.dash-pro-head p,
.dash-pro-row span,
.dash-pro-row em,
.dash-pro-money-ring span,
.dash-pro-money-list span,
.dash-pro-shortcuts span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-style:normal;
  font-weight:700;
}

.dash-pro-today strong{
  display:block;
  margin:8px 0 4px;
  color:#071936;
  font-size:56px;
  line-height:1;
  font-weight:950;
}

.dash-pro-stack{
  height:11px;
  margin-top:18px;
  overflow:hidden;
  border-radius:999px;
  background:linear-gradient(90deg,#ef4444 0 var(--late), #1677ff var(--late) calc(var(--late) + var(--today)), #22c55e 0 100%);
}

.dash-pro-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}

.dash-pro-kpi{
  display:flex;
  min-height:116px;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  color:inherit;
  text-decoration:none;
}

.dash-pro-kpi strong{
  display:block;
  margin:8px 0 5px;
  color:#071936;
  font-size:25px;
  line-height:1;
  font-weight:920;
}

.dash-pro-kpi i{
  display:flex;
  flex:0 0 56px;
  width:56px;
  height:56px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
}

.dash-pro-kpi.is-blue i{ color:#006dff; background:#e8f2ff; }
.dash-pro-kpi.is-green i{ color:#16a34a; background:#dcfce7; }
.dash-pro-kpi.is-purple i{ color:#8b5cf6; background:#ede9fe; }
.dash-pro-kpi.is-orange i{ color:#f97316; background:#ffedd5; }

.dash-pro-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);
  gap:16px;
  margin-bottom:16px;
}

.dash-pro-grid-lower{
  grid-template-columns:minmax(0,1fr) minmax(340px,.72fr);
}

.dash-pro-panel{
  min-width:0;
  padding:20px;
}

.dash-pro-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.dash-pro-head h2{
  margin:0 0 4px;
  color:#071936;
  font-size:18px;
  font-weight:920;
}

.dash-pro-head a{
  display:flex;
  flex:0 0 auto;
  min-height:34px;
  align-items:center;
  justify-content:center;
  padding:0 11px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:11px;
  color:#006dff;
  background:#f8fbff;
  font-size:12px;
  font-weight:850;
  text-decoration:none;
}

.dash-pro-list{
  display:grid;
  gap:9px;
}

.dash-pro-row{
  display:flex;
  min-height:66px;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:14px;
  background:#f8fbff;
  color:inherit;
  text-decoration:none;
}

.dash-pro-row:hover{
  border-color:rgba(0,109,255,.25);
  background:#fff;
}

.dash-pro-row > div{
  min-width:0;
}

.dash-pro-row > div:last-child{
  flex:0 0 auto;
  text-align:right;
}

.dash-pro-row strong,
.dash-pro-row b,
.dash-pro-money-ring strong,
.dash-pro-money-list strong,
.dash-pro-shortcuts strong{
  display:block;
  color:#071936;
  font-weight:900;
}

.dash-pro-row b{
  margin-top:3px;
  font-size:12px;
}

.dash-pro-row.bucket-late b,
.dash-pro-row.status-overdue b{
  color:#dc2626;
}

.dash-pro-row.bucket-today b,
.dash-pro-row.status-sent b{
  color:#006dff;
}

.dash-pro-row.bucket-soon b,
.dash-pro-row.status-draft b{
  color:#b45309;
}

.dash-pro-money{
  display:grid;
  align-content:start;
}

.dash-pro-money-tabs{
  display:grid;
  gap:14px;
}

.dash-pro-money-tabs input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.dash-pro-tab-labels{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  padding:5px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:14px;
  background:#f1f7ff;
}

.dash-pro-tab-labels label{
  display:flex;
  min-height:34px;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  color:#64748b;
  cursor:pointer;
  font-size:12px;
  font-weight:900;
  transition:background .15s ease, color .15s ease, box-shadow .15s ease;
}

#money-tab-private:checked ~ .dash-pro-tab-labels label[for="money-tab-private"],
#money-tab-business:checked ~ .dash-pro-tab-labels label[for="money-tab-business"],
#money-tab-total:checked ~ .dash-pro-tab-labels label[for="money-tab-total"]{
  color:#071936;
  background:#fff;
  box-shadow:0 9px 18px rgba(15,23,42,.08);
}

.dash-pro-money-panel{
  display:none;
}

#money-tab-private:checked ~ .dash-pro-money-panel.is-private,
#money-tab-business:checked ~ .dash-pro-money-panel.is-business,
#money-tab-total:checked ~ .dash-pro-money-panel.is-total{
  display:grid;
}

.dash-pro-money-ring{
  display:grid;
  width:220px;
  aspect-ratio:1;
  place-items:center;
  justify-self:center;
  margin:8px 0 18px;
  border-radius:50%;
  background:conic-gradient(#1677ff 0 64%, #22c55e 0 86%, #ff9500 0 100%);
}

.dash-pro-money-ring.private-ring{
  background:conic-gradient(#22c55e 0 72%, #dbeafe 0 100%);
}

.dash-pro-money-ring.business-ring{
  background:conic-gradient(#8b5cf6 0 66%, #ff9500 0 86%, #dbeafe 0 100%);
}

.dash-pro-money-ring.total-ring{
  background:conic-gradient(#1677ff 0 52%, #22c55e 0 82%, #ff9500 0 100%);
}

.dash-pro-money-ring > div{
  display:grid;
  width:134px;
  aspect-ratio:1;
  place-items:center;
  align-content:center;
  border-radius:50%;
  background:#fff;
  text-align:center;
  box-shadow:0 10px 28px rgba(15,23,42,.08) inset;
}

.dash-pro-money-ring strong{
  font-size:19px;
}

.dash-pro-money-list{
  display:grid;
  gap:9px;
}

.dash-pro-money-list a{
  display:flex;
  min-height:46px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:13px;
  background:#f8fbff;
  color:inherit;
  text-decoration:none;
}

.dash-pro-shortcuts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.dash-pro-shortcuts a{
  display:grid;
  min-height:104px;
  align-content:center;
  gap:7px;
  padding:14px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:14px;
  background:#f8fbff;
  color:inherit;
  text-decoration:none;
}

.dash-pro-shortcuts svg{
  color:#006dff;
}

@media (max-width:1180px){
  .dash-pro-hero,
  .dash-pro-grid,
  .dash-pro-grid-lower{
    grid-template-columns:1fr;
  }

  .dash-pro-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:900px){
  body.dashboard-pro-page .main{
    padding:10px 10px 92px;
  }

  body.dashboard-pro-page .topbar{
    display:none;
  }

  .dash-pro-hero{
    gap:10px;
    margin-bottom:10px;
  }

  .dash-pro-hero-copy,
  .dash-pro-today,
  .dash-pro-kpi,
  .dash-pro-panel{
    border-radius:14px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
  }

  .dash-pro-hero-copy{
    min-height:auto;
    padding:14px;
  }

  .dash-pro-hero-copy > span,
  .dash-pro-hero-copy p{
    display:none;
  }

  .dash-pro-hero-copy h2{
    margin:0 0 12px;
    font-size:22px;
  }

  .dash-pro-actions{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
    margin-top:0;
  }

  .dash-pro-actions a{
    min-width:0;
    min-height:42px;
    padding:0;
    justify-content:center;
  }

  .dash-pro-actions a span{
    display:none;
  }

  .dash-pro-today{
    min-height:94px;
    padding:13px;
  }

  .dash-pro-today strong{
    font-size:34px;
  }

  .dash-pro-stack{
    margin-top:10px;
  }

  .dash-pro-kpis{
    gap:8px;
    margin-bottom:10px;
  }

  .dash-pro-kpi{
    min-height:84px;
    padding:11px;
    border-radius:13px;
  }

  .dash-pro-kpi strong{
    margin:5px 0 3px;
    font-size:19px;
  }

  .dash-pro-kpi span,
  .dash-pro-kpi em{
    font-size:10px;
  }

  .dash-pro-kpi i{
    flex-basis:35px;
    width:35px;
    height:35px;
  }

  .dash-pro-kpi i svg{
    width:18px;
    height:18px;
  }

  .dash-pro-grid,
  .dash-pro-grid-lower{
    gap:10px;
    margin-bottom:10px;
  }

  .dash-pro-panel{
    padding:12px;
  }

  .dash-pro-head{
    margin-bottom:10px;
  }

  .dash-pro-head h2{
    font-size:15px;
  }

  .dash-pro-head p{
    display:none;
  }

  .dash-pro-row{
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
    min-height:auto;
    padding:10px;
    border-radius:12px;
  }

  .dash-pro-row > div:last-child{
    width:100%;
    text-align:left;
  }

  .dash-pro-money-ring{
    display:none;
  }

  .dash-pro-money-tabs{
    gap:9px;
  }

  .dash-pro-tab-labels{
    gap:4px;
    padding:4px;
    border-radius:12px;
  }

  .dash-pro-tab-labels label{
    min-height:32px;
    font-size:11px;
  }

  .dash-pro-shortcuts{
    grid-template-columns:1fr;
    gap:8px;
  }

  .dash-pro-shortcuts a{
    display:grid;
    grid-template-columns:28px minmax(0,1fr) auto;
    min-height:54px;
    align-items:center;
    align-content:center;
    padding:10px 12px;
  }

  .dash-pro-shortcuts span{
    text-align:right;
    font-size:10px;
  }
}

/* Administration pro dashboard */
body.administration-page{
  background:#f6f9fd;
}

.admin-pro-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(360px,.95fr) auto;
  gap:14px;
  align-items:center;
  margin-bottom:18px;
}

.admin-pro-period,
.admin-pro-date,
.admin-pro-kpi,
.admin-pro-chart-card,
.admin-pro-donut-card,
.admin-pro-board,
.admin-pro-bottom-stats article{
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:rgba(255,255,255,.86);
  box-shadow:0 18px 45px rgba(15,23,42,.07);
  backdrop-filter:blur(18px) saturate(1.15);
}

.admin-pro-period{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:48px;
  padding:10px 14px;
}

.admin-pro-period svg{
  color:#0b63ce;
}

.admin-pro-period span,
.admin-pro-kpi span,
.admin-pro-kpi em,
.admin-pro-card-head p,
.admin-pro-card-head > span,
.admin-pro-legend em,
.admin-pro-row span,
.admin-pro-subhead span,
.admin-pro-section summary span,
.admin-pro-area summary span,
.admin-pro-street summary span,
.admin-pro-payment-grid span,
.admin-pro-payment-grid em,
.admin-pro-bottom-stats span,
.admin-pro-bar span,
.admin-pro-bar em{
  display:block;
  color:#64748b;
  font-size:12px;
  font-style:normal;
  font-weight:700;
}

.admin-pro-row small,
.muted-text{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
}

.admin-pro-period strong{
  display:block;
  margin-top:2px;
  color:#0f1f3a;
  font-size:14px;
  font-weight:850;
}

.admin-pro-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  min-height:48px;
  padding:5px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:rgba(255,255,255,.70);
  box-shadow:0 12px 32px rgba(15,23,42,.05);
}

.admin-pro-tabs a{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  color:#475569;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}

.admin-pro-tabs a.is-active{
  color:#fff;
  background:linear-gradient(180deg,#248bff,#006dff);
  box-shadow:0 8px 18px rgba(0,109,255,.25);
}

.admin-pro-date{
  display:flex;
  gap:8px;
  min-height:48px;
  padding:6px;
}

.admin-pro-date input{
  width:148px;
  border:0;
  border-radius:12px;
  padding:0 10px;
  background:#f8fafc;
  color:#0f1f3a;
  font:inherit;
  font-size:13px;
  font-weight:800;
}

.admin-pro-date button,
.admin-pro-date a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  height:36px;
  border:0;
  border-radius:12px;
  padding:0 14px;
  font-weight:850;
  text-decoration:none;
}

.admin-pro-date button{
  color:#fff;
  background:#0f1f3a;
}

.admin-pro-date a{
  color:#fff;
  background:linear-gradient(180deg,#248bff,#006dff);
}

.admin-pro-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}

.admin-pro-kpi{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-width:0;
  min-height:124px;
  padding:18px 20px;
}

.admin-pro-kpi strong{
  display:block;
  margin:9px 0 7px;
  color:#071936;
  font-size:25px;
  line-height:1;
  font-weight:900;
}

.admin-pro-kpi i{
  display:flex;
  flex:0 0 58px;
  width:58px;
  height:58px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
}

.admin-pro-kpi i svg{
  stroke-width:2.4;
}

.admin-pro-kpi.is-blue i{ color:#006dff; background:#e8f2ff; }
.admin-pro-kpi.is-green i{ color:#16a34a; background:#dcfce7; }
.admin-pro-kpi.is-orange i{ color:#f97316; background:#ffedd5; }
.admin-pro-kpi.is-purple i{ color:#8b5cf6; background:#ede9fe; }

.admin-pro-overview-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);
  gap:16px;
  margin-bottom:16px;
}

.admin-pro-chart-card,
.admin-pro-donut-card{
  min-width:0;
  padding:22px;
}

.admin-pro-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.admin-pro-card-head h2{
  margin:0 0 4px;
  color:#071936;
  font-size:18px;
  font-weight:900;
}

.admin-pro-card-head > span{
  flex:0 0 auto;
  min-height:34px;
  padding:8px 12px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:11px;
  background:#f8fafc;
}

.admin-pro-bars{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(52px,1fr));
  gap:11px;
  align-items:end;
  min-height:270px;
  padding:8px 4px 0;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.admin-pro-bar{
  display:grid;
  grid-template-rows:22px 1fr 20px 18px;
  gap:6px;
  min-width:0;
  height:270px;
  text-align:center;
}

.admin-pro-bar strong{
  align-self:end;
  color:#0f1f3a;
  font-size:11px;
  font-weight:850;
}

.admin-pro-bar > div{
  align-self:end;
  justify-self:center;
  position:relative;
  width:26px;
  min-height:4px;
  overflow:hidden;
  border-radius:999px;
  background:linear-gradient(180deg,#fed7aa,#fb923c);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);
}

.admin-pro-bar > div i{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  display:block;
  border-radius:999px;
  background:linear-gradient(180deg,#22c55e,#16a34a);
}

.admin-pro-bar em{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
}

.admin-pro-donut-wrap{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:24px;
  align-items:center;
}

.admin-pro-donut{
  display:grid;
  width:220px;
  aspect-ratio:1;
  place-items:center;
  border-radius:50%;
  background:conic-gradient(#22c55e 0 var(--paid), #f97316 0 100%);
}

.admin-pro-donut::before{
  content:"";
  position:absolute;
}

.admin-pro-donut > div{
  display:grid;
  width:132px;
  aspect-ratio:1;
  place-items:center;
  align-content:center;
  border-radius:50%;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.08) inset;
  text-align:center;
}

.admin-pro-donut strong{
  color:#071936;
  font-size:20px;
  font-weight:900;
}

.admin-pro-donut span{
  color:#64748b;
  font-size:12px;
  font-weight:800;
}

.admin-pro-legend{
  display:grid;
  gap:15px;
}

.admin-pro-legend div{
  display:grid;
  grid-template-columns:13px minmax(0,1fr);
  gap:4px 9px;
  align-items:center;
}

.admin-pro-legend strong{
  color:#0f1f3a;
  font-size:13px;
  font-weight:850;
}

.admin-pro-legend em{
  grid-column:2;
}

.dot{
  display:block;
  width:10px;
  height:10px;
  border-radius:50%;
}

.dot.green{ background:#22c55e; }
.dot.orange{ background:#f97316; }
.dot.blue{ background:#1677ff; }
.dot.purple{ background:#8b5cf6; }

.admin-pro-board{
  overflow:hidden;
  margin-bottom:16px;
}

.admin-pro-board-tabs{
  display:flex;
  gap:24px;
  padding:17px 20px 0;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.admin-pro-board-tabs a{
  display:flex;
  height:40px;
  align-items:center;
  border-bottom:2px solid transparent;
  color:#475569;
  font-size:13px;
  font-weight:850;
  text-decoration:none;
}

.admin-pro-board-tabs a.is-active,
.admin-pro-board-tabs a:hover{
  color:#006dff;
  border-bottom-color:#006dff;
}

.admin-pro-section{
  border-bottom:1px solid rgba(15,23,42,.08);
}

.admin-pro-section:last-child{
  border-bottom:0;
}

.admin-pro-section > summary,
.admin-pro-area > summary,
.admin-pro-street > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  cursor:pointer;
  list-style:none;
}

.admin-pro-section > summary::-webkit-details-marker,
.admin-pro-area > summary::-webkit-details-marker,
.admin-pro-street > summary::-webkit-details-marker{
  display:none;
}

.admin-pro-section > summary{
  min-height:76px;
  padding:18px 20px;
}

.admin-pro-section > summary strong,
.admin-pro-area > summary strong,
.admin-pro-street > summary strong,
.admin-pro-row strong,
.admin-pro-table strong,
.admin-pro-payment-grid strong,
.admin-pro-bottom-stats strong{
  color:#071936;
  font-weight:900;
}

.admin-pro-section > summary strong{
  font-size:18px;
}

.admin-pro-section > summary b,
.admin-pro-area > summary b,
.admin-pro-street > summary b{
  flex:0 0 auto;
  color:#0b63ce;
  font-size:15px;
  font-weight:900;
}

.admin-pro-section > summary::after,
.admin-pro-area > summary::after,
.admin-pro-street > summary::after{
  content:"";
  width:9px;
  height:9px;
  border-right:2px solid #94a3b8;
  border-bottom:2px solid #94a3b8;
  transform:rotate(45deg);
  transition:transform .18s ease;
}

.admin-pro-section[open] > summary::after,
.admin-pro-area[open] > summary::after,
.admin-pro-street[open] > summary::after{
  transform:rotate(-135deg);
}

.admin-pro-split{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  padding:0 20px 20px;
}

.admin-pro-subhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.admin-pro-subhead h3{
  margin:0;
  color:#071936;
  font-size:15px;
  font-weight:900;
}

.admin-pro-list{
  display:grid;
  gap:9px;
}

.admin-pro-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:66px;
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:14px;
  background:#f8fbff;
  color:inherit;
  text-decoration:none;
}

.admin-pro-row:hover{
  border-color:rgba(0,109,255,.25);
  background:#fff;
}

.admin-pro-row > div{
  min-width:0;
}

.admin-pro-row > input[type="checkbox"]{
  flex:0 0 auto;
  width:18px;
  height:18px;
}

.admin-pro-row > div:last-child{
  flex:0 0 auto;
  text-align:right;
}

.admin-pro-row.compact{
  min-height:54px;
  padding:10px 12px;
}

.admin-pro-mini{
  height:7px;
  max-width:340px;
  margin-top:8px;
  overflow:hidden;
  border-radius:999px;
  background:#dbe7f5;
}

.admin-pro-mini i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#007aff,#5ac8fa);
}

.admin-pro-table-wrap{
  padding:0 20px 20px;
  overflow:auto;
}

.admin-pro-table{
  width:100%;
  min-width:820px;
  border-collapse:collapse;
}

.admin-pro-table th{
  height:42px;
  color:#64748b;
  background:#f8fafc;
  font-size:12px;
  font-weight:850;
  text-align:left;
}

.admin-pro-table td,
.admin-pro-table th{
  padding:0 12px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.admin-pro-table td{
  height:50px;
  color:#0f1f3a;
  font-size:13px;
  font-weight:650;
}

.admin-pro-table tbody tr{
  cursor:pointer;
}

.admin-pro-table tbody tr:hover{
  background:#f8fbff;
}

.admin-pro-status{
  display:inline-flex;
  min-height:24px;
  align-items:center;
  justify-content:center;
  padding:0 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:850;
}

.admin-pro-status.status-paid{ color:#15803d; background:#dcfce7; }
.admin-pro-status.status-overdue{ color:#dc2626; background:#fee2e2; }
.admin-pro-status.status-sent,
.admin-pro-status.status-open{ color:#b45309; background:#ffedd5; }
.admin-pro-status.status-draft{ color:#475569; background:#e2e8f0; }

.admin-pro-area-list{
  display:grid;
  gap:10px;
  padding:0 20px 20px;
}

.admin-pro-area,
.admin-pro-street{
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  background:#f8fbff;
}

.admin-pro-area > summary,
.admin-pro-street > summary{
  min-height:62px;
  padding:12px 14px;
}

.admin-pro-streets,
.admin-pro-customers{
  display:grid;
  gap:8px;
  padding:0 12px 12px;
}

.admin-pro-street{
  background:#fff;
}

.admin-pro-payment-grid,
.admin-pro-bottom-stats{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}

.admin-pro-payment-grid{
  padding:0 20px 20px;
}

.admin-pro-payment-grid article,
.admin-pro-bottom-stats article{
  min-height:82px;
  padding:15px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  background:#f8fbff;
}

.admin-pro-payment-grid strong,
.admin-pro-bottom-stats strong{
  display:block;
  margin-top:7px;
  font-size:20px;
}

.admin-pro-bottom-stats{
  margin-bottom:16px;
}

.admin-control-center{
  display:grid;
  gap:14px;
  margin-bottom:16px;
  padding:18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:rgba(255,255,255,.9);
  box-shadow:0 18px 45px rgba(15,23,42,.07);
  backdrop-filter:blur(18px) saturate(1.15);
}

.admin-control-center > header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.admin-control-center > header span{
  display:block;
  color:#1677ff;
  font-size:11px;
  font-weight:950;
  letter-spacing:0;
  text-transform:uppercase;
}

.admin-control-center > header h2{
  margin:3px 0 4px;
  color:#071936;
  font-size:22px;
  font-weight:950;
}

.admin-control-center > header p{
  margin:0;
  color:#64748b;
  font-size:13px;
  font-weight:750;
}

.admin-control-center > header > strong{
  flex:0 0 auto;
  padding:10px 13px;
  border-radius:999px;
  background:#dcfce7;
  color:#15803d;
  font-size:13px;
  font-weight:950;
}

.admin-control-center > header > strong.has-warning{
  background:#ffedd5;
  color:#c2410c;
}

.admin-control-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.admin-control-card,
.admin-control-activity{
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  border-radius:15px;
  background:#f8fbff;
}

.admin-control-card > summary,
.admin-control-activity > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:68px;
  padding:12px;
  cursor:pointer;
  list-style:none;
}

.admin-control-card > summary::-webkit-details-marker,
.admin-control-activity > summary::-webkit-details-marker{
  display:none;
}

.admin-control-card > summary{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
}

.admin-control-card > summary i{
  display:grid;
  width:40px;
  height:40px;
  place-items:center;
  border-radius:14px;
  background:#e8f2ff;
  color:#1677ff;
}

.admin-control-card.is-red > summary i{ color:#dc2626; background:#fee2e2; }
.admin-control-card.is-orange > summary i{ color:#f97316; background:#ffedd5; }
.admin-control-card.is-blue > summary i{ color:#1677ff; background:#e8f2ff; }
.admin-control-card.is-purple > summary i{ color:#8b5cf6; background:#ede9fe; }

.admin-control-card strong,
.admin-control-activity strong{
  color:#071936;
  font-weight:950;
}

.admin-control-card span,
.admin-control-activity span,
.admin-control-list em{
  display:block;
  color:#64748b;
  font-size:12px;
  font-style:normal;
  font-weight:750;
}

.admin-control-list{
  display:grid;
  gap:7px;
  padding:0 10px 10px;
}

.admin-control-list a,
.admin-control-timeline a{
  display:grid;
  gap:8px;
  min-width:0;
  padding:10px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:12px;
  background:#fff;
  color:inherit;
  text-decoration:none;
}

.admin-control-list a{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}

.admin-control-list b{
  max-width:150px;
  overflow:hidden;
  color:#0b63ce;
  font-size:12px;
  font-weight:950;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.admin-control-list em{
  padding:10px;
  border-radius:12px;
  background:#fff;
}

.admin-control-activity > summary{
  min-height:60px;
  padding:13px 14px;
}

.admin-control-activity > summary b{
  color:#0b63ce;
  font-size:13px;
  font-weight:950;
}

.admin-control-timeline{
  display:grid;
  gap:7px;
  padding:0 10px 10px;
}

.admin-control-timeline a{
  grid-template-columns:12px minmax(0,1fr) minmax(120px,.7fr);
  align-items:center;
}

.admin-control-timeline i{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#1677ff;
}

.admin-control-timeline i.type-payment{ background:#22c55e; }
.admin-control-timeline i.type-period{ background:#f97316; }
.admin-control-timeline i.type-message{ background:#8b5cf6; }

.admin-control-timeline em{
  overflow:hidden;
  color:#64748b;
  font-size:12px;
  font-style:normal;
  font-weight:750;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media (max-width:1180px){
  .admin-pro-toolbar{
    grid-template-columns:1fr;
  }

  .admin-pro-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .admin-pro-overview-grid{
    grid-template-columns:1fr;
  }

  .admin-control-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:900px){
  body.administration-page .main{
    padding:10px 10px 92px;
  }

  body.administration-page .topbar{
    display:none;
  }

  .admin-pro-toolbar{
    gap:8px;
    margin-bottom:10px;
  }

  .admin-pro-period{
    min-height:44px;
    padding:9px 11px;
    border-radius:13px;
  }

  .admin-pro-tabs{
    grid-template-columns:repeat(4,minmax(68px,1fr));
    min-height:42px;
    overflow-x:auto;
    border-radius:13px;
  }

  .admin-pro-tabs a{
    min-width:68px;
    font-size:12px;
  }

  .admin-pro-date{
    display:grid;
    grid-template-columns:1fr auto auto;
    min-height:42px;
    padding:5px;
    border-radius:13px;
  }

  .admin-pro-date input{
    width:100%;
  }

  .admin-pro-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-bottom:10px;
  }

  .admin-pro-kpi{
    min-height:86px;
    padding:12px;
    border-radius:13px;
  }

  .admin-pro-kpi strong{
    margin:5px 0 3px;
    font-size:18px;
  }

  .admin-pro-kpi span,
  .admin-pro-kpi em{
    font-size:10px;
  }

  .admin-pro-kpi i{
    flex-basis:36px;
    width:36px;
    height:36px;
  }

  .admin-pro-kpi i svg{
    width:18px;
    height:18px;
  }

  .admin-pro-overview-grid{
    gap:10px;
    margin-bottom:10px;
  }

  .admin-pro-chart-card,
  .admin-pro-donut-card,
  .admin-pro-board,
  .admin-pro-bottom-stats article{
    border-radius:13px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
  }

  .admin-pro-chart-card,
  .admin-pro-donut-card{
    padding:13px;
  }

  .admin-pro-card-head{
    margin-bottom:12px;
  }

  .admin-pro-card-head h2{
    font-size:15px;
  }

  .admin-pro-card-head p,
  .admin-pro-card-head > span{
    display:none;
  }

  .admin-pro-bars{
    gap:6px;
    min-height:150px;
    overflow-x:auto;
  }

  .admin-pro-bar{
    grid-template-rows:18px 1fr 18px;
    min-width:42px;
    height:150px;
  }

  .admin-pro-bar > div{
    width:20px;
  }

  .admin-pro-bar em{
    display:none;
  }

  .admin-pro-donut-wrap{
    grid-template-columns:120px minmax(0,1fr);
    gap:13px;
  }

  .admin-pro-donut{
    width:120px;
  }

  .admin-pro-donut > div{
    width:76px;
  }

  .admin-pro-donut strong{
    font-size:13px;
  }

  .admin-pro-legend{
    gap:8px;
  }

  .admin-pro-legend em{
    font-size:10px;
  }

  .admin-pro-board-tabs{
    gap:12px;
    padding:10px 12px 0;
    overflow-x:auto;
  }

  .admin-pro-board-tabs a{
    flex:0 0 auto;
    height:34px;
    font-size:12px;
  }

  .admin-pro-section > summary{
    min-height:58px;
    padding:12px;
  }

  .admin-pro-section > summary strong{
    font-size:15px;
  }

  .admin-pro-section > summary span{
    font-size:10px;
  }

  .admin-pro-section > summary b{
    font-size:12px;
  }

  .admin-pro-split{
    grid-template-columns:1fr;
    gap:12px;
    padding:0 10px 10px;
  }

  .admin-pro-row{
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
    min-height:auto;
    padding:10px;
    border-radius:12px;
  }

  .admin-pro-row > div:last-child{
    width:100%;
    text-align:left;
  }

  .admin-pro-table-wrap{
    padding:0 10px 10px;
  }

  .admin-pro-table{
    min-width:0;
  }

  .admin-pro-table thead{
    display:none;
  }

  .admin-pro-table,
  .admin-pro-table tbody,
  .admin-pro-table tr,
  .admin-pro-table td{
    display:block;
  }

  .admin-pro-table tr{
    margin-bottom:8px;
    padding:10px;
    border:1px solid rgba(15,23,42,.08);
    border-radius:12px;
    background:#f8fbff;
  }

  .admin-pro-table td{
    height:auto;
    padding:2px 0;
    border-bottom:0;
    font-size:12px;
  }

  .admin-pro-table td:nth-child(3),
  .admin-pro-table td:nth-child(4){
    display:none;
  }

  .admin-pro-area-list,
  .admin-pro-payment-grid{
    padding:0 10px 10px;
  }

  .admin-pro-area > summary,
  .admin-pro-street > summary{
    min-height:52px;
    padding:10px;
  }

  .admin-pro-area > summary,
  .admin-pro-street > summary{
    align-items:flex-start;
  }

  .admin-pro-streets,
  .admin-pro-customers{
    padding:0 8px 8px;
  }

  .admin-pro-payment-grid,
  .admin-pro-bottom-stats{
    grid-template-columns:1fr;
    gap:8px;
  }

  .admin-pro-payment-grid article,
  .admin-pro-bottom-stats article{
    min-height:56px;
    padding:11px 12px;
  }

  .admin-pro-bottom-stats{
    margin-bottom:10px;
  }

  .admin-pro-bottom-stats article{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .admin-pro-payment-grid strong,
  .admin-pro-bottom-stats strong{
    margin-top:0;
    font-size:16px;
  }

  .admin-control-center{
    gap:10px;
    margin-bottom:10px;
    padding:12px;
    border-radius:14px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
  }

  .admin-control-center > header{
    align-items:center;
  }

  .admin-control-center > header h2{
    font-size:17px;
  }

  .admin-control-center > header p{
    display:none;
  }

  .admin-control-center > header > strong{
    padding:8px 10px;
    font-size:11px;
  }

  .admin-control-grid{
    grid-template-columns:1fr;
    gap:8px;
  }

  .admin-control-card,
  .admin-control-activity{
    border-radius:13px;
  }

  .admin-control-card > summary{
    min-height:56px;
    grid-template-columns:34px minmax(0,1fr);
    padding:10px;
  }

  .admin-control-card > summary i{
    width:34px;
    height:34px;
    border-radius:12px;
  }

  .admin-control-card strong,
  .admin-control-activity strong{
    font-size:14px;
  }

  .admin-control-card span,
  .admin-control-activity span,
  .admin-control-list em{
    font-size:10px;
  }

  .admin-control-list a{
    padding:9px;
  }

  .admin-control-list b{
    max-width:92px;
    font-size:11px;
  }

  .admin-control-activity > summary{
    min-height:54px;
    padding:10px;
  }

  .admin-control-timeline a{
    grid-template-columns:10px minmax(0,1fr);
    padding:9px;
  }

  .admin-control-timeline em{
    grid-column:2;
    text-align:left;
  }
}

.brand-logo-image{
  display:none;
}

@media (max-width:900px){
  .sidebar .brand{
    min-height:44px;
    align-items:center;
  }

  .sidebar .brand-logo-image{
    display:block;
    width:auto;
    height:46px;
    max-width:72vw;
    object-fit:contain;
    object-position:left center;
  }

  .sidebar .brand-mark,
  .sidebar .brand-text{
    display:none !important;
  }
}

*{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  scroll-padding-top:92px;
}

body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

a{ color:inherit; }

.icon-sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.nav svg,
.mobile-app-nav svg,
a svg,
button svg,
.primary-button svg,
.secondary-button svg,
.danger-button svg,
.icon-button svg,
.icon-action svg,
.dash-pro-kpi svg,
.dash-pro-actions svg,
.dash-pro-shortcuts svg,
.admin-pro-period svg,
.admin-pro-kpi svg,
.admin-pro-date svg{
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

button,
a,
summary,
input,
select,
textarea{
  -webkit-tap-highlight-color:transparent;
}

.shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
}

.sidebar{
  background:#101828;
  color:#fff;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:28px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-mark{
  width:40px;
  height:40px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:#101828;
  font-weight:900;
}

.brand-mark img{
  display:block;
  width:100%;
  height:100%;
  border-radius:inherit;
  object-fit:cover;
}

.brand strong,
.brand span{
  display:block;
}

.brand span{
  color:#cbd5e1;
  font-size:12px;
  margin-top:2px;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nav a{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#e5e7eb;
  padding:11px 12px;
  border-radius:8px;
  font-weight:700;
}

.nav svg,
.mobile-app-nav svg,
.icon-action svg,
.icon-button svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.nav a:hover{
  background:rgba(255,255,255,.08);
}

.mobile-app-nav{
  display:none;
}

.nav::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar,
.private-grid-wrap::-webkit-scrollbar{
  height:8px;
}

.nav::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb,
.private-grid-wrap::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:rgba(102,112,133,.35);
}

.main{
  padding:24px;
  min-width:0;
}

.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}

.topbar h1{
  margin:0;
  font-size:28px;
  letter-spacing:0;
}

.topbar p{
  margin:6px 0 0;
  color:var(--muted);
}

.kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}

.compact-kpi-grid{
  margin:0;
}

.kpi,
.panel,
.login-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow);
}

.kpi{
  padding:16px;
}

.kpi span,
.kpi em{
  color:var(--muted);
  font-size:12px;
  font-style:normal;
}

.kpi strong{
  display:block;
  margin:8px 0 6px;
  font-size:28px;
}

.dashboard-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
  padding:20px;
  border:1px solid #d1e9ff;
  border-radius:8px;
  background:linear-gradient(135deg,#f5fbff 0%,#f8fff9 100%);
  box-shadow:var(--shadow);
}

.dashboard-hero span,
.dashboard-hero p{
  color:var(--muted);
  font-size:13px;
  font-weight:900;
}

.dashboard-hero h2{
  margin:4px 0 6px;
  color:var(--text);
  font-size:26px;
  letter-spacing:0;
}

.dashboard-hero p{
  max-width:720px;
  margin:0;
  line-height:1.45;
}

.dashboard-kpis .kpi{
  border-left:5px solid #d0d5dd;
}

.kpi-accent.today{
  border-left-color:#12b76a;
  background:#fbfffd;
}

.kpi-accent.late{
  border-left-color:#f04438;
  background:#fffafa;
}

.kpi-accent.soon{
  border-left-color:#f79009;
  background:#fffdf7;
}

.kpi-accent.money{
  border-left-color:#2e90fa;
  background:#f7fbff;
}

.dashboard-grid{
  display:grid;
  grid-template-columns:1.35fr .9fr;
  gap:16px;
  margin-bottom:16px;
}

.dashboard-grid.lower{
  grid-template-columns:1fr 1fr;
}

.dashboard-panel{
  min-width:0;
}

.dashboard-task-list,
.quick-actions,
.invoice-overview-list.compact{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.dashboard-task,
.dashboard-invoice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:58px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-left:5px solid #d0d5dd;
  border-radius:8px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
}

.dashboard-task.private{
  border-left-color:#2e90fa;
}

.dashboard-task.business{
  border-left-color:#12b76a;
}

.dashboard-task.late,
.dashboard-invoice.overdue{
  border-left-color:#f04438;
  background:#fffafa;
}

.dashboard-task.today{
  border-left-color:#12b76a;
  background:#fbfffd;
}

.dashboard-task.soon{
  border-left-color:#f79009;
  background:#fffdf7;
}

.dashboard-task strong,
.dashboard-task span,
.dashboard-task em,
.dashboard-invoice strong,
.dashboard-invoice span,
.dashboard-invoice em{
  display:block;
}

.dashboard-task strong,
.dashboard-invoice strong{
  color:var(--text);
  font-size:14px;
  font-weight:950;
}

.dashboard-task span,
.dashboard-invoice span,
.dashboard-task em,
.dashboard-invoice em{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.dashboard-task > em{
  flex:0 0 auto;
  margin:0;
}

.dashboard-invoice > div:last-child{
  text-align:right;
}

.dashboard-health-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.dashboard-health-grid a{
  display:block;
  min-height:86px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fafc;
  color:var(--text);
  text-decoration:none;
}

.dashboard-health-grid strong{
  display:block;
  font-size:26px;
  font-weight:950;
}

.dashboard-health-grid span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.dashboard-alert-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:12px;
}

.dashboard-alert-row a{
  display:flex;
  align-items:center;
  min-height:38px;
  padding:0 10px;
  border-radius:8px;
  background:#fff7ed;
  color:#9a3412;
  text-decoration:none;
  font-size:12px;
  font-weight:950;
}

.quick-actions a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:42px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fafc;
  color:var(--text);
  text-decoration:none;
  font-size:13px;
  font-weight:950;
}

.quick-actions a:hover,
.dashboard-task:hover,
.dashboard-invoice:hover,
.dashboard-health-grid a:hover{
  border-color:rgba(22,119,255,.45);
  background:#f7fbff;
}

.split{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.panel{
  padding:18px;
}

.panel p{
  color:var(--muted);
  line-height:1.5;
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.panel-head h2{
  margin:0;
  font-size:18px;
}

.panel-head a{
  color:var(--primary);
  font-weight:800;
  text-decoration:none;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  color:var(--primary-strong);
  background:rgba(22,119,255,.1);
  font-size:12px;
  font-weight:800;
}

.toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.search-form{
  display:flex;
  gap:8px;
  align-items:center;
  margin-left:auto;
}

.search-form input,
.search-form select{
  width:220px;
  height:40px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 12px;
  font:inherit;
  font-weight:700;
}

.search-form select{
  width:auto;
  min-width:130px;
  background:#fff;
}

button,
.primary-button,
.secondary-button,
.icon-button{
  border:0;
  border-radius:8px;
  height:40px;
  padding:0 14px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.icon-action{
  gap:7px;
}

.primary-button{
  color:#fff;
  background:var(--primary);
}

.secondary-button{
  color:var(--text);
  background:#eef3fb;
}

.danger-button{
  color:#fff;
  background:#b42318;
}

.icon-button{
  background:#eef3fb;
  color:var(--text);
}

.table-placeholder{
  display:grid;
  grid-template-columns:1.2fr 1.4fr .6fr repeat(4,.5fr);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
}

.table-placeholder div{
  padding:10px;
  border-right:1px solid var(--line);
  background:#f8fafc;
  font-weight:800;
  font-size:13px;
}

.table-placeholder div:last-child{
  border-right:0;
}

.table-scroll{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:8px;
}

.data-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
}

.data-table th,
.data-table td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:13px;
  white-space:nowrap;
}

.data-table th{
  background:#f8fafc;
  color:var(--muted);
  font-weight:900;
}

.data-table tr:last-child td{
  border-bottom:0;
}

.simple-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.simple-list div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}

.simple-list div:last-child{
  border-bottom:0;
}

.admin-hero{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);
  gap:14px;
  margin-bottom:14px;
}

.admin-hero-main,
.admin-hero-side{
  min-width:0;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
}

.admin-hero-main{
  padding:22px;
  background:linear-gradient(135deg,#ffffff 0%,#eef6ff 100%);
}

.admin-eyebrow{
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 9px;
  border-radius:999px;
  color:#0b5ed7;
  background:#dbeafe;
  font-size:12px;
  font-weight:900;
}

.admin-hero-main h2{
  margin:10px 0 8px;
  color:var(--text);
  font-size:34px;
  line-height:1.05;
  letter-spacing:0;
}

.admin-hero-main p{
  max-width:720px;
  margin:0;
  color:var(--muted);
  font-weight:750;
  line-height:1.45;
}

.admin-hero-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:16px;
}

.admin-hero-side{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:18px;
}

.admin-hero-side span,
.admin-hero-side em{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.admin-hero-side strong{
  display:block;
  margin:7px 0 10px;
  color:#12805c;
  font-size:28px;
  line-height:1.1;
  font-weight:950;
}

.admin-progress{
  height:9px;
  border-radius:999px;
  overflow:hidden;
  background:#e8eef6;
}

.admin-progress i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#16a34a;
}

.admin-hero-side em{
  margin-top:8px;
}

.admin-money-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}

.admin-money-card{
  min-height:116px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
}

.admin-money-card span,
.admin-money-card em{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.admin-money-card strong{
  display:block;
  margin:8px 0 6px;
  color:var(--text);
  font-size:24px;
  line-height:1.1;
  font-weight:950;
}

.admin-money-card.is-open{
  border-color:#fed7aa;
  background:#fff7ed;
}

.admin-money-card.is-cash{
  border-color:#a7f3d0;
  background:#ecfdf5;
}

.admin-money-card.is-paid{
  border-color:#bfdbfe;
  background:#eff6ff;
}

.admin-workbench{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:14px;
}

.admin-section{
  min-width:0;
  margin-bottom:14px;
}

.admin-workbench .admin-section{
  margin-bottom:0;
}

.admin-accordion,
.admin-customer-list,
.admin-invoice-list,
.admin-priority-list,
.admin-area-summary{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.admin-area-card,
.admin-street-card{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfdff;
  overflow:hidden;
}

.admin-area-card > summary,
.admin-street-card > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:56px;
  padding:11px 12px;
  cursor:pointer;
  list-style:none;
}

.admin-area-card > summary::-webkit-details-marker,
.admin-street-card > summary::-webkit-details-marker{
  display:none;
}

.admin-area-card summary strong,
.admin-area-card summary span,
.admin-area-card summary em,
.admin-street-card summary strong,
.admin-street-card summary span,
.admin-street-card summary em,
.admin-priority-row strong,
.admin-priority-row span,
.admin-area-summary-row strong,
.admin-area-summary-row span{
  display:block;
}

.admin-area-card summary strong,
.admin-street-card summary strong,
.admin-priority-row strong,
.admin-area-summary-row strong{
  color:var(--text);
  font-weight:950;
}

.admin-area-card summary span,
.admin-street-card summary span,
.admin-priority-row span,
.admin-area-summary-row span{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.admin-area-card summary em,
.admin-street-card summary em{
  color:var(--primary-strong);
  font-style:normal;
  font-weight:950;
  white-space:nowrap;
}

.admin-street-card{
  margin:0 10px 8px;
  background:#fff;
}

.admin-customer-list{
  padding:0 10px 10px;
}

.admin-customer-row,
.admin-invoice-row,
.admin-priority-row,
.admin-area-summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:58px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:inherit;
  text-decoration:none;
}

.admin-priority-row{
  border-color:#dbeafe;
  background:#f8fbff;
}

.admin-customer-row strong,
.admin-customer-row span,
.admin-invoice-row strong,
.admin-invoice-row span{
  display:block;
}

.admin-customer-row span,
.admin-invoice-row span{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.admin-customer-row > div:last-child,
.admin-invoice-row > div:last-child,
.admin-priority-row > div:last-child,
.admin-area-summary-row > div:last-child{
  text-align:right;
}

.admin-invoice-list.compact{
  max-height:438px;
  overflow:auto;
  padding-right:2px;
}

.admin-invoice-row.status-overdue{
  border-color:#fecaca;
  background:#fff5f5;
}

.admin-invoice-row.status-paid{
  border-color:#bbf7d0;
  background:#f7fff9;
}

.admin-payment-grid,
.settings-hub,
.settings-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}

.admin-payment-grid article,
.settings-action-card{
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
}

.admin-payment-grid article span,
.admin-payment-grid article em,
.settings-action-card span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.admin-payment-grid article strong,
.settings-action-card strong{
  display:block;
  margin:6px 0;
  color:var(--text);
  font-size:18px;
  font-weight:950;
}

.subscription-panel{
  margin-bottom:14px;
}

.subscription-overview{
  display:grid;
  grid-template-columns:minmax(260px,.75fr) minmax(0,1fr);
  gap:12px;
  padding:0 14px 14px;
}

.subscription-current-card{
  padding:14px;
  border:1px solid #bfdbfe;
  border-radius:8px;
  background:#eff6ff;
}

.subscription-current-card span,
.subscription-current-card em{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.subscription-current-card strong{
  display:block;
  margin:5px 0 3px;
  color:var(--text);
  font-size:24px;
  font-weight:950;
  line-height:1.1;
}

.subscription-current-card b{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  margin-top:10px;
  padding:0 10px;
  border-radius:999px;
  color:#075985;
  background:#dbeafe;
  font-size:13px;
  font-weight:950;
}

.feature-chip-list{
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  gap:8px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}

.feature-chip{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:#f8fafc;
  font-size:12px;
  font-weight:900;
}

.feature-chip.is-on{
  color:#0f7a4e;
  border-color:#bbf7d0;
  background:#ecfdf5;
}

.feature-chip.is-off{
  opacity:.52;
}

.subscription-form{
  padding:0 14px 14px;
}

.platform-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.84);
  box-shadow:var(--shadow);
}

.platform-hero span{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  color:#0b5ed7;
  background:#dbeafe;
  font-size:12px;
  font-weight:950;
}

.platform-hero h2{
  margin:10px 0 7px;
  color:var(--text);
  font-size:30px;
  line-height:1.08;
  letter-spacing:0;
}

.platform-hero p{
  max-width:760px;
  margin:0;
  color:var(--muted);
  font-weight:750;
  line-height:1.45;
}

.platform-hero-actions{
  display:flex;
  flex:0 0 auto;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.platform-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}

.platform-kpis article,
.platform-company-meters article{
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  box-shadow:var(--soft-shadow);
}

.platform-kpis span,
.platform-kpis em,
.platform-company-meters span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.platform-kpis strong,
.platform-company-meters strong{
  display:block;
  margin:5px 0 3px;
  color:var(--text);
  font-size:24px;
  font-weight:950;
  line-height:1.1;
}

.platform-panel{
  margin-bottom:14px;
  overflow:hidden;
}

.platform-panel > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:68px;
  padding:14px 16px;
  cursor:pointer;
  list-style:none;
}

.platform-panel > summary::-webkit-details-marker{
  display:none;
}

.platform-panel > summary strong,
.platform-list-head h2,
.platform-company summary strong{
  display:block;
  color:var(--text);
  font-weight:950;
}

.platform-panel > summary span,
.platform-list-head p,
.platform-company summary span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.platform-panel > summary b{
  color:var(--primary-strong);
  font-size:13px;
  font-weight:950;
}

.platform-form{
  padding:0 16px 16px;
}

.platform-form.compact{
  padding:0;
}

.platform-demo-panel{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding:0 16px 12px;
}

.platform-demo-panel article{
  min-height:92px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8fbff;
}

.platform-demo-panel span,
.platform-demo-panel em{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.platform-demo-panel strong{
  display:block;
  margin:6px 0 4px;
  color:var(--text);
  font-size:18px;
  font-weight:950;
}

.platform-demo-action{
  padding:0 16px 16px;
}

.platform-list-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 16px 10px;
}

.platform-list-head h2{
  margin:0;
  font-size:22px;
}

.platform-list-head p{
  margin:3px 0 0;
}

.platform-search{
  display:flex;
  gap:8px;
  flex:0 0 auto;
}

.platform-search input{
  width:220px;
  height:40px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 11px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-weight:800;
}

.platform-company-list{
  display:flex;
  flex-direction:column;
  gap:9px;
  padding:0 16px 16px;
}

.platform-company{
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}

.platform-company > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:72px;
  padding:12px 14px;
  cursor:pointer;
  list-style:none;
}

.platform-company > summary::-webkit-details-marker{
  display:none;
}

.platform-company-side{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

.platform-company-side b{
  color:var(--primary-strong);
  font-size:13px;
  font-weight:950;
}

.platform-company-side small{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}

.platform-status{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
}

.platform-status.is-good{
  color:#0f7a4e;
  background:#dcfce7;
}

.platform-status.is-warning{
  color:#9a5b00;
  background:#fef3c7;
}

.platform-status.is-bad{
  color:#b42318;
  background:#fee2e2;
}

.platform-status.is-muted{
  color:var(--muted);
  background:#f1f5f9;
}

.platform-company-body{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:0 14px 14px;
}

.platform-company-meters{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}

.platform-company-meters article{
  padding:11px;
  box-shadow:none;
  background:#f8fbff;
}

.platform-company-meters strong{
  font-size:18px;
}

.platform-control-grid{
  display:grid;
  grid-template-columns:minmax(190px,.72fr) minmax(0,1.4fr) minmax(220px,.88fr);
  gap:10px;
}

.platform-control-card,
.platform-integration-panel{
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8fbff;
}

.platform-control-card{
  padding:12px;
}

.platform-control-card h3{
  margin:0 0 10px;
  color:var(--text);
  font-size:14px;
  font-weight:950;
}

.platform-role-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}

.platform-role-list span{
  display:grid;
  gap:2px;
  min-height:48px;
  padding:8px;
  border:1px solid rgba(214,224,236,.9);
  border-radius:8px;
  background:#fff;
}

.platform-role-list strong{
  color:var(--text);
  font-size:18px;
  font-weight:950;
  line-height:1;
}

.platform-role-list em,
.platform-integration-list em{
  color:var(--muted);
  font-size:11px;
  font-style:normal;
  font-weight:850;
}

.platform-feature-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.platform-feature-list span{
  display:inline-flex;
  min-height:26px;
  align-items:center;
  padding:0 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
}

.platform-feature-list span.is-on{
  color:#0b5ed7;
  background:#dbeafe;
}

.platform-feature-list span.is-off{
  color:#64748b;
  background:#e2e8f0;
}

.platform-integration-list{
  display:grid;
  gap:7px;
}

.platform-integration-list span{
  display:flex;
  min-height:38px;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border-radius:9px;
  background:#fff;
}

.platform-integration-list span.is-good{
  color:#0f7a4e;
  background:#dcfce7;
}

.platform-integration-list span.is-muted{
  color:#64748b;
  background:#f1f5f9;
}

.platform-integration-list strong{
  font-size:12px;
  font-weight:950;
}

.platform-integration-panel{
  overflow:hidden;
}

.platform-integration-panel > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:58px;
  padding:12px;
  cursor:pointer;
  list-style:none;
}

.platform-integration-panel > summary::-webkit-details-marker{
  display:none;
}

.platform-integration-panel > summary strong{
  display:block;
  color:var(--text);
  font-size:15px;
  font-weight:950;
}

.platform-integration-panel > summary span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.platform-integration-panel > summary b{
  color:var(--primary-strong);
  font-size:12px;
  font-weight:950;
}

.public-shell{
  display:block;
  min-height:100vh;
}

.auth-public-page{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(0,122,255,.20), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255,149,0,.16), transparent 30%),
    #f5f7fb;
}

.auth-public-page.login-page{
  background:#f5f7fb;
}

.auth-public-page .main{
  min-height:100vh;
  width:100%;
  padding:24px;
}

.auth-gate{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.58fr);
  gap:18px;
  width:min(1120px,100%);
  min-height:calc(100vh - 48px);
  margin:0 auto;
  align-items:center;
}

.auth-gate.single{
  display:flex;
  justify-content:center;
}

.auth-gate.login-only{
  display:flex;
  justify-content:center;
  width:100%;
  max-width:none;
}

.auth-brand-panel,
.auth-card{
  border:1px solid rgba(0,0,0,.09);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  box-shadow:0 24px 70px rgba(0,0,0,.10);
  backdrop-filter:blur(24px) saturate(1.2);
}

.auth-brand-panel{
  min-height:520px;
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
}

.auth-brand-panel img{
  width:min(360px,100%);
  height:auto;
  margin-bottom:30px;
  object-fit:contain;
}

.auth-brand-panel h1{
  margin:0 0 10px;
  color:var(--text);
  font-size:46px;
  line-height:1.02;
  letter-spacing:0;
}

.auth-brand-panel p{
  max-width:620px;
  margin:0;
  color:var(--muted);
  font-size:17px;
  font-weight:750;
  line-height:1.5;
}

.auth-points{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:28px;
}

.auth-points span,
.auth-eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  color:#0b5ed7;
  background:#dbeafe;
  font-size:12px;
  font-weight:950;
}

.auth-card{
  padding:24px;
}

.auth-card.login-only-card{
  width:min(430px,100%);
  box-shadow:0 18px 45px rgba(0,0,0,.08);
}

.auth-login-logo{
  display:block;
  width:min(270px,100%);
  height:auto;
  margin:0 auto 18px;
  object-fit:contain;
}

.auth-card.login-only-card h2{
  margin-top:0;
  text-align:center;
}

.auth-card.wide{
  width:min(760px,100%);
}

.auth-card h2{
  margin:10px 0 18px;
  color:var(--text);
  font-size:28px;
  line-height:1.1;
}

.auth-card label{
  display:block;
  margin-bottom:12px;
  color:var(--text);
  font-size:13px;
  font-weight:850;
}

.auth-card input,
.auth-card select,
.auth-card textarea{
  width:100%;
  margin-top:6px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-weight:750;
}

.auth-card input,
.auth-card select{
  height:44px;
  padding:0 12px;
}

.auth-card textarea{
  min-height:96px;
  padding:12px;
  resize:vertical;
}

.auth-card .primary-button{
  width:100%;
  height:44px;
  margin-top:4px;
}

.auth-links{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:16px;
}

.auth-links a,
.auth-back{
  color:var(--primary);
  font-size:13px;
  font-weight:850;
  text-decoration:none;
}

.auth-back{
  display:inline-flex;
  margin-bottom:10px;
}

.auth-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 12px;
}

.platform-request-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:14px;
}

.platform-request-list{
  display:flex;
  flex-direction:column;
  gap:9px;
  padding:0 16px 16px;
}

.platform-request-card{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}

.platform-request-card strong,
.platform-request-card span{
  display:block;
}

.platform-request-card strong{
  color:var(--text);
  font-weight:950;
}

.platform-request-card span,
.platform-request-card p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  line-height:1.4;
}

.platform-request-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.platform-request-form input,
.platform-request-form select{
  width:100%;
  height:38px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 10px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
  font-weight:800;
}

.import-preview{
  margin:14px 0;
}

.import-preview h3{
  margin:0 0 5px;
  color:var(--text);
  font-size:18px;
  font-weight:950;
}

.import-preview-row.is-recommended{
  border-color:#bfdbfe;
  background:#eff6ff;
}

.import-user-select{
  display:grid;
  gap:6px;
  max-width:420px;
  margin:0 0 12px;
  color:var(--text);
  font-size:13px;
  font-weight:850;
}

.import-user-select select{
  width:100%;
  height:42px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 10px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-weight:800;
}

.admin-v3-filter{
  display:grid;
  grid-template-columns:minmax(220px,.8fr) minmax(320px,1fr) auto;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
}

.admin-v3-filter span,
.admin-v3-filter em{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.admin-v3-filter strong{
  display:block;
  margin:2px 0;
  color:var(--text);
  font-size:18px;
  font-weight:950;
}

.admin-v3-range-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f3f6fb;
}

.admin-v3-range-tabs a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 8px;
  border-radius:7px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}

.admin-v3-range-tabs a.is-active{
  color:#fff;
  background:#162033;
}

.admin-v3-filter form{
  display:flex;
  gap:8px;
}

.admin-v3-filter input{
  width:146px;
  height:38px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 10px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-weight:850;
}

.admin-v3-filter button{
  height:38px;
  border:0;
  border-radius:8px;
  padding:0 12px;
  color:#fff;
  background:#162033;
  font-weight:900;
  cursor:pointer;
}

.admin-v3-hero{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr);
  gap:14px;
  margin-bottom:14px;
}

.admin-v3-hero-copy,
.admin-v3-hero-meter,
.admin-v3-meter-card,
.admin-v3-panel{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
}

.admin-v3-hero-copy{
  padding:22px;
  background:#f8fbff;
}

.admin-v3-hero-copy span,
.admin-v3-hero-meter span,
.admin-v3-meter-card span,
.admin-v3-meter-card em,
.admin-v3-panel summary em,
.admin-v3-panel summary span,
.admin-v3-row span,
.admin-v3-subhead span,
.admin-v3-payment-grid article span,
.admin-v3-payment-grid article em{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.admin-v3-hero-copy > span{
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 9px;
  border-radius:999px;
  color:#0b5ed7;
  background:#dbeafe;
  font-weight:950;
}

.admin-v3-hero-copy h2{
  margin:10px 0 8px;
  color:var(--text);
  font-size:34px;
  line-height:1.05;
  letter-spacing:0;
}

.admin-v3-hero-copy p{
  max-width:760px;
  margin:0;
  color:var(--muted);
  font-weight:750;
  line-height:1.45;
}

.admin-v3-hero-meter{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:18px;
}

.admin-v3-hero-meter strong,
.admin-v3-meter-card strong,
.admin-v3-row strong,
.admin-v3-panel summary b,
.admin-v3-payment-grid article strong{
  display:block;
  color:var(--text);
  font-weight:950;
}

.admin-v3-hero-meter strong{
  margin:6px 0 10px;
  color:#12805c;
  font-size:28px;
  line-height:1.1;
}

.admin-v3-hero-meter em{
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.admin-v3-meter-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}

.admin-v3-meter-card{
  min-width:0;
  padding:15px;
}

.admin-v3-meter-card strong{
  margin:7px 0 4px;
  font-size:22px;
  line-height:1.1;
}

.admin-v3-meter-card.open{
  background:#fff7ed;
  border-color:#fed7aa;
}

.admin-v3-meter-card.cash{
  background:#ecfdf5;
  border-color:#a7f3d0;
}

.admin-v3-meter-card.invoices{
  background:#f8fafc;
  border-color:#cbd5e1;
}

.admin-v3-meter-card.paid{
  background:#eff6ff;
  border-color:#bfdbfe;
}

.admin-v3-progress,
.admin-v3-mini-bar{
  height:9px;
  margin-top:10px;
  border-radius:999px;
  overflow:hidden;
  background:#e7edf5;
}

.admin-v3-mini-bar{
  height:7px;
  max-width:360px;
}

.admin-v3-progress i,
.admin-v3-mini-bar i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#1677ff;
}

.admin-v3-meter-card.open .admin-v3-progress i,
.admin-v3-panel .admin-v3-mini-bar i{
  background:#f59e0b;
}

.admin-v3-meter-card.cash .admin-v3-progress i{
  background:#16a34a;
}

.admin-v3-meter-card.invoices .admin-v3-progress i{
  background:#64748b;
}

.admin-v3-meter-card.paid .admin-v3-progress i,
.admin-v3-hero-meter .admin-v3-progress i{
  background:#12805c;
}

.admin-v3-panel{
  margin-bottom:14px;
  overflow:hidden;
}

.admin-v3-panel > summary,
.admin-v3-area-card > summary,
.admin-v3-street-card > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  cursor:pointer;
  list-style:none;
}

.admin-v3-panel > summary{
  min-height:72px;
  padding:14px 16px;
  background:#fff;
}

.admin-v3-panel > summary::-webkit-details-marker,
.admin-v3-area-card > summary::-webkit-details-marker,
.admin-v3-street-card > summary::-webkit-details-marker{
  display:none;
}

.admin-v3-panel > summary > div{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  column-gap:10px;
  row-gap:2px;
  min-width:0;
}

.admin-v3-panel > summary span{
  grid-row:1 / span 2;
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:8px;
  color:#0b5ed7;
  background:#e8f2ff;
  font-size:12px;
  font-weight:950;
}

.admin-v3-panel > summary strong{
  color:var(--text);
  font-size:18px;
  font-weight:950;
}

.admin-v3-panel > summary b{
  flex:0 0 auto;
  text-align:right;
  color:var(--primary-strong);
}

.admin-v3-panel > summary::after{
  content:"";
  width:9px;
  height:9px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg);
  transition:transform .18s ease;
}

.admin-v3-panel[open] > summary::after{
  transform:rotate(-135deg);
}

.admin-v3-split{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:0 16px 16px;
}

.admin-v3-subhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.admin-v3-subhead h3{
  margin:0;
  color:var(--text);
  font-size:15px;
}

.admin-v3-list,
.admin-v3-month-list,
.admin-v3-area-list,
.admin-v3-street-list,
.admin-v3-customer-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.admin-v3-list{
  padding:0 16px 16px;
}

.admin-v3-split .admin-v3-list{
  padding:0;
}

.admin-v3-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:62px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfdff;
  color:inherit;
  text-decoration:none;
}

.admin-v3-month-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding:0 16px 16px;
}

.admin-v3-month-row{
  min-width:0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfdff;
}

.admin-v3-month-row strong,
.admin-v3-month-row span{
  display:block;
}

.admin-v3-month-row strong{
  color:var(--text);
  font-weight:950;
}

.admin-v3-month-row > div:last-child{
  margin-top:10px;
}

.admin-v3-month-row > div:last-child strong{
  font-size:18px;
}

.admin-v3-month-row span{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.admin-v3-row.slim{
  min-height:54px;
  background:#fff;
}

.admin-v3-row.invoice.status-overdue{
  border-color:#fecaca;
  background:#fff5f5;
}

.admin-v3-row.invoice.status-paid{
  border-color:#bbf7d0;
  background:#f7fff9;
}

.admin-v3-row > div:first-child{
  min-width:0;
}

.admin-v3-row > div:last-child{
  flex:0 0 auto;
  text-align:right;
}

.admin-v3-area-list{
  padding:0 16px 16px;
}

.admin-v3-area-card,
.admin-v3-street-card{
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fbff;
  overflow:hidden;
}

.admin-v3-area-card > summary{
  min-height:68px;
  padding:12px;
}

.admin-v3-area-card > summary > div,
.admin-v3-street-card > summary > div{
  min-width:0;
}

.admin-v3-area-card summary strong,
.admin-v3-street-card summary strong{
  display:block;
  color:var(--text);
  font-weight:950;
}

.admin-v3-area-card summary span,
.admin-v3-street-card summary span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.admin-v3-area-card summary b,
.admin-v3-street-card summary b{
  flex:0 0 auto;
  color:var(--primary-strong);
}

.admin-v3-street-list{
  padding:0 10px 10px;
}

.admin-v3-street-card{
  background:#fff;
}

.admin-v3-street-card > summary{
  min-height:54px;
  padding:10px;
}

.admin-v3-customer-list{
  padding:0 10px 10px;
}

.admin-v3-payment-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding:0 16px 16px;
}

.admin-v3-payment-grid article{
  padding:13px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfdff;
}

.admin-v3-payment-grid article strong{
  margin:5px 0;
  font-size:18px;
}

.settings-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.settings-panel{
  min-width:0;
}

.settings-inline-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:end;
  margin-bottom:10px;
}

.settings-inline-form input,
.settings-inline-form select{
  width:100%;
  height:40px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 10px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-weight:800;
}

.settings-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:560px;
  overflow:auto;
}

.settings-locked-card{
  margin:0 14px 14px;
  padding:14px;
  border:1px dashed #bfdbfe;
  border-radius:8px;
  background:#f8fbff;
}

.settings-locked-card strong,
.settings-locked-card span{
  display:block;
}

.settings-locked-card strong{
  color:var(--text);
  font-size:16px;
  font-weight:950;
}

.settings-locked-card span{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.settings-row,
.settings-detail-row{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}

.settings-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
}

.settings-row strong,
.settings-row span,
.settings-detail-row summary strong,
.settings-detail-row summary span{
  display:block;
}

.settings-row span,
.settings-detail-row summary span{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.settings-row-actions{
  display:flex;
  flex:0 0 auto;
  gap:6px;
}

.settings-row-actions form,
.settings-detail-row form{
  margin:0;
}

.settings-detail-row{
  padding:10px;
}

.settings-detail-row summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  list-style:none;
}

.settings-detail-row summary::-webkit-details-marker{
  display:none;
}

.settings-detail-row .settings-inline-form{
  grid-template-columns:1fr 1fr auto;
  margin:10px 0 8px;
}

.simple-list span{
  color:var(--muted);
  font-size:13px;
}

.private-grid-groups{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.grid-area,
.grid-street{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  overflow:hidden;
}

.grid-area > summary,
.grid-street > summary{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:38px;
  padding:0 12px;
  cursor:pointer;
  font-weight:900;
  list-style:none;
}

.grid-area > summary::-webkit-details-marker,
.grid-street > summary::-webkit-details-marker{
  display:none;
}

.grid-area > summary{
  justify-content:space-between;
  background:#eaf3ff;
  color:#123a7a;
}

.grid-area > summary span{
  color:#456084;
  font-size:12px;
}

.grid-street{
  margin:10px;
}

.grid-street > summary{
  background:#f1f6ff;
  color:#162033;
}

.street-summary{
  justify-content:space-between;
}

.street-summary-main{
  min-width:0;
}

.street-summary-main strong,
.street-summary-main span{
  display:block;
}

.street-summary-main strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.street-summary-main span{
  margin-top:3px;
  color:#5b6b82;
  font-size:11px;
  font-weight:900;
}

.street-summary-side{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:6px;
}

.street-chip{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
}

.street-chip.is-open{
  background:#fff7d6;
  color:#8a6100;
}

.street-chip.is-cash{
  background:#dcfce7;
  color:#11633f;
}

.street-icon-link{
  display:inline-flex;
  width:28px;
  height:28px;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:8px;
  background:#1677ff;
  color:#fff;
  cursor:pointer;
}

.street-icon-link svg{
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.street-icon-link.is-settings{
  background:#eef3fb;
  color:var(--text);
}

.street-settings-panel[hidden]{
  display:none;
}

.street-settings-panel{
  padding:8px;
  border-top:1px solid #edf2f7;
  background:#fff;
}

.quick-customer-popover[hidden]{
  display:none;
}

body.has-quick-customer-popover{
  overflow:hidden;
}

.quick-customer-popover{
  position:fixed;
  inset:0;
  z-index:10050;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:16px;
}

.quick-customer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(16,24,40,.34);
}

.quick-customer-panel{
  position:relative;
  z-index:1;
  width:min(420px,100%);
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 24px 70px rgba(16,24,40,.28);
}

.quick-customer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.quick-customer-head strong,
.quick-customer-head span{
  display:block;
}

.quick-customer-head strong{
  color:var(--text);
  font-size:16px;
  font-weight:950;
}

.quick-customer-head span{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.quick-customer-head button{
  width:34px;
  height:34px;
  padding:0;
  border-radius:8px;
  background:#eef3fb;
  color:var(--text);
  font-size:22px;
  line-height:1;
}

.quick-customer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.quick-customer-grid label{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.quick-customer-grid .wide{
  grid-column:1 / -1;
}

.quick-customer-grid input[type="text"],
.quick-customer-grid input[type="tel"]{
  width:100%;
  height:42px;
  margin-top:5px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 10px;
  color:var(--text);
  font:inherit;
  font-size:16px;
  font-weight:850;
}

.quick-check{
  display:flex !important;
  align-items:center;
  gap:9px;
  min-height:38px;
  padding:0 2px;
  color:var(--text) !important;
}

.quick-check input{
  width:18px;
  height:18px;
}

.quick-customer-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:12px;
}

.quick-customer-actions button{
  min-height:42px;
}

.grid-area:not([open]) > summary,
.grid-street:not([open]) > summary{
  border-bottom:0;
}

.private-grid-wrap{
  width:100%;
  overflow:auto;
  border-top:1px solid var(--line);
  background:#fff;
}

.private-mobile-list{
  display:none;
}

.cash-route-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding:12px 14px;
  border:1px solid #b7e4c7;
  border-radius:8px;
  background:#ecfdf3;
  color:#11633f;
  box-shadow:0 10px 26px rgba(16,24,40,.05);
}

.cash-route-card strong,
.cash-route-card span{
  display:block;
}

.cash-route-card strong{
  font-weight:950;
}

.cash-route-card span{
  margin-top:3px;
  font-size:12px;
  font-weight:850;
}

.mobile-house-card{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  overflow:hidden;
}

.mobile-house-card.is-inactive{
  opacity:.72;
}

.mobile-house-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  background:#fbfdff;
  border-bottom:1px solid var(--line);
}

.mobile-house-head strong,
.mobile-house-head span{
  display:block;
}

.mobile-house-head strong{
  color:var(--text);
  font-size:16px;
  font-weight:950;
}

.mobile-house-head span{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.mobile-house-head a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 11px;
  border-radius:8px;
  background:#eef4ff;
  color:#155eef;
  text-decoration:none;
  font-size:12px;
  font-weight:950;
}

.mobile-month-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  background:var(--line);
}

.mobile-month-item{
  min-width:0;
  padding:8px;
  background:#fff;
}

.mobile-month-item > span:first-child{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}

.mobile-month-item .month-pill{
  height:32px;
  border-style:solid;
}

.private-grid{
  width:max-content;
  min-width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.private-grid th,
.private-grid td{
  height:36px;
  padding:6px 8px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  white-space:nowrap;
  font-size:13px;
}

.private-grid th{
  position:sticky;
  top:0;
  z-index:8;
  background:#f8fafc;
  color:var(--muted);
  font-weight:900;
  text-align:center;
}

.private-grid .sticky-col{
  position:sticky;
  background:#fff;
  z-index:6;
}

.private-grid th.sticky-col{
  z-index:10;
  background:#f8fafc;
}

.private-grid .col-nr{
  left:0;
  width:86px;
  min-width:86px;
  max-width:86px;
}

.private-grid .col-floor{
  left:86px;
  width:66px;
  min-width:66px;
  max-width:66px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.private-grid .col-price{
  width:82px;
  min-width:82px;
  text-align:right;
}

.private-grid .col-notes{
  width:170px;
  min-width:170px;
  max-width:170px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.frequency-badge{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
}

.private-grid .month-head,
.private-grid .month-cell{
  width:70px;
  min-width:70px;
  text-align:center;
}

.house-row:nth-child(even) .sticky-col,
.house-row:nth-child(even) td{
  background:#fbfdff;
}

.house-row:hover td,
.house-row:hover .sticky-col{
  background:#eef6ff;
}

.house-row.is-inactive td,
.house-row.is-inactive .sticky-col{
  color:#7a8798;
  background:#f7f8fb;
}

.notes-cell-content{
  display:flex;
  min-width:0;
  align-items:center;
  gap:5px;
}

.notes-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

.contact-icon{
  display:inline-flex;
  flex:0 0 auto;
  width:18px;
  height:18px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
}

.contact-icon svg{
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.contact-whatsapp{
  background:#dcfce7;
  color:#128c4a;
}

.contact-sms{
  background:#dbeafe;
  color:#1d4ed8;
}

.contact-email{
  background:#ffedd5;
  color:#c2410c;
}

.house-link{
  color:var(--text);
  font-weight:900;
  text-decoration:none;
}

.house-link:hover{
  color:var(--primary);
}

.inactive-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:18px;
  margin-left:5px;
  padding:0 5px;
  border-radius:999px;
  background:#f2f4f7;
  color:#667085;
  font-size:10px;
  font-weight:900;
}

.month-form{
  margin:0;
}

.month-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:24px;
  padding:0;
  border-radius:6px;
  border:1px dotted rgba(102,112,133,.25);
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  font-family:inherit;
}

.month-trigger{
  appearance:none;
  background:#fff;
}

.month-cell{
  padding:5px;
  position:relative;
}

.month-cell:hover .month-pill{
  outline:2px solid rgba(22,119,255,.18);
  outline-offset:1px;
}

.month-disabled{
  cursor:default;
}

.month-popover[hidden]{
  display:none;
}

body.has-month-popover{
  overflow:hidden;
}

.month-popover{
  position:fixed;
  inset:0;
  z-index:150;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:16px;
}

.month-popover-backdrop{
  position:absolute;
  inset:0;
  background:rgba(16,24,40,.34);
}

.month-popover-panel{
  position:relative;
  z-index:1;
  width:min(360px,100%);
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 24px 70px rgba(16,24,40,.28);
}

.month-popover-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.month-popover-head strong{
  color:var(--text);
  font-size:15px;
  font-weight:950;
}

.month-popover-head span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.month-popover-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.month-popover-actions button,
.month-popover-close{
  min-height:42px;
  padding:0;
  border-radius:8px;
  background:#eef3fb;
  color:var(--text);
  font-size:13px;
  font-weight:950;
}

.month-popover-actions button[value="/"]{
  background:#fff7d6;
  color:#8a6100;
}

.month-popover-actions button[value="X"]{
  background:#ddf7e8;
  color:#11633f;
}

.month-popover-actions button[value="O"]{
  background:#e2f2ff;
  color:#075985;
}

.month-popover-close{
  width:100%;
  margin-top:10px;
  background:#f8fafc;
  color:var(--muted);
}

.status-empty{
  background:#fff;
}

.status-open{
  background:#fff7d6;
  border-color:#f3d46b;
  color:#8a6100;
}

.status-paid{
  background:#ddf7e8;
  border-color:#8ee0ad;
  color:#11633f;
}

.status-skipped{
  background:#e2f2ff;
  border-color:#9dd2ff;
  color:#075985;
}

.status-issue{
  background:#ffe7df;
  border-color:#ffb199;
  color:#b42318;
}

.status-partial{
  background:#f3e8ff;
  border-color:#d8b4fe;
  color:#6b21a8;
}

.login-panel{
  min-height:65vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-card{
  width:min(420px,100%);
  padding:22px;
}

.login-card h2{
  margin:0 0 16px;
}

.login-card label{
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  margin-bottom:12px;
}

.login-card input{
  display:block;
  width:100%;
  margin-top:6px;
  height:42px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 12px;
  font:inherit;
}

.login-card .primary-button{
  width:100%;
  margin-top:4px;
}

.form-error{
  margin-bottom:14px;
  padding:10px 12px;
  border-radius:8px;
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#9f1239;
  font-weight:800;
  font-size:13px;
}

.success-box{
  margin-bottom:14px;
  padding:12px;
  border-radius:8px;
  background:#ecfdf3;
  border:1px solid #bbf7d0;
  color:#14532d;
}

.success-box ul{
  margin:8px 0 0;
  padding-left:20px;
}

.form-panel{
  max-width:980px;
}

.section-details{
  display:block;
}

.section-details > summary.panel-head{
  cursor:pointer;
  list-style:none;
}

.section-details > summary.panel-head::-webkit-details-marker{
  display:none;
}

.section-details > summary.panel-head::after{
  content:"";
  width:9px;
  height:9px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg);
  transition:transform .16s ease;
}

.section-details[open] > summary.panel-head::after{
  transform:rotate(225deg);
}

.section-details > summary.panel-head .badge{
  margin-left:auto;
}

.section-details:not([open]){
  padding-bottom:18px;
}

.section-details:not([open]) > summary.panel-head{
  margin-bottom:0;
}

.status-panel{
  max-width:980px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}

.status-panel strong,
.status-panel span{
  display:block;
}

.status-panel span{
  margin-top:2px;
  color:var(--muted);
  font-size:13px;
}

.status-panel.is-inactive{
  border-color:#fecdca;
  background:#fff7f6;
}

.customer-form{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.form-section{
  border-bottom:1px solid var(--line);
  padding-bottom:18px;
}

.form-section:last-of-type{
  border-bottom:0;
  padding-bottom:0;
}

.form-section h2{
  margin:0 0 12px;
  font-size:16px;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.customer-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.customer-form input,
.customer-form select,
.customer-form textarea{
  width:100%;
  min-height:40px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 10px;
  color:var(--text);
  background:#fff;
  font:inherit;
  font-size:14px;
  font-weight:600;
}

.customer-form textarea{
  min-height:96px;
  padding:10px;
  resize:vertical;
}

.check-row{
  min-height:40px;
  flex-direction:row !important;
  align-items:center;
  justify-content:flex-start;
  align-self:end;
  color:var(--text) !important;
}

.check-row input{
  width:18px;
  min-height:18px;
}

.form-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.empty-state{
  padding:18px;
  border:1px dashed var(--line);
  border-radius:8px;
  color:var(--muted);
  font-weight:800;
  background:#fff;
}

.planning-board{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.planning-column{
  min-height:220px;
}

.planning-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.planning-item{
  display:block;
  padding:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfdff;
  text-decoration:none;
}

.planning-item summary{
  cursor:pointer;
  list-style:none;
}

.planning-item summary::-webkit-details-marker{
  display:none;
}

.planning-item strong,
.planning-item span,
.planning-item em{
  display:block;
}

.street-plan-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.planning-item strong{
  color:var(--text);
  font-size:14px;
  min-width:0;
}

.planning-item span{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.planning-item em{
  margin-top:7px;
  color:var(--primary-strong);
  font-size:12px;
  font-style:normal;
  font-weight:900;
}

.planning-item:hover{
  border-color:rgba(22,119,255,.45);
  background:#f1f7ff;
}

.business-plan{
  border-color:rgba(16,185,129,.35);
  background:#f6fffb;
}

.business-plan:hover{
  border-color:rgba(16,185,129,.55);
  background:#edfff7;
}

.inline-muted{
  display:inline-flex !important;
  margin-left:6px;
  color:var(--muted) !important;
  font-size:11px !important;
  font-weight:900 !important;
}

.business-plan-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line);
}

.business-plan-meta a,
.business-plan-meta span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 9px;
  border-radius:6px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-size:12px;
  font-weight:900;
}

.business-plan-meta span{
  color:var(--muted);
}

.due-tag{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:24px;
  margin:0 !important;
  padding:0 8px;
  border-radius:999px;
  font-size:11px !important;
  font-weight:900 !important;
  color:#155eef !important;
  background:#eaf2ff;
}

.due-tag.late{
  color:#b42318 !important;
  background:#fee4e2;
}

.due-tag.today{
  color:#027a48 !important;
  background:#dcfae6;
}

.due-tag.soon{
  color:#b54708 !important;
  background:#fef0c7;
}

.due-tag.inactive_month{
  color:#475467 !important;
  background:#eef2f6;
}

.street-plan-houses{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line);
}

.street-plan-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line);
}

.street-plan-houses a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  min-height:30px;
  padding:0 8px;
  border-radius:6px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-size:12px;
  font-weight:900;
}

.street-plan-houses span{
  color:var(--muted);
  font-size:11px;
}

.planning-empty{
  padding:12px;
  border:1px dashed var(--line);
  border-radius:8px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.planning-filter-bar{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}

.planning-filter-chip{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
}

.planning-filter-chip strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:8px;
  background:#eef4ff;
  color:#155eef;
  font-size:15px;
  font-weight:950;
}

.planning-filter-chip span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.planning-filter-chip.late strong{
  background:#fee4e2;
  color:#b42318;
}

.planning-filter-chip.today strong{
  background:#dcfae6;
  color:#027a48;
}

.planning-filter-chip.soon strong{
  background:#fef0c7;
  color:#b54708;
}

.planning-filter-chip.inactive_month strong{
  background:#eef2f6;
  color:#475467;
}

.planning-sections{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.planning-calendar{
  margin-bottom:14px;
}

.planning-calendar-head{
  margin-bottom:14px;
}

.planning-calendar-head span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.calendar-weekdays{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
  margin-bottom:8px;
}

.calendar-weekdays span{
  color:var(--muted);
  font-size:12px;
  font-weight:950;
  text-align:center;
  text-transform:uppercase;
}

.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
}

.calendar-day{
  min-height:138px;
  padding:9px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}

.calendar-day.is-muted{
  background:#f8fafc;
  opacity:.72;
}

.calendar-day.is-today{
  border-color:#84caff;
  background:#f5fbff;
  box-shadow:inset 0 0 0 1px #b2ddff;
}

.calendar-day-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:24px;
  margin-bottom:7px;
}

.calendar-day-head strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:8px;
  color:var(--text);
  font-size:13px;
  font-weight:950;
}

.calendar-day.is-today .calendar-day-head strong{
  background:#1570ef;
  color:#fff;
}

.calendar-day-head span{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}

.calendar-day-items{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.calendar-event{
  display:block;
  min-height:42px;
  padding:7px 8px;
  border:1px solid transparent;
  border-radius:8px;
  text-decoration:none;
}

.calendar-event strong,
.calendar-event span{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.calendar-event strong{
  color:var(--text);
  font-size:12px;
  font-weight:950;
}

.calendar-event span{
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
}

.calendar-event.private{
  border-color:#d1e9ff;
  background:#eff8ff;
}

.calendar-event.business{
  border-color:#abefc6;
  background:#ecfdf3;
}

.calendar-event.late{
  border-color:#fecdca;
  background:#fef3f2;
}

.calendar-event.today{
  border-color:#abefc6;
  background:#ecfdf3;
}

.calendar-event.soon{
  border-color:#fedf89;
  background:#fffaeb;
}

.calendar-more{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#f2f4f7;
  color:var(--muted);
  font-size:11px;
  font-weight:950;
}

.planning-section-panel{
  padding:0;
  overflow:hidden;
}

.planning-section-panel > summary{
  cursor:pointer;
  list-style:none;
}

.planning-section-panel > summary::-webkit-details-marker{
  display:none;
}

.planning-section-head{
  padding:16px;
  background:#fbfcff;
}

.planning-section-head span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.section-toggle{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#eef4ff;
  color:#155eef !important;
}

.planning-card-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px;
}

.planning-card{
  display:block;
  border:1px solid var(--line);
  border-left:5px solid #d0d5dd;
  border-radius:8px;
  background:#fff;
  overflow:hidden;
}

.planning-card-private{
  border-left-color:#2e90fa;
}

.planning-card-business{
  border-left-color:#12b76a;
  background:#fbfffd;
}

.planning-card.status-late{
  border-left-color:#f04438;
}

.planning-card.status-today{
  border-left-color:#12b76a;
}

.planning-card.status-soon{
  border-left-color:#f79009;
}

.planning-card.status-inactive_month{
  border-left-color:#98a2b3;
}

.planning-card-summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:74px;
  padding:12px 14px;
  cursor:pointer;
  list-style:none;
}

.planning-card-summary::-webkit-details-marker{
  display:none;
}

.planning-card-title{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.planning-card-title strong{
  min-width:0;
  color:var(--text);
  font-size:15px;
  font-weight:950;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.planning-card-kind{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#f2f4f7;
  color:#475467;
  font-size:11px;
  font-weight:900;
}

.planning-card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}

.planning-tag{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:6px;
  background:#f8fafc;
  color:#667085;
  font-size:12px;
  font-weight:900;
}

.planning-tag.private{
  background:#eff8ff;
  color:#175cd3;
}

.planning-tag.business{
  background:#ecfdf3;
  color:#027a48;
}

.planning-card-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.planning-card-side em{
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:900;
}

.planning-card-body{
  padding:0 14px 14px;
  border-top:1px solid var(--line);
}

.planning-card-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding-top:12px;
}

.planning-card-stats span{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-height:52px;
  padding:9px 10px;
  border-radius:8px;
  background:#f8fafc;
  color:var(--text);
  font-size:13px;
  font-weight:900;
}

.planning-card-stats strong{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.street-schedule-form{
  display:grid;
  grid-template-columns:1.2fr .8fr .9fr auto;
  gap:10px;
  align-items:end;
  margin-top:12px;
  padding:12px;
  border:1px solid #d6e4ff;
  border-radius:8px;
  background:#f7fbff;
}

.street-schedule-head{
  grid-column:1 / -1;
}

.street-schedule-head strong,
.street-schedule-head span,
.street-schedule-form label{
  display:block;
}

.street-schedule-head strong{
  color:var(--text);
  font-size:13px;
  font-weight:950;
}

.street-schedule-head span{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.street-schedule-form label{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.street-schedule-form input,
.street-schedule-form select{
  width:100%;
  height:38px;
  margin-top:5px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 10px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
  font-weight:800;
}

.object-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.object-row{
  display:grid;
  grid-template-columns:1.4fr 1.2fr .8fr .8fr;
  gap:12px;
  align-items:center;
  min-height:62px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
}

.object-row:hover{
  border-color:rgba(22,119,255,.45);
  background:#f7fbff;
}

.object-row.is-inactive{
  opacity:.62;
}

.object-row strong,
.object-row span,
.object-row em{
  display:block;
}

.object-row strong{
  font-size:14px;
}

.object-row span{
  color:var(--text);
  font-size:13px;
  font-weight:800;
}

.object-row em{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:700;
}

.service-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.service-card{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfdff;
  padding:12px;
}

.service-card summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  list-style:none;
}

.service-card summary::-webkit-details-marker{
  display:none;
}

.service-card summary strong,
.service-card summary span,
.service-card summary em{
  display:block;
}

.service-card summary strong{
  color:var(--text);
  font-size:15px;
}

.service-card summary span{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.service-card summary em{
  flex:0 0 auto;
  color:var(--primary-strong);
  font-size:12px;
  font-style:normal;
  font-weight:900;
}

.simple-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.simple-card{
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  background:#fbfdff;
}

.simple-card summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  list-style:none;
}

.simple-card summary::-webkit-details-marker{
  display:none;
}

.simple-card strong,
.simple-card span{
  display:block;
}

.simple-card strong{
  color:var(--text);
  font-size:14px;
}

.simple-card span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.simple-card .form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:0;
  border-bottom:0;
}

.simple-card .form-actions{
  justify-content:flex-start;
  padding:0;
  border-bottom:0;
}

.add-card{
  margin-top:10px;
  background:#fff;
}

.add-card summary strong{
  color:var(--primary-strong);
}

.compact-form{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.service-status-form{
  display:flex;
  justify-content:flex-end;
  margin:10px 0;
}

.day-picker{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.day-picker span{
  flex:0 0 100%;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.day-picker label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.day-picker input{
  width:16px;
  height:16px;
}

.day-picker label:has(input:checked){
  border-color:rgba(22,119,255,.55);
  background:#eef6ff;
  color:var(--primary-strong);
}

.business-month-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
}

.business-month-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:44px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfdff;
}

.business-month-card strong{
  font-size:12px;
  text-transform:uppercase;
}

.invoice-prep-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.billing-mobile-summary{
  display:none;
}

.billing-warning-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}

.billing-warning-strip span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,214,102,.18);
  color:#875200;
  font-size:12px;
  font-weight:850;
}

.invoice-overview-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.invoice-prep-card{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfdff;
  padding:12px;
}

.invoice-prep-card summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  list-style:none;
}

.invoice-prep-card summary::-webkit-details-marker{
  display:none;
}

.invoice-prep-card summary strong,
.invoice-prep-card summary span,
.invoice-prep-card summary em{
  display:block;
}

.invoice-prep-card summary strong{
  color:var(--text);
  font-size:15px;
}

.invoice-prep-card summary span,
.invoice-object-meta,
.invoice-line em{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.invoice-prep-card summary em{
  flex:0 0 auto;
  color:var(--primary-strong);
  font-size:14px;
  font-style:normal;
  font-weight:900;
}

.invoice-card-side{
  display:flex;
  align-items:flex-end;
  flex-direction:column;
  gap:4px;
}

.invoice-card-side span{
  display:inline-flex !important;
  align-items:center;
  min-height:22px;
  padding:0 8px;
  border-radius:999px;
  background:#ecfdf3;
  color:#027a48 !important;
  font-size:11px !important;
  font-weight:900 !important;
}

.invoice-prep-card.is-warning .invoice-card-side span{
  background:#fff7d6;
  color:#8a6100 !important;
}

.invoice-prep-card.is-draft .invoice-card-side span{
  background:#eef6ff;
  color:#175cd3 !important;
}

.invoice-prep-card.is-empty .invoice-card-side span{
  background:#f2f4f7;
  color:#667085 !important;
}

.invoice-object-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.invoice-warnings{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.invoice-warnings span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 9px;
  border-radius:999px;
  background:#fff7d6;
  color:#8a6100;
  font-size:12px;
  font-weight:900;
}

.invoice-lines{
  display:flex;
  flex-direction:column;
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

.invoice-line{
  display:grid;
  grid-template-columns:1fr 90px 120px 120px;
  gap:10px;
  align-items:center;
  min-height:42px;
  padding:9px 10px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  font-weight:800;
}

.invoice-line:last-child{
  border-bottom:0;
}

.invoice-line-head{
  min-height:36px;
  background:#f8fafc;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.invoice-line-total{
  background:#f8fafc;
  font-weight:900;
}

.invoice-line span:nth-child(n+2){
  text-align:right;
}

.invoice-line strong,
.invoice-line em{
  display:block;
}

.invoice-line em{
  margin-top:3px;
  font-style:normal;
}

.invoice-extra-form-card{
  margin-top:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(0,122,255,.05);
  overflow:hidden;
}

.invoice-extra-form-card > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:42px;
  padding:0 12px;
  cursor:pointer;
  list-style:none;
}

.invoice-extra-form-card > summary::-webkit-details-marker{
  display:none;
}

.invoice-extra-form-card strong,
.invoice-extra-form-card span{
  display:block;
}

.invoice-extra-form-card strong{
  color:var(--text);
  font-size:14px;
}

.invoice-extra-form-card span{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.invoice-extra-form-card form{
  padding:0 12px 12px;
}

.invoice-extra-more{
  margin-top:8px;
}

.invoice-extra-more > summary{
  cursor:pointer;
  list-style:none;
  color:var(--primary-strong);
  font-size:12px;
  font-weight:850;
}

.invoice-extra-more > summary::-webkit-details-marker{
  display:none;
}

.invoice-extra-more .form-grid{
  margin-top:8px;
}

.invoice-extra-locked{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(198,106,0,.25);
  border-radius:12px;
  background:rgba(255,214,102,.16);
  color:#875200;
  font-size:12px;
  font-weight:750;
}

.inline-delete-form{
  display:inline-flex;
  margin-left:6px;
}

.inline-delete-form button{
  border:0;
  padding:0;
  color:#c2410c;
  background:transparent;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.invoice-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:12px;
}

.invoice-actions form{
  margin:0;
}

.invoice-status-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.invoice-status-actions form{
  margin:0;
}

.invoice-status-actions button:disabled{
  opacity:.55;
  cursor:default;
}

.print-body{
  min-height:100vh;
  background:#eef2f6;
  color:var(--text);
}

.invoice-print-page{
  width:min(920px,100%);
  margin:0 auto;
  padding:24px;
}

.invoice-print-toolbar{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-bottom:14px;
}

.invoice-print-sheet{
  min-height:1120px;
  padding:42px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 18px 50px rgba(16,24,40,.16);
}

.invoice-print-header{
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding-bottom:28px;
  border-bottom:2px solid var(--text);
}

.invoice-print-header strong,
.invoice-print-header span,
.invoice-print-header h1,
.invoice-print-header p{
  display:block;
  margin:0;
}

.invoice-print-header strong{
  font-size:26px;
}

.invoice-print-header span,
.invoice-print-header p{
  margin-top:6px;
  color:var(--muted);
  font-weight:800;
}

.invoice-print-header span:empty{
  display:none;
}

.invoice-print-header h1{
  font-size:34px;
  text-align:right;
}

.invoice-print-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:30px;
}

.invoice-print-meta h2{
  margin:0 0 10px;
  color:var(--muted);
  font-size:13px;
  text-transform:uppercase;
}

.invoice-print-meta strong,
.invoice-print-meta span{
  display:block;
  margin-top:5px;
  font-weight:800;
}

.invoice-print-lines{
  margin-top:34px;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
}

.invoice-print-line{
  display:grid;
  grid-template-columns:1fr 90px 130px 130px;
  gap:12px;
  min-height:42px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  font-weight:800;
}

.invoice-print-line:last-child{
  border-bottom:0;
}

.invoice-print-line-head{
  background:#f8fafc;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.invoice-print-line span:nth-child(n+2){
  text-align:right;
}

.invoice-print-totals{
  width:min(360px,100%);
  margin:26px 0 0 auto;
  border-top:2px solid var(--text);
  padding-top:12px;
}

.invoice-print-totals div{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:7px 0;
  font-weight:900;
}

.invoice-print-totals div:last-child{
  font-size:20px;
}

.invoice-print-footer{
  margin-top:44px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  line-height:1.6;
}

.invoice-print-footer div{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:10px;
}

.invoice-print-footer p{
  margin:0;
}

.code-block{
  display:block;
  overflow:auto;
  padding:12px;
  border-radius:8px;
  background:#101828;
  color:#f8fafc;
}

@media print{
  body.print-body{
    background:#fff;
  }

  .invoice-print-page{
    width:100%;
    padding:0;
  }

  .invoice-print-toolbar{
    display:none;
  }

  .invoice-print-sheet{
    min-height:auto;
    padding:0;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
}

/* Berichten: final mobile-first inbox polish */
body.chat-page{
  background:linear-gradient(180deg,#eaf8fb 0%,#f7fbff 42%,#f6f7fb 100%);
}

body.chat-page .topbar{
  padding-bottom:12px;
}

body.chat-page .topbar p{
  display:none;
}

body.chat-page .chat-shell{
  isolation:isolate;
}

body.chat-page .chat-list-head small{
  display:block;
  margin-top:2px;
  color:#667085;
  font-size:12px;
  font-weight:800;
}

body.chat-page .chat-thread{
  text-decoration:none !important;
}

body.chat-page .chat-thread *{
  text-decoration:none !important;
}

body.chat-page .chat-avatar.wa{
  background:#dcfce7;
  color:#128c4a;
}

@media (max-width:900px){
  body .mobile-app-nav a .nav-badge{
    position:absolute !important;
    top:7px !important;
    right:18px !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-width:18px;
    width:auto;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:#ef4444 !important;
    color:#fff !important;
    font-size:10px !important;
    font-weight:950 !important;
    line-height:18px !important;
    box-shadow:0 6px 14px rgba(239,68,68,.28);
  }

  body.chat-page .main{
    padding-bottom:94px;
  }

  body.chat-page .topbar{
    min-height:0;
    padding:18px 16px 10px;
  }

  body.chat-page .topbar h1{
    font-size:32px;
    line-height:1;
  }

  body.chat-page .chat-shell{
    display:grid !important;
    grid-template-columns:1fr !important;
    width:auto;
    height:calc(100dvh - 254px);
    min-height:420px;
    margin:0 -16px;
    border:0;
    border-radius:0;
    box-shadow:none;
    background:transparent;
  }

  body.chat-page .chat-shell:not(.has-active) .chat-window{
    display:none !important;
  }

  body.chat-page .chat-shell.has-active .chat-list{
    display:none !important;
  }

  body.chat-page .chat-list{
    display:block !important;
    max-height:none !important;
    height:100%;
    overflow:auto;
    padding:0 16px 18px;
    border:0;
    background:transparent;
  }

  body.chat-page .chat-list-head{
    position:sticky;
    top:0;
    z-index:5;
    margin:0 0 8px;
    padding:10px 4px 12px;
    border:0;
    background:linear-gradient(180deg,rgba(230,247,251,.98),rgba(230,247,251,.84));
    backdrop-filter:blur(12px);
  }

  body.chat-page .chat-list-head strong{
    font-size:21px;
  }

  body.chat-page .chat-thread{
    display:grid !important;
    grid-template-columns:42px minmax(0,1fr) auto !important;
    gap:10px;
    align-items:center;
    min-height:68px;
    margin:0 0 8px;
    padding:10px 12px !important;
    border:1px solid rgba(214,224,236,.9);
    border-radius:16px;
    background:rgba(255,255,255,.92);
    box-shadow:0 10px 26px rgba(15,23,42,.06);
    color:#111827;
  }

  body.chat-page .chat-thread.active{
    border-color:#9cc9ff;
    background:#edf6ff;
  }

  body.chat-page .chat-thread-main strong{
    font-size:15px;
    line-height:1.08;
  }

  body.chat-page .chat-thread-main small{
    max-width:100%;
    margin-top:5px;
    color:#667085;
    font-size:12px;
    line-height:1.2;
  }

  body.chat-page .chat-thread-meta{
    min-width:52px;
  }

  body.chat-page .chat-thread-meta time{
    color:#64748b;
    font-size:11px;
    white-space:nowrap;
  }

  body.chat-page .chat-window{
    display:flex !important;
    height:100%;
    overflow:hidden;
    border-top:1px solid rgba(214,224,236,.9);
    background:linear-gradient(180deg,#f8fbff 0%,#eef8f2 100%);
  }

  body.chat-page .chat-header{
    flex:0 0 auto;
    min-height:58px;
    padding:9px 12px;
  }

  body.chat-page .chat-header strong{
    font-size:15px;
  }

  body.chat-page .chat-messages{
    flex:1 1 auto;
    padding:12px 12px 84px;
  }

  body.chat-page .chat-bubble{
    max-width:88%;
  }

  body.chat-page .chat-compose{
    position:fixed;
    left:12px;
    right:12px;
    bottom:88px;
    z-index:20;
    border:1px solid rgba(214,224,236,.9);
    border-radius:18px;
    box-shadow:0 14px 35px rgba(15,23,42,.14);
  }

  body.chat-page .chat-compose textarea{
    font-size:16px;
  }
}

@media (max-width:420px){
  body.chat-page .chat-thread{
    grid-template-columns:38px minmax(0,1fr) 46px !important;
    min-height:64px;
    padding:9px 10px !important;
  }

  body.chat-page .chat-avatar{
    width:38px;
    height:38px;
    border-radius:14px;
  }

  body.chat-page .chat-thread-main strong{
    font-size:14px;
  }
}

@media (max-width:900px){
  body.print-body{
    overflow-x:hidden;
    background:#f5f5f7;
  }

  .invoice-print-page{
    width:100%;
    max-width:100%;
    padding:10px;
    overflow:hidden;
  }

  .invoice-print-toolbar{
    position:sticky;
    top:0;
    z-index:2;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:0 0 10px;
    padding:8px 0;
    background:#f5f5f7;
  }

  .invoice-print-toolbar a,
  .invoice-print-toolbar button{
    width:100%;
    min-height:38px;
    justify-content:center;
  }

  .invoice-print-sheet{
    width:100%;
    min-height:0;
    padding:18px;
    border-radius:12px;
    box-shadow:0 10px 28px rgba(16,24,40,.14);
    overflow:hidden;
  }

  .invoice-print-header{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
    padding-bottom:16px;
  }

  .invoice-print-header strong{
    font-size:19px;
  }

  .invoice-print-header span,
  .invoice-print-header p{
    margin-top:4px;
    font-size:11px;
    line-height:1.35;
  }

  .invoice-print-header h1{
    font-size:25px;
    text-align:left;
  }

  .invoice-print-meta{
    grid-template-columns:1fr;
    gap:14px;
    margin-top:18px;
  }

  .invoice-print-meta h2{
    margin-bottom:6px;
    font-size:11px;
  }

  .invoice-print-meta strong,
  .invoice-print-meta span{
    margin-top:3px;
    font-size:11px;
    line-height:1.35;
  }

  .invoice-print-lines{
    margin-top:18px;
    border-radius:10px;
  }

  .invoice-print-line-head{
    display:none;
  }

  .invoice-print-line{
    grid-template-columns:minmax(0,1fr) auto;
    gap:4px 8px;
    min-height:38px;
    padding:8px 9px;
    font-size:11px;
  }

  .invoice-print-line span:nth-child(1){
    grid-column:1;
    grid-row:1 / span 2;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:normal;
  }

  .invoice-print-line span:nth-child(2){
    grid-column:2;
    grid-row:2;
    color:var(--muted);
    font-size:10px;
  }

  .invoice-print-line span:nth-child(2)::before{
    content:"x ";
  }

  .invoice-print-line span:nth-child(3){
    display:none;
  }

  .invoice-print-line span:nth-child(4){
    grid-column:2;
    grid-row:1;
    font-weight:900;
  }

  .invoice-print-totals{
    width:100%;
    margin-top:18px;
    padding-top:10px;
  }

  .invoice-print-totals div{
    padding:5px 0;
    font-size:12px;
  }

  .invoice-print-totals div:last-child{
    font-size:16px;
  }

  .invoice-print-footer{
    margin-top:24px;
    padding-top:12px;
    font-size:10px;
    line-height:1.45;
  }

  .invoice-print-footer div{
    gap:7px;
  }
}

.count-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:12px 0 16px;
}

.count-grid div{
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  background:#f8fafc;
}

.count-grid span,
.count-grid strong{
  display:block;
}

.count-grid span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.count-grid strong{
  margin-top:4px;
  font-size:22px;
}

.welcome-panel{
  margin-bottom:16px;
}

.welcome-panel h2{
  margin:0 0 6px;
}

.muted{
  color:var(--muted);
}

/* CleanSuite polish pass */
body{
  line-height:1.45;
}

.panel,
.kpi,
.login-card{
  box-shadow:0 10px 28px rgba(16,24,40,.055);
}

.panel{
  margin-bottom:16px;
}

.panel:last-child{
  margin-bottom:0;
}

.panel-head{
  min-width:0;
}

.panel-head > div,
.dashboard-task > div,
.dashboard-invoice > div,
.object-row > div,
.service-card summary > div,
.invoice-prep-card summary > div{
  min-width:0;
}

.topbar{
  padding-bottom:2px;
}

.topbar h1{
  line-height:1.12;
}

.topbar p{
  max-width:860px;
  line-height:1.45;
}

.primary-button,
.secondary-button,
.icon-button,
button{
  gap:7px;
  line-height:1;
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover{
  filter:brightness(.98);
}

.toolbar{
  row-gap:8px;
}

.search-form{
  min-width:0;
}

.search-form input,
.search-form select,
.customer-form input,
.customer-form select,
.customer-form textarea{
  outline:none;
}

.search-form input:focus,
.search-form select:focus,
.customer-form input:focus,
.customer-form select:focus,
.customer-form textarea:focus,
.street-schedule-form input:focus,
.street-schedule-form select:focus{
  border-color:#84caff;
  box-shadow:0 0 0 3px rgba(46,144,250,.14);
}

.kpi strong,
.dashboard-health-grid strong,
.count-grid strong{
  letter-spacing:0;
}

.dashboard-hero,
.planning-calendar,
.planning-section-panel,
.dashboard-panel{
  overflow:hidden;
}

.dashboard-task,
.dashboard-invoice,
.object-row,
.service-card,
.simple-card,
.invoice-prep-card,
.planning-card{
  transition:border-color .15s ease, background .15s ease, transform .15s ease;
}

.dashboard-task:hover,
.dashboard-invoice:hover,
.object-row:hover,
.service-card:hover,
.simple-card:hover,
.invoice-prep-card:hover,
.planning-card:hover{
  transform:translateY(-1px);
}

.private-grid-wrap,
.table-scroll{
  background:
    linear-gradient(90deg,#fff 0,rgba(255,255,255,0)) left/18px 100% no-repeat,
    linear-gradient(270deg,#fff 0,rgba(255,255,255,0)) right/18px 100% no-repeat,
    #fff;
}

.private-grid th,
.private-grid td,
.data-table th,
.data-table td{
  vertical-align:middle;
}

@media (max-width:900px){
  html{
    scroll-padding-top:112px;
  }

  body{
    padding-bottom:72px;
  }

  .shell{
    display:block;
    min-height:0;
  }

  .sidebar{
    position:sticky;
    top:0;
    z-index:5;
    gap:12px;
    padding:10px 12px;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 12px 28px rgba(16,24,40,.18);
  }

  .brand{
    gap:10px;
  }

  .brand-mark{
    width:34px;
    height:34px;
    border-radius:8px;
    font-size:13px;
  }

  .brand strong{
    font-size:14px;
  }

  .brand span{
    font-size:11px;
  }

  .nav{
    display:none !important;
  }

  .mobile-app-nav{
    position:fixed;
    right:10px;
    bottom:10px;
    left:10px;
    z-index:90;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(54px,1fr));
    gap:4px;
    padding:7px;
    border:1px solid rgba(16,24,40,.1);
    border-radius:14px;
    background:rgba(255,255,255,.96);
    box-shadow:0 18px 45px rgba(16,24,40,.22);
    backdrop-filter:blur(14px);
  }

  .mobile-app-nav.worker-nav{
    left:50%;
    width:min(260px,calc(100vw - 20px));
    grid-template-columns:1fr;
    transform:translateX(-50%);
  }

  .mobile-app-nav a{
    display:flex;
    min-width:0;
    min-height:48px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:4px;
    border-radius:10px;
    color:#475467;
    text-decoration:none;
    font-size:10px;
    font-weight:900;
  }

  .mobile-app-nav a:active,
  .mobile-app-nav a:hover{
    background:#eef4ff;
    color:#155eef;
  }

  .mobile-app-nav svg{
    width:19px;
    height:19px;
  }

  .main{
    padding:16px;
  }

  .topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:10px 12px;
    margin-bottom:16px;
  }

  .topbar > div{
    min-width:0;
  }

  .topbar h1{
    font-size:24px;
  }

  .topbar p{
    font-size:13px;
    line-height:1.4;
  }

  .topbar form{
    grid-column:2;
    grid-row:1;
    width:auto;
  }

  .topbar .icon-button{
    width:auto;
    min-width:48px;
  }

  .panel,
  .kpi,
  .login-card{
    box-shadow:0 10px 26px rgba(16,24,40,.06);
  }

  .toolbar{
    align-items:center;
    gap:7px;
  }

  .toolbar form{
    width:100%;
  }

  .toolbar .secondary-button,
  .toolbar .primary-button,
  .toolbar .badge{
    min-height:38px;
  }

  .toolbar > .icon-action{
    flex:1 1 0;
    min-width:0;
    padding:0 9px;
    font-size:12px;
  }

  .toolbar > .icon-action span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .search-form{
    width:100%;
    margin-left:0;
    flex-wrap:wrap;
  }

  .search-form input,
  .search-form select{
    flex:1 1 180px;
    width:auto;
  }

  .kpi-grid,
  .admin-v3-filter,
  .admin-hero,
  .admin-v3-hero,
  .admin-money-grid,
  .admin-workbench,
  .admin-v3-meter-grid,
  .platform-kpis,
  .platform-company-meters,
  .platform-request-grid,
  .admin-v3-split,
  .admin-v3-payment-grid,
  .admin-v3-month-list,
  .admin-payment-grid,
  .settings-hub,
  .settings-grid,
  .subscription-overview,
  .planning-board,
  .dashboard-grid,
  .dashboard-grid.lower,
  .split,
  .form-grid,
  .simple-card .form-grid{
    grid-template-columns:1fr;
  }

  .dashboard-hero{
    align-items:flex-start;
    flex-direction:column;
  }

  .dashboard-hero .primary-button{
    width:100%;
  }

  .planning-filter-bar{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .calendar-weekdays{
    display:none;
  }

  .calendar-grid{
    grid-template-columns:1fr;
  }

  .calendar-day{
    min-height:auto;
  }

  .calendar-day:not(.is-today):not(:has(.calendar-event)){
    display:none;
  }

  .calendar-day-items{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .planning-card-summary{
    grid-template-columns:1fr;
  }

  .planning-card-side{
    align-items:flex-start;
    flex-direction:row;
    justify-content:space-between;
  }

  .planning-card-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .street-schedule-form{
    grid-template-columns:1fr 1fr;
  }

  .street-schedule-form button{
    grid-column:1 / -1;
  }

  .status-panel{
    align-items:flex-start;
    flex-direction:column;
  }

  .form-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .form-actions .primary-button,
  .form-actions .secondary-button,
  .form-actions button{
    width:100%;
  }

  .admin-money-card{
    min-height:auto;
    padding:12px;
  }

  .admin-hero-main,
  .admin-hero-side{
    padding:14px;
  }

  .admin-hero-main h2{
    font-size:27px;
  }

  .admin-hero-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .admin-hero-actions .primary-button{
    grid-column:1 / -1;
  }

  .admin-v3-filter{
    gap:10px;
    padding:10px;
  }

  .admin-v3-range-tabs{
    grid-template-columns:repeat(4,minmax(76px,1fr));
    overflow-x:auto;
  }

  .admin-v3-filter form{
    display:grid;
    grid-template-columns:1fr auto;
  }

  .admin-v3-filter input{
    width:100%;
  }

  .admin-v3-hero-copy,
  .admin-v3-hero-meter{
    padding:14px;
  }

  .admin-v3-hero-copy h2{
    font-size:27px;
  }

  .platform-hero{
    align-items:flex-start;
    flex-direction:column;
    padding:14px;
  }

  .platform-hero h2{
    font-size:26px;
  }

  .platform-hero .primary-button{
    width:100%;
  }

  .platform-hero-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  .platform-hero-actions .primary-button,
  .platform-hero-actions .secondary-button{
    width:100%;
  }

  .platform-demo-panel{
    grid-template-columns:1fr;
    gap:8px;
    padding:0 12px 10px;
  }

  .platform-demo-panel article{
    min-height:70px;
    padding:11px 12px;
  }

  .platform-demo-action{
    padding:0 12px 12px;
  }

  .platform-list-head,
  .platform-company > summary{
    align-items:stretch;
    flex-direction:column;
  }

  .platform-search{
    width:100%;
  }

  .platform-search input{
    flex:1 1 auto;
    width:auto;
    min-width:0;
  }

  .platform-company-side{
    align-items:flex-start;
    flex-wrap:wrap;
    justify-content:space-between;
    width:100%;
  }

  .platform-company-side small{
    width:100%;
  }

  .platform-company-body,
  .platform-company-list,
  .platform-request-list,
  .platform-form{
    padding-right:12px;
    padding-left:12px;
  }

  .platform-control-grid{
    grid-template-columns:1fr;
    gap:8px;
  }

  .platform-role-list{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .platform-role-list span{
    min-height:44px;
    padding:7px 5px;
    text-align:center;
  }

  .platform-role-list strong{
    font-size:16px;
  }

  .platform-role-list em{
    font-size:9px;
  }

  .platform-integration-panel > summary{
    align-items:flex-start;
  }

  .auth-public-page .main{
    padding:14px;
  }

  .auth-gate{
    grid-template-columns:1fr;
    min-height:calc(100vh - 28px);
  }

  .auth-brand-panel{
    min-height:auto;
    padding:22px;
  }

  .auth-brand-panel h1{
    font-size:34px;
  }

  .auth-brand-panel p{
    font-size:15px;
  }

  .auth-card{
    padding:18px;
  }

  .auth-form-grid,
  .platform-request-form{
    grid-template-columns:1fr;
  }

  .auth-links{
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-v3-meter-card{
    min-height:auto;
    padding:12px;
  }

  .admin-v3-meter-card strong{
    font-size:21px;
  }

  .admin-v3-panel > summary{
    min-height:64px;
    padding:12px;
  }

  .admin-v3-panel > summary > div{
    grid-template-columns:30px minmax(0,1fr);
  }

  .admin-v3-panel > summary span{
    width:30px;
    height:30px;
  }

  .admin-v3-panel > summary strong{
    font-size:16px;
  }

  .admin-v3-panel > summary b{
    font-size:13px;
  }

  .admin-v3-split,
  .admin-v3-list,
  .admin-v3-month-list,
  .admin-v3-area-list,
  .admin-v3-payment-grid{
    padding:0 12px 12px;
  }

  .admin-v3-split .admin-v3-list{
    padding:0;
  }

  .admin-v3-row,
  .admin-v3-area-card > summary,
  .admin-v3-street-card > summary{
    align-items:flex-start;
  }

  .admin-v3-row{
    flex-direction:column;
    min-height:auto;
  }

  .admin-v3-row > div:last-child{
    width:100%;
    text-align:left;
  }

  .admin-v3-area-card > summary,
  .admin-v3-street-card > summary{
    gap:8px;
  }

  .admin-v3-area-card summary b,
  .admin-v3-street-card summary b{
    font-size:13px;
  }

  .admin-v3-street-list,
  .admin-v3-customer-list{
    padding:0 8px 8px;
  }

  .admin-money-card strong{
    font-size:21px;
  }

  .admin-area-card > summary,
  .admin-street-card > summary,
  .admin-customer-row,
  .admin-invoice-row,
  .admin-priority-row,
  .admin-area-summary-row{
    align-items:flex-start;
  }

  .admin-customer-row,
  .admin-invoice-row,
  .admin-priority-row,
  .admin-area-summary-row,
  .settings-row{
    flex-direction:column;
  }

  .admin-customer-row > div:last-child,
  .admin-invoice-row > div:last-child,
  .admin-priority-row > div:last-child,
  .admin-area-summary-row > div:last-child{
    width:100%;
    text-align:left;
  }

  .admin-area-card > summary,
  .admin-street-card > summary{
    min-height:50px;
  }

  .admin-street-card{
    margin:0 8px 8px;
  }

  .admin-customer-list{
    padding:0 8px 8px;
  }

  .settings-inline-form,
  .settings-detail-row .settings-inline-form{
    grid-template-columns:1fr;
  }

  .settings-row{
    align-items:stretch;
  }

  .settings-row-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .settings-row-actions .secondary-button,
  .settings-row-actions .danger-button{
    width:100%;
  }

  .settings-list{
    max-height:none;
  }

  .customer-form{
    gap:16px;
  }

  .form-section{
    padding-bottom:14px;
  }

  .form-section h2{
    margin-bottom:10px;
  }

  .table-scroll,
  .private-grid-wrap{
    margin-right:-16px;
    margin-left:-16px;
    border-right:0;
    border-left:0;
    border-radius:0;
  }

  .private-mobile-list{
    display:none !important;
  }

  .private-grid-wrap{
    display:block !important;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }

  .private-grid .col-nr{
    width:78px;
    min-width:78px;
    max-width:78px;
    left:0;
    text-align:left;
  }

  .private-grid .col-floor{
    display:table-cell !important;
    left:78px;
    width:44px;
    min-width:44px;
    max-width:44px;
  }

  .private-grid .col-price{
    display:table-cell !important;
    width:62px;
    min-width:62px;
    max-width:62px;
    text-align:right;
  }

  .private-grid .col-notes{
    display:table-cell !important;
    width:120px;
    min-width:120px;
    max-width:120px;
  }

  .private-grid .month-head,
  .private-grid .month-cell{
    width:36px;
    min-width:36px;
  }

  .private-grid{
    min-width:max-content;
  }

  .private-grid th,
  .private-grid td{
    height:30px;
    padding:3px 4px;
    font-size:11px;
  }

  .private-grid td.col-nr{
    padding-left:10px;
  }

  .private-grid th{
    top:0;
  }

  .month-pill{
    height:22px;
    min-height:22px;
    border-radius:5px;
    font-size:10px;
  }

  .house-link{
    font-size:12px;
  }

  .inactive-label{
    display:none;
  }

  .street-plan-houses{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .object-row{
    grid-template-columns:1fr;
  }

  .business-month-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .invoice-line{
    grid-template-columns:1fr;
  }

  .invoice-line span:nth-child(n+2){
    text-align:left;
  }

  .service-card summary,
  .simple-card summary,
  .invoice-prep-card summary{
    align-items:flex-start;
    flex-direction:column;
  }

  .service-card summary em,
  .invoice-prep-card summary em{
    width:100%;
  }

  .simple-card .form-actions{
    align-items:stretch;
  }

  .business-month-grid,
  .count-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:560px){
  .main{
    padding:12px;
  }

  .sidebar{
    padding:9px 10px 10px;
  }

  .topbar{
    margin-bottom:12px;
  }

  .topbar h1{
    font-size:21px;
  }

  .panel{
    padding:14px;
  }

  .panel-head{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }

  .panel-head h2{
    font-size:16px;
  }

  .panel-head a,
  .panel-head .badge,
  .section-toggle{
    width:100%;
    justify-content:center;
  }

  .kpi{
    display:grid;
    grid-template-columns:1fr auto;
    gap:1px 8px;
    align-items:center;
    padding:9px 10px;
  }

  .kpi span,
  .kpi em{
    grid-column:1;
  }

  .kpi strong{
    grid-row:1 / span 2;
    grid-column:2;
    margin:0;
    font-size:20px;
  }

  .kpi span,
  .kpi em{
    font-size:11px;
  }

  .dashboard-hero{
    padding:15px;
  }

  .dashboard-hero h2{
    font-size:22px;
  }

  .toolbar{
    gap:8px;
  }

  .toolbar .secondary-button,
  .toolbar .primary-button,
  .toolbar .badge{
    width:auto;
  }

  .search-form input,
  .search-form select,
  .search-form button,
  .search-form .secondary-button{
    flex-basis:100%;
    width:100%;
  }

  .toolbar > .icon-action{
    width:auto;
  }

  .customer-form input,
  .customer-form select,
  .customer-form textarea,
  .login-card input,
  .street-schedule-form input,
  .street-schedule-form select{
    min-height:44px;
    font-size:16px;
  }

  button,
  .primary-button,
  .secondary-button,
  .icon-button{
    min-height:44px;
  }

  .planning-filter-bar,
  .planning-card-stats{
    grid-template-columns:1fr;
  }

  .planning-card-title{
    align-items:flex-start;
    flex-direction:column;
  }

  .planning-card-title strong{
    white-space:normal;
  }

  .calendar-day-items{
    grid-template-columns:1fr;
  }

  .dashboard-health-grid,
  .dashboard-alert-row{
    grid-template-columns:1fr;
  }

  .dashboard-task,
  .dashboard-invoice{
    align-items:flex-start;
    flex-direction:column;
  }

  .dashboard-invoice > div:last-child{
    width:100%;
    text-align:left;
  }

  .planning-card-list{
    padding:10px;
  }

  .planning-card-summary{
    min-height:0;
    padding:11px 12px;
  }

  .planning-card-body{
    padding:0 12px 12px;
  }

  .planning-card-side{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }

  .calendar-day-head strong{
    width:30px;
    height:30px;
  }

  .grid-area,
  .grid-street{
    border-radius:6px;
  }

  .grid-area > summary,
  .grid-street > summary{
    min-height:34px;
    padding:0 9px;
    font-size:13px;
  }

  .grid-street{
    margin:7px;
  }

  .private-grid-groups{
    gap:7px;
  }

  .street-plan-houses{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .street-plan-actions{
    justify-content:stretch;
  }

  .street-plan-actions .primary-button{
    width:100%;
  }

  .street-schedule-form{
    grid-template-columns:1fr;
  }

  .street-schedule-form button{
    width:100%;
  }

  .business-month-grid,
  .count-grid{
    grid-template-columns:1fr;
  }

  .invoice-actions,
  .invoice-status-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .invoice-actions .primary-button,
  .invoice-actions .secondary-button,
  .invoice-status-actions button{
    width:100%;
  }

  .invoice-object-meta{
    flex-direction:column;
  }
}

@media (max-width:420px){
  .brand span{
    display:none;
  }

  .nav a{
    min-height:34px;
    padding:0 10px;
    font-size:12px;
  }

  .private-grid .col-nr{
    width:74px;
    min-width:74px;
    max-width:74px;
    left:0;
    text-align:left;
  }

  .private-grid .col-floor{
    display:table-cell !important;
    left:74px;
    width:40px;
    min-width:40px;
    max-width:40px;
  }

  .private-grid .col-price{
    display:table-cell !important;
    width:58px;
    min-width:58px;
    max-width:58px;
  }

  .private-grid .col-notes{
    display:table-cell !important;
    width:104px;
    min-width:104px;
    max-width:104px;
  }

  .private-grid th,
  .private-grid td{
    height:28px;
    padding:3px;
    font-size:10px;
  }

  .private-grid td.col-nr{
    padding-left:9px;
  }

  .private-grid .month-head,
  .private-grid .month-cell{
    width:34px;
    min-width:34px;
  }

  .street-plan-houses{
    grid-template-columns:1fr;
  }
}

@media (max-width:760px){
  .panel,
  .kpi,
  .login-card{
    border-radius:8px;
  }

  .dashboard-grid,
  .dashboard-grid.lower,
  .split,
  .kpi-grid{
    gap:10px;
    margin-bottom:10px;
  }

  .dashboard-task,
  .dashboard-invoice,
  .object-row,
  .planning-card,
  .service-card,
  .simple-card,
  .invoice-prep-card{
    transform:none !important;
  }

  .dashboard-task,
  .dashboard-invoice,
  .object-row{
    min-height:0;
    padding:12px;
  }

  .dashboard-task strong,
  .dashboard-invoice strong,
  .object-row strong,
  .planning-card-title strong{
    font-size:14px;
    line-height:1.25;
  }

  .dashboard-task span,
  .dashboard-invoice span,
  .object-row span,
  .object-row em,
  .planning-tag,
  .planning-card-side em{
    line-height:1.3;
  }

  .planning-filter-chip{
    min-height:48px;
    padding:8px 10px;
  }

  .planning-filter-chip strong{
    width:30px;
    height:30px;
  }

  .calendar-day{
    padding:10px;
  }

  .calendar-event{
    min-height:0;
    padding:9px;
  }

  .street-schedule-form{
    padding:10px;
  }

  .business-plan-meta{
    flex-direction:column;
    gap:7px;
  }

  .business-plan-meta a,
  .business-plan-meta span{
    width:100%;
  }
}

@media (max-width:560px){
  .topbar{
    grid-template-columns:minmax(0,1fr) auto;
  }

  .topbar p{
    font-size:12px;
  }

  .panel-head a{
    min-height:38px;
  }

  .dashboard-health-grid a{
    min-height:72px;
    padding:12px;
  }

  .quick-actions a{
    min-height:44px;
  }

  .private-grid-wrap,
  .table-scroll{
    margin-right:-12px;
    margin-left:-12px;
  }

  .data-table{
    min-width:640px;
  }
}

@media (max-width:760px){
  body.private-page .sidebar{
    padding:7px 10px;
  }

  body.private-page .brand{
    gap:8px;
  }

  body.private-page .brand-mark{
    width:30px;
    height:30px;
    font-size:12px;
  }

  body.private-page .brand strong{
    font-size:13px;
  }

  body.private-page .brand span,
  body.private-page .topbar p{
    display:none;
  }

  body.private-page .main{
    padding:10px 10px 12px;
  }

  body.private-page .topbar{
    margin-bottom:8px;
    gap:8px;
  }

  body.private-page .topbar h1{
    font-size:20px;
  }

  body.private-page .topbar .icon-button{
    min-width:38px;
    min-height:34px;
    padding:0 9px;
  }

  body.private-page .private-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin-bottom:8px;
  }

  body.private-page .private-actions > .icon-action{
    min-height:34px;
    padding:0 8px;
    font-size:12px;
  }

  body.private-page .private-actions svg{
    width:15px;
    height:15px;
  }

  body.private-page .private-actions .search-form{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:minmax(0,1fr) 38px;
    gap:6px;
    width:100%;
  }

  body.private-page .private-actions .search-form.has-reset{
    grid-template-columns:minmax(0,1fr) 38px 38px;
  }

  body.private-page .private-actions .search-form input{
    width:100%;
    min-width:0;
    height:34px;
    padding:0 10px;
    font-size:14px;
  }

  body.private-page .private-actions .search-form button,
  body.private-page .private-actions .search-form .secondary-button{
    width:38px;
    min-width:38px;
    min-height:34px;
    padding:0;
  }

  body.private-page .private-actions .search-form span{
    display:none;
  }

  body.private-page .private-stats{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
    margin-bottom:8px;
  }

  body.private-page .private-stats .kpi{
    display:flex;
    min-width:0;
    min-height:0;
    flex-direction:column;
    gap:2px;
    padding:7px 5px;
    text-align:center;
  }

  body.private-page .private-stats .kpi span{
    overflow:hidden;
    color:#475467;
    font-size:9px;
    font-weight:900;
    line-height:1.1;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  body.private-page .private-stats .kpi strong{
    margin:0;
    font-size:17px;
    line-height:1;
  }

  body.private-page .private-stats .kpi em{
    display:none;
  }

  body.private-page .private-overview-panel{
    padding:8px;
  }

  body.private-page .private-overview-panel .panel-head{
    margin-bottom:6px;
  }

  body.private-page .private-overview-panel .panel-head h2{
    font-size:14px;
  }

  body.private-page .private-overview-panel .badge{
    height:20px;
    padding:0 7px;
    font-size:10px;
  }

  body.private-page .private-grid-groups{
    gap:6px;
  }

  body.private-page .grid-area,
  body.private-page .grid-street{
    border-radius:6px;
  }

  body.private-page .grid-area > summary,
  body.private-page .grid-street > summary{
    min-height:30px;
    padding:0 8px;
    font-size:12px;
  }

  body.private-page .street-summary{
    align-items:flex-start;
    min-height:44px;
    padding-top:6px;
    padding-bottom:6px;
  }

  body.private-page .street-summary-main span{
    font-size:10px;
  }

  body.private-page .street-summary-side{
    gap:4px;
  }

  body.private-page .street-chip{
    min-height:20px;
    padding:0 6px;
    font-size:10px;
  }

  body.private-page .street-icon-link{
    width:26px;
    height:26px;
  }

  body.private-page .street-settings-panel{
    padding:6px;
  }

  body.private-page .street-schedule-form{
    grid-template-columns:1fr;
    gap:7px;
    margin-top:7px;
    padding:9px;
  }

  body.private-page .street-schedule-form button{
    width:100%;
  }

  body.private-page .cash-route-card{
    margin-bottom:8px;
    padding:9px 10px;
  }

  body.private-page .cash-route-card span{
    font-size:11px;
  }

  body.private-page .quick-customer-popover{
    padding:10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  body.private-page .quick-customer-panel{
    max-height:calc(100dvh - 24px - env(safe-area-inset-bottom, 0px));
    overflow:auto;
    padding:13px;
  }

  body.private-page .quick-customer-grid{
    gap:8px;
  }

  body.private-page .quick-customer-actions{
    position:sticky;
    bottom:-13px;
    margin-right:-13px;
    margin-bottom:-13px;
    margin-left:-13px;
    padding:10px 13px 13px;
    border-top:1px solid var(--line);
    background:#fff;
    border-radius:0 0 14px 14px;
  }

  body.private-page .grid-area > summary span{
    font-size:10px;
  }

  body.private-page .grid-street{
    margin:6px;
  }

  body.private-page .grid-street .private-grid-wrap{
    margin-right:0;
    margin-left:0;
  }
}

@media (max-width:420px){
  body.private-page .private-actions{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  body.private-page .private-actions > .icon-action span{
    display:none;
  }

  body.private-page .private-actions > .icon-action{
    min-height:32px;
  }

  body.private-page .private-stats .kpi{
    padding:6px 4px;
  }

  body.private-page .private-stats .kpi span{
    font-size:8px;
  }

  body.private-page .private-stats .kpi strong{
    font-size:16px;
  }
}

/* CleanSuite mac-style design layer */
:root{
  --bg:#f5f5f7;
  --panel:rgba(255,255,255,.78);
  --text:#1d1d1f;
  --muted:#6e6e73;
  --line:rgba(0,0,0,.09);
  --primary:#007aff;
  --primary-strong:#005ecb;
  --green:#248a3d;
  --orange:#c66a00;
  --shadow:0 18px 45px rgba(0,0,0,.08);
  --soft-shadow:0 8px 24px rgba(0,0,0,.06);
  --glass:rgba(255,255,255,.78);
}

html{
  background:var(--bg);
}

body{
  background:
    radial-gradient(circle at top left, rgba(0,122,255,.12), transparent 32%),
    radial-gradient(circle at top right, rgba(48,209,88,.10), transparent 28%),
    var(--bg);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing:0;
}

.shell{
  grid-template-columns:252px minmax(0,1fr);
}

.sidebar{
  gap:18px;
  padding:18px;
  border-right:1px solid var(--line);
  background:rgba(245,245,247,.72);
  color:var(--text);
  backdrop-filter:blur(28px) saturate(1.25);
}

.window-dots{
  display:flex;
  gap:7px;
  margin:2px 0 0;
}

.window-dots span{
  width:12px;
  height:12px;
  border-radius:50%;
}

.window-dots span:nth-child(1){ background:#ff5f57; }
.window-dots span:nth-child(2){ background:#ffbd2e; }
.window-dots span:nth-child(3){ background:#28c840; }

.brand{
  gap:12px;
}

.brand-mark{
  width:42px;
  height:42px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--text);
  box-shadow:var(--soft-shadow);
  font-weight:800;
}

.brand-mark img{
  display:block;
  width:100%;
  height:100%;
  border-radius:inherit;
  object-fit:cover;
}

.brand strong{
  color:var(--text);
  font-size:15px;
  font-weight:760;
}

.brand span{
  color:var(--muted);
  font-weight:550;
}

.nav{
  gap:4px;
}

.nav a{
  min-height:36px;
  padding:0 10px;
  border-radius:10px;
  color:#55565c;
  font-size:14px;
  font-weight:650;
}

.nav a:hover{
  color:var(--text);
  background:rgba(0,122,255,.08);
}

.nav a.active{
  color:var(--text);
  background:rgba(0,122,255,.13);
}

.main{
  padding:22px;
}

.topbar{
  align-items:flex-start;
  margin-bottom:18px;
}

.topbar h1{
  color:var(--text);
  font-size:30px;
  font-weight:760;
  line-height:1.08;
}

.topbar p{
  color:var(--muted);
  font-size:14px;
  font-weight:520;
}

.kpi,
.panel,
.login-card,
.dashboard-hero,
.admin-v3-filter,
.admin-v3-hero-copy,
.admin-v3-hero-meter,
.admin-v3-meter-card,
.admin-v3-panel,
.private-overview-panel,
.grid-area,
.grid-street,
.planning-card,
.business-object-card,
.invoice-prep-card,
.service-card,
.settings-panel,
.settings-action-card{
  border-color:var(--line) !important;
  border-radius:16px;
  background:var(--glass);
  box-shadow:var(--soft-shadow);
  backdrop-filter:blur(22px) saturate(1.2);
}

.panel,
.login-card{
  padding:16px;
}

.kpi{
  min-height:108px;
  padding:14px;
}

.kpi span,
.kpi em{
  color:var(--muted);
  font-weight:620;
}

.kpi strong{
  color:var(--text);
  font-size:24px;
  font-weight:760;
}

.dashboard-hero{
  background:var(--glass);
}

.dashboard-hero h2{
  color:var(--text);
  font-size:28px;
  font-weight:760;
}

.dashboard-kpis .kpi,
.dashboard-task,
.dashboard-invoice,
.planning-card,
.admin-v3-row.invoice.status-overdue,
.admin-v3-row.invoice.status-paid{
  border-left-width:0;
}

.dashboard-task,
.dashboard-invoice,
.dashboard-health-grid a,
.quick-actions a,
.admin-v3-row,
.admin-v3-month-row,
.admin-v3-payment-grid article,
.admin-v3-area-card,
.admin-v3-street-card,
.settings-row,
.settings-detail-row,
.data-table th,
.table-placeholder div,
.count-grid div{
  border-color:rgba(0,0,0,.07);
  border-radius:12px;
  background:rgba(255,255,255,.64);
}

.dashboard-task:hover,
.dashboard-invoice:hover,
.dashboard-health-grid a:hover,
.quick-actions a:hover{
  border-color:rgba(0,122,255,.25);
  background:rgba(255,255,255,.9);
}

.panel-head h2,
.panel-head h3,
.dashboard-task strong,
.dashboard-invoice strong,
.planning-card-title strong{
  color:var(--text);
  font-weight:720;
}

.badge,
.admin-v3-panel > summary span,
.planning-card-kind,
.section-toggle{
  color:var(--primary);
  background:rgba(0,122,255,.10);
}

button,
.primary-button,
.secondary-button,
.icon-button,
.danger-button{
  min-height:36px;
  height:36px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  font-weight:650;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset;
}

.primary-button{
  color:#fff;
  border-color:rgba(0,122,255,.8);
  background:linear-gradient(180deg,#2491ff,#007aff);
}

.secondary-button,
.icon-button,
.toolbar .badge{
  color:var(--text);
  background:rgba(255,255,255,.78);
}

.danger-button{
  border-color:rgba(255,69,58,.85);
  background:linear-gradient(180deg,#ff6961,#ff453a);
}

input,
select,
textarea,
.search-form input,
.search-form select,
.admin-v3-filter input,
.settings-inline-form input,
.settings-inline-form select{
  border-color:rgba(0,0,0,.09);
  border-radius:10px;
  background:rgba(255,255,255,.82);
  color:var(--text);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset;
}

.table-scroll,
.table-placeholder,
.private-grid-wrap{
  border-color:var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.58);
}

.data-table th,
.table-placeholder div{
  color:var(--muted);
  background:rgba(245,245,247,.9);
}

.admin-v3-progress,
.admin-v3-mini-bar,
.meter{
  background:rgba(60,60,67,.14);
}

.admin-v3-progress i,
.admin-v3-mini-bar i{
  background:linear-gradient(90deg,#007aff,#5ac8fa);
}

.mobile-app-nav{
  left:12px;
  right:12px;
  bottom:12px;
  grid-template-columns:repeat(auto-fit,minmax(54px,1fr));
  gap:2px;
  padding:6px;
  border:1px solid rgba(0,0,0,.09);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  box-shadow:0 16px 36px rgba(0,0,0,.12);
  backdrop-filter:blur(24px) saturate(1.25);
}

.mobile-app-nav a{
  min-height:50px;
  border-radius:14px;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
}

.mobile-app-nav a.active{
  color:var(--primary);
  background:rgba(0,122,255,.10);
}

@media (max-width:900px){
  .shell{
    display:block;
  }

  .sidebar{
    min-height:102px;
    padding:18px 16px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .window-dots,
  .sidebar .nav{
    display:none;
  }

  .main{
    padding:14px 14px 92px;
  }

  .topbar{
    margin-bottom:14px;
  }

  .topbar h1{
    font-size:27px;
  }

  .panel,
  .kpi,
  .login-card,
  .dashboard-hero,
  .admin-v3-filter,
  .admin-v3-hero-copy,
  .admin-v3-hero-meter,
  .admin-v3-meter-card,
  .admin-v3-panel{
    border-radius:15px;
    box-shadow:0 10px 26px rgba(0,0,0,.06);
  }

  .mobile-app-nav{
    display:grid;
  }
}

/* Simpler product direction: daily work, customers, money, management */
.home-command{
  display:grid;
  grid-template-columns:1.4fr repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}

.home-command a{
  min-height:74px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--soft-shadow);
  color:var(--text);
  text-decoration:none;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
}

.home-command-main{
  background:linear-gradient(135deg, rgba(0,122,255,.14), rgba(255,255,255,.82)) !important;
}

.home-command span,
.home-command em{
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:700;
}

.home-command strong{
  color:var(--text);
  font-size:18px;
  line-height:1;
}

.home-command-main strong{
  font-size:38px;
}

.home-start{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr);
  gap:16px;
  margin-bottom:16px;
}

.home-greeting,
.home-today-card{
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--glass);
  box-shadow:var(--soft-shadow);
  backdrop-filter:blur(22px) saturate(1.2);
}

.home-greeting{
  min-height:190px;
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:
    linear-gradient(135deg, rgba(0,122,255,.16), rgba(255,255,255,.76) 42%),
    var(--glass);
}

.home-greeting span,
.home-today-card span,
.home-lane span,
.home-mini-stats span{
  color:var(--muted);
  font-size:12px;
  font-weight:720;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.home-greeting h2{
  margin:8px 0;
  color:var(--text);
  font-size:34px;
  line-height:1;
}

.home-greeting p,
.home-today-card em,
.home-lane em,
.home-action-list span,
.home-mini-stats em{
  color:var(--muted);
  font-style:normal;
  font-weight:560;
}

.home-today-card{
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
}

.home-today-card strong{
  color:var(--text);
  font-size:54px;
  line-height:.95;
}

.home-today-card .primary-button{
  width:100%;
  justify-content:center;
}

.home-lane-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}

.home-lane{
  min-height:126px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.72);
  box-shadow:var(--soft-shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  text-decoration:none;
}

.home-lane strong{
  color:var(--text);
  font-size:18px;
  line-height:1.15;
}

.home-lane:hover{
  transform:translateY(-1px);
  border-color:rgba(0,122,255,.25);
  background:rgba(255,255,255,.92);
}

.home-lane.is-work{ background:linear-gradient(180deg,rgba(255,214,10,.22),rgba(255,255,255,.76)); }
.home-lane.is-customers{ background:linear-gradient(180deg,rgba(90,200,250,.20),rgba(255,255,255,.76)); }
.home-lane.is-business{ background:linear-gradient(180deg,rgba(52,199,89,.18),rgba(255,255,255,.76)); }
.home-lane.is-money{ background:linear-gradient(180deg,rgba(255,149,0,.18),rgba(255,255,255,.76)); }

.home-action-list{
  display:grid;
  gap:10px;
}

.home-action-list a{
  padding:14px;
  border:1px solid rgba(0,0,0,.07);
  border-radius:14px;
  background:rgba(255,255,255,.66);
  text-decoration:none;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.home-action-list strong{
  color:var(--text);
}

.home-mini-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.home-mini-stats a{
  min-height:106px;
  padding:14px;
  border:1px solid rgba(0,0,0,.07);
  border-radius:14px;
  background:rgba(255,255,255,.66);
  text-decoration:none;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.home-mini-stats strong{
  color:var(--text);
  font-size:24px;
}

.settings-command-center{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}

.team-list{
  margin:0 14px 14px;
}

.team-row select{
  min-height:38px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--text);
  font-weight:800;
}

.team-assignment-panel{
  margin:-2px 0 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(247,250,255,.86);
  overflow:hidden;
}

.team-assignment-panel > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  cursor:pointer;
  list-style:none;
}

.team-assignment-panel > summary::-webkit-details-marker{
  display:none;
}

.team-assignment-panel > summary strong,
.team-assignment-panel > summary span{
  display:block;
}

.team-assignment-panel > summary span{
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.team-assignment-form{
  padding:0 12px 12px;
}

.team-assignment-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.team-assignment-columns h3{
  margin:0 0 8px;
  color:var(--text);
  font-size:13px;
  letter-spacing:0;
}

.team-assignment-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:280px;
  overflow:auto;
  padding-right:2px;
}

.team-assignment-list label{
  display:grid;
  grid-template-columns:20px 1fr;
  gap:8px;
  align-items:start;
  padding:8px;
  border:1px solid rgba(205,216,232,.86);
  border-radius:9px;
  background:#fff;
}

.team-assignment-list input{
  width:16px;
  height:16px;
  margin:2px 0 0;
}

.team-assignment-list strong,
.team-assignment-list em{
  display:block;
  font-style:normal;
}

.team-assignment-list strong{
  color:var(--text);
  font-size:13px;
}

.team-assignment-list em{
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.settings-master-panel,
.settings-fold{
  padding:0;
  overflow:hidden;
}

.settings-master-panel > summary,
.settings-fold > summary{
  padding:16px;
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.settings-master-panel > summary::-webkit-details-marker,
.settings-fold > summary::-webkit-details-marker{
  display:none;
}

.settings-master-panel > summary strong,
.settings-fold > summary strong{
  display:block;
  color:var(--text);
  font-size:18px;
}

.settings-master-panel > summary span,
.settings-fold > summary span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:13px;
  font-weight:560;
}

.settings-master-panel > summary b,
.settings-fold > summary b{
  padding:6px 10px;
  border-radius:999px;
  color:var(--primary);
  background:rgba(0,122,255,.10);
  font-size:12px;
}

.settings-master-form{
  padding:0 16px 16px;
}

.settings-fold .settings-inline-form,
.settings-fold .settings-list{
  margin:0 16px 16px;
}

@media (max-width:1100px){
  .home-lane-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .settings-command-center{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  body.dashboard-page .main{
    padding-top:8px;
  }

  body.dashboard-page .topbar{
    display:none;
  }

  .home-command{
    position:sticky;
    top:55px;
    z-index:4;
    grid-template-columns:1fr repeat(3,56px);
    gap:6px;
    margin:0 -2px 8px;
    padding:6px 0;
    background:linear-gradient(180deg, rgba(245,245,247,.96), rgba(245,245,247,.72));
    backdrop-filter:blur(14px);
  }

  .home-command a{
    min-height:52px;
    padding:7px 8px;
    border-radius:12px;
  }

  .home-command span,
  .home-command em{
    overflow:hidden;
    font-size:9px;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .home-command strong{
    overflow:hidden;
    font-size:12px;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .home-command-main strong{
    font-size:23px;
  }

  .home-command-main em{
    display:none;
  }

  .home-start{
    grid-template-columns:1fr;
    gap:8px;
    margin-bottom:8px;
  }

  .home-greeting{
    min-height:78px;
    padding:12px;
    border-radius:14px;
  }

  .home-greeting h2{
    margin:3px 0;
    font-size:21px;
  }

  .home-greeting p{
    font-size:11px;
    line-height:1.25;
  }

  .home-greeting span,
  .home-today-card span,
  .home-lane span,
  .home-mini-stats span{
    font-size:9px;
    letter-spacing:.04em;
  }

  .home-today-card{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:2px 10px;
    align-items:center;
    padding:11px 12px;
    border-radius:14px;
  }

  .home-today-card strong{
    grid-row:1 / span 3;
    font-size:34px;
  }

  .home-today-card .primary-button{
    min-height:34px;
    margin-top:4px;
  }

  .home-lane-grid,
  .home-mini-stats{
    grid-template-columns:1fr;
    gap:7px;
    margin-bottom:8px;
  }

  .home-lane{
    min-height:54px;
    padding:10px 12px;
    border-radius:13px;
  }

  .home-lane strong{
    margin:2px 0;
    font-size:14px;
  }

  .home-lane em{
    overflow:hidden;
    font-size:11px;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  body.dashboard-page .dashboard-grid,
  body.dashboard-page .dashboard-grid.lower{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    margin-bottom:8px;
  }

  body.dashboard-page .dashboard-panel{
    padding:11px;
    border-radius:14px;
  }

  body.dashboard-page .panel-head{
    display:flex;
    min-height:34px;
    align-items:center;
    flex-direction:row;
    gap:8px;
  }

  body.dashboard-page .panel-head h2{
    font-size:15px;
  }

  body.dashboard-page .panel-head a{
    width:auto;
    min-height:30px;
    padding:0 9px;
    font-size:11px;
  }

  body.dashboard-page .dashboard-task,
  body.dashboard-page .dashboard-invoice{
    min-height:44px;
    padding:8px 9px;
    border-left-width:4px;
    border-radius:10px;
  }

  body.dashboard-page .dashboard-task strong,
  body.dashboard-page .dashboard-invoice strong{
    font-size:12px;
  }

  body.dashboard-page .dashboard-task span,
  body.dashboard-page .dashboard-task em,
  body.dashboard-page .dashboard-invoice span,
  body.dashboard-page .dashboard-invoice em{
    font-size:10px;
  }

  .home-action-list{
    gap:7px;
  }

  .home-action-list a{
    display:grid;
    grid-template-columns:1fr auto;
    min-height:42px;
    padding:9px 10px;
    border-radius:11px;
  }

  .home-action-list strong{
    font-size:12px;
  }

  .home-action-list span{
    align-self:center;
    font-size:10px;
  }

  .home-mini-stats a{
    display:grid;
    grid-template-columns:1fr auto;
    min-height:44px;
    padding:9px 10px;
    border-radius:11px;
  }

  .home-mini-stats strong{
    grid-row:1 / span 2;
    grid-column:2;
    align-self:center;
    font-size:18px;
  }

  .home-mini-stats em{
    font-size:10px;
  }
}

/* Private mobile compact grid pass */
@media (max-width:900px){
  body.private-page .sidebar{
    min-height:56px;
    padding:9px 14px;
    display:flex;
    align-items:center;
    box-shadow:0 6px 18px rgba(16,24,40,.08);
  }

  body.private-page .brand{
    gap:10px;
  }

  body.private-page .brand-mark{
    width:34px;
    height:34px;
    border-radius:11px;
  }

  body.private-page .brand span{
    display:none;
  }

  body.private-page .main{
    padding:10px 10px 88px;
  }

  body.private-page .topbar{
    margin:0 0 9px;
    align-items:center;
  }

  body.private-page .topbar p{
    display:none;
  }

  body.private-page .topbar h1{
    font-size:24px;
  }

  body.private-page .private-actions{
    gap:6px;
    margin-bottom:8px;
  }

  body.private-page .private-overview-panel{
    padding:6px;
    border-radius:16px;
  }

  body.private-page .grid-area > summary{
    min-height:30px;
    padding:0 8px;
  }

  body.private-page .grid-street{
    margin:6px;
  }

  body.private-page .street-summary{
    min-height:36px;
    align-items:center;
    padding:4px 6px;
  }

  body.private-page .street-summary-main{
    min-width:0;
  }

  body.private-page .street-summary-main strong{
    max-width:136px;
    font-size:14px;
  }

  body.private-page .street-summary-main span{
    max-width:136px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10px;
  }

  body.private-page .street-summary-side{
    gap:4px;
  }

  body.private-page .street-chip{
    min-height:18px;
    max-width:82px;
    padding:0 6px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10px;
  }

  body.private-page .street-icon-link{
    width:28px;
    height:28px;
    border-radius:9px;
  }

  body.private-page .private-grid-wrap{
    border-radius:10px;
  }

  body.private-page .private-grid th,
  body.private-page .private-grid td{
    height:30px;
    padding:3px 4px;
    font-size:11px;
  }

  body.private-page .private-grid .col-nr{
    width:56px;
    min-width:56px;
    max-width:56px;
    left:0;
    text-align:left;
  }

  body.private-page .private-grid .col-floor{
    left:56px;
    width:40px;
    min-width:40px;
    max-width:40px;
  }

  body.private-page .private-grid .col-price{
    width:58px;
    min-width:58px;
    max-width:58px;
    text-align:right;
  }

  body.private-page .private-grid .col-notes{
    width:96px;
    min-width:96px;
    max-width:96px;
  }

  body.private-page .private-grid .month-head,
  body.private-page .private-grid .month-cell{
    width:38px;
    min-width:38px;
  }

  body.private-page .private-grid td.col-nr{
    padding-left:6px;
  }

  body.private-page .house-link{
    font-size:12px;
    font-weight:800;
  }

  body.private-page .notes-cell-content{
    gap:4px;
  }

  body.private-page .contact-icon{
    width:16px;
    height:16px;
  }

  body.private-page .contact-icon svg{
    width:12px;
    height:12px;
  }

  body.private-page .notes-text{
    max-width:62px;
  }

  body.private-page .month-pill{
    min-width:30px;
    height:22px;
    min-height:22px;
    padding:0 4px;
    border-radius:6px;
    font-size:10px;
  }
}

@media (max-width:420px){
  body.private-page .private-grid .col-nr{
    width:52px;
    min-width:52px;
    max-width:52px;
  }

  body.private-page .private-grid .col-floor{
    left:52px;
    width:38px;
    min-width:38px;
    max-width:38px;
  }

  body.private-page .private-grid .col-price{
    width:54px;
    min-width:54px;
    max-width:54px;
  }

  body.private-page .private-grid .col-notes{
    width:88px;
    min-width:88px;
    max-width:88px;
  }

  body.private-page .private-grid .month-head,
  body.private-page .private-grid .month-cell{
    width:36px;
    min-width:36px;
  }
}

/* Planning workday layout */
.planning-workday-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  margin-bottom:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(0,122,255,.13), rgba(255,255,255,.82) 48%), var(--glass);
  box-shadow:var(--soft-shadow);
}

.planning-workday-hero span,
.planning-workday-hero strong,
.planning-workday-hero em{
  display:block;
}

.planning-workday-hero span{
  color:var(--primary);
  font-size:12px;
  font-weight:760;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.planning-workday-hero strong{
  margin-top:3px;
  color:var(--text);
  font-size:26px;
  line-height:1.08;
}

.planning-workday-hero em{
  margin-top:5px;
  color:var(--muted);
  font-style:normal;
  font-weight:620;
}

.planning-day-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}

.planning-day-strip article{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.76);
  box-shadow:0 10px 24px rgba(18,34,64,.05);
}

.planning-day-strip span,
.planning-day-strip strong{
  display:block;
}

.planning-day-strip span{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.planning-day-strip strong{
  margin-top:2px;
  color:var(--text);
  font-size:24px;
  line-height:1;
}

.planning-team-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  padding:10px 12px;
  border:1px solid rgba(52,199,89,.22);
  border-radius:14px;
  background:rgba(52,199,89,.08);
}

.planning-team-strip > strong{
  color:#0f6d3a;
  font-size:13px;
}

.planning-team-strip div{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.planning-team-strip span{
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:var(--text);
  font-size:12px;
  font-weight:800;
}

.planning-team-strip b{
  color:#0f6d3a;
}

.planning-team-month{
  margin-bottom:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.78);
  overflow:hidden;
}

.planning-team-month > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  cursor:pointer;
  list-style:none;
}

.planning-team-month > summary::-webkit-details-marker{
  display:none;
}

.planning-team-month > summary strong,
.planning-team-month > summary span{
  display:block;
}

.planning-team-month > summary span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.planning-team-month > div{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:0 12px 12px;
}

.planning-team-month article{
  padding:9px 10px;
  border:1px solid rgba(205,216,232,.86);
  border-radius:11px;
  background:rgba(247,250,255,.78);
}

.planning-team-month article strong,
.planning-team-month article span,
.planning-team-month article em{
  display:block;
}

.planning-team-month article strong{
  color:var(--text);
  font-size:13px;
}

.planning-team-month article span,
.planning-team-month article em{
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  font-style:normal;
  font-weight:800;
}

.planning-workday-actions{
  display:flex;
  gap:8px;
}

.planning-workday-actions a{
  min-height:36px;
  padding:0 13px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  background:rgba(255,255,255,.78);
  color:var(--text);
  font-weight:720;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}

.planning-workday-tabs{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}

.planning-workday-tabs button{
  height:auto;
  min-height:58px;
  padding:9px;
  border-radius:14px;
  background:rgba(255,255,255,.74);
  display:flex;
  flex-direction:column;
  gap:2px;
}

.planning-workday-tabs button.is-active{
  border-color:rgba(0,122,255,.28);
  background:rgba(0,122,255,.12);
  color:var(--primary);
}

.planning-workday-tabs strong{
  font-size:20px;
  line-height:1;
}

.planning-workday-tabs span{
  font-size:11px;
  font-weight:720;
}

.planning-calendar{
  margin:0 0 12px;
  padding:0;
  overflow:hidden;
}

.planning-calendar > summary{
  cursor:pointer;
  list-style:none;
  margin:0;
  padding:14px 16px;
}

.planning-calendar > summary::-webkit-details-marker{
  display:none;
}

.planning-calendar:not([open]){
  padding:0;
}

.planning-calendar .calendar-weekdays,
.planning-calendar .calendar-grid{
  margin:0 16px 16px;
}

.planning-section-panel,
.planning-card{
  scroll-margin-top:80px;
}

.planning-section-panel[hidden],
.planning-card[hidden]{
  display:none !important;
}

.planning-section-head{
  align-items:center;
  margin:0;
}

.planning-section-panel:not([open]) .planning-card-list{
  display:none;
}

.planning-section-panel:not([open]) .section-toggle::after{
  content:" tonen";
}

.planning-section-panel[open] .section-toggle::after{
  content:" verberg";
}

.planning-card:not([open]) .planning-card-body{
  display:none;
}

.planning-card-summary{
  min-height:62px;
}

.planning-card-title strong{
  font-size:16px;
}

.planning-card-side .due-tag{
  white-space:nowrap;
}

@media (max-width:900px){
  .planning-workday-hero{
    grid-template-columns:1fr;
    gap:10px;
    padding:13px;
    border-radius:16px;
  }

  .planning-workday-hero strong{
    font-size:22px;
  }

  .planning-workday-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .planning-workday-actions a{
    justify-content:center;
  }

  .planning-workday-tabs{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px;
  }

  .planning-workday-tabs button{
    min-height:50px;
    padding:6px 4px;
    border-radius:12px;
  }

  .planning-workday-tabs strong{
    font-size:17px;
  }

  .planning-workday-tabs span{
    overflow:hidden;
    max-width:100%;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:9px;
  }

  .planning-calendar > summary{
    padding:12px;
  }

  .planning-calendar-head span.badge{
    display:none;
  }

  .planning-section-head{
    padding:12px;
  }

  .planning-section-head h2{
    font-size:18px;
  }

  .section-toggle{
    min-height:24px;
    padding:0 8px;
    font-size:11px;
  }

  .planning-card-list{
    gap:8px;
    padding:8px;
  }

  .planning-card{
    border-radius:12px;
  }

  .planning-card-summary{
    min-height:56px;
    padding:10px;
  }

  .planning-card-title{
    gap:6px;
  }

  .planning-card-title strong{
    font-size:15px;
  }

  .planning-card-tags{
    gap:5px;
    margin-top:6px;
  }

  .planning-tag{
    min-height:21px;
    padding:0 7px;
    font-size:10px;
  }

  .planning-card-side{
    align-items:center;
    flex-direction:row;
    justify-content:space-between;
  }

  .planning-card-body{
    padding:0 10px 10px;
  }

  .planning-card-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }

  .planning-card-stats span{
    min-height:44px;
    padding:8px;
    font-size:12px;
  }

  .street-schedule-form{
    grid-template-columns:1fr;
  }

  .street-plan-actions .primary-button,
  .street-plan-actions button{
    width:100%;
  }
}

@media (max-width:420px){
  .planning-workday-tabs{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }

  .planning-workday-tabs button{
    min-height:46px;
  }

  .planning-workday-tabs strong{
    font-size:15px;
  }

  .planning-card-kind{
    display:none;
  }
}

/* Planning compact pass */
@media (max-width:900px){
  body.planning-page .sidebar{
    min-height:56px;
    padding:9px 14px;
    display:flex;
    align-items:center;
    box-shadow:0 6px 18px rgba(16,24,40,.08);
  }

  body.planning-page .brand{
    gap:10px;
  }

  body.planning-page .brand-mark{
    width:34px;
    height:34px;
    border-radius:11px;
  }

  body.planning-page .brand span{
    display:none;
  }

  body.planning-page .main{
    padding:10px 10px 88px;
  }

  body.planning-page .topbar{
    margin:0 0 8px;
    align-items:center;
  }

  body.planning-page .topbar p{
    display:none;
  }

  body.planning-page .topbar h1{
    font-size:24px;
  }
}

body.planning-page .planning-calendar{
  margin-bottom:10px;
}

body.planning-page .planning-calendar > summary{
  min-height:42px;
  padding:10px 12px;
}

body.planning-page .planning-calendar-head h2{
  font-size:16px;
}

body.planning-page .planning-calendar-head span:not(.badge){
  display:none;
}

body.planning-page .planning-sections{
  gap:10px;
}

body.planning-page .planning-section-head{
  min-height:42px;
  padding:10px 12px;
}

body.planning-page .planning-section-head h2{
  font-size:17px;
}

body.planning-page .planning-section-head span{
  font-size:11px;
}

body.planning-page .planning-card-list{
  gap:7px;
  padding:7px;
}

body.planning-page .planning-card-summary{
  min-height:52px;
  padding:9px 10px;
}

body.planning-page .planning-card-title strong{
  font-size:15px;
}

body.planning-page .planning-card-kind{
  display:inline-flex;
}

body.planning-page .planning-card-private .planning-card-kind{
  background:#eff8ff;
  color:#175cd3;
}

body.planning-page .planning-card-business .planning-card-kind{
  background:#ecfdf3;
  color:#027a48;
}

body.planning-page .planning-card-tags{
  margin-top:5px;
}

body.planning-page .planning-card-side em{
  font-size:11px;
}

body.planning-page .planning-card-body{
  padding:0 10px 10px;
}

body.planning-page .planning-card-stats{
  padding-top:8px;
}

body.planning-page .planning-card-stats span{
  min-height:40px;
  padding:7px 8px;
}

body.planning-page .business-plan-meta{
  margin-top:8px;
}

body.planning-page .street-plan-actions{
  margin-top:8px;
}

@media (max-width:420px){
  body.planning-page .planning-card-summary{
    grid-template-columns:1fr;
    gap:6px;
  }

  body.planning-page .planning-card-side{
    align-items:center;
    flex-direction:row;
    justify-content:space-between;
  }

  body.planning-page .planning-tag{
    min-height:20px;
    padding:0 6px;
    font-size:10px;
  }

  body.planning-page .section-toggle{
    display:none;
  }
}

/* Business overview cards */
.business-overview-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}

.business-overview-strip article{
  min-height:68px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.76);
  box-shadow:var(--soft-shadow);
}

.business-overview-strip span,
.business-overview-strip strong{
  display:block;
}

.business-overview-strip span{
  color:var(--muted);
  font-size:11px;
  font-weight:760;
}

.business-overview-strip strong{
  margin-top:4px;
  color:var(--text);
  font-size:22px;
  line-height:1;
}

.business-object-board{
  display:block;
}

.business-object-board .object-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.object-card{
  display:flex;
  min-height:188px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.78);
  color:var(--text);
  text-decoration:none;
  box-shadow:var(--soft-shadow);
  flex-direction:column;
  gap:12px;
}

.object-card:hover{
  border-color:rgba(0,122,255,.26);
  background:rgba(255,255,255,.92);
}

.object-card.is-inactive{
  opacity:.62;
}

.object-card-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.object-card-main strong,
.object-card-main span,
.object-card-main em,
.object-card-meta span,
.object-card-bottom span,
.object-card-bottom strong,
.object-card-bottom em{
  display:block;
}

.object-card-main strong{
  color:var(--text);
  font-size:18px;
  line-height:1.15;
}

.object-card-main span{
  margin-top:3px;
  color:var(--muted);
  font-size:13px;
  font-weight:620;
}

.object-card-main em{
  flex:0 0 auto;
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  background:#ecfdf3;
  color:#027a48;
  font-size:11px;
  font-style:normal;
  font-weight:780;
}

.object-card.is-inactive .object-card-main em{
  background:#f2f4f7;
  color:#667085;
}

.object-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.object-card-meta span{
  min-height:23px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(0,122,255,.08);
  color:#175cd3;
  font-size:12px;
  font-weight:700;
}

.object-card-bottom{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:auto;
}

.object-card-bottom div{
  padding:10px;
  border-radius:12px;
  background:rgba(245,245,247,.82);
}

.object-card-bottom span{
  color:var(--muted);
  font-size:11px;
  font-weight:760;
}

.object-card-bottom strong{
  margin-top:3px;
  color:var(--text);
  font-size:20px;
  line-height:1;
}

.object-card-bottom em{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  font-style:normal;
  font-weight:650;
}

.object-card-services{
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media (max-width:900px){
  body.business-page .sidebar{
    min-height:56px;
    padding:9px 14px;
    display:flex;
    align-items:center;
    box-shadow:0 6px 18px rgba(16,24,40,.08);
  }

  body.business-page .brand{
    gap:10px;
  }

  body.business-page .brand-mark{
    width:34px;
    height:34px;
    border-radius:11px;
  }

  body.business-page .brand span{
    display:none;
  }

  body.business-page .main{
    padding:10px 10px 88px;
  }

  body.business-page .topbar{
    margin:0 0 8px;
    align-items:center;
  }

  body.business-page .topbar p{
    display:none;
  }

  body.business-page .topbar h1{
    font-size:24px;
  }

  body.business-page .toolbar{
    gap:6px;
    margin-bottom:8px;
  }

  body.business-page .business-overview-strip{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
    margin-bottom:8px;
  }

  body.business-page .business-overview-strip article{
    min-height:52px;
    padding:8px 6px;
    text-align:center;
  }

  body.business-page .business-overview-strip span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:9px;
  }

  body.business-page .business-overview-strip strong{
    font-size:17px;
  }

  body.business-page .business-object-board .object-list{
    grid-template-columns:1fr;
    gap:8px;
  }

  body.business-page .object-card{
    min-height:0;
    padding:11px;
    border-radius:14px;
    gap:9px;
  }

  body.business-page .object-card-main strong{
    font-size:16px;
  }

  body.business-page .object-card-meta{
    gap:5px;
  }

  body.business-page .object-card-meta span{
    min-height:21px;
    padding:3px 7px;
    font-size:11px;
  }

  body.business-page .object-card-bottom{
    gap:6px;
  }

  body.business-page .object-card-bottom div{
    padding:8px;
  }

  body.business-page .object-card-bottom strong{
    font-size:18px;
  }
}

@media (max-width:420px){
  body.business-page .toolbar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.business-page .toolbar .search-form{
    grid-column:1 / -1;
  }
}

/* Business grouped list view */
.business-group-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.business-group{
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--soft-shadow);
  overflow:hidden;
}

.business-group > summary{
  min-height:48px;
  padding:0 14px;
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:rgba(0,122,255,.08);
}

.business-group > summary::-webkit-details-marker{
  display:none;
}

.business-group > summary strong{
  color:#17437c;
  font-size:16px;
}

.business-group > summary span{
  color:#456084;
  font-size:12px;
  font-weight:720;
}

.business-object-list{
  display:flex;
  flex-direction:column;
}

.object-list-row{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1.25fr) 90px 76px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-height:54px;
  padding:10px 12px;
  border-top:1px solid var(--line);
  color:var(--text);
  text-decoration:none;
  background:rgba(255,255,255,.72);
}

.object-list-row:hover{
  background:rgba(0,122,255,.06);
}

.object-list-row.is-inactive{
  opacity:.62;
}

.object-list-main strong,
.object-list-main span,
.object-list-address span,
.object-list-address em,
.object-list-money strong,
.object-list-money span,
.object-list-work strong,
.object-list-work span{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.object-list-main strong{
  color:var(--text);
  font-size:14px;
  font-weight:820;
}

.object-list-main span,
.object-list-address span,
.object-list-address em,
.object-list-money span,
.object-list-work span,
.object-list-services{
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}

.object-list-address em{
  margin-top:2px;
  font-style:normal;
}

.object-list-money,
.object-list-work{
  text-align:right;
}

.object-list-money strong,
.object-list-work strong{
  color:var(--text);
  font-size:14px;
  font-weight:820;
}

.object-list-services{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media (max-width:900px){
  body.business-page .business-group-list{
    gap:8px;
  }

  body.business-page .business-group{
    border-radius:12px;
  }

  body.business-page .business-group > summary{
    min-height:38px;
    padding:0 10px;
  }

  body.business-page .business-group > summary strong{
    font-size:15px;
  }

  body.business-page .business-group > summary span{
    font-size:11px;
  }

  body.business-page .object-list-row{
    grid-template-columns:minmax(0,1fr) 58px 48px;
    gap:7px;
    min-height:48px;
    padding:8px 9px;
  }

  body.business-page .object-list-address,
  body.business-page .object-list-services{
    display:none;
  }

  body.business-page .object-list-main strong{
    font-size:13px;
  }

  body.business-page .object-list-main span,
  body.business-page .object-list-money span,
  body.business-page .object-list-work span{
    font-size:10px;
  }

  body.business-page .object-list-money strong,
  body.business-page .object-list-work strong{
    font-size:12px;
  }
}

body.business-object-page .section-details{
  overflow:hidden;
  margin-bottom:10px;
  padding-bottom:0;
  border-radius:14px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--soft-shadow);
}

body.business-object-page .section-details:not([open]){
  padding-bottom:0;
}

body.business-object-page .business-object-summary{
  margin-bottom:10px;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--soft-shadow);
}

body.business-object-page .business-object-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}

body.business-object-page .business-object-actions .secondary-button{
  min-height:42px;
  justify-content:center;
  border-radius:12px;
  background:rgba(255,255,255,.8);
}

body.business-object-page .section-details > summary.panel-head{
  min-height:44px;
  margin:0;
  padding:0 14px;
  background:rgba(0,122,255,.08);
}

body.business-object-page .section-details > summary.panel-head h2{
  color:#17437c;
  font-size:16px;
}

body.business-object-page .form-section{
  padding:12px 0;
}

body.business-object-page .section-details > .customer-form{
  padding:12px 14px 14px;
}

body.business-object-page .form-section h2{
  font-size:15px;
}

body.business-object-page .service-card,
body.business-object-page .simple-card{
  margin:0;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:rgba(255,255,255,.72);
  box-shadow:none;
  transform:none;
}

body.business-object-page .service-card:hover,
body.business-object-page .simple-card:hover{
  transform:none;
}

body.business-object-page .service-list,
body.business-object-page .simple-list{
  gap:0;
}

body.business-object-page .service-card > summary,
body.business-object-page .simple-card > summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  min-height:52px;
  padding:9px 12px;
  list-style:none;
  cursor:pointer;
}

body.business-object-page .service-card > summary::-webkit-details-marker,
body.business-object-page .simple-card > summary::-webkit-details-marker{
  display:none;
}

body.business-object-page .business-row-main strong,
body.business-object-page .business-row-main span{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.business-object-page .business-row-main strong{
  color:var(--text);
  font-size:14px;
  font-weight:820;
}

body.business-object-page .business-row-main span{
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}

body.business-object-page .service-card > summary em{
  align-self:center;
  color:#027a48;
  font-size:12px;
  font-style:normal;
  font-weight:800;
}

body.business-object-page .service-card:not([open]) > summary:hover,
body.business-object-page .simple-card:not([open]) > summary:hover{
  background:rgba(0,122,255,.05);
}

body.business-object-page .service-card > form,
body.business-object-page .service-card > .business-month-grid,
body.business-object-page .simple-card > form{
  padding:0 12px 12px;
}

body.business-object-page .compact-form{
  margin-top:0;
  padding-top:12px;
}

body.business-object-page .business-products-panel{
  border-color:var(--line) !important;
}

body.business-object-page .business-products-panel > summary.panel-head{
  background:rgba(0,122,255,.08);
}

@media (max-width:900px){
  body.business-object-page .toolbar{
    display:flex;
    flex-wrap:nowrap;
    gap:6px;
  }

  body.business-object-page .toolbar a,
  body.business-object-page .toolbar button{
    width:auto;
    justify-content:center;
  }

  body.business-object-page .business-object-summary{
    grid-template-columns:minmax(0,1fr) 62px 42px;
    gap:7px;
    min-height:48px;
    padding:8px 9px;
  }

  body.business-object-page .business-object-summary .object-list-address,
  body.business-object-page .business-object-summary .object-list-services{
    display:none;
  }

  body.business-object-page .business-object-summary .object-list-main strong{
    font-size:14px;
  }

  body.business-object-page .business-object-summary .object-list-main span,
  body.business-object-page .business-object-summary .object-list-money span,
  body.business-object-page .business-object-summary .object-list-work span{
    font-size:10px;
  }

  body.business-object-page .business-object-summary .object-list-money strong,
  body.business-object-page .business-object-summary .object-list-work strong{
    font-size:12px;
  }

  body.business-object-page .business-object-actions{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
  }

  body.business-object-page .business-object-actions .secondary-button{
    min-height:40px;
    padding:0 7px;
  }

  body.business-object-page .business-object-actions span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:11px;
  }

  body.business-object-page .section-details > summary.panel-head{
    min-height:38px;
    padding:0 10px;
  }

  body.business-object-page .section-details > summary.panel-head h2{
    font-size:15px;
  }

  body.business-object-page .service-card{
    padding:0;
  }

  body.business-object-page .service-card > summary,
  body.business-object-page .simple-card > summary{
    min-height:46px;
    padding:8px 10px;
  }

  body.business-object-page .business-row-main strong{
    font-size:13px;
  }

  body.business-object-page .business-row-main span{
    font-size:10px;
  }

  body.business-object-page .business-month-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* Mobile-first billing workflow */
@media (max-width:900px){
  body.business-billing-page .toolbar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  body.business-billing-page .toolbar .search-form{
    display:grid;
    grid-column:1 / -1;
    grid-template-columns:1fr 82px 74px;
    gap:7px;
  }

  body.business-billing-page .toolbar a,
  body.business-billing-page .toolbar button{
    min-height:40px;
    justify-content:center;
  }

  .billing-mobile-summary{
    display:grid;
    grid-template-columns:1.2fr .8fr 1fr .8fr;
    gap:6px;
    align-items:center;
    min-height:42px;
    margin-bottom:8px;
    padding:7px 9px;
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(255,255,255,.82);
    box-shadow:var(--soft-shadow);
  }

  .billing-mobile-summary strong,
  .billing-mobile-summary span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .billing-mobile-summary strong{
    color:var(--text);
    font-size:13px;
  }

  .billing-mobile-summary span{
    color:var(--muted);
    font-size:11px;
    font-weight:800;
    text-align:center;
  }

  body.business-billing-page details[data-billing-key="summary"]{
    display:none;
  }

  body.business-billing-page .section-details{
    margin-bottom:8px;
  }

  body.business-billing-page .section-details > summary.panel-head{
    min-height:38px;
    padding:0 10px;
  }

  body.business-billing-page .section-details > summary.panel-head h2{
    font-size:15px;
  }

  .billing-warning-strip{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin-bottom:8px;
  }

  .billing-warning-strip span{
    min-height:30px;
    justify-content:center;
    padding:0 6px;
    font-size:10px;
    text-align:center;
  }

  body.business-billing-page .invoice-prep-list{
    gap:7px;
  }

  body.business-billing-page .invoice-prep-card{
    padding:0;
    border-radius:12px;
    overflow:hidden;
  }

  body.business-billing-page .invoice-prep-card > summary{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    min-height:50px;
    padding:8px 10px;
    gap:8px;
  }

  body.business-billing-page .invoice-prep-card > summary strong,
  body.business-billing-page .invoice-prep-card > summary span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  body.business-billing-page .invoice-prep-card > summary strong{
    font-size:13px;
  }

  body.business-billing-page .invoice-prep-card > summary span{
    font-size:10px;
  }

  body.business-billing-page .invoice-card-side{
    align-items:flex-end;
    justify-content:center;
    min-width:72px;
  }

  body.business-billing-page .invoice-card-side span{
    min-height:20px;
    padding:0 7px;
    font-size:10px !important;
  }

  body.business-billing-page .invoice-card-side em{
    font-size:12px;
  }

  body.business-billing-page .invoice-object-meta,
  body.business-billing-page .invoice-warnings,
  body.business-billing-page .invoice-lines,
  body.business-billing-page .invoice-actions,
  body.business-billing-page .invoice-extra-form-card,
  body.business-billing-page .invoice-extra-locked,
  body.business-billing-page .empty-state{
    margin-right:10px;
    margin-left:10px;
  }

  body.business-billing-page .invoice-object-meta{
    display:grid;
    grid-template-columns:1fr;
    gap:4px;
    margin-top:0;
    padding:8px 0 0;
    font-size:11px;
  }

  body.business-billing-page .invoice-warnings{
    gap:5px;
    margin-top:8px;
  }

  body.business-billing-page .invoice-warnings span{
    min-height:22px;
    padding:0 7px;
    font-size:10px;
  }

  body.business-billing-page .invoice-lines{
    margin-top:8px;
    border-radius:10px;
  }

  body.business-billing-page .invoice-line-head{
    display:none;
  }

  body.business-billing-page .invoice-line{
    grid-template-columns:minmax(0,1fr) auto;
    gap:5px 8px;
    min-height:44px;
    padding:8px 9px;
    font-size:12px;
  }

  body.business-billing-page .invoice-line span:nth-child(1){
    grid-column:1;
    grid-row:1 / span 2;
  }

  body.business-billing-page .invoice-line span:nth-child(2){
    grid-column:2;
    grid-row:2;
    color:var(--muted);
    font-size:10px;
  }

  body.business-billing-page .invoice-line span:nth-child(2)::before{
    content:"x ";
  }

  body.business-billing-page .invoice-line span:nth-child(3){
    display:none;
  }

  body.business-billing-page .invoice-line span:nth-child(4){
    grid-column:2;
    grid-row:1;
    font-weight:900;
  }

  body.business-billing-page .invoice-line strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
  }

  body.business-billing-page .invoice-line em{
    margin-top:2px;
    font-size:10px;
  }

  body.business-billing-page .inline-delete-form{
    display:flex;
    justify-content:flex-end;
    margin:2px 0 0;
  }

  body.business-billing-page .invoice-actions{
    margin-top:8px;
    margin-bottom:10px;
  }

  body.business-billing-page .invoice-actions form,
  body.business-billing-page .invoice-actions a,
  body.business-billing-page .invoice-actions button{
    width:100%;
  }

  body.business-billing-page .invoice-extra-form-card{
    margin-top:8px;
    margin-bottom:10px;
  }

  body.business-billing-page .invoice-extra-form-card > summary{
    min-height:38px;
    padding:0 10px;
  }

  body.business-billing-page .invoice-extra-form-card strong{
    font-size:12px;
  }

  body.business-billing-page .invoice-extra-form-card span{
    font-size:10px;
  }

  body.business-billing-page .invoice-extra-form-card .form-grid{
    grid-template-columns:1.2fr .45fr .7fr;
    gap:7px;
  }

  body.business-billing-page .invoice-extra-more .form-grid{
    grid-template-columns:1fr;
  }

  body.business-billing-page .invoice-extra-form-card .customer-form label{
    font-size:10px;
  }

  body.business-billing-page .invoice-extra-form-card input{
    min-height:36px;
    font-size:13px;
  }

  body.business-billing-page .invoice-extra-form-card .form-actions button{
    width:100%;
    min-height:38px;
  }
}

@media (max-width:420px){
  .billing-mobile-summary{
    grid-template-columns:1fr 1fr;
  }

  .billing-mobile-summary strong{
    grid-column:1 / -1;
    text-align:center;
  }

  body.business-billing-page .toolbar .search-form{
    grid-template-columns:1fr 74px 42px;
  }

  body.business-billing-page .toolbar .search-form button{
    overflow:hidden;
    padding:0;
    font-size:0;
  }

  body.business-billing-page .toolbar .search-form button::before{
    content:"Ok";
    font-size:12px;
  }
}

/* Small universal mobile polish */
@media (max-width:900px){
  .customer-form .form-grid{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .customer-form label{
    font-size:11px;
  }

  .customer-form input,
  .customer-form select,
  .customer-form textarea{
    min-height:38px;
    font-size:13px;
  }

  .form-actions{
    gap:7px;
  }

  .form-actions .primary-button,
  .form-actions .secondary-button,
  .form-actions .danger-button{
    min-height:40px;
  }

  .primary-button,
  .secondary-button,
  .danger-button{
    min-height:38px;
  }

  .panel,
  .settings-master-panel,
  .settings-fold,
  .admin-v3-panel{
    scroll-margin-top:74px;
  }
}

@media (max-width:420px){
  .customer-form .form-grid{
    grid-template-columns:1fr;
  }

  .team-assignment-columns{
    grid-template-columns:1fr;
  }

  .team-assignment-list{
    max-height:220px;
  }

  .team-row{
    align-items:flex-start;
  }

  .team-row .settings-row-actions{
    width:100%;
  }
}

/* Mobile invoice list/detail polish */
@media (max-width:900px){
  body.business-invoices-page .toolbar,
  body.business-invoice-page .toolbar{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
  }

  body.business-invoices-page .toolbar a,
  body.business-invoice-page .toolbar a{
    width:100%;
    min-height:40px;
    justify-content:center;
  }

  body.business-invoices-page .invoice-prep-card{
    padding:0;
    border-radius:12px;
    overflow:hidden;
  }

  body.business-invoices-page .invoice-prep-card > summary{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    min-height:50px;
    padding:8px 10px;
    gap:8px;
  }

  body.business-invoices-page .invoice-prep-card > summary strong,
  body.business-invoices-page .invoice-prep-card > summary span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  body.business-invoices-page .invoice-prep-card > summary strong{
    font-size:13px;
  }

  body.business-invoices-page .invoice-prep-card > summary span{
    font-size:10px;
  }

  body.business-invoices-page .invoice-prep-card > summary em{
    font-size:12px;
  }

  body.business-invoices-page .invoice-object-meta,
  body.business-invoice-page .invoice-object-meta,
  body.business-invoices-page .invoice-lines,
  body.business-invoice-page .invoice-lines,
  body.business-invoices-page .invoice-actions{
    margin-right:10px;
    margin-left:10px;
  }

  body.business-invoice-page .status-panel{
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    padding:10px 12px;
    border-radius:12px;
  }

  body.business-invoice-page .status-panel strong{
    font-size:13px;
  }

  body.business-invoice-page .status-panel span{
    font-size:11px;
  }

  body.business-invoice-page .invoice-status-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  body.business-invoice-page .invoice-status-actions button{
    width:100%;
    min-height:38px;
  }

  body.business-invoices-page .invoice-line-head,
  body.business-invoice-page .invoice-line-head{
    display:none;
  }

  body.business-invoices-page .invoice-line,
  body.business-invoice-page .invoice-line{
    grid-template-columns:minmax(0,1fr) auto;
    gap:5px 8px;
    min-height:44px;
    padding:8px 9px;
    font-size:12px;
  }

  body.business-invoices-page .invoice-line span:nth-child(1),
  body.business-invoice-page .invoice-line span:nth-child(1){
    grid-column:1;
    grid-row:1 / span 2;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  body.business-invoices-page .invoice-line span:nth-child(2),
  body.business-invoice-page .invoice-line span:nth-child(2){
    grid-column:2;
    grid-row:2;
    color:var(--muted);
    font-size:10px;
  }

  body.business-invoices-page .invoice-line span:nth-child(2)::before,
  body.business-invoice-page .invoice-line span:nth-child(2)::before{
    content:"x ";
  }

  body.business-invoices-page .invoice-line span:nth-child(3),
  body.business-invoice-page .invoice-line span:nth-child(3){
    display:none;
  }

  body.business-invoices-page .invoice-line span:nth-child(4),
  body.business-invoice-page .invoice-line span:nth-child(4){
    grid-column:2;
    grid-row:1;
    font-weight:900;
  }

  body.business-invoices-page .invoice-line-total span:nth-child(1),
  body.business-invoice-page .invoice-line-total span:nth-child(1){
    grid-row:1;
  }
}

/* Final dashboard pro overrides */
body.dashboard-pro-page .dash-pro-hero-copy,
body.dashboard-pro-page .dash-pro-today,
body.dashboard-pro-page .dash-pro-kpi,
body.dashboard-pro-page .dash-pro-panel{
  border-color:rgba(15,23,42,.08) !important;
  background:rgba(255,255,255,.86);
}

body.dashboard-pro-page .dash-pro-actions .primary-button,
body.dashboard-pro-page .dash-pro-actions .secondary-button{
  min-height:38px;
  border-radius:12px;
}

@media (max-width:900px){
  body.dashboard-pro-page .topbar{
    display:none !important;
  }

  body.dashboard-pro-page .main{
    padding:10px 10px 92px;
  }
}

/* Final shared mobile header and planning polish */
@media (max-width:900px){
  .sidebar,
  body.private-page .sidebar,
  body.planning-page .sidebar,
  body.business-page .sidebar{
    min-height:58px !important;
    max-height:58px !important;
    padding:8px 12px !important;
    align-items:center !important;
    justify-content:center !important;
    gap:0 !important;
    overflow:hidden !important;
  }

  .sidebar .brand,
  body.private-page .brand,
  body.planning-page .brand,
  body.business-page .brand{
    min-height:42px !important;
    height:42px !important;
    align-items:center !important;
  }

  .sidebar .brand-logo-image{
    display:block !important;
    width:auto !important;
    height:40px !important;
    max-width:78vw !important;
    object-fit:contain !important;
    object-position:left center !important;
  }

  .sidebar .brand-mark,
  .sidebar .brand-text,
  .sidebar-footer,
  .window-dots{
    display:none !important;
  }

  .main,
  body.private-page .main,
  body.planning-page .main,
  body.business-page .main{
    padding-top:10px !important;
  }

  body:not(.dashboard-pro-page) .topbar{
    align-items:center !important;
    min-height:0 !important;
    margin:0 0 10px !important;
  }

  body:not(.dashboard-pro-page) .topbar h1{
    font-size:24px !important;
    line-height:1.08 !important;
  }

  body:not(.dashboard-pro-page) .topbar p{
    display:none !important;
  }

  body.planning-page .planning-workday-hero{
    grid-template-columns:1fr;
    margin-bottom:8px;
    padding:11px 12px;
    border-radius:14px;
  }

  body.planning-page .planning-workday-hero span{
    font-size:10px;
  }

  body.planning-page .planning-workday-hero strong{
    margin-top:2px;
    font-size:20px;
  }

  body.planning-page .planning-workday-hero em{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
  }

  body.planning-page .planning-day-strip{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
    margin-bottom:8px;
  }

  body.planning-page .planning-day-strip article{
    padding:7px 6px;
    border-radius:12px;
  }

  body.planning-page .planning-day-strip span{
    min-height:20px;
    font-size:8px;
    line-height:1.05;
  }

  body.planning-page .planning-day-strip strong{
    font-size:17px;
  }

  body.planning-page .planning-team-strip{
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
    margin-bottom:8px;
    padding:8px;
    border-radius:12px;
  }

  body.planning-page .planning-team-strip div{
    justify-content:flex-start;
  }

  body.planning-page .planning-team-strip span{
    padding:4px 7px;
    font-size:10px;
  }

  body.planning-page .planning-team-month{
    margin-bottom:8px;
    border-radius:12px;
  }

  body.planning-page .planning-team-month > summary{
    padding:9px;
  }

  body.planning-page .planning-team-month > div{
    grid-template-columns:1fr;
    gap:6px;
    padding:0 9px 9px;
  }

  body.planning-page .planning-team-month article{
    padding:8px;
    border-radius:10px;
  }

  body.planning-page .planning-workday-tabs{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin-bottom:8px;
  }

  body.planning-page .planning-workday-tabs button{
    min-height:44px;
    padding:6px 4px;
    border-radius:12px;
  }

  body.planning-page .planning-workday-tabs strong{
    font-size:15px;
  }

  body.planning-page .planning-workday-tabs span{
    font-size:9px;
  }

  body.planning-page .planning-calendar{
    margin-bottom:8px;
  }

  body.planning-page .planning-calendar > summary,
  body.planning-page .planning-section-head{
    min-height:40px;
    padding:9px 10px;
  }

  body.planning-page .planning-calendar-head h2,
  body.planning-page .planning-section-head h2{
    font-size:16px;
  }

  body.planning-page .planning-section-head span{
    font-size:10px;
  }

  body.planning-page .planning-card-summary{
    min-height:48px;
    padding:8px 9px;
  }

  body.planning-page .planning-card-title strong{
    font-size:14px;
  }

  body.planning-page .planning-card-tags{
    margin-top:4px;
  }

  body.planning-page .planning-tag,
  body.planning-page .planning-card-kind,
  body.planning-page .due-tag{
    min-height:19px;
    padding:0 6px;
    font-size:9px !important;
  }

  body.planning-page .planning-card-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.planning-page .street-plan-houses{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (min-width:901px){
  body.planning-page .planning-workday-tabs{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}

/* Planning worklist actions and print sheet */
.planning-card-quick-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}

.planning-card-quick-actions form{
  margin:0;
}

.planning-card-quick-actions .primary-button,
.planning-card-quick-actions .secondary-button{
  min-height:34px;
  padding:0 10px;
  border-radius:10px;
  text-decoration:none;
  white-space:nowrap;
}

.worklist-print-body{
  background:#eef4fb;
  color:#101828;
}

.worklist-page{
  width:min(1020px,100%);
  margin:0 auto;
  padding:18px;
}

.worklist-toolbar{
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-bottom:12px;
  padding:10px;
  border:1px solid rgba(16,24,40,.08);
  border-radius:16px;
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 30px rgba(16,24,40,.10);
  backdrop-filter:blur(14px);
}

.worklist-sheet{
  padding:28px;
  border:1px solid rgba(16,24,40,.10);
  border-radius:22px;
  background:#fff;
  box-shadow:0 24px 70px rgba(16,24,40,.14);
}

.worklist-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  padding-bottom:18px;
  border-bottom:2px solid #e5effa;
}

.worklist-header span,
.worklist-header p,
.worklist-lines span,
.worklist-table span,
.worklist-table em,
.worklist-house-list span,
.worklist-house-list em{
  display:block;
  color:#667085;
  font-style:normal;
  font-weight:750;
}

.worklist-header > div > span{
  color:#1570ef;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}

.worklist-header h1{
  margin:6px 0 4px;
  color:#071936;
  font-size:34px;
  line-height:1.05;
}

.worklist-header p{
  margin:0;
  font-size:14px;
}

.worklist-header aside{
  min-width:180px;
  padding:14px;
  border-radius:16px;
  background:linear-gradient(135deg,#eaf5ff,#fff8ed);
  text-align:right;
}

.worklist-header aside strong{
  display:block;
  color:#071936;
  font-size:22px;
}

.worklist-header aside span{
  margin-top:5px;
  font-size:11px;
}

.worklist-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:16px 0;
}

.worklist-kpis article{
  min-height:72px;
  padding:12px;
  border:1px solid #e5effa;
  border-radius:14px;
  background:#f8fbff;
}

.worklist-kpis span{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.worklist-kpis strong{
  display:block;
  margin-top:7px;
  color:#101828;
  font-size:15px;
}

.worklist-section{
  margin-top:16px;
}

.worklist-section h2{
  margin:0 0 8px;
  color:#101828;
  font-size:16px;
}

.worklist-object-card,
.worklist-note,
.worklist-lines,
.worklist-empty-row{
  padding:13px;
  border:1px solid #e5effa;
  border-radius:14px;
  background:#fbfdff;
}

.worklist-object-card strong,
.worklist-object-card span{
  display:block;
}

.worklist-object-card strong{
  color:#101828;
  font-size:18px;
}

.worklist-object-card span{
  margin-top:4px;
  color:#667085;
  font-weight:800;
}

.worklist-two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.worklist-note{
  min-height:112px;
  margin:0;
  color:#344054;
  font-weight:700;
  line-height:1.45;
}

.worklist-lines{
  display:flex;
  min-height:112px;
  flex-direction:column;
  gap:4px;
}

.worklist-table{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.worklist-table > div{
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-height:46px;
  padding:9px 11px;
  border:1px solid #e5effa;
  border-radius:12px;
  background:#fbfdff;
}

.worklist-table strong{
  color:#101828;
}

.worklist-empty-row{
  display:block !important;
  color:#667085;
  font-weight:800;
}

.worklist-house-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}

.worklist-house-list article{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px 10px;
  min-height:86px;
  padding:12px;
  border:1px solid #e5effa;
  border-radius:14px;
  background:#fbfdff;
}

.worklist-house-list strong{
  display:block;
  color:#101828;
  font-size:22px;
  line-height:1;
}

.worklist-house-list p{
  grid-column:1 / -1;
  margin:0;
  color:#344054;
  font-weight:800;
}

.worklist-route-section{
  margin-top:12px;
}

.worklist-route-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.worklist-route-head h2{
  margin:0;
}

.worklist-route-head span{
  color:#667085;
  font-size:12px;
  font-weight:850;
}

.worklist-route-group{
  margin-top:10px;
  overflow:hidden;
  border:1px solid #dbe8f7;
  border-radius:14px;
  background:#fff;
}

.worklist-route-group h3{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0;
  padding:9px 11px;
  color:#12366f;
  background:#edf6ff;
  font-size:14px;
  line-height:1.1;
}

.worklist-route-group h3 span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#fff;
  color:#1570ef;
  font-size:12px;
}

.worklist-route-table{
  display:flex;
  flex-direction:column;
}

.worklist-route-row{
  display:grid;
  grid-template-columns:minmax(44px,.7fr) minmax(54px,.65fr) minmax(56px,.7fr) minmax(0,1.8fr) 28px;
  align-items:center;
  min-height:38px;
  gap:7px;
  padding:6px 9px;
  border-top:1px solid #e5effa;
}

.worklist-route-row:nth-child(odd):not(.worklist-route-row-head){
  background:#fbfdff;
}

.worklist-route-row-head{
  min-height:30px;
  background:#f8fafc;
}

.worklist-route-row-head span{
  color:#667085;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
}

.worklist-route-row strong{
  color:#101828;
  font-size:17px;
  line-height:1;
}

.worklist-route-row span,
.worklist-route-row em{
  min-width:0;
  overflow:hidden;
  color:#344054;
  font-size:13px;
  font-style:normal;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.worklist-route-row i{
  width:20px;
  height:20px;
  justify-self:end;
  border:2px solid #98a2b3;
  border-radius:6px;
  background:#fff;
}

.worklist-checks{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.worklist-checks h2{
  grid-column:1 / -1;
}

.worklist-checks label{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:9px 11px;
  border:1px solid #e5effa;
  border-radius:12px;
  color:#344054;
  background:#fbfdff;
  font-weight:850;
}

.worklist-checks label span{
  width:18px;
  height:18px;
  border:2px solid #98a2b3;
  border-radius:5px;
}

@media (min-width:901px){
  .planning-card-summary{
    grid-template-columns:minmax(0,1fr) auto auto;
  }
}

@media (max-width:900px){
  body.planning-page .planning-card-summary{
    grid-template-columns:1fr;
  }

  .planning-card-quick-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  .planning-card-quick-actions .primary-button,
  .planning-card-quick-actions .secondary-button{
    justify-content:center;
    min-height:36px;
    padding:0 8px;
    font-size:12px;
  }

  .planning-card-quick-actions form,
  .planning-card-quick-actions button,
  .planning-card-quick-actions a{
    width:100%;
  }

  .worklist-page{
    padding:10px;
  }

  .worklist-toolbar{
    bottom:10px;
    top:auto;
    justify-content:stretch;
    margin:0;
    position:fixed;
    right:10px;
    left:10px;
  }

  .worklist-toolbar .primary-button,
  .worklist-toolbar .secondary-button{
    flex:1;
    justify-content:center;
    min-height:42px;
  }

  .worklist-sheet{
    padding:15px;
    border-radius:18px;
    margin-bottom:76px;
  }

  .worklist-header{
    grid-template-columns:1fr;
    gap:10px;
    padding-bottom:9px;
  }

  .worklist-header h1{
    font-size:24px;
  }

  .worklist-header aside{
    min-width:0;
    padding:10px 11px;
    text-align:left;
  }

  .worklist-header aside strong{
    font-size:20px;
  }

  .worklist-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin:10px 0;
  }

  .worklist-kpis article{
    min-height:62px;
    padding:10px;
  }

  .worklist-two-col,
  .worklist-house-list,
  .worklist-checks{
    grid-template-columns:1fr;
  }

  .worklist-table > div{
    grid-template-columns:1fr;
    gap:3px;
  }

  .worklist-house-list article{
    min-height:74px;
  }

  .worklist-route-head{
    display:block;
  }

  .worklist-route-head span{
    display:block;
    margin-top:2px;
  }

  .worklist-route-group{
    margin-top:8px;
    border-radius:12px;
  }

  .worklist-route-row{
    grid-template-columns:minmax(36px,.65fr) minmax(42px,.55fr) minmax(48px,.65fr) minmax(0,1.35fr) 24px;
    min-height:34px;
    gap:5px;
    padding:5px 7px;
  }

  .worklist-route-row strong{
    font-size:15px;
  }

  .worklist-route-row span,
  .worklist-route-row em{
    font-size:11px;
  }

  .worklist-route-row i{
    width:18px;
    height:18px;
    border-radius:5px;
  }
}

@media print{
  @page{
    margin:12mm;
  }

  .worklist-print-body{
    background:#fff;
  }

  .worklist-page{
    width:100%;
    padding:0;
  }

  .worklist-toolbar,
  .invoice-print-toolbar{
    display:none !important;
  }

  .worklist-sheet{
    padding:0;
    border:0;
    border-radius:0;
    box-shadow:none;
  }

  .worklist-section,
  .worklist-house-list article,
  .worklist-table > div,
  .worklist-route-group{
    break-inside:avoid;
  }

  .worklist-header{
    padding-bottom:8px;
  }

  .worklist-header h1{
    font-size:24px;
  }

  .worklist-header aside{
    padding:8px 10px;
  }

  .worklist-route-row{
    min-height:27px;
    padding:3px 7px;
  }

  .worklist-route-row strong{
    font-size:13px;
  }

  .worklist-route-row span,
  .worklist-route-row em{
    font-size:10px;
  }

  .worklist-route-row i{
    width:15px;
    height:15px;
    border-radius:4px;
  }
}

/* Chat mobile override - keep this at the end */
body.chat-page{
  background:linear-gradient(180deg,#eaf8fb 0%,#f7fbff 42%,#f6f7fb 100%) !important;
}

body.chat-page .topbar{
  min-height:0 !important;
  padding-bottom:12px !important;
}

body.chat-page .topbar p{
  display:none !important;
}

body.chat-page .chat-list-head small{
  display:block;
  margin-top:2px;
  color:#667085;
  font-size:12px;
  font-weight:800;
}

body.chat-page .chat-thread,
body.chat-page .chat-thread *{
  text-decoration:none !important;
}

body.chat-page .chat-avatar.wa{
  background:#dcfce7 !important;
  color:#128c4a !important;
}

body .mobile-app-nav a .nav-badge{
  position:absolute !important;
  top:7px !important;
  right:18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:18px !important;
  width:auto !important;
  height:18px !important;
  padding:0 5px !important;
  border-radius:999px !important;
  background:#ef4444 !important;
  color:#fff !important;
  font-size:10px !important;
  font-weight:950 !important;
  line-height:18px !important;
  box-shadow:0 6px 14px rgba(239,68,68,.28) !important;
}

@media (max-width:900px){
  body.chat-page .main{
    padding-bottom:94px !important;
  }

  body.chat-page .topbar{
    padding:18px 16px 10px !important;
  }

  body.chat-page .topbar h1{
    font-size:32px !important;
    line-height:1 !important;
  }

  body.chat-page .chat-shell{
    display:grid !important;
    grid-template-columns:1fr !important;
    width:auto !important;
    height:calc(100dvh - 254px) !important;
    min-height:420px !important;
    margin:0 -16px !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
  }

  body.chat-page .chat-shell:not(.has-active) .chat-window{
    display:none !important;
  }

  body.chat-page .chat-shell.has-active .chat-list{
    display:none !important;
  }

  body.chat-page .chat-list{
    display:block !important;
    max-height:none !important;
    height:100% !important;
    overflow:auto !important;
    padding:0 16px 18px !important;
    border:0 !important;
    background:transparent !important;
  }

  body.chat-page .chat-list-head{
    position:sticky !important;
    top:0 !important;
    z-index:5 !important;
    margin:0 0 8px !important;
    padding:10px 4px 12px !important;
    border:0 !important;
    background:linear-gradient(180deg,rgba(230,247,251,.98),rgba(230,247,251,.84)) !important;
    backdrop-filter:blur(12px);
  }

  body.chat-page .chat-list-head strong{
    font-size:21px !important;
  }

  body.chat-page .chat-thread{
    display:grid !important;
    grid-template-columns:42px minmax(0,1fr) auto !important;
    gap:10px !important;
    align-items:center !important;
    min-height:68px !important;
    margin:0 0 8px !important;
    padding:10px 12px !important;
    border:1px solid rgba(214,224,236,.9) !important;
    border-radius:16px !important;
    background:rgba(255,255,255,.92) !important;
    box-shadow:0 10px 26px rgba(15,23,42,.06) !important;
    color:#111827 !important;
  }

  body.chat-page .chat-thread.active{
    border-color:#9cc9ff !important;
    background:#edf6ff !important;
  }

  body.chat-page .chat-thread-main{
    min-width:0 !important;
  }

  body.chat-page .chat-thread-main strong,
  body.chat-page .chat-thread-main small{
    display:block !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  body.chat-page .chat-thread-main strong{
    font-size:15px !important;
    line-height:1.08 !important;
  }

  body.chat-page .chat-thread-main small{
    margin-top:5px !important;
    color:#667085 !important;
    font-size:12px !important;
    line-height:1.2 !important;
  }

  body.chat-page .chat-thread-meta{
    min-width:52px !important;
  }

  body.chat-page .chat-thread-meta time{
    color:#64748b !important;
    font-size:11px !important;
    white-space:nowrap !important;
  }

  body.chat-page .chat-window{
    display:flex !important;
    height:100% !important;
    overflow:hidden !important;
    border-top:1px solid rgba(214,224,236,.9) !important;
    background:linear-gradient(180deg,#f8fbff 0%,#eef8f2 100%) !important;
  }

  body.chat-page .chat-header{
    flex:0 0 auto !important;
    min-height:58px !important;
    padding:9px 12px !important;
  }

  body.chat-page .chat-header strong{
    font-size:15px !important;
  }

  body.chat-page .chat-messages{
    flex:1 1 auto !important;
    padding:12px 12px 84px !important;
  }

  body.chat-page .chat-bubble{
    max-width:88% !important;
  }

  body.chat-page .chat-compose{
    position:fixed !important;
    left:12px !important;
    right:12px !important;
    bottom:88px !important;
    z-index:20 !important;
    border:1px solid rgba(214,224,236,.9) !important;
    border-radius:18px !important;
    box-shadow:0 14px 35px rgba(15,23,42,.14) !important;
  }

  body.chat-page .chat-compose textarea{
    font-size:16px !important;
  }
}

@media (max-width:420px){
  body.chat-page .chat-thread{
    grid-template-columns:38px minmax(0,1fr) 46px !important;
    min-height:64px !important;
    padding:9px 10px !important;
  }

  body.chat-page .chat-avatar{
    width:38px !important;
    height:38px !important;
    border-radius:14px !important;
  }

  body.chat-page .chat-thread-main strong{
    font-size:14px !important;
  }
}

/* Planning result and private street payment choice */
body.planning-page .planning-result-box{
  display:grid;
  gap:4px;
  padding:14px 16px;
  border:1px solid #b7efc5;
  border-radius:16px;
  background:linear-gradient(135deg,#ecfdf3 0%,#f7fff9 100%);
  color:#14532d;
  box-shadow:0 12px 34px rgba(22,101,52,.08);
}

body.planning-page .planning-result-box strong{
  font-size:17px;
  font-weight:950;
}

body.planning-page .planning-result-box span{
  display:block;
  color:#166534;
  font-size:13px;
  font-weight:800;
  line-height:1.35;
}

/* Settings hub refresh */
body.settings-page .topbar p{
  display:none;
}

.settings-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:end;
  margin-bottom:16px;
  padding:18px;
  border:1px solid rgba(214,224,236,.9);
  border-radius:20px;
  background:
    radial-gradient(circle at 14% 0%, rgba(22,119,255,.16), transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,248,255,.92));
  box-shadow:0 18px 50px rgba(15,23,42,.08);
}

.settings-hero span,
.settings-action-card span{
  color:#1677ff;
  font-size:12px;
  font-weight:950;
  letter-spacing:0;
  text-transform:uppercase;
}

.settings-hero strong{
  display:block;
  margin-top:4px;
  color:#111827;
  font-size:30px;
  font-weight:950;
  line-height:1.05;
}

.settings-hero em{
  display:block;
  margin-top:7px;
  color:#667085;
  font-style:normal;
  font-weight:800;
}

.settings-hero aside{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.settings-hero aside a{
  padding:9px 12px;
  border:1px solid rgba(22,119,255,.16);
  border-radius:999px;
  background:#fff;
  color:#0b63ce;
  font-size:12px;
  font-weight:950;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}

.settings-command-center{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}

.settings-action-card{
  display:flex;
  min-height:154px;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  padding:16px;
  border:1px solid rgba(214,224,236,.9);
  border-radius:18px;
  background:rgba(255,255,255,.95);
  box-shadow:0 14px 36px rgba(15,23,42,.07);
}

.settings-action-card.primary{
  border-color:rgba(22,119,255,.22);
  background:linear-gradient(135deg,#f8fbff,#edf6ff);
}

.settings-action-card strong{
  color:#111827;
  font-size:18px;
  font-weight:950;
}

.settings-action-card em{
  flex:1;
  color:#667085;
  font-size:13px;
  font-style:normal;
  font-weight:750;
  line-height:1.35;
}

.settings-action-card .primary-button,
.settings-action-card .secondary-button{
  width:100%;
  justify-content:center;
}

.subscription-readonly{
  margin:14px;
}

.settings-danger-panel{
  border-color:rgba(239,68,68,.2) !important;
}

.settings-danger-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:14px;
}

.settings-control-panel .settings-control-center{
  margin:0 16px 16px;
  box-shadow:none;
}

.settings-control-panel > summary b{
  background:#ffedd5;
  color:#c2410c;
}

.settings-locked-form input:disabled,
.settings-locked-form select:disabled,
.settings-locked-form textarea:disabled{
  border-color:rgba(148,163,184,.22);
  background:#f8fafc;
  color:#64748b;
  -webkit-text-fill-color:#64748b;
  cursor:not-allowed;
}

.settings-locked-form .check-row{
  opacity:.72;
}

@media (max-width:1000px){
  .settings-command-center{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:760px){
  .settings-hero{
    grid-template-columns:1fr;
    gap:12px;
    padding:15px;
    border-radius:18px;
  }

  .settings-hero strong{
    font-size:25px;
  }

  .settings-hero aside{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    justify-content:stretch;
    gap:6px;
  }

  .settings-hero aside a{
    min-width:0;
    padding:8px 4px;
    text-align:center;
    font-size:10px;
  }

  .settings-control-panel .settings-control-center{
    margin:0 10px 10px;
  }

  .settings-command-center{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .settings-action-card{
    min-height:142px;
    padding:12px;
    border-radius:15px;
  }

  .settings-action-card strong{
    font-size:15px;
  }

  .settings-action-card em{
    font-size:12px;
  }

  .settings-action-card .primary-button,
  .settings-action-card .secondary-button{
    min-height:36px;
    padding:0 8px;
    font-size:12px;
  }
}

/* Desktop sidebar refresh */
@media (min-width:901px){
  .shell{
    grid-template-columns:284px minmax(0,1fr);
  }

  .sidebar,
  body.private-page .sidebar,
  body.planning-page .sidebar,
  body.business-page .sidebar{
    position:sticky;
    top:0;
    display:flex;
    min-height:100vh;
    height:100vh;
    max-height:none;
    padding:16px;
    gap:14px;
    border-right:1px solid rgba(15,23,42,.10);
    background:
      radial-gradient(circle at 20% 0%, rgba(0,122,255,.24), transparent 34%),
      linear-gradient(180deg,#071832 0%,#082b56 58%,#06162b 100%);
    color:#fff;
    box-shadow:18px 0 45px rgba(15,23,42,.10);
    overflow:hidden;
  }

  .sidebar::after{
    content:"";
    position:absolute;
    inset:auto -60px -120px 40px;
    height:220px;
    border-radius:999px;
    background:rgba(255,140,0,.16);
    filter:blur(45px);
    pointer-events:none;
  }

  .sidebar .window-dots{
    flex:0 0 auto;
    opacity:.9;
  }

  .sidebar .brand,
  body.private-page .brand,
  body.planning-page .brand,
  body.business-page .brand{
    position:relative;
    z-index:1;
    display:flex;
    min-height:78px;
    height:auto;
    padding:16px 14px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:18px;
    background:rgba(255,255,255,.08);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 18px 45px rgba(0,0,0,.14);
    backdrop-filter:blur(18px) saturate(1.2);
  }

  .sidebar .brand-logo-image{
    display:block !important;
    width:100%;
    max-width:206px;
    height:auto;
    object-fit:contain;
    object-position:left center;
  }

  .sidebar .brand-mark,
  .sidebar .brand-text,
  body.private-page .brand-mark,
  body.private-page .brand-text,
  body.planning-page .brand-mark,
  body.planning-page .brand-text,
  body.business-page .brand-mark,
  body.business-page .brand-text{
    display:none;
  }

  .nav-modern{
    position:relative;
    z-index:1;
    display:flex;
    flex:1;
    gap:13px;
    padding:4px 0 0;
    overflow:auto;
  }

  .nav-modern .nav-group{
    display:grid;
    gap:5px;
  }

  .nav-modern .nav-group + .nav-group{
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.10);
  }

  .nav-modern .nav-group-label{
    padding:0 12px 3px;
    color:rgba(226,239,255,.60);
    font-size:11px;
    font-weight:900;
    letter-spacing:0;
    text-transform:uppercase;
  }

  .nav-modern a{
    min-height:42px;
    padding:0 12px;
    border:1px solid transparent;
    border-radius:14px;
    color:rgba(241,247,255,.78);
    font-size:14px;
    font-weight:760;
    text-decoration:none;
  }

  .nav-modern a svg{
    width:18px;
    height:18px;
    color:rgba(191,219,254,.92);
  }

  .nav-modern a:hover{
    color:#fff;
    border-color:rgba(255,255,255,.12);
    background:rgba(255,255,255,.08);
  }

  .nav-modern a.active{
    color:#071832;
    border-color:rgba(255,255,255,.65);
    background:linear-gradient(135deg,#ffffff 0%,#e7f1ff 100%);
    box-shadow:0 14px 26px rgba(0,0,0,.16);
  }

  .nav-modern a.active svg{
    color:#0b74ff;
  }

  .nav-modern .nav-badge{
    min-width:22px;
    height:22px;
    line-height:22px;
    background:#ff7a1a;
    box-shadow:0 10px 22px rgba(255,122,26,.28);
  }

  .sidebar-footer{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:10px;
    align-items:center;
    padding:12px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:17px;
    background:rgba(255,255,255,.08);
    color:#fff;
  }

  .sidebar-user-badge{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:14px;
    background:linear-gradient(135deg,#ff9f0a,#1677ff);
    color:#fff;
    font-weight:950;
    box-shadow:0 12px 28px rgba(0,0,0,.22);
  }

  .sidebar-footer strong,
  .sidebar-footer span{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .sidebar-footer strong{
    color:#fff;
    font-size:13px;
    font-weight:900;
  }

  .sidebar-footer span{
    margin-top:2px;
    color:rgba(226,239,255,.68);
    font-size:12px;
    font-weight:700;
  }
}

/* Mobile header lock */
@media (max-width:900px){
  .shell{
    display:block !important;
  }

  .sidebar,
  body.private-page .sidebar,
  body.planning-page .sidebar,
  body.business-page .sidebar,
  body.chat-page .sidebar,
  body.settings-page .sidebar,
  body.administration-page .sidebar,
  body.dashboard-page .sidebar,
  body.dashboard-pro-page .sidebar{
    display:flex !important;
    min-height:58px !important;
    height:58px !important;
    max-height:58px !important;
    padding:8px 12px !important;
    align-items:center !important;
    justify-content:center !important;
    border-right:0 !important;
    border-bottom:1px solid rgba(15,23,42,.08) !important;
    background:rgba(235,248,252,.78) !important;
    box-shadow:none !important;
    overflow:hidden !important;
  }

  .sidebar::after,
  .window-dots,
  .sidebar .nav,
  .sidebar-footer,
  .sidebar .brand-mark,
  .sidebar .brand-text{
    display:none !important;
  }

  .sidebar .brand,
  body.private-page .brand,
  body.planning-page .brand,
  body.business-page .brand,
  body.chat-page .brand,
  body.settings-page .brand,
  body.administration-page .brand,
  body.dashboard-page .brand,
  body.dashboard-pro-page .brand{
    display:flex !important;
    width:100% !important;
    min-height:42px !important;
    height:42px !important;
    padding:0 !important;
    align-items:center !important;
    justify-content:center !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  .sidebar .brand-logo-image{
    display:block !important;
    width:auto !important;
    height:38px !important;
    max-width:76vw !important;
    object-fit:contain !important;
    object-position:center center !important;
  }
}

/* Private customer card refresh */
body.private-customer-page .toolbar{
  margin-bottom:12px;
}

.customer-edit-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  margin-bottom:14px;
  padding:20px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,149,0,.18), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(0,122,255,.14), transparent 32%),
    rgba(255,255,255,.92);
  box-shadow:0 18px 45px rgba(15,23,42,.07);
}

.customer-edit-hero span,
.customer-edit-hero em{
  display:block;
  color:#64748b;
  font-size:13px;
  font-style:normal;
  font-weight:800;
}

.customer-edit-hero > div:first-child > span{
  display:inline-flex;
  min-height:26px;
  align-items:center;
  padding:0 10px;
  border-radius:999px;
  color:#006dff;
  background:#e8f2ff;
  font-size:12px;
  font-weight:950;
}

.customer-edit-hero strong{
  display:block;
  margin:10px 0 4px;
  color:#071936;
  font-size:30px;
  line-height:1.05;
  font-weight:950;
}

.customer-edit-badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
  max-width:310px;
}

.customer-edit-badges span{
  display:inline-flex;
  min-height:32px;
  align-items:center;
  padding:0 10px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:999px;
  background:#fff;
  color:#475467;
  font-size:12px;
  font-weight:950;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}

.customer-edit-badges span.is-active{
  color:#027a48;
  background:#dcfae6;
}

.customer-edit-badges span.is-inactive{
  color:#b42318;
  background:#fee4e2;
}

.customer-payment-feedback{
  margin-bottom:12px;
}

.customer-payment-feedback .success-box{
  display:grid;
  gap:4px;
}

.customer-payment-feedback .success-box span{
  color:#475467;
  font-size:13px;
  font-weight:800;
}

.customer-fold{
  padding:0 !important;
  border:1px solid rgba(15,23,42,.08) !important;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}

.customer-fold + .customer-fold{
  margin-top:-6px;
}

.customer-fold > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:60px;
  padding:13px 16px;
  cursor:pointer;
  list-style:none;
  background:#f8fbff;
}

.customer-fold > summary::-webkit-details-marker{
  display:none;
}

.customer-fold > summary::after{
  content:"";
  flex:0 0 9px;
  width:9px;
  height:9px;
  border-right:2px solid #64748b;
  border-bottom:2px solid #64748b;
  transform:rotate(45deg);
  transition:transform .16s ease;
}

.customer-fold[open] > summary::after{
  transform:rotate(225deg);
}

.customer-fold > summary strong,
.customer-fold > summary span{
  display:block;
  min-width:0;
}

.customer-fold > summary strong{
  color:#071936;
  font-size:15px;
  font-weight:950;
}

.customer-fold > summary span{
  margin-top:2px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}

.customer-fold > .form-grid,
.customer-fold > label,
.customer-status-actions{
  margin:0;
  padding:16px;
}

.customer-danger-zone > summary{
  background:#fff7f6;
}

.customer-status-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.customer-status-actions p{
  margin:0;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

@media (max-width:900px){
  body.private-customer-page .main{
    padding-bottom:104px !important;
  }

  .customer-edit-hero{
    grid-template-columns:1fr;
    gap:12px;
    margin-bottom:10px;
    padding:15px;
    border-radius:17px;
  }

  .customer-edit-hero strong{
    margin-top:8px;
    font-size:25px;
  }

  .customer-edit-badges{
    justify-content:flex-start;
    max-width:none;
  }

  .customer-edit-badges span{
    min-height:28px;
    padding:0 8px;
    font-size:11px;
  }

  .customer-fold{
    border-radius:14px;
  }

  .customer-fold > summary{
    min-height:54px;
    padding:11px 13px;
  }

  .customer-fold > .form-grid,
  .customer-fold > label,
  .customer-status-actions{
    padding:12px;
  }

  .customer-sticky-actions{
    position:fixed;
    right:12px;
    bottom:86px;
    left:12px;
    z-index:50;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    padding:8px;
    border:1px solid rgba(15,23,42,.10);
    border-radius:18px;
    background:rgba(255,255,255,.88);
    box-shadow:0 16px 36px rgba(15,23,42,.14);
    backdrop-filter:blur(20px) saturate(1.2);
  }

  .customer-sticky-actions .primary-button,
  .customer-sticky-actions .secondary-button{
    width:100%;
  }

  .customer-status-actions{
    align-items:stretch;
    flex-direction:column;
  }
}

/* Hard lock the mobile app menu to the viewport */
@media (max-width:900px){
  body{
    padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-app-nav,
  body .mobile-app-nav{
    position:fixed !important;
    right:12px !important;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left:12px !important;
    z-index:9999 !important;
    display:grid !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    transform:none !important;
    will-change:auto !important;
    backface-visibility:hidden;
  }

  .mobile-app-nav.worker-nav{
    left:12px !important;
    right:12px !important;
    transform:none !important;
  }

  .main{
    padding-bottom:calc(116px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.private-customer-page .main{
    padding-bottom:calc(166px + env(safe-area-inset-bottom, 0px)) !important;
  }

body.private-customer-page .customer-sticky-actions{
    bottom:calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Private cash route */
.street-icon-link.is-cash{
  background:#ecfdf5;
  color:#047857;
  border-color:#bbf7d0;
}

.cash-route-page .topbar{
  margin-bottom:12px;
}

.cash-route-hero{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  padding:18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:24px;
  background:linear-gradient(135deg,#f0fdf4 0%,#eff6ff 58%,#fff7ed 100%);
  box-shadow:0 18px 46px rgba(15,23,42,.08);
}

.cash-route-hero > div span{
  display:block;
  color:#047857;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.cash-route-hero h2{
  margin:2px 0;
  font-size:clamp(26px,4vw,42px);
  color:#0f172a;
}

.cash-route-hero p{
  margin:0;
  color:#64748b;
  font-weight:800;
}

.cash-route-hero > strong{
  color:#047857;
  font-size:clamp(24px,4vw,38px);
  white-space:nowrap;
}

.cash-route-meter{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:14px 0;
}

.cash-route-meter > div{
  padding:14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
}

.cash-route-meter span{
  display:block;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

.cash-route-meter strong{
  display:block;
  margin-top:4px;
  color:#0f172a;
  font-size:24px;
}

.cash-route-list{
  display:grid;
  gap:12px;
}

.cash-route-row{
  overflow:hidden;
  border:1px solid rgba(148,163,184,.25);
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 36px rgba(15,23,42,.06);
}

.cash-route-row.status-not-home{
  border-color:#fed7aa;
}

.cash-route-row.status-later{
  border-color:#dbeafe;
}

.cash-route-main{
  display:grid;
  grid-template-columns:96px 1fr auto;
  gap:14px;
  align-items:center;
  padding:16px;
}

.cash-route-address strong{
  display:block;
  color:#0f172a;
  font-size:32px;
  line-height:1;
}

.cash-route-address span{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-weight:900;
}

.cash-route-info > div{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.cash-route-info b{
  color:#1d4ed8;
  text-transform:uppercase;
}

.cash-route-info em{
  padding:4px 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-style:normal;
  font-size:12px;
  font-weight:900;
}

.status-not-home .cash-route-info em{
  background:#ffedd5;
  color:#c2410c;
}

.status-later .cash-route-info em{
  background:#dbeafe;
  color:#1d4ed8;
}

.cash-route-info p{
  margin:7px 0 0;
  color:#334155;
  font-weight:800;
}

.cash-route-contact{
  display:inline-flex;
  gap:6px;
  align-items:center;
  margin-top:8px;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

.cash-route-amount{
  color:#047857;
  font-size:24px;
  font-weight:950;
  white-space:nowrap;
}

.cash-route-actions{
  padding:0 16px 16px;
}

.cash-route-actions form{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
}

.cash-action{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  min-height:44px;
  border:0;
  border-radius:14px;
  font:inherit;
  font-weight:950;
  cursor:pointer;
}

.cash-action.paid{
  background:#16a34a;
  color:#fff;
}

.cash-action.muted{
  background:#fff7ed;
  color:#c2410c;
}

.cash-action.ghost{
  background:#eff6ff;
  color:#1d4ed8;
}

@media (max-width:900px){
  .cash-route-page .main{
    padding-bottom:calc(126px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .cash-route-page .topbar{
    display:none;
  }

  .cash-route-hero{
    grid-template-columns:1fr auto;
    gap:10px;
    padding:14px;
    border-radius:20px;
  }

  .cash-route-hero .secondary-button{
    grid-column:1 / -1;
    width:max-content;
    min-height:40px;
  }

  .cash-route-hero h2{
    font-size:28px;
  }

  .cash-route-hero > strong{
    font-size:24px;
  }

  .cash-route-meter{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }

  .cash-route-meter > div{
    padding:10px;
    border-radius:16px;
  }

  .cash-route-meter span{
    min-height:30px;
    font-size:11px;
  }

  .cash-route-meter strong{
    font-size:20px;
  }

  .cash-route-main{
    grid-template-columns:70px 1fr auto;
    gap:10px;
    padding:13px;
  }

  .cash-route-address strong{
    font-size:28px;
  }

  .cash-route-info p{
    font-size:14px;
  }

  .cash-route-contact{
    max-width:165px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .cash-route-amount{
    font-size:20px;
  }

  .cash-route-actions{
    padding:0 13px 13px;
  }

  .cash-action{
    min-height:42px;
    border-radius:13px;
    font-size:14px;
  }
}

@media (max-width:420px){
  .cash-route-main{
    grid-template-columns:58px 1fr;
  }

  .cash-route-amount{
    grid-column:2;
    justify-self:start;
    margin-top:-6px;
  }

  .cash-route-actions form{
    grid-template-columns:1fr 1fr;
  }

  .cash-action.paid{
    grid-column:1 / -1;
  }
}

/* Administration payment reminders */
.admin-reminder-panel{
  margin:16px 0;
  padding:18px;
  border:1px solid rgba(37,99,235,.14);
  border-radius:24px;
  background:linear-gradient(135deg,#eff6ff 0%,#f8fafc 58%,#fff7ed 100%);
  box-shadow:0 18px 46px rgba(15,23,42,.07);
}

.admin-reminder-head{
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:center;
}

.admin-reminder-head span{
  display:block;
  color:#2563eb;
  font-size:12px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.admin-reminder-head h2{
  margin:3px 0;
  color:#0f172a;
  font-size:28px;
}

.admin-reminder-head p{
  margin:0;
  color:#64748b;
  font-weight:750;
}

.admin-reminder-head > div:last-child{
  text-align:right;
}

.admin-reminder-head strong{
  display:block;
  color:#1d4ed8;
  font-size:34px;
  line-height:1;
}

.admin-reminder-head em{
  display:block;
  margin-top:6px;
  color:#0f172a;
  font-style:normal;
  font-weight:950;
}

.admin-reminder-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:16px;
}

.admin-reminder-actions label{
  display:inline-flex;
  gap:8px;
  align-items:center;
  color:#334155;
  font-weight:900;
}

.admin-reminder-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.admin-reminder-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:16px;
  background:rgba(255,255,255,.82);
}

.admin-reminder-row input{
  width:20px;
  height:20px;
}

.admin-reminder-row strong{
  display:block;
  color:#0f172a;
  font-size:16px;
}

.admin-reminder-row span{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

.admin-reminder-row b{
  color:#b45309;
  white-space:nowrap;
}

@media (max-width:900px){
  .admin-reminder-panel{
    padding:14px;
    border-radius:20px;
  }

  .admin-reminder-head{
    grid-template-columns:1fr;
  }

  .admin-reminder-head > div:last-child{
    display:flex;
    justify-content:space-between;
    align-items:end;
    text-align:left;
  }

  .admin-reminder-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .admin-reminder-actions .primary-button{
    width:100%;
    justify-content:center;
  }

  .admin-reminder-row{
    grid-template-columns:auto 1fr;
  }

  .admin-reminder-row b{
    grid-column:2;
  }
}
