/* ============================================================
   ON POINT HOME SERVICES — BASE STYLES
   Clean iOS light theme — white background, black UI
   ============================================================ */

:root {
  /* Backgrounds — iOS light system */
  --color-bg:        #F2F2F7;
  --color-surface:   #FFFFFF;
  --color-surface-2: #F2F2F7;
  --color-surface-3: #E5E5EA;
  --color-border:    rgba(0,0,0,0.08);
  --color-border-2:  rgba(0,0,0,0.13);

  /* Brand — pure black */
  --color-primary:      #000000;
  --color-primary-dark: #1C1C1E;
  --color-primary-glow: rgba(0,0,0,0.06);

  /* Semantics */
  --color-success:      #34C759;
  --color-success-dark: #28A745;
  --color-warning:      #FF9500;
  --color-error:        #FF3B30;
  --color-error-dark:   #D70015;

  /* Text — iOS label system */
  --color-text:       #000000;
  --color-text-muted: #6E6E73;
  --color-text-faint: #AEAEB2;

  /* Status — iOS system colors */
  --s-new:        #007AFF;
  --s-scheduled:  #5856D6;
  --s-inprogress: #FF9500;
  --s-closed:     #34C759;
  --s-paid:       #30D158;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;

  /* Shape */
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Layout */
  --header-h: 58px;
  --nav-h:    72px;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-xs:  11px;
  --font-sm:  13px;
  --font-md:  15px;
  --font-lg:  17px;
  --font-xl:  21px;
  --font-xxl: 27px;

  /* Shadows — light bg friendly */
  --shadow-xs:   0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.14);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07), 0 0 0 0.5px rgba(0,0,0,0.05);

  /* Glass */
  --glass-bg:     rgba(255,255,255,0.88);
  --glass-blur:   blur(24px) saturate(180%);
  --glass-border: rgba(0,0,0,0.1);

  /* Safe areas */
  --safe-top:    env(safe-area-inset-top,    0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left,   0px);
  --safe-right:  env(safe-area-inset-right,  0px);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  position: fixed;
  top: 0; left: 0;
  -webkit-font-smoothing: antialiased;
}

input, textarea, select, button { font-family: var(--font); }
a { color: var(--color-primary); text-decoration: none; }

/* ── APP SHELL ───────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* ── HEADER ──────────────────────────────────────────────── */
#app-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 10px;
  padding-left:  calc(var(--sp-md) + var(--safe-left));
  padding-right: calc(var(--sp-md) + var(--safe-right));
  padding-top:   calc(var(--safe-top) + 8px);
  min-height: calc(var(--header-h) + var(--safe-top));
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 0.5px solid var(--glass-border);
  z-index: 50;
  position: relative;
}

.header-left  { width: 72px; display: flex; align-items: center; }
.header-right { min-width: 72px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; position: relative; }
.header-center { flex: 1; text-align: center; }

#app-header h1 {
  font-size: var(--font-lg);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--color-text);
  line-height: 1;
}

#header-brand { display: flex; align-items: center; }

/* Logo is black on white — no filter needed */
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

@keyframes spin { to { transform: rotate(360deg); } }
.syncing #sync-icon { display: inline-block; animation: spin 0.8s linear infinite; }

/* ── MAIN CONTENT ────────────────────────────────────────── */
#main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: var(--sp-md);
  padding-bottom: calc(var(--sp-xl) + var(--safe-bottom) + 18px);
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.view.active {
  display: block;
  opacity: 1;
  transform: none;
}

/* ── BOTTOM NAV ──────────────────────────────────────────── */
#bottom-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  padding-left:  var(--safe-left);
  padding-right: var(--safe-right);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 0.5px solid var(--glass-border);
  z-index: 50;
  position: relative;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--color-text-faint);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: color 0.18s;
  min-width: 52px;
  min-height: 52px;
  position: relative;
  flex: 1;
}

.nav-item::before {
  content: '';
  position: absolute;
  inset: 4px 6px;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background 0.18s;
}

.nav-item.active { color: var(--color-primary); }
.nav-item.active::before { background: rgba(0,0,0,0.05); }
.nav-item:active { opacity: 0.5; }

.nav-icon  { font-size: 22px; line-height: 1; position: relative; z-index: 1; }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: 0.2px; position: relative; z-index: 1; }

.nav-add {
  background: #000000 !important;
  color: #ffffff !important;
  border-radius: 50%;
  width: 54px; height: 54px;
  min-width: 54px;
  flex: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.14) !important;
  padding: 0;
  margin-bottom: 6px;
  transition: transform 0.14s cubic-bezier(0.34,1.6,0.64,1), box-shadow 0.15s !important;
}
.nav-add::before { display: none; }
.nav-add .nav-icon { font-size: 30px; font-weight: 200; }
.nav-add:active {
  transform: scale(0.91) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.1) !important;
  opacity: 1 !important;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  min-height: 50px;
  padding: 0 var(--sp-lg);
  border-radius: var(--radius-md);
  border: none;
  font-size: var(--font-md);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.12s cubic-bezier(0.34,1.5,0.64,1);
  -webkit-appearance: none;
  user-select: none;
  letter-spacing: -0.1px;
}
.btn:active  { transform: scale(0.96); opacity: 0.8; }
.btn:disabled { opacity: 0.3; pointer-events: none; }

.btn-full      { width: 100%; }
.btn-primary   { background: #000000; color: #ffffff; }
.btn-secondary { background: var(--color-surface-3); color: var(--color-text); }
.btn-success   { background: var(--color-success);   color: #fff; box-shadow: 0 2px 12px rgba(52,199,89,0.28); }
.btn-danger    { background: var(--color-error);     color: #fff; }
.btn-warning   { background: var(--color-warning);   color: #fff; }
.btn-ghost     { background: transparent; border: 1.5px solid var(--color-border-2); color: var(--color-text); }

.btn-sm { min-height: 38px; font-size: var(--font-sm); padding: 0 var(--sp-md); border-radius: var(--radius-sm); }

.btn-icon {
  background: none;
  border: none;
  color: var(--color-text-muted);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.btn-icon:active { background: rgba(0,0,0,0.06); color: var(--color-text); }

.btn-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: var(--font-sm);
  font-weight: 700;
  cursor: pointer;
  padding: var(--sp-xs) var(--sp-sm);
}

/* ── FORM FIELDS ─────────────────────────────────────────── */
.field-group { margin-bottom: 10px; }

.field-label {
  display: block;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 5px;
  letter-spacing: 0.1px;
  text-transform: uppercase;
}

.field-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.field-input:focus {
  outline: none;
  border-color: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.field-input::placeholder { color: var(--color-text-faint); }

select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select.field-input option { background: #fff; color: #000; }

.field-textarea {
  min-height: 64px;
  padding: 10px 12px;
  resize: none;
  line-height: 1.5;
}

.field-color { padding: 6px; cursor: pointer; min-height: 44px; }
.field-row   { display: flex; gap: var(--sp-sm); }

/* Section divider inside forms */
.form-section-divider {
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--color-text-faint);
  margin: var(--sp-md) 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--color-border);
}

/* Currency input */
.currency-input {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.currency-input:focus-within {
  border-color: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.currency-symbol {
  padding: 0 12px 0 16px;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: var(--font-md);
  flex-shrink: 0;
  user-select: none;
}
.currency-field {
  flex: 1;
  min-height: 48px;
  background: transparent;
  border: none;
  padding: 0 var(--sp-md) 0 0;
  color: var(--color-text);
  font-size: var(--font-md);
}
.currency-field:focus { outline: none; }

/* Toggle */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: var(--color-text);
}
.toggle-checkbox { display: none; }
.toggle-track {
  width: 46px; height: 28px;
  background: var(--color-surface-3);
  border-radius: 14px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.22s cubic-bezier(0.34,1.4,0.64,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.toggle-checkbox:checked + .toggle-track { background: var(--color-success); }
.toggle-checkbox:checked + .toggle-track::after { transform: translateX(18px); }

/* ── SECTION LABELS ──────────────────────────────────────── */
.section-title {
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-sm);
  margin-top: var(--sp-lg);
}
.section-title:first-child { margin-top: 0; }

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-sm);
}

/* ── MODALS ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 201;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--sp-lg) + var(--safe-bottom));
  box-shadow: 0 -8px 40px rgba(0,0,0,0.14);
  animation: modalUp 0.28s cubic-bezier(0.34,1.1,0.64,1);
}

.modal-photo-modal { max-height: 98vh; max-height: 98dvh; }
.modal-confirm     { max-height: 60vh; max-height: 60dvh; }

@keyframes modalUp {
  from { transform: translateY(100%); opacity: 0.7; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-handle {
  width: 42px; height: 5px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-full);
  margin: 12px auto 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md);
  border-bottom: 0.5px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 1;
}

.modal-title  { font-size: var(--font-lg); font-weight: 700; letter-spacing: -0.3px; }
.modal-body   { padding: var(--sp-md); }
.modal-actions { display: flex; gap: var(--sp-sm); margin-top: var(--sp-md); }

/* ── TOASTS ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top) + var(--sp-sm));
  left: var(--sp-md); right: var(--sp-md);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  pointer-events: none;
}

.toast {
  padding: 13px var(--sp-md);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.22s cubic-bezier(0.34,1.4,0.64,1);
  line-height: 1.4;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}
.toast-out { animation: toastOut 0.18s ease-in forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

.toast-success { background: #34C759; color: #fff; }
.toast-error   { background: #FF3B30; color: #fff; }
.toast-info    { background: #1C1C1E; color: #F2F2F7; }
.toast-warning { background: #FF9500; color: #fff; }

/* ── SPINNER ─────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(0,0,0,0.15);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ── EMPTY STATES ────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl) var(--sp-md);
  gap: var(--sp-sm);
  text-align: center;
}
.empty-icon  { font-size: 44px; opacity: 0.25; }
.empty-title { font-size: var(--font-md); font-weight: 700; color: var(--color-text-muted); }
.empty-sub   { font-size: var(--font-sm); color: var(--color-text-faint); line-height: 1.5; }

.empty-state-sm {
  padding: var(--sp-md);
  text-align: center;
  font-size: var(--font-sm);
  color: var(--color-text-faint);
}

/* ── UTILITIES ───────────────────────────────────────────── */
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════
   DARK MODE — [data-theme="dark"] on <html>
   ══════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --color-bg:        #0F172A;
  --color-surface:   #1E293B;
  --color-surface-2: #1E293B;
  --color-surface-3: #334155;
  --color-border:    rgba(255,255,255,0.08);
  --color-border-2:  rgba(255,255,255,0.14);

  --color-primary:      #F8FAFC;
  --color-primary-dark: #E2E8F0;
  --color-primary-glow: rgba(248,250,252,0.06);

  --color-text:       #F1F5F9;
  --color-text-muted: #94A3B8;
  --color-text-faint: #475569;

  --glass-bg:     rgba(15,23,42,0.94);
  --glass-border: rgba(255,255,255,0.07);

  --shadow-card: 0 2px 16px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(255,255,255,0.05);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .btn-primary {
  background: #F8FAFC;
  color: #0F172A;
}

[data-theme="dark"] .nav-add {
  background: #F8FAFC !important;
  color: #0F172A !important;
}

[data-theme="dark"] select.field-input option {
  background: #1E293B;
  color: #F1F5F9;
}

[data-theme="dark"] .job-card {
  background: var(--color-surface);
}

[data-theme="dark"] .settings-card {
  background: var(--color-surface);
}

/* ── PULL-TO-REFRESH ─────────────────────────────────────── */
.ptr-indicator {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  width: 40px; height: 40px;
  background: var(--color-surface);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: transform 0.28s cubic-bezier(0.34,1.2,0.64,1), opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}

.ptr-indicator.ptr-ready,
.ptr-indicator.ptr-loading {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.ptr-spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--color-border-2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
}

.ptr-indicator.ptr-loading .ptr-spinner {
  animation: spin 0.65s linear infinite;
}

/* ── JOBS TOP BAR ────────────────────────────────────────── */
.jobs-top-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-sm);
}

.view-toggle-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 18px;
  transition: background 0.15s, color 0.15s;
}
.view-toggle-btn:active { background: var(--color-surface-3); color: var(--color-text); }

/* ── FOLLOW-UP STATUS PILL ───────────────────────────────── */
.status-pill.s-followup  { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.15); }
.status-pill.s-followup .pill-count { color: var(--color-error); }
.status-pill.s-followup .pill-label { color: var(--color-error); }

/* ── DISPATCHER / ROLE DASHBOARD CARDS ──────────────────── */
.dash-role-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.dash-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.dash-role-badge {
  font-size: 11px;
  font-weight: 800;
  background: var(--color-surface-3);
  color: var(--color-text-muted);
  padding: 2px 8px;
  border-radius: 9999px;
}

.dash-alert-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-warning);
  background: rgba(255,149,0,0.1);
  border: 1px solid rgba(255,149,0,0.2);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-bottom: 10px;
  text-align: center;
}

/* ── URGENT JOB ROW (dispatcher) ────────────────────────── */
.urgent-job-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s;
}
.urgent-job-row:last-child { border-bottom: none; }
.urgent-job-row:active     { background: var(--color-surface-2); }

.urgent-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-error);
  flex-shrink: 0;
}

.urgent-info   { flex: 1; min-width: 0; }
.urgent-name   { font-size: 13px; font-weight: 700; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.urgent-addr   { font-size: 11px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.urgent-wa     { flex-shrink: 0; background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.2); color: #25D366; border-radius: var(--radius-sm); }

/* ── TECH TODAY CARDS ────────────────────────────────────── */
.tech-today-list { padding: 4px 0; }

.tech-today-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s;
  gap: 10px;
}
.tech-today-card:last-child { border-bottom: none; }
.tech-today-card:active     { background: var(--color-surface-2); }

.ttc-left  { flex: 1; min-width: 0; }
.ttc-right { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.ttc-time  { font-size: 12px; font-weight: 700; color: var(--color-text-muted); margin-bottom: 2px; }
.ttc-name  { font-size: 14px; font-weight: 700; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttc-addr  { font-size: 11px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ttc-btn   { min-height: 32px; padding: 0 12px; font-size: 12px; }

/* ── DETAIL ACTION BAR — warn variant ───────────────────── */
.dab-warn {
  background: rgba(255,149,0,0.1);
  border-color: rgba(255,149,0,0.2);
  color: var(--color-warning) !important;
}

/* ── PRINT ───────────────────────────────────────────────── */
.print-area { display: none; }

@media print {
  body { background: #fff; color: #000; overflow: visible; position: static; }
  #app { display: none; }
  .print-area {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111; padding: 28px; max-width: 600px; margin: 0 auto;
  }
  .print-header { text-align: center; border-bottom: 3px solid #111; padding-bottom: 16px; margin-bottom: 20px; }
  .print-company   { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
  .print-subtitle  { font-size: 12px; color: #666; margin-top: 2px; }
  .print-job-id    { font-size: 11px; color: #888; font-family: monospace; margin-top: 8px; }
  .print-section   { margin-bottom: 18px; }
  .print-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: #666; border-bottom: 1px solid #ddd; padding-bottom: 4px; margin-bottom: 10px; }
  .print-row       { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px solid #f4f4f4; }
  .print-label     { color: #555; }
  .print-value     { font-weight: 600; text-align: right; }
  .print-total-row { border-top: 2px solid #111; padding-top: 8px; margin-top: 4px; font-size: 15px; font-weight: 700; }
  .print-footer    { margin-top: 24px; text-align: center; font-size: 11px; color: #999; border-top: 1px solid #eee; padding-top: 12px; }
  .print-status-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; background: #111; color: #fff; margin-bottom: 8px; }
  .print-notes     { background: #f9f9f9; border: 1px solid #eee; border-radius: 6px; padding: 10px; font-size: 13px; line-height: 1.5; }
  .print-zelle-memo  { background: #FFF8E1; border: 2px solid #FFD54F; border-radius: 8px; padding: 14px; font-size: 14px; line-height: 1.6; margin-top: 10px; }
  .print-zelle-title { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #795548; margin-bottom: 6px; }
}
