/* ==========================================================================
   GELEX HUB — Work Task Drawer additions (UX-1/2/3/4/8, T1/T2/T3) — Giai đoạn 6
   Bổ sung style cho: chip role, gợi ý điểm, link thẻ Y Tưởng, note modal,
   admin-status modal, mobile responsive.
   ========================================================================== */

/* UX-1: chip vai trò của user hiện tại */
.wt-my-role { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; align-items: center; }
.wt-role-tag {
  font-size: 10px; font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  white-space: nowrap;
}

/* UX-2: nút action bị disable do checklist */
.wt-action-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.wt-action-btn[disabled]:hover { background: var(--surface-2); }
.wt-action-btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* UX-4: modal note textarea + actions */
.wt-note-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.modal-submit.danger { background: var(--danger); }
.modal-submit.danger:hover { background: #b91c1c; }

/* T1: admin-status grid */
.wt-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.wt-admin-opt {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--ease) 130ms, background var(--ease) 130ms;
}
.wt-admin-opt:hover { background: var(--surface-2); }
.wt-admin-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.wt-admin-opt input { margin-top: 3px; }
.wt-admin-opt div { display: flex; flex-direction: column; gap: 2px; }
.wt-admin-opt b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.wt-admin-opt small { font-size: 10.5px; color: var(--text-dim); line-height: 1.35; }

/* T2/T3: gợi ý điểm + link thẻ Y Tưởng + help text */
.wt-recog-hint {
  font-size: 11px; font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 2px 7px;
  border-radius: 999px;
}
.wt-recog-card-link {
  font-size: 11px; font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  margin-left: 4px;
}
.wt-recog-card-link:hover { text-decoration: underline; }
.wt-recog-help {
  margin-top: 10px;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--border-strong);
}
.wt-recog-help b { color: var(--text); font-weight: 600; }

/* UX-6: assign picker autocomplete + role selector */
.wt-assignee-role {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
  margin-left: 3px;
}
.wt-assign-picker { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.wt-assign-picker input[type="text"] {
  flex: 1; min-width: 160px;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.wt-assign-picker select { height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; background: var(--surface); }
.wt-assign-hint { font-size: 10.5px; color: var(--text-faint); margin-top: 5px; }

/* UX-8: mobile wtDrawer */
@media (max-width: 560px) {
  .wt-drawer { width: 100%; }
  .wt-drawer-head { flex-wrap: wrap; gap: 6px; }
  .wt-my-role { width: 100%; margin-left: 0; }
  .wt-actions { flex-wrap: wrap; }
  .wt-action-btn { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .wt-edit-row { grid-template-columns: 1fr; }
  .wt-assign-picker { flex-direction: column; align-items: stretch; }
  .wt-recognition-row { flex-wrap: wrap; gap: 6px; }
  .wt-admin-grid { grid-template-columns: 1fr; }
}
