/* ─────────────────────────────────────────────────────────────────────────
   Harry's Clean Team — Shared Styles
   Used by: index.html (dashboard) and clean.html (cleaner form)
   ───────────────────────────────────────────────────────────────────────── */

/* ── BASE ──────────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
}

/* ── HEADER ────────────────────────────────────────────────────────────── */
#header {
  background: #0f172a;
  color: white;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  position: sticky;
  top: 0;
  z-index: 200;
}
#header h1 { font-size: 18px; font-weight: 700; }
.subtitle { font-size: 12px; color: #94a3b8; margin-top: 2px; }

#refreshBtn {
  background: #1e293b;
  border: none;
  color: #94a3b8;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
#refreshBtn:hover { background: #334155; color: white; }

/* ── NAV ───────────────────────────────────────────────────────────────── */
#nav {
  background: #0f172a;
  display: flex;
  padding: 8px 16px;
  gap: 4px;
  border-top: 1px solid #1e293b;
  overflow-x: auto;
  scrollbar-width: none;
}
#nav::-webkit-scrollbar { display: none; }

.nav-tab {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  border: 1.5px solid transparent;
  border-radius: 8px;
  transition: all .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.nav-tab:hover { color: #e2e8f0; background: #1e293b; border-color: #334155; }
.nav-tab.active { color: #16a34a; background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.4); }

.nav-badge {
  background: #dc2626;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}

/* ── MAIN ──────────────────────────────────────────────────────────────── */
#main { max-width: 1280px; margin: 0 auto; padding: 20px 20px 80px; }
.section { display: none; }
.section.active { display: block; }

/* ── CARD ──────────────────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #64748b;
}

/* ── STATS ─────────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  border: 2px solid transparent;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: #64748b; }
.stat-value { font-size: 26px; font-weight: 700; color: #0f172a; margin-top: 4px; }
.stat-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.sv-green .stat-value { color: #16a34a; }
.sv-blue  .stat-value { color: #2563eb; }
.sv-amber .stat-value { color: #d97706; }
.sv-red   .stat-value { color: #dc2626; }

/* ── ALERTS ────────────────────────────────────────────────────────────── */
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 12px; border-left: 4px solid; }
.alert-red   { background: #fef2f2; border-left-color: #dc2626; }
.alert-amber { background: #fffbeb; border-left-color: #f59e0b; }
.alert-green { background: #f0fdf4; border-left-color: #16a34a; }
.alert-icon  { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-body  { flex: 1; }
.alert-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.alert-sub   { font-size: 12px; color: #64748b; margin-top: 2px; }
.alert-actions { margin-top: 8px; display: flex; gap: 8px; }

/* ── TABLE ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #64748b;
  padding: 10px 12px;
  border-bottom: 2px solid #f1f5f9;
  background: #f8fafc;
  white-space: nowrap;
}
td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; color: #374151; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafcff; }
.td-prop { font-weight: 600; color: #0f172a; }
.td-link { color: #16a34a; text-decoration: none; font-weight: 600; }
.td-link:hover { text-decoration: underline; }

/* ── BADGE ─────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.bg { background: #dcfce7; color: #15803d; }
.bb { background: #dbeafe; color: #1d4ed8; }
.ba { background: #fef3c7; color: #92400e; }
.br { background: #fee2e2; color: #dc2626; }
.bp { background: #f3e8ff; color: #6d28d9; }
.bs { background: #e2e8f0; color: #1e293b; }
.badge.active    { background: #dcfce7; color: #15803d; }
.badge.upcoming  { background: #dbeafe; color: #1d4ed8; }
.badge.completed { background: #e2e8f0; color: #1e293b; }

/* ── FILTER BAR ────────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.filter-bar input, .filter-bar select {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1e293b;
  background: white;
  font-family: inherit;
}
.filter-bar input { flex: 1; min-width: 180px; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: #16a34a; }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn-p {
  padding: 9px 18px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-p:hover { background: #15803d; }
.btn-p:disabled { background: #86efac; cursor: not-allowed; }

.btn-s {
  padding: 9px 18px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-s:hover { background: #e2e8f0; }

.btn-danger {
  padding: 9px 18px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn-danger:hover { background: #fee2e2; }

.btn-icon { padding: 5px 9px; border: none; border-radius: 7px; cursor: pointer; font-size: 13px; font-family: inherit; transition: background .1s; line-height: 1; }
.btn-edit  { background: #eff6ff; color: #2563eb; }
.btn-edit:hover { background: #dbeafe; }
.btn-del   { background: #fef2f2; color: #dc2626; }
.btn-del:hover { background: #fee2e2; }

.btn-act { background: #f0fdf4; color: #16a34a; border: none; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-act:hover { background: #dcfce7; }
.btn-act.amber { background: #fffbeb; color: #92400e; }
.btn-act.amber:hover { background: #fef3c7; }
.btn-act.blue  { background: #eff6ff; color: #1d4ed8; }
.btn-act.blue:hover  { background: #dbeafe; }

/* ── FORM ──────────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { margin-bottom: 0; }
.fg label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; letter-spacing: .3px; }
.fg input, .fg select, .fg textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  font-family: inherit;
  transition: border-color .15s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: #16a34a; background: white; }
.fg textarea { resize: vertical; min-height: 72px; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; }

/* ── MODAL ─────────────────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 500; display: none; align-items: center; justify-content: center; padding: 16px; }
.overlay.open { display: flex; }
.modal {
  background: white;
  border-radius: 16px;
  padding: 28px;
  width: min(580px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: popIn .18s ease;
}
@keyframes popIn { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #94a3b8; padding: 0; line-height: 1; transition: color .1s; }
.modal-close:hover { color: #1e293b; }

/* ── TOAST ─────────────────────────────────────────────────────────────── */
#toastStack { position: fixed; top: 16px; right: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { color: white; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.25); animation: toastIn .2s ease; display: flex; align-items: center; gap: 8px; max-width: 320px; }
.t-success { background: #15803d; }
.t-error   { background: #dc2626; }
.t-info    { background: #1d4ed8; }
@keyframes toastIn  { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to   { transform: translateX(120%); opacity: 0; } }

/* ── EMPTY / LOADER ────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 48px 20px; color: #94a3b8; }
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-text { font-size: 15px; font-weight: 600; color: #64748b; }
.empty-sub  { font-size: 13px; margin-top: 4px; }
.empty-cta  { margin-top: 16px; }
.loader { display: flex; align-items: center; justify-content: center; padding: 48px; color: #94a3b8; gap: 10px; font-size: 14px; }
.spin { width: 20px; height: 20px; border: 2px solid #e2e8f0; border-top-color: #16a34a; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PRIORITY ITEMS ────────────────────────────────────────────────────── */
.p-section { margin-bottom: 20px; }
.p-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: #64748b; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #f1f5f9; }
.p-item { background: #f8fafc; border-radius: 10px; padding: 14px 16px; margin-bottom: 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-left: 4px solid #e2e8f0; }
.p-item.urg  { border-left-color: #dc2626; background: #fff5f5; }
.p-item.warn { border-left-color: #f59e0b; background: #fffdf0; }
.p-item.good { border-left-color: #16a34a; background: #f0fdf4; }
.p-item.info { border-left-color: #3b82f6; background: #eff6ff; }
.p-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.p-sub   { font-size: 12px; color: #64748b; margin-top: 3px; }
.p-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* ── CALENDAR ──────────────────────────────────────────────────────────── */
.cal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.cal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-nav button { background: #f1f5f9; border: none; padding: 6px 13px; border-radius: 8px; cursor: pointer; font-size: 16px; color: #475569; font-weight: 700; transition: background .1s; }
.cal-nav button:hover { background: #e2e8f0; }
.cal-month { font-size: 18px; font-weight: 700; color: #0f172a; }
.cal-grid-wrap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dh { text-align: center; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; padding: 8px 0; }
.cal-cell { background: white; border-radius: 6px; min-height: 80px; padding: 5px; border: 1.5px solid #f1f5f9; cursor: pointer; transition: border-color .1s, background .1s; }
.cal-cell:hover  { border-color: #16a34a; background: #f0fdf4; }
.cal-cell.emp    { background: #f8fafc; border-color: transparent; cursor: default; pointer-events: none; }
.cal-cell.tod    { border-color: #16a34a; border-width: 2px; }
.cal-cell.sel    { background: #f0fdf4; border-color: #16a34a; }
.cal-dn { font-size: 12px; font-weight: 700; color: #94a3b8; margin-bottom: 3px; }
.cal-cell.tod .cal-dn, .cal-cell.sel .cal-dn { color: #16a34a; }
.cal-ev { font-size: 10px; padding: 2px 4px; border-radius: 3px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; max-width: 100%; }
.ce-book  { background: #dbeafe; color: #1d4ed8; }
.ce-out   { background: #fee2e2; color: #dc2626; }
.ce-in    { background: #dcfce7; color: #15803d; }
.ce-clean { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ce-linen { background: #f3e8ff; color: #6d28d9; }
.ce-turn  { background: #dc2626; color: white; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.cl-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #64748b; }
.cl-dot  { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.day-panel { background: white; border-radius: 12px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.07); position: sticky; top: 78px; }
.dp-title  { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; }
.dp-empty  { font-size: 13px; color: #94a3b8; text-align: center; padding: 24px 0; }
.dp-ev     { padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; border-left: 3px solid; }
.dp-ev-title { font-size: 13px; font-weight: 700; color: #0f172a; }
.dp-ev-sub   { font-size: 12px; color: #64748b; margin-top: 2px; line-height: 1.5; }

/* ── REVENUE BAR ────────────────────────────────────────────────────────── */
.rev-bar-row   { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rev-bar-label { font-size: 12px; color: #475569; font-weight: 600; width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.rev-bar-bg    { flex: 1; background: #f1f5f9; border-radius: 4px; height: 20px; overflow: hidden; }
.rev-bar-fill  { height: 100%; border-radius: 4px; background: #16a34a; transition: width .5s ease; }
.rev-bar-val   { font-size: 12px; font-weight: 700; color: #0f172a; width: 64px; text-align: right; flex-shrink: 0; }

/* ── LINENS ─────────────────────────────────────────────────────────────── */
.linen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.linen-card { background: white; border-radius: 12px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.lc-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.lc-prop    { font-size: 15px; font-weight: 700; color: #0f172a; }
.lc-row     { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #f8fafc; }
.lc-row:last-of-type { border-bottom: none; }
.lc-name    { font-size: 13px; color: #475569; }
.lc-counts  { display: flex; gap: 12px; }
.lc-count   { text-align: center; }
.lc-val     { font-size: 15px; font-weight: 700; }
.lc-lbl     { font-size: 10px; color: #94a3b8; text-transform: uppercase; }
.lc-footer  { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.lc-alert   { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #dc2626; font-weight: 600; }
.lc-ok      { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #16a34a; font-weight: 600; }
.lc-actions { display: flex; gap: 8px; }

/* ── SCHEDULE ────────────────────────────────────────────────────────────── */
.sched-layout { display: grid; grid-template-columns: 360px 1fr; gap: 14px; align-items: start; }
.sched-item   { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.sched-item:last-child { border-bottom: none; }
.sched-date   { background: #0f172a; color: white; border-radius: 8px; padding: 8px 10px; text-align: center; min-width: 50px; flex-shrink: 0; }
.sched-date.today-date { background: #16a34a; }
.sd-day  { font-size: 18px; font-weight: 700; line-height: 1; }
.sd-mon  { font-size: 10px; text-transform: uppercase; color: #94a3b8; }
.sched-date.today-date .sd-mon { color: #bbf7d0; }
.sched-info { flex: 1; }
.si-prop    { font-weight: 600; font-size: 14px; }
.si-cleaner { font-size: 12px; color: #64748b; margin-top: 2px; }

/* ── HOURS ──────────────────────────────────────────────────────────────── */
.hours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.hc      { background: white; border-radius: 12px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.07); text-align: center; }
.hc-name { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.hc-val  { font-size: 32px; font-weight: 700; color: #16a34a; }
.hc-unit { font-size: 12px; color: #94a3b8; }
.hc-pay  { font-size: 13px; font-weight: 700; color: #0f172a; margin-top: 6px; }

/* ── CLEAN FORM SPECIFIC ────────────────────────────────────────────────── */
#formContainer  { max-width: 520px; margin: 0 auto; padding: 14px 14px 60px; }
#successScreen  { max-width: 520px; margin: 0 auto; padding: 60px 20px; text-align: center; display: none; }

/* Progress bar */
#progressCounter { text-align: center; font-size: 13px; color: #94a3b8; margin-bottom: 8px; }
#progressBar     { height: 4px; background: #1e3a5f; border-radius: 2px; overflow: hidden; }
#progressFill    { height: 100%; background: #16a34a; width: 0%; transition: width 0.3s ease, background 0.3s ease; border-radius: 2px; }
#progressFill.pb-red   { background: #dc2626; }
#progressFill.pb-amber { background: #d97706; }

/* Clean form inputs */
.card-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: #64748b; margin-bottom: 8px; }
.input-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-group { display: flex; flex-direction: column; gap: 4px; }
.input-group label { font-size: 12px; font-weight: 500; color: #64748b; }

input[type="text"], input[type="time"], select, textarea {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  color: #1e293b;
  background: #f8fafc;
  width: 100%;
  font-family: inherit;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
input[type="text"]:focus, input[type="time"]:focus, select:focus, textarea:focus {
  outline: none; border-color: #16a34a; background: white;
}
textarea { resize: vertical; min-height: 80px; font-size: 14px; }
select   { cursor: pointer; }
.field-error { font-size: 12px; color: #dc2626; margin-top: 4px; display: none; }
.field-error.show { display: block; }

#timeTotal {
  margin-top: 10px; background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 8px; padding: 8px 12px; font-size: 14px; color: #15803d;
  font-weight: 600; display: none;
}
#timeTotal.show { display: block; }

/* Section headers (checklist) */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding: 14px 16px; margin: 0 -16px;
  border-radius: 12px 12px 0 0; transition: background 0.15s; user-select: none;
}
.section-header:hover { background: #f8fafc; }
.section-header-left  { display: flex; align-items: center; gap: 8px; }
.section-emoji  { font-size: 18px; }
.section-title  { font-size: 15px; font-weight: 600; color: #1e293b; }
.section-right  { display: flex; align-items: center; gap: 8px; }
.section-counter { font-size: 12px; font-weight: 700; color: #334155; background: #e2e8f0; padding: 2px 9px; border-radius: 10px; }
.section-counter.complete { color: #15803d; background: #dcfce7; }
.section-arrow  { font-size: 11px; color: #94a3b8; transition: transform 0.2s; }
.section-arrow.open { transform: rotate(180deg); }
.section-divider { height: 1px; background: #f1f5f9; margin: 0 -16px; }

/* Checklist items */
.section-items { padding-top: 4px; }
.section-items.collapsed { display: none; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f8fafc; cursor: pointer; min-height: 44px; }
.check-item:last-child { border-bottom: none; }
.check-item input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; border: 2px solid #cbd5e1; border-radius: 5px; cursor: pointer; accent-color: #16a34a; }
.check-item label { font-size: 14px; color: #374151; cursor: pointer; line-height: 1.4; flex: 1; }
.check-item input:checked + label { color: #6b7280; text-decoration: line-through; }
.checklist-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #eee; cursor: pointer; }

/* Photo upload */
.photo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: 2px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; color: #64748b; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.photo-btn:hover { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }
#photoCount { margin-top: 8px; font-size: 13px; color: #16a34a; font-weight: 600; display: none; }
input[type="file"] { display: none; }

/* Start / Submit buttons */
#startCleanBtn {
  width: 100%; padding: 18px; background: #0f172a; color: white;
  border: none; border-radius: 12px; font-size: 18px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px; margin-bottom: 8px;
}
#startCleanBtn:hover { background: #1e293b; }
#startCleanBtn.cleaning { background: #dc2626; animation: cleanPulse 2s infinite; }
#startCleanBtn.cleaning:hover { background: #b91c1c; }
@keyframes cleanPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.4); } 50% { box-shadow: 0 0 0 10px rgba(220,38,38,0); } }

#cleanTimer  { text-align: center; font-size: 28px; font-weight: 700; color: #0f172a; padding: 10px 0; display: none; font-variant-numeric: tabular-nums; }
#cleanStatus { text-align: center; font-size: 13px; color: #64748b; margin-bottom: 6px; display: none; }

#submitBtn {
  width: 100%; padding: 15px; background: #16a34a; color: white;
  border: none; border-radius: 12px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .15s; letter-spacing: 0.2px;
}
#submitBtn:hover     { background: #15803d; }
#submitBtn:disabled  { background: #86efac; cursor: not-allowed; }

.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle; margin-right: 6px; }
#submitError { margin-top: 10px; font-size: 13px; color: #dc2626; text-align: center; display: none; }
#submitError.show { display: block; }

/* Success screen */
.success-icon     { width: 72px; height: 72px; background: #16a34a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 20px; animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.success-title    { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.success-subtitle { font-size: 14px; color: #64748b; margin-bottom: 28px; }
.success-details  { background: white; border-radius: 12px; padding: 16px; text-align: left; margin-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.success-row      { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.success-row:last-child { border-bottom: none; }
.success-row span:first-child { color: #64748b; }
.success-row span:last-child  { font-weight: 600; }

#resetBtn { width: 100%; padding: 14px; background: #0f172a; color: white; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
#resetBtn:hover { background: #1e293b; }

/* Bookings table row */
.bk-row { display: grid; grid-template-columns: 1.5fr 2fr 2fr 1fr 1fr; gap: 10px; padding: 12px; border-bottom: 1px solid #f1f5f9; align-items: center; font-size: 13px; }
.bk-row:last-child { border-bottom: none; }
.bk-row:hover { background: #fafcff; }
.bk-prop { font-weight: 600; color: #0f172a; }

/* ── CHECKLIST ADMIN ────────────────────────────────────────────────────── */
.cl-section-block { margin-bottom: 4px; }
.cl-section-hdr   { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* Property checklist cards */
.cla-grid       { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cla-card       { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 16px; background: white; display: flex; flex-direction: column; }
.cla-card-hdr   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.cla-name       { font-weight: 700; font-size: 15px; color: #0f172a; }
.cla-summary    { font-size: 12px; color: #64748b; margin-bottom: 6px; }
.cla-sec-list   { list-style: none; padding: 0; margin: 8px 0; flex: 1; }
.cla-sec-list li { font-size: 12px; color: #475569; padding: 3px 0; border-bottom: 1px solid #f1f5f9; }
.cla-sec-list li:last-child { border-bottom: none; }

/* Template cards */
.clt-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 4px; }
.clt-card    { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 16px; background: white; display: flex; flex-direction: column; }
.clt-card-hdr { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.clt-name    { font-weight: 700; font-size: 15px; color: #0f172a; }
.clt-desc    { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.clt-summary { font-size: 12px; color: #64748b; margin-bottom: 6px; }
.clt-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.clt-empty   { background: #f8fafc; border: 1.5px dashed #e2e8f0; border-radius: 10px; padding: 24px; text-align: center; font-size: 13px; color: #94a3b8; line-height: 1.6; margin-bottom: 4px; }

/* Editor sections */
.cla-sec        { border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 12px; margin-bottom: 10px; background: #fafcff; }
.cla-sec-hdr    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cla-sec-ttl    { display: flex; align-items: center; gap: 8px; flex: 1; margin-right: 8px; }
.cla-sec-name   { flex: 1; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 600; color: #1e293b; font-family: inherit; background: white; }
.cla-sec-name:focus { outline: none; border-color: #16a34a; }
.cla-items      { padding-left: 4px; }
.cla-item-row   { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cla-item-input { flex: 1; border: 1.5px solid #f1f5f9; border-radius: 7px; padding: 6px 9px; font-size: 13px; color: #374151; font-family: inherit; background: white; }
.cla-item-input:focus { outline: none; border-color: #16a34a; background: #f0fdf4; }
.cla-empty-hint { text-align: center; padding: 24px; color: #94a3b8; font-size: 13px; }

/* Apply-template modal rows */
.at-template-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; margin-bottom: 8px; background: #f8fafc; transition: border-color .1s, background .1s; }
.at-template-row:hover { border-color: #16a34a; background: #f0fdf4; }
.at-tmpl-info  { flex: 1; min-width: 0; }
.at-tmpl-name  { font-size: 14px; font-weight: 700; color: #0f172a; }
.at-tmpl-sub   { font-size: 12px; color: #64748b; margin-top: 2px; }

/* ── CLEAN FORM STICKY HEADER ───────────────────────────────────────────── */
#header.cf-header {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 16px 8px;
}
.cf-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cf-header-row h1 { font-size: 16px; }
#header.cf-header #progressCounter { margin-bottom: 0; text-align: right; font-size: 12px; }

/* ── CHECKLIST CLEAN-FORM ENHANCEMENTS ──────────────────────────────────── */
.checklist-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: white; border-radius: 10px; margin-bottom: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.07); flex-wrap: wrap; }
.checklist-prop-label { font-size: 12px; font-weight: 600; color: #64748b; }
.btn-cl-ctrl { background: #f1f5f9; border: none; border-radius: 7px; padding: 5px 11px; font-size: 11px; font-weight: 600; color: #64748b; cursor: pointer; font-family: inherit; transition: background .1s; white-space: nowrap; }
.btn-cl-ctrl:hover { background: #e2e8f0; color: #1e293b; }

/* ── PHOTO THUMBNAILS ───────────────────────────────────────────────────── */
.photo-thumbs-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1.5px solid #e2e8f0; flex-shrink: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .cal-layout   { grid-template-columns: 1fr; }
  .sched-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  #main      { padding: 12px 12px 80px; }
  .cal-cell  { min-height: 55px; }
  .bk-row    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stat-value { font-size: 20px; }
  .stats-row  { grid-template-columns: 1fr; }
}

/* ── HISTORY TAB ─────────────────────────────────────────────────────────── */
.hist-breadcrumb { display:flex; align-items:center; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.hist-back { background:none; border:none; color:#16a34a; font-size:14px; font-weight:600; cursor:pointer; padding:4px 0; font-family:inherit; }
.hist-back:hover { text-decoration:underline; }
.hist-bc-sep { color:#94a3b8; font-size:16px; }
.hist-bc-cur { font-size:14px; font-weight:700; color:#0f172a; }
.hist-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px; }
.hist-card { background:white; border-radius:12px; padding:20px 16px; box-shadow:0 1px 4px rgba(0,0,0,.07); cursor:pointer; transition:all .15s; border:1.5px solid #e2e8f0; text-align:center; }
.hist-card:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.1); border-color:#16a34a; }
.hist-card-icon { font-size:28px; margin-bottom:8px; }
.hist-card-name { font-size:14px; font-weight:700; color:#0f172a; margin-bottom:4px; line-height:1.3; }
.hist-card-sub { font-size:12px; color:#94a3b8; }
.hist-report-card { background:white; border-radius:12px; margin-bottom:10px; box-shadow:0 1px 4px rgba(0,0,0,.07); overflow:hidden; border:1.5px solid #e2e8f0; }
.hist-report-hdr { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; cursor:pointer; transition:background .1s; gap:12px; }
.hist-report-hdr:hover { background:#f8fafc; }
.hist-rep-info { flex:1; }
.hist-rep-date { font-size:15px; font-weight:700; color:#0f172a; }
.hist-rep-meta { font-size:13px; color:#64748b; margin-top:3px; }
.hist-arrow { color:#94a3b8; font-size:14px; transition:transform .2s; flex-shrink:0; }
.hist-rep-body { border-top:1px solid #f1f5f9; }
.hist-sec-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:#64748b; margin:14px 0 6px; }
.hist-check-item { display:flex; align-items:flex-start; gap:8px; padding:3px 0; font-size:14px; color:#374151; line-height:1.4; }
.hist-tick { color:#16a34a; font-weight:700; flex-shrink:0; }
.hist-notes { background:#f8fafc; border-radius:8px; padding:10px 12px; font-size:13px; color:#64748b; margin-bottom:12px; line-height:1.5; }
.hist-photos { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.hist-photo { width:80px; height:80px; object-fit:cover; border-radius:8px; border:1.5px solid #e2e8f0; cursor:pointer; transition:opacity .15s; display:block; }
.hist-photo:hover { opacity:.8; }

/* ── CLIENT HISTORY PAGE ─────────────────────────────────────────────────── */
.ch-header { background:#0f172a; padding:20px 24px; }
.ch-logo { font-size:20px; font-weight:700; color:white; }
.ch-client-name { font-size:13px; color:#94a3b8; margin-top:4px; }
.ch-main { max-width:960px; margin:0 auto; padding:20px 16px 80px; }
.ch-prop-group { margin-bottom:28px; }
.ch-prop-name { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.7px; color:#64748b; padding-bottom:8px; border-bottom:2px solid #f1f5f9; margin-bottom:12px; }
