:root {
  --nen: #f6f7f9;
  --the: #ffffff;
  --chu: #1d2430;
  --mo: #6b7480;
  --vien: #e3e7ec;
  --chinh: #1f6feb;
  --chinh-dam: #1a5fd0;
  --canh: #b45309;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--nen); color: var(--chu);
  font: 15px/1.45 Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
}
a { color: var(--chinh); text-decoration: none; }
a:hover { text-decoration: underline; }

body.nen-tron { display: flex; min-height: 100vh; }
.giua-man { margin: auto; width: 100%; padding: 1rem; }
.the.tron {
  background: var(--the); border: 1px solid var(--vien); border-radius: 12px;
  max-width: 420px; margin: 0 auto; padding: 2rem 1.6rem; text-align: center;
}
.o-khoa { font-size: 2rem; margin-bottom: .4rem; }
.the.tron h1 { font-size: 1.2rem; margin: 0 0 .5rem; }
.nut-tg { display: flex; justify-content: center; margin-top: 1rem; }
.mo, .ghi { color: var(--mo); font-size: .9rem; }
.canh { color: var(--canh); }
.mono { font-variant-numeric: tabular-nums; }
.nut {
  display: inline-block; background: var(--chinh); color: #fff; border: 0;
  border-radius: 7px; padding: .45rem .9rem; font: inherit; cursor: pointer;
}
.nut:hover { background: var(--chinh-dam); text-decoration: none; }

.dau {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: #fff; border-bottom: 1px solid var(--vien);
  padding: .8rem 1.2rem;
}
.dau .hieu { font-weight: 700; font-size: 1.1rem; }
.dau .nguoi { margin-left: auto; font-size: .85rem; color: var(--mo); }
.dieu-huong { display: flex; gap: 1rem; flex-wrap: wrap; }
.dieu-huong a { color: var(--mo); font-size: .9rem; }
.dieu-huong a.dang-o { color: var(--chinh); font-weight: 700; }

main { max-width: 900px; margin: 0 auto; padding: 2rem 1.2rem; }
main.rong { max-width: 1100px; }

.khoi { background: var(--the); border: 1px solid var(--vien); border-radius: 12px;
  padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; }
.khoi h2 { margin-top: 0; font-size: 1.05rem; }
.hang-them { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; align-items: center; }
.hang-them input, .hang-them select {
  border: 1px solid var(--vien); border-radius: 7px; padding: .45rem .7rem; font: inherit;
}
.hang-them input[name="telegram_id"] { width: 160px; }
.hang-them input[name="ho_ten"] { width: 220px; }
.cuon-bang { overflow-x: auto; }
table.bang { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.bang th, table.bang td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--vien); white-space: nowrap; }
table.bang th { color: var(--mo); font-weight: 600; font-size: .82rem; }
table.bang td.thao-tac { display: flex; gap: .4rem; }
.nhan { display: inline-block; padding: .15rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.nhan-bat { background: #e6f4ea; color: #1e7e34; }
.nhan-tat { background: #fdeaea; color: #b3261e; }
.nhan-co-dinh { background: #eef1f6; color: var(--mo); }
.nut-lien-ket {
  background: #eef1f6; color: var(--chu); border: 1px solid var(--vien); border-radius: 6px;
  padding: .3rem .6rem; font: inherit; font-size: .82rem; cursor: pointer;
}
.nut-lien-ket:hover { background: #e3e7ec; }
.nut-lien-ket.do { color: #b3261e; border-color: #f3c8c6; }
.nut-lien-ket.do:hover { background: #fdeaea; }

.luoi {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.o-lien-ket {
  background: var(--the); border: 1px solid var(--vien); border-radius: 12px;
  padding: 1.4rem 1rem; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: .3rem; color: var(--chu);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.o-lien-ket:hover {
  text-decoration: none; border-color: var(--chinh);
  box-shadow: 0 2px 10px rgba(31,111,235,.12); transform: translateY(-2px);
}
.o-lien-ket .icon { font-size: 1.9rem; }
.o-lien-ket .ten { font-weight: 700; }
.o-lien-ket .mo-ta { color: var(--mo); font-size: .8rem; }

/* Chiến dịch / công việc (mkt-website, 2026-09-12) */
.luoi-the {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.the-chien-dich {
  display: block; background: var(--the); border: 1px solid var(--vien); border-radius: 12px;
  padding: 1rem 1.1rem; color: var(--chu); transition: box-shadow .15s, border-color .15s;
}
.the-chien-dich:hover { text-decoration: none; border-color: var(--chinh); box-shadow: 0 2px 10px rgba(31,111,235,.1); }
.the-hang { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.the-hang b { font-size: 1rem; }

.nhan-cd-dang_chay { background: #e6f4ea; color: #1e7e34; }
.nhan-cd-tam_dung { background: #fff4e0; color: #9a6a00; }
.nhan-cd-hoan_thanh { background: #eef1f6; color: var(--mo); }
.nhan-cd-huy { background: #fdeaea; color: #b3261e; }

.nhan-tt-moi { background: #eef1f6; color: var(--mo); }
.nhan-tt-dang_lam { background: #e6f0fd; color: var(--chinh-dam); }
.nhan-tt-cho_duyet { background: #fff4e0; color: #9a6a00; }
.nhan-tt-xong { background: #e6f4ea; color: #1e7e34; }
.nhan-tt-huy { background: #fdeaea; color: #b3261e; }

.nhan-uu-thap { background: #eef1f6; color: var(--mo); }
.nhan-uu-binh_thuong { background: #e6f0fd; color: var(--chinh-dam); }
.nhan-uu-cao { background: #fdeaea; color: #b3261e; }

.truong { margin-bottom: .9rem; display: flex; flex-direction: column; gap: .3rem; }
.truong label { font-size: .85rem; color: var(--mo); font-weight: 600; }
.truong input, .truong select, .truong textarea {
  border: 1px solid var(--vien); border-radius: 7px; padding: .5rem .7rem; font: inherit; width: 100%;
}
.truong-doi { display: flex; gap: 1rem; flex-wrap: wrap; }
.truong-doi .truong { flex: 1; min-width: 160px; }

.binh-luan { border-bottom: 1px solid var(--vien); padding: .6rem 0; }
.binh-luan:last-of-type { border-bottom: 0; }
.binh-luan p { margin: .3rem 0 0; }

.luoi-so {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem;
}
.o-so { background: var(--nen); border: 1px solid var(--vien); border-radius: 10px; padding: .8rem 1rem; }
.o-so .ten-so { color: var(--mo); font-size: .8rem; }
.o-so .gia-tri-so { font-size: 1.25rem; font-weight: 700; margin-top: .2rem; }

@media (max-width: 480px) {
  main { padding: 1.2rem .8rem; }
  .dau .nguoi { margin-left: 0; width: 100%; order: 3; }
}
