/* MISA-2 (21/10/2026, Kiệt duyệt sẵn phác thảo): form chứng từ rộng kiểu MISA + phân hệ nghiệp vụ có trang Quy trình. Màu theo biến style.css. */

/* ---- form chứng từ rộng (#page-doc) ---- */
#page-doc .bar h1{font-size:18px}
#page-doc.m2 #doc-form{padding:14px 16px 10px}
.m2-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid var(--rule-soft)}
.m2-top .m2-so{font-weight:700;color:var(--navy);font-size:15px}
.m2-top select{padding:5px 10px;border-radius:8px}
.m2-top label.m2-radio{display:inline-flex;align-items:center;gap:5px;cursor:pointer}
.m2-top .m2-sep{width:1px;height:22px;background:var(--rule)}
.m2-top .m2-right{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.m2-top .m2-tt{font-size:12px;color:var(--muted)}
.m2-top .m2-tt b{font-size:18px;color:var(--ink);font-family:var(--mono);font-variant-numeric:tabular-nums;margin-left:6px}
.m2-head{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,2fr);gap:12px 22px;margin-bottom:10px}
.m2-head .m2-khoi{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 12px;align-content:start}
.m2-head .m2-khoi h4{grid-column:1/-1;margin:0;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;padding-bottom:2px;border-bottom:1px solid var(--rule-soft)}
.m2-head label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--muted);margin:0}
.m2-head label input,.m2-head label select{width:100%;padding:6px 9px}
.m2-head label.m2-rong{grid-column:1/-1}
.m2-head label.m2-an{display:none}
#page-doc.m2 .wrap{max-height:none}
#page-doc.m2 table.lines th:first-child,#page-doc.m2 table.lines td.m2-stt{width:28px;text-align:center;color:var(--muted);font-size:12px}
.m2-duoi{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px 24px;align-items:start;margin-top:10px}
.m2-duoi .m2-trai{display:flex;flex-direction:column;gap:8px;min-width:0}
.m2-tong{border:1px solid var(--rule);border-radius:10px;padding:8px 12px;background:var(--bg);font-size:13px}
.m2-tong div{display:flex;justify-content:space-between;gap:10px;padding:4px 0;border-bottom:1px solid var(--rule-soft)}
.m2-tong div:last-child{border-bottom:0}
.m2-tong b{font-family:var(--mono);font-variant-numeric:tabular-nums}
.m2-tong .m2-big{font-size:14px}.m2-tong .m2-big b{font-size:16px;color:var(--navy)}
.m2-drop{border:1px dashed var(--rule);border-radius:8px;padding:12px;text-align:center;color:var(--muted);font-size:12px;cursor:pointer}
.m2-drop.keo{border-color:var(--gold);background:var(--gold-soft);color:var(--gold-ink)}
.m2-drop input{display:none}
#page-doc .actions .m2-sw{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;margin-left:auto;cursor:pointer}
#page-doc .actions .m2-sw i{width:30px;height:16px;border-radius:999px;background:var(--rule);position:relative;display:inline-block;transition:background .12s}
#page-doc .actions .m2-sw i::after{content:"";position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:50%;background:#fff;transition:left .12s}
#page-doc .actions .m2-sw.on i{background:var(--ok)}
#page-doc .actions .m2-sw.on i::after{left:16px}
#page-doc.an-tk .m2-tk{display:none!important}
#doc-kinds{margin-left:auto}
@media (max-width:900px){.m2-head{grid-template-columns:1fr}.m2-duoi{grid-template-columns:1fr}.m2-top .m2-right{margin-left:0}}

/* ---- phân hệ nghiệp vụ: trang Quy trình ---- */
.ph-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:14px;align-items:start}
.ph-so-do h3{text-align:center;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.ph-flow{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;padding:10px 0 4px;align-items:flex-start}
.ph-step{display:flex;flex-direction:column;align-items:center;gap:6px;width:108px;text-align:center;cursor:pointer;border:0;background:none;color:var(--ink);font:inherit;padding:6px 2px;border-radius:10px}
.ph-step:hover{background:var(--navy-soft)}
.ph-step i{width:50px;height:50px;border-radius:14px;background:var(--navy-soft);color:var(--navy);display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:700;font-size:13px;border:1px solid var(--rule);font-family:var(--mono)}
.ph-step.gold i{background:var(--gold-soft);color:var(--gold-ink);border-color:var(--gold)}
.ph-step small{color:var(--muted);font-size:11px}
.ph-arrow{align-self:center;color:var(--muted);font-size:18px;padding-top:14px}
.ph-phu{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:6px}
.ph-bc ul{list-style:none;margin:0;padding:0}
.ph-bc li{padding:6px 0;border-bottom:1px solid var(--rule-soft)}
.ph-bc li a{color:var(--navy);cursor:pointer}
.ph-bc li small{display:block;color:var(--muted)}
.ph-dm{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ph-dm a{border:1px solid var(--rule);border-radius:8px;padding:6px 12px;background:var(--surface);color:var(--ink);cursor:pointer}
.ph-dm a:hover{border-color:var(--navy);color:var(--navy)}
.ph-thang{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:0 0 12px}
.ph-thang div{border:1px solid var(--rule);border-radius:10px;padding:8px 10px;background:var(--surface)}
.ph-thang b{display:block;font:700 18px var(--mono);font-variant-numeric:tabular-nums}
.ph-thang small{color:var(--muted)}
.ph-thang .m2-cho b{color:var(--gold-ink)}
@media (max-width:900px){.ph-layout{grid-template-columns:1fr}.ph-step{width:92px}}
