/* Thuế & Hóa đơn điện tử (MISA meInvoice) — 13/11/2026. Tiền tố lớp: tx-. Dùng trong khung chung .shell.cc (nền xanh nhạt của bgd-cc.css). */
.tx { --nv: #0b2a5b; --bl: #1f6fe0; --tl: #0f9f8f; --ln: #d6e3f5; --mut: #5b6b82; --ok: #15803d; --warn: #b45309; --crit: #c0262d; --vio: #6d28d9;
  display: grid; gap: 12px; color: var(--nv); min-width: 0; font-family: 'Be Vietnam Pro', var(--font); }
.tx * { min-width: 0; }
.tx .ico { width: 17px; height: 17px; }
.tx .mono { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.tx-loading { padding: 40px; text-align: center; color: var(--mut); }
.tx-mut { color: var(--mut); font-size: 12px; margin: 6px 0 0; }
.tx .crit { color: var(--crit); } .tx .ok { color: var(--ok); } .tx .warn { color: var(--warn); }
.tx-lnk { color: var(--bl); font-weight: 600; font-size: 13px; white-space: nowrap; }
.tx-lnk:hover { text-decoration: underline; }

/* ---- đầu trang ---- */
.tx-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; color: #fff;
  background: radial-gradient(520px 200px at 88% -30%, rgba(45, 212, 191, .35), transparent 70%), linear-gradient(120deg, #071d42 0%, #0b2a5b 48%, #134a8e 100%); box-shadow: 0 6px 22px rgba(11, 42, 91, .22); }
.tx-hl { display: flex; align-items: center; gap: 14px; }
.tx-logo { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #2dd4bf, #1f6fe0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.tx-logo .ico { width: 28px; height: 28px; color: #fff; }
.tx-hero h2 { color: #fff; font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.01em; line-height: 1.2; }
.tx-hero p { margin: 3px 0 0; font-size: 13px; color: #bcd2f0; line-height: 1.4; }
.tx-hero p b { color: #fff; font-weight: 600; }
.tx-hr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tx-hero .btn { height: 34px; }
.tx-hero .btn:not(.pri) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; }
.tx-hero .btn:not(.pri):hover { background: rgba(255, 255, 255, .18); }
.tx-conn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tx-conn .ico { width: 15px; height: 15px; }
.tx-conn.c-on { background: #dcfce7; color: #166534; }
.tx-conn.c-sb { background: #ede9fe; color: #5b21b6; }
.tx-conn.c-off { background: #fee2e2; color: #991b1b; }
.tx-conn.c-err { background: #fef3c7; color: #92400e; }
.tx-role { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .12); color: #e2ecfb; white-space: nowrap; }
.tx-role .ico { width: 15px; height: 15px; color: #fcd34d; }

.tx-tabs { display: flex; gap: 4px; overflow-x: auto; background: #fff; border: 1px solid var(--ln); border-radius: 12px; padding: 5px; box-shadow: 0 2px 8px rgba(25, 70, 150, .06); scrollbar-width: thin; }
.tx-tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--mut); white-space: nowrap; }
.tx-tabs a:hover { background: #f1f6fe; color: var(--nv); }
.tx-tabs a.on { background: var(--nv); color: #fff; }
.tx-tabs a span { white-space: nowrap; overflow: visible; text-overflow: clip; max-width: none; }
.tx-tabs a em { font-style: normal; font-size: 11px; background: #ef4444; color: #fff; border-radius: 999px; padding: 1px 7px; }
.tx-body { display: grid; gap: 12px; }
.tx-sub { display: flex; gap: 6px; flex-wrap: wrap; }
.tx-sub a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--ln); background: #fff; font-size: 13px; font-weight: 600; color: var(--mut); }
.tx-sub a.on { border-color: var(--bl); color: var(--bl); background: #eef5ff; }

/* ---- thẻ ---- */
.tx-card { background: #fff; border: 1px solid var(--ln); border-radius: 12px; box-shadow: 0 2px 10px rgba(25, 70, 150, .06); padding: 12px 16px 14px; }
.tx-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; flex-wrap: wrap; }
.tx-card > header h3 { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; color: var(--nv); margin: 0; line-height: 1.25; }
.tx-card > header h3 > .ico { width: 21px; height: 21px; color: var(--bl); flex: none; }
.tx-card > header h3 small { display: block; font-size: 12px; font-weight: 400; color: var(--mut); margin-top: 1px; }
.tx-hx { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.tx-empty { text-align: center; color: var(--mut); padding: 30px; }
.tx-none { display: flex; align-items: center; justify-content: center; gap: 8px; color: #64748b; padding: 18px 10px; font-size: 13px; }
.tx-none .ico { color: #22c55e; }
.tx-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.tx-bar h3 { font-size: 18px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tx-bar small { color: var(--mut); font-size: 12.5px; }
.tx-g2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; }
.tx-g2.w { grid-template-columns: 1.15fr 1fr; align-items: start; }
.tx-g2.w > div { display: grid; gap: 12px; }
.tx-g2.f { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.tx-cal td:nth-child(2) { min-width: 190px; } .tx-cal td:last-child { white-space: nowrap; width: 1%; } .tx-cal td small { word-break: break-all; }
.tx-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tx-note { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--mut); margin-top: 10px; line-height: 1.45; background: #f6f9fe; border-radius: 8px; padding: 8px 10px; }
.tx-note .ico { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--bl); }
.tx-alert { display: flex; gap: 9px; align-items: flex-start; border-radius: 10px; padding: 10px 13px; font-size: 13.5px; line-height: 1.45; border: 1px solid; }
.tx-alert .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.tx-alert.a-crit { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.tx-alert.a-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.tx-alert.a-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.tx-alert.a-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.tx-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.tx-pill.p-ok { background: #dcfce7; color: #166534; } .tx-pill.p-warn { background: #fef3c7; color: #92400e; } .tx-pill.p-crit { background: #fee2e2; color: #991b1b; }
.tx-pill.p-info { background: #dbeafe; color: #1e40af; } .tx-pill.p-violet { background: #ede9fe; color: #5b21b6; } .tx-pill.p-muted { background: #eef2f7; color: #475569; }

/* ---- bắt đầu ---- */
.tx-start ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tx-start li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed #bcd0ee; border-radius: 10px; }
.tx-start li > b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bl); color: #fff; flex: none; font-size: 14px; }
.tx-start li.done > b { background: var(--ok); }
.tx-start li div { flex: 1; display: grid; } .tx-start li strong { font-size: 14px; } .tx-start li span { font-size: 12.5px; color: var(--mut); }
.tx-start li em { font-style: normal; color: var(--ok); font-weight: 600; font-size: 12.5px; }

/* ---- chỉ số ---- */
.tx-per { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #b9cdea; border-radius: 9px; padding: 0 8px; background: #fff; height: 34px; }
.tx-per select { border: 0; background: none; font-weight: 600; color: var(--nv); outline: none; }
.tx-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tx-kpi { position: relative; display: grid; gap: 3px; padding: 13px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--ln); box-shadow: 0 2px 10px rgba(25, 70, 150, .06); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tx-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(25, 70, 150, .12); }
.tx-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bl); }
.tx-kpi > .ico { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; color: #c7d8f2; }
.tx-kpi span { font-size: 12.5px; color: var(--mut); font-weight: 600; padding-right: 30px; }
.tx-kpi b { font-size: 23px; font-weight: 800; color: var(--nv); line-height: 1.2; letter-spacing: -.01em; }
.tx-kpi small { font-size: 12px; color: var(--mut); line-height: 1.35; }
.tx-kpi.k-out::before { background: #1f6fe0; } .tx-kpi.k-in::before { background: var(--tl); } .tx-kpi.k-rev::before { background: #d97706; }
.tx-kpi.k-pay::before { background: var(--crit); } .tx-kpi.k-pay b { color: var(--crit); } .tx-kpi.k-carry::before { background: var(--ok); } .tx-kpi.k-carry b { color: var(--ok); }
.tx-kpi.k-risk { display: flex; align-items: center; gap: 10px; } .tx-kpi.k-risk > div { display: grid; gap: 2px; } .tx-kpi.k-risk b { font-size: 18px; }
.tx-kpi.k-risk.t-ok::before { background: var(--ok); } .tx-kpi.k-risk.t-warn::before { background: #f59e0b; } .tx-kpi.k-risk.t-crit::before { background: var(--crit); }
.tx-ring { position: relative; width: 66px; height: 66px; flex: none; }
.tx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tx-ring circle { fill: none; stroke-width: 9; } .tx-ring .bg { stroke: #e6edf7; } .tx-ring .fg { stroke-linecap: round; transition: stroke-dashoffset .6s; }
.tx-ring.t-ok .fg { stroke: #16a34a; } .tx-ring.t-warn .fg { stroke: #f59e0b; } .tx-ring.t-crit .fg { stroke: #dc2626; }
.tx-ring > div { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; line-height: 1; }
.tx-ring > div b { font-size: 19px; font-weight: 800; color: var(--nv); } .tx-ring > div small { font-size: 10px; color: var(--mut); }

/* ---- luồng ---- */
.tx-flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.tx-stage { flex: 1 1 120px; display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ln); background: #f8fbff; transition: background .15s; }
.tx-stage:hover { background: #eef5ff; }
.tx-stage .ico { width: 20px; height: 20px; color: var(--bl); }
.tx-stage b { font-size: 22px; font-weight: 800; line-height: 1.15; }
.tx-stage span { font-size: 12.5px; font-weight: 600; } .tx-stage small { font-size: 11.5px; color: var(--mut); } .tx-stage small i { color: var(--crit); font-style: normal; font-weight: 700; }
.tx-stage.s-crit { background: #fef2f2; border-color: #fecaca; } .tx-stage.s-crit .ico, .tx-stage.s-crit b { color: var(--crit); }
.tx-stage.s-warn { background: #fffbeb; border-color: #fde68a; } .tx-stage.s-warn .ico, .tx-stage.s-warn b { color: var(--warn); }
.tx-stage.s-ok { background: #f0fdf4; border-color: #bbf7d0; } .tx-stage.s-ok .ico, .tx-stage.s-ok b { color: var(--ok); }
.tx-stage.s-violet .ico { color: var(--vio); }
.tx-arr { align-self: center; color: #9db5d8; width: 18px !important; height: 18px !important; flex: none; }
.tx-chart { height: 280px; } .tx-chart.sm { height: 230px; }

/* ---- danh sách nhỏ ---- */
.tx-due { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tx-due li { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 9px; background: #f8fbff; }
.tx-dd { width: 44px; flex: none; text-align: center; border-radius: 8px; background: #fff; border: 1px solid var(--ln); padding: 3px 0; line-height: 1.1; }
.tx-dd b { display: block; font-size: 17px; } .tx-dd small { font-size: 10.5px; color: var(--mut); }
.tx-due li > div:nth-child(2) { flex: 1; display: grid; } .tx-due strong { font-size: 13px; } .tx-due span { font-size: 12px; color: var(--mut); }
.tx-due em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--mut); white-space: nowrap; }
.tx-due li.soon { background: #fffbeb; } .tx-due li.soon em { color: var(--warn); } .tx-due li.od { background: #fef2f2; } .tx-due li.od em { color: var(--crit); }
.tx-rl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tx-rl a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 13px; }
.tx-rl a:hover { background: #f1f6fe; } .tx-rl a span { flex: 1; } .tx-rl a > .ico { color: #9db5d8; }
.tx .sev { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; }
.tx .sev .ico { width: 15px; height: 15px; }
.tx .sev.s-crit { background: #fee2e2; color: var(--crit); } .tx .sev.s-warn { background: #fef3c7; color: var(--warn); } .tx .sev.s-info { background: #dbeafe; color: #1e40af; }
.tx-act { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-height: 360px; overflow: auto; }
.tx-act li { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #e3ebf6; font-size: 12.5px; line-height: 1.4; }
.tx-act time { color: var(--mut); font-size: 11.5px; }

/* ---- bảng ---- */
.tx-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.tx-t th { text-align: left; font-size: 12px; font-weight: 700; color: var(--mut); padding: 8px 9px; border-bottom: 1px solid var(--ln); background: #f6f9fe; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.tx-t td { padding: 8px 9px; border-bottom: 1px solid #edf2f9; vertical-align: top; }
.tx-t td small { display: block; color: var(--mut); font-size: 11.5px; margin-top: 1px; }
.tx-t td small.crit { color: var(--crit); } .tx-t td small.warn { color: var(--warn); }
.tx-t .r, .tx-t th.r { text-align: right; } .tx-t .c { text-align: center; } .tx-t .nw { white-space: nowrap; } .tx-t td.n { color: var(--mut); width: 28px; }
.tx-t tr.click { cursor: pointer; } .tx-t tr.click:hover td { background: #f5f9ff; }
.tx-t tr.late td { background: #fff5f5; } .tx-t tr.soon td { background: #fffbeb; }
.tx-t tfoot td { font-weight: 700; background: #f6f9fe; border-top: 1px solid var(--ln); }
.tx-t.sm td { padding: 5px 8px; }
.tx-t i.sb { color: var(--vio); font-style: normal; font-weight: 700; }
.tx-tw { overflow: auto; max-height: 68vh; border-radius: 8px; }
.tx-tw.tall { max-height: 74vh; }
.tx-flag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; margin-right: 3px; }
.tx-flag .ico { width: 13px; height: 13px; }
.tx-flag.s-crit { background: #fee2e2; color: var(--crit); } .tx-flag.s-warn { background: #fef3c7; color: var(--warn); } .tx-flag.s-info { background: #dbeafe; color: #1e40af; } .tx-flag.s-ok { background: #dcfce7; color: var(--ok); }

/* ---- bộ lọc ---- */
.tx-flt { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tx-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.tx-chips button { border: 1px solid var(--ln); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.tx-chips button.on { background: var(--nv); border-color: var(--nv); color: #fff; }
.tx-flt select, .tx-flt input[type=date] { height: 34px; border: 1px solid #b9cdea; border-radius: 8px; padding: 0 8px; background: #fff; color: var(--nv); }
.tx-search { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #b9cdea; border-radius: 8px; padding: 0 9px; height: 34px; background: #fff; position: relative; }
.tx-search input { border: 0; outline: none; background: none; width: 220px; }
.tx-search .ico { color: var(--mut); width: 15px; height: 15px; }
.tx-batch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; margin-bottom: 8px; border-radius: 10px; background: #eef5ff; border: 1px solid #bfd6f6; font-weight: 600; font-size: 13px; }

/* ---- biểu mẫu ---- */
.tx-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.tx-form.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tx-form .span2 { grid-column: span 2; } .tx-form .span4 { grid-column: 1 / -1; }
.tx-f { display: grid; gap: 4px; align-content: start; }
.tx-f > label { font-size: 12.5px; font-weight: 600; color: #334866; } .tx-f > label b { color: var(--crit); }
.tx-f input, .tx-f select, .tx-f textarea, .tx-lines input, .tx-lines select { width: 100%; height: 36px; border: 1px solid #c4d4ea; border-radius: 8px; padding: 0 10px; background: #fff; color: #0f1f33; font-size: 13.5px; }
.tx-f input[type=radio], .tx-f input[type=checkbox] { width: auto; height: auto; padding: 0; flex: none; }
.tx-f textarea { height: auto; padding: 8px 10px; resize: vertical; }
.tx-f input:focus, .tx-f select:focus, .tx-f textarea:focus, .tx-lines input:focus, .tx-lines select:focus { outline: 2px solid #93c5fd; border-color: var(--bl); }
.tx-f input:disabled, .tx-f select:disabled { background: #f3f6fa; color: #64748b; }
.tx-f > small { font-size: 11.5px; color: var(--mut); } .tx-f > small .ico { width: 13px; height: 13px; vertical-align: -2px; }
.tx-f .ferr, .tx-chk .ferr, [data-field="lines"] .ferr { color: var(--crit); font-size: 12px; }
.tx-f.err input, .tx-f.err select, .tx-f.err textarea { border-color: var(--crit); background: #fff8f8; }
.tx-ferr { color: var(--crit); font-size: 13px; font-weight: 600; }
.tx-fi { font-size: 13px; }
.tx-chk { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; cursor: pointer; }
.tx-chk input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--bl); }
.tx-chk span small { display: block; font-size: 11.5px; color: var(--mut); }
.tx-chk.inl { align-items: center; font-size: 12.5px; }
.tx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tx-seg label { display: flex; gap: 9px; align-items: flex-start; border: 1px solid #c4d4ea; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.tx-seg label:has(input:checked) { border-color: var(--bl); background: #eef5ff; box-shadow: 0 0 0 1px var(--bl); }
.tx-seg input { margin-top: 3px; accent-color: var(--bl); }
.tx-seg b { display: block; font-size: 13.5px; } .tx-seg small { font-size: 11.5px; color: var(--mut); }
.tx-adv summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--bl); margin-bottom: 6px; }
.tx-acts { display: flex; gap: 7px; flex-wrap: wrap; }
.tx-acts .btn { height: 36px; }
.tx-actions { position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: rgba(255, 255, 255, .96); border: 1px solid var(--ln); border-radius: 12px; box-shadow: 0 -4px 18px rgba(25, 70, 150, .1); }
.tx-ed { display: grid; gap: 12px; }
.tx-pick { position: relative; }
.tx-pick input { width: 300px; }
.tx-pl { position: absolute; top: 38px; right: 0; width: 420px; max-width: 86vw; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--ln); border-radius: 10px; box-shadow: 0 14px 34px rgba(11, 42, 91, .2); z-index: 20; padding: 4px; }
.tx-pl button { display: grid; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; }
.tx-pl button:hover { background: #eef5ff; } .tx-pl small { color: var(--mut); font-size: 11.5px; }
.tx-lines td { padding: 5px 6px; vertical-align: middle; }
.tx-lines input.tx-code { margin-top: 4px; height: 28px; font-size: 12px; color: var(--mut); }
.tx-lines td[data-amt] { font-weight: 700; white-space: nowrap; }
.tx-ib { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #f1c4c4; background: #fff; color: var(--crit); }
.tx-ib:hover { background: #fef2f2; }
.tx-sum { display: grid; grid-template-columns: 1fr 380px; gap: 16px; margin-top: 12px; align-items: start; }
.tx-sum-l { display: grid; gap: 10px; }
.tx-words { padding: 10px 12px; border-radius: 10px; background: #f6f9fe; border: 1px dashed #bcd0ee; display: grid; gap: 2px; }
.tx-words span { font-size: 12px; color: var(--mut); } .tx-words b { font-style: italic; font-size: 14px; }
.tx-tot td { padding: 5px 4px; border: 0; } .tx-tot tr.mut td { color: var(--mut); font-size: 12px; }
.tx-tot tr.big td { font-size: 17px; font-weight: 800; border-top: 2px solid var(--nv); padding-top: 8px; color: var(--nv); }

/* ---- chi tiết ---- */
.tx-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
.tx-detail > div { display: grid; gap: 12px; }
.tx-detail aside { display: grid; gap: 12px; }
.tx-prev { background: #e9eef4; border-radius: 12px; border: 1px solid var(--ln); overflow: hidden; }
.tx-prev iframe { width: 100%; height: 1160px; border: 0; display: block; }
.tx-kv { display: grid; grid-template-columns: 128px 1fr; gap: 7px 10px; margin: 0; font-size: 13px; }
.tx-kv.two { grid-template-columns: 150px 1fr; }
.tx-kv dt { color: var(--mut); font-size: 12.5px; } .tx-kv dd { margin: 0; word-break: break-word; }
.tx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tx-steps li { display: flex; gap: 10px; padding: 7px 0; position: relative; }
.tx-steps li > .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #eef2f7; color: #94a3b8; flex: none; }
.tx-steps li.done > .ico { background: #dcfce7; color: var(--ok); } .tx-steps li.bad > .ico { background: #fee2e2; color: var(--crit); }
.tx-steps li div { display: grid; } .tx-steps b { font-size: 13px; } .tx-steps span { font-size: 12px; color: var(--mut); }
.tx-sign { display: flex; gap: 12px; padding: 12px; border-radius: 10px; background: #f6f9fe; border: 1px solid var(--ln); margin-bottom: 10px; }
.tx-sign-i { width: 44px; height: 44px; border-radius: 12px; background: var(--nv); display: grid; place-items: center; flex: none; }
.tx-sign-i .ico { color: #fcd34d; width: 24px; height: 24px; }
.tx-sign div > b { display: block; margin-bottom: 4px; } .tx-sign span { font-size: 12.5px; color: var(--mut); line-height: 1.5; } .tx-sign span b { display: inline; color: var(--nv); }
.tx-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tx-res li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.tx-res li.ok { background: #f0fdf4; color: #166534; } .tx-res li.bad { background: #fef2f2; color: #991b1b; }
.tx-res .ico { flex: none; margin-top: 1px; }

/* ---- kê khai ---- */
.tx-decl td { padding: 6px 8px; } .tx-decl td.ck { width: 52px; color: var(--bl); font-weight: 700; font-family: var(--mono); font-size: 12px; }
.tx-decl tr.grp td { background: #eef4fc; font-weight: 700; font-size: 12.5px; color: var(--nv); }
.tx-decl tr.b td { font-weight: 700; } .tx-decl tr.pay td { font-weight: 800; color: var(--crit); background: #fff5f5; font-size: 14px; }
.tx-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.tx-links a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--ln); border-radius: 10px; font-size: 13px; font-weight: 600; background: #f8fbff; }
.tx-links a:hover { background: #eef5ff; } .tx-links .ico { color: var(--bl); flex: none; }

/* ---- rủi ro ---- */
.tx-rhead { display: flex; gap: 18px; align-items: center; }
.tx-rhead .tx-ring { width: 104px; height: 104px; } .tx-rhead .tx-ring > div b { font-size: 30px; }
.tx-rhead h3 { margin: 0 0 4px; font-size: 19px; } .tx-rhead p { margin: 0; font-size: 13px; color: var(--mut); line-height: 1.5; }
.tx-rn { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.tx-rn span { display: inline-flex; align-items: center; gap: 5px; } .tx-rn .ico { width: 16px; height: 16px; }
.tx-rn .s-crit { color: var(--crit); } .tx-rn .s-warn { color: var(--warn); } .tx-rn .s-info { color: #1e40af; } .tx-rn .s-ok { color: var(--ok); }
.tx-risks { display: grid; gap: 7px; }
.tx-risk { border: 1px solid var(--ln); border-radius: 10px; overflow: hidden; }
.tx-risk.s-crit { border-left: 4px solid var(--crit); } .tx-risk.s-warn { border-left: 4px solid #f59e0b; } .tx-risk.s-info { border-left: 4px solid #3b82f6; }
.tx-risk.acked { opacity: .72; border-left-color: var(--ok); }
.tx-risk summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.tx-risk summary::-webkit-details-marker { display: none; }
.tx-risk summary > .tx-pill { flex: none; }
.tx-risk summary > span:not(.tx-pill) { flex: 1; display: grid; } .tx-risk summary b { font-size: 13.5px; } .tx-risk summary small { font-size: 12px; color: var(--mut); line-height: 1.4; }
.tx-chev { transition: transform .2s; color: #94a3b8; } .tx-risk[open] .tx-chev { transform: rotate(180deg); }
.tx-rb { padding: 0 12px 12px 48px; display: grid; gap: 8px; }
.tx-rb ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; font-size: 13px; max-height: 260px; overflow: auto; }
.tx-rb ul a:not(.btn) { color: var(--bl); } .tx-rb .btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }

/* ---- kết nối ---- */
.tx-login > header { align-items: flex-start; }
.tx-sec { display: flex; gap: 8px; padding: 9px 11px; margin-bottom: 12px; border-radius: 9px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 12.5px; line-height: 1.45; }
.tx-sec .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.tx-guide { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 13px; line-height: 1.5; }
.tx-ppl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tx-ppl li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: #faf5ff; }
.tx-ppl li > .ico { color: #d97706; } .tx-ppl li span { flex: 1; display: grid; } .tx-ppl small { color: var(--mut); font-size: 12px; }
.tx-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tx-roles > div { padding: 10px 12px; border-radius: 10px; background: #f6f9fe; display: grid; gap: 4px; font-size: 12.5px; color: var(--mut); line-height: 1.45; }
.tx-roles b { display: flex; gap: 6px; align-items: center; color: var(--nv); font-size: 13px; }

/* ---- màn hình hẹp ---- */
@media (max-width: 1280px) { .tx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tx-detail { grid-template-columns: minmax(0, 1fr) 330px; } }
@media (max-width: 1100px) { .tx-g2, .tx-g2.w, .tx-g2.f, .tx-g3, .tx-detail { grid-template-columns: minmax(0, 1fr); } .tx-form.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tx-sum { grid-template-columns: 1fr; } .tx-prev iframe { height: 900px; } }
@media (max-width: 720px) {
  .tx-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tx-kpi.k-risk { grid-column: 1 / -1; }
  .tx-form, .tx-form.c4, .tx-seg, .tx-roles { grid-template-columns: minmax(0, 1fr); } .tx-form .span2, .tx-form .span4 { grid-column: auto; }
  .tx-hero { padding: 13px; } .tx-hero h2 { font-size: 18px; } .tx-hr { justify-content: flex-start; }
  .tx-search input, .tx-pick input { width: 150px; } .tx-arr { display: none !important; } .tx-stage { flex-basis: 45%; }
  .tx-rhead { flex-direction: column; align-items: flex-start; } .tx-kv, .tx-kv.two { grid-template-columns: 1fr; gap: 2px; } .tx-kv dd { margin-bottom: 6px; }
  .tx-act li { grid-template-columns: 1fr; gap: 1px; } .tx-prev iframe { height: 720px; } .tx-lines { min-width: 760px; }
}

/* ---- kết nối MISA bằng tài khoản doanh nghiệp (13/11/2026 tối) ---- */
.tx-seg.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tx-webnote { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 9px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; font-size: 12.5px; line-height: 1.5; }
.tx-webnote .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; }
@media (max-width: 1100px) { .tx-seg.s3 { grid-template-columns: minmax(0, 1fr); } }

/* ---- hóa đơn mẫu cho khách duyệt ---- */
.tx-rvl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tx-rvl li { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid var(--ln); border-radius: 9px; background: #f8fbff; font-size: 12.5px; }
.tx-rvl li > div:first-child { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.tx-rvl li > span { color: var(--mut); } .tx-rvl li .rsp { color: var(--nv); }
.tx-rvl .tx-acts { margin-top: 4px; } .tx-rvl .btn.sm { height: 30px; }
.tx-link input { width: 100%; height: 38px; border: 1px solid #c4d4ea; border-radius: 8px; padding: 0 10px; font-family: var(--mono); font-size: 12.5px; background: #f6f9fe; }
