/* ===== T&T MOWING PORTAL CSS ===== */
/* Green professional theme for lawn care business portal */

:root {
  --bg: #f7f9f7;
  --surface: #ffffff;
  --surface-alt: #f0f4f0;
  --accent: #2d7a3e;
  --accent-light: #4a9d5a;
  --accent-hover: #256633;
  --accent-bg: #e8f5e9;
  --accent-bg-hover: #d4ebd6;
  --warm: #e67e22;
  --warm-light: #f0ad4e;
  --warm-bg: #fef3e2;
  --danger: #c0392b;
  --danger-bg: #fce8e6;
  --text: #1a2e1a;
  --text-2: #4a5a4a;
  --text-muted: #8a9a8a;
  --border: #d8e0d8;
  --border-subtle: #e5e9e5;
  --r-std: 8px;
  --r-panel: 12px;
  --r-btn: 8px;
  --r-pill: 9999px;
  --sidebar-w: 240px;
  --topbar-h: 56px;
  --font-head: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a1a 0%, #2d7a3e 100%);
}
.login-page::before {
  content: "";
  position: fixed;
  top: -100px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 157, 90, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.login-page::after {
  content: "";
  position: fixed;
  bottom: -120px;
  left: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 122, 62, 0.1) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.login-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: var(--r-panel);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.login-logo .logo-icon {
  font-size: 30px;
}
.login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 36px;
}
.login-form { display: flex; flex-direction: column; gap: 20px; }
.login-form .flash-error {
  background: var(--warm-bg);
  border: 1px solid var(--warm-light);
  border-radius: var(--r-std);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--warm);
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.form-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-std);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.12);
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--r-btn);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-btn);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}
.btn-ghost:hover {
  background: var(--accent-bg);
  text-decoration: none;
}
.btn-venmo {
  background: #3d95ce;
  color: #ffffff;
  border: none;
  border-radius: var(--r-btn);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-venmo:hover {
  background: #2d7aa8;
  text-decoration: none;
}

/* ===== DASHBOARD LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: #1a3a1a;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  flex-shrink: 0;
}
.sidebar-logo {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-logo .logo-icon {
  font-size: 22px;
}
.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.sidebar-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.sidebar-nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}
.sidebar-nav a.active {
  color: #ffffff;
  border-left-color: var(--accent-light);
  background: rgba(74, 157, 90, 0.15);
}
.sidebar-nav .nav-section-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 24px 6px;
  font-weight: 600;
}
.sidebar-user {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-user-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  border-radius: var(--r-std);
  padding: 6px 8px;
  margin: -6px -8px;
  transition: background 0.2s;
  text-decoration: none;
}
.sidebar-user-link:hover {
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}
.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main content area */
.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top bar */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-logout {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}
.topbar-logout:hover { color: var(--accent); text-decoration: none; }

/* Content */
.content {
  padding: 32px;
  max-width: 1100px;
  width: 100%;
}

/* ===== MONO LABELS ===== */
.mono-label {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
  font-weight: 600;
}

/* ===== HEADINGS ===== */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
h1 { font-size: 28px; margin-bottom: 8px; }
h2 { font-size: 22px; margin-bottom: 8px; }
h3 { font-size: 18px; margin-bottom: 6px; }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-panel);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Metric cards row */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-panel);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.metric-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.metric-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.metric-value.warm { color: var(--warm); }
.metric-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}
.metric-sub.accent { color: var(--accent); }
.metric-sub.warm { color: var(--warm); }

/* ===== FORM GRID ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ===== TABLES ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead th {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  background: var(--surface-alt);
  font-weight: 600;
}
.data-table tbody td {
  font-size: 14px;
  color: var(--text);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table tbody tr {
  transition: background 0.15s;
}
.data-table tbody tr:hover {
  background: var(--accent-bg);
}
.data-table a {
  color: var(--accent);
  font-weight: 500;
}
.data-table a:hover { text-decoration: underline; }

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  color: var(--text-2);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.badge.active { color: var(--accent); background: var(--accent-bg); }
.badge.active::before { background: var(--accent); }
.badge.paused { color: var(--warm); background: var(--warm-bg); }
.badge.paused::before { background: var(--warm); }
.badge.cancelled { color: var(--danger); background: var(--danger-bg); }
.badge.cancelled::before { background: var(--danger); }
.badge.paid { color: var(--accent); background: var(--accent-bg); }
.badge.paid::before { background: var(--accent); }
.badge.pending { color: var(--warm); background: var(--warm-bg); }
.badge.pending::before { background: var(--warm); }
.badge.overdue { color: var(--danger); background: var(--danger-bg); }
.badge.overdue::before { background: var(--danger); }

/* ===== VENMO BANNER ===== */
.venmo-banner {
  background: linear-gradient(135deg, #3d95ce 0%, #2d7aa8 100%);
  border-radius: var(--r-panel);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  color: #ffffff;
}
.venmo-banner-text { flex: 1; }
.venmo-banner-text h3 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 4px;
}
.venmo-banner-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.venmo-banner .btn-venmo {
  background: #ffffff;
  color: #3d95ce;
}
.venmo-banner .btn-venmo:hover {
  background: #f0f0f0;
  color: #2d7aa8;
}

/* ===== ACTIVITY FEED ===== */
.activity-feed { display: flex; flex-direction: column; gap: 12px; }
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-dot.warm { background: var(--warm); }
.activity-text { flex: 1; }
.activity-text-main { font-size: 14px; color: var(--text); }
.activity-text-time { font-size: 12px; color: var(--text-muted); }

/* ===== SECTION ===== */
.section-gap { margin-bottom: 40px; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

/* ===== INVOICE BUILDER ===== */
.invoice-builder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.builder-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}
.builder-sidebar-header h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.service-picker {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-panel);
  padding: 12px;
  overflow-y: auto;
  max-height: 60vh;
  box-shadow: var(--shadow-sm);
}
.service-category-group {
  margin-bottom: 16px;
}
.service-category-group:last-child {
  margin-bottom: 0;
}
.service-category-label {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 4px 8px 8px;
}
.service-picker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-std);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
  margin-bottom: 4px;
}
.service-picker-item:hover {
  background: var(--accent-bg);
  border-color: var(--accent-light);
}
.service-picker-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  flex: 1;
  padding-right: 8px;
}
.service-picker-price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.builder-sidebar-footer {
  margin-top: 12px;
}
.builder-main {
  min-width: 0;
}

/* Line item table inputs */
.line-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.line-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 2px rgba(45, 122, 62, 0.1);
}
.line-input.line-desc {
  font-weight: 500;
}
.line-input.line-qty, .line-input.line-price {
  text-align: right;
}
.line-item-drag {
  cursor: grab;
  text-align: center;
  vertical-align: middle;
  color: var(--text-muted);
}
.line-item-drag:active {
  cursor: grabbing;
}
.drag-handle {
  font-size: 18px;
  user-select: none;
}
.line-amount {
  font-weight: 600;
  text-align: right;
  font-size: 14px;
  color: var(--text);
}
.line-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
  line-height: 1;
}
.line-remove:hover {
  background: var(--danger-bg);
}
.line-item-row {
  background: var(--surface) !important;
}
.line-item-row:hover {
  background: var(--accent-bg) !important;
}
.sortable-ghost {
  opacity: 0.4;
  background: var(--accent-bg) !important;
}

/* Builder totals */
.builder-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.builder-total-row {
  display: flex;
  justify-content: space-between;
  width: 280px;
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0;
}
.builder-total-row.builder-total-final {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* ===== ADMIN INVOICE HEADER (client detail billing) ===== */
.invoice-admin-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.invoice-admin-info {
  flex-shrink: 0;
  min-width: 90px;
}
.invoice-admin-id {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.invoice-admin-date {
  font-size: 12px;
  color: var(--text-muted);
}
.invoice-admin-desc {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  min-width: 150px;
}
.invoice-admin-amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}
.invoice-admin-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.invoice-admin-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.invoice-line-items-expand {
  background: var(--surface-alt);
}

/* ===== SCHEDULE ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  min-height: 500px;
}
.schedule-day {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-panel);
  display: flex;
  flex-direction: column;
  min-height: 400px;
  box-shadow: var(--shadow-sm);
}
.schedule-day-today {
  border-color: var(--accent);
  border-width: 2px;
}
.schedule-day-today .schedule-day-header {
  background: var(--accent-bg);
}
.schedule-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  gap: 4px;
}
.schedule-day-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.schedule-day-date {
  font-size: 11px;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}
.schedule-day-add {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: background 0.15s;
  line-height: 1;
}
.schedule-day-add:hover {
  background: var(--accent-bg);
}
.schedule-day-cards {
  flex: 1;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 40px;
}
.schedule-slot-section {
  border-bottom: 1px solid var(--border-subtle);
}
.schedule-slot-section:last-of-type {
  border-bottom: none;
}
.schedule-slot-header {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 10px 2px;
  background: var(--surface-alt);
  border-radius: 4px 4px 0 0;
}
.schedule-slot-cards {
  padding: 4px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 30px;
}
.schedule-slot-empty {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 4px;
  font-style: italic;
}
.schedule-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: grab;
  transition: box-shadow 0.15s, transform 0.15s;
}
.schedule-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.schedule-card:active {
  cursor: grabbing;
}
.schedule-card-ghost {
  opacity: 0.4;
}
.schedule-card-chosen {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.schedule-card-staff {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
}
.schedule-card-staff-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.schedule-card-initials {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 9px;
  flex-shrink: 0;
}
.schedule-card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.schedule-card-client {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}
.schedule-card-service {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.schedule-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.schedule-card-slot {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 6px;
  border-radius: var(--r-pill);
}
.schedule-card-recurring {
  font-size: 12px;
  color: var(--accent);
}
.schedule-card-biweekly {
  font-size: 9px;
  font-weight: 700;
  color: var(--warm);
  background: var(--warm-bg);
  padding: 2px 6px;
  border-radius: var(--r-pill);
}
.schedule-card-time {
  font-size: 10px;
  color: var(--text-2);
  font-weight: 500;
}
.schedule-quickadd {
  padding: 6px 8px 8px;
  border-top: 1px solid var(--border-subtle);
}
.quickadd-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-std);
  background: var(--surface-alt);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
}
.quickadd-select:hover {
  border-color: var(--accent);
  color: var(--text);
}
.staff-checkbox:hover {
  background: var(--surface-alt) !important;
}
.staff-checkbox input:checked ~ * {
  font-weight: 600;
}
.schedule-legend {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-std);
}
.modal-overlay[style*="display: flex"] {
  display: flex !important;
}

/* ===== STAFF DETAIL PAGE ===== */
.staff-detail-header h1 { font-size: 24px; }

/* ===== PROFILE PAGE ===== */
.profile-section { max-width: 560px; }

/* ===== CLICKABLE ROWS ===== */
.data-table tbody tr[data-clickable] { cursor: pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 20px; }
  .data-table { font-size: 13px; }
  .data-table thead th, .data-table tbody td { padding: 10px 8px; }
  .topbar { padding: 0 20px; }
  .venmo-banner { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  #sidebarToggle { display: block !important; }
  .invoice-builder { grid-template-columns: 1fr; }
  .builder-sidebar { position: static; max-height: none; }
  .service-picker { max-height: 300px; }
  .invoice-admin-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .invoice-admin-actions { width: 100%; }
  .builder-total-row { width: 100%; }
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-day { min-height: auto; }
  .schedule-day-cards { min-height: 80px; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}