/* ===========================
   جاکجاست - استایل اصلی
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #e50241;
  --primary-dark: #c0021f;
  --primary-light: #ff1a5e;
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f2f5;
  --text: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #ececec;
  --border-dark: #ddd;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --sidebar-width: 260px;
  --header-height: 64px;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --purple: #6f42c1;
}

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

body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--bg-tertiary);
  color: var(--text);
  direction: rtl;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===========================
   اسکرول‌بار سفارشی
   =========================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===========================
   لایه‌بندی اصلی
   =========================== */
#app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===========================
   سایدبار
   =========================== */
#sidebar {
  width: var(--sidebar-width);
  background: #1a1a2e;
  color: #fff;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

#sidebar .sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#sidebar .sidebar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

#sidebar .sidebar-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

#sidebar .sidebar-logo .logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

#sidebar nav {
  padding: 12px 0;
  flex: 1;
  overflow-y: auto;
}

#sidebar nav .nav-section {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

#sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 0;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border-right: 3px solid transparent;
  margin: 1px 8px;
  border-radius: 8px;
}

#sidebar nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

#sidebar nav a.active {
  background: rgba(229,2,65,0.2);
  color: #fff;
  border-right-color: var(--primary);
}

#sidebar nav a .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

#sidebar nav a .nav-badge {
  margin-right: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

#sidebar .sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

#sidebar .sidebar-footer .user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

#sidebar .sidebar-footer .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

/* ===========================
   هدر
   =========================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: var(--sidebar-width);
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 900;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

#main-header .header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

#main-header .header-search {
  position: relative;
  flex: 0 0 300px;
}

#main-header .header-search input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  background: var(--bg-secondary);
  color: var(--text);
  outline: none;
  transition: all 0.2s;
  direction: rtl;
}

#main-header .header-search input:focus {
  border-color: var(--primary);
  background: #fff;
}

#main-header .header-search .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.header-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 15px;
  transition: all 0.2s;
  position: relative;
}

.header-btn:hover {
  background: var(--border);
  color: var(--primary);
}

.header-btn .badge-dot {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #fff;
}

.role-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  direction: rtl;
}

.role-selector .role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* ===========================
   محتوای اصلی
   =========================== */
#main-content {
  margin-right: var(--sidebar-width);
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding: 24px;
  transition: margin-right 0.3s ease;
}

/* ===========================
   کارت‌ها
   =========================== */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.card-header h3, .card-header h4, .card-header h5 {
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.card-body {
  padding: 20px;
}

/* ===========================
   KPI کارت‌ها
   =========================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
}

.kpi-card.red::before { background: var(--primary); }
.kpi-card.green::before { background: var(--success); }
.kpi-card.blue::before { background: var(--info); }
.kpi-card.orange::before { background: #ff6b35; }
.kpi-card.purple::before { background: var(--purple); }
.kpi-card.yellow::before { background: var(--warning); }

.kpi-card .kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.kpi-card.red .kpi-icon { background: rgba(229,2,65,0.1); color: var(--primary); }
.kpi-card.green .kpi-icon { background: rgba(40,167,69,0.1); color: var(--success); }
.kpi-card.blue .kpi-icon { background: rgba(23,162,184,0.1); color: var(--info); }
.kpi-card.orange .kpi-icon { background: rgba(255,107,53,0.1); color: #ff6b35; }
.kpi-card.purple .kpi-icon { background: rgba(111,66,193,0.1); color: var(--purple); }
.kpi-card.yellow .kpi-icon { background: rgba(255,193,7,0.1); color: #d39e00; }

.kpi-card .kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-card .kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-card .kpi-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-card .kpi-change.up { color: var(--success); }
.kpi-card .kpi-change.down { color: var(--danger); }

/* ===========================
   نمودار میله‌ای CSS
   =========================== */
.bar-chart-wrapper {
  padding: 20px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.bar-chart .bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.bar-chart .bar {
  width: 100%;
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  border-radius: 4px 4px 0 0;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  min-height: 4px;
}

.bar-chart .bar:hover {
  opacity: 0.85;
}

.bar-chart .bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  display: none;
  z-index: 10;
}

.bar-chart .bar:hover .bar-tooltip {
  display: block;
}

.bar-chart .bar-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* ===========================
   جداول
   =========================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: 0 0 var(--radius) var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table thead th {
  background: var(--bg-secondary);
  padding: 12px 14px;
  text-align: right;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  user-select: none;
}

.data-table thead th:hover { background: var(--border); }

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.data-table tbody tr:last-child { border-bottom: none; }

.data-table tbody tr:hover { background: rgba(229,2,65,0.03); }

.data-table tbody td {
  padding: 11px 14px;
  color: var(--text);
  vertical-align: middle;
}

/* ===========================
   بج‌ها و باج‌ها
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  gap: 4px;
}

.badge-success { background: rgba(40,167,69,0.12); color: #1a7a32; }
.badge-danger { background: rgba(220,53,69,0.12); color: #a71d2a; }
.badge-warning { background: rgba(255,193,7,0.12); color: #946c00; }
.badge-info { background: rgba(23,162,184,0.12); color: #0c6a7a; }
.badge-primary { background: rgba(229,2,65,0.12); color: var(--primary); }
.badge-secondary { background: rgba(108,117,125,0.12); color: #4e555b; }
.badge-purple { background: rgba(111,66,193,0.12); color: #5a2d82; }
.badge-gold { background: rgba(255,193,7,0.2); color: #8a6800; }

/* ===========================
   دکمه‌ها
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:hover { filter: brightness(0.92); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #333; }
.btn-info { background: var(--info); color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-light { background: var(--bg-secondary); color: var(--text); border: 1px solid var(--border); }
.btn-outline-primary { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline-secondary { background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border-dark); }

.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 5px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 10px; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }

/* ===========================
   فرم‌ها
   =========================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: all 0.2s;
  direction: rtl;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229,2,65,0.1);
}

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* ===========================
   مودال‌ها
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalIn 0.25s ease;
}

.modal-box.modal-lg { max-width: 800px; }
.modal-box.modal-xl { max-width: 1000px; }
.modal-box.modal-sm { max-width: 400px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.modal-header h4 { font-weight: 700; color: var(--text); margin: 0; }

.modal-body { padding: 20px; }

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.btn-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.btn-close:hover { background: var(--danger); color: #fff; }

/* ===========================
   تب‌ها
   =========================== */
.tabs-wrapper {
  border-bottom: 2px solid var(--border);
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 0 20px;
  background: #fff;
}

.tab-btn {
  padding: 12px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover { color: var(--primary); }

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===========================
   آواتار
   =========================== */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-xl { width: 80px; height: 80px; font-size: 28px; }

.avatar-colors > *:nth-child(1) .avatar, .avatar-color-1 { background: #e50241; }
.avatar-color-2 { background: #17a2b8; }
.avatar-color-3 { background: #28a745; }
.avatar-color-4 { background: #6f42c1; }
.avatar-color-5 { background: #fd7e14; }
.avatar-color-6 { background: #20c997; }
.avatar-color-7 { background: #e83e8c; }
.avatar-color-8 { background: #007bff; }

/* ===========================
   فیلتر و جستجو
   =========================== */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.filter-bar .search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-bar .search-box input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  outline: none;
  transition: all 0.2s;
  direction: rtl;
}

.filter-bar .search-box input:focus { border-color: var(--primary); }

.filter-bar .search-box .si {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.filter-bar select {
  padding: 8px 12px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
  direction: rtl;
}

.filter-bar select:focus { border-color: var(--primary); }

/* ===========================
   صفحه‌بندی
   =========================== */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  justify-content: center;
}

.pagination button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--border-dark);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover { background: var(--bg-secondary); border-color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

.pagination .page-info {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 8px;
}

/* ===========================
   تایم‌لاین
   =========================== */
.timeline {
  padding: 20px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 38px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.timeline-item .tl-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 2px solid #fff;
}

.timeline-item .tl-content {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.timeline-item .tl-content .tl-text {
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-item .tl-content .tl-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===========================
   چت
   =========================== */
#chat-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  height: calc(100vh - var(--header-height) - 80px);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-sidebar {
  border-left: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
}

.chat-sidebar .cs-header {
  padding: 14px 14px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.chat-sidebar .channel-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.chat-sidebar .channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 0;
  transition: all 0.15s;
  border-right: 3px solid transparent;
}

.chat-sidebar .channel-item:hover { background: var(--border); color: var(--text); }
.chat-sidebar .channel-item.active { background: rgba(229,2,65,0.08); color: var(--primary); border-right-color: var(--primary); font-weight: 600; }

.chat-sidebar .channel-item .ch-badge {
  margin-right: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
}

.chat-sidebar .online-users {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.chat-sidebar .online-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.chat-sidebar .online-user:hover { background: var(--border); }

.chat-sidebar .online-user .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-sidebar .online-user .status-dot.online { background: var(--success); }
.chat-sidebar .online-user .status-dot.offline { background: var(--text-muted); }

.chat-main {
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 75%;
}

.chat-msg.me {
  flex-direction: row-reverse;
  margin-right: auto;
}

.chat-msg .msg-bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  max-width: 100%;
  word-break: break-word;
}

.chat-msg.me .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.chat-msg .msg-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.chat-msg.me .msg-time { text-align: left; color: rgba(255,255,255,0.7); }

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: 20px;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  direction: rtl;
  background: var(--bg-secondary);
}

.chat-input-area input:focus { border-color: var(--primary); background: #fff; }

/* ===========================
   کانبان
   =========================== */
#kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.kanban-col {
  min-width: 240px;
  max-width: 280px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.kanban-col-header {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-col-header .col-count {
  background: var(--border-dark);
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.kanban-cards {
  padding: 10px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.task-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.task-card .tc-priority {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.task-card .tc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.task-card .tc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* ===========================
   درخت سازمانی
   =========================== */
.org-chart {
  overflow-x: auto;
  padding: 20px;
}

.org-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.org-node-box {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.org-node-box:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.org-node-box.ceo { border-color: var(--primary); background: rgba(229,2,65,0.05); }
.org-node-box.manager { border-color: var(--info); }
.org-node-box.supervisor { border-color: var(--success); }

.org-node-box .on-name { font-size: 13px; font-weight: 700; color: var(--text); }
.org-node-box .on-title { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.org-children {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  position: relative;
}

.org-children::before {
  content: '';
  position: absolute;
  top: -16px;
  right: 50%;
  width: 2px;
  height: 16px;
  background: var(--border-dark);
  transform: translateX(50%);
}

/* ===========================
   فعالیت‌های اخیر
   =========================== */
.activity-list {
  padding: 0;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background 0.15s;
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-secondary); }

.activity-item .ai-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.activity-item .ai-content { flex: 1; }
.activity-item .ai-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.activity-item .ai-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===========================
   هشدارها
   =========================== */
.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border-right: 4px solid;
}

.alert-item.warning { background: rgba(255,193,7,0.1); border-color: var(--warning); }
.alert-item.danger { background: rgba(220,53,69,0.1); border-color: var(--danger); }
.alert-item.info { background: rgba(23,162,184,0.1); border-color: var(--info); }

.alert-item .ai-icon { font-size: 18px; flex-shrink: 0; }
.alert-item .ai-text { flex: 1; font-size: 13px; font-weight: 500; }
.alert-item .ai-action { font-size: 12px; color: var(--primary); cursor: pointer; font-weight: 600; }

/* ===========================
   نوتیفیکیشن دراپ‌داون
   =========================== */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 340px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 1500;
  display: none;
}

.notif-dropdown.show { display: block; }

.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.notif-item:hover { background: var(--bg-secondary); }
.notif-item.unread { background: rgba(229,2,65,0.03); }

.notif-item .ni-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.notif-item .ni-text { font-size: 13px; color: var(--text); line-height: 1.4; }
.notif-item .ni-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===========================
   گزارش
   =========================== */
.report-section {
  margin-bottom: 24px;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-box .sb-value { font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-box .sb-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===========================
   تسویه حساب
   =========================== */
.settlement-bar {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 6px;
}

.settlement-bar .sb-fill {
  height: 100%;
  background: linear-gradient(to left, var(--success), #48d868);
  border-radius: 5px;
}

/* ===========================
   تقویم حضور
   =========================== */
.attendance-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 16px;
}

.att-day {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.att-day.header { background: none; font-size: 11px; color: var(--text-muted); cursor: default; }
.att-day.present { background: rgba(40,167,69,0.2); color: #1a7a32; }
.att-day.absent { background: rgba(220,53,69,0.2); color: #a71d2a; }
.att-day.leave { background: rgba(255,193,7,0.2); color: #946c00; }
.att-day.remote { background: rgba(23,162,184,0.2); color: #0c6a7a; }
.att-day.holiday { background: var(--bg-secondary); color: var(--text-muted); }
.att-day.today { border: 2px solid var(--primary); }

/* ===========================
   گانت چارت
   =========================== */
.gantt-chart {
  overflow-x: auto;
  padding: 16px;
}

.gantt-row {
  display: flex;
  align-items: center;
  height: 36px;
  margin-bottom: 6px;
  gap: 0;
}

.gantt-row .gantt-label {
  width: 180px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-row .gantt-bar-area {
  flex: 1;
  height: 100%;
  position: relative;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.gantt-row .gantt-bar {
  position: absolute;
  height: 70%;
  top: 15%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}

/* ===========================
   کارت میزبان
   =========================== */
.host-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 20px;
}

.host-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.host-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.host-card .hc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.host-card .hc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.host-card .hc-stat {
  text-align: center;
}

.host-card .hc-stat .v { font-size: 15px; font-weight: 700; color: var(--text); }
.host-card .hc-stat .l { font-size: 11px; color: var(--text-muted); }

/* ===========================
   ستاره‌های امتیاز
   =========================== */
.stars {
  display: flex;
  gap: 2px;
  direction: ltr;
}

.stars .star {
  font-size: 13px;
  color: var(--border-dark);
}

.stars .star.filled { color: var(--warning); }

/* ===========================
   پیشرفت
   =========================== */
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar .pb-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.pb-fill.primary { background: var(--primary); }
.pb-fill.success { background: var(--success); }
.pb-fill.warning { background: var(--warning); }
.pb-fill.info { background: var(--info); }

/* ===========================
   اعلان توست
   =========================== */
#toast-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border-right: 4px solid;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  min-width: 260px;
  pointer-events: all;
  animation: toastIn 0.3s ease;
  transition: opacity 0.3s;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast.info { border-color: var(--info); }

.toast .toast-icon { font-size: 18px; }
.toast .toast-msg { flex: 1; }
.toast .toast-close { cursor: pointer; opacity: 0.6; font-size: 16px; }

/* ===========================
   لودینگ اسکلتون
   =========================== */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-secondary) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===========================
   موبایل ناوبری پایین
   =========================== */
#mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 6px 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

#mobile-nav .mnav-items {
  display: flex;
  justify-content: space-around;
}

#mobile-nav .mnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}

#mobile-nav .mnav-item.active { color: var(--primary); }
#mobile-nav .mnav-item .mn-icon { font-size: 20px; }

/* ===========================
   هدر موبایل
   =========================== */
#mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* ===========================
   ریسپانسیو
   =========================== */
@media (max-width: 992px) {
  #sidebar {
    transform: translateX(100%);
  }

  #sidebar.open {
    transform: translateX(0);
  }

  #sidebar-overlay.show { display: block; }

  #main-header {
    right: 0;
    padding: 0 16px;
  }

  #main-header .header-search { flex: 0 0 200px; }

  #main-content {
    margin-right: 0;
    padding: 16px;
  }

  .mobile-hidden { display: none !important; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  #chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
}

@media (max-width: 768px) {
  #main-header .header-search { display: none; }
  #mobile-nav { display: block; }
  #main-content { padding-bottom: 80px; }

  #mobile-topbar { display: flex; }
  #main-header { display: none; }
  #main-content { margin-top: 56px; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-card { padding: 14px; }
  .kpi-card .kpi-value { font-size: 20px; }

  .host-card-grid { grid-template-columns: 1fr 1fr; }
  #kanban-board { flex-direction: column; }
  .kanban-col { max-width: 100%; }
  .modal-box.modal-lg, .modal-box.modal-xl { max-width: 100%; margin: 0; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 85vh; }

  .data-table thead th:nth-child(n+5) { display: none; }
  .data-table tbody td:nth-child(n+5) { display: none; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .host-card-grid { grid-template-columns: 1fr; }
  .tabs-wrapper { padding: 0 10px; }
  .tab-btn { padding: 10px 10px; font-size: 12px; }
}

/* ===========================
   یوتیلیتی‌ها
   =========================== */
.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: #d39e00; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-sm); }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ===========================
   پروفایل هدر
   =========================== */
.profile-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.profile-header .ph-info h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.profile-header .ph-info p { color: rgba(255,255,255,0.7); font-size: 14px; }
.profile-header .ph-actions { margin-right: auto; display: flex; gap: 8px; }

/* ===========================
   ورود/خروج پرسنل
   =========================== */
.attendance-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.att-control-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.att-control-card .acc-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.att-control-card .acc-value { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* ===========================
   فایل آپلود
   =========================== */
.file-upload-area {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}

.file-upload-area:hover {
  border-color: var(--primary);
  background: rgba(229,2,65,0.03);
  color: var(--primary);
}

/* ===========================
   نمودار دایره (CSS)
   =========================== */
.donut-chart {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-chart .donut-label {
  position: absolute;
  text-align: center;
}

.donut-chart .donut-label .dv { font-size: 18px; font-weight: 800; color: var(--text); }
.donut-chart .donut-label .dl { font-size: 10px; color: var(--text-muted); }

/* ===========================
   منوی راست‌کلیک / دراپ‌داون
   =========================== */
.dropdown-menu {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 4px 0;
  min-width: 160px;
  z-index: 1000;
  display: none;
}

.dropdown-menu.show { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover { background: var(--bg-secondary); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(220,53,69,0.08); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ===========================
   تنظیمات
   =========================== */
.settings-section {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
}

.settings-section .ss-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-secondary);
}

.settings-section .ss-body { padding: 18px; }

.switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.switch-wrap:last-child { border-bottom: none; }

.switch-wrap .sw-info .sw-label { font-size: 13.5px; font-weight: 600; }
.switch-wrap .sw-info .sw-desc { font-size: 12px; color: var(--text-muted); }

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input { display: none; }

.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--border-dark);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.switch .slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ===========================
   جدول تخصیص دسترسی
   =========================== */
.permission-table {
  width: 100%;
  border-collapse: collapse;
}

.permission-table th, .permission-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
}

.permission-table th { background: var(--bg-secondary); font-weight: 700; }
.permission-table tbody tr:hover { background: var(--bg-secondary); }

/* ===========================
   ساب‌تسک
   =========================== */
.subtask-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subtask-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
  padding: 4px 0;
  cursor: pointer;
}

.subtask-item input[type="checkbox"] {
  accent-color: var(--primary);
  cursor: pointer;
}

.subtask-item.done { color: var(--text-muted); text-decoration: line-through; }

/* ===========================
   مشخصات فیش حقوقی
   =========================== */
.payslip {
  background: #fff;
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 500px;
  margin: 0 auto;
  font-size: 13px;
}

.payslip .ps-header {
  text-align: center;
  border-bottom: 2px solid var(--border-dark);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.payslip .ps-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.payslip .ps-row:last-child { border-bottom: none; }
.payslip .ps-total { font-weight: 800; font-size: 15px; color: var(--primary); }

/* ===========================
   مهم: هر page
   =========================== */
.page { display: none; }
.page.active { display: block; }
