/* Trang hướng dẫn sử dụng (/huong-dan/nhanh, /huong-dan/chi-tiet) */
:root { --fg: #1e293b; --muted: #64748b; --line: #e2e8f0; --soft: #f1f5f9; --bg: #f8fafc; --card: #fff; --accent: #1e3a8a; --blue: #1d4ed8; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--fg); background: var(--bg); line-height: 1.65; font-size: 15.5px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--accent); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; }
.brand { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; }
.top nav a { color: #dbeafe; padding: 6px 10px; border-radius: 8px; font-size: .9rem; }
.top nav a.on, .top nav a:hover { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
h1 { font-size: 1.8rem; margin: 28px 0 4px; color: var(--accent); }
h2 { font-size: 1.25rem; margin: 0 0 10px; color: var(--accent); }
h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.lead { color: var(--muted); margin-top: 0; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 16px 0; }
.box > h2 i { margin-right: 6px; }
ol, ul { padding-left: 22px; }
li { margin: 4px 0; }
.k { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #cbd5e1; background: #fff; border-radius: 7px; padding: 0 7px; font-size: .86em; font-weight: 600; white-space: nowrap; line-height: 1.7; }
.k.primary { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.k.ok { background: #059669; border-color: #059669; color: #fff; }
.k.bad { background: #e11d48; border-color: #e11d48; color: #fff; }
.k.on { background: #eff6ff; border-color: #2563eb; color: #1e40af; }
.note, .tip, .warn { border-radius: 10px; padding: 9px 14px; margin: 10px 0; font-size: .94rem; }
.note { background: #eff6ff; border: 1px solid #bfdbfe; }
.tip { background: #ecfdf5; border: 1px solid #a7f3d0; }
.warn { background: #fffbeb; border: 1px solid #fde68a; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; margin-top: 10px; }
.flow .sep { margin-left: 10px; color: var(--muted); }
.st { display: inline-block; padding: 1px 9px; border-radius: 999px; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.st.draft { background: #e2e8f0; color: #334155; } .st.cho { background: #e0f2fe; color: #075985; }
.st.pending { background: #fef3c7; color: #92400e; } .st.ok { background: #d1fae5; color: #065f46; } .st.back { background: #ffe4e6; color: #9f1239; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 8px 0; }
.tbl-wrap { overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--soft); }
td.c, th.c { text-align: center; }
figure { margin: 12px 0; }
figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 10px rgba(15,23,42,.06); }
figcaption { color: var(--muted); font-size: .86rem; margin-top: 4px; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 8px 0; background: #fff; }
summary { cursor: pointer; font-weight: 600; }
.foot { color: var(--muted); font-size: .9rem; margin: 24px 0 40px; }
@media (max-width: 640px) {
  h1 { font-size: 1.45rem; }
  .box { padding: 14px 14px; }
  }
@media print {
  .top,   body { background: #fff; font-size: 12.5px; }
  .box { break-inside: avoid; border-color: #ccc; }
  a { color: inherit; }
}
.box b, .box code { overflow-wrap: anywhere; }

/* Thẻ vai trò (/huong-dan/nhanh) */
.vai-tro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.vai-tro .box { margin: 8px 0; }
.the ol { padding-left: 20px; } .the li { margin: 6px 0; }
.the li a { font-size: .86rem; white-space: nowrap; }

/* Mục lục, dòng "Ở đâu" (/huong-dan/chi-tiet) */
.muc-luc { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 16px; padding: 14px 20px; }
.muc-luc a { padding: 4px 0; font-weight: 500; }
.muc-luc a b { display: inline-block; min-width: 26px; color: var(--muted); }
.o-dau { display: inline-block; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 3px 12px; margin: 0 0 6px; font-size: .92rem; }
.o-dau i { color: var(--blue); margin-right: 4px; }

/* Quy trình (/huong-dan/nhap-lieu) */
.role { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; line-height: 1.7; }
.role.ad { background: #fee2e2; color: #991b1b; } .role.ld { background: #ede9fe; color: #5b21b6; }
.role.cs { background: #dbeafe; color: #1e40af; } .role.nl { background: #dcfce7; color: #166534; }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0; counter-reset: st; }
.stage { position: relative; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.stage h3 { margin: 0 0 6px; font-size: .95rem; color: var(--accent); }
.stage h3::before { counter-increment: st; content: counter(st) ". "; }
.stage ul { margin: 6px 0 0; padding-left: 16px; } .stage li { margin: 2px 0; }
.stage:not(:last-child)::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -10px; top: 46%; color: var(--muted); font-size: .8rem; }
.ba-quy-tac { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ba-quy-tac > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--soft); }
.ba-quy-tac > div > b { display: block; color: var(--accent); margin-bottom: 4px; }
.ba-quy-tac > div > b i { color: var(--blue); margin-right: 4px; }
.ba-quy-tac span { font-size: .92rem; }
@media (max-width: 860px) {
  .vai-tro, .ba-quy-tac { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stage:not(:last-child)::after { content: "\f078"; right: auto; left: 50%; top: auto; bottom: -15px; }
}

/* Bộ chỉ tiêu 2026 và thi đua (/huong-dan/chi-tieu-2026) */
.mu { color: var(--muted); }
.nho-chu { font-size: .88rem; margin: 10px 0 0; }
.pick-nhanh { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pick-nhanh a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }
.pick-nhanh a:hover { border-color: var(--blue); text-decoration: none; }
.bon-o { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bon-o > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--soft); font-size: .9rem; }
.bon-o > div > b { display: block; color: var(--accent); margin-bottom: 4px; }
.loc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 10px; font-size: .9rem; }
.loc .tim { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; border: 1px solid #cbd5e1; border-radius: 9px; padding: 0 10px; background: #fff; }
.loc .tim input { border: 0; outline: 0; padding: 7px 0; font: inherit; width: 100%; background: transparent; }
.loc .tim:focus-within { border-color: var(--blue); }
.loc select { border: 1px solid #cbd5e1; border-radius: 9px; padding: 6px 8px; font: inherit; background: #fff; max-width: 100%; }
.loc .chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nut-nho { margin-left: auto; display: inline-flex; gap: 6px; }
.nut-nho button, .chip { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.nut-nho button:hover, .chip:hover { border-color: var(--blue); color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
h3.nhom { margin: 20px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--accent); }
.box h4 { margin: 14px 0 4px; font-size: .92rem; color: var(--muted); }
details.muc { padding: 0; margin: 6px 0; border-radius: 10px; }
details.muc > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; font-weight: 500; }
details.muc > summary::-webkit-details-marker { display: none; }
details.muc > summary:hover { background: var(--soft); border-radius: 10px; }
details.muc .ma { font-weight: 700; color: var(--accent); background: #eff6ff; border-radius: 6px; padding: 0 6px; font-size: .85rem; flex-shrink: 0; }
details.muc .ten { flex: 1 1 260px; }
details.muc .phu { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; font-size: .82rem; }
details.muc .dvt { color: var(--muted); }
.nhan { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; line-height: 1.7; }
.nhan.bb { background: #ffe4e6; color: #9f1239; } .nhan.nc { background: #e0f2fe; color: #075985; } .nhan.tt { background: #ede9fe; color: #5b21b6; }
.nhan.td { background: #fef3c7; color: #92400e; } .nhan.ht { background: #d1fae5; color: #065f46; } .nhan.dv { background: #dbeafe; color: #1e40af; }
.nhan.ct { background: #fae8ff; color: #86198f; } .nhan.bs { background: #fff7ed; color: #9a3412; border: 1px dashed #fdba74; } .nhan.ng { background: #f1f5f9; color: #334155; }
.nut-ct { color: var(--blue); font-weight: 600; white-space: nowrap; }
.nut-ct i { font-size: .7rem; transition: transform .15s; }
details.muc[open] .nut-ct i { transform: rotate(180deg); }
details.muc .diem { font-weight: 700; color: var(--accent); white-space: nowrap; }
details.muc .diem.khong, details.muc .diem.tru { font-weight: 500; color: var(--muted); }
details.muc.mo > summary { opacity: .55; }
details.muc.nhay { box-shadow: 0 0 0 3px #fde68a; }
.ct-dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 14px; margin: 8px 12px 12px 28px; padding: 10px 14px 12px; font-size: .92rem;
  background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 8px; }
.ct-dl dt { color: var(--muted); font-weight: 600; }
.ct-dl dd { margin: 0; overflow-wrap: anywhere; }
.ct-dl ul { margin: 2px 0; padding-left: 18px; }
ul.nho { font-size: .88rem; color: #334155; }
.ma-link { font-weight: 700; white-space: nowrap; }
.bang-diem { width: auto; min-width: 280px; font-size: .86rem; margin: 0; }
.bang-diem tr.on td { background: #eff6ff; font-weight: 700; }
td.n, th.n { text-align: right; white-space: nowrap; }
.hai-cot { display: grid; grid-template-columns: 3fr 2fr; gap: 6px 24px; }
.hai-cot > div { min-width: 0; }
.hai-cot h3 { margin-top: 6px; }
.cong-thuc { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
@media (max-width: 860px) {
  .bon-o { grid-template-columns: 1fr 1fr; }
  .hai-cot { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bon-o { grid-template-columns: 1fr; }
  .ct-dl { grid-template-columns: 1fr; gap: 0 0; margin-left: 14px; }
  .ct-dl dd { margin-bottom: 8px; }
  .nut-nho { margin-left: 0; }
}
@media print { .loc, .pick-nhanh, .nut-ct { display: none; } details.muc { break-inside: avoid; } }

/* Kịch bản tập huấn, Cán bộ kỹ thuật (/huong-dan/kich-ban, /huong-dan/ky-thuat — đợt 2 biên bản 07/10/2026) */
video.video { display: block; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; background: #0f172a; border: 1px solid var(--line); border-radius: 10px; }
table.buoc td:first-child { font-weight: 700; color: var(--accent); white-space: nowrap; width: 3rem; }
table.buoc td:nth-child(2) { width: 58%; }
ul.chk-list { list-style: none; padding-left: 4px; }
ul.chk-list li::before { content: "\f0c8"; font-family: "Font Awesome 6 Free"; font-weight: 400; color: var(--blue); margin-right: 8px; }
@media print { video.video { display: none; } }
