/* ==========================================================================
   Company Dashboard - Train & Hire
   Company-specific styles. Shared panel layout in application.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.co-form {
  max-width: 640px;
}

.co-form label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}

.co-form input[type='text'],
.co-form input[type='url'],
.co-form input[type='email'],
.co-form input[type='number'],
.co-form input[type='file'],
.co-form input[type='datetime-local'],
.co-form select,
.co-form textarea {
  font-family: var(--jobs-font);
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1.5px solid var(--jobs-card-border);
  padding: 0.55rem 0.85rem;
  background: #f9fafb;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.co-form input:focus,
.co-form select:focus,
.co-form textarea:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  background: #fff;
}

.co-form trix-editor {
  font-family: var(--jobs-font);
  font-size: 0.88rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 0 0 8px 8px;
  padding: 0.75rem 0.85rem;
  min-height: 160px;
  background: #f9fafb;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.co-form trix-editor:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  background: #fff;
}

.co-form trix-toolbar {
  border: 1.5px solid var(--jobs-card-border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #fafbfc;
  padding: 0.35rem;
}

.co-form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #f0f1f3;
}

.co-form-section:last-child,
.co-form-section:has(+ .co-form-actions) {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.co-form-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--jobs-text-secondary);
  margin-bottom: 1rem;
}

.co-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--jobs-card-border);
  margin-top: 1.75rem;
}

.co-form-actions input[type='submit'],
.co-form-actions button[type='submit'] {
  font-family: var(--jobs-font);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 0.55rem 1.5rem;
  letter-spacing: -0.01em;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.co-form-actions input[type='submit']:hover,
.co-form-actions button[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.25);
}

.co-form-actions input[type='submit']:active,
.co-form-actions button[type='submit']:active {
  transform: translateY(0);
  box-shadow: none;
}

.co-form-actions a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--jobs-text-secondary);
  text-decoration: none;
}

.co-form-actions a:hover {
  color: var(--jobs-text-primary);
}

/* --------------------------------------------------------------------------
   Inline forms (add skill / credential / location on job show)
   -------------------------------------------------------------------------- */

.co-inline-form {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: #fafbfc;
  border: 1.5px dashed var(--jobs-card-border);
  border-radius: 8px;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.co-inline-form label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jobs-text-secondary);
  margin-bottom: 0.15rem;
}

.co-inline-form input[type='text'],
.co-inline-form input[type='number'],
.co-inline-form select {
  font-family: var(--jobs-font);
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1.5px solid var(--jobs-card-border);
  padding: 0.35rem 0.65rem;
  background: #fff;
}

.co-inline-form input[type='text']:focus,
.co-inline-form input[type='number']:focus,
.co-inline-form select:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
}

.co-inline-form input[type='submit'],
.co-inline-form button[type='submit'] {
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.38rem 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Removable item row (for skills, credentials, locations on job show) */
.co-assoc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
  transition: background 0.12s ease;
}

.co-assoc-item:last-child {
  border-bottom: none;
}

.co-assoc-item:hover {
  background: #fafbfc;
}

.co-assoc-item-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.co-assoc-item-name {
  font-weight: 600;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
}

.co-assoc-item-meta {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

.co-assoc-item .btn-remove {
  font-size: 0.72rem;
  font-weight: 600;
  color: #dc3545;
  background: none;
  border: none;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    background 0.12s ease;
  cursor: pointer;
}

.co-assoc-item:hover .btn-remove {
  opacity: 1;
}

.co-assoc-item .btn-remove:hover {
  background: #fee2e2;
}

/* --------------------------------------------------------------------------
   Application pipeline (Kanban-style grouped columns)
   -------------------------------------------------------------------------- */

.co-pipeline {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #c4c8cc transparent;
}

.co-pipeline::-webkit-scrollbar {
  height: 5px;
}
.co-pipeline::-webkit-scrollbar-track {
  background: transparent;
}
.co-pipeline::-webkit-scrollbar-thumb {
  background: #c4c8cc;
  border-radius: 3px;
}

.co-pipeline-col {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
}

.co-pipeline-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--jobs-card-border);
}

.co-pipeline-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jobs-text-secondary);
}

.co-pipeline-col-count {
  font-size: 0.68rem;
  font-weight: 700;
  background: #eef1f5;
  color: var(--jobs-text-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* Pipeline column accent colors */
.co-pipeline-col[data-status='submitted'] .co-pipeline-col-header {
  border-left: 3px solid #3b82f6;
}
.co-pipeline-col[data-status='reviewing'] .co-pipeline-col-header {
  border-left: 3px solid #f59e0b;
}
.co-pipeline-col[data-status='interviewed'] .co-pipeline-col-header {
  border-left: 3px solid #8b5cf6;
}
.co-pipeline-col[data-status='offered'] .co-pipeline-col-header {
  border-left: 3px solid #10b981;
}
.co-pipeline-col[data-status='rejected'] .co-pipeline-col-header {
  border-left: 3px solid #ef4444;
}
.co-pipeline-col[data-status='withdrawn'] .co-pipeline-col-header {
  border-left: 3px solid #9aa0a6;
}

.co-pipeline-col-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.co-pipeline-card {
  display: block;
  background: #fff;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
}

.co-pipeline-card:hover {
  border-color: #c7d7f7;
  box-shadow: var(--jobs-card-hover-shadow);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

.co-pipeline-card-name {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.co-pipeline-card-meta {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

.co-pipeline-empty {
  padding: 1.25rem 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--jobs-text-muted);
  background: #fafbfc;
  border: 1.5px dashed var(--jobs-card-border);
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Candidate detail - two column layout
   -------------------------------------------------------------------------- */

.co-candidate {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.co-candidate-main {
  min-width: 0;
}

.co-candidate-sidebar {
  position: sticky;
  top: 2rem;
}

.co-candidate-sidebar-card {
  background: #fff;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.co-candidate-sidebar-card + .co-candidate-sidebar-card {
  margin-top: 1rem;
}

.co-candidate-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--jobs-card-border);
}

.co-candidate-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8eef4, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #3d5a80;
  flex-shrink: 0;
}

.co-candidate-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.82rem;
}

.co-candidate-info-row:last-child {
  border-bottom: none;
}

.co-candidate-info-label {
  color: var(--jobs-text-muted);
  font-weight: 500;
}

.co-candidate-info-value {
  color: var(--jobs-text-primary);
  font-weight: 600;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Section headings (reuse jobs pattern)
   -------------------------------------------------------------------------- */

.co-section {
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   Notes
   -------------------------------------------------------------------------- */

.co-note {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f3f4f6;
  animation: fadeSlideIn 0.2s ease-out;
}

.co-note:last-child {
  border-bottom: none;
}

.co-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.co-note-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-note-time {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

.co-note-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #374151;
}

.co-note-actions {
  margin-top: 0.3rem;
}

.co-note-actions a,
.co-note-actions button {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jobs-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.co-note-actions a:hover,
.co-note-actions button:hover {
  color: #dc3545;
}

/* Note form */
.co-note-form textarea {
  font-family: var(--jobs-font);
  font-size: 0.85rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: #f9fafb;
  resize: vertical;
  min-height: 80px;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.co-note-form textarea:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  background: #fff;
  outline: none;
}

.co-note-form input[type='submit'],
.co-note-form button[type='submit'] {
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Messages (conversation thread)
   -------------------------------------------------------------------------- */

.co-message-thread {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.co-message {
  max-width: 82%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  animation: fadeSlideIn 0.2s ease-out;
}

.co-message-received {
  align-self: flex-start;
  background: #f3f4f6;
  border-bottom-left-radius: 3px;
}

.co-message-sent {
  align-self: flex-end;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-bottom-right-radius: 3px;
}

.co-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  gap: 0.75rem;
}

.co-message-sender {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
}

.co-message-time {
  font-size: 0.65rem;
  color: var(--jobs-text-muted);
  white-space: nowrap;
}

.co-message-body {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #374151;
}

.co-message-body p {
  margin: 0;
}

.co-message-body p + p {
  margin-top: 0.35rem;
}

.co-message-read {
  font-size: 0.62rem;
  color: var(--jobs-text-muted);
  text-align: right;
  margin-top: 0.15rem;
}

/* Message form */
.co-message-form textarea {
  font-family: var(--jobs-font);
  font-size: 0.85rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: #f9fafb;
  resize: vertical;
  min-height: 80px;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.co-message-form textarea:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  background: #fff;
  outline: none;
}

.co-message-form input[type='submit'],
.co-message-form button[type='submit'] {
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  margin-top: 0.5rem;
}

/* Unread message badge on application cards */
.co-unread-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.co-unread-badge svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --------------------------------------------------------------------------
   Skill match indicators (candidate detail)
   -------------------------------------------------------------------------- */

.co-skill-match {
  background: #d1fae5;
  color: #065f46;
}
.co-skill-missing {
  background: #fee2e2;
  color: #991b1b;
}
.co-skill-partial {
  background: #fef3c7;
  color: #92400e;
}

/* --------------------------------------------------------------------------
   Empty states (consistent with jobs.css)
   -------------------------------------------------------------------------- */

.co-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--jobs-text-muted);
}

.co-empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.co-empty-state-icon svg {
  width: 26px;
  height: 26px;
  stroke: #adb5bd;
  stroke-width: 1.5;
  fill: none;
}

.co-empty-state h3 {
  font-family: var(--jobs-font);
  font-weight: 700;
  font-size: 1rem;
  color: var(--jobs-text-secondary);
  margin-bottom: 0.3rem;
}

.co-empty-state p {
  font-size: 0.85rem;
  max-width: 300px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.co-empty-state a,
.co-empty-state input[type='submit'],
.co-empty-state button[type='submit'] {
  font-family: var(--jobs-font);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Delete / danger zone
   -------------------------------------------------------------------------- */

.co-danger-zone {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #fee2e2;
}

.co-danger-zone-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #991b1b;
  margin-bottom: 0.5rem;
}

.co-danger-zone p {
  font-size: 0.82rem;
  color: var(--jobs-text-secondary);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Job show tabs
   -------------------------------------------------------------------------- */

.co-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--jobs-card-border);
  margin-bottom: 1.5rem;
}

.co-tab {
  font-family: var(--jobs-font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  text-decoration: none;
  padding: 0.65rem 1.15rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all 0.15s ease;
}

.co-tab:hover {
  color: var(--jobs-text-primary);
}

.co-tab.active {
  color: var(--jobs-accent);
  border-bottom-color: var(--jobs-accent);
}

/* --------------------------------------------------------------------------
   Status update (dropdown on candidate detail)
   -------------------------------------------------------------------------- */

.co-status-update {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.co-status-update select {
  font-family: var(--jobs-font);
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1.5px solid var(--jobs-card-border);
  padding: 0.35rem 1.8rem 0.35rem 0.55rem;
  background-color: #f9fafb;
  max-width: 180px;
}

.co-status-update input[type='submit'],
.co-status-update button[type='submit'] {
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.38rem 0.85rem;
}

/* --------------------------------------------------------------------------
   Alerts and warnings within content
   -------------------------------------------------------------------------- */

.co-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.co-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  stroke-width: 1.75;
  fill: none;
}

.co-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.co-alert-warning svg {
  stroke: #f59e0b;
}

.co-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.co-alert-info svg {
  stroke: #3b82f6;
}

/* --------------------------------------------------------------------------
   No-sidebar layout (company creation page, before company context)
   -------------------------------------------------------------------------- */

.co-standalone {
  font-family: var(--jobs-font);
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.co-standalone-header {
  margin-bottom: 2rem;
}

.co-standalone-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--jobs-text-primary);
  letter-spacing: -0.035em;
  margin-bottom: 0.15rem;
}

.co-standalone-subtitle {
  font-size: 0.88rem;
  color: var(--jobs-text-secondary);
  margin-top: 0.35rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Setup steps (company creation onboarding)
   -------------------------------------------------------------------------- */

.co-setup-steps {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 10px;
}

.co-setup-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  opacity: 0.45;
}

.co-setup-step-active {
  opacity: 1;
}

.co-setup-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.co-setup-step-active .co-setup-step-number {
  background: var(--jobs-accent);
  color: #fff;
}

.co-setup-step-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.co-setup-step-text strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
}

.co-setup-step-text span {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

/* --------------------------------------------------------------------------
   Team member display
   -------------------------------------------------------------------------- */

.co-member-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.co-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8eef4, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: #3d5a80;
  flex-shrink: 0;
}

.co-member-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.co-member-email {
  font-size: 0.75rem;
  color: var(--jobs-text-muted);
  margin-top: 0.05rem;
}

.co-badge-you {
  font-size: 0.6rem;
  font-weight: 600;
  background: #eff6ff;
  color: #2563eb;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Invitation status badges
   -------------------------------------------------------------------------- */

.co-invitation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.co-invitation-badge svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.co-invitation-pending {
  background: #fef3c7;
  color: #92400e;
}

.co-invitation-status-hint {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Pending invitation count badge in sidebar
   -------------------------------------------------------------------------- */

.co-nav-badge-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

/* --------------------------------------------------------------------------
   Role permission cards (invitation form)
   -------------------------------------------------------------------------- */

.co-role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.co-role-card {
  background: #f8fafc;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.85rem;
}

.co-role-card-title {
  margin-bottom: 0.55rem;
}

.co-role-card-perms {
  list-style: none;
  padding: 0;
  margin: 0;
}

.co-role-card-perms li {
  font-size: 0.75rem;
  color: var(--jobs-text-secondary);
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.co-role-card-perms li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Invitation acceptance page
   -------------------------------------------------------------------------- */

.co-invitation-hero {
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, #eff6ff, #fff);
  border-bottom: 1px solid #e5e7eb;
}

.co-invitation-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}

.co-invitation-detail-label {
  color: var(--jobs-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.co-invitation-what-next {
  margin-bottom: 1.5rem;
}

.co-invitation-perks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.co-invitation-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.82rem;
  color: var(--jobs-text-secondary);
}

.co-invitation-perks li svg {
  width: 15px;
  height: 15px;
  stroke: #10b981;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

.co-pipeline-card {
  animation: fadeSlideIn 0.2s ease-out both;
}

.co-pipeline-col:nth-child(1) .co-pipeline-card {
  animation-delay: 0.02s;
}
.co-pipeline-col:nth-child(2) .co-pipeline-card {
  animation-delay: 0.04s;
}
.co-pipeline-col:nth-child(3) .co-pipeline-card {
  animation-delay: 0.06s;
}
.co-pipeline-col:nth-child(4) .co-pipeline-card {
  animation-delay: 0.08s;
}
.co-pipeline-col:nth-child(5) .co-pipeline-card {
  animation-delay: 0.1s;
}
.co-pipeline-col:nth-child(6) .co-pipeline-card {
  animation-delay: 0.12s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .co-candidate {
    grid-template-columns: 1fr;
  }

  .co-candidate-sidebar {
    position: static;
  }

  .co-pipeline {
    overflow-x: scroll;
  }
}

@media (max-width: 575.98px) {
  .co-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .co-setup-steps {
    flex-direction: column;
    gap: 0.75rem;
  }

  .co-role-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Sort controls and page actions
   ========================================================================== */

.co-page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.co-sort-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.co-sort-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  white-space: nowrap;
  margin-bottom: 0;
}

.co-sort-select {
  width: auto;
}

/* ==========================================================================
   Candidate match card enhancements
   ========================================================================== */

.co-match-heading {
  font-family: var(--jobs-font);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--jobs-text-secondary);
  margin-bottom: 0.35rem;
}

.co-match-card-excellent {
  border-left: 4px solid #059669;
}
.co-match-card-strong {
  border-left: 4px solid #3b82f6;
}
.co-match-card-moderate {
  border-left: 4px solid #d97706;
}
.co-match-card-developing {
  border-left: 4px solid #dc2626;
}

.co-match-score-excellent {
  color: #059669;
}
.co-match-score-strong {
  color: #2563eb;
}
.co-match-score-moderate {
  color: #d97706;
}
.co-match-score-developing {
  color: #dc2626;
}

/* Section description text */
.co-section-desc {
  font-size: 0.82rem;
  color: var(--jobs-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Skill row info area */
.co-match-skill-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.co-match-skill-name {
  font-weight: 600;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
}

/* Verification badge with checkmark icon */
.co-match-badge svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.co-match-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Empty text in sections */
.co-match-empty-text {
  color: var(--jobs-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Experience label and detail */
.co-match-experience-label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.co-match-exp-met {
  color: #059669;
  font-weight: 600;
}

.co-match-exp-unmet {
  color: #dc2626;
  font-weight: 600;
}

.co-match-experience-detail {
  font-size: 0.78rem;
  color: var(--jobs-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive - sort controls + match card
   ========================================================================== */

@media (max-width: 575.98px) {
  .co-page-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .co-sort-form {
    width: 100%;
  }

  .co-sort-select {
    flex: 1;
  }

  .co-match-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .co-match-skill-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   Application filter tabs
   ========================================================================== */

.co-app-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--jobs-card-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.co-app-filter-tabs::-webkit-scrollbar {
  display: none;
}

.co-app-filter-tab {
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  border: 1.5px solid transparent;
  color: var(--jobs-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  background: transparent;
}

.co-app-filter-tab:hover {
  color: var(--jobs-text-primary);
  background: #f3f4f6;
}

.co-app-filter-tab.active {
  color: var(--jobs-accent);
  background: rgba(13, 110, 253, 0.06);
  border-color: rgba(13, 110, 253, 0.15);
  font-weight: 700;
}

/* Status-colored active tabs */
.co-app-filter-tab-submitted.active {
  color: #1e40af;
  background: #dbeafe;
  border-color: #93c5fd;
}
.co-app-filter-tab-reviewing.active {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}
.co-app-filter-tab-interviewed.active {
  color: #3730a3;
  background: #e0e7ff;
  border-color: #a5b4fc;
}
.co-app-filter-tab-offered.active {
  color: #065f46;
  background: #d1fae5;
  border-color: #6ee7b7;
}
.co-app-filter-tab-rejected.active {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}
.co-app-filter-tab-withdrawn.active {
  color: #495057;
  background: #f1f3f5;
  border-color: #d1d5db;
}

/* ==========================================================================
   Application prev/next navigation
   ========================================================================== */

.co-app-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.co-app-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 6px;
  background: #fff;
  transition: all 0.15s ease;
}

.co-app-nav-btn:hover {
  color: var(--jobs-text-primary);
  border-color: #c7d7f7;
  background: #f9fafb;
}

.co-app-nav-btn-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.co-app-nav-counter {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jobs-text-muted);
  padding: 0 0.25rem;
  white-space: nowrap;
}

/* ==========================================================================
   Status update buttons (radio button style)
   ========================================================================== */

.co-status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.co-status-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1.5px solid var(--jobs-card-border);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--jobs-text-secondary);
}

.co-status-option:hover {
  border-color: #c7d7f7;
  background: #f9fafb;
}

.co-status-option-active,
.co-status-option:has(input:checked) {
  border-color: currentColor;
  font-weight: 700;
}

.co-status-option-active.co-status-option-default,
.co-status-option-default:has(input:checked) {
  color: #1e40af;
  background: #dbeafe;
  border-color: #93c5fd;
}
.co-status-option-active.co-status-option-warning,
.co-status-option-warning:has(input:checked) {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}
.co-status-option-active.co-status-option-info,
.co-status-option-info:has(input:checked) {
  color: #3730a3;
  background: #e0e7ff;
  border-color: #a5b4fc;
}
.co-status-option-active.co-status-option-success,
.co-status-option-success:has(input:checked) {
  color: #065f46;
  background: #d1fae5;
  border-color: #6ee7b7;
}
.co-status-option-active.co-status-option-danger,
.co-status-option-danger:has(input:checked) {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}
.co-status-option-active.co-status-option-muted,
.co-status-option-muted:has(input:checked) {
  color: #495057;
  background: #f1f3f5;
  border-color: #d1d5db;
}

.co-status-option-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.co-status-dot-submitted {
  background: #3b82f6;
}
.co-status-dot-reviewing {
  background: #f59e0b;
}
.co-status-dot-interviewed {
  background: #8b5cf6;
}
.co-status-dot-offered {
  background: #10b981;
}
.co-status-dot-rejected {
  background: #ef4444;
}
.co-status-dot-withdrawn {
  background: #9aa0a6;
}

/* Screen-reader only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   Match card quick stats
   ========================================================================== */

.co-match-quick-stats {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f1f3;
}

.co-match-quick-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.co-match-quick-stat-count {
  font-weight: 800;
  font-size: 0.88rem;
}

.co-match-quick-stat-label {
  color: var(--jobs-text-muted);
  font-weight: 500;
}

.co-match-quick-stat-matched .co-match-quick-stat-count {
  color: #059669;
}
.co-match-quick-stat-partial .co-match-quick-stat-count {
  color: #d97706;
}
.co-match-quick-stat-missing .co-match-quick-stat-count {
  color: #dc2626;
}

/* ==========================================================================
   Skill row right side (detail + badge)
   ========================================================================== */

.co-match-skill-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.co-match-skill-detail {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Section heading count badge
   ========================================================================== */

.co-section-heading-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  background: #eef1f5;
  color: var(--jobs-text-secondary);
  padding: 0.05rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* ==========================================================================
   Quick actions in sidebar
   ========================================================================== */

.co-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.co-quick-action-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--jobs-accent);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}

.co-quick-action-link:hover {
  color: #0b5ed7;
}

/* ==========================================================================
   Inline field errors (job form)
   ========================================================================== */

.co-field-error {
  font-size: 0.75rem;
  font-weight: 500;
  color: #dc2626;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Inline flash messages (turbo stream feedback)
   ========================================================================== */

.co-inline-flash {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  animation: fadeSlideIn 0.2s ease-out;
}

.co-inline-flash-alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.co-inline-flash-notice {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* ==========================================================================
   Responsive - new components
   ========================================================================== */

@media (max-width: 991.98px) {
  .co-app-nav {
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .co-app-filter-tabs {
    gap: 0.15rem;
  }

  .co-app-filter-tab {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }

  .co-status-buttons {
    flex-direction: column;
  }

  .co-match-quick-stats {
    flex-wrap: wrap;
  }

  .co-app-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   Assessment management
   ========================================================================== */

/* Question card (accordion row within a co-card) */
.co-question-card {
  border-bottom: 1px solid #f3f4f6;
}

.co-question-card:last-child {
  border-bottom: none;
}

.co-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease;
}

.co-question-header:hover {
  background: #fafbfc;
}

.co-question-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.co-question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef1f5;
  color: var(--jobs-text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.co-question-info {
  min-width: 0;
  flex: 1;
}

.co-question-body-preview {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.4;
}

.co-question-meta {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
  margin-top: 0.2rem;
}

.co-question-meta-sep {
  margin: 0 0.25rem;
  color: #d1d5db;
}

.co-question-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.co-question-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--jobs-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.12s ease, color 0.12s ease;
  padding: 0;
}

.co-question-action-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.co-question-header:hover .co-question-action-btn {
  opacity: 1;
}

.co-question-action-btn:hover {
  background: #f3f4f6;
  color: var(--jobs-text-primary);
}

.co-question-action-btn-danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

.co-question-chevron {
  width: 16px;
  height: 16px;
  stroke: var(--jobs-text-muted);
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Expanded question content */
.co-question-expand {
  padding: 0 0.85rem 0.85rem 3.25rem;
}

.co-question-full-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 0.75rem;
}

.co-question-explanation {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--jobs-text-secondary);
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #e2e8f0;
}

.co-question-explanation strong {
  color: var(--jobs-text-primary);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Answer options (both in show page and question expand) */
.co-answer-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.co-answer-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #f9fafb;
  border: 1.5px solid #f0f1f3;
  transition: background 0.12s ease;
}

.co-answer-correct {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.co-answer-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e7eb;
  color: var(--jobs-text-secondary);
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.co-answer-correct .co-answer-letter {
  background: #10b981;
  color: #fff;
}

.co-answer-text {
  flex: 1;
  color: var(--jobs-text-primary);
  font-weight: 500;
}

.co-answer-check {
  width: 16px;
  height: 16px;
  stroke: #10b981;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

/* Answer option form field (question form) */
.co-answer-option-field {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.co-answer-option-field:last-child {
  border-bottom: none;
}

.co-answer-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef1f5;
  color: var(--jobs-text-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.4rem;
}

/* ==========================================================================
   Responsive - assessment components
   ========================================================================== */

@media (max-width: 575.98px) {
  .co-question-header-left {
    gap: 0.4rem;
  }

  .co-question-expand {
    padding-left: 0.85rem;
  }

  .co-answer-option {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Interview scheduling
   -------------------------------------------------------------------------- */

.co-interview-context {
  background: var(--th-bg-card);
  border: 1.5px solid var(--th-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.co-interview-slot {
  background: #fafbfc;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  animation: fadeSlideIn 0.2s ease-out;
}

.co-interview-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.co-interview-slot-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jobs-text-secondary);
}

.co-interview-slot-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--jobs-font);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jobs-text-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.co-interview-slot-remove:hover {
  color: #dc3545;
}

.co-interview-slot-remove svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.co-interview-slot-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.co-interview-add-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--jobs-font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jobs-accent);
  background: none;
  border: 1.5px dashed var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  justify-content: center;
}

.co-interview-add-slot:hover {
  background: #f0f7ff;
  border-color: var(--jobs-accent);
}

.co-interview-add-slot svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Interview detail (show page) */

.co-interview-detail {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.co-interview-detail-main {
  min-width: 0;
}

.co-interview-detail-sidebar {
  position: sticky;
  top: 2rem;
}

.co-interview-status-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.co-interview-status-banner-proposed {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
}

.co-interview-status-banner-confirmed {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
}

.co-interview-status-banner-completed {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
}

.co-interview-status-banner-cancelled {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
}

.co-interview-status-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.co-interview-status-banner-proposed .co-interview-status-banner-icon {
  background: #fef3c7;
  color: #d97706;
}

.co-interview-status-banner-confirmed .co-interview-status-banner-icon {
  background: #dbeafe;
  color: #2563eb;
}

.co-interview-status-banner-completed .co-interview-status-banner-icon {
  background: #d1fae5;
  color: #059669;
}

.co-interview-status-banner-cancelled .co-interview-status-banner-icon {
  background: #f3f4f6;
  color: #6b7280;
}

.co-interview-status-banner-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.co-interview-status-banner-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-interview-status-banner-desc {
  font-size: 0.78rem;
  color: var(--jobs-text-secondary);
  margin-top: 0.1rem;
}

/* Time slot cards on interview show */

.co-interview-slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.co-interview-slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  background: #fff;
  transition: all 0.15s ease;
}

.co-interview-slot-card-confirmed {
  border-color: #bfdbfe;
  background: #f0f7ff;
}

.co-interview-slot-card-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-interview-slot-card-date {
  font-size: 0.78rem;
  color: var(--jobs-text-secondary);
  margin-top: 0.1rem;
}

.co-interview-slot-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.co-interview-slot-card-badge-confirmed {
  background: #dbeafe;
  color: #1e40af;
}

/* Upcoming interviews widget */

.co-interview-widget-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.co-interview-widget-card:last-child {
  border-bottom: none;
}

.co-interview-widget-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8eef4, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  color: #3d5a80;
  flex-shrink: 0;
}

.co-interview-widget-info {
  flex: 1;
  min-width: 0;
}

.co-interview-widget-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
}

.co-interview-widget-meta {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
  margin-top: 0.1rem;
}

.co-interview-widget-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  text-align: right;
  white-space: nowrap;
}

/* Interview notes form */

.co-interview-notes-form textarea {
  font-family: var(--jobs-font);
  font-size: 0.85rem;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: #f9fafb;
  resize: vertical;
  min-height: 100px;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.co-interview-notes-form textarea:focus {
  border-color: var(--jobs-accent);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
  background: #fff;
  outline: none;
}

@media (max-width: 767.98px) {
  .co-interview-slot-fields {
    grid-template-columns: 1fr;
  }

  .co-interview-detail {
    grid-template-columns: 1fr;
  }

  .co-interview-detail-sidebar {
    position: static;
  }
}

/* ==========================================================================
   Analytics Dashboard
   ========================================================================== */

.co-analytics-section-header {
  margin-bottom: 1rem;
}

.co-analytics-section-header .co-section-heading {
  margin-bottom: 0.15rem;
}

.co-section-desc {
  font-size: 0.82rem;
  color: var(--jobs-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Funnel chart
   -------------------------------------------------------------------------- */

.co-analytics-funnel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.85rem;
  background: #fafbfc;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
}

.co-analytics-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.co-analytics-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.co-analytics-legend-dot-submitted { background: #3b82f6; }
.co-analytics-legend-dot-reviewing { background: #f59e0b; }
.co-analytics-legend-dot-interviewed { background: #8b5cf6; }
.co-analytics-legend-dot-offered { background: #10b981; }
.co-analytics-legend-dot-rejected { background: #ef4444; }
.co-analytics-legend-dot-withdrawn { background: #9aa0a6; }

.co-analytics-funnel-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f3f4f6;
}

.co-analytics-funnel-row-last {
  border-bottom: none;
}

.co-analytics-funnel-job {
  width: 200px;
  flex-shrink: 0;
}

.co-analytics-funnel-job-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  text-decoration: none;
  display: block;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co-analytics-funnel-job-link:hover {
  color: var(--jobs-accent);
}

.co-analytics-funnel-total {
  font-size: 0.68rem;
  color: var(--jobs-text-muted);
  font-weight: 500;
}

.co-analytics-funnel-bar-wrap {
  flex: 1;
  min-width: 0;
}

.co-analytics-funnel-bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
}

.co-analytics-funnel-bar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-analytics-funnel-bar-empty-text {
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
  font-weight: 500;
}

.co-analytics-funnel-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2px;
  transition: opacity 0.15s ease;
  cursor: default;
}

.co-analytics-funnel-seg:hover {
  opacity: 0.85;
}

.co-analytics-funnel-seg-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  padding: 0 0.25rem;
}

.co-analytics-funnel-seg-submitted { background: #3b82f6; }
.co-analytics-funnel-seg-reviewing { background: #f59e0b; }
.co-analytics-funnel-seg-interviewed { background: #8b5cf6; }
.co-analytics-funnel-seg-offered { background: #10b981; }
.co-analytics-funnel-seg-rejected { background: #ef4444; }
.co-analytics-funnel-seg-withdrawn { background: #9aa0a6; }

/* --------------------------------------------------------------------------
   Time to Hire metric cards
   -------------------------------------------------------------------------- */

.co-analytics-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.co-analytics-time-card {
  background: #fff;
  border: 1.5px solid var(--jobs-card-border);
  border-radius: 8px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-analytics-time-card:hover {
  border-color: #c7d7f7;
  box-shadow: var(--jobs-card-hover-shadow);
}

.co-analytics-time-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jobs-text-secondary);
}

.co-analytics-tooltip {
  display: inline-flex;
  cursor: help;
  position: relative;
}

.co-analytics-tooltip svg {
  stroke: var(--jobs-text-muted);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.co-analytics-tooltip:hover svg {
  opacity: 1;
}

.co-analytics-time-value {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.co-analytics-time-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--jobs-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.co-analytics-time-unit {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--jobs-text-muted);
}

.co-analytics-time-na {
  font-size: 1.85rem;
  font-weight: 800;
  color: #d1d5db;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Skill Demand table
   -------------------------------------------------------------------------- */

.co-analytics-skill-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.co-analytics-skill-table td {
  font-size: 0.82rem;
}

.co-analytics-verified-count {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
  color: #059669;
}

.co-analytics-supply-cell {
  width: 140px;
}

.co-analytics-supply-bar-wrap {
  width: 100%;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.co-analytics-supply-bar {
  height: 100%;
  background: #93c5fd;
  border-radius: 4px;
  position: relative;
  transition: width 0.3s ease;
}

.co-analytics-supply-bar-verified {
  height: 100%;
  background: #10b981;
  border-radius: 4px 0 0 4px;
}

/* --------------------------------------------------------------------------
   Application Trends bar chart
   -------------------------------------------------------------------------- */

.co-analytics-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 0;
  height: 200px;
}

.co-analytics-trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.co-analytics-trend-bar-area {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 3px;
}

.co-analytics-trend-bar {
  width: 100%;
  max-width: 40px;
  background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  position: relative;
  transition: height 0.3s ease, opacity 0.15s ease;
  cursor: default;
}

.co-analytics-trend-bar:hover {
  opacity: 0.8;
}

.co-analytics-trend-count {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--jobs-text-secondary);
  white-space: nowrap;
}

.co-analytics-trend-label {
  font-size: 0.6rem;
  color: var(--jobs-text-muted);
  font-weight: 500;
  margin-top: 0.4rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Top Performing Jobs
   -------------------------------------------------------------------------- */

.co-analytics-top-job {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.12s ease;
}

.co-analytics-top-job:hover {
  background: #fafbfc;
}

.co-analytics-top-job-last {
  border-bottom: none;
}

.co-analytics-top-job-rank {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--jobs-text-muted);
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}

.co-analytics-top-job-info {
  min-width: 0;
  flex-shrink: 0;
  width: 220px;
}

.co-analytics-top-job-title a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jobs-text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.co-analytics-top-job-title a:hover {
  color: var(--jobs-accent);
}

.co-analytics-top-job-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--jobs-text-muted);
}

.co-analytics-top-job-bar-wrap {
  flex: 1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.co-analytics-top-job-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.co-analytics-top-job-count {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--jobs-text-primary);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Empty section state (inline, not full-page)
   -------------------------------------------------------------------------- */

.co-analytics-empty-section {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fafbfc;
  border: 1.5px dashed var(--jobs-card-border);
  border-radius: 8px;
  color: var(--jobs-text-muted);
}

.co-analytics-empty-section p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--jobs-text-secondary);
  margin: 0 0 0.25rem;
}

.co-analytics-empty-section span {
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Analytics responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .co-analytics-time-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .co-analytics-funnel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .co-analytics-funnel-job {
    width: 100%;
  }

  .co-analytics-top-job-info {
    width: 160px;
  }
}

@media (max-width: 767.98px) {
  .co-analytics-time-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .co-analytics-time-label {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    word-break: break-word;
    white-space: normal;
  }

  .co-analytics-time-number {
    font-size: 1.5rem;
  }

  .co-analytics-trend-chart {
    height: 150px;
  }

  .co-analytics-top-job {
    flex-wrap: wrap;
  }

  .co-analytics-top-job-bar-wrap {
    order: 4;
    width: 100%;
  }

  .co-analytics-top-job-info {
    width: auto;
    flex: 1;
  }

  .co-analytics-supply-cell {
    display: none;
  }
}
