/* PHF QTTH — Dữ liệu chi phí kế toán V2 (Phase A). Corporate square: Arial,
   no rounded dashboard/pill, no gradient/glow. Scoped to .phf-acc2. */
.phf-acc2 { font-family: Arial, Helvetica, sans-serif; color: #1f2933; }
.phf-acc2 h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.phf-acc2 h3 { margin: 0; font-size: 15px; font-weight: 700; }
.phf-acc2 h4 { margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.phf-acc2 code { font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.phf-acc2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.phf-acc2-head p { margin: 0; max-width: 820px; }
.phf-acc2-tabs { display: flex; gap: 0; margin: 16px 0 12px; border-bottom: 1px solid #c9d1d9; flex-wrap: wrap; }
.phf-acc2-tabs button { font: inherit; font-size: 14px; background: #fff; border: 1px solid #c9d1d9; border-bottom: 0; border-radius: 0; margin-right: -1px; padding: 8px 14px; cursor: pointer; color: #3e4c59; }
.phf-acc2-tabs button.is-on { background: #1f3a5f; border-color: #1f3a5f; color: #fff; font-weight: 700; }
.phf-acc2-srcgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; }
.phf-acc2-src, .phf-acc2-block { border: 1px solid #c9d1d9; background: #fff; padding: 14px; border-radius: 0; }
.phf-acc2-block { margin-top: 12px; }
.phf-acc2-src-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.phf-acc2-src > p { margin: 4px 0 10px; }
.phf-acc2-kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.phf-acc2-kv th { text-align: left; font-weight: 400; color: #616e7c; width: 40%; padding: 4px 8px 4px 0; vertical-align: top; }
.phf-acc2-kv td { padding: 4px 0; }
.phf-acc2-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border: 1px solid; border-radius: 0; white-space: nowrap; }
.phf-acc2-badge.is-ok { color: #1d6b3a; border-color: #1d6b3a; background: #eef7f0; }
.phf-acc2-badge.is-warn { color: #8a5a00; border-color: #b7791f; background: #fdf6e7; }
.phf-acc2-badge.is-block { color: #9b1c1c; border-color: #9b1c1c; background: #fdeeee; }
.phf-acc2-badge.is-info { color: #3e4c59; border-color: #9aa5b1; background: #f5f7fa; }
.phf-acc2-badge.is-off { color: #616e7c; border-color: #c9d1d9; background: #f5f7fa; }
.phf-acc2-issues { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.phf-acc2-issues li { padding: 6px 0; border-top: 1px solid #e4e7eb; }
.phf-acc2-issues li:first-child { border-top: 0; }
.phf-acc2-ok { color: #1d6b3a; font-size: 13px; margin: 4px 0; }
.phf-acc2-empty { color: #616e7c; font-size: 13px; margin: 8px 0; }
.phf-acc2-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.phf-acc2 .phf-qtth-btn { border-radius: 0; background-image: none; box-shadow: none; }
.phf-acc2 .phf-qtth-btn.small { padding: 3px 8px; font-size: 12px; }
.phf-acc2-file { position: relative; display: inline-block; border: 1px solid #1f3a5f; color: #1f3a5f; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; background: #fff; }
.phf-acc2-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.phf-acc2-notice { border: 1px solid; padding: 8px 12px; margin: 10px 0; font-size: 13px; border-radius: 0; }
.phf-acc2-notice.is-warn { border-color: #b7791f; background: #fdf6e7; color: #6b4600; }
.phf-acc2-notice.is-block { border-color: #9b1c1c; background: #fdeeee; color: #7a1414; }
.phf-acc2-runhead { margin: 10px 0 6px; font-size: 13px; }
.phf-acc2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border: 1px solid #c9d1d9; margin: 12px 0; }
.phf-acc2-stat { padding: 10px 12px; border-right: 1px solid #c9d1d9; display: flex; flex-direction: column; gap: 2px; }
.phf-acc2-stat:last-child { border-right: 0; }
.phf-acc2-stat span { font-size: 12px; color: #616e7c; }
.phf-acc2-stat b { font-size: 16px; }
.phf-acc2-stat em { font-style: normal; font-size: 13px; color: #3e4c59; }
.phf-acc2-tallies { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.phf-acc2-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.phf-acc2-table th, .phf-acc2-table td { border: 1px solid #d9dee4; padding: 5px 8px; text-align: left; vertical-align: top; }
.phf-acc2-table thead th { background: #f0f3f6; font-weight: 700; }
.phf-acc2-table tfoot th { background: #f0f3f6; }
.phf-acc2-table .c-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phf-acc2-table .c-actions { white-space: nowrap; }
.phf-acc2-table .c-actions .phf-qtth-btn { margin-right: 4px; }
.phf-acc2-table tr.is-off td { color: #7b8794; }
.phf-acc2-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.phf-acc2-fold { margin-top: 12px; }
.phf-acc2-fold summary { cursor: pointer; font-weight: 700; font-size: 13px; padding: 6px 0; }
.phf-acc2-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; margin-top: 10px; align-items: end; }
.phf-acc2-form .wide { grid-column: span 2; }
.phf-acc2-form .phf-acc2-actions, .phf-acc2-form > p { grid-column: 1 / -1; margin: 0; }
.phf-acc2-form input, .phf-acc2-form select { border-radius: 0; }
.phf-acc2-check { font-size: 13px; display: flex; gap: 6px; align-items: center; grid-column: span 2; }
@media (max-width: 640px) { .phf-acc2-form .wide, .phf-acc2-check { grid-column: auto; } .phf-acc2-srcgrid, .phf-acc2-tallies { grid-template-columns: 1fr; } }
/* Accounting V1.1 — accounting evidence reconciliation (same corporate square style). */
.phf-acc2-stats .phf-acc2-stat:first-child { background: #f0f3f6; }
.phf-acc11-filters { align-items: center; }
.phf-acc11-filters select, .phf-acc11-filters input, .phf-acc2-filters input[type=search] { font: inherit; font-size: 13px; border: 1px solid #c9d1d9; border-radius: 0; padding: 5px 8px; background: #fff; }
.phf-acc11-filters input[type=search], .phf-acc2-filters input[type=search] { min-width: 280px; }
.phf-acc11-lines { font-size: 12px; }
.phf-acc11-lines td { white-space: nowrap; }
.phf-acc11-lines td.phf-acc11-narr { white-space: normal; min-width: 260px; max-width: 420px; color: #1f2933; }
.phf-acc11-lines td small { white-space: normal; }
.phf-acc11-preview { border-color: #1f3a5f; }
@media (max-width: 640px) { .phf-acc11-filters input[type=search], .phf-acc2-filters input[type=search] { min-width: 0; width: 100%; } .phf-acc11-lines td.phf-acc11-narr { min-width: 200px; } }
/* Accounting V1.2 — operator decision queue (same corporate square style: Arial,
   radius 0, no gradient / glow; increase = red, decrease = blue). */
.phf-acc12-concl { border: 2px solid #b7791f; background: #fff; padding: 12px 14px; margin: 12px 0; }
.phf-acc12-concl.is-clean { border-color: #1d6b3a; }
.phf-acc12-concl h3 { font-size: 15px; letter-spacing: .02em; margin-bottom: 8px; }
.phf-acc12-concl-t { border-collapse: collapse; font-size: 13px; min-width: 60%; }
.phf-acc12-concl-t th, .phf-acc12-concl-t td { border: 1px solid #d9dee4; padding: 5px 10px; text-align: left; }
.phf-acc12-concl-t th { font-weight: 400; background: #f5f7fa; }
.phf-acc12-concl-t tr.is-todo td, .phf-acc12-concl-t tr.is-todo th { font-weight: 700; }
.phf-acc12-concl-t .c-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phf-acc12-ok { color: #1d6b3a; font-weight: 700; }
.phf-acc12-todo { color: #9b1c1c; font-weight: 700; }
.phf-acc12-verdict { margin: 10px 0 4px; font-size: 14px; font-weight: 700; color: #6b4600; }
.phf-acc12-verdict.is-clean { color: #1d6b3a; }
.phf-acc12-srcwarn { margin-top: 8px; border-top: 1px solid #e4e7eb; padding-top: 6px; font-size: 13px; }
.phf-acc12-done { border: 1px solid #1d6b3a; background: #eef7f0; padding: 8px 12px; margin: 10px 0; font-size: 13px; }
.phf-acc12-done-i { padding: 6px 0; border-top: 1px solid #cfe5d6; }
.phf-acc12-done-i:first-child { border-top: 0; }
.phf-acc12-dec { color: #1f4f8f; }
.phf-acc12-inc { color: #9b1c1c; }
.phf-acc12-reasons .phf-acc12-reason { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.phf-acc12-reasons tr.is-work td:first-child { border-left: 3px solid #b7791f; }
.phf-acc12-reasons tr.is-on td { background: #fdf6e7; }
.phf-acc12-hint { margin: 8px 0; }
.phf-acc12-queue { border-color: #b7791f; }
.phf-acc12-groups tr.is-on td { background: #fdf6e7; }
.phf-acc12-groups td.c-actions { white-space: normal; }
.phf-acc12-groups td.c-actions .phf-qtth-btn { margin: 0 4px 4px 0; }
.phf-acc12-dlgrow > td, .phf-acc12-evrow > td { background: #fafbfc; padding: 8px; }
.phf-acc12-dlg { border: 1px solid #1f3a5f; background: #fff; padding: 12px; }
.phf-acc12-dlg h4 { margin: 0; }
.phf-acc12-dlg .phf-qtth-field { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-width: 520px; }
.phf-acc12-dlg input, .phf-acc12-dlg select { font: inherit; font-size: 13px; border: 1px solid #c9d1d9; border-radius: 0; padding: 5px 8px; background: #fff; }
.phf-acc12-field { margin-top: 10px; }
.phf-acc12-field > span { display: block; font-size: 12px; font-weight: 700; color: #3e4c59; margin-bottom: 4px; }
.phf-acc12-modes { display: inline-flex; border: 1px solid #1f3a5f; }
.phf-acc12-mode { font: inherit; font-size: 13px; background: #fff; color: #1f3a5f; border: 0; border-right: 1px solid #1f3a5f; border-radius: 0; padding: 6px 14px; cursor: pointer; }
.phf-acc12-mode:last-child { border-right: 0; }
.phf-acc12-mode.is-on { background: #1f3a5f; color: #fff; font-weight: 700; }
.phf-acc12-chipbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.phf-acc12-chipbar input { min-width: 220px; }
.phf-acc12-chipgrp { margin: 4px 0 6px; }
.phf-acc12-chipgrp > span { display: block; font-size: 11px; color: #616e7c; margin-bottom: 3px; text-transform: uppercase; }
.phf-acc12-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.phf-acc12-chip { font: inherit; font-size: 12px; background: #fff; color: #1f2933; border: 1px solid #c9d1d9; border-radius: 0; padding: 3px 8px; cursor: pointer; text-align: left; }
.phf-acc12-chip:hover { border-color: #1f3a5f; }
.phf-acc12-chip.is-on { background: #1f3a5f; border-color: #1f3a5f; color: #fff; font-weight: 700; }
.phf-acc12-impact { border-left: 3px solid #1f3a5f; background: #f5f7fa; padding: 6px 10px; margin: 12px 0 0; font-size: 13px; }
.phf-acc12-impact p { margin: 4px 0; }
.phf-acc12-impact.is-wait { color: #616e7c; border-left-color: #c9d1d9; }
.phf-acc12-qd { margin: 4px 0; padding-left: 18px; }
.phf-acc12-twin { margin-top: 4px; font-size: 11px; color: #6b4600; border-left: 2px solid #b7791f; padding-left: 6px; }
.phf-acc12-h3 { margin-top: 18px !important; }
@media (max-width: 640px) {
  .phf-acc12-concl-t { min-width: 0; width: 100%; }
  .phf-acc12-modes { display: flex; } .phf-acc12-mode { flex: 1; }
  .phf-acc12-chipbar input { min-width: 0; width: 100%; }
}
.phf-acc12-mismatch { margin: 6px 0; color: #6b4600; }
