:root {
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --border: #e6e8f0;
  --text: #171a2b;
  --text-muted: #6b7086;
  --text-faint: #9497ab;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef0fe;
  --blue: #3b82f6;
  --blue-bg: #eaf1ff;
  --amber: #d97706;
  --amber-bg: #fef3e2;
  --green: #16a34a;
  --green-bg: #e8f8ee;
  --rose: #e11d48;
  --rose-bg: #fdecef;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23,26,43,.04), 0 8px 24px -12px rgba(23,26,43,.10);
  --shadow-lg: 0 12px 40px -8px rgba(23,26,43,.20);
  font-synthesis: none;
  /* Phone status bar / notch height — populated natively by Capacitor's SystemBars
     plugin (--safe-area-inset-top) or, as a fallback, by the browser's own
     env(safe-area-inset-top). Combining both covers native app + browser PWA use. */
  --safe-top: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: contain;
}

button, input, select, textarea { font-family: inherit; }

img { max-width: 100%; }

/* Touch-friendly targets on touch devices, without bulking up desktop density */
@media (pointer: coarse) {
  .btn-primary, .btn-ghost { min-height: 42px; }
  .btn-icon { padding: 10px; }
  .nav-item { min-height: 44px; }
  select, input, textarea { min-height: 40px; }
  textarea { min-height: 64px; }
  .switch { width: 42px; height: 24px; }
  .switch-track::before { width: 18px; height: 18px; }
  .switch input:checked + .switch-track::before { transform: translateX(18px); }
  button, .nav-item, .btn-icon, .cs-item, .gs-item { touch-action: manipulation; }
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Sidebar — fixed to viewport so it never scrolls with page content */
.sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 26px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.5px;
  box-shadow: 0 6px 16px -4px rgba(79,70,229,.5);
}

.brand-name {
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .8;
}

.nav-item[hidden] { display: none; }

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* Main */
.main {
  margin-left: 240px;
  min-width: 0;
  padding: 32px 40px 60px;
  max-width: 1280px;
}

.view { display: none; }
.view.active { display: block; animation: fadein .25s ease; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.header-actions .btn-ghost { white-space: nowrap; }

.view-header h1 {
  margin: 0;
  font-size: clamp(19px, 4vw, 25px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(79,70,229,.45);
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(.97); filter: brightness(.94); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
  text-align: left;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost:active { transform: scale(.97); background: var(--surface-2); }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 6px;
  color: transparent !important;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton-row td { padding: 13px 12px; }
.skeleton-block { height: 14px; border-radius: 6px; }

/* Pull-to-refresh */
.ptr-indicator {
  display: flex; align-items: center; justify-content: center;
  height: 0; overflow: hidden; color: var(--primary);
  transition: height .15s;
}
.ptr-indicator.active { height: 44px; }
.ptr-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--primary-light); border-top-color: var(--primary);
  animation: ptr-spin .7s linear infinite;
}
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* Error banner with retry */
.error-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--rose-bg); color: var(--rose); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.error-banner button {
  background: var(--rose); color: #fff; border: none; padding: 6px 12px;
  border-radius: 7px; font-weight: 700; font-size: 12px; cursor: pointer; flex-shrink: 0;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }

.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  padding: 6px;
  border-radius: 7px;
  display: inline-flex;
  text-decoration: none;
}
.btn-icon:hover { background: var(--surface-2); color: var(--text); }
.btn-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

button.stat-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s, box-shadow .12s;
}
button.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.stat-hint {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rose);
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.stat-icon svg { width: 19px; height: 19px; fill: currentColor; }

.icon-blue { background: var(--blue-bg); color: var(--blue); }
.icon-amber { background: var(--amber-bg); color: var(--amber); }
.icon-green { background: var(--green-bg); color: var(--green); }
.icon-rose { background: var(--rose-bg); color: var(--rose); }

.stat-value {
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: 'DM Mono', monospace;
  word-break: break-word;
}

.stat-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

/* Dashboard grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 0;
}

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

.panel-header h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

/* Breakdown bars */
.breakdown { display: flex; flex-direction: column; gap: 14px; }
.breakdown-row { display: flex; flex-direction: column; gap: 6px; }
.breakdown-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.breakdown-track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 5px;
  overflow: hidden;
}
.breakdown-fill { height: 100%; border-radius: 5px; }

/* Technician "today" progress panel */
.tech-today-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.tech-today-date { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.tech-today-progress { display: flex; align-items: center; gap: 12px; }
.tech-progress-bar {
  flex: 1; height: 9px; background: var(--surface-2); border-radius: 6px; overflow: hidden;
}
.tech-progress-fill {
  height: 100%; background: var(--primary); border-radius: 6px; transition: width .3s ease;
}
.tech-progress-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

/* Technician dashboard: attendance check-in card */
.tech-attendance-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px;
}
.tech-attendance-card.tac-done { border-color: var(--green); background: var(--green-bg); }
.tech-attendance-card.tac-absent { border-color: var(--rose); background: var(--rose-bg); }
.tac-icon { font-size: 26px; line-height: 1; }
.tac-body { flex: 1; min-width: 160px; }
.tac-title { font-weight: 800; font-size: 14.5px; }
.tac-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.tech-attendance-card #techAttendanceScanBtn { flex: 1 0 100%; }

.tech-attendance-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.tas-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 8px; text-align: center;
}
.tas-count { font-size: 20px; font-weight: 800; }
.tas-label { font-size: 11px; color: var(--text-muted); font-weight: 700; margin-top: 2px; }

/* QR scan modal */
.qr-scan-wrap {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 320px; margin: 0 auto;
  background: #000; border-radius: var(--radius-sm); overflow: hidden;
}
.qr-scan-wrap video { width: 100%; height: 100%; object-fit: cover; }
.qr-scan-frame {
  position: absolute; inset: 14%; border: 3px solid #fff; border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none;
}

/* Settings: attendance QR display */
.checkin-qr-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.checkin-qr-box { background: #fff; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); width: fit-content; }
.checkin-qr-side { display: flex; flex-direction: column; }

/* Settings: recycle bin */
.recycle-bin-list { display: flex; flex-direction: column; gap: 8px; }
.recycle-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.recycle-item-title { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.recycle-item-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.recycle-item-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Technician job cards */
.job-cards { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.job-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.job-card-number { font-family: 'DM Mono', monospace; font-size: 12.5px; color: var(--text-muted); font-weight: 700; }
.job-card-customer { font-size: 16px; font-weight: 800; color: var(--text); }
.job-card-appliance { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }
.job-card-date { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.job-card .quick-actions-row { margin-top: 12px; }
.job-card-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.job-card-actions .btn-ghost { padding: 8px 12px; font-size: 12.5px; }

/* Toolbar */
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-input, select, input, textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-input:focus, select:focus, input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-input { flex: 1; max-width: 380px; }

/* Table */
.table-wrap { overflow-x: auto; min-width: 0; max-width: 100%; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  text-align: left;
  color: var(--text-faint);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }

.cell-muted { color: var(--text-muted); }
.cell-mono { font-family: 'DM Mono', monospace; }

.empty-state {
  text-align: center;
  color: var(--text-faint);
  padding: 46px 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}
button.badge {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-pending { background: var(--amber-bg); color: var(--amber); }
.badge-progress { background: var(--blue-bg); color: var(--blue); }
.badge-completed { background: var(--green-bg); color: var(--green); }
.badge-cancelled { background: #f1f1f4; color: #7a7d8f; }
.badge-paid { background: var(--green-bg); color: var(--green); }
.badge-unpaid { background: var(--rose-bg); color: var(--rose); }
.badge-partial { background: var(--amber-bg); color: var(--amber); }
.badge-available { background: var(--green-bg); color: var(--green); }
.badge-onjob { background: var(--blue-bg); color: var(--blue); }
.badge-offduty { background: #f1f1f4; color: #7a7d8f; }

.row-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* Technician cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
}

.tech-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
}

.tech-name { font-weight: 700; font-size: 15px; }
.tech-specialty { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.tech-phone { color: var(--text-muted); font-size: 12.5px; margin-top: 8px; font-family: 'DM Mono', monospace; }
.tech-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.tech-card .row-actions { position: absolute; top: 14px; right: 14px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 40, .45);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalin .18s ease;
}

.modal.modal-wide { max-width: 720px; }

.job-number-badge {
  margin: 20px 24px 0;
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
}

.record-payment-summary {
  margin: 0 0 16px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-muted);
}
.record-payment-summary strong { color: var(--text); }

@keyframes modalin {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 16px; font-weight: 800; flex: 1; }

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
  padding: 2px 6px;
}
.modal-close:hover { color: var(--text); }

.modal-back-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-back-btn svg { width: 20px; height: 20px; fill: currentColor; }
.modal-back-btn:hover { color: var(--text); background: var(--surface-2); }

form { padding: 22px 24px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.form-grid label.full { grid-column: 1 / -1; }

textarea { resize: vertical; font-family: inherit; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  max-width: min(92vw, 420px);
  text-align: center;
  display: flex; align-items: center; gap: 14px; justify-content: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast-undo-btn {
  background: none; border: none; color: var(--primary-light); font-weight: 800;
  font-size: 13.5px; cursor: pointer; padding: 0; flex-shrink: 0; text-decoration: underline;
}

/* Dark mode */
:root[data-theme="dark"] {
  --bg: #14151f;
  --surface: #1b1d29;
  --surface-2: #23253346;
  --surface-2: #24263380;
  --border: #313349;
  --text: #f0f1f8;
  --text-muted: #a6a9c0;
  --text-faint: #7c7f99;
  --primary-light: #2a2a52;
  --blue-bg: #1c2b4a;
  --amber-bg: #3a2c14;
  --green-bg: #163425;
  --rose-bg: #3a1826;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 40px -8px rgba(0,0,0,.6);
}

/* Theme toggle switch */
.theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border); border-radius: 20px; transition: background .15s;
}
.switch-track::before {
  content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .15s;
}
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::before { transform: translateX(16px); }

/* Sortable table headers */
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--text-muted); }
th[data-sort] .sort-arrow { margin-left: 4px; opacity: .6; }

/* Customer detail modal */
.customer-detail-body { padding: 22px 24px; }
.cd-row { display: flex; gap: 10px; font-size: 13.5px; margin-bottom: 8px; color: var(--text-muted); }
.cd-row strong { color: var(--text); min-width: 70px; }
.cd-stats { display: flex; gap: 12px; margin: 16px 0; }
.cd-stat { flex: 1; background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.cd-stat .v { font-family: 'DM Mono', monospace; font-weight: 700; font-size: 17px; }
.cd-stat .l { font-size: 11px; color: var(--text-faint); font-weight: 600; margin-top: 2px; }
.cd-section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin: 18px 0 8px; }
.cd-job { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.cd-job:last-child { border-bottom: none; }

/* Invoice */
.invoice-body { padding: 24px 28px; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; border-bottom: 2px solid var(--text); padding-bottom: 16px; }
.invoice-head h2 { margin: 0 0 4px; font-size: 20px; }
.invoice-head .inv-meta { text-align: right; font-size: 12.5px; color: var(--text-muted); }
.invoice-cols { display: flex; justify-content: space-between; margin-bottom: 18px; gap: 20px; }
.invoice-cols .col-title { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.invoice-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.invoice-table th, .invoice-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.invoice-table tfoot td { border-top: 2px solid var(--text); border-bottom: none; padding-top: 12px; }
.invoice-total { text-align: right; font-size: 16px; font-weight: 800; margin-top: 10px; }
.invoice-status { display: inline-block; margin-top: 12px; }

@media print {
  @page { size: A4; margin: 8mm; }
  html, body { height: auto !important; margin: 0 !important; }
  .no-print { display: none !important; }
  .modal-overlay { position: static; background: none; padding: 0; min-height: 0; height: auto; display: block; }
  .modal { box-shadow: none; max-width: 100%; max-height: none; border-radius: 0; margin: 0; }
  body * { visibility: hidden; }
  .invoice-body, .invoice-body * { visibility: visible; }
  .invoice-body {
    position: absolute; top: 0; left: 0; width: 100%;
    padding: 4px 6px; font-size: 15px;
  }
  .invoice-head { margin-bottom: 14px; padding-bottom: 12px; }
  .invoice-head h2 { font-size: 22px; }
  .invoice-cols { margin-bottom: 14px; }
  .invoice-table { margin: 12px 0; }
  .invoice-table th, .invoice-table td { padding: 9px 10px; font-size: 14px; }
  .invoice-table tr { page-break-inside: avoid; }
  .invoice-total { font-size: 16px; margin-top: 8px; }
  .invoice-status { margin-top: 10px; }
}

.att-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}
.att-progress-track {
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border-radius: 5px;
  overflow: hidden;
}
.att-progress-fill { height: 100%; border-radius: 5px; }
.att-progress-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  min-width: 38px;
  text-align: right;
}

/* Quick contact actions (call / whatsapp / email / navigate) */
.quick-actions-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.quick-action-btn:active { transform: scale(.96); }
.quick-action-btn svg { width: 16px; height: 16px; fill: currentColor; }
.quick-action-btn.qa-call { color: var(--green); }
.quick-action-btn.qa-whatsapp { color: #25d366; }
.quick-action-btn.qa-email { color: var(--primary); }
.quick-action-btn.qa-navigate { color: var(--blue); }
.quick-action-btn:hover { background: var(--border); }

/* Photo capture grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb .photo-remove {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}

/* Signature pad */
.signature-pad-wrap {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin-top: 8px;
  touch-action: none;
}
.signature-pad-wrap canvas {
  width: 100%;
  height: 140px;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.signature-pad-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 13px; font-weight: 600; pointer-events: none;
}
.signature-actions {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
}

/* Attendance */
.badge-present { background: var(--green-bg); color: var(--green); }
.badge-absent { background: var(--rose-bg); color: var(--rose); }
.badge-halfday { background: var(--amber-bg); color: var(--amber); }
.badge-leave { background: var(--blue-bg); color: var(--blue); }
.badge-notmarked { background: #f1f1f4; color: #7a7d8f; }

.attendance-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.attendance-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
}
.attendance-chip .dot { width: 8px; height: 8px; border-radius: 50%; }

#attendanceMarkTable select,
#attendanceMarkTable input[type="time"],
#attendanceMarkTable input[type="text"] {
  padding: 6px 8px;
  font-size: 12.5px;
}
#attendanceMarkTable input[type="text"] { width: 140px; }

/* Parts / inventory */
.badge-instock { background: var(--green-bg); color: var(--green); }
.badge-lowstock { background: var(--amber-bg); color: var(--amber); }
.badge-outstock { background: var(--rose-bg); color: var(--rose); }

/* Dashboard: low stock alert cards */
.low-stock-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.low-stock-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--surface-2);
}
.lsc-name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.lsc-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.lsc-qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.lsc-qty { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.lsc-restock-btn { width: 100%; margin-top: 10px; padding: 7px 10px; font-size: 12.5px; }

.parts-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.parts-add-row select { flex: 1; }

.price-choice-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  background: var(--primary-light); border-radius: var(--radius-sm);
  padding: 9px 12px; margin: -2px 0 10px;
}
.price-choice-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.price-choice-opt { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; cursor: pointer; }
.price-choice-opt input { margin: 0; }
.price-choice-opt .cell-mono { color: var(--text-muted); font-weight: 500; }

.parts-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.parts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
}
.parts-row.parts-row-error { background: var(--rose-bg); color: var(--rose); }
.parts-row .pr-remove {
  background: none; border: none; cursor: pointer; color: var(--text-faint); font-size: 16px; line-height: 1; padding: 0 4px;
}
.parts-row.parts-row-error .pr-remove { color: var(--rose); }

.parts-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 2px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* Job customer search */
.customer-search-wrap { position: relative; }
.customer-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
  z-index: 60;
  padding: 6px;
}
.cs-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
}
.cs-item:hover { background: var(--surface-2); }
.cs-item .cs-sub { color: var(--text-faint); font-size: 11.5px; margin-top: 1px; }
.cs-empty {
  padding: 10px 8px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
}
.cs-add-new {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  padding: 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  margin-top: 4px;
}
.cs-add-new:hover { background: var(--primary); color: #fff; }

.selected-customer-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
}
.selected-customer-chip .scc-name { font-weight: 700; }
.selected-customer-chip .scc-sub { color: var(--text-faint); font-size: 12px; }
.selected-customer-chip button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}

/* Login overlay */
.login-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.login-overlay.hidden { display: none; }

.login-box {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
}
.login-box h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
}
.login-caveat {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  margin: 0 0 22px;
  line-height: 1.5;
}
.login-box form { padding: 0; display: flex; flex-direction: column; gap: 14px; }
.login-box label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.login-error {
  background: var(--rose-bg);
  color: var(--rose);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
}

/* Global search */
.global-search { position: relative; padding: 0 4px 16px; }
.global-search input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
}
.global-search-results {
  position: absolute;
  top: calc(100% - 12px);
  left: 4px;
  right: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
  padding: 6px;
}
.gs-group-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
  padding: 8px 8px 4px;
}
.gs-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.gs-item:hover { background: var(--surface-2); }
.gs-item .gs-sub { color: var(--text-faint); font-size: 11.5px; margin-top: 1px; }
.gs-empty { padding: 14px 8px; text-align: center; color: var(--text-faint); font-size: 12.5px; }

/* Current user row */
.current-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px 12px;
}
.current-user-name { font-size: 13px; font-weight: 700; }
.current-user-role { font-size: 11px; color: var(--text-faint); font-weight: 600; }

.sync-status-row { padding: 0 8px 10px; }
.sync-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.sync-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sync-status.sync-notmarked { background: #f1f1f4; color: #7a7d8f; }
.sync-status.sync-present { background: var(--green-bg); color: var(--green); }
.sync-status.sync-halfday { background: var(--amber-bg); color: var(--amber); }
.sync-status.sync-absent { background: var(--rose-bg); color: var(--rose); }

/* Messaging icon buttons */
.btn-icon.icon-whatsapp:hover { color: #25d366; }
.btn-icon.icon-sms:hover { color: var(--blue); }
.btn-icon.icon-email:hover { color: var(--primary); }

/* ---------- Mobile app shell: top bar, drawer, bottom nav, FAB ---------- */
.mobile-topbar { display: none; }
.drawer-backdrop { display: none; }
.bottom-nav { display: none; }
.fab { display: none; }
.drawer-close-btn { display: none; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }

  .mobile-topbar {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    position: sticky; top: 0; z-index: 45;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: calc(8px + var(--safe-top)) 6px 8px;
    gap: 4px;
  }
  .topbar-side { display: flex; align-items: center; gap: 2px; }
  .topbar-side-start { justify-self: start; }
  .topbar-side-end { justify-self: end; }
  .topbar-icon-btn {
    background: none; border: none; padding: 9px; border-radius: 50%;
    color: var(--text); display: flex; cursor: pointer; transition: background .15s;
  }
  .topbar-icon-btn:active { background: var(--surface-2); }
  .topbar-icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
  .topbar-title {
    font-weight: 800; font-size: 15.5px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px;
  }

  .sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh; width: 280px;
    max-width: 84vw;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 200; flex-direction: column; overflow-y: auto;
    border-right: 1px solid var(--border);
    padding-top: var(--safe-top);
  }
  .sidebar.drawer-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .drawer-close-btn {
    display: inline-flex; margin-left: auto; background: none; border: none;
    color: var(--text-muted); padding: 6px; border-radius: 50%; cursor: pointer;
  }
  .drawer-close-btn svg { width: 20px; height: 20px; fill: currentColor; }

  .drawer-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(15,17,30,.45);
    z-index: 190; opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .drawer-backdrop.open { opacity: 1; pointer-events: auto; }

  .main { margin-left: 0; padding: 16px; padding-bottom: 96px; }
  .brand { padding: 6px 8px 22px; }
  .nav { flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 3px; }
  .nav-item { white-space: normal; }
  .global-search { order: 0; padding: 0 4px 16px; }
  .sidebar-footer { display: flex; }

  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
    background: var(--surface); border-top: 1px solid var(--border);
    z-index: 50; padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  }
  body.modal-open .bottom-nav,
  body.modal-open .fab,
  body.modal-open .mobile-topbar { display: none; }
  .bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; background: none; border: none; color: var(--text-faint);
    font-size: 10.5px; font-weight: 700; cursor: pointer; padding: 6px 0;
    transition: color .15s;
  }
  .bottom-nav-item svg { width: 21px; height: 21px; fill: currentColor; }
  .bottom-nav-item.active { color: var(--primary); }
  .bottom-nav-item[hidden] { display: none; }

  .fab {
    display: flex; position: fixed; right: 16px; bottom: 76px; z-index: 45;
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--primary); color: #fff; border: none;
    align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 6px 16px -2px rgba(79,70,229,.5);
    transition: transform .12s, background .15s;
  }
  .fab:active { transform: scale(.92); background: var(--primary-dark); }
  .fab svg { width: 26px; height: 26px; fill: currentColor; }
}

/* ---------- Notification bell + panel ---------- */
.notif-bell-btn { position: relative; }
.notif-bell-btn svg { fill: currentColor; }
.desktop-notif-btn { display: none; }

@media (min-width: 901px) {
  .desktop-notif-btn {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: calc(18px + var(--safe-top)); right: 26px; z-index: 60;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer; box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.08));
    transition: background .15s, color .15s;
  }
  .desktop-notif-btn:hover { background: var(--surface-2); color: var(--text); }
  .desktop-notif-btn svg { width: 20px; height: 20px; }
}

.notif-badge {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; background: var(--rose, #e11d48); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
}

.notif-panel {
  display: none; position: fixed; top: calc(66px + var(--safe-top)); right: 26px; z-index: 90;
  width: 340px; max-width: calc(100vw - 32px); max-height: 70vh;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.18));
  flex-direction: column; overflow: hidden;
}
.notif-panel.open { display: flex; }
body.modal-open .notif-panel,
body.modal-open .notif-bell-btn { display: none !important; }

.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.notif-panel-header h3 { margin: 0; font-size: 14.5px; }
.notif-panel-header-actions { display: flex; align-items: center; gap: 12px; }
.notif-list { overflow-y: auto; }
.notif-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid var(--border); padding: 11px 14px; cursor: pointer;
  transition: background .15s;
  touch-action: pan-y;
  user-select: none;
  position: relative;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--primary-light); }
.notif-item-title { font-weight: 700; font-size: 13px; color: var(--text); }
.notif-item-msg { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.notif-item-time { font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.notif-panel .empty-state { padding: 24px 14px; text-align: center; color: var(--text-muted); font-size: 13px; }

@media (max-width: 900px) {
  .notif-panel { top: calc(54px + var(--safe-top)); right: 8px; left: 8px; width: auto; max-width: none; }
}

@media (max-width: 640px) {
  /* 16px minimum prevents iOS/WebKit browsers auto-zooming on input focus */
  .search-input, select, input, textarea { font-size: 16px; }

  .main { padding: 12px; padding-bottom: 32px; }
  .view-header { flex-direction: column; align-items: stretch; gap: 10px; }
  .view-header h1 { font-size: 21px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .view-header .btn-primary { width: auto; align-self: flex-start; }
  .header-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .header-actions .btn-primary { width: 100%; }

  .toolbar { flex-wrap: wrap; }
  .search-input { max-width: none; flex: 1 1 100%; }
  .toolbar select { flex: 1 1 auto; }

  .form-grid { grid-template-columns: 1fr; }
  .modal { max-width: 100%; border-radius: 14px; }
  .modal.modal-wide { max-width: 100%; }
  .modal-header { padding: 16px 18px; }
  form { padding: 16px 18px; }
  .modal-actions { flex-direction: column-reverse; gap: 8px; }
  .modal-actions button { width: 100%; }

  table { font-size: 12.5px; }
  thead th { padding: 8px 8px; }
  tbody td { padding: 10px 8px; }
  tbody td.cell-muted { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px; }

  .card-grid { grid-template-columns: 1fr; }

  .customer-search-wrap .customer-search-results,
  .global-search-results { max-height: 45vh; }

  .parts-add-row { flex-wrap: wrap; }
  .parts-add-row select { flex: 1 1 100%; }
  .parts-add-row input, .parts-add-row button { flex: 1 1 auto; }

  .att-progress { min-width: 0; }
  .login-box { padding: 24px 20px; }
  .cd-stats { flex-wrap: wrap; }
  .dash-grid, .stat-grid { row-gap: 12px; }
}

@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 15px; }
  .view-header h1 { font-size: 18px; }
  .login-box { padding: 20px 16px; }
  .modal-header h3 { font-size: 14.5px; }
  form { padding: 14px; }
}
