/* Module M06 · Nhân sự — "Sơ đồ tổ chức" (M06-06, org-chart.js). Loaded after modnav.css on index.html and admin.html.
   The page's own tokens (--surface, --line, --accent…), so light and dark follow the app; Verdana from --font-ui. */
.oc { display: flex; flex-direction: column; gap: 12px; font-family: var(--font-ui, Verdana, Geneva, "DejaVu Sans", sans-serif); color: var(--ink, #1e1819); }
.oc h2 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.oc .note { color: var(--muted, #6c6162); font-size: 12px; margin: 0; }
.oc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oc-fill { flex: 1; }

/* the bar: search, zoom, the editor's tools */
.oc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.oc-search { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; min-height: 40px; padding: 0 12px; background: var(--surface, #fff); border: 1px solid var(--line, #e3dbdc); border-radius: 6px; }
.oc-search input { flex: 1; min-width: 0; font: inherit; font-size: 13px; border: 0; outline: none; background: transparent; color: inherit; }
.oc-zoom { display: inline-flex; align-items: center; gap: 4px; }
.oc-zb { font: inherit; font-size: 16px; font-weight: 700; width: 36px; min-height: 36px; border-radius: 6px; border: 1px solid var(--line, #e3dbdc); background: var(--surface, #fff); color: inherit; cursor: pointer; }
.oc-zt { min-width: 44px; text-align: center; font-size: 12px; font-weight: 700; }
.oc-legend { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.oc-hint { min-height: 1.5em; }
.oc-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line, #e3dbdc); border-radius: 999px; background: var(--sunken, #faf8f8); }
.oc-seg button { font: inherit; font-size: 12px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.oc-seg button[aria-pressed="true"] { background: var(--accent, #8a1a1f); color: var(--accent-ink, #fff); font-weight: 700; }
.oc .btn[aria-pressed="true"] { background: var(--accent-soft, #f6e9e9); border-color: var(--accent, #8a1a1f); color: var(--accent, #8a1a1f); }

/* the request at the top (editor, approver) and the banner of a request waiting */
.oc-req { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface, #fff); border: 1px solid var(--line, #e3dbdc); border-radius: var(--radius, 8px); }
.oc-req-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.oc-req-t b { font-size: 15px; }
.oc-req-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oc-return { padding: 10px 12px; border-radius: 6px; background: var(--accent-soft, #f6e9e9); }
.oc-return p { margin: 4px 0 0; font-size: 13px; }
.oc-chip { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--sunken, #efeaea); color: var(--ink, #1e1819); }
.oc-chip.warn { background: var(--warn-soft, #fbf3e2); color: var(--warn, #6e5216); }
.oc-chip.bad { background: var(--accent-soft, #f6e9e9); color: var(--accent, #8a1a1f); }
.oc-chip.ok { background: color-mix(in srgb, var(--ok, #2f6b45) 14%, transparent); color: var(--ok, #2f6b45); }
.oc-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: var(--radius, 8px); background: var(--warn-soft, #fbf3e2); border: 1px solid color-mix(in srgb, var(--warn, #9a5b00) 30%, transparent); color: inherit; text-decoration: none; }
.oc-banner > span:not(.oc-chip) { flex: 1 1 300px; min-width: 0; font-size: 13px; }
.oc-banner b { font-size: 13px; color: var(--accent, #8a1a1f); }

/* the drawing: a box that scrolls (drag the background to move), the layer inside it zooms */
.oc-main { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.oc-canvas { flex: 999 1 520px; min-width: 0; height: min(640px, 72vh); overflow: auto; background: var(--sunken, #faf8f8); border: 1px solid var(--line, #e3dbdc); border-radius: var(--radius, 8px); cursor: grab; outline-offset: 2px; }
.oc-canvas.panning { cursor: grabbing; user-select: none; }
.oc-stage { position: relative; }
.oc-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.oc-lines { position: absolute; left: 0; top: 0; overflow: visible; }
.oc-lines path { fill: none; stroke: var(--line, #c9bfc0); stroke-width: 2; }
.oc-unit { position: absolute; width: 224px; box-sizing: border-box; display: flex; flex-direction: column; background: var(--surface, #fff); border: 1px solid var(--line, #d9cfd0); border-radius: var(--radius, 8px); overflow: hidden; }
.oc-unit.drop { outline: 2px dashed var(--accent, #8a1a1f); outline-offset: 2px; }
.oc-unit.sel { border-color: var(--accent, #8a1a1f); }
.oc-uhead { flex: none; height: 48px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 10px; border: 0; border-bottom: 1px solid var(--line, #e3dbdc); background: var(--sunken, #faf8f8); color: inherit; font: inherit; text-align: left; line-height: 1.25; cursor: pointer; }
.oc-view .oc-uhead { cursor: default; }
.oc-kind { font-size: 10.5px; color: var(--muted, #6c6162); }
.oc-uname { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.oc-uname b, .oc-l1 b { min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-pos { flex: none; height: 56px; margin: 4px 6px 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 8px; border: 1px solid var(--line, #ebe4e5); border-radius: 6px; background: var(--surface, #fff); color: inherit; font: inherit; text-align: left; line-height: 1.25; cursor: pointer; }
.oc-pos > span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-l1 { display: flex !important; align-items: center; gap: 6px; }
.oc-l2 { font-size: 11.5px; }
.oc-l3 { font-size: 10.5px; color: var(--muted, #6c6162); }
.oc-pos.vacant .oc-l2, .oc-view .oc-pos.vacant .oc-l1 b { color: var(--accent, #8a1a1f); }
.oc-pos.sel { border-color: var(--accent, #8a1a1f); background: var(--accent-soft, #f6e9e9); }
.oc-pos.hit { border-color: var(--gold, #c58a1d); background: var(--warn-soft, #fbf3e2); }
.oc-pos.mine { box-shadow: inset 3px 0 0 var(--accent, #8a1a1f); }
.oc-pos:focus-visible, .oc-uhead:focus-visible { outline: 2px solid var(--accent, #8a1a1f); outline-offset: 1px; }
/* Mới, Đã sửa, Bỏ (marks of the editor and of the approver's "Sau") */
.oc-mark { flex: none; font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 999px; }
.oc-mark.oc-new { background: color-mix(in srgb, var(--ok, #2f6b45) 14%, transparent); color: var(--ok, #2f6b45); }
.oc-mark.oc-changed { background: var(--warn-soft, #fbf3e2); color: var(--warn, #6e5216); }
.oc-mark.oc-removed { background: var(--accent-soft, #f6e9e9); color: var(--accent, #8a1a1f); }
.oc-pos.oc-is-new, .oc-unit.oc-is-new { outline: 2px dashed var(--ok, #2f6b45); outline-offset: -1px; }
.oc-pos.oc-is-changed, .oc-unit.oc-is-changed { outline: 2px solid var(--gold, #c58a1d); outline-offset: -1px; }
.oc-pos.oc-is-removed, .oc-unit.oc-is-removed { outline: 2px dotted var(--accent, #b06a6e); outline-offset: -1px; opacity: .75; }
.oc-pos.oc-is-removed .oc-l1 b, .oc-unit.oc-is-removed .oc-uname b { text-decoration: line-through; }

/* the panel beside it */
.oc-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.oc-box { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface, #fff); border: 1px solid var(--line, #e3dbdc); border-radius: var(--radius, 8px); }
.oc-grow { flex: 3 1 460px; min-width: 0; }
/* each Luật sư thành viên's answer, then the Luật sư điều hành (the Quy chế, 01/11/2026); the request's log */
.oc-consents { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.oc-consents li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line, #efe9e9); font-size: 13px; }
.oc-consents li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.oc-log { margin-top: 12px; font-size: 13px; }
.oc-log summary { cursor: pointer; font-weight: 700; }
.oc-log ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.oc-dl { margin: 0; }
.oc-dl dt { font-size: 12px; color: var(--muted, #6c6162); padding-top: 8px; border-top: 1px solid var(--line, #efe9e9); }
.oc-dl dd { margin: 2px 0 8px; font-size: 13px; font-weight: 700; }
.oc-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; }
.oc-f input, .oc-f select, .oc-f textarea { font: inherit; font-weight: 400; font-size: 13px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line, #d5cbcc); border-radius: 6px; background: var(--surface, #fff); color: inherit; box-sizing: border-box; width: 100%; }
.oc-f textarea { padding: 10px 12px; resize: vertical; }
.oc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.oc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.oc-changes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.oc-me { align-self: stretch; }
.oc-empty { padding: 24px; background: var(--sunken, #faf8f8); border: 1px dashed var(--line, #e3dbdc); border-radius: var(--radius, 8px); flex: 999 1 520px; }

/* the approver: before and after */
.oc-panes { display: flex; flex-wrap: wrap; gap: 14px; }
.oc-pane { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.oc-pane-t { display: flex; align-items: baseline; gap: 8px; }
.oc-pane .oc-canvas { height: 430px; }
.oc-decide { align-items: flex-start; }

/* "Vị trí trong sơ đồ tổ chức" in a personnel record */
.oc-seat { margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line, #e3dbdc); border-radius: var(--radius, 8px); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.oc-seat legend { padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--accent, #8a1a1f); }
.oc-seat .btn { align-self: end; justify-self: start; }

/* a narrow screen: the chart as a nested list instead of the drawing */
.oc-tree { display: none; margin: 0; padding-left: 0; list-style: none; flex: 999 1 520px; min-width: 0; }
.oc-tree ul { list-style: none; margin: 4px 0 4px 14px; padding-left: 10px; border-left: 2px solid var(--line, #e3dbdc); }
.oc-tree button { font: inherit; font-size: 13px; text-align: left; border: 0; background: transparent; color: inherit; padding: 6px 4px; min-height: 36px; cursor: pointer; }
.oc-tree .oc-tp.sel { background: var(--accent-soft, #f6e9e9); border-radius: 6px; }
@media (max-width: 760px) {
  .oc-canvas, .oc-zoom, .oc-legend, [data-oc="fit"] { display: none; }
  .oc-tree { display: block; }
  .oc-pane .oc-canvas { display: none; }
}

/* ------------------------------------------------------------------ the new screens of M06 (CDLAF_FEATURES.ui('m06'):
   module_nav and ui_people on). Everything below is under .m06ui, which only the new screens draw: off, nothing here applies. */
.m06ui { font-family: var(--font-ui, Verdana, Geneva, "DejaVu Sans", sans-serif); color: var(--ink, #1e1819); }
.m06ui h2 { margin: 0; font-size: 15px; font-weight: 700; }
.m06ui .note { margin: 0; }
.m06-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m06-main { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.m06-col { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.m06-side { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.m06-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.m06-search { flex: 0 1 280px; display: flex; align-items: center; min-height: 40px; padding: 0 12px; background: var(--surface, #fff); border: 1px solid var(--line, #e3dbdc); border-radius: 6px; }
.m06-search input { flex: 1; min-width: 0; font: inherit; font-size: 13px; border: 0; outline: none; background: transparent; color: inherit; padding: 0; }
.m06-box { background: var(--surface, #fff); border: 1px solid var(--line, #e3dbdc); border-radius: var(--radius, 8px); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.m06-box .btn { align-self: flex-start; }
.m06-box-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.m06-box-t h2 { font-size: 14px; }
.m06-code { font-size: 11px; font-weight: 700; color: var(--accent, #8a1a1f); }
.m06-warnbox { border-color: color-mix(in srgb, var(--warn, #9a5b00) 35%, var(--line, #e3dbdc)); }
.m06-gone { display: flex; flex-direction: column; gap: 4px; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line, #efe9e9); }
.m06-gone:last-of-type { border-bottom: 0; }
.m06-gone .btn { margin-top: 4px; }
.m06-sub { display: block; font-size: 12px; color: var(--muted, #6c6162); }

/* tables of the new screens: a row per person; on a phone each row becomes a card with its labels */
.m06-tablewrap { overflow-x: auto; background: var(--surface, #fff); border: 1px solid var(--line, #e3dbdc); border-radius: var(--radius, 8px); }
.m06-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.m06-table th { text-align: left; color: var(--muted, #6c6162); font-size: 12px; font-weight: 700; background: var(--sunken, #faf8f8); padding: 10px; border-bottom: 1px solid var(--line, #e3dbdc); white-space: nowrap; }
.m06-table td { padding: 9px 10px; border-bottom: 1px solid var(--line, #efe9e9); vertical-align: top; }
.m06-table tr:last-child td { border-bottom: 0; }
.m06-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.m06-loadh { width: 130px; }
.m06-people .m06-table td:first-child { min-width: 160px; }
.m06-people .m06-col { flex: 4 1 600px; }
.m06-people .m06-side { flex: 1 1 260px; }
.m06-link { font: inherit; font-size: 12px; padding: 0; margin-top: 4px; border: 0; background: none; color: var(--accent, #8a1a1f); text-decoration: underline; cursor: pointer; text-align: left; }
.m06-bar { display: block; height: 8px; border-radius: 4px; background: var(--sunken, #efeaea); overflow: hidden; margin: 5px 0 3px; }
.m06-bar > span { display: block; height: 100%; background: var(--gold, #a5813a); }
.m06-bar.heavy > span { background: var(--accent, #8a1a1f); }
@media (max-width: 760px) {
  .m06-tablewrap { border: 0; background: transparent; overflow: visible; }
  .m06-table, .m06-table tbody, .m06-table tr, .m06-table td { display: block; width: 100%; box-sizing: border-box; }
  .m06-table thead { display: none; }
  .m06-table tr { background: var(--surface, #fff); border: 1px solid var(--line, #e3dbdc); border-radius: var(--radius, 8px); padding: 6px 12px; margin-bottom: 10px; }
  .m06-table td { border: 0; padding: 5px 0; display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 8px; text-align: left; }
  .m06-table td::before { content: attr(data-label); color: var(--muted, #6c6162); font-size: 12px; }
  .m06-table td.num { text-align: left; }
  .m06-table td:empty { display: none; }
  .m06-search { flex: 1 1 100%; }
}

/* M06-04 Duyệt hồ sơ (frame DuyetHoSo): the queue on the left, the record and the decision on the right */
.m06-queue { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.m06-detail { flex: 3 1 460px; min-width: 0; padding: 20px; gap: 14px; }
.m06-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m06-chips button { font: inherit; font-size: 12px; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line, #e3dbdc); background: var(--surface, #fff); color: inherit; cursor: pointer; }
.m06-chips button[aria-pressed="true"] { background: var(--accent, #8a1a1f); border-color: var(--accent, #8a1a1f); color: var(--accent-ink, #fff); }
.m06-q { width: 100%; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius, 8px); border: 1px solid var(--line, #e3dbdc); background: var(--surface, #fff); color: inherit; cursor: pointer; }
.m06-q b { font-size: 13px; }
.m06-q.on { border-color: var(--accent, #8a1a1f); background: var(--accent-soft, #f6e9e9); }
.m06-st { font-size: 12px; font-weight: 700; color: var(--muted, #6c6162); }
.m06-st.warn, .m06-done.warn { color: var(--warn, #9a5b00); }
.m06-st.bad, .m06-done.bad { color: var(--accent, #8a1a1f); }
.m06-st.ok, .m06-done.ok { color: var(--ok, #2f6b45); }
.m06-dt { display: flex; flex-direction: column; gap: 2px; }
.m06ui .m06-name { font-size: 18px; }
.m06-decide { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line, #e3dbdc); }
.m06-f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; }
.m06-f textarea { font: inherit; font-weight: 400; font-size: 13px; padding: 10px 12px; border: 1px solid var(--line, #d5cbcc); border-radius: 6px; resize: vertical; background: var(--surface, #fff); color: inherit; }
.m06-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.m06-done { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--sunken, #faf8f8); font-size: 13px; font-weight: 700; }
.m06-review .pf-grid { margin: 0; grid-template-columns: minmax(0, 1fr); }

/* M06-03 Hồ sơ của tôi (frame HoSoCuaToi): the band of where the record stands, the form at once */
.m06-me { display: flex; flex-direction: column; gap: 16px; }
.m06-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 16px; border-radius: var(--radius, 8px); background: var(--sunken, #faf8f8); border: 1px solid var(--line, #e3dbdc); font-size: 13px; }
.m06-band.ok { background: color-mix(in srgb, var(--ok, #2f6b45) 10%, var(--surface, #fff)); color: var(--ok, #2f6b45); border-color: transparent; }
.m06-band.warn { background: var(--warn-soft, #fbf1e1); color: var(--warn, #9a5b00); border-color: transparent; }
.m06-band.bad { background: var(--accent-soft, #f6e9e9); color: var(--accent, #8a1a1f); border-color: transparent; }
.m06-band span { color: var(--ink, #1e1819); }
.m06-work .pf-dl { margin-top: 4px; }

/* M06-02 Hồ sơ nhân sự (frame CongNhanSu, admin.html): the list on the left, the record in tabs on the right */
.m06-hr { margin-bottom: 16px; }
.m06-hrlist { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.m06-hrbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.m06-hrbar .m06-search { flex: 1 1 200px; }
.m06-more select { font: inherit; font-size: 12px; min-height: 34px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line, #e3dbdc); background: var(--surface, #fff); color: inherit; }
.m06-hritems { display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow-y: auto; }
.m06-qdel { cursor: default; }
.m06-qdel .btn { align-self: flex-start; margin-top: 4px; }
.m06-hrdetail { flex: 3 1 480px; min-width: 0; padding: 20px; gap: 14px; }
.m06-hrhead { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.m06-secret { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent, #5e1115); color: var(--accent-ink, #fff); }
.m06-tabs { display: flex; flex-wrap: wrap; gap: 0 18px; border-bottom: 1px solid var(--line, #e3dbdc); }
.m06-tabs button { font: inherit; font-size: 13px; min-height: 42px; margin-bottom: -1px; padding: 0; border: 0; border-bottom: 3px solid transparent; background: transparent; color: inherit; cursor: pointer; }
.m06-tabs button[aria-selected="true"] { border-bottom-color: var(--accent, #8a1a1f); color: var(--accent, #8a1a1f); font-weight: 700; }
.m06-rows { display: flex; flex-direction: column; }
.m06-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line, #efe9e9); font-size: 13px; }
.m06-row > span { color: var(--muted, #6c6162); }
.m06-row > b { text-align: right; overflow-wrap: anywhere; }
.m06-row .m06-none { color: var(--muted, #6c6162); font-weight: 400; font-style: italic; }
.m06-keep { text-transform: none; }
.m06-boxes { gap: 12px; }
.m06-boxes .hr-box { margin: 0; }
.m06-hrdetail #hr-edit { margin: 0; border: 0; padding: 0; box-shadow: none; }
@media (max-width: 760px) {
  .m06-row > b { text-align: left; }
  .m06-hritems { max-height: none; }
  .m06-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0 16px; }
  .m06-tabs button { white-space: nowrap; flex: none; }
}

/* M06-03, M06-04 on admin.html (Cổng Quản lý Nhân sự, item 49): the classes these screens share with index.html, which
   admin.html does not have, for them only */
.m06-adminhost .module { background: var(--surface, #fff); border: 1px solid var(--line, #e3dbdc); border-radius: var(--radius, 8px); padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.m06-adminhost .module h2 { font-size: 16px; font-weight: 700; margin: 0; }
.m06-adminhost .grid { display: grid; gap: 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m06-adminhost .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m06-adminhost .field { display: grid; gap: 5px; min-width: 0; }
.m06-adminhost .field > span { font-size: 12.5px; font-weight: 600; color: var(--muted, #6c6162); }
.m06-adminhost .field > input, .m06-adminhost .field > select { width: 100%; min-width: 0; box-sizing: border-box; }
/* two cards side by side only when each has room (admin.html has the module menu on the left: less room than index.html) */
.m06-adminhost .pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: stretch; }
.m06-adminhost .pf-dl { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); margin: 4px 0 0; font-size: 14px; }
.m06-adminhost .pf-dl dt, .m06-adminhost .pf-dl dd { padding: 8px 0; border-top: 1px solid var(--line, #e3dbdc); }
.m06-adminhost .pf-dl dt { color: var(--muted, #6c6162); padding-right: 14px; }
.m06-adminhost .pf-dl dd { margin: 0; overflow-wrap: anywhere; }
.m06-adminhost .pf-dl dd.pf-empty { color: var(--muted, #6c6162); font-style: italic; }
.m06-adminhost .pf-dl dd:not(.pf-empty) { text-transform: uppercase; }
.m06-adminhost .pf-dl .pf-keep { text-transform: none; }
.m06-adminhost .pf-deg { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.m06-adminhost .pf-form { display: grid; gap: 14px; }
.m06-adminhost .pf-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.m06-adminhost .sr-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--warn-soft, #fbf1e1); font-size: 14px; }
@media (max-width: 760px) {
  .m06-adminhost .grid, .m06-adminhost .grid-3, .m06-adminhost .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .m06-adminhost .pf-dl { grid-template-columns: minmax(0, 1fr); }
}
/* what was issued with a version (M06-06, 01/11/2026): "Quy chế tổ chức và hoạt động – sửa đổi sơ đồ tổ chức" */
.oc-issue { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, #efe9e9); }
.oc-issue h3 { font-size: 14px; margin: 0 0 6px; }
.oc-hash { display: block; font-size: 11px; overflow-wrap: anywhere; color: var(--muted, #6c6162); }
/* M06-07 Thiết kế sơ đồ (01/11/2026): the form left, the preview and the changes right; one column on a phone */
.oc-design { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.oc-form { display: grid; gap: 12px; }
.oc-fu { border: 1px solid var(--line, #e3dbdc); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.oc-fu legend { font-weight: 700; font-size: 13px; padding: 0 4px; }
.oc-frow { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.oc-frow .oc-f { flex: 1 1 140px; min-width: 0; }
.oc-frow .oc-fn { flex: 0 0 80px; }
.oc-fp { width: 100%; border-collapse: collapse; font-size: 13px; }
.oc-fp th { text-align: left; font-weight: 600; color: var(--muted, #6c6162); padding: 4px; }
.oc-fp td { padding: 3px 4px; vertical-align: middle; }
.oc-fp input[type="text"], .oc-fp select { width: 100%; min-width: 0; box-sizing: border-box; }
.oc-preview { display: grid; gap: 10px; position: sticky; top: 8px; min-width: 0; }
.oc-problems { margin: 6px 0; padding-left: 1.2em; }
.oc-fgone ul { margin: 4px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
@media (max-width: 1000px) {
  .oc-design { grid-template-columns: minmax(0, 1fr); }
  .oc-preview { position: static; }
  .oc-fp thead { display: none; }
  .oc-fp tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 6px 0; border-top: 1px solid var(--line, #efe9e9); }
  .oc-fp td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted, #6c6162); }
}
.oc-fp { table-layout: fixed; }
.oc-fp th:nth-child(1) { width: 30%; } .oc-fp th:nth-child(2), .oc-fp th:nth-child(3) { width: 28%; } .oc-fp th:nth-child(4) { width: 52px; } .oc-fp th:nth-child(5) { width: 56px; }
.oc-flash { outline: 2px solid var(--accent, #8a1a1f); outline-offset: 2px; transition: outline-color 0.6s; }
.oc-role { font-weight: 600; }
/* "Vị trí trong sơ đồ tổ chức" to read (M06-02 thẻ Công việc, M06-03; UX-142): from the official chart */
.oc-seatbox { margin-top: 12px; }
.oc-seatbox .oc-seat-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.oc-seatbox .oc-seat-h h2, .oc-seatbox .oc-seat-h h3 { margin: 0; }
.oc-seatbox .oc-seat-h .note { margin: 0; font-size: 12px; }
.oc-seat-wait { margin: 8px 0; padding: 8px 12px; border-radius: var(--radius, 8px); background: var(--warn-soft, #fbf3e2); color: var(--warn, #6e5216); font-size: 13px; }
.oc-seatbox table { margin: 8px 0; }
.oc-seatbox .oc-acts { align-items: center; margin: 6px 0; }
@media (max-width: 760px) {
  .oc-seatbox table, .oc-seatbox tbody, .oc-seatbox tr, .oc-seatbox td { display: block; width: 100% !important; box-sizing: border-box; }
  .oc-seatbox thead { display: none; }
  .oc-seatbox tr { border: 1px solid var(--line, #e3dbdc); border-radius: var(--radius, 8px); padding: 4px 10px; margin-bottom: 8px; background: var(--surface, #fff); }
  .oc-seatbox td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px; }
  .oc-seatbox td::before { content: attr(data-label); color: var(--muted, #6c6162); font-size: 12px; }
}
