:root {
  --sage-50: #f4f7f2;
  --sage-100: #e4ede0;
  --sage-200: #c5d8bc;
  --sage-400: #7fa870;
  --sage-600: #4d7842;
  --sage-800: #2e4f28;
  --sage-900: #1a2f17;
  --clay-50: #faf5ef;
  --clay-100: #f2e6d5;
  --clay-300: #d4a97a;
  --clay-500: #b07840;
  --clay-700: #7a4f22;
  --moss-500: #5a7a52;
  --moss-700: #3b5534;
  --cream: #fdfaf5;
  --stone-100: #ede8e0;
  --stone-300: #c0b8ac;
  --stone-500: #8a8078;
  --stone-700: #504840;
  --text-primary: #1e2820;
  --text-secondary: #5a5650;
  --text-muted: #9a9490;
  --sidebar-w: 240px;
  --topbar-h: 64px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sage-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}
.sidebar-brand {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-leaf {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.leaf-icon {
  width: 32px;
  height: 32px;
  background: var(--sage-400);
  border-radius: 50% 4px 50% 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.leaf-inner {
  width: 14px;
  height: 14px;
  background: var(--cream);
  border-radius: 50% 2px 50% 2px;
}
.brand-name {
  font-family: "Lora", serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.2px;
}
.brand-tagline {
  font-size: 11px;
  color: var(--sage-200);
  letter-spacing: 0.4px;
  padding-left: 2px;
  margin-top: 2px;
}
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--sage-400);
  text-transform: uppercase;
  padding: 12px 12px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--sage-200);
  font-size: 13.5px;
  font-weight: 400;
  text-decoration: none;
  margin-bottom: 2px;
  position: relative;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--sage-200);
  border-radius: 0 2px 2px 0;
}
.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--clay-300);
  color: var(--clay-700);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 99px;
}
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-900);
  flex-shrink: 0;
}
.admin-info {
  flex: 1;
  overflow: hidden;
}
.admin-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-role {
  font-size: 11px;
  color: var(--sage-400);
}

/* ── MAIN ── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: var(--topbar-h);
  background: var(--cream);
  border-bottom: 1px solid var(--stone-100);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title {
  font-family: "Lora", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  flex: 1;
}
.topbar-date {
  font-size: 13px;
  color: var(--text-muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.btn-primary {
  background: var(--sage-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--sage-800);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--stone-300);
  color: var(--text-secondary);
}
.btn-outline:hover {
  background: var(--sage-50);
  border-color: var(--sage-200);
}
.btn-danger {
  background: #fff0f0;
  border: 1px solid #f4c0c0;
  color: #8b3a3a;
}
.btn-danger:hover {
  background: #ffe0e0;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.notif-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--stone-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text-secondary);
  transition: background 0.15s;
}
.notif-btn:hover {
  background: var(--sage-50);
}
.notif-dot {
  width: 7px;
  height: 7px;
  background: var(--clay-500);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 6px;
}

/* ── PAGE SECTIONS ── */
.page {
  display: none;
}
.page.active {
  display: block;
}
.page-body {
  padding: 28px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── COMMON COMPONENTS ── */
.section-card {
  background: #fff;
  border: 1px solid var(--stone-100);
  border-radius: 12px;
  overflow: hidden;
}
.section-header {
  padding: 18px 22px 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--stone-100);
  gap: 10px;
}
.section-title {
  font-family: "Lora", serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}
.section-action {
  font-size: 12px;
  color: var(--sage-600);
  cursor: pointer;
  font-weight: 500;
}
.section-action:hover {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
}
.badge-available {
  background: var(--sage-100);
  color: var(--sage-600);
}
.badge-placed {
  background: var(--clay-100);
  color: var(--clay-700);
}
.badge-pending {
  background: #fff4e0;
  color: #8a5e10;
}
.badge-training {
  background: #e0ecf4;
  color: #1e5a80;
}
.badge-inactive {
  background: var(--stone-100);
  color: var(--stone-700);
}
.badge-new {
  background: #e8f4e8;
  color: #2a6a2a;
}
.badge-process {
  background: #fff4e0;
  color: #8a5e10;
}
.badge-matched {
  background: #e8eeff;
  color: #2a3e8a;
}
.badge-active {
  background: var(--clay-100);
  color: var(--clay-700);
}
.badge-done {
  background: var(--stone-100);
  color: var(--stone-700);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
}
.cat-prt {
  background: var(--sage-50);
  color: var(--sage-800);
  border: 1px solid var(--sage-200);
}
.cat-babysitter {
  background: #fff4f4;
  color: #8b4040;
  border: 1px solid #f4c0c0;
}
.cat-caregiver {
  background: #f0f5ff;
  color: #2a4a80;
  border: 1px solid #c0d0f4;
}
.cat-pengasuh {
  background: #f5f0ff;
  color: #5a3880;
  border: 1px solid #d0c0f4;
}

.stars {
  color: var(--clay-300);
  font-size: 12px;
  letter-spacing: -1px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--stone-100);
  background: var(--sage-50);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stats-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--stone-100);
  border-radius: 12px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
  cursor: default;
}
.stat-card:hover {
  box-shadow: 0 4px 20px rgba(46, 79, 40, 0.08);
}
.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.stat-card.green::after {
  background: var(--sage-400);
}
.stat-card.clay::after {
  background: var(--clay-300);
}
.stat-card.moss::after {
  background: var(--moss-500);
}
.stat-card.stone::after {
  background: var(--stone-300);
}
.stat-card.blue::after {
  background: #6080d0;
}
.stat-card.active-c::after {
  background: var(--clay-500);
}
.stat-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.stat-number {
  font-family: "Lora", serif;
  font-size: 34px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat-trend {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}
.trend-up {
  background: var(--sage-100);
  color: var(--sage-600);
}
.trend-down {
  background: var(--clay-100);
  color: var(--clay-700);
}
.stat-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.stat-icon.green {
  background: var(--sage-50);
}
.stat-icon.clay {
  background: var(--clay-50);
}
.stat-icon.moss {
  background: #eef4ec;
}
.stat-icon.stone {
  background: var(--stone-100);
}
.stat-icon.blue {
  background: #eef0ff;
}

/* ── DASBOR specific ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 380px;
  gap: 20px;
}
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Worker Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 22px;
  background: var(--sage-50);
  border-bottom: 1px solid var(--stone-100);
}
.data-table td {
  padding: 13px 22px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--stone-100);
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr.clickable:hover td {
  background: var(--sage-50);
  cursor: pointer;
}
.worker-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.worker-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.ava-green {
  background: var(--sage-100);
  color: var(--sage-800);
}
.ava-clay {
  background: var(--clay-100);
  color: var(--clay-700);
}
.ava-teal {
  background: #dff0ec;
  color: #2d6b5e;
}
.ava-stone {
  background: var(--stone-100);
  color: var(--stone-700);
}
.ava-moss {
  background: #e8f0e4;
  color: var(--moss-700);
}
.ava-blue {
  background: #e8eeff;
  color: #2a3e8a;
}
.ava-pink {
  background: #ffe8f4;
  color: #8a2a5e;
}
.worker-name {
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text-primary);
}
.worker-id {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ── FILTER TOOLBAR ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-tabs {
  display: flex;
  background: var(--sage-50);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--stone-100);
}
.filter-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
}
.filter-tab:hover {
  color: var(--text-secondary);
}
.filter-tab.active {
  background: #fff;
  color: var(--sage-600);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.toolbar-row {
  padding: 12px 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--stone-100);
  background: var(--sage-50);
}
.filter-select {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--stone-100);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.filter-input {
  padding: 7px 12px 7px 34px;
  border-radius: 8px;
  border: 1px solid var(--stone-100);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  width: 220px;
}
.filter-input:focus {
  outline: none;
  border-color: var(--sage-400);
}
.search-wrap {
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ── DRAWER ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 40, 32, 0.3);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 480px;
  background: #fff;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--stone-100);
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--stone-100);
  display: flex;
  align-items: center;
  gap: 14px;
}
.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--stone-100);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-left: auto;
}
.drawer-close:hover {
  background: var(--sage-50);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.drawer-title {
  font-family: "Lora", serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}
.drawer-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.drawer-section {
  margin-bottom: 24px;
}
.drawer-section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-item {
  background: var(--sage-50);
  border-radius: 8px;
  padding: 12px 14px;
}
.info-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.info-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-tag {
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--sage-100);
  color: var(--sage-800);
  font-size: 12px;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--sage-50);
  border-radius: 8px;
  margin-bottom: 8px;
}
.cert-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sage-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.cert-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.cert-date {
  font-size: 12px;
  color: var(--text-muted);
}
.history-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--stone-100);
}
.history-item:last-child {
  border-bottom: none;
}
.history-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage-400);
  margin-top: 4px;
  flex-shrink: 0;
}
.history-info {
  flex: 1;
}
.history-family {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.history-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--stone-100);
  display: flex;
  gap: 10px;
}
.big-ava {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── PERMINTAAN KLIEN ── */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
.kanban-col {
  background: var(--sage-50);
  border-radius: 12px;
  border: 1px solid var(--stone-100);
  overflow: hidden;
}
.kanban-col-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--stone-100);
}
.kanban-col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}
.kanban-count {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-card {
  background: #fff;
  border: 1px solid var(--stone-100);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.kanban-card:hover {
  box-shadow: 0 4px 16px rgba(46, 79, 40, 0.1);
  transform: translateY(-1px);
}
.kc-client {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.kc-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.kc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kc-date {
  font-size: 11px;
  color: var(--text-muted);
}
.urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.urgent-high {
  background: #e04040;
}
.urgent-med {
  background: var(--clay-300);
}
.urgent-low {
  background: var(--sage-400);
}
.kc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.kc-loc {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.worker-assigned {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--sage-50);
  border-radius: 6px;
  margin-top: 8px;
}
.wa-ava {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-100);
  color: var(--sage-800);
}
.wa-name {
  font-size: 12px;
  color: var(--text-secondary);
}

/* View toggle */
.view-toggle {
  display: flex;
  background: var(--sage-50);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--stone-100);
}
.view-btn {
  width: 32px;
  height: 28px;
  border-radius: 5px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.view-btn.active {
  background: #fff;
  color: var(--sage-600);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Request detail drawer */
.req-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rt-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  position: relative;
}
.rt-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--stone-100);
}
.rt-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.rt-dot.done {
  background: var(--sage-100);
  color: var(--sage-600);
}
.rt-dot.current {
  background: var(--clay-100);
  color: var(--clay-700);
}
.rt-dot.todo {
  background: var(--stone-100);
  color: var(--stone-500);
}
.rt-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.rt-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Candidate match card */
.match-card {
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.match-card:hover {
  background: var(--sage-100);
}
.match-score {
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--sage-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lora", serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--sage-600);
}
.match-info {
  flex: 1;
}
.match-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
}
.match-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--stone-100);
}
.page-info {
  font-size: 13px;
  color: var(--text-muted);
}
.page-btns {
  display: flex;
  gap: 4px;
}
.page-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--stone-100);
  background: none;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.page-btn:hover {
  background: var(--sage-50);
}
.page-btn.active {
  background: var(--sage-600);
  color: #fff;
  border-color: var(--sage-600);
}

/* Dasbor specific preserved */
.cat-summary {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cat-info {
  flex: 1;
}
.cat-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cat-count-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-bar-bg {
  flex: 1;
  height: 5px;
  background: var(--stone-100);
  border-radius: 99px;
  overflow: hidden;
}
.cat-bar-fill {
  height: 100%;
  border-radius: 99px;
}
.cat-num {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 28px;
  text-align: right;
}
.request-list {
  display: flex;
  flex-direction: column;
}
.request-item {
  padding: 14px 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--stone-100);
  cursor: pointer;
}
.request-item:last-child {
  border-bottom: none;
}
.request-item:hover {
  background: var(--sage-50);
}
.request-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.dot-new {
  background: var(--sage-400);
}
.dot-open {
  background: var(--clay-300);
}
.dot-done {
  background: var(--stone-300);
}
.request-body {
  flex: 1;
}
.request-client {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.request-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.request-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.sched-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--stone-100);
}
.sched-item:last-child {
  border-bottom: none;
}
.sched-item:hover {
  background: var(--sage-50);
}
.sched-date {
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.sched-day {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sched-num {
  font-family: "Lora", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}
.sched-num.today {
  color: var(--sage-600);
}
.sched-bar {
  width: 3px;
  border-radius: 99px;
  background: var(--sage-400);
  align-self: stretch;
  min-height: 36px;
  flex-shrink: 0;
}
.sched-bar.clay {
  background: var(--clay-300);
}
.sched-bar.stone {
  background: var(--stone-300);
}
.sched-info {
  flex: 1;
}
.sched-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.sched-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.sched-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.chart-area {
  padding: 18px 22px 10px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-bottom: 8px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
}
.bar-fill.green {
  background: var(--sage-400);
}
.bar-fill.clay {
  background: var(--clay-300);
}
.bar-label {
  font-size: 10.5px;
  color: var(--text-muted);
}
.bar-val {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}
.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-top: 3px;
  flex-shrink: 0;
}
.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.perf-body {
  padding: 18px 22px;
}
.perf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.perf-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.perf-val {
  font-family: "Lora", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
}
.perf-unit {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}
.divider {
  height: 1px;
  background: var(--stone-100);
  margin: 12px 0;
}
.mini-stat-row {
  display: flex;
  gap: 0;
}
.mini-stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid var(--stone-100);
}
.mini-stat:last-child {
  border-right: none;
}
.mini-stat-num {
  font-family: "Lora", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}
.mini-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* First visit profile modal */
.welcome-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 40, 32, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.welcome-modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.welcome-modal {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--stone-100);
  border-radius: 14px;
  padding: 26px;
  position: relative;
  box-shadow: 0 20px 60px rgba(30, 40, 32, 0.25);
  animation: welcome-modal-in 0.22s ease;
}
@keyframes welcome-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.welcome-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--stone-100);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 14px;
  right: 14px;
}
.welcome-modal-close:hover {
  background: var(--sage-50);
  color: var(--text-secondary);
}
.welcome-modal-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--sage-600);
  margin-bottom: 8px;
}
.welcome-modal-title {
  font-family: "Lora", serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.1;
}
.welcome-modal-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 10px;
}
.welcome-modal-contact-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.welcome-icon-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3ff;
  border: 1px solid #d9e3ff;
  color: #2c4ea0;
  text-decoration: none;
}
.welcome-icon-link:hover {
  background: #dde7ff;
}
.welcome-wa-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--stone-100);
  background: var(--cream);
}
.welcome-wa-link:hover {
  border-color: var(--sage-200);
  background: var(--sage-50);
}
.welcome-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .welcome-modal {
    padding: 22px 18px;
  }
  .welcome-modal-title {
    font-size: 24px;
  }
  .welcome-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--sage-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  z-index: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
