/* PHOEBE . Lop dung chung cong NCC (/ncc) + muc "Nha cung cap" CRM (.ncx-*). Quy chuan: KHONG box, tab gach chan,
   nut chinh champagne chu navy, cham >= 44px, o nhap 16px. Bien mau --c-* lay tu trang nap file nay. */
.ncx-lab { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin: 0 0 8px; }
.ncx-in, .ncx-sel, .ncx-ta { width: 100%; min-height: 44px; border: 1px solid var(--c-line); background: var(--c-white); border-radius: 10px; padding: 10px 12px; font-size: 16px; color: var(--c-ink); }
.ncx-ta { min-height: 88px; resize: vertical; line-height: 1.5; }
.ncx-in:focus, .ncx-sel:focus, .ncx-ta:focus { outline: none; border-color: var(--c-champ); }
.ncx-field { margin: 0 0 16px; }
.ncx-pri { width: 100%; min-height: 50px; border: 0; border-radius: 10px; background: var(--c-champ); color: var(--c-navy); font-weight: 600; font-size: 15px; cursor: pointer; padding: 0 18px; }
.ncx-pri[disabled], .ncx-sec[disabled], .ncx-tb[disabled] { opacity: .5; cursor: default; }
.ncx-sec { min-height: 44px; border: 1px solid var(--c-line); background: transparent; color: var(--c-navy); border-radius: 10px; padding: 0 16px; font-weight: 600; cursor: pointer; }
.ncx-tb, .np-tb { min-height: 44px; min-width: 44px; border: 0; background: none; color: var(--c-gold-ink); font-weight: 600; padding: 0 6px; cursor: pointer; }
.ncx-tb.danger { color: var(--c-err); }
.ncx-warn { color: var(--c-err); font-size: 13px; margin: 6px 0 0; }
.ncx-utabs { display: flex; gap: 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-bottom: 1px solid var(--c-line); margin: 0 0 10px; }
.ncx-utabs::-webkit-scrollbar { display: none; }
.ncx-ut { flex: none; min-height: 44px; min-width: 44px; text-align: center; border: 0; background: none; padding: 0; color: var(--c-muted); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.ncx-ut.on { color: var(--c-navy); font-weight: 600; border-bottom-color: var(--c-champ); }
.ncx-ut .n { font-size: 12px; color: var(--c-gold-ink); margin-left: 4px; }
.ncx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ncx-chip { min-height: 44px; border: 1px solid var(--c-line); background: transparent; color: var(--c-ink); border-radius: 999px; padding: 0 16px; cursor: pointer; font-size: 14px; }
.ncx-chip.on { background: var(--c-champ); border-color: var(--c-champ); color: var(--c-navy); font-weight: 600; }
.ncx-search { width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid var(--c-line); background: transparent; font-size: 16px; padding: 8px 0; margin: 0 0 4px; }
.ncx-search:focus { outline: none; border-bottom-color: var(--c-champ); }
.ncx-row { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--c-line); background: none; padding: 14px 0; cursor: pointer; color: inherit; }
.ncx-row:focus-visible { outline: 2px solid var(--c-champ); outline-offset: -2px; }
.ncx-r1 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ncx-code { font-weight: 600; color: var(--c-navy); font-variant-numeric: tabular-nums; }
.ncx-amt { font-family: var(--f-serif); font-size: 17px; color: var(--c-navy); white-space: nowrap; }
.ncx-r2, .ncx-r3 { font-size: 13px; color: var(--c-muted); margin-top: 3px; overflow-wrap: anywhere; }
.ncx-r2 { color: var(--c-ink); }
.ncx-st { font-weight: 600; }
.ncx-urg { color: var(--c-err); font-weight: 600; }
.ncx-empty { padding: 28px 0; color: var(--c-muted); }
.ncx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ncx-table th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.ncx-table td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.ncx-table tr.ncx-tr { cursor: pointer; }
.ncx-table tr.ncx-tr:hover td { background: var(--c-gold-tint); }
.ncx-table tr.on td { background: var(--c-gold-tint); }
.ncx-table .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ncx-table tfoot td { font-weight: 600; color: var(--c-navy); }
.ncx-back { min-height: 44px; border: 0; background: none; color: var(--c-gold-ink); font-weight: 600; padding: 0; cursor: pointer; }
.ncx-dst { font-size: 14px; margin: -4px 0 14px; }
.ncx-sec2 { padding: 16px 0; border-top: 1px solid var(--c-line); }
.ncx-kv { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.ncx-kv .k { color: var(--c-muted); }
.ncx-kv .v { text-align: right; color: var(--c-ink); overflow-wrap: anywhere; }
.ncx-line { padding: 8px 0; }
.ncx-line .a { display: flex; justify-content: space-between; gap: 12px; }
.ncx-line .nm { color: var(--c-ink); font-weight: 500; overflow-wrap: anywhere; }
.ncx-line .sub { font-size: 13px; color: var(--c-muted); display: flex; justify-content: space-between; gap: 12px; margin-top: 2px; }
.ncx-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.ncx-total .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.ncx-total .v { font-family: var(--f-serif); font-size: 22px; color: var(--c-navy); }
.ncx-pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.ncx-file { min-height: 44px; border: 0; background: none; padding: 0 12px 0 0; color: var(--c-gold-ink); text-decoration: underline; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
.ncx-ev { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: 13px; }
.ncx-ev .t { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.ncx-ev .x { overflow-wrap: anywhere; }
.ncx-ev .s { color: var(--c-gold-ink); }
.ncx-acts { padding: 18px 0 8px; }
.ncx-acts2 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; }
.ncx-acts2.left { justify-content: flex-start; }
.ncx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 8px; }
.ncx-kpis.ncx-kpis4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .ncx-kpis.ncx-kpis4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ncx-kpi .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.ncx-kpi .v { font-family: var(--f-serif); font-size: 22px; color: var(--c-navy); margin-top: 4px; overflow-wrap: anywhere; }
.ncx-small { font-size: 13px; color: var(--c-muted); }
.ncx-pnav { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.ncx-pnav .p { min-width: 92px; text-align: center; font-weight: 600; color: var(--c-navy); }
.ncx-pnav button { width: 44px; height: 44px; border: 0; background: none; color: var(--c-navy); font-size: 22px; cursor: pointer; }
.ncx-sheetwrap { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.ncx-scrim { position: absolute; inset: 0; background: rgba(31, 58, 95, .28); }
.ncx-sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--c-cream); border-radius: 14px 14px 0 0; padding: 18px 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.ncx-sh { font-family: var(--f-serif); font-size: 24px; color: var(--c-navy); margin: 0 0 16px; overflow-wrap: anywhere; }
.ncx-qrow { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: center; padding: 6px 0; }
.ncx-qrow .nm { overflow-wrap: anywhere; }
.ncx-qrow .of { font-size: 12px; color: var(--c-muted); }
.ncx-fl { font-size: 13px; color: var(--c-ink); margin: 6px 0 0; overflow-wrap: anywhere; }
.ncx-pick { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--c-gold-ink); font-weight: 600; cursor: pointer; }
.ncx-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ncx-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.ncx-check input { width: 22px; height: 22px; accent-color: var(--c-navy); }
@media (min-width: 900px) {
  .ncx-sheetwrap { align-items: center; }
  .ncx-sheet { border-radius: 14px; padding: 24px; }
}
.ncx-kpi .v { white-space: nowrap; }
.ncx-line .sub span:last-child, .ncx-line .a span:last-child { white-space: nowrap; }
@media (max-width: 420px) { .ncx-kpis { gap: 8px; } .ncx-kpi .v { font-size: 18px; } .ncx-kpi .k { letter-spacing: .08em; } }
