/* ============================================================
   COMPONENTS — Reusable UI Components
   ============================================================
   Source: css/styles.css
   - Tabs: lines 46-51
   - Cards: lines 52-56
   - Buttons: lines 58-71
   - Metrics: lines 80-91
   - Checklist: lines 93-101
   - Progress bars: lines 100-101
   - Badges/Status: lines 162-169, 182-187
   - Modals: lines 323-340
   - Toasts: lines 412-415
   - Contact buttons: lines 402-411
   - Activity feed: lines 191-200
   - Jobs: lines 177-190
   - CLV stats: lines 197-200
   - Invoices: lines 201-301
   - Tags: lines 762-764
   - Review widgets: lines 309-318
   - Backup section: lines 319-322
   - Contact notes/tasks: lines 756-761
   - Attachments: line 761
   - Login screen: lines 931-952
   - Upload zone/Photos: lines 973-979
   - Recurring invoice: lines 1142-1158
   - Date picker: lines 1064-1112
   - Lead tasks: lines 1114-1140
   - Bar chart: lines 750-755
   - FB stats: lines 1659-1660
   - Motivational banner: line 719
   - Gauge cards: lines 720-728
   ============================================================ */

/* ---------- Tabs ---------- */
.tab-btn { font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 0.85rem; background: transparent; color: var(--gray-300); border: none; padding: 0.6rem 1.2rem; cursor: pointer; border-radius: var(--radius) var(--radius) 0 0; transition: all 0.2s; letter-spacing: 0.5px; text-transform: uppercase; }
.tab-btn:hover { color: var(--champagne); background: var(--navy-lighter); }
.tab-btn.active { color: var(--gold); background: var(--navy-lighter); border-bottom: 2px solid var(--gold); }
.tab-content { display: none; opacity: 0; transition: opacity 0.25s ease; }
.tab-content.active { display: block; opacity: 1; }

/* ---------- Cards ---------- */
.card { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; box-shadow: var(--card-shadow); }
.card:hover { border-color: rgba(212,175,55,0.25); box-shadow: var(--card-hover-shadow); transform: translateY(-1px); }
.card-title { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--gold); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Buttons ---------- */
.btn { font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 0.8rem; padding: 0.5rem 1rem; border-radius: var(--radius); border: none; cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-gold { background: var(--gold-gradient-btn); color: var(--navy); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15), 0 2px 8px rgba(212,175,55,0.3); text-shadow: var(--emboss-light); }
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 16px rgba(212,175,55,0.4); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
.btn-danger { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-link { background: var(--navy-lighter); border: 1px solid var(--navy-lighter); color: var(--champagne); padding: 0.6rem 1rem; font-size: 0.8rem; }
.btn-link:hover { border-color: var(--gold); color: var(--gold); }
.btn-archive { background: transparent; border: 1px solid var(--gray-500); color: var(--gray-500); }
.btn-archive:hover { background: var(--gray-500); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); border: none; }
.btn-green:hover { background: #16a34a; }
.btn-review { background: linear-gradient(135deg, #22C55E, #16A34A); color: #fff; border: none; font-size: 0.68rem; padding: 0.2rem 0.5rem; border-radius: 4px; cursor: pointer; font-weight: 600; }
.btn-review:hover { filter: brightness(1.1); }

/* ---------- Metrics ---------- */
.metrics-period-btn { font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 600; padding: 0.4rem 0.8rem; border: none; background: transparent; color: var(--gray-400); cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.3px; }
.metrics-period-btn:hover { color: var(--champagne); }
.metrics-period-btn.active { background: var(--gold); color: var(--navy); border-radius: 4px; }
.metrics-bar-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--navy-lighter); font-size: 0.82rem; }
.metrics-bar-row:last-child { border-bottom: none; }
.metrics-bar-label { width: 100px; color: var(--gray-300); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.metrics-bar-track { flex: 1; height: 18px; background: var(--navy); border-radius: 3px; overflow: hidden; }
.metrics-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.metrics-bar-amount { width: 90px; text-align: right; color: var(--champagne); font-weight: 600; font-size: 0.78rem; flex-shrink: 0; }
.metrics-bar-share { width: 45px; text-align: right; color: var(--gray-500); font-size: 0.72rem; flex-shrink: 0; }
.metrics-total-row { display: flex; justify-content: flex-end; padding: 0.5rem 0; font-size: 0.82rem; font-weight: 600; color: var(--champagne); border-top: 1px solid var(--navy-lighter); margin-top: 0.25rem; gap: 0.5rem; }
@media (max-width: 768px) { .metrics-bar-label { width: 70px; } .metrics-bar-amount { width: 70px; } }

/* ---------- Checklist ---------- */
.checklist-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; cursor: pointer; font-size: 0.88rem; }
.checklist-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.checklist-item.checked .checklist-label { text-decoration: line-through; color: var(--gray-500); }
.checklist-actions { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; }
.checklist-actions button { background: none; border: none; color: var(--gray-500); cursor: pointer; font-size: 0.75rem; padding: 2px 4px; transition: color 0.15s; }
.checklist-actions button:hover { color: var(--red); }
.checklist-item .reset-badge { font-size: 0.6rem; background: rgba(59,130,246,0.15); color: var(--blue); padding: 0.08rem 0.3rem; border-radius: 3px; text-transform: uppercase; font-weight: 600; }

/* ---------- Progress Bar ---------- */
.progress-bar-track { background: var(--navy); border-radius: 10px; height: 24px; overflow: hidden; margin-top: 0.5rem; border: 1px solid var(--navy-lighter); }
.progress-bar-fill { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); height: 100%; border-radius: 10px; transition: width 0.4s ease; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 600; color: var(--navy); min-width: 0; }

/* ---------- Status Badges ---------- */
.status-pending { background: rgba(234,179,8,0.15); color: #eab308; }
.status-completed { background: rgba(34,197,94,0.15); color: var(--green); }
.status-paid { background: rgba(212,175,55,0.15); color: var(--gold); }
.status-in-progress { background: rgba(59,130,246,0.15); color: var(--blue); }
.status-on-hold { background: rgba(249,115,22,0.15); color: var(--orange); }
.status-scheduled { background: rgba(168,85,247,0.15); color: var(--purple); }

/* ---------- Type Badges ---------- */
.type-homeowner { background: rgba(34,197,94,0.15); color: var(--green); }
.type-airbnb { background: rgba(59,130,246,0.15); color: var(--blue); }
.type-property-mgmt { background: rgba(168,85,247,0.15); color: #a855f7; }
.type-commercial { background: rgba(212,175,55,0.15); color: var(--gold); }
.type-builder { background: rgba(249,115,22,0.15); color: var(--orange); }
.type-landlord { background: rgba(168,85,247,0.15); color: var(--purple); }
.type-company { background: rgba(59,130,246,0.15); color: var(--blue); }

/* ---------- Modals ---------- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 10000; align-items: flex-start; justify-content: center; opacity: 0; transition: opacity 0.2s ease; padding: 1rem; box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal { background: var(--navy-light); border: 1px solid var(--gold); border-radius: var(--radius-lg); padding: 1.5rem; width: 90%; max-width: 450px; box-shadow: var(--shadow-lg); transform: scale(0.95); transition: transform 0.2s ease; max-height: none; overflow-y: visible; position: relative; z-index: 10001; margin: auto; flex-shrink: 0; }
.modal-overlay.show .modal { transform: scale(1); }
/* Job detail modal -- fix scroll so action buttons are always reachable */
#modal-job-detail .modal { max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; }
#modal-job-detail .modal > .modal-title { flex-shrink: 0; }
#modal-job-detail .modal > .section-label,
#modal-job-detail .modal > .form-group,
#modal-job-detail .modal > .form-row,
#modal-job-detail .modal > div:not(.modal-actions) { flex-shrink: 0; }
#modal-job-detail .modal-actions { position: sticky; bottom: 0; background: var(--navy-light); padding-top: 0.75rem; margin-top: auto; z-index: 1; border-top: 1px solid var(--navy-lighter); }
.modal-overlay.show .modal { transform: scale(1); }
.modal-title { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--gold); margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }
.modal-fullscreen { background: var(--navy-light); border: 1px solid var(--gold); border-radius: var(--radius-lg); padding: 0; width: 92%; max-width: 800px; max-height: calc(100vh - 2rem); height: auto; overflow: hidden; box-shadow: var(--shadow-lg); transform: scale(0.95); transition: transform 0.2s ease; position: relative; display: flex; flex-direction: column; min-height: 0; box-sizing: border-box; }
.modal-fullscreen > *:first-child { flex-shrink: 0; }
.modal-fullscreen .fp-scroll-body { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 0 1.5rem 1.5rem; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-overlay.show .modal-fullscreen { transform: scale(1); }
.modal-fullscreen .modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: 1px solid var(--gray-500); color: var(--gray-300); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-fullscreen .modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-fullscreen .detail-name { font-family: 'Cinzel', serif; font-size: 1.4rem; color: var(--gold); margin-bottom: 0.25rem; padding-right: 3rem; }
.modal-fullscreen .detail-badges { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.modal-fullscreen .edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.modal-fullscreen .edit-grid .full-width { grid-column: 1 / -1; }
.modal-fullscreen .section-label { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--navy-lighter); }
.modal-fullscreen .action-bar { display: flex; gap: 0.5rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--navy-lighter); }

/* ---------- Edit Card Modal Override (massive content modal) ---------- */
#modal-edit-card .modal {
  max-width: 680px;
  width: 94%;
  max-height: none;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#modal-edit-card .modal .modal-title {
  position: relative;
  background: var(--navy-light);
  z-index: 2;
  padding: 1rem 0 0.75rem;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-bottom: 1px solid var(--navy-lighter);
}
#modal-edit-card .modal .modal-actions {
  position: relative;
  background: var(--navy-light);
  z-index: 2;
  padding: 0.75rem 0;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-top: 1px solid var(--navy-lighter);
}

/* ---------- Full Page Card View (source: lines 341-398) ---------- */
.fp-section { margin-bottom:1.25rem; padding-bottom:1rem; border-bottom:1px solid var(--navy-lighter); }
.fp-section:last-child { border-bottom:none; }
.fp-section-title { font-family:'Montserrat',sans-serif; font-weight:600; font-size:0.78rem; color:var(--gold); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:0.6rem; }
.fp-detail-grid { display:grid; grid-template-columns:1fr; gap:0.35rem; }
.fp-detail-row { display:flex; justify-content:space-between; align-items:center; font-size:0.82rem; padding:0.2rem 0; }
.fp-detail-label { color:var(--gray-500); font-size:0.75rem; min-width:80px; }
.fp-gallery-item:hover { opacity:0.85; transform:scale(1.02); transition:all 0.15s; }
/* Task list */
.fp-task-list { display:flex; flex-direction:column; gap:0; }
.fp-task-row { display:flex; align-items:flex-start; gap:0.6rem; padding:0.45rem 0; border-bottom:1px solid rgba(255,255,255,0.04); cursor:pointer; transition:background 0.1s; }
.fp-task-row:last-child { border-bottom:none; }
.fp-task-row:hover { background:rgba(255,255,255,0.02); }
.fp-task-done { opacity:0.6; }
.fp-task-done:hover { opacity:0.8; }
.fp-task-check { flex-shrink:0; width:20px; height:20px; display:flex; align-items:center; justify-content:center; cursor:pointer; margin-top:1px; }
.fp-task-content { flex:1; min-width:0; line-height:1.35; }
.fp-task-text { display:block; font-size:0.82rem; color:var(--champagne); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fp-task-done .fp-task-text { text-decoration:line-through; color:var(--gray-500); }
.fp-task-sub { display:block; font-size:0.68rem; color:var(--gray-500); margin-top:0.1rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fp-task-meta { flex-shrink:0; font-size:0.62rem; color:var(--gray-500); white-space:nowrap; margin-top:2px; }
/* Pipeline task drag-and-drop reorder */
.fp-drag-handle {
  display:flex; align-items:center; justify-content:center;
  min-width:32px; min-height:32px; margin-right:0.1rem;
  font-size:0.9rem; color:var(--gray-600); cursor:grab;
  touch-action:none; user-select:none; -webkit-user-select:none;
  border-radius:4px; transition:color 0.15s, background 0.15s; flex-shrink:0;
}
.fp-drag-handle:active { cursor:grabbing; color:var(--gold); background:rgba(212,175,55,0.08); }
.fp-task-dragging { opacity:0.5; transform:scale(1.02); box-shadow:0 4px 16px rgba(0,0,0,0.35); z-index:100; background:var(--navy-lighter); border-radius:6px; }
.fp-task-dragover { border-top:2px solid var(--gold) !important; background:rgba(212,175,55,0.06); }
/* Tasks By Job */
.tbj-task-row { display:flex; align-items:center; gap:0.5rem; padding:0.4rem 0.2rem; border-bottom:1px solid rgba(255,255,255,0.04); transition:background 0.1s; }
.tbj-task-row:last-child { border-bottom:none; }
.tbj-task-done { opacity:0.6; }
.tbj-drag-handle {
  display:flex; align-items:center; justify-content:center;
  min-width:32px; min-height:32px; font-size:0.9rem; color:var(--gray-600); cursor:grab;
  touch-action:none; user-select:none; -webkit-user-select:none;
  border-radius:4px; transition:color 0.15s, background 0.15s; flex-shrink:0;
}
.tbj-drag-handle:active { cursor:grabbing; color:var(--gold); background:rgba(212,175,55,0.08); }
.tbj-task-dragging { opacity:0.5; transform:scale(1.02); box-shadow:0 4px 16px rgba(0,0,0,0.35); z-index:100; background:var(--navy-lighter); border-radius:6px; }
.tbj-task-dragover { border-top:2px solid var(--gold) !important; background:rgba(212,175,55,0.06); }
/* Full-page card detail */
#fp-card-detail { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--navy); overflow-y: auto; -webkit-overflow-scrolling: touch; display: none; }
#fp-card-detail.show { display: block; }
#fp-card-detail .modal-fullscreen { max-width: 1200px; width: 100%; margin: 0 auto; border: none; border-radius: 0; max-height: none; height: auto; overflow: visible; box-shadow: none; transform: none; background: var(--navy); }
#fp-card-detail .fp-scroll-body { overflow: visible; padding: 0 2rem 2rem; }
@media (max-width: 768px) {
  #fp-main-grid { grid-template-columns:1fr !important; }
  #fp-card-detail .fp-scroll-body { padding: 0 1rem 1rem; }
}
#modal-customer-detail { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--navy); overflow-y: auto; -webkit-overflow-scrolling: touch; display: none; }
#modal-customer-detail.show { display: block; }
#modal-customer-detail .modal-fullscreen { max-width: 1200px; width: 100%; margin: 0 auto; border: none; border-radius: 0; max-height: none; height: auto; overflow: visible; box-shadow: none; transform: scale(1); background: var(--navy); }
#modal-customer-detail .fp-scroll-body { overflow: visible; padding: 0 2rem 2rem; }
@media (max-width: 768px) {
  #modal-customer-detail .fp-scroll-body { padding: 0 1rem 1rem; }
}

/* ---------- Contact Buttons ---------- */
.contact-btns { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.contact-btn { font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.6rem; border-radius: var(--radius); text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem; transition: all 0.15s; text-transform: uppercase; letter-spacing: 0.3px; }
.contact-btn-call { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.contact-btn-call:hover { background: var(--green); color: var(--white); }
.contact-btn-text { background: rgba(59,130,246,0.15); color: var(--blue); border: 1px solid rgba(59,130,246,0.3); }
.contact-btn-text:hover { background: var(--blue); color: var(--white); }
.contact-btn-email { background: rgba(168,85,247,0.15); color: var(--purple); border: 1px solid rgba(168,85,247,0.3); }
.contact-btn-email:hover { background: var(--purple); color: var(--white); }
.contact-btn-map { background: rgba(249,115,22,0.15); color: var(--orange); border: 1px solid rgba(249,115,22,0.3); }
.contact-btn-map:hover { background: var(--orange); color: var(--white); }

/* ---------- Toasts ---------- */
.toast-container { position: fixed; top: 80px; right: 1.5rem; z-index: 300; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { background: var(--navy-light); border: 1px solid var(--gold); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 0.65rem 1rem; font-size: 0.82rem; color: var(--champagne); box-shadow: var(--shadow-lg); opacity: 0; transform: translateX(40px); transition: all 0.3s ease; pointer-events: auto; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast.hide { opacity: 0; transform: translateX(40px); }

/* ---------- Activity Feed ---------- */
.activity-feed { max-height: 300px; overflow-y: auto; }
.activity-entry { display: flex; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(26,45,74,0.5); font-size: 0.78rem; }
.activity-entry:last-child { border-bottom: none; }
.activity-type-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; background: var(--navy-lighter); }
.activity-entry .activity-meta { color: var(--gray-500); font-size: 0.7rem; }
.activity-entry .activity-note { color: var(--champagne); }

/* ---------- CLV Stats ---------- */
.clv-stats { display: flex; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.clv-stat { background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: var(--radius); padding: 0.5rem 0.75rem; text-align: center; }
.clv-stat .clv-value { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.clv-stat .clv-label { font-size: 0.65rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.3px; }

/* ---------- Jobs ---------- */
.job-entry { background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: var(--radius); padding: 0.6rem; margin-bottom: 0.5rem; font-size: 0.82rem; }
.job-entry .job-main { display: flex; justify-content: space-between; align-items: center; }
.job-entry .job-desc { color: var(--champagne); }
.job-entry .job-amount { color: var(--gold); font-weight: 600; }
.job-entry .job-status { font-size: 0.7rem; padding: 0.12rem 0.4rem; border-radius: 4px; text-transform: uppercase; font-weight: 600; }

/* ---------- Pipeline Activity ---------- */
.pipeline-activity-item { background: var(--navy); border: 1px solid var(--navy-lighter); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 0.5rem 0.6rem; margin-bottom: 0.4rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.pipeline-activity-item .pa-name { color: var(--champagne); }
.pipeline-activity-item .pa-stage { font-size: 0.68rem; padding: 0.12rem 0.5rem; border-radius: 4px; background: rgba(212,175,55,0.15); color: var(--gold); text-transform: uppercase; font-weight: 600; }

/* ---------- Invoice Builder (source: lines 201-279) ---------- */
.invoice-builder { max-width: 900px; }
.line-items-table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
.line-items-table th { font-family: 'Montserrat', sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-300); text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--navy-lighter); }
.line-items-table td { padding: 0.4rem; vertical-align: top; }
.line-items-table td input, .line-items-table td select { width: 100%; }
.line-items-table .col-service { width: 18%; }
.line-items-table .col-desc { width: 27%; }
.line-items-table .col-qty { width: 8%; }
.line-items-table .col-rate { width: 14%; }
.line-items-table .col-material { width: 8%; text-align: center; }
.line-items-table .col-total { width: 15%; text-align: right; }
.line-items-table .col-action { width: 5%; text-align: center; }
.line-total-display { text-align: right; color: var(--gold); font-weight: 600; padding-right: 0.5rem; font-size: 0.88rem; }
.markup-detail { font-size: 0.68rem; color: var(--gray-500); text-align: right; padding-right: 0.5rem; }
.markup-badge { display: inline-block; font-size: 0.6rem; background: rgba(212,175,55,0.15); color: var(--gold); padding: 0.1rem 0.3rem; border-radius: 3px; font-weight: 600; }
.grand-total-row { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding: 0.75rem 0; border-top: 2px solid var(--gold); margin-top: 0.5rem; }
.grand-total-row .gt-label { font-family: 'Montserrat', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; color: var(--champagne); }
.grand-total-row .gt-value { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.4rem; color: var(--gold); }
.latex-output { background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: var(--radius); padding: 0.75rem; margin-top: 1rem; }
.latex-output textarea { width: 100%; min-height: 250px; font-family: 'Courier New', monospace; font-size: 0.78rem; background: #0a0f1a; color: #8be9fd; border: 1px solid var(--navy-lighter); border-radius: var(--radius); padding: 0.75rem; resize: vertical; }

/* ---------- DripJobs-Style Invoice System (source: lines 221-301) ---------- */
.inv-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.inv-kpi-card { background: var(--navy-light); border: 1px solid var(--navy-lighter); border-radius: var(--radius-lg); padding: 0.9rem 1rem; }
.inv-kpi-card .kpi-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); font-weight: 600; margin-bottom: 0.25rem; }
.inv-kpi-card .kpi-value { font-family: 'Cinzel', serif; font-size: 1.35rem; font-weight: 700; }
.inv-filter-bar { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.inv-filter-bar input, .inv-filter-bar select { font-size: 0.78rem; padding: 0.4rem 0.6rem; }
.inv-filter-bar .inv-search { flex: 1; min-width: 180px; }
.inv-table-wrap { background: var(--navy-light); border: 1px solid var(--navy-lighter); border-radius: var(--radius-lg); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.inv-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 0.82rem; }
.inv-table thead th { font-family: 'Montserrat', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--navy-lighter); cursor: pointer; user-select: none; white-space: nowrap; }
.inv-table thead th:hover { color: var(--champagne); }
.inv-table thead th .sort-arrow { margin-left: 0.25rem; font-size: 0.6rem; opacity: 0.5; }
.inv-table thead th.sorted { color: var(--champagne); }
.inv-table thead th.sorted .sort-arrow { opacity: 1; color: var(--gold); }
.inv-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.15s; }
.inv-table tbody tr:hover { background: var(--navy-lighter); }
.inv-table tbody td { padding: 0.6rem 0.75rem; vertical-align: middle; }
.inv-table .status-pill { font-size: 0.62rem; padding: 0.15rem 0.5rem; border-radius: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; display: inline-block; }
.inv-table .status-paid { background: rgba(34,197,94,0.15); color: #22C55E; }
.inv-table .status-sent { background: rgba(59,130,246,0.15); color: #3B82F6; }
.inv-table .status-draft { background: rgba(107,114,128,0.2); color: #9CA3AF; }
.inv-table .status-pending { background: rgba(234,179,8,0.15); color: #EAB308; }
.inv-table .status-overdue { background: rgba(239,68,68,0.15); color: #EF4444; }
.inv-table .cust-cell { display: flex; align-items: center; gap: 0.5rem; }
.inv-table .cust-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gold-gradient-btn); display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 700; color: #0B162A; flex-shrink: 0; }
.inv-table .amt-cell { font-weight: 600; }
.inv-table .bal-cell-zero { color: var(--green); }
.inv-table .bal-cell-owed { color: var(--red); font-weight: 600; }
.inv-table .date-cell { color: var(--gray-400); font-size: 0.78rem; }
.inv-table .actions-cell { display: flex; gap: 0.3rem; align-items: center; }
.inv-table .view-btn { font-size: 0.72rem; padding: 0.2rem 0.5rem; border-radius: 4px; border: 1px solid var(--navy-lighter); background: transparent; color: var(--champagne); cursor: pointer; display: flex; align-items: center; gap: 0.25rem; transition: all 0.15s; }
.inv-table .view-btn:hover { border-color: var(--gold); color: var(--gold); }
.inv-table-footer { display: flex; justify-content: flex-end; padding: 0.65rem 0.75rem; border-top: 2px solid var(--navy-lighter); gap: 2rem; font-size: 0.82rem; font-weight: 600; }
/* Invoice detail modal */
.inv-detail-modal { max-width: 960px; max-height: 94vh; overflow-y: auto; padding: 0; }
.inv-detail-header { padding: 1.25rem; border-bottom: 1px solid var(--navy-lighter); }
.inv-detail-client-bar { display: flex; justify-content: space-between; align-items: flex-start; padding: 1rem 1.25rem; background: var(--navy); border-bottom: 1px solid var(--navy-lighter); font-size: 0.82rem; flex-wrap: wrap; gap: 1rem; }
.inv-detail-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--navy-lighter); padding: 0 1.25rem; }
.inv-detail-tab { padding: 0.5rem 1rem; font-size: 0.78rem; font-weight: 600; color: var(--gray-500); cursor: pointer; border: 1px solid transparent; border-bottom: none; border-radius: 6px 6px 0 0; transition: all 0.15s; }
.inv-detail-tab:hover { color: var(--champagne); }
.inv-detail-tab.active { background: var(--navy-light); color: var(--champagne); border-color: var(--navy-lighter); margin-bottom: -1px; }
.inv-detail-body { padding: 1.25rem; }
.inv-items-table { width: 100%; border-collapse: collapse; }
.inv-items-table th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--navy-lighter); font-weight: 600; }
.inv-items-table td { padding: 0.5rem; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,0.03); }
.inv-items-table .item-card { border: 1px solid var(--navy-lighter); border-radius: 8px; padding: 0.75rem; margin-bottom: 0.5rem; background: var(--navy); cursor: pointer; transition: border-color 0.15s; }
.inv-items-table .item-card:hover { border-color: var(--gold); }
.inv-summary-box { margin-left: auto; width: 280px; border: 1px solid var(--navy-lighter); border-radius: 8px; overflow: hidden; margin-top: 1rem; }
.inv-summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0.75rem; font-size: 0.82rem; }
.inv-summary-row.total-row { background: var(--navy); font-weight: 700; font-size: 0.92rem; border-top: 2px solid var(--navy-lighter); }
.inv-summary-row.balance-row { background: rgba(234,179,8,0.08); }
.inv-payments-section { margin-top: 1.5rem; border-top: 1px solid var(--navy-lighter); padding-top: 1rem; }
/* Add Item Modal */
.add-item-modal { max-width: 440px; }
.add-item-section { background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: 8px; padding: 1rem; margin-bottom: 0.75rem; }
.add-item-section .section-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); font-weight: 600; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.add-item-total { background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02)); border: 1px solid rgba(212,175,55,0.2); border-radius: 8px; padding: 0.75rem; text-align: center; margin-top: 0.5rem; }
.add-item-total .total-label { font-size: 0.72rem; color: var(--gray-500); }
.add-item-total .total-value { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; color: var(--gold); }
@media (max-width: 768px) {
  .inv-kpi-grid { grid-template-columns: 1fr 1fr; }
  .inv-table { min-width: 700px; }
  .inv-detail-client-bar { flex-direction: column; }
  .inv-summary-box { width: 100%; }
}

/* ---------- Schedule Job Items ---------- */
.schedule-job-item { background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: var(--radius); padding: 0.6rem 0.75rem; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.schedule-job-item .sj-customer { color: var(--gold); font-weight: 500; }
.schedule-job-item .sj-desc { color: var(--champagne); }
.schedule-job-item .sj-address a { color: var(--blue); text-decoration: none; font-size: 0.75rem; }
.schedule-job-item .sj-address a:hover { text-decoration: underline; }
.schedule-job-clickable { cursor: pointer; border-left: 2px solid transparent; transition: border-color 0.2s, background 0.2s; }
.schedule-job-clickable:hover { border-left-color: var(--gold); background: rgba(212,175,55,0.06); }

/* ---------- Review Widgets ---------- */
.review-widget-item { background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: var(--radius); padding: 0.5rem 0.75rem; margin-bottom: 0.4rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.review-req-log-item { background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: var(--radius); padding: 0.5rem 0.75rem; margin-bottom: 0.4rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.review-req-log-item .rr-name { color: var(--champagne); font-weight: 600; }
.review-req-log-item .rr-date { color: var(--gray-500); font-size: 0.72rem; }
.review-req-log-item .rr-method { color: var(--gold); font-size: 0.68rem; text-transform: uppercase; font-weight: 600; }
.review-req-counter { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(212,168,67,0.1); border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 0.3rem 0.6rem; font-size: 0.82rem; }
.review-req-counter .rr-count { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.review-req-counter .rr-label { color: var(--gray-400); font-size: 0.72rem; }

/* ---------- Backup Section ---------- */
.backup-section { background: var(--navy-light); border: 1px solid var(--navy-lighter); border-radius: var(--radius-lg); padding: 1.25rem; margin-top: 1.5rem; }
.storage-bar-track { background: var(--navy); border-radius: 6px; height: 12px; overflow: hidden; border: 1px solid var(--navy-lighter); }
.storage-bar-fill { height: 100%; border-radius: 6px; transition: width 0.3s; }
.storage-warning { background: rgba(239,68,68,0.15); border: 1px solid var(--red); border-radius: var(--radius); padding: 0.5rem 0.75rem; color: var(--red); font-size: 0.82rem; margin-bottom: 0.75rem; display: none; }

/* ---------- Contact Notes / Tasks / Attachments ---------- */
.contact-note-item { background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: var(--radius); padding: 0.5rem; margin-bottom: 0.4rem; font-size: 0.8rem; }
.contact-note-item .note-meta { font-size: 0.65rem; color: var(--gray-500); margin-bottom: 0.2rem; }
.contact-task-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: var(--radius); margin-bottom: 0.3rem; font-size: 0.8rem; }
.contact-task-item.completed { opacity: 0.5; }
.contact-task-item.completed .ct-text { text-decoration: line-through; }
.attachment-item { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 0.5rem; background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: var(--radius); margin-bottom: 0.3rem; font-size: 0.8rem; }

/* ---------- Tags ---------- */
.tag-checkbox { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; color: var(--champagne); cursor: pointer; padding: 0.2rem 0.4rem; border: 1px solid var(--navy-lighter); border-radius: var(--radius); margin-right: 0.3rem; margin-bottom: 0.3rem; }
.tag-checkbox input { width: 14px; height: 14px; accent-color: var(--gold); }
.tag-checkbox.active { border-color: var(--gold); background: rgba(212,175,55,0.1); }

/* ---------- Bar Chart ---------- */
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding: 0.5rem 0; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-chart .bar { background: var(--gold-gradient-btn); border-radius: 4px 4px 0 0; min-width: 20px; width: 100%; max-width: 40px; transition: height 0.3s; }
.bar-chart .bar-label { font-size: 0.6rem; color: var(--gray-500); margin-top: 4px; text-transform: uppercase; }
.bar-chart .bar-value { font-size: 0.6rem; color: var(--champagne); margin-bottom: 2px; }
.bar-2025 { background: var(--navy-lighter) !important; }

/* ---------- Upload Zone / Photos ---------- */
.upload-zone { border: 2px dashed var(--navy-lighter); border-radius: 8px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.3s; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--gold); background: rgba(212,175,55,0.05); }
.upload-zone input[type="file"] { display: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.photo-thumb { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 1; cursor: pointer; border: 1px solid var(--navy-lighter); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .photo-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 0.4rem; font-size: 0.62rem; color: white; }

/* ---------- Motivational Banner ---------- */
.motivational-banner { background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(20,34,64,0.6) 100%); border: 1px solid rgba(212,175,55,0.15); border-radius: var(--radius-lg); padding: 0.75rem 1.5rem; margin-bottom: 1.5rem; text-align: center; font-family: 'Cinzel', serif; font-style: italic; font-size: 0.95rem; color: var(--gold-light); letter-spacing: 0.5px; min-height: 48px; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease; }

/* ---------- Gauge Cards ---------- */
.gauge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.gauge-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 1rem; text-align: center; box-shadow: var(--card-shadow); transition: all 0.3s; }
.gauge-card:hover { border-color: rgba(212,175,55,0.25); box-shadow: var(--card-hover-shadow); }
.gauge-card .gauge-label { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.72rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.5rem; }
.gauge-card .gauge-value { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.2rem; color: var(--champagne); }
.fb-tracker { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }
.fb-tracker button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); background: var(--navy); color: var(--gold); font-size: 1rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.fb-tracker button:hover { background: var(--gold); color: var(--navy); }
.fb-tracker .fb-count { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.8rem; color: var(--gold); min-width: 40px; text-align: center; }

/* ---------- FB Stats Grid ---------- */
.fb-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }

/* ---------- Recurring Invoice ---------- */
.recurring-toggle-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--navy-lighter); margin-top: 0.75rem; }
.recurring-toggle-label { font-size: 0.82rem; color: var(--champagne); font-weight: 600; }
.recurring-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.recurring-toggle input { opacity: 0; width: 0; height: 0; }
.recurring-toggle .toggle-track { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: 12px; cursor: pointer; transition: background 0.25s, border-color 0.25s; }
.recurring-toggle .toggle-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: var(--gray-500); border-radius: 50%; transition: transform 0.25s, background 0.25s; }
.recurring-toggle input:checked + .toggle-track { background: var(--gold-dim); border-color: var(--gold); }
.recurring-toggle input:checked + .toggle-track::after { transform: translateX(20px); background: var(--gold); }
.recurring-fields { display: none; padding: 0.75rem 0; }
.recurring-fields.visible { display: block; }
.recurring-badge { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.62rem; font-weight: 700; background: rgba(212,175,55,0.12); color: var(--gold); padding: 0.12rem 0.4rem; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.3px; vertical-align: middle; margin-left: 0.35rem; }
.recurring-hub-card { background: var(--glass-bg); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 1.25rem; border-left: 3px solid var(--gold); }
.recurring-hub-stat { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--navy-lighter); font-size: 0.82rem; }
.recurring-hub-stat:last-child { border-bottom: none; }
.recurring-hub-stat .stat-label { color: var(--gray-400); }
.recurring-hub-stat .stat-value { color: var(--gold); font-weight: 700; }

/* ---------- Date Picker (source: lines 1064-1112) ---------- */
.pbf-datepicker-wrap { position: relative; }
.pbf-datepicker-wrap input[type="date"] { cursor: pointer; }
.pbf-cal-popup {
  display: none; position: absolute; top: 100%; left: 0; z-index: 9999;
  background: var(--navy-light); border: 1px solid var(--navy-lighter); border-radius: 10px;
  padding: 0.75rem; width: 280px; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-family: 'Inter', sans-serif;
}
.pbf-cal-popup.active { display: block; }
.pbf-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem; padding: 0 0.25rem;
}
.pbf-cal-header span { color: var(--champagne); font-weight: 600; font-size: 0.85rem; }
.pbf-cal-header button {
  background: none; border: 1px solid var(--navy-lighter); color: var(--gold); cursor: pointer;
  width: 28px; height: 28px; border-radius: 6px; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}
.pbf-cal-header button:hover { background: var(--navy-lighter); }
.pbf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.pbf-cal-dow { color: var(--gray-400); font-size: 0.65rem; font-weight: 600; padding: 4px 0; text-transform: uppercase; }
.pbf-cal-day {
  color: var(--champagne); font-size: 0.78rem; padding: 6px 0; border-radius: 6px; cursor: pointer;
  transition: background 0.15s;
}
.pbf-cal-day:hover { background: var(--navy-lighter); }
.pbf-cal-day.today { border: 1px solid var(--gold-dim); }
.pbf-cal-day.selected { background: var(--gold); color: var(--navy); font-weight: 700; }
.pbf-cal-day.other-month { color: var(--gray-500); opacity: 0.4; }
.pbf-cal-day.past { opacity: 0.5; }
.pbf-cal-shortcuts {
  display: flex; gap: 4px; margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px solid var(--navy-lighter); flex-wrap: wrap;
}
.pbf-cal-shortcuts button {
  background: var(--navy-lighter); border: none; color: var(--gold); cursor: pointer;
  padding: 4px 8px; border-radius: 5px; font-size: 0.68rem; font-weight: 500;
}
.pbf-cal-shortcuts button:hover { background: var(--gold-dim); color: var(--navy); }
body.day-mode .pbf-cal-popup { background: #fff; border-color: #e5e7eb; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
body.day-mode .pbf-cal-header span { color: #1f2937; }
body.day-mode .pbf-cal-header button { border-color: #e5e7eb; color: #b8962e; }
body.day-mode .pbf-cal-header button:hover { background: #f1f5f9; }
body.day-mode .pbf-cal-day { color: #1f2937; }
body.day-mode .pbf-cal-day:hover { background: #f1f5f9; }
body.day-mode .pbf-cal-day.other-month { color: #9ca3af; }
body.day-mode .pbf-cal-shortcuts { border-color: #e5e7eb; }
body.day-mode .pbf-cal-shortcuts button { background: #f1f5f9; color: #b8962e; }

/* ---------- Lead Tasks (source: lines 1114-1140) ---------- */
.lead-tasks-section { margin-top: 0.5rem; }
.lead-tasks-section .section-label { font-size: 0.75rem; color: var(--gold); font-weight: 600; margin-bottom: 0.4rem; border: none; padding: 0; }
.lead-task-add-row { display: flex; gap: 6px; margin-bottom: 0.5rem; }
.lead-task-add-row input { flex: 1; }
.lead-task-add-row button { white-space: nowrap; }
.lead-task-list { list-style: none; max-height: 150px; overflow-y: auto; }
.lead-task-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  background: var(--navy); border-radius: 6px; margin-bottom: 4px; font-size: 0.78rem;
}
.lead-task-item .task-text { flex: 1; color: var(--champagne); }
.lead-task-item .task-sync-btn {
  background: none; border: 1px solid var(--navy-lighter); color: var(--gray-400);
  cursor: pointer; width: 24px; height: 24px; border-radius: 5px;
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
}
.lead-task-item .task-sync-btn:hover { border-color: var(--gold); color: var(--gold); }
.lead-task-item .task-sync-btn.synced { color: var(--green); border-color: var(--green); cursor: default; }
.lead-task-item .task-sync-btn.failed { color: var(--red); border-color: var(--red); }
.lead-task-item .task-remove {
  background: none; border: none; color: var(--gray-500); cursor: pointer;
  font-size: 0.9rem; padding: 0 2px;
}
.lead-task-item .task-remove:hover { color: var(--red); }
body.day-mode .lead-task-item { background: #f1f5f9; }
body.day-mode .lead-task-item .task-text { color: #1f2937; }

/* ---------- Login Screen (source: lines 931-952) ---------- */
#login-screen { position: fixed; inset: 0; z-index: 99990; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--navy-light); border: 1px solid var(--navy-lighter); border-radius: 12px; padding: 2.5rem; width: 100%; max-width: 420px; margin: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo h1 { font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.6rem; margin-bottom: 0.25rem; }
.login-logo .login-sub { color: var(--gray-400); font-size: 0.78rem; font-family: 'Inter', sans-serif; }
.login-card .form-group { margin-bottom: 1rem; }
.login-card .form-group label { display: block; font-size: 0.78rem; color: var(--gray-300); margin-bottom: 0.3rem; font-family: 'Inter', sans-serif; }
.login-card input[type="email"], .login-card input[type="password"], .login-card input[type="text"] { width: 100%; padding: 0.65rem 0.75rem; background: var(--navy); border: 1px solid var(--navy-lighter); border-radius: 6px; color: var(--champagne); font-size: 0.88rem; font-family: 'Inter', sans-serif; outline: none; transition: border 0.2s; }
.login-card input:focus { border-color: var(--gold); }
.login-btn { width: 100%; padding: 0.75rem; background: var(--gold-gradient-btn); border: none; border-radius: 6px; color: var(--navy); font-weight: 600; font-size: 0.92rem; font-family: 'Montserrat', sans-serif; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s; }
.login-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.login-footer { text-align: center; margin-top: 1.25rem; font-size: 0.78rem; color: var(--gray-400); font-family: 'Inter', sans-serif; }
.login-footer a { color: var(--gold); text-decoration: none; cursor: pointer; }
.login-footer a:hover { text-decoration: underline; }
.login-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.78rem; color: #f87171; margin-bottom: 1rem; display: none; }
.login-tabs { display: flex; border-bottom: 1px solid var(--navy-lighter); margin-bottom: 1.5rem; }
.login-tab { flex: 1; text-align: center; padding: 0.6rem; font-size: 0.82rem; color: var(--gray-400); cursor: pointer; border-bottom: 2px solid transparent; font-family: 'Montserrat', sans-serif; transition: all 0.2s; }
.login-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.login-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; font-size: 0.72rem; color: var(--gray-500); }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--navy-lighter); }

/* ---------- Profitability Badge (source: lines 1246-1259) ---------- */
.job-profitability {
  background: var(--navy); border: 1px solid var(--navy-lighter);
  border-radius: var(--radius); padding: 0.75rem; margin-top: 0.75rem;
}
.job-profitability .prof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
  text-align: center;
}
.job-profitability .prof-item .prof-value {
  font-size: 1rem; font-weight: 700; color: var(--gold);
}
.job-profitability .prof-item .prof-label {
  font-size: 0.65rem; color: var(--gray-500); text-transform: uppercase;
}
