/* Zelofy × Materialize integration
   Version-authoritative tokens come from the uploaded Materialize HTML package. */
:root {
  --green: #72e128;
  --green2: #666cff;
  --mint: #e8fadd;
  --soft: #f7f7f9;
  --ink: #3c4056;
  --muted: #a8aab4;
  --line: #e5e6e8;
  --red: #ff4d49;
  --orange: #fdb528;
  --blue: #26c6f9;
  --shadow: 0 .25rem .875rem rgba(38, 43, 67, .16);
  --zc-primary: #666cff;
  --zc-primary-soft: #e7e7ff;
  --zc-success: #72e128;
  --zc-success-soft: #e8fadd;
  --zc-info: #26c6f9;
  --zc-info-soft: #dcf6fe;
  --zc-warning: #fdb528;
  --zc-warning-soft: #fff3dd;
  --zc-danger: #ff4d49;
  --zc-danger-soft: #ffe3e2;
  --zc-paper: #fff;
  --zc-body: #f7f7f9;
  --zc-text: #676a7b;
  --zc-heading: #3c4056;
  --zc-secondary: #a8aab4;
  --zc-border: #e5e6e8;
}

html { font-size: 16px; }
body.zc-app {
  min-height: 100vh;
  margin: 0;
  color: var(--zc-text);
  background: var(--zc-body);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.375;
  letter-spacing: .15px;
}
body.zc-app h1,
body.zc-app h2,
body.zc-app h3,
body.zc-app h4,
body.zc-app h5,
body.zc-app h6 { color: var(--zc-heading); font-weight: 500; }
body.zc-app strong,
body.zc-app b { font-weight: 600; }
body.zc-app button,
body.zc-app input,
body.zc-app select,
body.zc-app textarea { font: inherit; letter-spacing: inherit; }
body.zc-app .hidden { display: none !important; }

/* Authentication stays independent of the admin shell. */
body.zc-app .auth-screen { background: var(--zc-body); }
body.zc-app .auth-card {
  border: 0;
  border-radius: .625rem;
  background: var(--zc-paper);
  box-shadow: var(--bs-box-shadow-lg);
}
body.zc-app .auth-logo,
body.zc-app .brand-mark {
  border-radius: .5rem;
  background: var(--zc-primary);
  box-shadow: 0 .125rem .375rem rgba(38, 43, 67, .14);
}

/* Product shell */
body.zc-app .shell.zc-layout {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--zc-body);
}
.zc-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 260px;
  display: flex;
  flex-direction: column;
  background: var(--zc-body);
  border-right: 1px solid var(--zc-border);
  transition: width .3s ease, transform .3s ease;
}
.zc-sidebar-brand {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1.25rem;
}
.zc-sidebar-brand .brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}
.zc-sidebar-brand > span:nth-child(2) { min-width: 0; }
.zc-sidebar-brand strong,
.zc-sidebar-brand small { display: block; }
.zc-sidebar-brand strong { color: var(--zc-heading); font-size: 1.25rem; font-weight: 600; line-height: 1.15; }
.zc-sidebar-brand small { margin-top: .125rem; color: var(--zc-secondary); font-size: .6875rem; letter-spacing: .04em; }
.zc-sidebar-close {
  display: none;
  margin-left: auto;
  padding: .375rem;
  border: 0;
  background: transparent;
  color: var(--zc-text);
  font-size: 1.375rem;
}
.zc-sidebar-collapse {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: var(--zc-secondary);
  font-size: 1.125rem;
}
.zc-sidebar-collapse:hover { color: var(--zc-primary); background: var(--zc-primary-soft); }
.zc-nav { flex: 1; overflow-y: auto; padding: .5rem 0 1rem; }
.zc-nav-label {
  display: block;
  padding: .75rem 1.5rem .375rem;
  color: var(--zc-secondary);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.zc-nav-link {
  width: calc(100% - 1.5rem);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .125rem .75rem;
  padding: .4375rem .75rem;
  border: 0;
  border-radius: .375rem;
  background: transparent;
  color: var(--zc-text);
  font-size: .9375rem;
  font-weight: 500;
  text-align: left;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.zc-nav-link:hover { color: var(--zc-heading); background: #e9e9ec; }
.zc-nav-link[data-zc-selected="true"] {
  color: #fff;
  background: var(--zc-primary);
  box-shadow: 0 .125rem .375rem rgba(102, 108, 255, .32);
}
.zc-nav-link > .ri:first-child { width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; font-size: 1.375rem; }
.zc-nav-link > span { min-width: 0; flex: 1; }
.zc-nav-link > b {
  min-width: 1.375rem;
  display: none;
  padding: .125rem .35rem;
  border-radius: 50rem;
  background: var(--zc-danger);
  color: #fff;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}
.zc-nav-link > b.has-value { display: inline-block; }
.zc-nav-external { flex: 0 0 auto; color: var(--zc-secondary); font-size: .875rem; }
.zc-sidebar-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .75rem;
  padding: .75rem;
  border-radius: .5rem;
  background: var(--zc-paper);
  box-shadow: var(--bs-box-shadow-sm);
}
.zc-sidebar-footer strong,
.zc-sidebar-footer small { display: block; }
.zc-sidebar-footer strong { color: var(--zc-heading); font-size: .75rem; font-weight: 500; }
.zc-sidebar-footer small { margin-top: .125rem; color: var(--zc-secondary); font-size: .6875rem; }
.zc-live-dot {
  width: .625rem;
  height: .625rem;
  flex: 0 0 .625rem;
  border-radius: 50%;
  background: var(--zc-success);
  box-shadow: 0 0 0 .25rem var(--zc-success-soft);
}
.zc-main { min-width: 0; min-height: 100vh; margin-left: 260px; transition: margin-left .3s ease; }
.zc-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(38, 43, 67, .08);
  background: rgba(247, 247, 249, .92);
  -webkit-backdrop-filter: blur(7.5px);
  backdrop-filter: blur(7.5px);
}
.zc-menu-toggle { display: none !important; }
.zc-page-heading { min-width: 0; }
.zc-page-heading small { display: block; color: var(--zc-secondary); font-size: .6875rem; }
.zc-page-heading h1 { margin: .125rem 0 0; font-size: 1.125rem; font-weight: 500; line-height: 1.15; }
.zc-navbar .top-actions { gap: .5rem; }
.zc-content { width: 100%; padding: 1.5rem; }
.zc-page { min-width: 0; }
.zc-page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.zc-page-intro h2 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.zc-page-intro p { margin: .375rem 0 0; color: var(--zc-text); font-size: .8125rem; }
.zc-sync-chip,
.zc-card-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .75rem;
  border-radius: 50rem;
  background: var(--zc-success-soft);
  color: var(--bs-success-text-emphasis);
  font-size: .75rem;
  font-weight: 500;
}
.zc-sync-chip i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--zc-success); }

/* Materialize component normalization for the legacy behavior layer. */
body.zc-app .button,
body.zc-app .icon-button {
  border: 1px solid var(--zc-border);
  border-radius: .5rem;
  background: var(--zc-paper);
  color: var(--zc-text);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .4px;
  box-shadow: 0 .125rem .375rem rgba(38, 43, 67, .08);
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
body.zc-app .button { padding: .625rem 1.375rem; }
body.zc-app .button.small { padding: .4415rem .969rem; font-size: .8125rem; }
body.zc-app .button:hover,
body.zc-app .icon-button:hover { border-color: #c3c6ff; color: var(--zc-primary); background: var(--zc-primary-soft); }
body.zc-app .button.primary { border-color: var(--zc-primary); background: var(--zc-primary); color: #fff; box-shadow: 0 .125rem .375rem rgba(102, 108, 255, .3); }
body.zc-app .button.primary:hover { border-color: #5c61e6; background: #5c61e6; color: #fff; }
body.zc-app .button.danger { border-color: #ffbab8; background: var(--zc-danger-soft); color: var(--zc-danger); }
body.zc-app .push-notifications.enabled { border-color: #c8f3ab; background: var(--zc-success-soft); color: var(--bs-success-text-emphasis); }
body.zc-app .push-notifications[data-push-state="install"] { border-color: #fee2ab; background: var(--zc-warning-soft); color: var(--bs-warning-text-emphasis); }
body.zc-app .icon-button { width: 38px; height: 38px; }
body.zc-app .icon-button .ri { font-size: 1.25rem; }
body.zc-app .button .ri { margin-right: .25rem; font-size: 1rem; vertical-align: -.15em; }
body.zc-app .button.is-loading::before { border-color: currentColor transparent currentColor currentColor; }

body.zc-app .panel,
body.zc-app .stat {
  border: 0;
  border-radius: .625rem;
  background: var(--zc-paper);
  box-shadow: var(--bs-box-shadow);
}
body.zc-app .panel { overflow: hidden; }
body.zc-app .panel-head {
  min-height: 68px;
  padding: 1.25rem;
  border-bottom: 1px solid var(--zc-border);
}
body.zc-app .panel-head h2 { margin: 0; font-size: 1.125rem; font-weight: 500; }
body.zc-app .panel-head p { margin: .25rem 0 0; color: var(--zc-secondary); font-size: .8125rem; }

/* KPIs and analytics */
body.zc-app .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
body.zc-app .stat {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}
.zc-stat-icon,
.zc-tool-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  font-size: 1.375rem;
}
.zc-stat-icon.primary,
.zc-tool-icon.primary { color: var(--zc-primary); background: var(--zc-primary-soft); }
.zc-stat-icon.warning,
.zc-tool-icon.warning { color: var(--bs-warning-text-emphasis); background: var(--zc-warning-soft); }
.zc-stat-icon.info,
.zc-tool-icon.info { color: var(--bs-info-text-emphasis); background: var(--zc-info-soft); }
.zc-stat-icon.success,
.zc-tool-icon.success { color: var(--bs-success-text-emphasis); background: var(--zc-success-soft); }
body.zc-app .stat > span:last-child { min-width: 0; }
body.zc-app .stat small,
body.zc-app .stat strong,
body.zc-app .stat em { display: block; }
body.zc-app .stat small { color: var(--zc-text); font-size: .8125rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
body.zc-app .stat strong { margin-top: .125rem; color: var(--zc-heading); font-size: 1.75rem; font-weight: 500; line-height: 1.15; }
body.zc-app .stat em { margin-top: .25rem; overflow: hidden; color: var(--zc-secondary); font-size: .6875rem; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
body.zc-app .stat.urgent strong,
body.zc-app .stat.progressing strong,
body.zc-app .stat.done strong { color: var(--zc-heading); }
.zc-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr); gap: 1.5rem; }
.zc-dashboard-grid .attention-panel { grid-row: span 2; }
.zc-performance-card,
.zc-team-snapshot { min-width: 0; }
.zc-week-chart { height: 250px; display: flex; align-items: end; gap: .625rem; padding: 1.5rem 1.25rem .75rem; }
.zc-chart-day { min-width: 0; flex: 1; display: grid; grid-template-rows: 1fr auto; gap: .625rem; height: 100%; text-align: center; }
.zc-chart-bars { min-height: 0; display: flex; align-items: end; justify-content: center; gap: .25rem; }
.zc-chart-bar { width: min(18px, 42%); min-height: 3px; border-radius: .25rem .25rem 0 0; transition: height .35s ease; }
.zc-chart-bar.total { background: var(--zc-primary); }
.zc-chart-bar.urgent { background: var(--zc-warning); }
.zc-chart-day label { overflow: hidden; color: var(--zc-secondary); font-size: .6875rem; font-weight: 500; text-transform: capitalize; white-space: nowrap; text-overflow: ellipsis; }
.zc-chart-day.today label { color: var(--zc-primary); }
.zc-chart-legend { display: flex; gap: 1rem; padding: 0 1.25rem 1.25rem; color: var(--zc-secondary); font-size: .6875rem; }
.zc-chart-legend span { display: inline-flex; align-items: center; gap: .375rem; }
.zc-chart-legend i { width: .5rem; height: .5rem; border-radius: 50%; }
.zc-chart-legend i.total { background: var(--zc-primary); }
.zc-chart-legend i.urgent { background: var(--zc-warning); }
.zc-card-badge { background: var(--zc-primary-soft); color: var(--zc-primary); }
.zc-donut-wrap { display: grid; grid-template-columns: 144px minmax(0, 1fr); align-items: center; gap: 1.5rem; padding: 1.25rem; }
.zc-donut { --zc-progress: 0deg; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--zc-primary) var(--zc-progress), var(--zc-primary-soft) 0); }
.zc-donut::before { content: ""; width: 94px; height: 94px; grid-area: 1/1; border-radius: 50%; background: var(--zc-paper); }
.zc-donut > span { z-index: 1; grid-area: 1/1; text-align: center; }
.zc-donut strong,
.zc-donut small { display: block; }
.zc-donut strong { color: var(--zc-heading); font-size: 1.5rem; font-weight: 500; }
.zc-donut small { color: var(--zc-secondary); font-size: .6875rem; }
.zc-donut-copy { display: grid; gap: .75rem; }
.zc-breakdown-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .625rem; }
.zc-breakdown-row i { width: .625rem; height: .625rem; border-radius: .1875rem; }
.zc-breakdown-row span { color: var(--zc-text); font-size: .8125rem; }
.zc-breakdown-row strong { color: var(--zc-heading); font-size: .8125rem; font-weight: 500; }
.zc-breakdown-row.pending i { background: var(--zc-primary-soft); border: 1px solid #c3c6ff; }
.zc-breakdown-row.progress i { background: var(--zc-info); }
.zc-breakdown-row.done i { background: var(--zc-primary); }
.zc-team-snapshot > div { display: grid; }
.zc-snapshot-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .875rem 1.25rem; border-bottom: 1px solid var(--zc-border); }
.zc-snapshot-row:last-child { border-bottom: 0; }
.zc-snapshot-row .avatar { width: 36px; height: 36px; border-radius: .5rem; background: var(--zc-primary-soft); color: var(--zc-primary); font-size: .75rem; }
.zc-snapshot-row strong,
.zc-snapshot-row small { display: block; }
.zc-snapshot-row strong { color: var(--zc-heading); font-size: .8125rem; font-weight: 500; }
.zc-snapshot-row small { margin-top: .125rem; color: var(--zc-secondary); font-size: .6875rem; }
.zc-snapshot-row > em { padding: .25rem .5rem; border-radius: .25rem; background: #e8e9ed; color: #6d788d; font-size: .6875rem; font-style: normal; font-weight: 500; }
.zc-snapshot-row > em { max-width: 10rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zc-snapshot-row > em.working { background: var(--zc-info-soft); color: var(--bs-info-text-emphasis); }
.zc-snapshot-row > em.available { background: var(--zc-success-soft); color: var(--bs-success-text-emphasis); }
.zc-snapshot-row > em.off { background: var(--zc-warning-soft); color: var(--bs-warning-text-emphasis); }

/* Agenda */
.zc-agenda-panel { min-width: 0; }
body.zc-app .schedule-wrap,
body.zc-app .month-view { scrollbar-color: #bdbfc6 transparent; }
body.zc-app .schedule { grid-template-columns: repeat(7, minmax(210px, 1fr)); min-width: 1470px; }
body.zc-app .day-column { border-color: var(--zc-border); background: #fafafa; }
body.zc-app .day-head { padding: .875rem .75rem; border-color: var(--zc-border); background: #f5f5f7; }
body.zc-app .day-head.today { background: var(--zc-primary-soft); }
body.zc-app .day-head strong { color: var(--zc-heading); font-size: .8125rem; font-weight: 500; }
body.zc-app .day-head small { color: var(--zc-secondary); font-size: .6875rem; }
body.zc-app .day-body { padding: .75rem; }
body.zc-app .clean-task {
  margin-bottom: .75rem;
  padding: .75rem;
  border: 1px solid var(--zc-border);
  border-radius: .5rem;
  background: var(--zc-paper);
  box-shadow: 0 .125rem .375rem rgba(38, 43, 67, .08);
}
body.zc-app .clean-task.turnover { border-color: #fee2ab; background: var(--zc-warning-soft); }
body.zc-app .clean-task:hover { border-color: #c3c6ff; box-shadow: var(--bs-box-shadow-sm); }
body.zc-app .priority { border-radius: .375rem; background: var(--zc-primary-soft); color: var(--zc-primary); font-weight: 600; }
body.zc-app .turnover .priority { background: #fff; color: var(--bs-warning-text-emphasis); }
body.zc-app .task-image { border-radius: .375rem; }
body.zc-app .task-copy strong { color: var(--zc-heading); font-size: .8125rem; font-weight: 500; }
body.zc-app .task-copy small { color: var(--zc-secondary); font-size: .6875rem; }
body.zc-app .pill { padding: .25rem .5rem; border-radius: .1875rem; background: #e8e9ed; color: #6d788d; font-size: .6875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.zc-app .pill.turnover { background: var(--zc-warning-soft); color: var(--bs-warning-text-emphasis); }
body.zc-app .pill.in_progress { background: var(--zc-info-soft); color: var(--bs-info-text-emphasis); }
body.zc-app .pill.cleaned { background: var(--zc-success-soft); color: var(--bs-success-text-emphasis); }
body.zc-app .pill.failed,
body.zc-app .pill.schedule-risk { background: var(--zc-danger-soft); color: var(--zc-danger); }
body.zc-app .pill.custom,
body.zc-app .pill.estimated-start { background: var(--zc-primary-soft); color: var(--zc-primary); }
body.zc-app .task-select,
body.zc-app .field input,
body.zc-app .field select,
body.zc-app .field textarea {
  border: 1px solid #d4d5d9;
  border-radius: .5rem;
  background: transparent;
  color: var(--zc-heading);
  font-size: .8125rem;
  font-weight: 400;
  outline: none;
}
body.zc-app .field input,
body.zc-app .field select,
body.zc-app .field textarea { padding: .75rem 1rem; }
body.zc-app .task-select { padding: .625rem .75rem; }
body.zc-app .task-select:focus,
body.zc-app .field input:focus,
body.zc-app .field select:focus,
body.zc-app .field textarea:focus { border-color: var(--zc-primary); box-shadow: 0 0 0 1px var(--zc-primary); }
body.zc-app .field span { color: var(--zc-text); font-size: .8125rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.zc-app .task-footer { color: var(--zc-secondary); font-size: .6875rem; }

/* Team page */
body.zc-app .cleaners-panel { order: initial; }
body.zc-app .cleaner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.25rem; overflow: visible; }
body.zc-app .cleaner-list .cleaner-card {
  width: 100%;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--zc-border) !important;
  border-radius: .625rem !important;
  background: var(--zc-paper);
  box-shadow: none;
}
body.zc-app .cleaner-list .cleaner-card:hover { border-color: #c3c6ff !important; background: var(--zc-paper); box-shadow: var(--bs-box-shadow-sm); }
body.zc-app .avatar { border-radius: .5rem; background: var(--zc-primary-soft); color: var(--zc-primary); font-weight: 600; }
body.zc-app .cleaner-card strong { color: var(--zc-heading); font-weight: 500; }
body.zc-app .cleaner-card small { color: var(--zc-secondary); }
body.zc-app .cleaner-current { border-color: var(--zc-border); }
body.zc-app .cleaner-current .team-progress-title strong,
body.zc-app .cleaner-current .team-progress-title b { color: var(--zc-primary); }
body.zc-app .team-progress-track i { background: var(--zc-primary); }
body.zc-app .status-dot.active { background: var(--zc-success); box-shadow: 0 0 0 .25rem var(--zc-success-soft); }

/* Operations */
.zc-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.zc-tool-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 0;
  border-radius: .625rem;
  background: var(--zc-paper);
  color: var(--zc-text);
  box-shadow: var(--bs-box-shadow);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.zc-tool-card:hover { transform: translateY(-2px); box-shadow: var(--bs-box-shadow-lg); }
.zc-tool-card > span:nth-child(2) { min-width: 0; }
.zc-tool-card strong,
.zc-tool-card small { display: block; }
.zc-tool-card strong { color: var(--zc-heading); font-size: .9375rem; font-weight: 500; }
.zc-tool-card small { margin-top: .25rem; color: var(--zc-secondary); font-size: .75rem; line-height: 1.35; }
.zc-tool-card > .ri { color: var(--zc-secondary); font-size: 1.25rem; }
.zc-operations-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.zc-building-insights,
.zc-coverage-insights { padding: .5rem 1.25rem 1.25rem; }
.zc-insight-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--zc-border); }
.zc-insight-row:last-child { border-bottom: 0; }
.zc-insight-row strong,
.zc-insight-row small { display: block; }
.zc-insight-row strong { color: var(--zc-heading); font-size: .8125rem; font-weight: 500; }
.zc-insight-row small { margin-top: .125rem; color: var(--zc-secondary); font-size: .6875rem; }
.zc-insight-row > b { align-self: center; color: var(--zc-primary); font-size: .8125rem; font-weight: 500; }
.zc-empty-state { padding: 1.25rem; color: var(--zc-secondary); font-size: .8125rem; text-align: center; }

/* Attention and overlays */
body.zc-app .attention-item { border-color: var(--zc-border); }
body.zc-app .attention-item:hover { background: #fafafa; }
body.zc-app .attention-total { background: var(--zc-danger-soft); color: var(--zc-danger); }
body.zc-app .attention-head { background: var(--zc-paper); }
body.zc-app .attention-beacon { border-color: #c8f3ab; border-radius: .5rem; background: var(--zc-success-soft); }
body.zc-app .attention-beacon i { background: var(--zc-success); box-shadow: 0 0 0 .3125rem rgba(114, 225, 40, .15); }
body.zc-app .attention-panel.has-critical .attention-beacon { border-color: #ffbab8; background: var(--zc-danger-soft); }
body.zc-app .attention-panel.has-critical .attention-beacon i { background: var(--zc-danger); box-shadow: 0 0 0 .3125rem rgba(255, 77, 73, .12); }
body.zc-app .attention-live { background: var(--zc-success-soft); color: var(--bs-success-text-emphasis); font-size: .6875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.zc-app .attention-live i { background: var(--zc-success); }
body.zc-app .attention-health > i { background: var(--zc-success-soft); color: var(--bs-success-text-emphasis); }
body.zc-app .attention-health strong { color: var(--zc-heading); font-size: .8125rem; font-weight: 500; }
body.zc-app .attention-health small { color: var(--zc-secondary); font-size: .6875rem; }
body.zc-app .attention-list { gap: .5rem; padding: .75rem 1rem 1rem; }
body.zc-app .attention-item { border-radius: .5rem; box-shadow: none; }
body.zc-app .attention-item .attention-type { border-radius: .1875rem; background: #e8e9ed; color: #6d788d; font-size: .6875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.zc-app .attention-item.severity-critical { background: var(--zc-danger-soft); }
body.zc-app .attention-item.severity-critical .attention-dot { background: var(--zc-danger); box-shadow: 0 0 0 .1875rem rgba(255, 77, 73, .12); }
body.zc-app .attention-item.severity-critical .attention-type { background: #fff; color: var(--bs-danger-text-emphasis); }
body.zc-app .attention-item.severity-high { background: var(--zc-warning-soft); }
body.zc-app .attention-item.severity-high .attention-dot { background: var(--zc-warning); box-shadow: 0 0 0 .1875rem rgba(253, 181, 40, .14); }
body.zc-app .attention-item.severity-high .attention-type { background: #fff; color: var(--bs-warning-text-emphasis); }
body.zc-app .attention-item.severity-medium .attention-dot { background: var(--zc-info); box-shadow: 0 0 0 .1875rem rgba(38, 198, 249, .12); }
body.zc-app .attention-copy strong { color: var(--zc-heading); font-size: .8125rem; font-weight: 500; }
body.zc-app .attention-copy small,
body.zc-app .attention-when { color: var(--zc-secondary); font-size: .6875rem; font-weight: 400; }
body.zc-app .comment-alert-count { background: var(--zc-warning-soft); color: var(--bs-warning-text-emphasis); font-size: .75rem; font-weight: 500; }
body.zc-app .comment-alert-card { border-color: #fee2ab; border-radius: .5rem; background: var(--zc-warning-soft); box-shadow: none; }
body.zc-app .comment-alert-card strong { color: var(--zc-heading); font-size: .8125rem; font-weight: 500; }
body.zc-app .comment-alert-card small,
body.zc-app .comment-alert-card p { color: var(--zc-text); font-size: .6875rem; font-weight: 400; }
body.zc-app .resolved-label,
body.zc-app .status-current strong.clean { color: var(--bs-success-text-emphasis); font-weight: 500; }
body.zc-app .reservation-comments-section { border-color: #fee2ab; border-radius: .625rem; background: var(--zc-warning-soft); }
body.zc-app .reservation-comments-section > header { border-color: #fee2ab; background: var(--zc-warning-soft); }
body.zc-app .reservation-comments-section > header > span { background: #fff; color: var(--bs-warning-text-emphasis); font-size: .75rem; font-weight: 500; }
body.zc-app .reservation-comment-card { border-color: #fee2ab; border-radius: .5rem; box-shadow: none; }
body.zc-app .reservation-comment-card > p { color: var(--zc-heading); font-size: .8125rem; font-weight: 400; }
body.zc-app .reservation-event-comment { border-color: #fee2ab; background: var(--zc-warning-soft); color: var(--zc-heading); }
body.zc-app .reservation-event-comment p,
body.zc-app .reservation-event-comment button { font-weight: 500; }
body.zc-app .modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  padding: 1.125rem;
  overflow: visible;
  background: rgba(147, 149, 161, .5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
body.zc-app .modal-card {
  border: 0;
  border-radius: .625rem;
  background: var(--zc-paper);
  box-shadow: var(--bs-box-shadow-lg);
}
body.zc-app .modal-head { padding: 1.25rem; border-color: var(--zc-border); }
body.zc-app .modal-head h2 { color: var(--zc-heading); font-size: 1.125rem; font-weight: 500; }
body.zc-app .modal-body { padding: 1.25rem; }
body.zc-app .modal-footer { padding: 1rem 1.25rem; border-color: var(--zc-border); background: #fafafa; }
body.zc-app .toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: block;
  width: auto;
  max-width: 360px;
  padding: .75rem 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1.25rem);
  transition: opacity .2s ease, transform .2s ease;
  border-radius: .5rem;
  background: var(--zc-heading);
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
  box-shadow: var(--bs-box-shadow-lg);
}
body.zc-app .toast.error { background: var(--zc-danger); }
body.zc-app .toast.show { opacity: 1; transform: translateY(0); }
.zc-sidebar-backdrop { position: fixed; inset: 0; z-index: 39; border: 0; background: rgba(38, 43, 67, .45); }

@media (max-width: 1399.98px) {
  body.zc-app .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zc-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1199.98px) {
  .zc-sidebar { transform: translateX(-100%); box-shadow: var(--bs-box-shadow-lg); }
  body.zc-menu-open .zc-sidebar { transform: translateX(0); }
  .zc-sidebar-close { display: inline-grid; }
  .zc-main { margin-left: 0; }
  .zc-menu-toggle { display: grid !important; }
  .zc-sidebar-collapse { display: none; }
  .zc-dashboard-grid { grid-template-columns: 1fr; }
  .zc-dashboard-grid .attention-panel { grid-row: auto; }
  body.zc-app .cleaner-list { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .zc-navbar { padding: 0 1rem; }
  .zc-content { padding: 1rem; }
  .zc-page-intro { margin-bottom: 1rem; }
  .zc-page-intro h2 { font-size: 1.25rem; }
  .zc-page-intro p { font-size: .75rem; }
  body.zc-app .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
  body.zc-app .stat { gap: .75rem; padding: 1rem; }
  .zc-stat-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 1.125rem; }
  body.zc-app .stat strong { font-size: 1.375rem; }
  body.zc-app .stat em { display: none; }
  .zc-dashboard-grid,
  .zc-tool-grid,
  .zc-operations-overview { gap: 1rem; }
  .zc-tool-grid,
  .zc-operations-overview { grid-template-columns: 1fr; }
  .zc-donut-wrap { grid-template-columns: 116px minmax(0, 1fr); gap: 1rem; }
  .zc-donut { width: 108px; height: 108px; }
  .zc-donut::before { width: 76px; height: 76px; }
  .zc-week-chart { height: 220px; }
  body.zc-app .cleaner-list { padding: 1rem; }
  body.zc-app .cleaner-list .cleaner-card { grid-template-columns: 38px minmax(0, 1fr); }
  body.zc-app .cleaner-current { grid-column: 1 / -1; min-width: 0; padding: .75rem 0 0; border-left: 0; border-top: 1px solid var(--zc-border); }
  .zc-navbar .zc-header-audit,
  .zc-navbar .latest-reviews-button,
  .zc-navbar .zc-mobile-switch,
  .zc-navbar .zc-desktop-switch { display: none; }
}

@media (max-width: 479.98px) {
  .zc-page-heading small { display: none; }
  .zc-page-heading h1 { font-size: .9375rem; }
  .zc-navbar .push-notifications { width: 38px; height: 38px; overflow: hidden; padding: 0; color: transparent; font-size: 0; }
  .zc-navbar .push-notifications::before {
    content: "";
    width: 1.125rem;
    height: 1.125rem;
    display: block;
    margin: auto;
    background-color: var(--zc-text);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 18h14v-6.969C19 7.148 15.866 4 12 4s-7 3.148-7 7.031zm7-16c4.97 0 9 4.043 9 9.031V20H3v-8.969C3 6.043 7.03 2 12 2M9.5 21h5a2.5 2.5 0 0 1-5 0'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 18h14v-6.969C19 7.148 15.866 4 12 4s-7 3.148-7 7.031zm7-16c4.97 0 9 4.043 9 9.031V20H3v-8.969C3 6.043 7.03 2 12 2M9.5 21h5a2.5 2.5 0 0 1-5 0'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  body.zc-app .stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
  body.zc-app .stat { align-items: flex-start; padding: .875rem; }
  .zc-stat-icon { width: 34px; height: 34px; flex-basis: 34px; }
  body.zc-app .stat small { font-size: .6875rem; }
  body.zc-app .stat strong { font-size: 1.25rem; }
  .zc-donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .zc-donut-copy { width: 100%; }
}

@media (min-width: 1200px) {
  body.zc-sidebar-collapsed .zc-sidebar { width: 70px; }
  body.zc-sidebar-collapsed .zc-main { margin-left: 70px; }
  body.zc-sidebar-collapsed .zc-sidebar-brand { justify-content: center; padding-inline: 0; }
  body.zc-sidebar-collapsed .zc-sidebar-brand > span:nth-child(2),
  body.zc-sidebar-collapsed .zc-sidebar-close,
  body.zc-sidebar-collapsed .zc-nav-label,
  body.zc-sidebar-collapsed .zc-nav-link > span,
  body.zc-sidebar-collapsed .zc-nav-link > b,
  body.zc-sidebar-collapsed .zc-sidebar-footer span:last-child { display: none; }
  body.zc-sidebar-collapsed .zc-sidebar-collapse { position: absolute; top: 51px; right: -15px; z-index: 2; border: 1px solid var(--zc-border); background: var(--zc-paper); box-shadow: var(--bs-box-shadow-sm); }
  body.zc-sidebar-collapsed .zc-sidebar-collapse i { transform: rotate(180deg); }
  body.zc-sidebar-collapsed .zc-nav-link { width: 46px; justify-content: center; margin-inline: 12px; padding-inline: 0; }
  body.zc-sidebar-collapsed .zc-nav-link > .ri:first-child { width: 1.5rem; flex-basis: 1.5rem; }
  body.zc-sidebar-collapsed .zc-sidebar-footer { justify-content: center; margin-inline: .75rem; padding-inline: 0; }
}

/* The mobile-admin route uses the same product shell but prioritizes one-column reading. */
body.zc-app.mobile-admin .zc-content { max-width: 100%; }
body.zc-app.mobile-admin .zc-navbar { min-height: calc(64px + env(safe-area-inset-top)); flex-wrap: nowrap; margin: 0; padding: env(safe-area-inset-top) 1rem 0; background: rgba(247, 247, 249, .94); }
body.zc-app.mobile-admin .zc-navbar .top-actions { width: auto; display: flex; margin: 0 0 0 auto; grid-template-columns: none; }
body.zc-app.mobile-admin .zc-navbar .top-actions .button { padding: .55rem .9rem; font-size: .8125rem; }
body.zc-app.mobile-admin .schedule-wrap { overflow: visible; }
body.zc-app.mobile-admin .schedule { min-width: 0; grid-template-columns: 1fr; }
body.zc-app.mobile-admin .zc-dashboard-grid,
body.zc-app.mobile-admin .zc-operations-overview { grid-template-columns: 1fr; }
body.zc-app.mobile-admin .zc-dashboard-grid .attention-panel { grid-row: auto; }
body.zc-app.mobile-admin .zc-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) {
  body.zc-app.mobile-admin .zc-tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 479.98px) {
  body.zc-app.mobile-admin .zc-navbar .push-notifications { font-size: 0; }
}

/* Full-width seven-day agenda. Days remain vertically ordered so the existing
   same-day drag-and-drop priority behavior keeps its exact hit testing. */
@media (min-width: 761px) {
  body.zc-app:not(.mobile-admin) .zc-page[data-zc-page="agenda"],
  body.zc-app:not(.mobile-admin) .zc-agenda-panel { width: 100%; min-width: 0; }
  body.zc-app:not(.mobile-admin) .zc-agenda-panel > .panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
  }
  body.zc-app:not(.mobile-admin) .zc-agenda-panel > .panel-head .panel-actions {
    max-width: 100%;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  body.zc-app:not(.mobile-admin) .schedule-wrap { overflow: visible; }
  body.zc-app:not(.mobile-admin) .schedule {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: #f4f5f7;
  }
  body.zc-app:not(.mobile-admin) .day-column {
    width: 100%;
    min-height: 0;
    border: 1px solid var(--zc-border);
    border-radius: .75rem;
    background: var(--zc-paper);
    overflow: hidden;
  }
  body.zc-app:not(.mobile-admin) .day-head {
    position: static;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    text-align: left;
    background: #f5f5f7;
  }
  body.zc-app:not(.mobile-admin) .day-head-copy { display: flex; align-items: baseline; gap: .625rem; }
  body.zc-app:not(.mobile-admin) .day-head strong { font-size: .9375rem; }
  body.zc-app:not(.mobile-admin) .day-head.today {
    background: var(--zc-primary-soft);
    box-shadow: inset 4px 0 0 var(--zc-primary);
  }
  body.zc-app:not(.mobile-admin) .day-body {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .625rem;
    padding: .75rem;
    background: #fafafa;
  }
  body.zc-app:not(.mobile-admin) .day-body > .clean-task,
  body.zc-app:not(.mobile-admin) .day-body > .day-assignment-alert { margin: 0; }
  body.zc-app:not(.mobile-admin) .empty-day { display: grid; grid-template-columns: minmax(180px, 22%) minmax(0, 1fr); }
  body.zc-app:not(.mobile-admin) .empty-day .day-head { border-bottom: 0; border-right: 1px solid var(--zc-border); }
  body.zc-app:not(.mobile-admin) .empty-day .day-body { min-height: 58px; padding: 0; align-items: center; background: var(--zc-paper); }
  body.zc-app:not(.mobile-admin) .empty-day .empty { padding: .75rem 1rem; text-align: left; }

  body.zc-app:not(.mobile-admin) .clean-task {
    --task-accent: #6d788d;
    --task-border: #d7dae0;
    --task-bg: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 29%);
    align-items: center;
    gap: .75rem 1.25rem;
    margin: 0;
    padding: .875rem 3.25rem .875rem .875rem;
    border: 1px solid var(--task-border);
    border-top: 3px solid var(--task-accent);
    border-radius: .625rem;
    background: var(--task-bg) !important;
    box-shadow: 0 .125rem .5rem rgba(38, 43, 67, .07);
  }
  body.zc-app:not(.mobile-admin) .task-drag-space {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(330px, 1fr) minmax(150px, auto);
    align-items: center;
    gap: 1rem;
    padding: 0;
    cursor: grab;
  }
  body.zc-app:not(.mobile-admin) .task-top { grid-template-columns: 42px 104px minmax(0, 1fr); gap: .875rem; }
  body.zc-app:not(.mobile-admin) .priority { width: 42px; height: 42px; font-size: 1rem; }
  body.zc-app:not(.mobile-admin) .task-image {
    display: block;
    width: 104px;
    height: 72px;
    border: 1px solid var(--task-border);
    border-radius: .5rem;
    object-fit: cover;
    object-position: center;
    background: #eceef2;
    -webkit-user-drag: none;
  }
  body.zc-app:not(.mobile-admin) .task-copy strong {
    font-size: .9375rem;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  body.zc-app:not(.mobile-admin) .task-copy small { margin-top: .375rem; font-size: .75rem; line-height: 1.4; white-space: normal; }
  body.zc-app:not(.mobile-admin) .task-badges { justify-content: flex-start; margin: 0; }
  body.zc-app:not(.mobile-admin) .task-actions { min-width: 0; display: grid; gap: .625rem; }
  body.zc-app:not(.mobile-admin) .task-select { width: 100%; margin: 0; }
  body.zc-app:not(.mobile-admin) .task-footer { margin: 0; padding-top: .5rem; border-top: 1px solid color-mix(in srgb, var(--task-accent) 20%, transparent); }
  body.zc-app:not(.mobile-admin) .task-actions > .reservation-event-comments,
  body.zc-app:not(.mobile-admin) .task-actions > .task-property-change { margin: 0; }
  body.zc-app:not(.mobile-admin) .reservation-event-comment { padding: .625rem .75rem; }
  body.zc-app:not(.mobile-admin) .reservation-event-comment p { font-size: .75rem; font-weight: 500; }
  body.zc-app:not(.mobile-admin) .task-detail-button { right: .75rem; top: .75rem; }

  body.zc-app:not(.mobile-admin) .clean-task.turnover { --task-accent: #c46a09; --task-border: #efbd70; --task-bg: #fff7e8; }
  body.zc-app:not(.mobile-admin) .clean-task.custom-task { --task-accent: #6941c6; --task-border: #c9b8ff; --task-bg: #f6f2ff; }
  body.zc-app:not(.mobile-admin) .clean-task.status-in_progress { --task-accent: #087ea4; --task-border: #78c9df; --task-bg: #eefaff; }
  body.zc-app:not(.mobile-admin) .clean-task.is-cleaned { --task-accent: #3f7f28; --task-border: #a9d695; --task-bg: #f1faed; opacity: 1; filter: none; }
  body.zc-app:not(.mobile-admin) .clean-task.unassigned:not(.is-cleaned),
  body.zc-app:not(.mobile-admin) .clean-task.has-schedule-risk:not(.is-cleaned) { --task-accent: #b42318; --task-border: #efa7a1; --task-bg: #fff1f0; }
  body.zc-app:not(.mobile-admin) .clean-task.has-comments {
    border-color: var(--task-border) !important;
    border-top-color: var(--task-accent) !important;
    background: var(--task-bg) !important;
  }
  body.zc-app:not(.mobile-admin) .clean-task.unassigned .task-select { border-color: #d92d20; background: #fff; }
  body.zc-app:not(.mobile-admin) .pill.unassigned { background: var(--zc-danger-soft); color: var(--zc-danger); }
}

@media (min-width: 761px) and (max-width: 1040px) {
  body.zc-app:not(.mobile-admin) .zc-agenda-panel > .panel-head { grid-template-columns: 1fr; align-items: start; }
  body.zc-app:not(.mobile-admin) .zc-agenda-panel > .panel-head .panel-actions { justify-content: flex-start; }
  body.zc-app:not(.mobile-admin) .clean-task { grid-template-columns: minmax(0, 1fr) minmax(210px, 33%); }
  body.zc-app:not(.mobile-admin) .task-drag-space { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body.zc-app:not(.mobile-admin) .schedule-wrap { overflow: visible; }
  body.zc-app:not(.mobile-admin) .schedule { min-width: 0; grid-template-columns: 1fr; gap: .875rem; padding: .75rem; }
  body.zc-app:not(.mobile-admin) .day-column { min-height: 0; border: 1px solid var(--zc-border); border-radius: .75rem; overflow: hidden; }
  body.zc-app:not(.mobile-admin) .day-head { position: static; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  body.zc-app:not(.mobile-admin) .day-body { min-height: 0; display: grid; gap: .75rem; }
  body.zc-app:not(.mobile-admin) .clean-task { margin: 0; }
  body.zc-app:not(.mobile-admin) .task-actions { display: grid; gap: .625rem; }
  body.zc-app:not(.mobile-admin) .task-image { width: 64px; height: 56px; }
  body.zc-app:not(.mobile-admin) .task-top { grid-template-columns: 38px 64px minmax(0, 1fr); }
}

/* Mobile agenda rhythm: status, comments, assignment and forecast are distinct
   full-width blocks instead of inheriting the old card's unrelated margins. */
@media (max-width: 760px) {
  body.zc-app .task-drag-space { display: grid; gap: .75rem; }
  body.zc-app .task-badges {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
  }
  body.zc-app .task-badges .pill {
    min-height: 30px;
    padding: .4375rem .625rem;
    border: 1px solid transparent;
    border-radius: .4375rem;
    font-size: .6875rem;
    line-height: 1.1;
  }
  body.zc-app .task-badges .pill.turnover {
    border-color: #e6a84f;
    background: #f9dca7;
    color: #754006;
  }
  body.zc-app .task-badges .pill.pending {
    border-color: #d7dae0;
    background: #eceef2;
    color: #596273;
  }
  body.zc-app .task-badges .pill.estimated-start {
    border-color: #bfc2ff;
    background: #ededff;
    color: #555bd4;
  }
  body.zc-app .task-actions {
    min-width: 0;
    display: grid;
    gap: .75rem;
    margin-top: .875rem;
    padding-top: .875rem;
    border-top: 1px solid var(--zc-border);
  }
  body.zc-app .task-actions > .reservation-event-comments,
  body.zc-app .task-actions > .task-property-change,
  body.zc-app .task-actions > .task-select,
  body.zc-app .task-actions > .task-footer {
    width: 100%;
    margin: 0;
  }
  body.zc-app .reservation-event-comments { display: grid; gap: .75rem; }
  body.zc-app .reservation-event-comment {
    padding: .75rem;
    border: 1px solid #efc66d;
    border-radius: .625rem;
    background: #fffaf0;
    box-shadow: 0 .125rem .375rem rgba(97, 65, 15, .08);
  }
  body.zc-app .reservation-event-comment header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: .5rem;
  }
  body.zc-app .reservation-event-comment header b,
  body.zc-app .reservation-event-comment header span { font-size: .625rem; line-height: 1.25; }
  body.zc-app .reservation-event-comment header span { text-align: right; }
  body.zc-app .reservation-event-comment p {
    margin: .5rem 0 .625rem;
    color: var(--zc-heading);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.45;
  }
  body.zc-app .reservation-event-comment > div { gap: .5rem; }
  body.zc-app .reservation-event-comment button {
    min-height: 34px;
    padding: .5rem .75rem;
    font-size: .6875rem;
  }
  body.zc-app .task-footer {
    min-height: 42px;
    padding: .625rem .75rem;
    border: 0;
    border-radius: .5rem;
    background: #f5f5f7;
    color: var(--zc-text);
    font-size: .75rem;
  }
  body.zc-app .task-estimate { min-width: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .375rem; }
  body.zc-app .task-estimate i { color: var(--zc-primary); font-size: 1rem; }
  body.zc-app .task-estimate b { color: var(--zc-heading); font-weight: 500; }
  body.zc-app .task-estimate > span { overflow: hidden; color: var(--zc-secondary); text-align: right; white-space: nowrap; text-overflow: ellipsis; }
  body.zc-app .mobile-priority-controls { padding-top: .75rem; }
}

/* The dedicated mobile-admin route keeps the same readable grouping even when
   it is opened on a tablet or a desktop-sized browser window. */
body.zc-app.mobile-admin .task-drag-space { display: grid; gap: .75rem; }
body.zc-app.mobile-admin .task-badges { display: flex; align-items: center; gap: .5rem; margin: 0; }
body.zc-app.mobile-admin .task-badges .pill { min-height: 30px; padding: .4375rem .625rem; border: 1px solid transparent; border-radius: .4375rem; font-size: .6875rem; line-height: 1.1; }
body.zc-app.mobile-admin .task-badges .pill.turnover { border-color: #e6a84f; background: #f9dca7; color: #754006; }
body.zc-app.mobile-admin .task-badges .pill.pending { border-color: #d7dae0; background: #eceef2; color: #596273; }
body.zc-app.mobile-admin .task-badges .pill.estimated-start { border-color: #bfc2ff; background: #ededff; color: #555bd4; }
body.zc-app.mobile-admin .task-actions { min-width: 0; display: grid; gap: .75rem; margin-top: .875rem; padding-top: .875rem; border-top: 1px solid var(--zc-border); }
body.zc-app.mobile-admin .task-actions > .reservation-event-comments,
body.zc-app.mobile-admin .task-actions > .task-property-change,
body.zc-app.mobile-admin .task-actions > .task-select,
body.zc-app.mobile-admin .task-actions > .task-footer { width: 100%; margin: 0; }
body.zc-app.mobile-admin .reservation-event-comments { display: grid; gap: .75rem; }
body.zc-app.mobile-admin .reservation-event-comment { padding: .75rem; border: 1px solid #efc66d; border-radius: .625rem; background: #fffaf0; box-shadow: 0 .125rem .375rem rgba(97, 65, 15, .08); }
body.zc-app.mobile-admin .reservation-event-comment header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .5rem; }
body.zc-app.mobile-admin .reservation-event-comment header b,
body.zc-app.mobile-admin .reservation-event-comment header span { font-size: .625rem; line-height: 1.25; }
body.zc-app.mobile-admin .reservation-event-comment header span { text-align: right; }
body.zc-app.mobile-admin .reservation-event-comment p { margin: .5rem 0 .625rem; color: var(--zc-heading); font-size: .75rem; font-weight: 500; line-height: 1.45; }
body.zc-app.mobile-admin .reservation-event-comment > div { gap: .5rem; }
body.zc-app.mobile-admin .reservation-event-comment button { min-height: 34px; padding: .5rem .75rem; font-size: .6875rem; }
body.zc-app.mobile-admin .task-footer { min-height: 42px; padding: .625rem .75rem; border: 0; border-radius: .5rem; background: #f5f5f7; color: var(--zc-text); font-size: .75rem; }
body.zc-app.mobile-admin .task-estimate { min-width: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .375rem; }
body.zc-app.mobile-admin .task-estimate i { color: var(--zc-primary); font-size: 1rem; }
body.zc-app.mobile-admin .task-estimate b { color: var(--zc-heading); font-weight: 500; }
body.zc-app.mobile-admin .task-estimate > span { overflow: hidden; color: var(--zc-secondary); text-align: right; white-space: nowrap; text-overflow: ellipsis; }
body.zc-app.mobile-admin .mobile-priority-controls { padding-top: .75rem; }

/* Native cleaner selects must remain visually neutral on every event state. */
body.zc-app .task-select,
body.zc-app .clean-task.unassigned .task-select,
body.zc-app .clean-task.turnover .task-select,
body.zc-app .clean-task.custom-task .task-select,
body.zc-app .clean-task.is-cleaned .task-select {
  border-color: #d4d5d9;
  background-color: #fff !important;
  color: var(--zc-heading);
  color-scheme: light;
}
body.zc-app .task-select option { background-color: #fff; color: var(--zc-heading); }
body.zc-app .task-select:disabled { background-color: #fff !important; opacity: .66; }

/* Compact notification control: the push script can change its state, but the
   header always remains a centered icon-only square. */
body.zc-app .zc-navbar .zc-push-icon {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  display: inline-grid;
  flex: 0 0 38px;
  place-items: center;
  padding: 0 !important;
  overflow: hidden;
  font-size: 0 !important;
  line-height: 0;
  white-space: normal;
}
body.zc-app .zc-navbar .zc-push-icon .notification-bell {
  position: relative;
  inset: auto;
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
  color: currentColor;
}
body.zc-app .zc-navbar .zc-push-icon.is-loading { padding: 0 !important; }
body.zc-app .zc-navbar .zc-push-icon.is-loading .notification-bell { opacity: 0; }
body.zc-app .zc-navbar .zc-push-icon.is-loading::after { right: 11px; }

/* The old mobile theme forced white type for today's former green header.
   Materialize uses a light lavender surface, so today needs dark type. */
body.zc-app.mobile-admin .day-head.today strong { color: var(--zc-heading) !important; }
body.zc-app.mobile-admin .day-head.today small {
  background: rgba(255, 255, 255, .72) !important;
  color: var(--zc-primary) !important;
}

/* Monthly labor cost: compensation remains an admin-only Zelofy value and is
   distributed only across cleanings completed by that person in this month. */
body.zc-app .zc-compensation-field {
  grid-column: 1 / -1;
  margin-bottom: .75rem;
  padding: .875rem;
  border: 1px solid var(--zc-border);
  border-radius: .625rem;
  background: #fafafa;
}
body.zc-app .zc-compensation-field > span { color: var(--zc-heading); }
body.zc-app .zc-compensation-field > small {
  display: block;
  margin-top: .375rem;
  color: var(--zc-secondary);
  font-size: .6875rem;
  line-height: 1.45;
}
body.zc-app .cleaner-cost-meta {
  width: max-content;
  max-width: 100%;
  margin-top: .375rem !important;
  padding: .25rem .4375rem;
  border-radius: .3125rem;
  background: var(--zc-primary-soft);
  color: var(--zc-primary) !important;
  font-weight: 500;
}
body.zc-app .cleaner-cost-meta.missing { background: var(--zc-warning-soft); color: var(--bs-warning-text-emphasis) !important; }

.zc-cleaning-cost-card { min-width: 0; }
.zc-cleaning-costs { display: grid; gap: .875rem; padding: 1.25rem; }
.zc-cost-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.zc-cost-overview > span { min-width: 0; padding: .875rem; border-radius: .5rem; background: var(--zc-primary-soft); }
.zc-cost-overview small,
.zc-cost-overview strong,
.zc-cost-overview em { display: block; }
.zc-cost-overview small { color: var(--zc-secondary); font-size: .6875rem; }
.zc-cost-overview strong { margin-top: .25rem; color: var(--zc-heading); font-size: 1.25rem; font-weight: 600; }
.zc-cost-overview em { margin-top: .125rem; color: var(--zc-secondary); font-size: .6875rem; font-style: normal; line-height: 1.4; }
.zc-cost-buildings { display: grid; gap: .625rem; }
.zc-cost-building { overflow: hidden; border: 1px solid var(--zc-border); border-radius: .625rem; background: var(--zc-paper); }
.zc-cost-building summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: .75rem;
  padding: .875rem;
  cursor: pointer;
  list-style: none;
}
.zc-cost-building summary::-webkit-details-marker { display: none; }
.zc-cost-building summary > b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: var(--zc-primary-soft);
  color: var(--zc-primary);
  font-size: .8125rem;
  font-weight: 600;
}
.zc-cost-building summary span strong,
.zc-cost-building summary span small { display: block; }
.zc-cost-building summary span > strong { color: var(--zc-heading); font-size: .8125rem; font-weight: 500; }
.zc-cost-building summary span > small { margin-top: .125rem; color: var(--zc-secondary); font-size: .6875rem; }
.zc-cost-value { text-align: right; }
.zc-cost-building summary > i { color: var(--zc-secondary); transition: transform .2s ease; }
.zc-cost-building[open] summary > i { transform: rotate(180deg); }
.zc-cost-cleaners { border-top: 1px solid var(--zc-border); background: #fafafa; }
.zc-cost-cleaner-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .75rem .875rem; border-bottom: 1px solid var(--zc-border); }
.zc-cost-cleaner-row:last-child { border-bottom: 0; }
.zc-cost-cleaner-row strong,
.zc-cost-cleaner-row small { display: block; }
.zc-cost-cleaner-row strong { color: var(--zc-heading); font-size: .75rem; font-weight: 500; }
.zc-cost-cleaner-row small { margin-top: .125rem; color: var(--zc-secondary); font-size: .6875rem; line-height: 1.4; }
.zc-cost-cleaner-row > b { color: var(--zc-primary); font-size: .75rem; font-weight: 500; text-align: right; }
.zc-cost-warning,
.zc-cost-empty { padding: .875rem; border-radius: .5rem; font-size: .75rem; }
.zc-cost-warning { display: flex; align-items: flex-start; gap: .5rem; background: var(--zc-warning-soft); color: var(--bs-warning-text-emphasis); line-height: 1.45; }
.zc-cost-warning i { margin-top: .0625rem; font-size: 1rem; }
.zc-cost-empty { display: grid; justify-items: center; gap: .25rem; border: 1px dashed var(--zc-border); color: var(--zc-secondary); text-align: center; }
.zc-cost-empty > i { margin-bottom: .25rem; color: var(--zc-primary); font-size: 1.5rem; }
.zc-cost-empty strong,
.zc-cost-empty small { display: block; }
.zc-cost-empty strong { color: var(--zc-heading); font-weight: 500; }
.zc-cost-empty small { max-width: 32rem; line-height: 1.45; }
.zc-cost-empty .button { margin-top: .5rem; }

@media (max-width: 479.98px) {
  .zc-cost-overview { grid-template-columns: 1fr; }
  .zc-cleaning-costs { padding: 1rem; }
  .zc-cost-building summary { grid-template-columns: 38px minmax(0, 1fr) 16px; gap: .625rem; }
  .zc-cost-building summary > b { width: 38px; height: 38px; }
  .zc-cost-value { grid-column: 2; text-align: left; }
  .zc-cost-building summary > i { grid-column: 3; grid-row: 1 / span 2; }
  .zc-cost-cleaner-row { grid-template-columns: 1fr; }
  .zc-cost-cleaner-row > b { text-align: left; }
}
