/* Module Tuyển dụng (.workspace/recruitment/). Chỉ chứa phần Bulma/app.css chưa có; theme bám mockup
   FastdoServer.Blazor/ai-data/Thiết kế UI mẫu mới (primary #346BDA, tag xanh #E8EDF8/#305297). */

/* Ô thông tin viền trái dày + icon (blazor-page-layout.md mục 4). */
.notification.rec-notice {
  border: var(--bulma-control-border-width) solid var(--bulma-border);
  border-left-width: calc(var(--bulma-control-border-width) * 3);
  border-radius: var(--bulma-radius-large);
  padding: 0.75rem 1rem;
}
.notification.rec-notice.is-info { background: var(--bulma-info-95); border-left-color: var(--bulma-info); }
.notification.rec-notice.is-warning { background: var(--bulma-warning-95); border-left-color: var(--bulma-warning); }
.notification.rec-notice.is-success { background: var(--bulma-success-95); border-left-color: var(--bulma-success); }

/* Tag trạng thái: cao 24px, bo 4px như mockup. */
.tag.rec-status {
  height: 24px;
  border-radius: 4px;
  justify-content: center;
  min-width: 96px;
  flex-shrink: 0;
}
.tag.rec-status.is-active { background: #E8EDF8; color: #305297; }
.tag.rec-status.is-inactive { background: #F0F2F4; color: #4A4A4A; }

/* Trigger dropdown lọc có viền như select (blazor-page-layout.md mục 6 — không sửa component dùng chung). */
.rec-filter-dropdown .dropdown-trigger .button.is-ghost {
  border: 1px solid #dbdbdb;
  border-radius: var(--bulma-radius);
  min-width: 170px;
  justify-content: space-between;
}

/* Bố cục form + cột ghi chú bên phải (màn tạo/sửa). */
.rec-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1024px) {
  .rec-form-layout { grid-template-columns: minmax(0, 1fr); }
}
.rec-side-card {
  background: #fff;
  border: 1px solid #EBEBEC;
  border-radius: 12px;
  padding: 1rem;
  font-size: 13px;
  color: #5a5a5f;
}
.rec-side-card.is-primary { background: #EEF3FD; border-color: #346BDA; color: #305297; }

.rec-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-size: 13px;
}
.rec-file-chip .rec-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Trạng thái chiến dịch (S02): Nháp vàng, Đang tuyển xanh dương, Tạm dừng xám, Hoàn thành xanh lá, Huỷ đỏ nhạt. */
.tag.rec-status.is-draft { background: #FFF6D6; color: #8A6400; }
.tag.rec-status.is-completed { background: #E6F3EB; color: #227A46; }
.tag.rec-status.is-cancelled { background: #FDECEC; color: #C94444; }

.rec-priority-flag { color: #F24949; font-size: 16px; vertical-align: middle; }

/* Bảng vị trí trong form chiến dịch. */
.rec-positions-table td { vertical-align: top; }
.rec-positions-table .input { min-width: 0; }
.rec-jd-source {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid #EBEBEC;
  border-radius: 4px;
  font-size: 12px;
  color: #4A4A4A;
  background: #fff;
}

/* 3 thẻ vai trò thành viên chiến dịch. */
.rec-role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 768px) {
  .rec-role-cards { grid-template-columns: minmax(0, 1fr); }
}
.rec-role-card {
  border: 1px solid #EBEBEC;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
.rec-role-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.rec-role-dot.is-manager { background: #F24949; }
.rec-role-dot.is-participant { background: #346BDA; }
.rec-role-dot.is-viewer { background: #6E6E73; }

/* Header chiến dịch + tab. */
.rec-campaign-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #5a5a5f; }
.rec-campaign-meta .rec-chip { border: 1px solid #EBEBEC; border-radius: 4px; padding: 2px 8px; background: #fff; }
.rec-danger-zone { border-color: #F7C9C9 !important; }

/* Giai đoạn Offer (S05): tím nhạt. */
.tag.rec-status.is-offer { background: #F1EAFB; color: #6B3FA0; }

/* Cờ "Nghi trùng" trên dòng hồ sơ (S05/S12). */
.rec-duplicate-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  background: #FFF6D6;
  color: #8A6400;
  vertical-align: middle;
}

/* Drawer hồ sơ ứng viên (S09): panel phải, full width trên mobile. */
.rec-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  z-index: 40;
}
.rec-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 560px;
  max-width: 100vw;
  background: #fff;
  z-index: 41;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
}
.rec-drawer-header { padding: 1rem 1.25rem; border-bottom: 1px solid #EBEBEC; }
.rec-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 600px) {
  .rec-drawer { width: 100vw; }
}

/* Khối cảnh báo trùng (S09): nền đỏ nhạt, viền trái. */
.notification.rec-notice.is-danger { background: var(--bulma-danger-95); border-left-color: var(--bulma-danger); }

/* Lưới thông tin 2 cột trong drawer. */
.rec-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
@media (max-width: 600px) {
  .rec-info-grid { grid-template-columns: minmax(0, 1fr); }
}
.rec-info-grid .rec-info-label { font-size: 12px; color: #6E6E73; }
.rec-info-grid .rec-info-value { font-size: 14px; color: #363636; word-break: break-word; }

.rec-timeline-item { border-left: 2px solid #EBEBEC; padding: 0 0 12px 12px; position: relative; }
.rec-timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #346BDA;
}

/* Thẻ cấu hình ở Thiết lập (S15). */
.rec-settings-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
@media (max-width: 1024px) {
  .rec-settings-cards { grid-template-columns: minmax(0, 1fr); }
}
.rec-settings-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #EEF3FD;
  color: #346BDA;
}

/* Ô điền sẵn từ CV (mockup đề xuất 16): nền xanh nhạt, viền xanh. */
.input.rec-prefilled { background: #F7FAFF; border-color: #BFD1F5; }

/* Tuỳ chọn dạng thẻ (Thiết lập → Trích xuất CV). */
.rec-option-card { border: 1px solid #EBEBEC; border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.rec-option-card.is-selected { border-color: #346BDA; background: #F7FAFF; }
.rec-example { background: #FAFAFA; border-radius: 8px; padding: 10px 12px; font-size: 12px; color: #5a5a5f; }

/* Kanban chiến dịch (S04). */
.rec-board-hint { flex: 1 1 320px; border: 1px solid #EBEBEC; border-radius: 8px; padding: 6px 10px; background: #fff; }
.rec-board { display: flex; gap: 14px; overflow-x: auto; flex: 1; min-height: 0; align-items: flex-start; padding-bottom: 8px; }
.rec-board-column {
  flex: 0 0 236px;
  background: #F5F5F7;
  border-radius: 12px;
  padding: 10px;
  min-height: 160px;
  max-height: 100%;
  overflow-y: auto;
  border: 2px solid transparent;
}
.rec-board-column.is-drop-target { border-color: #346BDA; background: #EEF3FD; }
.rec-card {
  background: #fff;
  border: 1px solid #EBEBEC;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.rec-card[draggable="true"] { cursor: grab; }
.rec-card:hover { border-color: #BFD1F5; }
.rec-card:focus-visible { outline: 2px solid #346BDA; outline-offset: 1px; }
.rec-card.is-duplicate { border-color: #F24949; }
.rec-card-warning {
  margin: -2px -4px 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #C94444;
  background: #FDECEC;
}
.rec-avatar-empty { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 1px dashed #C4C4C8; }

/* Nhãn Hạn chế / kết cục ở Kho lưu trữ (S12c). */
.rec-restricted-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #FDECEC;
  color: #C94444;
  vertical-align: middle;
}

/* Footer drawer: Loại hồ sơ / Chuyển sang (S09). */
.rec-drawer-footer {
  padding: 12px 20px;
  border-top: 1px solid #EBEBEC;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #fff;
}

/* Tab Đánh giá (S09): tiêu chí + chấm 1–5. */
.rec-criterion { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #F0F0F2; }
.rec-criterion:first-of-type { border-top: none; }
.rec-score-dots { display: inline-flex; gap: 6px; }
.rec-score-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #346BDA;
  background: #fff;
  padding: 0;
  cursor: pointer;
}
.rec-score-dot.is-on { background: #346BDA; }
.rec-score-dot:focus-visible { outline: 2px solid #346BDA; outline-offset: 2px; }
fieldset:disabled .rec-score-dot { cursor: default; opacity: .7; }

/* Vòng phỏng vấn trong drawer (S09c). */
.rec-interview-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #EBEBEC; border-radius: 10px; }
.rec-interview-card.is-pass { background: #F1F9F4; border-color: #BFE3CC; }
.rec-interview-card.is-fail { background: #FDF3F3; border-color: #F7C9C9; }
.rec-interview-card.is-upcoming { background: #F7FAFF; border-color: #BFD1F5; }
.rec-interview-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #346BDA; color: #fff; flex: none; }
.rec-interview-card.is-pass .rec-interview-icon { background: #227A46; }
.rec-interview-card.is-fail .rec-interview-icon { background: #C94444; }

/* Lịch phỏng vấn chiến dịch (S07). */
.rec-schedule-heading { font-size: 12px; font-weight: 600; text-transform: uppercase; color: #6E6E73; padding: 10px 0 6px; border-bottom: 1px solid #EBEBEC; }
.rec-schedule-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F0F0F2; }
.rec-schedule-time { width: 90px; font-weight: 600; font-size: 13px; flex: none; }

/* Thu nhận tự động (M7): từ khoá (S15b), Chờ phân loại (S12b), Đẩy CV hàng loạt (S06), mapping Google Sheet. */
.rec-keyword-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rec-keyword-tag { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #DBDBDB; border-radius: 4px; padding: 3px 8px; font-size: 13px; background: #fff; }
.rec-keyword-remove { background: none; border: none; padding: 0; cursor: pointer; color: #8E8E93; display: inline-flex; }
.rec-keyword-remove .material-icons-outlined { font-size: 14px; }
.rec-keyword-remove:hover { color: var(--bulma-danger); }
.rec-keyword-input { width: 200px; }
mark.rec-keyword-hit { background: #FFF4CC; color: #7A5B00; border-radius: 3px; padding: 0 4px; margin-right: 4px; font-size: 12px; }
.tag.rec-suggestion-tag { background: #fff; border: 1px solid #DBDBDB; color: #4A4A4F; margin: 0 4px 4px 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tag.rec-suggestion-tag.is-strong { border-color: var(--bulma-link); color: var(--bulma-link); }
.tag.rec-source-tag { background: #F2F2F4; color: #4A4A4F; }
.rec-dropzone { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px dashed #B5C7EE; border-radius: 10px; background: #F5F8FF; flex-wrap: wrap; }
.rec-dropzone.is-disabled { opacity: .6; }
.rec-dropzone-icon { width: 38px; height: 38px; border-radius: 8px; border: 1px solid #DBDBDB; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #346BDA; }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.rec-dot.is-created { background: #1E7B3C; }
.rec-dot.is-duplicate { background: #9A7400; }
.rec-dot.is-failed { background: #C94444; }
.rec-sheet-mapping { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; }

/* M8: Thống kê (S01) và khối AI chấm CV (S09). */
.rec-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.rec-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 20px; background: #fff; border: 1px solid #EBEBEC; border-radius: 12px; position: relative; }
.rec-kpi::before { content: ""; position: absolute; left: 12px; top: 16px; bottom: 16px; width: 3px; border-radius: 2px; background: transparent; }
.rec-kpi.is-blue::before { background: #346BDA; }
.rec-kpi.is-green::before { background: #1E7B3C; }
.rec-kpi.is-navy::before { background: #26406E; }
.rec-kpi-label { font-size: 12px; color: #6E6E73; }
.rec-kpi-value { font-size: 22px; font-weight: 700; color: #1D1D1F; }
.rec-kpi-note { font-size: 12px; color: #6E6E73; }
.rec-ai-panel { border: 1px solid #C9D8F6; background: #F5F8FF; border-radius: 10px; padding: 12px 14px; }
.rec-ai-score { font-size: 20px; font-weight: 700; color: #346BDA; }
.rec-ai-score.is-success { color: #1E7B3C; }
.rec-ai-score.is-warning { color: #9A7400; }
.rec-ai-score.is-grey { color: #6E6E73; }
.tag.is-grey { background: #F2F2F4; color: #4A4A4F; }
