/* =====================================================
   SahiHisab — Assistant Module Styles
   Extracted from app.css for modular separation
   ===================================================== */

/* ─── Page layout ──────────────────────────────────── */
.assistants-page { padding: 0 0 80px; }

@media (min-width: 1024px) {
  .assistants-page { max-width: 900px; margin: 0 auto; }
}

/* ─── Assistant specific ───────────────────────────── */
.asst-type-badge {
  display: inline-block; padding: 1px 8px; border-radius: 8px;
  font-size: 10px; font-weight: 700; border: 1px solid;
  font-family: 'DM Sans', sans-serif;
}

.asst-stats-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.asst-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-family: 'DM Sans', sans-serif; color: var(--text-secondary);
}
.asst-stat.green { color: var(--success); }
.asst-stat.blue { color: var(--primary); }

/* Task money breakdown */
.asst-task-money {
  display: flex; gap: 12px; margin-top: 4px;
}
.task-money-item { display: flex; flex-direction: column; gap: 2px; }
.task-money-label { font-size: 11px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; }
.task-money-value { font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif; color: var(--text-primary); }

/* Performance row */
.perf-row { display: flex; gap: 8px; }
.perf-box {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 14px; border-radius: 14px; gap: 6px;
}
.perf-box.green { background: #F0FDF4; }
.perf-box.red { background: #FEF2F2; }
.perf-box.blue { background: #EFF6FF; }
.perf-value { font-size: 20px; font-weight: 800; font-family: 'DM Sans', sans-serif; }
.perf-label { font-size: 11px; color: var(--text-secondary); font-family: 'DM Sans', sans-serif; }

/* ─── Assistant Detail Redesign (Hero + Tabs) ──────── */

/* Hero card */
.ad-hero {
  background: linear-gradient(135deg, #0f2b3d 0%, #1a3f5c 100%);
  color: #fff;
  padding: 20px 20px 24px;
  position: relative;
}
.ad-hero-top {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.ad-hero-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; font-family: 'DM Sans', sans-serif;
  color: #fff; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
}
.ad-hero-info { flex: 1; min-width: 0; }
.ad-hero-name {
  font-size: 18px; font-weight: 800; font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ad-hero-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; font-family: 'DM Sans', sans-serif;
}
.ad-hero-badge.staff { background: rgba(14,165,233,0.2); color: #7dd3fc; }
.ad-hero-badge.freelancer { background: rgba(245,158,11,0.2); color: #fcd34d; }
.ad-hero-meta {
  font-size: 13px; color: rgba(255,255,255,0.7);
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.ad-hero-sub {
  font-size: 12px; color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif; margin-top: 2px;
}
.ad-hero-actions {
  display: flex; gap: 8px; flex-shrink: 0;
}
.ad-hero-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.15s;
}
.ad-hero-btn:active { transform: scale(0.9); }
.ad-hero-btn.call { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.ad-hero-btn.wa { background: rgba(37,211,102,0.2); color: #25D366; }
.ad-hero-btn.edit { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }

/* Money strip */
.ad-money-strip {
  display: flex; gap: 1px; margin: -12px 16px 0;
  position: relative; z-index: 2;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.ad-money-box {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 14px 8px; background: var(--card);
  gap: 2px;
}
.ad-money-box:first-child { border-radius: 16px 0 0 16px; }
.ad-money-box:last-child { border-radius: 0 16px 16px 0; }
.ad-money-label {
  font-size: 11px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.ad-money-value {
  font-size: 20px; font-weight: 800; font-family: 'DM Sans', sans-serif;
  word-break: break-all;
}
.ad-money-label.earned { color: var(--text-secondary); }
.ad-money-value.earned { color: var(--text-primary); }
.ad-money-label.paid { color: var(--success); }
.ad-money-value.paid { color: var(--success); }
.ad-money-label.due { color: var(--danger); }
.ad-money-value.due { color: var(--danger); }

/* Quick actions row */
.ad-quick-actions {
  display: flex; gap: 8px; padding: 16px 16px 8px;
}
.ad-quick-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px; border-radius: 12px; border: none;
  font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; min-height: 48px; transition: opacity 0.15s;
}
.ad-quick-btn:active { opacity: 0.7; }
.ad-quick-btn.assign { background: #EFF6FF; color: var(--primary); }
.ad-quick-btn.pay { background: #F0FDF4; color: var(--success); }
.ad-quick-btn .material-symbols-rounded { font-size: 20px; }

/* Performance compact bar */
.ad-perf-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; margin: 4px 16px 0;
  background: var(--gray-50); border-radius: 12px;
}
.ad-perf-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif;
}
.ad-perf-item .material-symbols-rounded { font-size: 18px; }
.ad-perf-item.good { color: var(--success); }
.ad-perf-item.bad { color: var(--danger); }
.ad-perf-item.rating { color: var(--primary); }
.ad-perf-divider {
  width: 1px; height: 16px; background: var(--border);
}

/* Tabs */
.ad-tabs {
  display: flex; border-bottom: 2px solid var(--gray-50);
  padding: 0 16px; margin-top: 12px;
  position: sticky; top: 0; background: var(--card); z-index: 5;
}
.ad-tab {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 0; border: none; background: none;
  font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  color: var(--text-secondary); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.ad-tab.active {
  color: var(--primary); border-bottom-color: var(--primary);
}
.ad-tab .material-symbols-rounded { font-size: 18px; }
.ad-tab-badge {
  font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 10px; background: var(--danger); color: #fff;
  min-width: 18px; text-align: center;
}

/* Tab content */
.ad-tab-content { padding: 16px; min-height: 200px; }
.ad-tab-pane { display: none; }
.ad-tab-pane.active { display: block; }

/* Opening balance inline */
.ad-opening-bal {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; margin: 0 0 12px; border-radius: 10px;
  background: var(--warning)10; border: 1px dashed var(--warning);
  font-size: 13px; font-weight: 600; color: var(--warning);
  font-family: 'DM Sans', sans-serif;
}
.ad-opening-bal .material-symbols-rounded { font-size: 16px; }

/* Section titles inside tabs */
.ad-section-title {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  font-family: 'DM Sans', sans-serif; margin: 0 0 10px;
  display: flex; align-items: center; gap: 6px;
}

/* Bottom actions */
.ad-bottom-actions {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 16px 24px;
  border-top: 1px solid var(--border); margin-top: 8px;
}
