:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --danger: #dc2626;
  --ok: #16a34a;
  --warn: #f59e0b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}
.boot { padding: 40px; color: var(--muted); }

/* layout */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 210px; background: #0f172a; color: #cbd5e1;
  display: flex; flex-direction: column; padding: 16px 10px;
}
.sidebar .brand { color: #fff; font-weight: 700; font-size: 18px; padding: 8px 12px 16px; }
.sidebar .brand small { display:block; color:#64748b; font-weight:500; font-size:11px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  color: #cbd5e1; font-weight: 500; user-select: none;
}
.nav-item:hover { background: #1e293b; color: #fff; }
.nav-item.active { background: var(--brand); color: #fff; }
.nav-spacer { flex: 1; }
.nav-sep { height: 1px; background: #1e293b; margin: 8px 12px; }
.sidebar .signout { font-size: 13px; color:#94a3b8; padding: 8px 12px; cursor:pointer; }
.sidebar .signout:hover { color:#fff; }

.main { flex: 1; padding: 24px 28px; overflow: auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; margin: 0; }

/* buttons */
.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500;
}
.btn:hover { background: #f9fafb; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.danger { color: var(--danger); border-color: #fecaca; }
.btn.danger:hover { background: #fef2f2; }
.btn.sm { padding: 5px 10px; font-size: 13px; }

/* cards / tables */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; cursor: pointer; }
.tag { display:inline-block; padding:2px 8px; border-radius: 999px; font-size:12px; font-weight:600; }
.tag.inactive { background:#fee2e2; color:#991b1b; }
.tag.active { background:#dcfce7; color:#166534; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input[type=text], .field input[type=date], .field input[type=number],
.field input[type=time], .field input[type=email], .field input[type=password],
.field select, .field textarea {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
  font-family: inherit; background: #fff; width: 100%;
}
.field textarea { resize: vertical; min-height: 64px; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.section-title { font-size: 13px; font-weight: 700; color: var(--ink); margin: 6px 0; text-transform: uppercase; letter-spacing:.03em; }
.hr { height:1px; background: var(--line); margin: 18px 0; grid-column: 1 / -1; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); display:flex; align-items:flex-start; justify-content:center; padding: 40px 16px; overflow:auto; z-index: 50; }
.modal { background:#fff; border-radius: 12px; width: 100%; max-width: 720px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal .modal-head { display:flex; justify-content:space-between; align-items:center; padding: 18px 22px; border-bottom:1px solid var(--line); }
.modal .modal-head h2 { margin:0; font-size:18px; }
.modal .modal-body { padding: 22px; }
.modal .modal-foot { padding: 16px 22px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; gap:10px; }
.x { cursor:pointer; color: var(--muted); font-size: 22px; line-height:1; }

/* photo lightbox */
.lightbox { position: relative; align-self: center; }
.lightbox img { display:block; max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.lightbox .x {
  position: absolute; top: -14px; right: -14px; background:#fff; border-radius:50%;
  width: 30px; height: 30px; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 18px;
}

/* misc */
.toolbar { display:flex; gap:10px; align-items:center; margin-bottom:14px; }
.search { flex:1; max-width: 360px; }
.muted { color: var(--muted); }
.hours-table td { padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:middle; }
.hours-table tr:last-child td { border-bottom:none; }
.hours-day { font-weight:600; width:120px; }
.hours-range { display:inline-flex; align-items:center; gap:8px; }
.hours-range input[type=time] { width:auto; }
.cust-name { font-size:18px; font-weight:700; color: var(--ink); }
.cust-phone { display:inline-block; margin-top:4px; font-size:16px; font-weight:600; color: var(--ink); text-decoration:none; }
.cust-phone:hover { text-decoration:underline; }
.empty { padding: 40px; text-align:center; color: var(--muted); }
.right { text-align: right; }
.price-total { font-size: 20px; font-weight: 700; }
.pill-row { display:flex; flex-wrap:wrap; gap:6px; }
.error-banner { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; padding:12px 14px; border-radius:8px; margin-bottom:14px; }

/* login */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; background: var(--bg); }
.login-card { width: 360px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow: var(--shadow); padding: 28px; }
.login-card h1 { margin:0 0 4px; font-size: 22px; }
.login-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.login-card .field { margin-bottom: 14px; }

/* config warning */
.config-warn { max-width: 560px; margin: 60px auto; }

/* calendar */
.cal-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:14px; }
.view-toggle { display:inline-flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.view-opt { padding:4px 12px; font-size:13px; font-weight:600; color:var(--muted); cursor:pointer; user-select:none; }
.view-opt + .view-opt { border-left:1px solid var(--line); }
.view-opt.on { background:var(--brand); color:#fff; }
.cal { padding: 0; overflow:hidden; }
.cal-grid { display:grid; grid-template-columns: repeat(7, 1fr); }
.cal-week .cal-cell { min-height:340px; }
.cal-head { border-bottom:1px solid var(--line); background:#f8fafc; }
.cal-dow { padding:8px 10px; font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; text-align:left; }
.cal-cell { min-height:104px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:6px 7px; cursor:pointer; display:flex; flex-direction:column; gap:4px; }
.cal-cell:nth-child(7n) { border-right:none; }
.cal-cell:hover { background:#f8fafc; }
.cal-cell.out { background:#fafafa; color:#cbd5e1; }
.cal-cell.out .cal-date { color:#cbd5e1; }
.cal-cell.today { background:#eff6ff; }
.cal-cell.today .cal-date { background:var(--brand); color:#fff; border-radius:999px; width:24px; height:24px; display:flex; align-items:center; justify-content:center; }
.cal-date { font-size:13px; font-weight:600; color:var(--ink); }
.cal-items { display:flex; flex-direction:column; gap:3px; }
.cal-appt { background:var(--brand); color:#fff; font-size:11px; padding:2px 6px; border-radius:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal-appt:hover { filter:brightness(1.08); }
.cal-appt.full { background:#16a34a; }
.cal-appt.noshow { background:#dc2626; }
.cal-appt-icon { font-size:11px; line-height:1; }
.legend-swatch { display:inline-block; width:11px; height:11px; background:#16a34a; border-radius:3px; vertical-align:middle; }
.legend-swatch.red { background:#dc2626; }
.cal-more { font-size:11px; color:var(--muted); padding-left:2px; }

/* week time-grid (Outlook-style) */
.wk { overflow-x:auto; }
.wk-head { display:flex; border-bottom:1px solid var(--line); background:#f8fafc; min-width:640px; }
.wk-head .wk-gutter-head { flex:0 0 54px; }
.wk-day-head { flex:1 1 0; text-align:center; padding:6px 2px; border-left:1px solid var(--line); cursor:pointer; }
.wk-day-head:hover { background:#eef2f7; }
.wk-dow { font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; display:block; }
.wk-dnum { font-size:16px; font-weight:700; color:var(--ink); display:inline-block; line-height:1.5; min-width:24px; }
.wk-day-head.today .wk-dnum { background:var(--brand); color:#fff; border-radius:999px; }
.wk-day-head.today .wk-dow { color:var(--brand); }
.wk-day-head.closed .wk-dnum { color:var(--danger); }
.wk-closed { display:block; font-size:9px; color:var(--danger); font-weight:700; text-transform:uppercase; }
.wk-body { display:flex; min-width:640px; }
.wk-gutter { flex:0 0 54px; position:relative; }
.wk-hour { height:52px; position:relative; }
.wk-hour-lbl { position:absolute; top:1px; right:6px; font-size:10px; color:var(--muted); }
.wk-col { flex:1 1 0; position:relative; border-left:1px solid var(--line); }
.wk-col.closed { background:repeating-linear-gradient(45deg,#f8fafc,#f8fafc 7px,#eef1f5 7px,#eef1f5 14px); }
.wk-hline { position:absolute; left:0; right:0; border-top:1px solid var(--line); }
.wk-hline.half { border-top:1px dashed #eef1f5; }
.wk-appt { position:absolute; border-radius:5px; background:var(--brand); color:#fff; padding:1px 4px; font-size:10px; line-height:1.2; overflow:hidden; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.18); }
.wk-appt:hover { filter:brightness(1.06); z-index:4; }
.wk-appt.noshow { background:#dc2626; }
.wk-appt.full { background:#16a34a; }
.wk-atime { font-size:9px; opacity:.9; }
.wk-aname { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wk-block { position:absolute; border-radius:5px; background:#e2e8f0; color:#475569; font-size:9px; line-height:1.2; padding:1px 4px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.wk-block.shop { background:#fee2e2; color:#b91c1c; }
.wk-now { position:absolute; left:0; right:0; border-top:2px solid var(--danger); z-index:5; }
.wk-now::before { content:''; position:absolute; left:-3px; top:-4px; width:7px; height:7px; border-radius:50%; background:var(--danger); }

/* week groomer filter tabs */
.wk-filter { display:flex; gap:6px; flex-wrap:wrap; padding:8px 10px; border-bottom:1px solid var(--line); background:#fbfcfd; }
.wk-ftab { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:var(--muted); padding:4px 10px; border:1px solid var(--line); border-radius:999px; cursor:pointer; user-select:none; background:#fff; }
.wk-ftab:hover { background:#f1f5f9; }
.wk-ftab.on { background:var(--brand); border-color:var(--brand); color:#fff; }
.wk-fdot { width:9px; height:9px; border-radius:50%; }
.wk-ftab.on .wk-fdot { box-shadow:0 0 0 2px rgba(255,255,255,.6); }
/* week split-mode: per-groomer zone dividers + sub-header labels */
.wk-col.split { background-image:repeating-linear-gradient(to right, transparent, transparent calc(100% / var(--nG) - 1px), var(--line) calc(100% / var(--nG) - 1px), var(--line) calc(100% / var(--nG))); }
.wk-subhead { display:flex; margin-top:2px; }
.wk-sublbl { flex:1 1 0; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.02em; }
.wk-appt[draggable="true"] { cursor:grab; }
.wk-appt[draggable="true"]:active { cursor:grabbing; }
.wk-col.dragover, .dm-col.dragover { background:rgba(37,99,235,.06); }
.dm-appt[draggable="true"] { cursor:grab; }
.dm-appt[draggable="true"]:active { cursor:grabbing; }

/* calendar + waiting list side-by-side layout */
.cal-layout { display:flex; align-items:flex-start; gap:16px; }
.cal-main { flex:1; min-width:0; }
.wl-panel { width:270px; flex:none; padding:14px 14px 8px; }
.wl-head { display:flex; align-items:center; gap:8px; }
.wl-title { font-size:15px; font-weight:700; }
.wl-count { margin-left:auto; background:var(--brand); color:#fff; font-size:12px; font-weight:700; min-width:22px; text-align:center; padding:2px 7px; border-radius:999px; }
.wl-sub { font-size:12px; margin:2px 0 10px; }
.wl-empty { font-size:13px; padding:10px 2px; }
.wl-list { display:flex; flex-direction:column; gap:8px; }
.wl-item { border:1px solid var(--line); border-radius:8px; padding:9px 10px; background:#fafafa; }
.wl-name { font-size:13px; font-weight:600; }
.wl-line { font-size:12px; margin-top:2px; }
.wl-actions { display:flex; gap:6px; margin-top:8px; }
.btn.xs { padding:3px 9px; font-size:12px; }
@media (max-width:900px) { .cal-layout { flex-direction:column; } .wl-panel { width:100%; } }

/* revenue report */
.rep-range { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); }
.rep-range input { padding:6px 9px; border:1px solid var(--line); border-radius:8px; font-size:13px; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:16px; }
.stat { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:14px 16px; }
.stat.accent { border-color:var(--brand); background:#eff6ff; }
.stat-lbl { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.stat-val { font-size:22px; font-weight:700; margin-top:4px; }
tfoot td { border-top:2px solid var(--line); border-bottom:none; }
@media (max-width:760px) { .stats { grid-template-columns:repeat(2,1fr); } }
.print-only { display:none; }
.print-head { margin-bottom:14px; padding-bottom:10px; border-bottom:2px solid #222; }
.print-title { font-size:24px; font-weight:800; letter-spacing:-.01em; }
.print-sub { color:#444; font-size:13px; margin-top:3px; }
.print-summary { flex-wrap:wrap; gap:10px 28px; margin-bottom:16px; }
.print-summary .ps-item { min-width:90px; }
.print-summary .ps-lbl { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#666; }
.print-summary .ps-val { font-size:16px; font-weight:700; margin-top:1px; }
@media print {
  @page { margin:14mm; }
  .sidebar, .page-head, .cal-toolbar, .stats { display:none !important; }
  .app-shell, .main { display:block; }
  .main { padding:0 !important; margin:0 !important; }
  .card { box-shadow:none !important; border:1px solid #ccc; }
  .print-only { display:block !important; }
  .print-summary { display:flex !important; }
  .rep-table { font-size:12px; }
  .rep-table th { color:#333; }
  /* drop the interactive 100% checkbox column on paper */
  .rep-table th:last-child, .rep-table td:last-child { display:none; }
  .rep-table tr { page-break-inside:avoid; }
  .rep-table thead { display:table-header-group; }   /* repeat header each page */
  body { background:#fff; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
.rep-table .rep-group td { background:#f8fafc; font-weight:700; border-top:2px solid var(--line); }
.rep-table .rep-noshow td { color:var(--muted); }
.rep-chk { width:16px; height:16px; cursor:pointer; accent-color:#16a34a; margin:0; }
.tag { display:inline-block; font-size:10px; font-weight:700; background:#fee2e2; color:#991b1b; padding:1px 6px; border-radius:999px; margin-left:4px; vertical-align:middle; }

/* move-to-slot reschedule mode */
.move-banner { display:flex; align-items:center; gap:12px; background:#eff6ff; border:1px solid #bfdbfe; color:#1e3a8a;
  padding:9px 14px; border-radius:8px; margin-bottom:12px; font-size:14px; }
.move-banner button { margin-left:auto; }
.day-appt.dim { opacity:.45; pointer-events:none; }

/* segmented toggle */
.seg { display:inline-flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.seg-btn { border:none; background:#fff; padding:7px 14px; cursor:pointer; font-size:13px; font-weight:600; color:var(--muted); }
.seg-btn.on { background:var(--brand); color:#fff; }

/* language toggle */
.lang-toggle { display:flex; gap:3px; padding:4px 8px; }
.lang-opt { padding:3px 8px; font-size:12px; font-weight:700; color:#94a3b8; cursor:pointer; border-radius:6px; user-select:none; }
.lang-opt:hover { color:#fff; }
.lang-opt.on { background:var(--brand); color:#fff; }
/* on the login card the toggle sits on a light background */
.login-card .lang-opt { color:var(--muted); }
.login-card .lang-opt:hover { color:var(--ink); }
.login-card .lang-opt.on { background:var(--brand); color:#fff; }

/* searchable select (Combo) */
.combo { position: relative; }
.combo-input { width:100%; padding:9px 11px; border:1px solid var(--line); border-radius:8px; font-size:14px; font-family:inherit; background:#fff; }
.combo-clear { position:absolute; right:10px; top:7px; cursor:pointer; color:var(--muted); font-size:18px; line-height:1; }
.combo-list { position:absolute; z-index:60; left:0; right:0; top:calc(100% + 4px); background:#fff; border:1px solid var(--line);
  border-radius:8px; box-shadow:var(--shadow); max-height:240px; overflow:auto; }
.combo-item { padding:9px 11px; cursor:pointer; font-size:14px; }
.combo-item:hover, .combo-item.sel { background:#eff6ff; }
.combo-empty { padding:10px 11px; color:var(--muted); font-size:13px; }

/* warning banner */
.warn-banner { background:#fffbeb; color:#92400e; border:1px solid #fde68a; padding:10px 12px; border-radius:8px; font-size:13px; }
.block-banner { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; padding:10px 12px; border-radius:8px; font-size:13px; }

/* calendar closed-day marker */
.cal-cell.closed { background:#fef2f2; }
.cal-cell.closed.out { background:#fdeaea; }
.cal-closed { float:right; font-size:10px; font-weight:700; color:#b91c1c; background:#fee2e2; padding:1px 6px; border-radius:999px; }

/* day-view blocked time + closed overlay */
.day-block { position:absolute; left:78px; right:8px; background:repeating-linear-gradient(45deg,#fee2e2,#fee2e2 8px,#fecaca 8px,#fecaca 16px);
  color:#991b1b; border:1px solid #fca5a5; border-radius:6px; padding:3px 8px; overflow:hidden; }
.day-block .da-sub { font-size:11px; }
.day-closed-overlay { position:absolute; inset:0; background:repeating-linear-gradient(45deg,rgba(248,113,113,.10),rgba(248,113,113,.10) 10px,rgba(248,113,113,.18) 10px,rgba(248,113,113,.18) 20px); cursor:not-allowed; }

/* =====================================================================
   Mobile / narrow-screen layout
   ===================================================================== */
@media (max-width: 760px) {
  /* Sidebar becomes a sticky top bar with the nav in a scrollable row */
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap;
    padding: 8px 10px; gap: 4px; position: sticky; top: 0; z-index: 40;
  }
  .sidebar .brand { padding: 4px 8px; font-size: 16px; flex: 1 1 auto; }
  .sidebar .brand small { display: inline; margin-left: 6px; font-size: 11px; }
  .nav-item { padding: 8px 12px; }
  .nav-spacer { display: none; }
  .sidebar .signout { padding: 8px 12px; }
  .main { padding: 14px 14px 48px; }

  /* Headers / toolbars wrap instead of overflowing */
  .page-head { flex-wrap: wrap; gap: 10px; }
  .page-head h1 { font-size: 20px; }
  .cal-toolbar { flex-wrap: wrap; }
  .toolbar { flex-wrap: wrap; }
  .search { max-width: none; }

  /* Forms stack to a single column; 16px inputs stop iOS zoom-on-focus */
  .form-grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .field input, .field select, .field textarea { font-size: 16px; }

  /* Wide tables scroll horizontally inside their card */
  .card { overflow-x: auto; }
  table { min-width: 520px; }

  /* Modals go full-width */
  .modal-backdrop { padding: 10px; }
  .modal { max-width: 100% !important; }

  /* Calendar month grid, tighter */
  .cal-dow { padding: 6px 4px; font-size: 10px; }
  .cal-cell { min-height: 66px; padding: 4px 4px; }
  .cal-date { font-size: 12px; }
  .cal-closed { font-size: 8px; padding: 0 4px; }
  .cal-appt { font-size: 10px; padding: 1px 4px; }

  /* Day timeline: narrower time gutter */
  .day-row .t { width: 58px; }
  .day-appt, .day-block { left: 62px; right: 6px; }

  /* Login card fits small screens */
  .login-card { width: 100%; max-width: 400px; }
}

/* day timeline view */
.day-bar { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.day-untimed { margin-bottom:12px; }
.day-appt-inline { background:#eff6ff; border:1px solid #dbeafe; color:var(--ink); padding:6px 10px; border-radius:6px; font-size:13px; margin-bottom:4px; cursor:pointer; }
.day-appt-inline:hover { background:#dbeafe; }
.day-grid { position:relative; border:1px solid var(--line); border-radius:8px; }
.day-row { position:absolute; left:0; right:0; display:flex; border-top:1px solid #eef2f7; }
.day-row.hour { border-top:1px solid #d7dde5; }
.day-row .t { width:74px; flex:none; font-size:11px; color:var(--muted); padding:2px 8px; }
.day-row .slot { flex:1; cursor:pointer; }
.day-row .slot:hover { background:#eff6ff; }
.day-appt { position:absolute; left:78px; right:8px; background:var(--brand); color:#fff; border-radius:6px;
  padding:3px 8px; overflow:hidden; cursor:pointer; box-shadow:var(--shadow); }
.day-appt:hover { filter:brightness(1.08); }
.day-appt.full { background:#16a34a; }
.day-appt.noshow { background:#dc2626; }
.day-appt-inline.full { background:#dcfce7; border-color:#86efac; }
.day-appt-inline.noshow { background:#fee2e2; border-color:#fecaca; }
.day-appt .da-time { font-size:11px; opacity:.9; }
.day-appt .da-main { font-size:12px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.day-appt .da-sub { font-size:11px; opacity:.92; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* per-groomer day columns (resource view) */
.dm { border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.dm-head { display:flex; position:sticky; top:0; z-index:3; background:#fff; border-bottom:1px solid var(--line); }
.dm-gutter-h { flex:0 0 58px; }
.dm-col-h { flex:1 1 0; text-align:center; font-size:12px; font-weight:700; padding:6px 4px; border-left:1px solid var(--line); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-dot { display:inline-block; width:9px; height:9px; border-radius:50%; vertical-align:middle; margin-right:5px; }
.dm-body { display:flex; position:relative; }
.dm-gutter { flex:0 0 58px; position:relative; }
.dm-hlabel { position:absolute; right:6px; font-size:11px; color:var(--muted); transform:translateY(-1px); }
.dm-col { flex:1 1 0; position:relative; border-left:1px solid var(--line); cursor:pointer; }
.dm-col.closed { cursor:not-allowed; }
.dm-hline { position:absolute; left:0; right:0; border-top:1px solid var(--line); }
.dm-hline.half { border-top:1px dashed #eef1f5; }
.dm-appt { position:absolute; border-radius:5px; background:var(--brand); color:#fff; padding:2px 6px; font-size:11px; line-height:1.25; overflow:hidden; box-shadow:0 1px 2px rgba(0,0,0,.18); cursor:pointer; }
.dm-appt:hover { filter:brightness(1.08); z-index:4; }
.dm-appt.noshow { background:#dc2626; }
.dm-appt.full { background:#16a34a; }
.dm-appt.dim { opacity:.45; pointer-events:none; }
.dm-appt .da-time { font-size:10px; opacity:.9; }
.dm-appt .da-main { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-appt .da-sub { font-size:10px; opacity:.92; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-block { position:absolute; border-radius:5px; background:#e2e8f0; color:#475569; font-size:10px; padding:2px 5px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.dm-shop { position:absolute; left:58px; right:0; border-radius:0; background:repeating-linear-gradient(45deg,rgba(248,113,113,.12),rgba(248,113,113,.12) 10px,rgba(248,113,113,.20) 10px,rgba(248,113,113,.20) 20px); color:#b91c1c; font-size:10px; font-weight:600; padding:2px 6px; overflow:hidden; z-index:2; pointer-events:none; }
.dm-closed { position:absolute; left:58px; right:0; top:0; bottom:0; background:repeating-linear-gradient(45deg,rgba(248,113,113,.10),rgba(248,113,113,.10) 10px,rgba(248,113,113,.18) 10px,rgba(248,113,113,.18) 20px); z-index:2; pointer-events:none; }
.dm-now { position:absolute; left:58px; right:0; border-top:2px solid var(--danger); z-index:3; pointer-events:none; }
.dm-now::before { content:''; position:absolute; left:-3px; top:-4px; width:7px; height:7px; border-radius:50%; background:var(--danger); }
