/* ============================================
   WHITE OAK MEDIA — Client Portal Styles
   06-clients-projects.css — Clients list/grid/table, project detail, phase tracker, tasks, timeline, requests, file library, messages, documents
   ============================================ */

/* ---------- Clients Toolbar/Grid/Table + Project Detail/Phases/Tasks/Timeline/Updates ---------- */
/* ---------- Clients Toolbar ---------- */
.clients-toolbar {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.clients-search-wrap {
  flex: 1; position: relative;
}
.clients-search-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--color-text-muted); pointer-events: none;
}
.clients-search {
  width: 100%; padding: 0.6rem 0.75rem 0.6rem 2.5rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 0.85rem; font-family: inherit; background: var(--color-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.clients-search:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29,36,44,0.08);
}
.clients-search::placeholder { color: var(--color-text-muted); opacity: 0.6; }
.clients-view-toggle { display: flex; gap: 0.25rem; }
.clients-view-btn {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 0.45rem; cursor: pointer;
  color: var(--color-text-muted); display: flex; align-items: center;
  transition: all 0.15s;
}
.clients-view-btn:hover { background: var(--color-cream); color: var(--color-text); }
.clients-view-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- Clients Card Grid ---------- */
.clients-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.client-card {
  background: var(--color-white); border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md); padding: 1.25rem; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s;
}
.client-card:hover {
  border-color: var(--color-primary); box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.client-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.client-card-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.client-card-name { font-weight: 700; font-size: 0.95rem; color: var(--color-navy); }
.client-card-email { font-size: 0.75rem; color: var(--color-text-secondary); margin-top: 0.1rem; }
.client-card-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.client-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; border-top: 1px solid var(--color-border-light);
  font-size: 0.78rem; color: var(--color-text-muted);
}
.client-card-status { display: flex; align-items: center; gap: 0.35rem; }

/* ---------- Clients Table ---------- */
.clients-table-wrap { overflow-x: auto; }
.clients-table {
  width: 100%; border-collapse: collapse;
  background: var(--color-white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--color-border);
}
.clients-table th {
  text-align: left; padding: 0.875rem 1.25rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-text-secondary);
  background: var(--color-cream); border-bottom: 1px solid var(--color-border);
}
.clients-table td {
  padding: 1rem 1.25rem; font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}
.clients-table tbody tr { cursor: pointer; transition: background var(--transition); }
.clients-table tbody tr:hover { background: var(--color-cream); }
.clients-table tbody tr:last-child td { border-bottom: none; }
.client-cell { display: flex; align-items: center; gap: 0.75rem; }
.client-cell-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem; flex-shrink: 0;
}
.client-cell-name { font-weight: 600; }
.client-cell-email { font-size: 0.78rem; color: var(--color-text-secondary); }
.site-status-dot {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.82rem; font-weight: 500;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.status-dot.up { background: var(--color-success); animation: pulse-green 2s infinite; }
.status-dot.down { background: var(--color-danger); animation: pulse-red 1.5s infinite; }
.status-dot.unknown { background: var(--color-text-muted); }
@keyframes pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(45,138,78,0.4); } 50% { box-shadow: 0 0 0 4px rgba(45,138,78,0); } }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); } 50% { box-shadow: 0 0 0 4px rgba(220,38,38,0); } }

/* ---------- Project Detail ---------- */
.project-detail-header {
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.project-detail-header h1 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--color-navy); letter-spacing: -0.025em; }
.project-detail-header p { color: var(--color-text-secondary); margin-top: 0.25rem; }
.project-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; }
.project-main { display: flex; flex-direction: column; gap: 1.5rem; }
.project-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* ---------- Phase Tracker ---------- */
.phase-tracker {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.phase-steps { display: flex; align-items: center; margin-top: 1rem; position: relative; }
.phase-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1;
}
.phase-step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 0.75rem; font-weight: 700; color: var(--color-text-muted);
}
.phase-step.completed .phase-step-dot {
  background: var(--color-success); border-color: var(--color-success); color: white;
}
.phase-step.current .phase-step-dot {
  background: var(--color-primary); border-color: var(--color-primary); color: white;
  box-shadow: 0 0 0 4px var(--color-primary-light);
}
.phase-step-label {
  font-size: 0.65rem; font-weight: 600; margin-top: 0.5rem;
  color: var(--color-text-muted); text-align: center; max-width: 80px;
  line-height: 1.2;
}
.phase-step.completed .phase-step-label { color: var(--color-success); }
.phase-step.current .phase-step-label { color: var(--color-primary); }
.phase-connector {
  position: absolute; top: 18px; left: 0; right: 0;
  height: 2px; background: var(--color-border); z-index: 0;
}
.phase-connector-fill {
  height: 100%; background: var(--color-success);
  transition: width 0.5s ease;
}

/* Retainer phase indicator */
.phase-step.retainer .phase-step-dot {
  border-style: dashed;
}
.phase-step.retainer .phase-step-label::after {
  content: ' (recurring)';
  font-size: 0.55rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ---------- Task Checklist ---------- */
.task-progress-bar-wrap {
  height: 4px; background: var(--color-cream); width: 100%;
}
.task-progress-bar {
  height: 100%; background: var(--color-primary);
  border-radius: 2px; transition: width 0.4s ease;
}
.task-progress-label {
  font-size: 0.75rem; font-weight: 600; color: var(--color-text-secondary);
}
.task-list {
  padding: 0.5rem 0; max-height: 400px; overflow-y: auto;
}
.task-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}
.task-item:last-child { border-bottom: none; }
.task-item:hover { background: var(--color-cream); }
.task-item input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--color-primary);
  cursor: pointer; flex-shrink: 0;
}
.task-item-label {
  flex: 1; font-size: 0.85rem; color: var(--color-text);
  transition: all var(--transition);
}
.task-item.completed .task-item-label {
  text-decoration: line-through; color: var(--color-text-muted);
}
.task-item-due {
  font-size: 0.7rem; font-weight: 500; flex-shrink: 0;
}
.task-item-due.overdue { color: var(--color-danger); }
.task-item-due.due-soon { color: var(--color-warning); }
.task-item-due.upcoming { color: var(--color-info); }
.task-item-due.no-date { color: var(--color-text-muted); }

/* Read-only task items (client view) */
.task-item.readonly input[type="checkbox"] {
  pointer-events: none;
}

/* Task deadline date picker inline */
.task-due-input {
  padding: 0.2rem 0.375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  width: auto;
}
.task-due-input:focus {
  outline: none; border-color: var(--color-primary);
}

/* ---------- Timeline ---------- */
.timeline { padding: 1rem 1.5rem; }
.timeline-item {
  display: flex; gap: 1rem; padding-bottom: 1.5rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 0;
  width: 1px; background: var(--color-border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; z-index: 1;
}
.timeline-dot.update { background: var(--color-primary-light); color: var(--color-primary); }
.timeline-dot.phase { background: var(--color-info-bg); color: var(--color-info); }
.timeline-dot.request { background: var(--color-warning-bg); color: var(--color-warning); }
.timeline-dot.system { background: var(--color-cream); color: var(--color-text-muted); }
.timeline-content { flex: 1; min-width: 0; }
.timeline-content h4 { font-size: 0.85rem; font-weight: 600; }
.timeline-content p { font-size: 0.85rem; color: var(--color-text-secondary); margin-top: 0.25rem; line-height: 1.5; }
.timeline-content .timeline-date { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 0.375rem; }
.timeline-content .timeline-files { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.timeline-file {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.5rem; background: var(--color-cream);
  border-radius: var(--radius-sm); font-size: 0.72rem;
  color: var(--color-text-secondary);
}
/* Timeline comment section */
.timeline-comments { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--color-border-light); }
.timeline-comment {
  display: flex; gap: 0.5rem; margin-bottom: 0.5rem; padding: 0.5rem;
  background: var(--color-cream); border-radius: var(--radius-sm);
}
.timeline-comment-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; flex-shrink: 0;
}
.timeline-comment-body { flex: 1; }
.timeline-comment-body strong { font-size: 0.78rem; display: block; margin-bottom: 0.125rem; }
.timeline-comment-body p { font-size: 0.78rem; color: var(--color-text-secondary); margin-top: 0.125rem; line-height: 1.5; }
.comment-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.comment-form input {
  flex: 1; padding: 0.4rem 0.75rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: 0.8rem;
}
.comment-form input:focus { outline: none; border-color: var(--color-primary); }
.comment-form button { padding: 0.4rem 0.75rem; }

/* ---------- Update Form ---------- */
.update-form { padding: 1.25rem 1.5rem; }
.update-form textarea {
  width: 100%; padding: 0.75rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); resize: vertical; min-height: 80px;
  font-size: 0.875rem;
}
.update-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.update-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; }

/* ---------- Phase Control ---------- */
.phase-control { padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

/* ---------- Project Info ---------- */
.project-info { padding: 1rem 1.5rem; }
.project-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
@media (max-width: 600px) { .project-info-grid { grid-template-columns: 1fr; } }
.project-info-row {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--color-border-light);
}
.project-info-grid .project-info-row:nth-last-child(-n+2) { border-bottom: none; }
.project-info-row.full-width { grid-column: 1 / -1; }
.project-info-label { font-size: 0.68rem; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.03em; }
.project-info-value { font-size: 0.88rem; font-weight: 600; word-break: break-word; }


/* ---------- Request Form + Request Detail Modal ---------- */
/* ---------- Request Form (Sidebar) ---------- */
.request-form { padding: 1rem 1.5rem; }

/* ---------- Request Detail Modal ---------- */
.request-detail-body { padding: 1.5rem; }
.request-detail-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.request-detail-field .label-upper { font-size: 0.6rem; margin-bottom: 0.25rem; display: block; }
.request-detail-description { font-size: 0.9rem; line-height: 1.6; color: var(--color-text); margin-bottom: 1.5rem; }
.request-detail-files { margin-bottom: 1.5rem; }
.request-detail-files .label-upper { font-size: 0.6rem; margin-bottom: 0.5rem; display: block; }
.request-file-item {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0;
  font-size: 0.85rem; color: var(--color-text-secondary);
}
.request-file-item a { color: var(--color-primary); text-decoration: none; }
.request-file-item a:hover { text-decoration: underline; }
.request-file-preview { max-width: 120px; max-height: 80px; border-radius: var(--radius-sm); object-fit: cover; margin-top: 0.25rem; }
.request-detail-actions {
  display: flex; gap: 0.75rem; padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.request-status-select { display: flex; align-items: center; gap: 0.75rem; }


/* ---------- File Library ---------- */
/* ---------- File Library ---------- */
.files-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.5rem;
}
.file-card {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s;
}
.file-card:hover { border-color: var(--color-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.file-card-icon { font-size: 1.5rem; flex-shrink: 0; width: 2.5rem; text-align: center; }
.file-card-info { flex: 1; min-width: 0; }
.file-card-name {
  font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-card-meta {
  display: flex; gap: 0.5rem; align-items: center; font-size: 0.7rem;
  color: var(--color-text-muted); margin-top: 0.35rem;
}
.file-category-chips {
  display: flex; gap: 0.4rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.file-category-chips .chip {
  padding: 0.25rem 0.6rem; font-size: 0.7rem; border-radius: 12px;
  border: 1px solid var(--color-border); background: var(--color-white);
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.file-category-chips .chip.active {
  background: var(--color-primary); color: white; border-color: var(--color-primary);
}
.file-category-chips .chip:hover:not(.active) { border-color: var(--color-primary); }
.file-drop-zone {
  border: 2px dashed var(--color-border); border-radius: var(--radius-md); padding: 1.5rem;
  text-align: center; color: var(--color-text-muted); font-size: 0.85rem;
  transition: all 0.15s; margin-top: 0.75rem;
}
.file-drop-zone.active {
  border-color: var(--color-primary); background: rgba(180, 81, 67, 0.05);
  color: var(--color-primary);
}
.file-drop-zone-input {
  border: 2px dashed var(--color-border); border-radius: var(--radius-md); padding: 1.5rem;
  text-align: center; color: var(--color-text-muted); font-size: 0.85rem;
  cursor: pointer; position: relative; transition: all 0.15s;
}
.file-drop-zone-input.active { border-color: var(--color-primary); }
.file-drop-zone-input input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.upload-progress-bar {
  width: 100%; height: 6px; background: var(--color-border); border-radius: 3px; overflow: hidden;
}
.upload-progress-fill {
  height: 100%; width: 0%; background: var(--color-primary); border-radius: 3px;
  transition: width 0.2s ease;
}
.upload-progress-text {
  font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.25rem; text-align: center;
}
.file-preview-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem;
}
.file-preview-main { min-height: 200px; }
.file-preview-sidebar { border-left: 1px solid var(--color-border); padding-left: 1.5rem; }
.file-version-list { display: flex; flex-direction: column; gap: 0.25rem; }
.file-version-row {
  display: flex; gap: 0.5rem; font-size: 0.72rem; color: var(--color-text-muted);
  padding: 0.35rem 0; border-bottom: 1px solid var(--color-border);
}
.file-version-row span:first-child { font-weight: 600; min-width: 30px; }
@media (max-width: 768px) {
  .file-preview-layout { grid-template-columns: 1fr; }
  .file-preview-sidebar { border-left: none; border-top: 1px solid var(--color-border); padding-left: 0; padding-top: 1rem; }
}


/* ---------- Messages ---------- */
/* ---------- Messages ---------- */
.messages-thread {
  max-height: 400px; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--color-cream); border-radius: var(--radius-md); border: 1px solid var(--color-border);
}
.message-bubble {
  max-width: 80%; padding: 0.75rem 1rem; border-radius: var(--radius-lg);
  font-size: 0.85rem; line-height: 1.5; position: relative;
}
.message-bubble.sent {
  align-self: flex-end; background: var(--color-primary); color: white;
  border-bottom-right-radius: 4px;
}
.message-bubble.received {
  align-self: flex-start; background: var(--color-white); border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}
.message-bubble.internal {
  align-self: flex-start; background: #fef3c7; border: 1px dashed #f59e0b;
  border-bottom-left-radius: 4px;
}
.message-sender {
  font-size: 0.7rem; font-weight: 600; margin-bottom: 0.25rem; opacity: 0.8;
}
.message-content { overflow-wrap: break-word; word-break: break-word; }
.message-bubble.sent .message-sender { color: rgba(255,255,255,0.8); }
.message-bubble.received .message-sender { color: var(--color-text-muted); }
.message-bubble.internal .message-sender { color: #92400e; }
.message-time {
  font-size: 0.65rem; margin-top: 0.25rem; opacity: 0.6;
}
.message-bubble.internal .message-time { color: #92400e; }
.message-internal-badge {
  font-size: 0.6rem; background: #f59e0b; color: white; padding: 0.1rem 0.4rem;
  border-radius: 4px; margin-left: 0.5rem; font-weight: 600;
}
.message-compose {
  display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 0.75rem;
}
.message-compose textarea {
  flex: 1; resize: none; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem; font-size: 0.85rem; font-family: inherit;
  background: var(--color-white);
}
.message-compose textarea:focus {
  outline: none; border-color: var(--color-primary);
}
.internal-toggle {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem;
  color: var(--color-text-muted); margin-bottom: 0.5rem;
}
.internal-toggle input[type="checkbox"] { accent-color: #f59e0b; }
.messages-empty {
  text-align: center; padding: 2rem; color: var(--color-text-muted); font-size: 0.85rem;
}


/* ---------- Unread Message Badge + Quick Actions + Documents Hub + Help Center ---------- */
/* ---------- Unread Message Badge ---------- */
.client-card-unread {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--color-primary); color: var(--color-white);
  font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 10px; margin-left: 0.5rem;
}

/* ---------- Quick Actions ---------- */
.client-quick-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.quick-action-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-white);
  cursor: pointer; transition: var(--transition); font-size: 0.82rem;
  font-family: var(--font-body); color: var(--color-text);
}
.quick-action-btn:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.quick-action-icon {
  width: 28px; height: 28px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 0.8rem;
}

/* ---------- Documents Hub ---------- */
.documents-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.document-category-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.25rem; transition: var(--transition);
}
.document-category-card:hover { box-shadow: var(--shadow-md); }
.document-category-header {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.document-category-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.document-category-title { font-weight: 600; font-size: 0.95rem; }
.document-category-count { font-size: 0.75rem; color: var(--color-text-muted); }
.document-file-item {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border-light); font-size: 0.83rem;
  cursor: pointer; transition: var(--transition);
}
.document-file-item:last-child { border-bottom: none; }
.document-file-item:hover { color: var(--color-primary); }
.document-file-icon { color: var(--color-text-muted); flex-shrink: 0; }
.document-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-file-date { font-size: 0.72rem; color: var(--color-text-muted); flex-shrink: 0; }
.documents-empty {
  text-align: center; padding: 3rem; color: var(--color-text-muted); font-size: 0.9rem;
  grid-column: 1 / -1;
}

/* ---------- Help Center / Knowledge Base ---------- */
.help-content { display: flex; flex-direction: column; gap: 1rem; }
.help-category {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.help-category-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; font-weight: 600; font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-cream);
}
.help-category-icon { color: var(--color-primary); display: flex; align-items: center; }
.help-faq-item {
  border-bottom: 1px solid var(--color-border-light);
}
.help-faq-item:last-child { border-bottom: none; }
.help-faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1.25rem; cursor: pointer; font-size: 0.88rem;
  font-weight: 500; transition: var(--transition); gap: 1rem;
}
.help-faq-question:hover { background: var(--color-cream); }
.help-faq-toggle { color: var(--color-text-muted); transition: transform 0.2s; flex-shrink: 0; }
.help-faq-item.open .help-faq-toggle { transform: rotate(180deg); }
.help-faq-answer {
  display: none; padding: 0 1.25rem 1rem; font-size: 0.85rem;
  line-height: 1.65; color: var(--color-text-secondary);
}
.help-faq-item.open .help-faq-answer { display: block; }
