/* Hành trình khách hàng (journeys.js): Tổng hợp, Lịch khởi hành, danh sách, chi tiết 15 bước, mẫu hành trình, popup tạo, tab hồ sơ khách.
   Giao diện theo CRM mới (docs/SALES-DESKTOP-UI-SYNC.md, phác thảo Journey*.dc.html 11/2026): thẻ phẳng viền #E4DACA bo 16, chữ thường,
   tab gạch dưới, chip trạng thái bo 12, nút đặc #9A6A2E. shell.css tải sau file này nên các bảng dùng bộ chọn có thêm một lớp (:is(...)). */
@media screen {
  #appView > hr { max-width:1900px; margin:4px clamp(20px,3vw,52px) 20px; border:0; border-top:1px dashed #d8cbb8; }
  #appView > #ctab { max-width:1900px; margin:0 auto; padding:0 clamp(20px,3vw,52px) 40px; }

  #appView .jn-ck input[type="checkbox"], #appView .jn-order input[type="checkbox"], #appView .jn-check input[type="checkbox"] { width:18px; height:18px; min-width:18px; min-height:0; padding:0; flex:0 0 18px; box-shadow:none; accent-color:#9A6A2E; }
  #appView .jn-ck label, #appView .jn-order, #appView .jn-check { text-align:left; justify-content:flex-start; }
  #appView .jn-small { margin-top:3px; font-size:12px; font-weight:500; color:#6F655A; line-height:1.4; }
  #appView .jn-small b { font-weight:700; color:#25211C; }
  #appView .is-bad, #appView .jn-small.is-bad, #appView .jn-small .is-bad { color:#9B2F23 !important; font-weight:600; }
  #appView .jn-small.is-ok, #appView .jn-small .is-ok, #appView .is-ok { color:#1F5E2E; font-weight:600; }
  #appView .jn-mute { color:#6F655A; }
  #appView .jn-nowrap { white-space:nowrap; }
  #appView .jn-name { font-size:14px; font-weight:700; color:#25211C; line-height:1.35; }
  #appView .jn-step-cur { font-size:14px; font-weight:600; color:#25211C; line-height:1.4; }
  #appView .jn-money-top { display:block; font-size:14px; font-weight:700; color:#25211C; font-variant-numeric:tabular-nums; }
  #appView .jn-date { font-weight:600; color:#25211C; font-variant-numeric:tabular-nums; }
  #appView .jn-link { border:0; background:none; padding:0; min-height:0; font:inherit; font-weight:700; color:#8A5F27; text-decoration:none; cursor:pointer; box-shadow:none; }
  #appView .jn-link:hover { color:#6E4A1C; background:none; text-decoration:underline; }
  #appView .jn-grow { flex:1 1 auto; }
  #appView .jn-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  #appView .jn-small.is-mute { color:#6F655A; }

  /* ---- đầu màn: link quay lại, số đếm, nút bên phải; hàng tab gạch dưới (4.1, 4.2) ---- */
  #appView .hub-heading.jn-has-back { align-items:flex-end; }
  #appView :is(#workWorkspace, #customerWorkspace, #rpRoot) .hub-heading.jn-has-back > div:first-child { display:flex; flex-direction:column; align-items:flex-start; gap:0; }
  #appView :is(#workWorkspace, #customerWorkspace, #rpRoot) .hub-heading > div:has(> .jn-count) { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
  #appView .hub-heading button.jn-back { display:block; align-self:flex-start; width:auto; text-align:left; min-height:0; margin:0 0 8px; padding:0; border:0; background:none; box-shadow:none; color:#8A5F27; font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
  #appView .hub-heading button.jn-back:hover { color:#6E4A1C; text-decoration:underline; background:none; }
  #appView .hub-heading h1.jn-h1 { overflow-wrap:anywhere; }
  #appView .hub-heading h1 .jn-link { font-weight:inherit; color:inherit; text-decoration:none; }
  #appView .hub-heading h1 .jn-link:hover { color:#8A5F27; text-decoration:underline; text-underline-offset:4px; }
  #appView .jn-count { display:inline-grid; place-items:center; min-width:26px; height:24px; padding:0 8px; box-sizing:border-box; border-radius:12px; background:#F1ECE4; color:#6F655A; font-size:12px; font-weight:700; letter-spacing:0; }
  #appView .hub-heading > .jn-head-act { display:flex; flex-direction:row; align-items:center; flex-wrap:nowrap; flex:none; gap:8px; margin-left:auto; }
  #appView .jn-head-act button { display:inline-flex; align-items:center; gap:8px; height:40px; min-height:40px; padding:0 16px; border-radius:10px; font-size:14px; font-weight:600; }
  #appView .jn-head-act button:not(.primary):not(.ui-more) { border:1px solid #E4DACA; background:#fff; color:#25211C; box-shadow:none; }
  #appView .jn-head-act button:not(.primary):not(.ui-more):hover { background:#FAF7F2; border-color:#B89F7E !important; }
  #appView .jn-head-act button.primary { font-weight:700; }
  #appView .jn-head-act button.ui-more { padding:0; }
  #appView .jn-tabs { display:flex; gap:28px; margin:0 0 20px; border-bottom:1px solid #EFE9DD; overflow-x:auto; scrollbar-width:none; }
  #appView .jn-tabs button.jn-tab { flex:none; height:auto; min-height:0; margin:0; padding:10px 0 11px; border:0; border-radius:0; background:none; box-shadow:none; color:#6F655A; font:inherit; font-size:14px; font-weight:600; white-space:nowrap; cursor:pointer; }
  #appView .jn-tabs button.jn-tab:hover { color:#25211C; background:none; }
  #appView .jn-tabs button.jn-tab[aria-selected="true"] { color:#25211C; box-shadow:inset 0 -2px 0 #9A6A2E; }
  #appView .jn-tabs button.jn-tab:focus-visible { outline:2px solid #9A6A2E; outline-offset:2px; }

  /* ---- chip trạng thái: bo 12, cao 24, chữ 12/600 ---- */
  #appView .jn-chip { display:inline-flex; align-items:center; gap:4px; height:24px; padding:0 10px; box-sizing:border-box; border:0; border-radius:12px; font-size:12px; font-weight:600; line-height:1; white-space:nowrap; background:#F1ECE4; color:#6F655A; }
  #appView .jn-chip.ok { background:#E6F2E8; color:#1F5E2E; }
  #appView .jn-chip.warn, #appView .jn-chip.ac { background:#FFF2E0; color:#8A4B0C; }
  #appView .jn-chip.bad { background:#FBE7E5; color:#9B2F23; }
  #appView .jn-chip.info { background:#E7EEF9; color:#24498A; }
  #appView .jn-chip.na { background:#F1ECE4; color:#6F655A; }

  /* ---- Tổng hợp: 5 ô số kiểu thẻ trang chủ (viền, không vạch màu) ---- */
  #appView .jn-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-bottom:16px; }
  #appView .jn-tile, #appView button.jn-tile { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:6px; min-width:0; min-height:0; height:auto; margin:0; padding:14px 16px; border:1px solid #E4DACA; border-radius:16px; background:#fff; box-shadow:none; text-align:left; font:inherit; color:#25211C; }
  #appView .jn-tile > span { display:flex; align-items:center; gap:6px; min-width:0; font-size:12px; font-weight:500; color:#6F655A; }
  #appView .jn-tile > span svg { flex:none; }
  #appView .jn-tile > b { display:block; font-size:26px; font-weight:800; line-height:1.1; color:#25211C; font-variant-numeric:tabular-nums; }
  #appView .jn-tile.bad > b { color:#9B2F23; }
  #appView .jn-tile.warn > b { color:#8A4B0C; }
  #appView button.jn-tile { cursor:pointer; }
  #appView button.jn-tile:hover { border-color:#B89F7E !important; background:#fff; }
  #appView button.jn-tile:focus-visible { outline:2px solid #9A6A2E; outline-offset:2px; }

  /* Thống kê (trái) + Việc hôm nay (phải); Sales không có Thống kê thì Việc hôm nay chiếm hết */
  #appView .jn-two { display:flex; flex-wrap:wrap; align-items:flex-start; gap:24px; }
  #appView .jn-stats { flex:999 1 640px; min-width:0; display:flex; flex-direction:column; gap:14px; padding:18px 20px 20px !important; border:1px solid #E4DACA !important; border-radius:16px !important; background:#fff; box-shadow:none !important; }
  #appView .jn-stats .srp-cardhead { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0; padding:0; border:0; }
  #appView .jn-stats .srp-cardhead h2 { margin:0; font-size:16px; font-weight:700; color:#25211C; }
  #appView .jn-stat-range { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-left:auto; font-size:13px; font-weight:500; color:#6F655A; }
  #appView .jn-stat-range label { display:inline-flex; align-items:center; gap:8px; margin:0; font-size:13px; font-weight:500; color:#6F655A; white-space:nowrap; }
  #appView .jn-stat-range input { box-sizing:border-box; height:36px; min-height:36px; padding:0 10px; border:1px solid #E4DACA; border-radius:10px; background:#fff; color:#25211C; font:inherit; font-size:14px; }
  #appView .jn-stat-range button { height:36px; min-height:36px; padding:0 16px; border:1px solid #E4DACA; border-radius:10px; background:#fff; color:#25211C; font-size:13px; font-weight:600; }
  #appView .jn-stats-h { display:flex; flex-wrap:wrap; align-items:baseline; gap:10px; margin:0; }
  #appView .jn-stats-h h3 { margin:0; font-size:15px; font-weight:700; color:#25211C; }
  #appView .jn-stats-h span { font-size:13px; color:#6F655A; }
  #appView .jn-stats .tbl-wrap { border:1px solid #E4DACA; border-radius:12px; overflow-x:auto; }
  #appView .jn-stat-table { width:100%; min-width:720px; }
  #appView .jn-stats .hub-table td.is-bad { font-weight:700; }
  #appView .jn-stats .hub-table td .jn-small { font-weight:500; color:#6F655A !important; }
  #appView .jn-side { flex:1 1 280px; max-width:340px; min-width:0; display:flex; flex-direction:column; gap:12px; }
  #appView .jn-side > h2 { margin:0; padding-top:18px; font-size:16px; font-weight:700; color:#25211C; }
  #appView .jn-two.is-solo .jn-side { flex-basis:100%; max-width:none; }
  #appView .jn-two.is-solo .jn-side > h2 { padding-top:0; }
  #appView .jn-todo-g { display:flex; flex-direction:column; gap:8px; }
  #appView .jn-todo-g + .jn-todo-g { margin-top:4px; }
  #appView .jn-todo-g h3 { display:flex; align-items:center; gap:8px; margin:4px 0 0; font-size:13px; font-weight:700; color:#25211C; text-transform:none; letter-spacing:0; }
  #appView .jn-todo-g h3.is-bad { color:#9B2F23 !important; }
  #appView .jn-todo-g h3 span { display:inline-grid; place-items:center; min-width:22px; height:20px; padding:0 6px; box-sizing:border-box; border-radius:10px; background:#F1ECE4; color:#6F655A; font-size:11px; font-weight:700; }
  #appView .jn-todo { display:flex; flex-direction:column; border:1px solid #E4DACA; border-radius:16px; overflow:hidden; background:#fff; }
  #appView .jn-todo-it { display:flex; align-items:center; gap:12px; padding:12px 14px; border-top:1px solid #EFE9DD; cursor:pointer; transition:background-color .12s ease; }
  #appView .jn-todo-it:first-child { border-top:0; }
  #appView .jn-todo-it:hover { background:#FAF1E1; }
  #appView .jn-todo-tx { flex:1 1 auto; min-width:0; }
  #appView .jn-todo-tx > b { display:block; font-size:14px; font-weight:700; line-height:1.35; color:#25211C; }
  #appView .jn-todo-tx .jn-small { display:block; margin-top:2px; }
  #appView .jn-todo-tx .jn-link { font-weight:600; }
  #appView .jn-when-d.is-bad { font-weight:700; }
  #appView .jn-todo-it button.jn-open { flex:0 0 auto; height:32px; min-height:32px; padding:0 14px; border-radius:10px; font-size:13px; font-weight:700; }
  #appView .jn-empty-s { margin:0; padding:14px 16px; border:1px solid #E4DACA; border-radius:16px; font-size:14px; color:#6F655A; }

  /* ---- hàng công cụ (4.3): tháng · ô tìm viên thuốc · bộ lọc chip · chip lọc nhanh ---- */
  #appView .hh-bar.jn-bar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 16px; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
  #appView .jn-bar .hh-month { display:inline-flex; align-items:center; gap:0; height:40px; padding:0; box-sizing:border-box; border:1px solid #E4DACA; border-radius:10px; background:#fff; overflow:hidden; }
  #appView .jn-bar .hh-month button { width:36px; min-width:36px; height:38px; min-height:38px; padding:0; border:0; border-radius:0; background:#fff; color:#25211C; font-size:16px; font-weight:500; box-shadow:none; }
  #appView .jn-bar .hh-month button:hover { background:#FAF7F2; }
  #appView .jn-bar .hh-month strong { min-width:0; padding:0 10px; text-align:center; font-size:14px; font-weight:700; color:#25211C; white-space:nowrap; }
  #appView .jn-search { display:flex; align-items:center; gap:8px; flex:1 1 240px; max-width:360px; height:40px; margin:0; padding:0 14px; box-sizing:border-box; border:1px solid #E4DACA; border-radius:20px; background:#fff; color:#6F655A; cursor:text; }
  #appView .jn-search:focus-within { border-color:#9A6A2E; box-shadow:0 0 0 3px #9a6a2e1f; }
  #appView .jn-search svg { flex:none; }
  #appView .jn-search input[type="search"] { flex:1 1 auto; min-width:0; width:auto; height:38px; min-height:0; margin:0; padding:0; border:0 !important; outline:0; background:transparent; box-shadow:none !important; color:#25211C; font:inherit; font-size:14px; }
  #appView .jn-bar select.jn-pick { width:auto; max-width:240px; height:36px; min-height:36px; margin:0; padding:0 32px 0 14px; box-sizing:border-box; border:1px solid #E4DACA; border-radius:18px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F655A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; color:#25211C; font:inherit; font-size:13px; font-weight:600; appearance:none; -webkit-appearance:none; box-shadow:none; cursor:pointer; }
  #appView .jn-bar select.jn-pick:hover { background-color:#FAF7F2; }
  #appView .jn-bar select.jn-pick.is-on { border-color:#EFE2CC; background-color:#EFE2CC; color:#6E4A1C; }
  #appView .jn-bar select.jn-pick[hidden] { display:none; }
  #appView .jn-bar button.jn-quick { height:36px; min-height:36px; padding:0 14px; border:1px solid #E4DACA; border-radius:18px; background:#fff; color:#25211C; font-size:13px; font-weight:600; white-space:nowrap; box-shadow:none; }
  #appView .jn-bar button.jn-quick:hover { background:#FAF7F2; }
  #appView .jn-bar button.jn-quick[aria-pressed="true"] { border-color:#EFE2CC; background:#EFE2CC; color:#6E4A1C; }
  #appView .jn-bar #jnClear { height:36px; min-height:36px; padding:0 10px; border-radius:10px; font-size:13px; font-weight:600; color:#8A5F27; }

  /* ---- bảng (4.5) trong thẻ viền: đầu nền #FAF7F2 chữ 13/600 thường, dòng ≥ 56, kẻ #EFE9DD ---- */
  #appView .jn-main, #appView .jn-tcard { padding:0 !important; overflow:hidden; min-width:0; border:1px solid #E4DACA !important; border-radius:16px !important; box-shadow:none !important; background:#fff; }
  #appView .jn-main > div > .srp-empty, #appView .jn-main > div > .hub-error, #appView .jn-main > div > .empty { margin:16px; }
  #appView :is(.jn-main, .jn-tcard, .jn-ctab) .tbl-wrap { position:relative; border:0; border-radius:0; overflow-x:auto; }
  #appView .jn-table { width:100%; min-width:1100px; position:relative; border-collapse:collapse; font-size:14px; }   /* position: giữ chữ ẩn .jn-sr trong khung cuộn của bảng */
  #appView .jn-table.jn-ctable { min-width:640px; }
  #appView :is(.jn-main, .jn-tcard, .jn-stats, .jn-ctab) .hub-table th { padding:12px !important; background:#FAF7F2 !important; color:#6F655A !important; font-size:13px !important; font-weight:600 !important; text-align:left !important; text-transform:none !important; letter-spacing:0 !important; white-space:nowrap; vertical-align:middle !important; border:0 !important; border-bottom:1px solid #EFE9DD !important; }
  #appView :is(.jn-main, .jn-tcard, .jn-stats, .jn-ctab) .hub-table td { padding:16px 12px !important; color:#25211C; font-size:14px; text-align:left !important; vertical-align:top !important; border:0 !important; border-top:1px solid #EFE9DD !important; }
  #appView :is(.jn-main, .jn-tcard, .jn-stats, .jn-ctab) .hub-table tbody tr:first-child td { border-top:0 !important; }
  #appView :is(.jn-main, .jn-tcard, .jn-stats, .jn-ctab) .hub-table :is(th, td):first-child { padding-left:16px !important; }
  #appView :is(.jn-main, .jn-tcard, .jn-stats, .jn-ctab) .hub-table :is(th, td):last-child { padding-right:16px !important; }
  #appView :is(.jn-main, .jn-tcard, .jn-stats, .jn-ctab) .hub-table :is(th, td).r { text-align:right !important; }
  #appView :is(.jn-main, .jn-tcard, .jn-stats, .jn-ctab) .hub-table :is(th, td).c { text-align:center !important; }
  #appView .jn-stats .hub-table td { padding:11px 12px !important; vertical-align:middle !important; }
  #appView :is(.jn-main, .jn-tcard, .jn-ctab) .hub-table tbody tr[data-j] { cursor:pointer; }
  #appView :is(.jn-main, .jn-tcard, .jn-ctab) .hub-table tbody tr:hover td { background:#FAF1E1 !important; }
  #appView .hub-table tbody tr[data-j]:focus-visible { outline:2px solid #9A6A2E; outline-offset:-2px; }
  #appView :is(.jn-main, .jn-tcard) .hub-table :is(th, td).jn-act-c { width:72px; text-align:right !important; vertical-align:top !important; }
  #appView :is(.jn-main, .jn-tcard) .hub-table td.jn-act-c { padding-top:12px !important; }
  #appView .hub-table button.jn-row-open, #appView .hub-table button[data-ver] { height:32px; min-height:32px; padding:0 12px; border:1px solid #E4DACA; border-radius:10px; background:#fff; color:#25211C; font-size:13px; font-weight:600; box-shadow:none; }
  #appView .hub-table button.jn-row-open:hover, #appView .hub-table button[data-ver]:hover { background:#FAF7F2; }
  #appView .jn-table tr.is-cancel td, #appView .jn-table tr.is-cancel .jn-name { color:#6F655A; }
  #appView :is(.jn-table, .jn-btable) .jn-link.jn-name { color:#8A5F27; text-align:left; }
  #appView .jn-table:not(.jn-ctable) td:first-child { min-width:160px; }
  #appView .jn-table tr.is-cancel .jn-link.jn-name { color:#6F655A; }
  #appView .jn-trip { min-width:160px; max-width:280px; white-space:normal; overflow-wrap:anywhere; }
  #appView .jn-trip-t { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-weight:600; line-height:1.4; }
  #appView .jn-trip-t .jn-chip { height:22px; padding:0 9px; }
  #appView .jn-tfoot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-top:1px solid #EFE9DD; font-size:13px; color:#6F655A; }
  #appView .jn-table th:nth-child(3) { width:190px; }

  /* tiến độ 15 ô */
  #appView .jn-prog { display:grid; grid-template-columns:repeat(15,1fr); gap:2px; width:165px; margin:2px 0 6px; padding:0; border:0; border-radius:0; background:none; }
  #appView .jn-prog.is-mini { width:120px; }
  #appView .jn-prog i { display:block; height:8px; border-radius:2px; background:#F1ECE4; }
  #appView .jn-prog i.d { background:#3F7D4E; }
  #appView .jn-prog i.c { background:#9A6A2E; }
  #appView .jn-prog i.o { background:#C2362B; }
  #appView .jn-prog i.n { background:#E4DCCF; }
  #appView .jn-prog + .jn-small b { color:#25211C; }

  /* ---- Lịch khởi hành: mỗi tháng một khối tiêu đề + bảng ---- */
  #appView .jn-bm { display:flex; flex-direction:column; gap:10px; margin:0 0 18px; }
  #appView .jn-bm > h2 { display:flex; align-items:center; gap:10px; margin:0; font-size:16px; font-weight:700; color:#25211C; }
  #appView .jn-bm-empty { margin:0; padding:16px 18px; border:1px solid #E4DACA; border-radius:16px; font-size:14px; color:#6F655A; }
  #appView .jn-btable { width:100%; min-width:960px; table-layout:fixed; }
  #appView .jn-btable th:nth-child(1) { width:130px; }
  #appView .jn-btable th:nth-child(2) { width:220px; }
  #appView .jn-btable th:nth-child(4) { width:260px; }
  #appView .jn-btable th:nth-child(5) { width:160px; }
  #appView .jn-btable th:nth-child(6) { width:88px; }
  #appView .jn-tcard .jn-btable td.jn-bday { font-weight:700; white-space:nowrap; font-variant-numeric:tabular-nums; }
  #appView .jn-btable td .jn-chip { max-width:100%; overflow:hidden; text-overflow:ellipsis; }

  /* ---- chi tiết: dòng chip, 4 ô thông tin, dải mốc ngày ---- */
  #appView .jn-head-top { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:-8px 0 16px; }
  #appView .jn-banner { margin:0 0 16px; padding:10px 14px; border:0; border-radius:12px; font-size:13px; font-weight:600; }
  #appView .jn-banner.is-warn { background:#FFF2E0; color:#8A4B0C; }
  #appView .jn-banner.is-bad { background:#FBE7E5; color:#9B2F23; }
  #appView .jn-banner.is-ok { background:#E6F2E8; color:#1F5E2E; }
  #appView .jn-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); margin:0 0 16px; border:1px solid #E4DACA; border-radius:16px; background:#fff; overflow:hidden; }
  #appView .jn-fact, #appView button.jn-fact { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:6px; box-sizing:border-box; min-width:0; min-height:0; height:auto; margin:0; padding:14px 18px; border:0; border-left:1px solid #EFE9DD !important; border-radius:0; background:#fff; box-shadow:none; text-align:left; font:inherit; color:#25211C; }
  #appView .jn-fact:first-child { border-left:0 !important; }
  #appView .jn-fact > span { display:block; font-size:13px; font-weight:500; color:#6F655A; text-transform:none; letter-spacing:0; }
  #appView .jn-fact > b { display:block; font-size:14px; font-weight:700; color:#25211C; overflow-wrap:anywhere; }
  #appView .jn-fact > b.jn-paid { font-weight:500; }
  #appView .jn-fact > b.jn-paid strong { font-weight:700; }
  #appView .jn-fact > small { display:block; font-size:12px; font-weight:500; color:#6F655A; }
  #appView .jn-fact .jn-link { display:block; text-align:left; font-size:14px; }
  #appView .jn-fact em { font-style:normal; }
  #appView .jn-svc-line { display:block; }
  #appView .jn-svc-line + .jn-svc-line { margin-top:3px; }
  #appView button.jn-fact.jn-money { cursor:pointer; }
  #appView button.jn-fact.jn-money:hover { background:#FAF7F2; }
  #appView .jn-pct { display:block; height:4px; margin-top:2px; border-radius:2px; background:#EFE9DD; overflow:hidden; }
  #appView .jn-pct > i { display:block; height:100%; border-radius:2px; background:#1F5E2E; }
  #appView .jn-ancs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); margin:0 0 20px; border-radius:12px; background:#FAF7F2; overflow:hidden; }
  #appView .jn-anc { display:flex; align-items:center; gap:6px; min-width:0; padding:10px 8px 10px 16px; border-left:1px solid #EFE9DD; }
  #appView .jn-anc:first-child { border-left:0; }
  #appView .jn-anc-t { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
  #appView .jn-anc-t > span { font-size:13px; font-weight:500; color:#6F655A; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-transform:none; letter-spacing:0; }
  #appView .jn-anc-t > b { font-size:14px; font-weight:700; color:#25211C; font-variant-numeric:tabular-nums; }
  #appView .jn-anc.is-empty .jn-anc-t > b { color:#6F655A; font-weight:600; }
  #appView .jn-anc.is-edit { background:#fff; box-shadow:inset 0 0 0 1.5px #9A6A2E; }
  #appView .jn-anchor { box-sizing:border-box; width:100%; height:32px; min-height:32px; padding:0 8px; border:1px solid #E4DACA !important; border-radius:8px; background:#fff !important; color:#25211C; font:inherit; font-size:14px; font-weight:600; }
  #appView button.jn-pen { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; min-width:0; min-height:0; padding:0; border:0; border-radius:10px; background:transparent; color:#6F655A; box-shadow:none; }
  #appView button.jn-pen:hover, #appView button.jn-pen:focus-visible { background:#fff; color:#25211C; }

  /* ---- timeline 15 bước (màn hẹp: danh sách xổ xuống; máy tính: xem khối min-width 901px cuối file) ---- */
  #appView .jn-tl-card { margin:0 0 16px; }
  #appView .jn-tl { list-style:none; margin:0; padding:8px; border:1px solid #E4DACA; border-radius:16px; background:#fff; }
  #appView .jn-step-head { display:flex !important; align-items:stretch; justify-content:flex-start !important; gap:12px; width:100%; min-height:0; margin:0; padding:0 10px !important; border:0 !important; border-radius:12px !important; background:transparent !important; box-shadow:none !important; text-align:left !important; font:inherit; color:#25211C !important; cursor:pointer; transition:background-color .12s ease; }
  #appView .jn-step-head:hover { background:#FAF7F2 !important; }
  #appView .jn-step.is-open > .jn-step-head { background:#FAF1E1 !important; }
  #appView .jn-step-head:focus-visible { outline:2px solid #9A6A2E; outline-offset:-2px; }
  #appView .jn-rail { display:flex; flex-direction:column; align-items:center; flex:0 0 28px; padding-top:9px; }
  #appView .jn-dot { display:grid; place-items:center; flex:none; width:28px; height:28px; box-sizing:border-box; border:2px solid #E4DACA; border-radius:50%; background:#fff; color:#6F655A; font-size:12px; font-weight:700; }
  #appView .jn-dot.d { border-color:#1F5E2E; background:#1F5E2E; color:#fff; }
  #appView .jn-dot.c { border-color:#9A6A2E; color:#8A5F27; }
  #appView .jn-dot.o { border-color:#9B2F23; color:#9B2F23; }
  #appView .jn-dot.n { border-style:dashed; }
  #appView .jn-line { flex:1 1 auto; width:2px; min-height:12px; background:#EFE9DD; }
  #appView .jn-step:last-child .jn-line { background:transparent; }
  /* Bước đang làm "đang chạy" (như thanh 7 bước Visa, Chủ dự án 05/11): vòng sáng lan từ chấm (quá hạn: đỏ) + vệt sáng chạy xuống đường nối bước kế */
  #appView .jn-dot.c { animation:jn-glow 1.8s ease-out infinite; }
  #appView .jn-dot.o { animation:jn-glow-bad 1.8s ease-out infinite; }
  #appView .jn-step:not(:last-child) .jn-dot:is(.c, .o) + .jn-line { width:3px; border-radius:2px; background:#EFE2CC linear-gradient(180deg, transparent, #9A6A2E 50%, transparent) no-repeat; background-size:100% 45%; animation:jn-flow 1.6s linear infinite; }
  @keyframes jn-glow { 0% { box-shadow:0 0 0 0 rgba(154,106,46,.6); } 70% { box-shadow:0 0 0 10px rgba(154,106,46,0); } 100% { box-shadow:0 0 0 0 rgba(154,106,46,0); } }
  @keyframes jn-glow-bad { 0% { box-shadow:0 0 0 0 rgba(155,47,35,.5); } 70% { box-shadow:0 0 0 10px rgba(155,47,35,0); } 100% { box-shadow:0 0 0 0 rgba(155,47,35,0); } }
  @keyframes jn-flow { from { background-position:0 -80%; } to { background-position:0 180%; } }
  @media (prefers-reduced-motion:reduce) { #appView .jn-dot:is(.c, .o), #appView .jn-dot:is(.c, .o) + .jn-line { animation:none; } }
  #appView .jn-st { flex:1 1 auto; min-width:0; padding:9px 0; }
  #appView .jn-st > b { display:block; font-size:14px; font-weight:600; line-height:1.4; color:#25211C; }
  #appView .jn-step.is-open .jn-st > b { font-weight:700; }
  #appView .jn-st-m { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:4px; }
  #appView .jn-st-m .jn-chip { height:20px; padding:0 8px; border-radius:10px; }
  #appView .jn-meta { font-size:12px; font-weight:400; color:#6F655A; }
  #appView .jn-meta.is-bad { color:#9B2F23 !important; font-weight:600; }
  #appView .jn-meta.is-ok { color:#6F655A; font-weight:400; }
  #appView .jn-ledger { display:block; margin-top:3px; font-size:12px; color:#6F655A; overflow-wrap:anywhere; }
  #appView .jn-caret { display:flex; align-items:center; flex:none; color:#6F655A; transition:transform .15s ease; }
  #appView .jn-step.is-open .jn-caret { transform:rotate(90deg); color:#8A5F27; }
  #appView .jn-panel { margin:6px 0 10px; padding:16px; border:1px solid #E4DACA; border-radius:16px; background:#fff; }
  #appView .jn-step.is-over > .jn-panel { border-color:#E8B4AE; }
  #appView .jn-panel-h { display:none; flex-wrap:wrap; align-items:center; gap:10px; }
  #appView .jn-panel-h h2 { margin:0; font-size:16px; font-weight:700; color:#25211C; }
  #appView .jn-panel-h .jn-meta { font-size:13px; }
  #appView .jn-step.is-flash > .jn-panel { animation:jnFlash 1.6s ease; }
  @keyframes jnFlash { 0%, 40% { box-shadow:0 0 0 4px rgba(154,106,46,.30); } 100% { box-shadow:0 0 0 0 rgba(154,106,46,0); } }
  #appView .jn-step-body { display:flex; flex-direction:column; gap:14px; }
  #appView .jn-src { font-size:13px; font-weight:600; color:#1F5E2E; }
  #appView .jn-src .jn-link { margin-left:6px; }
  #appView .jn-step-foot { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
  #appView .jn-step-foot .jn-hist { margin-left:auto; }
  #appView .jn-step-foot .jn-hist[open] { flex-basis:100%; margin-left:0; }
  #appView .jn-acts { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0; }
  #appView .jn-acts button, #appView .jn-acts .jn-tip button { height:36px; min-height:36px; padding:0 14px; border-radius:10px; font-size:13px; font-weight:600; }
  #appView .jn-acts button:not(.primary):not(.ghost) { border:1px solid #E4DACA; background:#fff; color:#25211C; }
  #appView .jn-acts button.primary { font-weight:700; }
  #appView .jn-tip { display:inline-flex; }
  #appView .jn-tip button:disabled { opacity:.45; cursor:not-allowed; }
  #appView .jn-hist > summary { width:fit-content; margin-left:auto; padding:6px 4px; font-size:13px; font-weight:600; color:#8A5F27; cursor:pointer; list-style:none; }
  #appView .jn-hist > summary::-webkit-details-marker { display:none; }
  #appView .jn-hist > summary::after { content:""; display:inline-block; width:7px; height:7px; margin:0 0 3px 8px; border-right:1.8px solid currentColor; border-bottom:1.8px solid currentColor; transform:rotate(45deg); }
  #appView .jn-hist[open] > summary { margin-left:0; }
  #appView .jn-hist[open] > summary::after { transform:rotate(-135deg); margin-bottom:-1px; }
  #appView .jn-hist > summary:hover { text-decoration:underline; }
  #appView .jn-hist .jn-shist { margin-top:6px; }
  #appView .jn-shist { margin:0; padding:8px 0 0; border-top:1px solid #EFE9DD; list-style:none; display:grid; gap:4px; font-size:12px; color:#6F655A; }

  /* mục có biểu mẫu: dòng xổ xuống (mũi tên phải → xuống), trạng thái cuối dòng */
  #appView .jn-xis { display:grid; gap:10px; }
  #appView .jn-xi { border:1px solid #E4DACA; border-radius:12px; background:#fff; overflow:hidden; }
  #appView .jn-xi.is-open { border-color:#B89F7E; }
  #appView .jn-xi-head { display:grid; grid-template-columns:18px minmax(0,1fr) auto; align-items:center; gap:12px; width:100%; min-height:56px; margin:0; padding:10px 16px; box-sizing:border-box; border:0; border-radius:0; background:#fff; box-shadow:none; font:inherit; font-size:14px; font-weight:600; text-align:left; color:#25211C; cursor:pointer; }
  #appView .jn-xi-head:hover { background:#FAF7F2; }
  #appView .jn-xi.is-free .jn-xi-head { grid-template-columns:18px minmax(0,1fr) auto auto; min-height:48px; padding-block:6px; cursor:default; }
  #appView .jn-xi.is-free .jn-xi-head:hover { background:#fff; }
  #appView .jn-xi-dot { justify-self:center; width:6px; height:6px; border-radius:50%; background:#E4DACA; }
  #appView .jn-xi.is-free .jn-xi-head button { height:32px; min-height:32px; padding:0 14px; border-radius:10px; font-size:13px; font-weight:600; }
  #appView .jn-xi.is-free .jn-xi-head button:not(.primary) { border:1px solid #E4DACA; background:#fff; color:#25211C; }
  #appView .jn-xi-caret { color:#6F655A; transform:rotate(-90deg); transition:transform .15s ease; }
  #appView .jn-xi.is-open .jn-xi-caret { transform:none; }
  #appView .jn-xi-t small { display:block; margin-top:1px; font-size:12px; font-weight:400; color:#6F655A; }
  #appView .jn-xi-panel { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 14px; padding:6px 16px 16px 46px; border:0; background:#fff; }
  #appView .jn-xf { display:grid; gap:6px; min-width:0; }
  #appView .jn-xf > label { margin:0; font-size:13px; font-weight:600; color:#25211C; }
  #appView .jn-xf.is-date { flex:0 1 200px; }
  #appView .jn-xf.is-date > label { white-space:nowrap; }
  #appView .jn-xf.is-text { flex:1 1 200px; }
  #appView .jn-xf.is-file { flex:1 1 220px; }
  #appView .jn-xf.is-unit { flex:0 1 200px; }
  #appView .jn-xf.is-val { flex:0 1 180px; }
  #appView .jn-xf input[type="date"], #appView .jn-xf input[type="time"], #appView .jn-xf input[type="text"] { box-sizing:border-box; width:100%; height:40px; min-height:40px; padding:0 12px; border:1px solid #E4DACA; border-radius:10px; background:#fff; color:#25211C; font:inherit; font-size:14px; }
  #appView .jn-xf input:disabled, #appView .jn-xf-unit select:disabled { background-color:#FAF7F2; color:#6F655A; }
  #appView .jn-xf-unit { display:flex; gap:6px; min-width:0; }
  #appView .jn-xf-unit select { box-sizing:border-box; flex:1 1 0; min-width:0; width:100%; height:40px; min-height:40px; padding:0 10px; border:1px solid #E4DACA; border-radius:10px; background-color:#fff; color:#25211C; font:inherit; font-size:14px; }
  #appView .jn-xf-unit input { flex:1 1 0; min-width:0; }
  #appView .jn-xf-files { display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px; min-height:40px; }
  #appView .jn-xf-up { display:inline-flex; align-items:center; height:36px; margin:0; padding:0 12px; box-sizing:border-box; border:1px solid #E4DACA; border-radius:10px; background:#fff; font-size:13px; font-weight:600; color:#25211C; cursor:pointer; white-space:nowrap; }
  #appView .jn-xf-up:hover { background:#FAF7F2; }
  #appView .jn-xf-up.is-busy { opacity:.6; pointer-events:none; }
  #appView .jn-xrs { flex:1 1 100%; display:flex; flex-wrap:wrap; gap:8px 12px; }
  #appView .jn-xr { display:inline-flex; align-items:center; gap:8px; min-height:40px; margin:0; padding:0 12px; box-sizing:border-box; border:1px solid #E4DACA; border-radius:10px; background:#fff; font-size:14px; font-weight:500; color:#25211C; cursor:pointer; }
  #appView .jn-xr:has(input:checked) { border-color:#9A6A2E; background:#FAF1E1; }
  #appView .jn-xr input { width:16px; height:16px; min-height:0; margin:0; padding:0; box-shadow:none; accent-color:#9A6A2E; }
  #appView .jn-xi-acts { display:flex; justify-content:flex-end; gap:8px; margin-left:auto; }
  #appView .jn-xi-acts button { height:36px; min-height:36px; padding:0 14px; border-radius:10px; font-size:13px; font-weight:600; white-space:nowrap; }
  #appView .jn-xi-acts button:not(.primary) { border:1px solid #E4DACA; background:#fff; color:#25211C; }
  #appView .jn-xi-acts button.primary { font-weight:700; }
  #appView .jn-xi-acts button.primary:disabled { opacity:.45; cursor:not-allowed; }
  #appView .jn-xv { box-sizing:border-box; display:flex; align-items:center; height:40px; padding:0 12px; border:1px solid #EFE9DD; border-radius:10px; background:#FAF7F2; font-size:14px; font-weight:600; color:#25211C; font-variant-numeric:tabular-nums; white-space:nowrap; }
  #appView .jn-xf.is-ok .jn-xv { color:#1F5E2E; }
  #appView .jn-xi-panel.is-list { display:grid; gap:8px; align-items:stretch; }
  #appView .jn-dep-list { border:1px solid #EFE9DD; border-radius:12px; background:#fff; overflow:hidden; }
  #appView .jn-dep-r { display:grid; grid-template-columns:100px minmax(0,1fr) 150px 120px auto; align-items:center; gap:10px; min-height:48px; padding:6px 10px 6px 14px; font-size:14px; color:#25211C; }
  #appView .jn-dep-r + .jn-dep-r { border-top:1px solid #EFE9DD; }
  #appView .jn-dep-r b { font-weight:600; text-align:right; font-variant-numeric:tabular-nums; }
  #appView .jn-dep-r .jn-chip { justify-self:start; }
  #appView .jn-dep-acts { display:flex; gap:6px; justify-content:flex-end; }
  #appView .jn-dep-acts button { height:32px; min-height:32px; padding:0 12px; border-radius:10px; font-size:13px; font-weight:600; }
  #appView .jn-dep-acts button:not(.primary) { border:1px solid #E4DACA; background:#fff; color:#25211C; }
  #appView .jn-dep-sum { margin:0; }
  /* file đã gắn: viên nền nhạt + icon tệp */
  #appView .jn-files { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
  #appView .jn-file { display:inline-flex; align-items:center; gap:8px; max-width:100%; height:36px; padding:0 6px 0 12px; box-sizing:border-box; border:1px solid #EFE9DD; border-radius:10px; background:#FAF7F2; font-size:13px; }
  #appView .jn-file::before { content:""; flex:0 0 16px; width:16px; height:16px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23946A2B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h8l4 4v12a1.5 1.5 0 01-1.5 1.5H6.5A1.5 1.5 0 015 19.5V5a1.5 1.5 0 011.5-1.5zM14.5 3.5V8h4'/%3E%3C/svg%3E") no-repeat center; }
  #appView .jn-file a { color:#8A5F27; font-weight:600; text-decoration:none; overflow-wrap:anywhere; }
  #appView .jn-file a:hover { text-decoration:underline; }
  #appView .jn-file.is-add { border:1px solid #E4DACA; background:#fff; color:#25211C; font-weight:600; cursor:pointer; padding:0 12px; }
  #appView .jn-file.is-add::before { content:none; }
  #appView .jn-file.is-add:hover { background:#FAF7F2; }
  #appView .jn-file.is-busy { opacity:.55; pointer-events:none; }
  #appView .jn-x { display:grid; place-items:center; min-width:0; min-height:0; width:26px; height:26px; padding:0; margin:0; border:0; border-radius:8px; background:none; color:#6F655A; font-size:16px; line-height:1; box-shadow:none; cursor:pointer; }
  #appView .jn-x:hover { background:#FBE7E5; color:#9B2F23; }
  #appView .jn-warnbox { margin:0; padding:10px 14px; border:0; border-radius:12px; background:#FFF2E0; color:#8A4B0C; font-size:13px; font-weight:600; }
  #appView .jn-warnbox b { display:block; }
  #appView .jn-vconf { display:flex; align-items:flex-start; gap:8px; margin:6px 0 0; font-size:13px; font-weight:600; color:#8A4B0C; cursor:pointer; text-align:left; justify-content:flex-start; }
  #appView .jn-vconf input { width:16px; height:16px; min-width:16px; min-height:0; margin:2px 0 0; padding:0; accent-color:#9A6A2E; box-shadow:none; }
  /* bước Visa: thanh 7 bước + thông tin chính */
  #appView .jn-vf { display:grid; gap:14px; padding:16px; border:1px solid #E4DACA; border-radius:12px; background:#fff; }
  #appView .jn-vf-bar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:0; margin:0; padding:0; list-style:none; }
  #appView .jn-vf-bar li { position:relative; display:grid; justify-items:center; gap:6px; text-align:center; }
  #appView .jn-vf-bar li + li::before { content:""; position:absolute; top:13px; right:calc(50% + 15px); left:calc(-50% + 15px); height:2px; background:#EFE9DD; }
  #appView .jn-vf-bar li.is-done::before, #appView .jn-vf-bar li.is-cur::before { background:#1F5E2E; }
  #appView .jn-vf-dot { display:grid; place-items:center; width:28px; height:28px; box-sizing:border-box; border:2px solid #E4DACA; border-radius:50%; background:#fff; font-size:12px; font-weight:700; color:#6F655A; }
  #appView .jn-vf-bar li.is-done .jn-vf-dot { border-color:#1F5E2E; background:#1F5E2E; color:#fff; }
  #appView .jn-vf-bar li.is-cur .jn-vf-dot { border-color:#9A6A2E; background:#fff; color:#8A5F27; }
  #appView .jn-vf-l { font-size:12px; font-weight:500; line-height:1.3; color:#6F655A; }
  #appView .jn-vf-bar li.is-cur .jn-vf-l { font-weight:700; color:#25211C; }
  #appView .jn-vf-facts { display:flex; flex-wrap:wrap; align-items:center; gap:10px 28px; padding-top:14px; border-top:1px solid #EFE9DD; }
  #appView .jn-vf-f { display:grid; gap:2px; }
  #appView .jn-vf-f span { font-size:13px; font-weight:500; color:#6F655A; }
  #appView .jn-vf-f b { font-size:14px; font-weight:700; color:#25211C; font-variant-numeric:tabular-nums; }
  #appView .jn-vf-f em { font-style:normal; color:#9B2F23; }
  #appView .jn-vf-acts { display:flex; gap:8px; margin-left:auto; }
  #appView .jn-vf-acts button, #appView .jn-vf-link button, #appView .jn-visa button, #appView .jn-compose button { height:36px; min-height:36px; padding:0 14px; border-radius:10px; font-size:13px; font-weight:600; }
  #appView :is(.jn-vf-acts, .jn-vf-link, .jn-visa, .jn-compose, .jn-next) button:not(.primary) { border:1px solid #E4DACA; background:#fff; color:#25211C; }
  #appView .jn-vf-note { margin:0; font-size:14px; color:#25211C; }
  #appView .jn-vf-note.is-ok { color:#1F5E2E; font-weight:600; }
  #appView .jn-vf-link { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; padding:10px 12px; border:0; border-radius:10px; background:#FAF7F2; font-size:14px; }
  #appView .jn-visa { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  #appView .jn-compose { display:flex; }
  /* checklist thường, thêm việc, ghi chú, giao người */
  #appView .jn-ck { display:grid; gap:2px; }
  #appView .jn-ck label { display:flex; align-items:flex-start; gap:10px; margin:0; padding:7px 8px; border-radius:10px; font-size:14px; font-weight:500; color:#25211C; cursor:pointer; }
  #appView .jn-ck label:hover { background:#FAF7F2; }
  #appView .jn-ck label input { margin:2px 0 0; flex:0 0 auto; }
  #appView .jn-ck label input:disabled { cursor:not-allowed; }
  #appView .jn-ck label.is-done > span { color:#6F655A; text-decoration:line-through; }
  #appView .jn-ck label small { display:block; font-size:12px; color:#6F655A; text-decoration:none; }
  #appView .jn-addline, #appView .jn-noteb, #appView .jn-assign { display:flex; gap:8px; align-items:flex-start; flex-wrap:wrap; }
  #appView .jn-addline input { flex:1 1 220px; min-width:0; max-width:420px; height:36px; min-height:36px; border:1px solid #E4DACA; border-radius:10px; }
  #appView .jn-noteb textarea { flex:1 1 280px; min-width:0; min-height:60px; border:1px solid #E4DACA; border-radius:10px; resize:vertical; font:inherit; font-size:14px; }
  #appView .jn-noteb button[hidden] { display:none; }
  #appView .jn-assign select { height:36px; min-height:36px; max-width:280px; border:1px solid #E4DACA; border-radius:10px; }
  #appView :is(.jn-addline, .jn-noteb, .jn-assign) button { height:36px; min-height:36px; padding:0 14px; border-radius:10px; font-size:13px; font-weight:600; }
  #appView .jn-addbtn { align-self:flex-start; margin:2px 0 0 8px; font-size:13px; font-weight:600; }
  #appView .jn-note { margin:0; padding:10px 12px; border-radius:10px; background:#FAF7F2; font-size:14px; white-space:pre-wrap; }
  /* bước 15: kế hoạch lần sau */
  #appView .jn-next { display:grid; gap:10px; margin:0; padding:14px 16px; border:1px solid #E4DACA; border-radius:12px; background:#fff; }
  #appView .jn-next-row { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; }
  #appView .jn-next-f { display:grid; gap:6px; margin:0; font-size:13px; font-weight:600; color:#25211C; }
  #appView .jn-next-f.is-wide { flex:1 1 220px; }
  #appView .jn-next-f.is-wide input { width:100%; }
  #appView .jn-next input { box-sizing:border-box; height:40px; min-height:40px; padding:0 12px; border:1px solid #E4DACA; border-radius:10px; background:#fff; color:#25211C; font:inherit; font-size:14px; }
  #appView .jn-next input::placeholder { color:#6F655A; font-weight:400; opacity:1; }
  #appView .jn-next .btn-row { margin:0; }
  #appView .jn-next button { height:40px; min-height:40px; padding:0 16px; border-radius:10px; font-size:13px; font-weight:600; }
  /* nhật ký */
  #appView .jn-history { margin-top:0; padding:18px 20px !important; border:1px solid #E4DACA !important; border-radius:16px !important; box-shadow:none !important; }
  #appView .jn-history > h2 { margin:0 0 6px !important; font-size:16px; font-weight:700; }
  #appView .jn-log { display:grid; gap:0; margin:0; padding:0; list-style:none; }
  #appView .jn-log li { padding:8px 0; border-top:1px solid #EFE9DD; font-size:14px; font-weight:500; color:#25211C; line-height:1.45; }
  #appView .jn-log li:first-child { border-top:0; }
  #appView .jn-when { color:#6F655A; font-size:12px; white-space:nowrap; }
  #appView .jn-why { color:#6F655A; font-size:13px; }

  /* ---- Mẫu hành trình ---- */
  #appView .jn-tpl { display:flex; flex-direction:column; gap:12px; }
  #appView .jn-tpl-head { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
  #appView .jn-tpl-head h2 { margin:0; font-size:16px; font-weight:700; color:#25211C; }
  #appView .jn-tpl-meta { font-size:13px; color:#6F655A; }
  #appView .jn-tpl-head select { width:auto; min-width:150px; height:36px; min-height:36px; padding:0 10px; border:1px solid #E4DACA; border-radius:10px; background-color:#fff; color:#25211C; font:inherit; font-size:13px; font-weight:600; }
  #appView .jn-tpl-table { min-width:1240px; table-layout:fixed; }
  #appView .jn-tpl-table th:nth-child(1) { width:36px; }
  #appView .jn-tpl-table th:nth-child(2) { width:250px; }
  #appView .jn-tpl-table th:nth-child(3) { width:150px; }
  #appView .jn-tpl-table th:nth-child(4) { width:200px; }
  #appView .jn-tpl-table th:nth-child(5) { width:130px; }
  #appView .jn-tpl-table th:nth-child(7) { width:70px; }
  #appView .jn-tpl-table th:nth-child(8) { width:112px; }
  #appView .jn-tcard .jn-tpl-table td { padding:14px 12px !important; }
  #appView .jn-tcard .jn-tpl-table td.jn-tpl-no { text-align:right !important; color:#6F655A; line-height:40px; padding-right:8px !important; }
  #appView .jn-tpl-table select, #appView .jn-tpl-table input[type="text"], #appView .jn-tpl-table input[type="number"], #appView .jn-tpl-table textarea { box-sizing:border-box; border:1px solid #E4DACA; border-radius:10px; background-color:#fff; color:#25211C; font:inherit; font-size:14px; }
  #appView .jn-tpl-table select, #appView .jn-tpl-table input[type="text"] { width:100%; height:40px; min-height:40px; padding:0 12px; }
  #appView .jn-tpl-table select { padding:0 10px; }
  #appView .jn-tpl-table tr.is-new td { background:#FAF1E1; }
  #appView .jn-tpl-label input { font-weight:600; }
  #appView .jn-tpl-label .jn-small { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; }
  #appView .jn-tpl-label .jn-chip { height:20px; padding:0 8px; border-radius:10px; }
  #appView .jn-tpl-off { display:flex; align-items:center; gap:8px; margin:8px 0 0; font-size:13px; font-weight:500; color:#6F655A; }
  #appView .jn-tpl-off input[type="number"] { width:72px; height:36px; min-height:36px; padding:0 10px; text-align:right; }
  #appView .jn-tpl-ck textarea { width:100%; min-height:56px; padding:8px 12px; font-size:13px; line-height:1.45; resize:vertical; }
  #appView .jn-tcard .jn-tpl-table td.c { line-height:40px; }
  #appView .jn-tpl-table input[type="checkbox"] { width:18px; height:18px; min-height:0; margin:0; vertical-align:middle; box-shadow:none; accent-color:#9A6A2E; }
  #appView .jn-tpl-mv { white-space:nowrap; }
  #appView .jn-tpl-mv button { width:32px; min-width:32px; height:32px; min-height:32px; padding:0; border:0 !important; border-radius:10px; background:transparent; color:#25211C; font-size:15px; box-shadow:none; }
  #appView .jn-tpl-mv button:hover:not(:disabled) { background:#FAF7F2; }
  #appView .jn-tpl-mv button:disabled { color:#E4DACA; opacity:1; }
  #appView .jn-tpl-mv button.jn-rm { color:#9B2F23; font-size:17px; }
  #appView .jn-tpl-table select:disabled, #appView .jn-tpl-table input:disabled, #appView .jn-tpl-table textarea:disabled { border-color:#EFE9DD; background-color:#FAF7F2; color:#6F655A; opacity:1; }
  #appView .jn-tpl-acts { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0; padding:14px 16px; border-top:1px solid #EFE9DD; }
  #appView .jn-tpl-acts button { display:inline-flex; align-items:center; gap:8px; height:40px; min-height:40px; padding:0 16px; border-radius:10px; font-size:14px; font-weight:600; }
  #appView .jn-tpl-acts button:not(.primary) { border:1px solid #E4DACA; background:#fff; color:#25211C; }
  #appView .jn-tpl-acts button.primary { font-weight:700; }
  #appView .jn-tpl-hist { display:flex; flex-direction:column; gap:12px; margin-top:20px; }
  #appView .jn-tpl-hist > h2 { margin:0; font-size:16px; font-weight:700; color:#25211C; }
  #appView .jn-tpl-hist .hub-table { min-width:860px; }
  #appView .jn-tpl-hist .hub-table td { vertical-align:middle !important; }

  /* trống */
  #appView .jn-empty { display:flex; align-items:center; justify-content:space-between; gap:10px 16px; flex-wrap:wrap; margin:16px; padding:16px 18px; border:0; border-radius:12px; background:#FAF7F2; }
  #appView .jn-empty p { margin:0; font-size:14px; font-weight:500; color:#6F655A; }
  #appView .jn-empty button { height:36px; min-height:36px; padding:0 14px; border-radius:10px; font-size:13px; font-weight:600; }
  #appView .jn-ctab .jn-empty { margin:0; }

  /* ---- popup tạo hành trình (4.7): rộng 880, chân cố định Hủy + Tạo ---- */
  #appView dialog.jn-cdlg { width:min(880px, calc(100vw - 24px)); max-height:min(840px, calc(100vh - 48px)); padding:0; border:0; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(57,46,34,.12); color:#25211C; }
  #appView dialog.jn-cdlg::backdrop { background:rgba(37,33,28,.35); }
  #appView dialog.jn-cdlg[open] { display:flex; flex-direction:column; overflow:hidden; font-size:14px; }
  #appView .jn-cdlg-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px 16px 24px; border-bottom:1px solid #EFE9DD; background:#fff; }
  #appView .jn-cdlg-head h2 { margin:0; font-size:17px; font-weight:700; color:#25211C; }
  #appView .jn-cdlg-x { display:grid; place-items:center; width:40px; height:40px; min-height:40px; padding:0; border:0 !important; border-radius:10px; background:none; box-shadow:none; font-size:22px; line-height:1; color:#6F655A; cursor:pointer; }
  #appView .jn-cdlg-x:hover { background:#F5F0E8; color:#25211C; }
  #appView .jn-form { display:grid; gap:18px; max-width:1180px; padding:20px 24px !important; grid-template-columns:minmax(0,1fr); align-items:start; border:1px solid #E4DACA !important; border-radius:16px !important; }
  #appView .jn-form-l, #appView .jn-form-r { display:flex; flex-direction:column; gap:18px; min-width:0; }
  #appView .jn-cdlg .jn-form { flex:1 1 auto; min-height:0; overflow:auto; max-width:none; margin:0; padding:20px 24px 24px !important; gap:24px; border:0 !important; border-radius:0 !important; box-shadow:none !important; background:none !important; }
  #appView .jn-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
  #appView .jn-field > label, #appView .jn-lbl { margin:0; font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; color:#25211C; }
  #appView .jn-field input[type="text"], #appView .jn-field input[type="search"], #appView .jn-field input[type="date"] { box-sizing:border-box; width:100%; height:40px; min-height:40px; max-width:none; padding:0 12px; border:1px solid #E4DACA; border-radius:10px; background:#fff; font:inherit; font-size:14px; font-weight:500; color:#25211C; }
  #appView .jn-field input::placeholder { font-weight:400; color:#6F655A; }
  #appView .jn-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; }
  #appView .jn-grid .jn-field.is-full { grid-column:1 / -1; }
  #appView .jn-ac { position:relative; max-width:none; }
  #appView .jn-ac > svg { position:absolute; left:12px; top:12px; color:#6F655A; pointer-events:none; }
  #appView .jn-ac input[type="search"] { padding-left:36px; }
  #appView .jn-pop { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:30; max-height:240px; overflow:auto; padding:6px; border:1px solid #EFE9DD; border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(57,46,34,.12); }
  #appView .jn-pop button { display:block; width:100%; min-height:0; margin:0; padding:8px 12px; border:0 !important; border-radius:8px; background:none; text-align:left; font:inherit; color:#25211C; box-shadow:none; cursor:pointer; }
  #appView .jn-pop button small { display:block; font-size:12px; color:#6F655A; }
  #appView .jn-pop button.is-active, #appView .jn-pop button:hover { background:#FAF1E1; }
  #appView .jn-pop-empty { padding:8px 12px; font-size:13px; color:#6F655A; }
  #appView .jn-cdlg .jn-small { margin:0; font-size:13px; font-weight:400; line-height:1.45; color:#6F655A; }
  #appView .jn-orders { display:flex; flex-direction:column; gap:8px; }
  #appView .jn-order { display:flex; align-items:flex-start; gap:12px; margin:0; padding:12px 14px; border:1px solid #EFE9DD; border-radius:12px; background:#FAF7F2; font-size:14px; font-weight:500; cursor:pointer; }
  #appView .jn-order:hover { border-color:#E4DACA; }
  #appView .jn-order.is-on { border-color:#B89F7E; background:#FAF1E1; }
  #appView .jn-order input { margin:1px 0 0; }
  #appView .jn-order b { display:block; font-size:14px; font-weight:700; color:#25211C; }
  #appView .jn-order small { display:block; margin-top:2px; font-size:13px; font-weight:400; line-height:1.45; color:#6F655A; }
  #appView .jn-order.is-used { cursor:not-allowed; }
  #appView .jn-order.is-used b { color:#6F655A; }
  #appView .jn-order.is-used:hover { border-color:#EFE9DD; }
  #appView .jn-order small.jn-used { color:#8A4B0C; font-weight:600; }
  #appView .jn-svc-rows { border:1px solid #E4DACA; border-radius:12px; overflow:hidden; }
  #appView .jn-svc-row { display:grid; grid-template-columns:minmax(0,1fr) 96px 40px; align-items:center; gap:0; min-height:52px; padding:0 8px 0 14px; font-size:14px; font-weight:600; line-height:1.4; color:#25211C; }
  #appView .jn-svc-row + .jn-svc-row { border-top:1px solid #EFE9DD; }
  #appView .jn-svc-row.is-head { min-height:38px; background:#FAF7F2; font-size:13px; font-weight:600; color:#6F655A; }
  #appView .jn-svc-row.is-head > span:nth-child(2) { text-align:right; padding-right:10px; }
  #appView .jn-svc-row input[type="number"] { justify-self:end; margin-right:10px; box-sizing:border-box; width:72px; height:36px; min-height:36px; padding:0 10px; border:1px solid #E4DACA; border-radius:10px; background:#fff; font:inherit; font-size:14px; font-weight:500; text-align:right; appearance:textfield; -moz-appearance:textfield; }
  #appView .jn-svc-row input[type="number"]::-webkit-inner-spin-button, #appView .jn-svc-row input[type="number"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
  #appView .jn-svc-row .jn-x { justify-self:end; width:32px; height:32px; border-radius:10px; font-size:17px; }
  #appView .jn-svc-foot { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; margin-top:4px; }
  #appView .jn-svc-foot .jn-link { height:32px; font-size:13px; font-weight:600; }
  #appView .jn-svc-foot input { box-sizing:border-box; flex:1 1 200px; height:40px; min-height:40px; padding:0 12px; border:1px solid #E4DACA; border-radius:10px; font:inherit; font-size:14px; }
  #appView .jn-svc-foot button.sm:not(.jn-link) { height:40px; min-height:40px; padding:0 14px; border-radius:10px; }
  #appView .jn-cdlg-foot { flex:none; display:flex; justify-content:flex-end; align-items:center; gap:8px; padding:14px 24px; border-top:1px solid #EFE9DD; background:#fff; }
  #appView .jn-cdlg-foot button { height:40px; min-height:40px; padding:0 18px; border-radius:10px; font-size:14px; font-weight:600; }
  #appView .jn-cdlg-foot button.ghost { border:1px solid #E4DACA; background:#fff; color:#25211C; }
  #appView .jn-cdlg-foot button.ghost:hover { background:#FAF7F2; }
  #appView .jn-cdlg-foot button.primary { font-weight:700; }
  @media (min-width:1000px) {
    #appView .jn-form { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:24px; }
  }

  /* ---- tab Hành trình trong hồ sơ khách ---- */
  #appView .jn-ctab { padding:16px 18px 18px !important; border:1px solid #E4DACA !important; border-radius:16px !important; box-shadow:none !important; }
  #appView .jn-ctab .srp-cardhead { margin-bottom:12px; padding-bottom:0; border-bottom:0; }
  #appView .jn-ctab .srp-cardhead h2 { display:flex; align-items:center; gap:10px; margin:0; font-size:16px; font-weight:700; color:#25211C; }
  #appView .jn-ctab .tbl-wrap { border:1px solid #E4DACA; border-radius:12px; overflow:hidden; background:#fff; }
  #appView .jn-ctab .hub-table td { vertical-align:middle !important; }

  /* nút trên tóm tắt Phiếu ĐKDV */
  #appView .srp-actions button.jn-dk-link { max-width:320px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#8A5F27; }

  @media (max-width:1100px) {
    #appView .jn-ancs { grid-template-columns:repeat(3,minmax(0,1fr)); }
    #appView .jn-anc:nth-child(3n+1) { border-left:0; }
    #appView .jn-anc:nth-child(n+4) { border-top:1px solid #EFE9DD; }
  }
  @media (max-width:760px) {
    #appView .jn-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #appView .jn-tile > b { font-size:22px; }
    #appView .jn-side { max-width:none; flex-basis:100%; }
    #appView .jn-side > h2 { padding-top:0; }
    #appView .jn-stat-range { margin-left:0; }
    #appView .jn-search { flex:1 1 100%; max-width:none; }
    #appView .jn-bar select.jn-pick { flex:1 1 140px; max-width:none; }
    #appView .jn-bar .hh-month { flex:1 1 auto; justify-content:space-between; }
    #appView .jn-facts { grid-template-columns:1fr; }
    #appView .jn-fact, #appView button.jn-fact { border-left:0 !important; border-top:1px solid #EFE9DD !important; }
    #appView .jn-fact:first-child { border-top:0 !important; }
    #appView .jn-ancs { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #appView .jn-anc:nth-child(n) { border-left:0; border-top:1px solid #EFE9DD; }
    #appView .jn-anc:nth-child(2n) { border-left:1px solid #EFE9DD; }
    #appView .jn-anc:nth-child(-n+2) { border-top:0; }
    #appView .jn-tl { padding:6px; }
    #appView .jn-step-head { gap:8px; padding:0 6px !important; }
    #appView .jn-panel { padding:12px; }
    #appView .jn-xi-panel { padding:6px 12px 14px; }
    #appView .jn-vf-bar { grid-template-columns:1fr; gap:6px; }
    #appView .jn-vf-bar li { grid-template-columns:28px 1fr; justify-items:start; text-align:left; }
    #appView .jn-vf-bar li + li::before { display:none; }
    #appView .jn-dep-r { grid-template-columns:1fr auto; }
    #appView .jn-dep-acts { grid-column:1 / -1; }
    #appView .jn-next-f, #appView .jn-next-f input { width:100%; }
    #appView .jn-empty { margin:12px; }
    #appView .jn-cdlg .jn-form { padding:16px !important; }
    #appView .jn-head-act { width:100%; }
  }
  @media (max-width:420px) { #appView .jn-grid { grid-template-columns:1fr; } }
}

/* ---- máy tính (≥ 901px): chi tiết hành trình hai cột — danh sách 15 bước bên trái, bước đang mở bên phải ----
   Mỗi <li class="jn-step"> thành display:contents: dòng bước xếp ở cột 1, khung bước đang mở (.jn-panel) chiếm cột 2 từ hàng 1;
   hàng cuối 1fr nhận phần cao dư của khung để các dòng bước không giãn ra. */
@media screen and (min-width:901px) {
  #appView .jn-tl { display:grid; grid-template-columns:minmax(300px,380px) minmax(0,1fr); grid-template-rows:repeat(var(--n,15),auto) minmax(0,1fr); column-gap:20px; align-items:start; padding:0; border:0; border-radius:0; background:none; }
  #appView .jn-tl::before { content:""; grid-column:1; grid-row:1 / span var(--n,15); align-self:stretch; margin:-8px 0; border:1px solid #E4DACA; border-radius:16px; background:#fff; }
  #appView .jn-tl-card { padding:8px 0; }
  #appView .jn-step { display:contents; }
  #appView .jn-step > .jn-step-head { grid-column:1; grid-row:var(--r,auto); position:relative; z-index:1; width:auto; margin:0 8px !important; }
  #appView .jn-step:first-child > .jn-step-head { margin-top:0 !important; }
  #appView .jn-step > .jn-panel { grid-column:2; grid-row:1 / -1; align-self:start; display:flex; flex-direction:column; gap:14px; margin:-8px 0 0; padding:20px; }
  #appView .jn-panel-h { display:flex; }
  #appView .jn-caret, #appView .jn-ledger { display:none; }
  #appView .jn-step.is-open > .jn-step-head .jn-st > b { font-weight:700; }
  /* biểu mẫu trong cột phải: lưới 3 cột, ô file 2 cột, nút xuống hàng riêng bên phải */
  #appView .jn-xis .jn-xi-panel[class]:not(.is-list) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:12px 14px; }
  #appView .jn-xis .jn-xi-panel[class]:not(.is-list) > .jn-xf { grid-column:auto; }
  #appView .jn-xis .jn-xi-panel[class]:not(.is-list) > .jn-xf.is-file { grid-column:span 2; }
  #appView .jn-xis .jn-xi-panel[class]:not(.is-list) > .jn-xrs { grid-column:1 / -1; }
  #appView .jn-xis .jn-xi-panel[class]:not(.is-list) > .jn-xi-acts { grid-column:1 / -1; justify-self:end; margin:2px 0 0; }
  #appView .jn-xis .jn-xi-panel .jn-xf-files { flex-wrap:wrap; }
  #appView .jn-xis .jn-xi-panel .jn-file { min-width:0; max-width:100%; }
  #appView .jn-xis .jn-xi-panel .jn-file a { display:block; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
}
@media screen and (min-width:901px) and (max-width:1199px) {
  #appView .jn-tl { grid-template-columns:minmax(260px,300px) minmax(0,1fr); }
  #appView .jn-xis .jn-xi-panel[class]:not(.is-list) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #appView .jn-xis .jn-xi-panel[class]:not(.is-list) > .jn-xf.is-file { grid-column:1 / -1; }
  #appView .jn-dep-r { grid-template-columns:90px minmax(0,1fr) 130px; row-gap:6px; padding-block:10px; }
  #appView .jn-dep-r .jn-chip { grid-column:1 / 2; }
  #appView .jn-dep-r .jn-dep-acts { grid-column:2 / -1; }
  #appView .jn-xi-panel { padding-left:16px; }
}

/* Hộp thoại lý do / xác nhận của Hành trình (gắn vào body). */
dialog.jn-dlg { width:min(480px, calc(100vw - 24px)); padding:0; border:0; border-radius:16px; box-shadow:0 8px 24px rgba(57,46,34,.12); font-family:'Plus Jakarta Sans', system-ui, sans-serif; color:#25211C; }
dialog.jn-dlg::backdrop { background:rgba(37,33,28,.35); }
dialog.jn-dlg form { display:grid; gap:14px; padding:20px 24px; }
dialog.jn-dlg header h2 { margin:0; font-size:17px; font-weight:700; color:#25211C; overflow-wrap:anywhere; }
dialog.jn-dlg header p { margin:6px 0 0; font-size:13px; line-height:1.5; color:#6F655A; }
dialog.jn-dlg .jn-dlg-f { display:grid; gap:6px; font-size:13px; font-weight:600; color:#25211C; }
dialog.jn-dlg textarea { width:100%; min-height:76px; box-sizing:border-box; padding:9px 12px; border:1px solid #E4DACA; border-radius:10px; font:inherit; font-size:14px; font-weight:500; resize:vertical; }
dialog.jn-dlg textarea:focus { border-color:#9A6A2E; outline:none; box-shadow:0 0 0 3px #9a6a2e1f; }
dialog.jn-dlg .jn-dlg-err { margin:-4px 0 0; color:#9B2F23; font-size:13px; font-weight:600; }
dialog.jn-dlg .btn-row { display:flex; justify-content:flex-end; gap:8px; margin:4px 0 0; }
dialog.jn-dlg .btn-row button { height:40px; min-height:40px; padding:0 18px; border-radius:10px; font:inherit; font-size:14px; font-weight:600; }
dialog.jn-dlg .btn-row button.ghost { border:1px solid #E4DACA; background:#fff; color:#25211C; }
dialog.jn-dlg .btn-row button.ghost:hover { background:#FAF7F2; }
dialog.jn-dlg .btn-row button.primary { font-weight:700; }
dialog.jn-dlg .btn-row button.danger { background:#9B2F23; border-color:#9B2F23; color:#fff; font-weight:700; }
dialog.jn-dlg .btn-row button.danger:hover { background:#7F261C; border-color:#7F261C; }

/* ---- khung chip của hàng công cụ: máy tính không đổi bố cục (display:contents) ---- */
#appView .jn-chips { display:contents; }
@media screen and (min-width:901px) {
  #appView .jn-head-act .ui-more.jn-more-m { display:none; }
}

/* ==========================================================================
   Điện thoại / màn hẹp (≤ 900px), theo CRM mobile (MOBILE-UI-GUIDELINE): đầu màn một dòng [←] · tiêu đề · 1 nút đặc + ⋯,
   bộ lọc một hàng chip cuộn ngang, bảng danh sách → thẻ theo dòng, popup toàn màn, ô nhập 16px, vùng chạm ≥ 44px.
   ========================================================================== */
@media screen and (max-width:900px) {
  /* đầu màn */
  #appView .hub-heading:has(> .jn-head-act), #appView .hub-heading.jn-has-back { display:flex; flex-wrap:nowrap; align-items:center; gap:8px; }
  #appView :is(#workWorkspace, #customerWorkspace, #rpRoot) .hub-heading > div:has(> .jn-count) { flex-wrap:nowrap; min-width:0; gap:8px; }
  #appView :is(#workWorkspace, #customerWorkspace, #rpRoot) .hub-heading.jn-has-back > div:first-child { flex:1 1 auto; flex-direction:row; align-items:center; min-width:0; gap:2px; }
  #appView .hub-heading button.jn-back { display:grid; place-items:center; flex:0 0 40px; align-self:center; width:40px; height:40px; min-height:40px; margin:0 0 0 -10px; padding:0; border-radius:10px; color:#25211C; font-size:20px; font-weight:500; line-height:1; text-decoration:none; }
  #appView .hub-heading button.jn-back:hover { background:#FAF7F2; color:#25211C; text-decoration:none; }
  #appView .hub-heading .jn-back-l { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  #appView .hub-heading h1.jn-h1 { flex:1 1 auto; min-width:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:17px; line-height:1.3; }
  #appView .hub-heading > .jn-head-act { width:auto; flex:none; gap:6px; margin-left:auto; }
  #appView .jn-head-act button:not(.primary):not(.ui-more) { display:none; }
  #appView .jn-head-act button.primary { height:40px; min-height:40px; padding:0 14px; gap:6px; }
  #appView .jn-tabs { gap:22px; margin:0 -12px 14px; padding:0 12px; }
  #appView .jn-tabs button.jn-tab { min-height:44px; padding:12px 0 11px; }

  /* Tổng hợp: ô số lưới 2 cột (ô lẻ cuối chiếm cả hàng), Việc hôm nay trước Thống kê */
  #appView .jn-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:16px; }
  #appView .jn-tile:last-child:nth-child(odd) { grid-column:1 / -1; }
  #appView .jn-tile, #appView button.jn-tile { gap:4px; padding:12px 14px; }
  #appView .jn-tile > b { font-size:22px; }
  #appView .jn-two { flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:20px; }
  #appView .jn-side { order:-1; flex:none; max-width:none; }
  #appView .jn-side > h2, #appView .jn-two.is-solo .jn-side > h2 { padding-top:0; font-size:15px; }
  #appView .jn-todo-it { min-height:56px; padding:10px 12px 10px 14px; }
  #appView .jn-todo-it button.jn-open { height:36px; min-height:36px; }
  #appView .jn-stats { flex:none; gap:12px; padding:16px !important; }
  #appView .jn-stats .srp-cardhead h2 { font-size:15px; }
  #appView .jn-stat-range { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:8px; width:100%; margin-left:0; }
  #appView .jn-stat-range label { flex-direction:column; align-items:stretch; gap:4px; font-size:12px; white-space:nowrap; }
  #appView .jn-stat-range input { width:100%; min-width:0; height:44px; min-height:44px; padding:0 8px; font-size:16px; }
  #appView .jn-stat-range button { height:44px; min-height:44px; padding:0 14px; }
  #appView .jn-stats-h h3 { font-size:14px; }
  #appView .jn-stats-h span { font-size:12px; }
  #appView .jn-stat-table { min-width:640px; }
  #appView .jn-stat-table th:nth-child(2) { width:170px; min-width:170px; }
  #appView .jn-stats .hub-table td:nth-child(2) { white-space:normal; }

  /* hàng công cụ: ô tìm cả hàng; dưới là tháng gọn + hàng chip cuộn ngang */
  #appView .hh-bar.jn-bar { flex-wrap:wrap; gap:8px; margin:0 0 12px; }
  #appView .jn-search { order:-1; flex:1 1 100%; max-width:none; height:44px; }
  #appView .jn-search input[type="search"] { height:42px; font-size:16px; }
  #appView .jn-bar .hh-month { flex:none; height:36px; border-radius:18px; }
  #appView .jn-bar .hh-month button { width:32px; min-width:32px; height:34px; min-height:34px; }
  #appView .jn-bar .hh-month strong { padding:0 2px; font-size:13px; }
  #appView .jn-chips { display:flex; flex:1 1 0; flex-wrap:nowrap; align-items:center; gap:8px; min-width:0; margin-right:-12px; padding-right:12px; overflow-x:auto; scrollbar-width:none; }
  #appView .jn-chips::-webkit-scrollbar { display:none; }
  #appView .jn-chips > * { flex:0 0 auto; }
  #appView .jn-bar select.jn-pick { flex:0 0 auto; max-width:220px; font-size:16px; font-weight:500; }
  #appView .jn-bar button.jn-quick, #appView .jn-bar #jnClear { flex:0 0 auto; }

  /* danh sách hành trình (và hành trình của một khách): bảng → thẻ theo dòng */
  #appView .jn-main { overflow:visible; border:0 !important; border-radius:0 !important; background:none; }
  #appView .jn-main .tbl-wrap { overflow:visible; }
  #appView .jn-main .jn-table:not(.jn-ctable) { display:block; width:100%; min-width:0; }
  #appView .jn-main .jn-table:not(.jn-ctable) thead { display:none; }
  #appView .jn-main .jn-table:not(.jn-ctable) tbody { display:flex; flex-direction:column; gap:8px; }
  #appView .jn-main .jn-table:not(.jn-ctable) tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; grid-template-areas:"cust cust open" "trip trip trip" "prog prog prog" "step step step" "money visa visa"; gap:10px 12px; padding:14px 14px 14px 16px; border:1px solid #E4DACA; border-radius:16px; background:#fff; }
  #appView .jn-main .jn-table:not(.jn-ctable) tbody tr td { display:block; min-width:0 !important; max-width:none; padding:0 !important; border:0 !important; background:transparent !important; text-align:left !important; }
  #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-cust { grid-area:cust; align-self:center; }
  #appView .jn-main .jn-table:not(.jn-ctable) td.jn-trip { grid-area:trip; }
  #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-prog { grid-area:prog; display:flex; align-items:center; gap:10px; }
  #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-prog .jn-prog { flex:0 1 165px; margin:0; }
  #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-prog .jn-small { margin:0; }
  #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-step { grid-area:step; }
  #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-money { grid-area:money; white-space:normal; }
  #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-visa { grid-area:visa; }
  #appView :is(.jn-main .jn-table, .jn-bm .jn-btable) td .jn-chip { max-width:100%; height:auto; min-height:24px; padding:4px 10px; overflow:visible; white-space:normal; line-height:1.3; }
  #appView .jn-main .jn-table:not(.jn-ctable) td.jn-act-c { grid-area:open; width:auto; align-self:start; }
  #appView .jn-main .jn-table:not(.jn-ctable) td[data-label]::before, #appView .jn-bm .jn-btable td[data-label]::before { content:attr(data-label); display:block; margin-bottom:3px; color:#6F655A; font-size:12px; font-weight:500; }
  #appView .jn-main .jn-trip-t { font-size:14px; }
  #appView .jn-main .hub-table button.jn-row-open, #appView .jn-bm .hub-table button.jn-row-open { height:36px; min-height:36px; padding:0 14px; }
  #appView .jn-main .jn-tfoot { padding:10px 4px 0; border-top:0; }
  #appView .jn-main .jn-empty { margin:0; }
  #appView .jn-main > div > :is(.srp-empty, .hub-error, .empty) { margin:0; }

  /* Lịch khởi hành: mỗi khách một thẻ */
  #appView .jn-bm { gap:8px; margin-bottom:16px; }
  #appView .jn-bm > h2 { font-size:15px; }
  #appView .jn-bm .jn-tcard { overflow:visible; border:0 !important; border-radius:0 !important; background:none; }
  #appView .jn-bm .jn-tcard .tbl-wrap { overflow:visible; }
  #appView .jn-bm .jn-btable { display:block; width:100%; min-width:0; table-layout:auto; }
  #appView .jn-bm .jn-btable thead { display:none; }
  #appView .jn-bm .jn-btable tbody { display:flex; flex-direction:column; gap:8px; }
  #appView .jn-bm .jn-btable tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; grid-template-areas:"day day open" "cust cust open" "svc svc svc" "visa ve ve"; gap:8px 12px; padding:14px 14px 14px 16px; border:1px solid #E4DACA; border-radius:16px; background:#fff; }
  #appView .jn-bm .jn-tcard .jn-btable tbody tr td { display:block; min-width:0; padding:0 !important; border:0 !important; background:transparent !important; text-align:left !important; }
  #appView .jn-bm .jn-tcard .jn-btable td.jn-bday { grid-area:day; font-size:13px; }
  #appView .jn-bm .jn-btable td.jn-c-cust { grid-area:cust; }
  #appView .jn-bm .jn-btable td.jn-c-svc { grid-area:svc; font-size:13px; }
  #appView .jn-bm .jn-btable td.jn-c-visa { grid-area:visa; }
  #appView .jn-bm .jn-btable td.jn-c-ve { grid-area:ve; }
  #appView .jn-bm .jn-btable td.jn-act-c { grid-area:open; width:auto; align-self:center; }
  #appView .jn-bm-empty { padding:14px 16px; }

  /* Mẫu hành trình: bảng sửa được giữ cuộn ngang trong khung */
  #appView .jn-tpl-head select { height:40px; min-height:40px; font-size:16px; }
  #appView .jn-tpl-table :is(select, input[type="text"], input[type="number"], textarea) { font-size:16px; }
  #appView .jn-tpl-acts { padding:12px; }
  #appView .jn-tpl-acts button { height:44px; min-height:44px; }

  /* chi tiết: dòng chip, 4 ô thông tin 2 cột, mốc ngày cuộn ngang */
  #appView .jn-head-top { margin:0 0 12px; gap:6px; }
  #appView .jn-banner { margin-bottom:12px; }
  #appView .jn-facts { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:12px; }
  #appView .jn-facts .jn-fact, #appView .jn-facts button.jn-fact { gap:4px; padding:12px 14px; border-left:0 !important; border-top:1px solid #EFE9DD !important; }
  #appView .jn-facts .jn-fact:nth-child(-n+2) { border-top:0 !important; }
  #appView .jn-facts .jn-fact:nth-child(2n) { border-left:1px solid #EFE9DD !important; }
  #appView .jn-fact > span { font-size:12px; }
  #appView .jn-fact > b, #appView .jn-fact .jn-link { font-size:13px; }
  #appView .jn-ancs { display:flex; gap:0; margin:0 0 16px; overflow-x:auto; scrollbar-width:none; }
  #appView .jn-ancs::-webkit-scrollbar { display:none; }
  #appView .jn-ancs .jn-anc, #appView .jn-ancs .jn-anc:nth-child(n) { flex:0 0 auto; min-width:136px; padding:8px 6px 8px 14px; border-top:0; border-left:1px solid #EFE9DD; }
  #appView .jn-ancs .jn-anc:first-child { border-left:0; }
  #appView .jn-ancs .jn-anc.is-edit { min-width:170px; }
  #appView .jn-anchor { height:40px; min-height:40px; font-size:16px; }
  #appView button.jn-pen { flex-basis:36px; width:36px; height:36px; }

  /* timeline 15 bước: danh sách xổ xuống; mục biểu mẫu một cột */
  #appView .jn-step-head { min-height:48px; }
  #appView .jn-panel { padding:12px; }
  #appView .jn-xi-head { min-height:52px; padding:10px 12px; gap:10px; }
  #appView .jn-xis .jn-xi-panel, #appView .jn-xi-panel { display:flex; flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:12px; padding:4px 12px 14px; }
  #appView .jn-xi-panel > .jn-xf { flex:none; width:100%; }
  #appView .jn-xf input[type="date"], #appView .jn-xf input[type="time"], #appView .jn-xf input[type="text"], #appView .jn-xf-unit select { height:44px; min-height:44px; font-size:16px; }
  #appView .jn-xf-unit { flex-wrap:wrap; }
  #appView .jn-xf-unit > * { flex:1 1 100%; }
  #appView .jn-xf-up { height:40px; }
  #appView .jn-xrs { flex-direction:column; }
  #appView .jn-xr { min-height:44px; }
  #appView .jn-xi-acts { flex-wrap:wrap; justify-content:flex-end; margin-left:0; }
  #appView .jn-xi-acts button, #appView .jn-acts button, #appView .jn-acts .jn-tip button { height:40px; min-height:40px; }
  #appView .jn-dep-r { grid-template-columns:minmax(0,1fr) auto; row-gap:6px; padding-block:10px; }
  #appView .jn-dep-acts { grid-column:1 / -1; justify-content:flex-start; }
  #appView .jn-addline input, #appView .jn-assign select { height:44px; min-height:44px; max-width:none; flex:1 1 100%; font-size:16px; }
  #appView .jn-noteb textarea, #appView .jn-next input { font-size:16px; }
  #appView .jn-next input { height:44px; min-height:44px; }
  #appView .jn-history { padding:14px 16px !important; }

  /* popup tạo hành trình: toàn màn (bo trên 16), chân cố định */
  #appView dialog.jn-cdlg { width:100%; max-width:none; height:calc(100dvh - 12px); max-height:none; margin:12px 0 0; border-radius:16px 16px 0 0; }
  #appView .jn-cdlg-head { padding:6px 6px 6px 16px; }
  #appView .jn-cdlg-x { width:44px; height:44px; }
  #appView .jn-cdlg .jn-form { padding:16px !important; gap:18px; }
  #appView .jn-field input[type="text"], #appView .jn-field input[type="search"], #appView .jn-field input[type="date"] { height:44px; min-height:44px; font-size:16px; }
  #appView .jn-ac > svg { top:14px; }
  #appView .jn-pop button { min-height:44px; }
  #appView .jn-svc-row input[type="number"], #appView .jn-svc-foot input { font-size:16px; }
  #appView .jn-svc-row .jn-x { width:40px; height:40px; }
  #appView .jn-cdlg-foot { padding:10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  #appView .jn-cdlg-foot button { flex:1 1 0; height:44px; min-height:44px; }

  /* tab Hành trình trong hồ sơ khách: bảng ít cột giữ cuộn ngang trong khung */
  #appView .jn-ctab { padding:14px !important; }
  #appView .jn-ctab .tbl-wrap { overflow-x:auto; }

  /* hộp thoại lý do / xác nhận */
  dialog.ot-pop.jn-dlg { width:100%; max-width:none; margin:auto 0 0; border:0; border-radius:16px 16px 0 0; }
  dialog.jn-dlg form { padding:18px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  dialog.jn-dlg textarea { font-size:16px; }
  dialog.jn-dlg .btn-row button { flex:1 1 0; height:44px; min-height:44px; }
}
@media screen and (max-width:560px) {
  #appView .jn-lbl-x { display:none; }
}

/* ---- bước 10: lịch trình tour gợi ý (journeys-tour.js) — khối tóm tắt trong bước + màn soạn toàn màn hình + bản in PDF ---- */
@media screen {
  #appView .tp-card { display:grid; gap:10px; margin:0 0 12px; padding:14px 16px; border:1px solid #E6D9C6; border-radius:14px; background:#FBF8F3; }
  #appView .tp-card-h { display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px; }
  #appView .tp-card-h > b { font-size:14px; font-weight:700; color:#25211C; }
  #appView .tp-card-h .jn-small { margin:0; }
  #appView .tp-days { display:grid; gap:4px; margin:0; padding:0; list-style:none; }
  #appView .tp-days li { display:grid; grid-template-columns:76px minmax(0,1fr) auto; align-items:baseline; gap:10px; font-size:13px; color:#25211C; }
  #appView .tp-days b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  #appView .tp-days em { font-style:normal; font-weight:700; color:#25211C; font-variant-numeric:tabular-nums; }
  #appView .tp-dn, .tp-ov .tp-dn { font-size:11px; font-weight:800; letter-spacing:.04em; color:#8A5F27; }
  #appView .tp-facts { display:flex; flex-wrap:wrap; gap:6px 18px; margin:0; font-size:13px; color:#25211C; }
  #appView .tp-facts i { font-style:normal; color:#6F655A; margin-right:6px; }
  #appView .tp-facts em { font-style:normal; }
  #appView .tp-card-acts { display:flex; flex-wrap:wrap; gap:8px; }
  #appView .tp-done { display:flex; align-items:flex-start; gap:10px; margin:0 0 12px; padding:12px 16px; border:1px solid #CFE3D3; border-radius:14px; background:#F2F8F3; }
  #appView .tp-done p { margin:0; font-size:13.5px; line-height:1.5; color:#25211C; }
  #appView .tp-done .jn-link { font-size:inherit; }
  #appView .tp-done-ic { flex:0 0 22px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#1F5E2E; color:#fff; font-size:12px; font-weight:800; }
  #appView .tp-item { display:grid; gap:10px; margin:0 16px 16px 46px; padding:12px 14px; border:1px solid #EFE9DD; border-radius:12px; background:#FBF8F3; }
  #appView .jn-xi-panel:has(+ .tp-item) { padding-bottom:10px; }
  #appView .tp-item-h { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; }
  #appView .tp-item-h b { font-size:13.5px; color:#25211C; }
  #appView .tp-item-h .jn-small { margin:0; }
  @media (max-width:900px) { #appView .tp-item { margin:0 12px 14px; } }

  body.tp-open { overflow:hidden; }
  .tp-ov { padding:16px; display:flex; font-family:'Plus Jakarta Sans',system-ui,sans-serif; }
  .tp-ov .tp-panel { display:flex; flex-direction:column; width:min(1320px,100%); height:calc(100vh - 32px); margin:0 auto; border-radius:16px; background:#fff; box-shadow:0 24px 60px rgba(30,20,10,.28); overflow:hidden; }
  .tp-ov .tp-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 16px; padding:12px 16px; border-bottom:1px solid #EFE9DD; }
  .tp-ov .tp-bar-t { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; min-width:0; }
  .tp-ov .tp-bar-t strong { font-size:17px; font-weight:800; color:#25211C; }
  .tp-ov .tp-bar-t > span:not(.jn-chip) { font-size:14px; color:#6F655A; }
  .tp-ov .tp-bar-acts { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
  .tp-ov .tp-bar-acts button { min-height:36px; }
  .tp-ov .tp-x { font-size:22px; line-height:1; padding:4px 10px; }
  .tp-ov .jn-chip { display:inline-flex; align-items:center; height:24px; padding:0 10px; border-radius:12px; font-size:12px; font-weight:600; white-space:nowrap; background:#F1ECE4; color:#6F655A; }
  .tp-ov .jn-chip.ok { background:#E6F2E8; color:#1F5E2E; }
  .tp-ov .jn-chip.warn { background:#FFF2E0; color:#8A4B0C; }
  .tp-ov .jn-small { margin:4px 0 0; font-size:12px; color:#6F655A; line-height:1.45; }
  .tp-ov .jn-mute { color:#6F655A; }
  .tp-ov .is-bad { color:#9B2F23; }
  .tp-ov .jn-link { border:0; background:none; padding:0; min-height:0; font:inherit; font-size:13px; font-weight:700; color:#8A5F27; cursor:pointer; box-shadow:none; justify-self:start; }
  .tp-ov .jn-link:hover { text-decoration:underline; background:none; }
  .tp-ov .tp-body { flex:1; min-height:0; display:grid; grid-template-columns:minmax(300px,380px) minmax(0,1fr); }
  .tp-ov .tp-side { overflow:auto; padding:16px; border-right:1px solid #EFE9DD; background:#FBF8F3; display:grid; align-content:start; gap:14px; }
  .tp-ov .tp-sec { display:grid; gap:10px; padding:14px; border:1px solid #E6D9C6; border-radius:12px; background:#fff; }
  .tp-ov .tp-sec h3 { margin:0; font-size:14px; font-weight:800; color:#25211C; }
  .tp-ov .tp-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .tp-ov .tp-f { display:grid; gap:4px; min-width:0; }
  .tp-ov .tp-f > span { font-size:12px; font-weight:600; color:#6F655A; }
  .tp-ov .tp-f input, .tp-ov .tp-f select, .tp-ov .tp-f textarea, .tp-ov .tp-svc input { width:100%; min-width:0; box-sizing:border-box; font:inherit; font-size:13px; }
  .tp-ov .tp-svc { display:grid; grid-template-columns:minmax(0,1fr) 104px auto; gap:6px; align-items:center; padding:8px; border-radius:8px; background:#FBF8F3; }
  .tp-ov .tp-svc input[data-s$=".label"] { grid-column:1 / 3; grid-row:2; }
  .tp-ov .tp-svc .tp-del { grid-column:3; grid-row:1 / 3; }
  .tp-ov .tp-del { min-height:30px; padding:2px 9px; border:0; background:none; color:#9B2F23; font-size:18px; line-height:1; box-shadow:none; }
  .tp-ov .tp-del:hover { background:#FBE7E5; }
  .tp-ov .tp-hl { margin:0; font-size:13px; font-weight:600; color:#8A5F27; }
  .tp-ov .tp-mem { display:grid; gap:2px; padding:8px 10px; border-radius:8px; background:#FBF8F3; }
  .tp-ov .tp-mem b { font-size:12px; color:#25211C; }
  .tp-ov .tp-mem p { margin:0; font-size:12px; color:#4D453C; line-height:1.5; }
  .tp-ov .tp-main { overflow:auto; padding:20px clamp(16px,3vw,36px) 40px; display:grid; align-content:start; gap:16px; }
  .tp-ov .tp-doc-h { display:grid; gap:4px; text-align:center; }
  .tp-ov .tp-doc-h p { margin:0; font-size:13px; color:#25211C; }
  .tp-ov .tp-title, .tp-ov .tp-doc-h h2 { margin:0 auto; width:min(520px,100%); border:1px solid transparent; background:none; text-align:center; font-size:20px; font-weight:800; color:#8A5F27; letter-spacing:.02em; }
  .tp-ov .tp-title:hover, .tp-ov .tp-title:focus { border-color:#E4DACA; background:#fff; }
  .tp-ov .tp-day { display:grid; gap:8px; padding:14px 16px; border:1px solid #E6D9C6; border-radius:12px; }
  .tp-ov .tp-day header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; }
  .tp-ov .tp-day header .tp-dn { padding:4px 10px; border-radius:8px; background:#a9783a; color:#fff; }
  .tp-ov .tp-day header input { font:inherit; font-size:14px; font-weight:700; text-transform:uppercase; }
  .tp-ov .tp-day header b { font-size:14px; }
  .tp-ov .tp-day header em { font-style:normal; font-size:12px; color:#6F655A; white-space:nowrap; }
  .tp-ov .tp-it { display:grid; grid-template-columns:104px minmax(0,1fr) auto; gap:8px; align-items:start; }
  .tp-ov .tp-it input { font:inherit; font-size:13px; font-variant-numeric:tabular-nums; }
  .tp-ov .tp-it textarea { font:inherit; font-size:13.5px; line-height:1.5; resize:vertical; min-height:38px; overflow:hidden; }
  .tp-ov .tp-ro { margin:0; font-size:13.5px; line-height:1.55; color:#25211C; }
  .tp-ov .tp-wait { display:grid; justify-items:center; gap:8px; margin:12vh auto 0; max-width:420px; text-align:center; color:#25211C; }
  .tp-ov .tp-wait b { font-size:16px; }
  .tp-ov .tp-spin { width:28px; height:28px; border-radius:50%; border:3px solid #ead9c2; border-top-color:#a9783a; animation:tpSpin .8s linear infinite; }
  @keyframes tpSpin { to { transform:rotate(360deg); } }
  /* ảnh điểm đến: dải ảnh cuối mỗi ngày + thẻ gợi ý thêm */
  .tp-ov .tp-strip { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-top:4px; }
  .tp-ov .tp-ph { position:relative; margin:0; display:grid; gap:4px; }
  .tp-ov .tp-ph img, .tp-ov .tp-ph > span:first-child { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:10px; background:#F1ECE4; }
  .tp-ov .tp-ph.is-empty > span:first-child { display:grid; place-items:center; border:1px dashed #E4DACA; font-size:12px; color:#6F655A; }
  .tp-ov .tp-ph figcaption { font-size:12px; font-weight:600; color:#25211C; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  /* nút "Đổi ảnh": ẩn, rê chuột / chọn bằng phím mới hiện (máy cảm ứng: luôn hiện) */
  .tp-ov .tp-ph-change { position:absolute; left:50%; top:calc(50% - 12px); transform:translate(-50%,-50%); min-height:32px; padding:0 14px; border:0; border-radius:16px; background:rgba(255,255,255,.95); color:#25211C; font:inherit; font-size:12.5px; font-weight:700; white-space:nowrap; cursor:pointer; box-shadow:0 2px 10px rgba(0,0,0,.25); opacity:0; pointer-events:none; transition:opacity .15s ease; }
  .tp-ov .tp-ph.is-big .tp-ph-change { top:calc(50% - 4px); }
  .tp-ov .tp-ph:hover .tp-ph-change, .tp-ov .tp-ph:focus-within .tp-ph-change, .tp-ov .tp-ph.is-empty .tp-ph-change { opacity:1; pointer-events:auto; }
  .tp-ov .tp-ph-change:hover { color:#8A5F27; background:#fff; }
  .tp-ov .tp-ph:hover img { filter:brightness(.82); }
  .tp-ov .tp-ph img { transition:filter .15s ease; }
  @media (hover:none) { .tp-ov .tp-ph-change { opacity:1; pointer-events:auto; top:auto; bottom:30px; transform:translateX(-50%); } }
  /* bảng chọn ảnh của một điểm (nằm trên màn soạn) */
  .tp-pick { z-index:150; display:grid; place-items:center; padding:16px; font-family:'Plus Jakarta Sans',system-ui,sans-serif; }
  .tp-pick .tp-pick-box { width:min(960px,100%); max-height:calc(100vh - 32px); display:flex; flex-direction:column; border-radius:16px; background:#fff; box-shadow:0 24px 60px rgba(30,20,10,.35); overflow:hidden; }
  .tp-pick .tp-pick-h { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:14px 16px; border-bottom:1px solid #EFE9DD; }
  .tp-pick .tp-pick-h b { display:block; font-size:16px; color:#25211C; }
  .tp-pick .jn-small { display:block; margin-top:2px; font-size:12px; color:#6F655A; }
  .tp-pick .tp-x { font-size:22px; line-height:1; padding:2px 10px; }
  .tp-pick .tp-pick-grid { flex:1; overflow:auto; display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; padding:16px; }
  .tp-pick .tp-pick-it { position:relative; display:grid; gap:4px; align-content:start; }
  .tp-pick .tp-pick-img { display:block; width:100%; padding:0; border:3px solid transparent; border-radius:12px; background:#F1ECE4; cursor:pointer; overflow:hidden; box-shadow:none; }
  .tp-pick .tp-pick-img img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
  .tp-pick .tp-pick-img:hover:not(:disabled) { border-color:#C9A06A; }
  .tp-pick .tp-pick-it.is-cur .tp-pick-img { border-color:#a9783a; cursor:default; opacity:1; }
  .tp-pick .tp-pick-cur { position:absolute; left:10px; top:10px; padding:3px 9px; border-radius:10px; background:#a9783a; color:#fff; font-size:11.5px; font-weight:700; }
  .tp-pick .tp-pick-del { position:absolute; right:8px; top:8px; min-height:26px; min-width:26px; padding:0; border:0; border-radius:13px; background:rgba(255,255,255,.92); color:#9B2F23; font-size:16px; line-height:1; box-shadow:0 1px 4px rgba(0,0,0,.2); }
  .tp-pick .tp-pick-it small { font-size:11px; color:#8c8c8c; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .tp-pick .tp-pick-it.is-wait { place-items:center; aspect-ratio:4/3; border:2px dashed #E2D3BC; border-radius:12px; }
  .tp-pick .tp-pick-f { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:12px 16px; border-top:1px solid #EFE9DD; }
  .tp-pick .tp-pick-up { display:inline-flex; align-items:center; min-height:36px; padding:0 14px; border:1px solid #E4DACA; border-radius:10px; font-size:13px; font-weight:600; color:#25211C; cursor:pointer; background:#fff; }
  .tp-pick .tp-pick-up:hover { border-color:#a9783a; color:#8A5F27; }
  .tp-pick .tp-pick-up.is-off { opacity:.5; pointer-events:none; }
  .tp-pick .tp-spin { width:28px; height:28px; border-radius:50%; border:3px solid #ead9c2; border-top-color:#a9783a; animation:tpSpin .8s linear infinite; }
  .tp-ov .tp-alt { display:grid; gap:10px; padding:16px; border:1px solid #E6D9C6; border-radius:12px; background:#FBF8F3; }
  .tp-ov .tp-alt h3 { margin:0; font-size:15px; font-weight:800; color:#8A5F27; }
  .tp-ov .tp-alt .jn-small { margin:0; }
  .tp-ov .tp-alt-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
  .tp-ov .tp-alt-c { position:relative; display:grid; align-content:start; gap:8px; padding:10px; border-radius:10px; background:#fff; border:1px solid #EFE9DD; }
  .tp-ov .tp-ph.is-big img, .tp-ov .tp-ph.is-big > span:first-child { aspect-ratio:16/9; }
  .tp-ov .tp-alt-c .jn-small { display:block; }
  .tp-ov .tp-alt-c b { display:block; font-size:13px; color:#25211C; padding-right:22px; }
  .tp-ov .tp-alt-c p { margin:4px 0 0; font-size:12px; line-height:1.45; color:#4D453C; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
  .tp-ov .tp-alt-x { position:absolute; bottom:6px; right:6px; }
  .tp-ov .tp-alt-c b { padding-right:0; }
  @media (max-width:900px) {
    .tp-ov { padding:0; }
    .tp-ov .tp-panel { height:100vh; border-radius:0; }
    .tp-ov .tp-body { display:block; overflow:auto; }
    .tp-ov .tp-side { border-right:0; border-bottom:1px solid #EFE9DD; overflow:visible; }
    .tp-ov .tp-main { overflow:visible; }
    .tp-ov .tp-it { grid-template-columns:88px minmax(0,1fr) auto; }
    .tp-ov .tp-day header { grid-template-columns:auto minmax(0,1fr); }
    .tp-ov .tp-day header em { grid-column:1 / -1; }
  }
  @media (prefers-reduced-motion:reduce) { .tp-ov .tp-spin { animation:none; } }
}
/* Bản in / PDF lịch trình (pdf-export.js chụp #printRoot theo các luật @media print) — theo mẫu "TOUR DU LỊCH NHẬT BẢN" của công ty. */
@media print {
  #printRoot .tp-print { box-sizing:border-box; padding:0 1px; color:#000; font-family:'Plus Jakarta Sans','Inter',Arial,sans-serif; font-size:10.5pt; line-height:1.55; }
  #printRoot .tp-print * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  #printRoot .tp-p-logo { display:block; width:100%; height:auto; margin:0 0 7mm; }
  #printRoot .tp-print h1 { margin:0 0 2mm; text-align:center; font-size:19pt; font-weight:800; letter-spacing:.03em; color:#8A5F27; }
  #printRoot .tp-p-sub { margin:0 0 1mm; text-align:center; font-size:11pt; }
  #printRoot .tp-print h2 { margin:6mm 0 1mm; font-size:12pt; font-weight:800; }
  /* "NGÀY 01" và tiêu đề ngày cùng một dòng */
  #printRoot .tp-p-dn { display:flex; align-items:center; gap:3mm; margin:5mm 0 2mm; font-size:10.5pt; line-height:1.35; }
  #printRoot .tp-p-dn span { flex:0 0 auto; display:inline-block; padding:1mm 4mm; border-radius:1.5mm; background:#a9783a; color:#fff; font-weight:800; letter-spacing:.04em; white-space:nowrap; }
  #printRoot .tp-p-dt { min-width:0; font-size:11pt; font-weight:800; color:#3A2A18; }
  #printRoot .tp-print ul { margin:0; padding:0; list-style:none; }
  #printRoot .tp-print li { margin:0 0 1.6mm; padding-left:4mm; text-indent:-4mm; text-align:justify; }
  #printRoot .tp-p-pics { display:grid; gap:3mm; margin:2.5mm 0 1mm; }
  #printRoot .tp-p-pics.n1 { grid-template-columns:1fr; } #printRoot .tp-p-pics.n2 { grid-template-columns:1fr 1fr; } #printRoot .tp-p-pics.n3 { grid-template-columns:1fr 1fr 1fr; }
  #printRoot .tp-p-pics figure { margin:0; }
  #printRoot .tp-p-img { width:100%; height:42mm; border-radius:2mm; background-color:#F1ECE4; background-size:cover; background-position:center; }
  #printRoot .tp-p-pics.n1 .tp-p-img { height:62mm; }
  #printRoot .tp-p-pics figcaption { margin-top:1mm; text-align:center; font-size:8.5pt; font-style:italic; color:#5A4A38; }
  #printRoot .tp-p-more { margin:0 0 1mm; text-align:center; font-size:14pt; color:#8A5F27; }
  #printRoot .tp-p-note { text-align:center; }
  #printRoot .tp-p-gal { break-before:page; page-break-before:always; }
  #printRoot .tp-p-note { margin:0 0 3mm; font-size:9.5pt; font-style:italic; color:#5A4A38; }
  #printRoot .tp-p-grid { display:grid; grid-template-columns:1fr 1fr; gap:4mm; }
  #printRoot .tp-p-alt { margin:0; padding:2.5mm; border:0.3mm solid #E2D3BC; border-radius:2mm; break-inside:avoid; }
  #printRoot .tp-p-alt .tp-p-img { height:38mm; border-radius:1.5mm; }
  #printRoot .tp-p-img.is-none { display:flex; align-items:center; justify-content:center; background-image:linear-gradient(135deg,#EFE3D0,#FAF5EC); color:#8A5F27; font-size:10pt; font-style:italic; }
  #printRoot .tp-p-alt h4 { margin:2mm 0 0.5mm; font-size:10.5pt; font-weight:800; color:#3A2A18; }
  #printRoot .tp-p-meta { margin:0 0 1mm; font-size:8pt; color:#8A5F27; }
  #printRoot .tp-p-alt p { margin:0; font-size:9pt; line-height:1.45; }
  #printRoot .tp-p-cr { display:block; margin-top:0.6mm; font-size:6.5pt; font-style:normal; color:#8c8c8c; line-height:1.3; }
  #printRoot .tp-p-src { grid-column:1 / -1; margin:2mm 0 0; font-size:7.5pt; font-style:italic; color:#8c8c8c; }
  #printRoot .tp-p-src.is-top { margin:0 0 3mm; text-align:center; }
  #printRoot li.tp-p-srcli { padding-left:0; text-indent:0; }
}
/* Xem trước lịch trình (journeys-tour.js): mỗi trang A4 là một "cửa sổ" của cùng nội dung in, chia đúng chỗ như file PDF. Thanh / nền dùng chung .dk-pv (dkdv.css). */
@media screen {
  .tp-pv .tp-pv-page { position:relative; margin:0 auto 16px; box-sizing:border-box; background:#fff; color:#000; box-shadow:0 6px 24px rgba(0,0,0,.35); overflow:hidden; }
  .tp-pv .tp-pv-win { overflow:hidden; }
  .tp-pv .tp-pv-no { position:absolute; right:12mm; bottom:5mm; font-size:8pt; color:#8c8c8c; font-family:'Plus Jakarta Sans',system-ui,sans-serif; }
}
@media print {
  .tp-pv { display:none !important; }
  #printRoot .tp-p-keep, #printRoot .tp-p-pics, #printRoot .tp-p-alt { break-inside:avoid; page-break-inside:avoid; }
  #printRoot .tp-p-day { margin:0; }
}

/* Nhãn tab rút gọn (journeys.js tabsBar): chỉ hiện ở điện thoại */
#appView .jn-tabs .jn-tl-s { display:none; }

/* ===== MOBILE 11/2026 (≤ 760px) — docs/MOBILE-UI-SPEC.md ===== */
@media screen and (max-width: 760px) {
  /* ---- dải tab: nhãn ngắn để cả hàng vừa một màn, dính dưới thanh đầu ---- */
  body.sales-shell #appView .jn-tabs { position:sticky; top:52px; z-index:20; gap:20px; margin:0 -12px 12px; padding:0 12px; background:#fff; }
  body.sales-shell #appView .jn-tabs .jn-tl-l { display:none; }
  body.sales-shell #appView .jn-tabs .jn-tl-s { display:inline; }
  body.sales-shell #appView .jn-tabs button.jn-tab { min-height:44px; padding:12px 0 11px; font-size:14px; }
  body.sales-shell #appView .hub-heading h1.jn-h1 { font-size:17px; font-weight:800; }

  /* ---- Tổng hợp: ô số nền nhạt, không viền ---- */
  body.sales-shell #appView .jn-tiles { gap:8px; margin-bottom:20px; }
  body.sales-shell #appView :is(.jn-tile, button.jn-tile), body.sales-shell #appView button.jn-tile:hover { gap:4px; padding:12px; border:0 !important; border-radius:12px; background:var(--m-wash) !important; }
  body.sales-shell #appView .jn-tile > span { font-size:12px; line-height:1.3; }
  body.sales-shell #appView .jn-tile > b { font-size:20px; }
  /* Việc hôm nay: cả dòng bấm được → bỏ nút "Mở", thay bằng mũi tên */
  body.sales-shell #appView .jn-todo { border-color:var(--m-line); border-radius:14px; }
  body.sales-shell #appView .jn-todo-it { min-height:0; padding:12px 12px 12px 14px; }
  body.sales-shell #appView .jn-todo-it:hover { background:transparent; }
  body.sales-shell #appView .jn-todo-it button.jn-open { display:none; }
  body.sales-shell #appView .jn-todo-it::after { content:""; flex:0 0 8px; width:8px; height:8px; margin-right:4px; border-top:2px solid #B5A58E; border-right:2px solid #B5A58E; transform:rotate(45deg); }
  body.sales-shell #appView .jn-todo-tx > b { font-size:15px; }
  body.sales-shell #appView .jn-empty-s { border-color:var(--m-line); border-radius:14px; }
  /* Thống kê: khối phẳng; khoảng tháng 2 dòng (không cắt chữ); bảng vừa màn, tiêu đề cột ngắn */
  body.sales-shell #appView .jn-stats { gap:12px; padding:0 !important; border:0 !important; border-radius:0 !important; background:none; }
  body.sales-shell #appView .jn-stats .srp-cardhead { display:grid; gap:10px; }
  body.sales-shell #appView .jn-stat-range { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; width:100%; margin:0; }
  body.sales-shell #appView .jn-stat-range label { grid-column:1 / -1; display:grid; grid-template-columns:52px minmax(0,1fr); align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--m-sub); white-space:nowrap; }
  body.sales-shell #appView .jn-stat-range label + label { grid-column:1; }
  body.sales-shell #appView .jn-stat-range input { width:100%; min-width:0; height:46px; min-height:46px; padding:0 12px; border-color:var(--m-line); }
  body.sales-shell #appView .jn-stat-range button { grid-column:2; height:46px; min-height:46px; padding:0 18px; border-radius:12px; font-size:14px; }
  body.sales-shell #appView .jn-stats-h { gap:2px 8px; }
  body.sales-shell #appView .jn-stats .tbl-wrap { overflow:hidden; border-color:var(--m-line); }
  body.sales-shell #appView .jn-stat-table { width:100%; min-width:0; table-layout:fixed; }
  body.sales-shell #appView .jn-stat-table th { height:auto; padding:8px 6px !important; font-size:12px; line-height:1.25; white-space:normal; vertical-align:bottom; }
  body.sales-shell #appView .jn-stat-table th:nth-child(1) { width:26px; }
  body.sales-shell #appView .jn-stat-table th:nth-child(2) { width:auto; min-width:0; }
  body.sales-shell #appView .jn-stat-table th:nth-child(n+3) { width:48px; }
  body.sales-shell #appView .jn-stat-table th[data-short] { font-size:0 !important; }
  body.sales-shell #appView .jn-stat-table th[data-short]::after { content:attr(data-short); font-size:12px; }
  body.sales-shell #appView .jn-stats .hub-table td { padding:8px 6px !important; font-size:13px; line-height:1.35; white-space:normal; }
  body.sales-shell #appView .jn-stats .hub-table td:nth-child(1) { padding-left:8px !important; }
  body.sales-shell #appView .jn-stats .hub-table :is(td, th):last-child { padding-right:10px !important; }
  body.sales-shell #appView .jn-stats .hub-table td .jn-small { display:block; margin:0; font-size:12px; }

  /* ---- hàng lọc ---- */
  body.sales-shell #appView .jn-search { height:46px; border-radius:12px; }
  body.sales-shell #appView .jn-search input[type="search"] { height:44px; min-height:44px; }
  body.sales-shell #appView .jn-bar select.jn-pick { height:36px; min-height:36px; border-radius:18px; }

  /* ---- danh sách hành trình: thẻ 3 tầng, cả thẻ bấm được (bỏ nút "Mở") ---- */
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) tbody { gap:10px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) tr { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"cust cust" "trip trip" "prog prog" "step step" "visa money"; gap:8px 12px; padding:14px; border-color:var(--m-line); border-radius:14px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) tr:hover td { background:transparent !important; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-act-c { display:none; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td[data-label]::before { content:none; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-cust .jn-name { font-size:15px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-cust .jn-small:empty { display:none; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-cust .jn-small,
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-step .jn-small { margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
  body.sales-shell #appView .jn-main .jn-trip-t { font-size:14px; font-weight:600; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-step .jn-step-cur { font-size:14px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-visa { grid-area:visa; align-self:center; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-money { grid-area:money; align-self:center; text-align:right !important; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-money .jn-money-top { font-size:16px; font-weight:800; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-money .jn-small { margin-top:0; }

  /* ---- Lịch khởi hành: thẻ cùng kiểu, bỏ nút "Mở" ---- */
  body.sales-shell #appView .jn-bm .jn-btable tbody { gap:10px; }
  body.sales-shell #appView .jn-bm .jn-btable tr { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-areas:"cust day" "svc svc" "visa ve"; gap:6px 12px; padding:14px; border-color:var(--m-line); border-radius:14px; }
  body.sales-shell #appView .jn-bm .jn-btable td.jn-act-c { display:none; }
  body.sales-shell #appView .jn-bm .jn-tcard .jn-btable td.jn-bday { padding-top:2px !important; color:var(--m-sub); text-align:right !important; }
  body.sales-shell #appView .jn-bm .jn-btable td.jn-c-cust .jn-name { font-size:15px; }
  body.sales-shell #appView .jn-bm .jn-btable td.jn-c-svc { color:var(--m-ink); font-size:13px; }
  body.sales-shell #appView .jn-bm .jn-btable td:is(.jn-c-visa, .jn-c-ve) { margin-top:4px; }
  body.sales-shell #appView .jn-bm-empty { border-color:var(--m-line); border-radius:14px; }

  /* ---- chi tiết: 4 ô thông tin (Phiếu, Tiền cả hàng), mốc ngày lưới 2 cột ---- */
  body.sales-shell #appView .jn-facts { border-color:var(--m-line); border-radius:14px; }
  body.sales-shell #appView .jn-facts .jn-fact, body.sales-shell #appView .jn-facts button.jn-fact { padding:12px 14px; border:0 !important; border-top:1px solid var(--m-line-soft) !important; }
  body.sales-shell #appView .jn-facts .jn-fact:first-child { grid-column:1 / -1; border-top:0 !important; }
  body.sales-shell #appView .jn-facts .jn-fact:nth-child(3) { border-left:1px solid var(--m-line-soft) !important; }
  body.sales-shell #appView .jn-facts .jn-money { grid-column:1 / -1; }
  body.sales-shell #appView .jn-fact > b, body.sales-shell #appView .jn-fact .jn-link { font-size:14px; }
  body.sales-shell #appView .jn-ancs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; margin:0 0 16px; overflow:visible; border-radius:12px; background:var(--m-wash); }
  body.sales-shell #appView .jn-ancs .jn-anc, body.sales-shell #appView .jn-ancs .jn-anc:nth-child(n) { min-width:0; padding:6px 4px 6px 12px; border:0; border-top:1px solid var(--m-line-soft); }
  body.sales-shell #appView .jn-ancs .jn-anc:nth-child(-n+2) { border-top:0; }
  body.sales-shell #appView .jn-ancs .jn-anc:nth-child(2n) { border-left:1px solid var(--m-line-soft); }
  body.sales-shell #appView .jn-ancs .jn-anc.is-edit { min-width:0; padding-right:8px; }
  body.sales-shell #appView .jn-anc-t { flex:1 1 auto; min-width:0; }
  body.sales-shell #appView .jn-anc-t > span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
  body.sales-shell #appView .jn-anc-t > b { font-size:14px; }
  body.sales-shell #appView .jn-anchor { width:100%; height:46px; min-height:46px; }
  body.sales-shell #appView button.jn-pen { flex:0 0 40px; width:40px; height:40px; min-height:40px; }

  /* ---- 15 bước: danh sách phẳng; bước mở = 1 thẻ; mục con là các dòng kẻ mảnh (không thẻ lồng thẻ) ---- */
  body.sales-shell #appView .jn-tl { padding:0; border:0; border-radius:0; background:none; }
  body.sales-shell #appView .jn-step-head { min-height:52px; padding:0 4px !important; }
  body.sales-shell #appView .jn-panel { margin:4px 0 12px; padding:2px 14px 14px; border-color:var(--m-line); border-radius:14px; }
  body.sales-shell #appView .jn-xis { gap:0; }
  body.sales-shell #appView .jn-xi { overflow:visible; border:0; border-top:1px solid var(--m-line-soft); border-radius:0; background:none; }
  body.sales-shell #appView .jn-xi:first-child { border-top:0; }
  body.sales-shell #appView .jn-xi-head { min-height:52px; padding:10px 0; gap:10px; background:none; }
  body.sales-shell #appView .jn-xis .jn-xi-panel, body.sales-shell #appView .jn-xi-panel { gap:12px; padding:0 0 14px; }
  body.sales-shell #appView .jn-xis + *, body.sales-shell #appView .jn-step-foot { margin-top:10px; }
  body.sales-shell #appView .jn-xi-acts { display:flex; flex-wrap:nowrap; gap:8px; width:100%; margin:2px 0 0; }
  body.sales-shell #appView .jn-xi-acts button { flex:1 1 0; height:44px; min-height:44px; border-radius:12px; font-size:14px; }
  body.sales-shell #appView .jn-acts button, body.sales-shell #appView .jn-acts .jn-tip button { height:40px; min-height:40px; border-radius:12px; }
  body.sales-shell #appView .tp-item { margin:0 0 14px; }
  body.sales-shell #appView .tp-card, body.sales-shell #appView .tp-done { padding:12px; border-radius:12px; }
  body.sales-shell #appView .tp-card-acts button { flex:1 1 auto; height:40px; min-height:40px; }

  /* ---- Mẫu hành trình: bảng sửa → mỗi bước một thẻ; nút Lưu ở thanh dính đáy ---- */
  body.sales-shell #appView .jn-tpl-head { gap:6px 8px; }
  body.sales-shell #appView .jn-tpl-head .jn-grow { display:none; }
  body.sales-shell #appView .jn-tpl-head select { flex:1 1 100%; width:100%; height:46px; min-height:46px; }
  body.sales-shell #appView .jn-tpl > .jn-tcard { overflow:visible; border:0 !important; border-radius:0 !important; background:none; }
  body.sales-shell #appView .jn-tpl > .jn-tcard > .tbl-wrap { overflow:visible; }
  body.sales-shell #appView .jn-tpl-table { display:block; width:100%; min-width:0; table-layout:auto; }
  body.sales-shell #appView .jn-tpl-table thead { display:none; }
  body.sales-shell #appView .jn-tpl-table tbody { display:flex; flex-direction:column; gap:10px; }
  body.sales-shell #appView .jn-tpl-table tr { display:grid; grid-template-columns:24px minmax(0,1fr) minmax(0,1fr); grid-template-areas:"no label label" "app app role" "due due due" "ck ck ck" "file file mv"; gap:10px; padding:14px; border:1px solid var(--m-line); border-radius:14px; background:#fff; }
  body.sales-shell #appView .jn-tpl-table tr.is-new { background:var(--m-accent-wash); }
  body.sales-shell #appView .jn-tcard .jn-tpl-table tr td { display:block; min-width:0; padding:0 !important; border:0 !important; background:transparent !important; text-align:left !important; line-height:normal; }
  body.sales-shell #appView .jn-tpl-table td[data-label]::before { content:attr(data-label); display:block; margin-bottom:4px; color:var(--m-sub); font-size:13px; font-weight:600; }
  body.sales-shell #appView .jn-tcard .jn-tpl-table td.jn-tpl-no { grid-area:no; line-height:46px; color:var(--m-sub); font-weight:700; }
  body.sales-shell #appView .jn-tpl-table td.jn-tpl-label { grid-area:label; }
  body.sales-shell #appView .jn-tpl-table td.jn-tpl-app { grid-area:app; }
  body.sales-shell #appView .jn-tpl-table td.jn-tpl-role { grid-area:role; }
  body.sales-shell #appView .jn-tcard .jn-tpl-table td.jn-tpl-due { grid-area:due; display:grid; grid-template-columns:minmax(0,1fr) 112px; align-items:center; gap:8px; }
  body.sales-shell #appView .jn-tpl-table td.jn-tpl-due::before { grid-column:1 / -1; margin-bottom:-4px; }
  body.sales-shell #appView .jn-tpl-off { margin:0; }
  body.sales-shell #appView .jn-tpl-off input[type="number"] { flex:1 1 auto; width:100%; height:46px; min-height:46px; }
  body.sales-shell #appView .jn-tpl-table td.jn-tpl-ck { grid-area:ck; }
  body.sales-shell #appView .jn-tcard .jn-tpl-table td.jn-tpl-file { grid-area:file; display:flex; align-items:center; gap:10px; line-height:normal; }
  body.sales-shell #appView .jn-tpl-table td.jn-tpl-file::before { order:2; margin:0; font-size:14px; color:var(--m-ink); font-weight:500; }
  body.sales-shell #appView .jn-tpl-table td.jn-tpl-mv { grid-area:mv; justify-self:end; display:flex; gap:4px; }
  body.sales-shell #appView .jn-tpl-mv button { width:40px; min-width:40px; height:40px; min-height:40px; }
  body.sales-shell #appView .jn-tpl-table :is(select, input[type="text"], input[type="number"]) { height:46px; min-height:46px; }
  body.sales-shell #appView .jn-tpl-ck textarea { font-size:16px; }
  body.sales-shell #appView .jn-tpl-acts { gap:8px; padding:12px 0 0; border-top:0; }
  body.sales-shell #appView .jn-tpl-acts .jn-grow { display:none; }
  body.sales-shell #appView .jn-tpl-acts #jnTplAdd { flex:0 0 46px; justify-content:center; width:46px; padding:0; font-size:0; }
  body.sales-shell #appView .jn-tpl-acts #jnTplUndo { flex:0 0 auto; }
  body.sales-shell #appView .jn-tpl-acts #jnTplSave { flex:1 1 auto; justify-content:center; }
  body.sales-shell #appView .jn-tpl-hist .hub-table { min-width:560px; }

  /* ---- popup tạo hành trình: Ngày bay · Ngày về cùng hàng ---- */
  body.sales-shell #appView .jn-cdlg .jn-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; }
  body.sales-shell #appView .jn-cdlg .jn-grid .is-full { grid-column:1 / -1; }

  /* ---- màn soạn lịch trình tour (bước 10, toàn màn): tiêu đề trên + ✕, nút thao tác dính đáy ---- */
  body.sales-shell .tp-ov .tp-panel { position:relative; height:100dvh; }
  body.sales-shell .tp-ov .tp-bar { display:contents; }
  body.sales-shell .tp-ov .tp-bar-t { order:0; gap:4px 8px; padding:12px 56px 12px 14px; border-bottom:1px solid #EFE9DD; }
  body.sales-shell .tp-ov .tp-bar-t strong { font-size:16px; }
  body.sales-shell .tp-ov .tp-bar-t > span:not(.jn-chip) { font-size:13px; }
  body.sales-shell .tp-ov .tp-body { order:1; flex:1 1 auto; min-height:0; }
  body.sales-shell .tp-ov .tp-bar-acts { order:2; display:flex; flex-wrap:wrap; gap:8px; padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top:1px solid #EFE9DD; background:#fff; box-shadow:0 -6px 20px #392e221a; }
  body.sales-shell .tp-ov .tp-bar-acts:not(:has(button:not(.tp-x))) { padding:0; border:0; box-shadow:none; }
  body.sales-shell .tp-ov .tp-bar-acts button:not(.tp-x) { flex:1 1 auto; min-height:44px; padding:0 12px; border-radius:12px; font-size:14px; }
  body.sales-shell .tp-ov .tp-bar-acts button.primary { flex-grow:2; }
  body.sales-shell .tp-ov button.tp-x { position:absolute; top:4px; right:4px; z-index:2; display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0; border:0; font-size:24px; }
  body.sales-shell .tp-ov .tp-side { gap:12px; padding:12px; }
  body.sales-shell .tp-ov .tp-sec { padding:12px; }
  body.sales-shell .tp-ov .tp-main { gap:12px; padding:12px 12px 24px; }
  body.sales-shell .tp-ov .tp-title { font-size:18px; }
  body.sales-shell .tp-ov .tp-day { padding:12px; }
  body.sales-shell .tp-ov .tp-day header input { font-size:16px; }
  body.sales-shell .tp-ov .tp-it { grid-template-columns:120px minmax(0,1fr) 40px; gap:6px 8px; }
  body.sales-shell .tp-ov .tp-it textarea { grid-column:1 / -1; grid-row:2; font-size:16px; }
  body.sales-shell .tp-ov .tp-it .tp-del { grid-column:3; grid-row:1; }
  body.sales-shell .tp-ov .tp-del { width:40px; min-width:40px; height:40px; min-height:40px; padding:0; }
  body.sales-shell .tp-ov .tp-it + .jn-link, body.sales-shell .tp-ov .tp-day > .jn-link { min-height:40px; }
  body.sales-shell .tp-ov .tp-strip { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  body.sales-shell .tp-ov .tp-alt { padding:12px; }
  body.sales-shell .tp-pick .tp-pick-box { max-height:92dvh; border-radius:20px 20px 0 0; }
  body.sales-shell .tp-pick .tp-pick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:12px; }
  body.sales-shell .tp-pick .tp-x { width:44px; height:44px; min-height:44px; }
  body.sales-shell .tp-pick .tp-pick-del { min-width:32px; min-height:32px; }

  /* ---- hộp thoại lý do / xác nhận ---- */
  body.sales-shell dialog.jn-dlg header h2 { font-size:16px; font-weight:800; }
}

/* ===== MOBILE 11/2026 — ĐỢT 2: mật độ & căn chữ (docs/MOBILE-UI-SPEC.md "Đợt 2") ===== */
@media screen and (max-width: 760px) {
  /* ---- Tổng hợp: 5 ô số → một dải số 3 cột, kẻ ngăn ---- */
  body.sales-shell #appView .jn-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin:0 0 12px; overflow:hidden; border-radius:12px; background:#EADFCF; }
  body.sales-shell #appView .jn-tiles .jn-tile:last-child:nth-child(odd) { grid-column:auto; }
  body.sales-shell #appView .jn-tiles .jn-tile:last-child:nth-child(3n+2) { grid-column:span 2; }
  body.sales-shell #appView .jn-tiles::after { content:""; background:var(--m-wash); }
  body.sales-shell #appView .jn-tiles:has(> .jn-tile:last-child:nth-child(3n+1))::after { grid-column:span 2; }
  body.sales-shell #appView .jn-tiles:has(> .jn-tile:last-child:nth-child(3n+2))::after, body.sales-shell #appView .jn-tiles:has(> .jn-tile:last-child:nth-child(3n))::after, body.sales-shell #appView .jn-tiles:not(:has(> .jn-tile))::after { display:none; }
  body.sales-shell #appView .jn-tiles:not(:has(> .jn-tile)) { display:block; background:none; }
  body.sales-shell #appView :is(.jn-tile, button.jn-tile), body.sales-shell #appView button.jn-tile:hover { gap:2px; min-height:0; padding:8px 12px; border-radius:0; }
  body.sales-shell #appView .jn-tile > span { display:block; overflow:hidden; font-size:12px; font-weight:600; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
  body.sales-shell #appView .jn-tile > span svg { display:none; }
  body.sales-shell #appView .jn-tile > b { font-size:17px; line-height:1.25; }
  /* Việc hôm nay: dòng gọn, nhóm sát nhau */
  body.sales-shell #appView .jn-two { gap:16px; }
  body.sales-shell #appView .jn-side { gap:8px; }
  body.sales-shell #appView .jn-todo-g { gap:6px; }
  body.sales-shell #appView .jn-todo-g + .jn-todo-g { margin-top:6px; }
  body.sales-shell #appView .jn-todo-g h3 { margin:0; font-size:12px; font-weight:600; line-height:1.35; }
  body.sales-shell #appView .jn-todo-it { gap:8px; padding:8px 12px; }
  body.sales-shell #appView .jn-todo-tx > b { overflow:hidden; font-size:14px; font-weight:600; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
  body.sales-shell #appView .jn-todo-tx .jn-small { margin-top:0; overflow:hidden; font-size:12px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }

  /* ---- thẻ hành trình (Danh sách): 4 dòng — khách · Sale | tiền / chuyến · ngày bay→về | còn thiếu / tiến độ | visa / bước · người · hạn ---- */
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) tbody { gap:8px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) tr { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"cust money" "trip money" "prog prog" "step step"; gap:4px 10px; padding:12px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) tbody tr td.jn-c-cust { display:flex; align-items:baseline; gap:6px; min-width:0; overflow:hidden; white-space:nowrap; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-cust .jn-name { display:block; flex:0 1 auto; max-width:70%; min-width:0; overflow:hidden; font-size:15px; text-align:left; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-cust .jn-small { flex:1 1 0; min-width:0; margin:0; font-size:13px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-cust .jn-small::before { content:"· "; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) tbody tr td:is(.jn-trip, .jn-c-step) { overflow:hidden; color:var(--m-sub); font-size:13px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td:is(.jn-trip, .jn-c-step) > * { display:inline; margin:0; font-size:13px; line-height:1.35; white-space:nowrap; }
  body.sales-shell #appView .jn-main .jn-trip-t, body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-step .jn-step-cur { color:var(--m-ink); font-size:14px; font-weight:500; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td:is(.jn-trip, .jn-c-step) > .jn-small::before { content:" · "; color:var(--m-sub); }
  body.sales-shell #appView .jn-main .jn-trip-t .jn-chip { height:18px; padding:0 6px; vertical-align:1px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-step .jn-chip { height:20px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) tbody tr td.jn-c-prog { gap:8px; align-self:center; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-prog .jn-prog { flex:0 0 120px; width:120px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-prog .jn-prog i { height:6px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-prog .jn-small { font-size:12px; white-space:nowrap; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) tbody tr td.jn-c-money { align-self:start; text-align:right !important; white-space:nowrap; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-money .jn-money-top { font-size:14px; font-weight:700; line-height:1.25; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-money .jn-small { margin-top:4px; font-size:12px; line-height:1.35; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) tbody tr td.jn-c-visa { grid-area:prog; justify-self:end; align-self:center; max-width:132px; }
  body.sales-shell #appView .jn-main .jn-table:not(.jn-ctable) td.jn-c-visa .jn-chip { display:block; max-width:100%; height:20px; min-height:0; padding:0 8px; overflow:hidden; line-height:20px; text-overflow:ellipsis; white-space:nowrap; }

  /* ---- Lịch khởi hành: 3 dòng — khách · Sale | ngày / dịch vụ / visa · vé (nhãn liền chip) ---- */
  body.sales-shell #appView .jn-bm { gap:8px; margin-bottom:12px; }
  body.sales-shell #appView .jn-bm .jn-btable tbody { gap:8px; }
  body.sales-shell #appView .jn-bm .jn-btable tr { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"cust day" "svc svc" "visa ve"; gap:4px 10px; padding:12px; }
  body.sales-shell #appView .jn-bm .jn-btable tbody tr td.jn-c-cust { display:flex; align-items:baseline; gap:6px; min-width:0; overflow:hidden; white-space:nowrap; }
  body.sales-shell #appView .jn-bm .jn-btable td.jn-c-cust .jn-name { display:block; flex:0 1 auto; max-width:70%; min-width:0; text-align:left; overflow:hidden; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
  body.sales-shell #appView .jn-bm .jn-btable td.jn-c-cust .jn-small { flex:1 1 0; min-width:0; margin:0; overflow:hidden; font-size:13px; text-overflow:ellipsis; }
  body.sales-shell #appView .jn-bm .jn-btable td.jn-c-cust .jn-small::before { content:"· "; }
  body.sales-shell #appView .jn-bm .jn-tcard .jn-btable td.jn-bday { padding-top:0 !important; font-size:13px; }
  body.sales-shell #appView .jn-bm .jn-btable tbody tr td.jn-c-svc { overflow:hidden; color:var(--m-sub); text-overflow:ellipsis; white-space:nowrap; }
  body.sales-shell #appView .jn-bm .jn-btable tbody tr td:is(.jn-c-visa, .jn-c-ve) { display:flex; align-items:center; gap:6px; min-width:0; margin:0; }
  body.sales-shell #appView .jn-bm .jn-btable tbody tr td.jn-c-ve { justify-self:end; }
  body.sales-shell #appView .jn-bm .jn-btable td:is(.jn-c-visa, .jn-c-ve)[data-label]::before { flex:none; margin:0; font-size:12px; font-weight:600; }
  body.sales-shell #appView .jn-bm .jn-btable td:is(.jn-c-visa, .jn-c-ve) .jn-chip { height:20px; min-height:0; padding:0 8px; overflow:hidden; line-height:20px; text-overflow:ellipsis; white-space:nowrap; }
  body.sales-shell #appView .jn-bm-empty { padding:10px 12px; }

  /* ---- chi tiết: tiêu đề 1 dòng 18/800 "…", chip 1 hàng cuộn ngang ---- */
  body.sales-shell #appView :is(#workWorkspace, #rpRoot, #customerWorkspace) .hub-heading h1.jn-h1, body.sales-shell #appView .hub-heading h1.jn-h1 { display:block; overflow:hidden; font-size:18px; font-weight:800; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; -webkit-line-clamp:unset; }
  body.sales-shell #appView .jn-head-top { flex-wrap:nowrap; gap:6px; margin:0 -12px 12px; padding:0 12px; overflow-x:auto; scrollbar-width:none; }
  body.sales-shell #appView .jn-head-top::-webkit-scrollbar { display:none; }
  body.sales-shell #appView .jn-head-top > * { flex:none; }
  /* 4 ô thông tin: cặp nhãn 12 trên | giá trị 14 dưới, lưới 2 cột */
  body.sales-shell #appView .jn-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; margin:0 0 12px; padding:12px; }
  body.sales-shell #appView .jn-facts .jn-fact, body.sales-shell #appView .jn-facts button.jn-fact, body.sales-shell #appView .jn-facts .jn-fact:first-child, body.sales-shell #appView .jn-facts .jn-fact:nth-child(3) { gap:2px; padding:0; border:0 !important; background:none; }
  body.sales-shell #appView .jn-fact > span { font-size:12px; font-weight:600; line-height:1.35; }
  body.sales-shell #appView .jn-fact > b, body.sales-shell #appView .jn-fact .jn-link { font-size:14px; font-weight:600; line-height:1.35; }
  body.sales-shell #appView .jn-fact .jn-svc-line { display:block; }
  body.sales-shell #appView .jn-fact > small { font-size:12px; line-height:1.35; }
  body.sales-shell #appView .jn-facts .jn-money { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:8px; row-gap:2px; }
  body.sales-shell #appView .jn-facts .jn-money > span { grid-column:1; grid-row:1; }
  body.sales-shell #appView .jn-facts .jn-money > b.jn-paid { grid-column:1 / -1; grid-row:2; font-weight:500; }
  body.sales-shell #appView .jn-facts .jn-money > b:not(.jn-paid) { grid-column:2; grid-row:1; font-size:12px; font-weight:600; line-height:1.35; }
  body.sales-shell #appView .jn-facts .jn-money > .jn-pct { grid-column:1 / -1; grid-row:3; margin-top:4px; }
  /* mốc ngày: lưới 3 cột kẻ ngăn; cả ô bấm được để sửa (bút chì góc phải) */
  body.sales-shell #appView .jn-ancs { grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-flow:row dense; gap:1px; margin:0 0 12px; overflow:hidden; border-radius:12px; background:#EADFCF; }
  body.sales-shell #appView .jn-ancs .jn-anc, body.sales-shell #appView .jn-ancs .jn-anc:nth-child(n) { position:relative; display:block; padding:8px 10px; border:0; background:var(--m-wash); }
  body.sales-shell #appView .jn-ancs .jn-anc.is-edit { grid-column:1 / -1; padding:8px 10px; background:#fff; }
  body.sales-shell #appView .jn-anc-t { gap:2px; }
  body.sales-shell #appView .jn-anc-t > span { padding-right:12px; font-size:12px; font-weight:600; line-height:1.35; }
  body.sales-shell #appView .jn-anc-t > b { font-size:14px; font-weight:600; line-height:1.35; }
  body.sales-shell #appView .jn-ancs button.jn-pen { position:absolute; inset:0; z-index:1; display:flex; align-items:flex-start; justify-content:flex-end; width:auto; height:auto; min-height:0; padding:7px 7px 0 0; border-radius:0; background:transparent; color:#B5A58E; }
  body.sales-shell #appView .jn-ancs button.jn-pen:hover { background:transparent; }
  body.sales-shell #appView .jn-ancs button.jn-pen svg { width:12px; height:12px; }
  body.sales-shell #appView .jn-anchor { height:40px; min-height:40px; margin-top:2px; }
  /* 15 bước: mỗi bước ~48px — tên 14px + dòng phụ 12px trên 1 dòng */
  body.sales-shell #appView .jn-step-head { min-height:48px; gap:10px; padding:0 4px !important; }
  body.sales-shell #appView .jn-rail { flex:0 0 24px; padding-top:8px; }
  body.sales-shell #appView .jn-dot { width:24px; height:24px; font-size:11px; }
  body.sales-shell #appView .jn-dot svg { width:12px; height:12px; }
  body.sales-shell #appView .jn-st { display:grid; grid-template-columns:minmax(0,max-content) minmax(0,1fr); column-gap:6px; align-content:center; padding:4px 0; }
  body.sales-shell #appView .jn-st > b { grid-column:1 / -1; }
  body.sales-shell #appView .jn-st > .jn-ledger { align-self:center; min-width:0; margin:2px 0 0; overflow:hidden; color:var(--m-sub); font-size:12px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
  body.sales-shell #appView .jn-st > .jn-ledger::before { content:"· "; }
  body.sales-shell #appView .jn-st > b { overflow:hidden; font-size:14px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
  body.sales-shell #appView .jn-st-m { flex-wrap:nowrap; gap:6px; min-width:0; margin-top:2px; overflow:hidden; }
  body.sales-shell #appView .jn-st-m .jn-chip { flex:none; height:18px; padding:0 6px; font-size:12px; }
  body.sales-shell #appView .jn-st-m .jn-meta { flex:1 1 auto; min-width:0; overflow:hidden; font-size:12px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
  body.sales-shell #appView .jn-caret { align-self:center; }
  body.sales-shell #appView .jn-panel { margin:2px 0 8px; padding:0 12px 12px; }
  body.sales-shell #appView .jn-xi-head { min-height:44px; padding:8px 0; }
  body.sales-shell #appView .jn-xi-t { font-size:14px; line-height:1.35; }
  body.sales-shell #appView .jn-xi-t small { font-size:12px; }
  body.sales-shell #appView .jn-xis .jn-xi-panel, body.sales-shell #appView .jn-xi-panel { gap:8px; padding:0 0 12px; }
  body.sales-shell #appView .jn-xf > label { margin-bottom:2px; font-size:12px; font-weight:600; }
  body.sales-shell #appView .jn-history { margin-top:12px; }

  /* ---- Mẫu hành trình: thẻ gọn ---- */
  body.sales-shell #appView .jn-tpl-table tbody { gap:8px; }
  body.sales-shell #appView .jn-tpl-table tr { gap:8px; padding:12px; }
  body.sales-shell #appView .jn-tpl-table td[data-label]::before { margin-bottom:2px; font-size:12px; }
  body.sales-shell #appView .jn-tpl-label .jn-small { margin-top:4px; }
}
@media screen and (max-width: 760px) {
  body.sales-shell #appView .jn-step-body { gap:8px; }
  body.sales-shell #appView .jn-step-body > * { margin-top:0; margin-bottom:0; }
  body.sales-shell #appView .jn-xis + *, body.sales-shell #appView .jn-step-foot { margin-top:0; }
  body.sales-shell #appView .jn-xis { margin:0; }
}

/* ===== BÁO GIÁ TOUR (journeys-quote.js) — mục "Dự toán" bước 10, theo file Excel "CP Tour …" của công ty ===== */
@media screen {
  #appView .tq-card { display:grid; gap:10px; margin:0 16px 4px 46px; padding:12px 14px; border:1px solid #EFE9DD; border-radius:12px; background:#FBF8F3; }
  #appView .tq-card-h { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; }
  #appView .tq-card-h b { font-size:13.5px; color:#25211C; }
  #appView .tq-card .jn-small { margin:0; }
  #appView .tq-sum { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; }
  #appView .tq-sum-i { display:grid; gap:2px; padding:8px 10px; border-radius:10px; background:#fff; border:1px solid #EFE9DD; }
  #appView .tq-sum-i span { font-size:12px; color:#6F655A; }
  #appView .tq-sum-i b { font-size:14px; color:#25211C; font-variant-numeric:tabular-nums; }
  #appView .tq-sum-i.is-due { border-color:#D9B98A; background:#FFF8EC; }
  #appView .tq-sum-i.is-due b { color:#8A5F27; }
  @media (max-width:900px) { #appView .tq-card { margin:0 12px 4px; } }

  .tq-ov .tq-main { flex:1; min-height:0; overflow:auto; background:#FBF8F3; }
  .tq-ov .tq-doc { display:grid; gap:14px; width:min(1240px,100%); margin:0 auto; padding:16px; box-sizing:border-box; }
  .tq-ov .tq-sec { display:grid; gap:10px; padding:14px; border:1px solid #E6D9C6; border-radius:12px; background:#fff; }
  .tq-ov .tq-sec > * { min-width:0; }
  .tq-ov .tq-sec h3 { margin:0; font-size:14px; font-weight:800; color:#25211C; }
  .tq-ov .tq-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 14px; }
  .tq-ov .tq-f { display:grid; gap:4px; min-width:0; }
  .tq-ov .tq-f.is-wide { grid-column:1 / -1; }
  .tq-ov .tq-f > span { font-size:12px; font-weight:600; color:#6F655A; }
  .tq-ov input[type="text"], .tq-ov input[type="date"], .tq-ov input:not([type]), .tq-ov textarea, .tq-ov select { width:100%; min-width:0; box-sizing:border-box; min-height:36px; padding:7px 10px; border:1px solid #DCCFBC; border-radius:8px; background:#fff; font:inherit; font-size:13.5px; color:#25211C; }
  .tq-ov textarea { resize:none; overflow:hidden; line-height:1.45; }
  .tq-ov :is(input, textarea):focus { outline:2px solid rgba(169,120,58,.35); outline-offset:0; border-color:#a9783a; }
  .tq-ov :is(input, textarea):disabled, .tq-ov input[readonly] { background:#F7F3ED; color:#4A4138; }
  .tq-ov input.is-auto { background:#FBF8F3; color:#6F655A; }
  .tq-ov input.is-bad { border-color:#C0392B; background:#FFF3F1; }
  .tq-ov .tq-rate { display:flex; align-items:flex-end; flex-wrap:wrap; gap:8px 12px; }
  .tq-ov .tq-rate .tq-f { width:200px; }
  .tq-ov .tq-rate .jn-small { flex-basis:100%; margin:0; }
  .tq-ov .tq-rate-in { position:relative; display:block; }
  .tq-ov .tq-rate-in input { padding-right:26px; text-align:right; font-variant-numeric:tabular-nums; }
  .tq-ov .tq-rate-in em { position:absolute; right:10px; top:50%; transform:translateY(-50%); font-style:normal; font-size:12.5px; color:#8A7E70; pointer-events:none; }
  .tq-ov .tq-rate-vcb { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; }
  .tq-ov .tq-rate-vcb .jn-small { margin:0; }
  .tq-ov .tq-rate-p { min-height:30px; padding:4px 10px; border:1px solid #DCCFBC; border-radius:15px; background:#fff; font-size:12.5px; color:#4A4138; cursor:pointer; }
  .tq-ov .tq-rate-p b { color:#25211C; }
  .tq-ov .tq-rate-p.is-on { border-color:#a9783a; background:#FFF8EC; color:#8A5F27; }
  .tq-ov .tq-gh { display:flex; align-items:center; gap:10px; }
  .tq-ov .tq-gno { flex:0 0 auto; min-width:30px; font-weight:800; color:#8A5F27; }
  .tq-ov .tq-gh input { flex:1; font-weight:700; }
  .tq-ov .tq-gh b { flex:1; font-size:14px; }
  .tq-ov .tq-gsum { flex:0 0 auto; font-weight:800; color:#25211C; font-variant-numeric:tabular-nums; }
  .tq-ov .tq-gacts { display:flex; gap:4px; }
  .tq-ov .tq-ib { display:grid; place-items:center; width:30px; height:30px; min-height:0; padding:0; border:1px solid #E6D9C6; border-radius:8px; background:#fff; font-size:15px; line-height:1; color:#6F655A; cursor:pointer; }
  .tq-ov .tq-ib:hover:not(:disabled) { background:#F7F1E8; }
  .tq-ov .tq-ib.is-del:hover:not(:disabled) { color:#9B2F23; border-color:#E5B5AE; background:#FFF3F1; }
  .tq-ov .tq-ib:disabled { opacity:.35; cursor:default; }
  .tq-ov .tq-row { display:grid; grid-template-columns:110px minmax(180px,2.2fr) minmax(84px,.75fr) minmax(100px,.85fr) minmax(90px,.75fr) minmax(100px,.85fr) minmax(110px,1.1fr) 30px; gap:6px; align-items:start; }
  .tq-ov .tq-th { padding:0 0 2px; border-bottom:1px solid #EFE9DD; }
  .tq-ov .tq-th span { font-size:11.5px; font-weight:700; color:#8A7E70; text-transform:uppercase; letter-spacing:.02em; }
  .tq-ov .tq-th span:nth-child(n+3):nth-child(-n+6) { text-align:right; }
  .tq-ov .tq-c { display:block; min-width:0; }
  .tq-ov .tq-c > i { display:none; }
  .tq-ov .tq-c.is-date input { padding:7px 8px; font-variant-numeric:tabular-nums; }
  .tq-ov .tq-c:is(.is-jpy, .is-vnd, .is-support) input { text-align:right; font-variant-numeric:tabular-nums; }
  .tq-ov .tq-c.is-net { display:flex; align-items:center; justify-content:flex-end; min-height:36px; }
  .tq-ov .tq-c.is-net b { font-size:13.5px; font-variant-numeric:tabular-nums; color:#25211C; }
  .tq-ov .tq-add { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
  .tq-ov .tq-add select { width:auto; min-width:280px; }
  .tq-ov .tq-tot { gap:0; padding:6px 14px; }
  .tq-ov .tq-tr { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:42px; border-bottom:1px solid #F1ECE4; font-size:14px; }
  .tq-ov .tq-tr:last-child { border-bottom:0; }
  .tq-ov .tq-tr[hidden] { display:none; }
  .tq-ov .tq-tr > b { font-variant-numeric:tabular-nums; }
  .tq-ov .tq-tr.is-in > span:first-child { flex:1; max-width:420px; }
  .tq-ov .tq-tr.is-in .tq-rate-in { width:180px; }
  .tq-ov .tq-tr.is-due { font-weight:800; color:#8A5F27; font-size:15px; }
  .tq-ov .tq-ck { display:inline-flex; align-items:center; gap:8px; font-size:13.5px; color:#25211C; cursor:pointer; }
  .tq-ov .tq-ck input { width:16px; height:16px; margin:0; accent-color:#a9783a; }
  @media (max-width:900px) {
    .tq-ov { padding:0; }
    .tq-ov .tp-panel { height:100vh; border-radius:0; }
    .tq-ov .tq-doc { padding:12px; }
    .tq-ov .tq-grid { grid-template-columns:1fr 1fr; }
    .tq-ov .tq-th { display:none; }
    .tq-ov .tq-row { grid-template-columns:1fr 1fr 30px; grid-template-areas:"date date del" "text text text" "jpy vnd vnd" "sup net net" "note note note"; gap:6px 8px; padding:10px 0; border-bottom:1px dashed #E6D9C6; }
    .tq-ov .tq-c > i { display:block; margin-bottom:2px; font-style:normal; font-size:11.5px; font-weight:600; color:#8A7E70; }
    .tq-ov .tq-c.is-date { grid-area:date; } .tq-ov .tq-c.is-text { grid-area:text; } .tq-ov .tq-c.is-jpy { grid-area:jpy; } .tq-ov .tq-c.is-vnd { grid-area:vnd; }
    .tq-ov .tq-c.is-support { grid-area:sup; } .tq-ov .tq-c.is-net { grid-area:net; display:grid; justify-items:end; align-content:end; } .tq-ov .tq-c.is-note { grid-area:note; }
    .tq-ov .tq-row > .tq-ib, .tq-ov .tq-row > span:last-child { grid-area:del; align-self:end; }
    .tq-ov .tq-gh { flex-wrap:wrap; }
    .tq-ov .tq-gh input { flex-basis:calc(100% - 50px); }
    .tq-ov .tq-gsum { margin-left:auto; }
    .tq-ov .tq-add select { min-width:0; flex:1; }
    .tq-ov .tq-tr.is-in { flex-wrap:wrap; padding:8px 0; }
    .tq-ov .tq-tr.is-in > span:first-child { flex-basis:100%; max-width:none; }
    .tq-ov .tq-tr.is-in .tq-rate-in { width:100%; }
  }
  @media (max-width:560px) { .tq-ov .tq-grid { grid-template-columns:1fr; } }
}
/* Bản in / PDF báo giá: A4 dọc, bảng như file Excel mẫu */
@media print {
  #printRoot .tq-print { box-sizing:border-box; padding:0 1px; color:#000; font-family:'Plus Jakarta Sans','Inter',Arial,sans-serif; font-size:9.5pt; line-height:1.4; }
  #printRoot .tq-print * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  #printRoot .tq-p-logo { display:block; width:100%; height:auto; margin:0 0 5mm; }
  #printRoot .tq-print h1 { margin:0 0 4mm; text-align:center; font-size:16pt; font-weight:800; letter-spacing:.03em; color:#8A5F27; }
  #printRoot .tq-print h2 { margin:4mm 0 2mm; font-size:10.5pt; font-weight:800; }
  #printRoot .tq-p-h2 { display:flex; align-items:baseline; justify-content:space-between; gap:4mm; }
  #printRoot .tq-p-h2 span { font-size:10pt; }
  #printRoot .tq-print table { width:100%; border-collapse:collapse; }
  #printRoot .tq-p-tb { table-layout:fixed; font-size:8.8pt; }
  #printRoot .tq-print th, #printRoot .tq-print td { border:0.6pt solid #8C7B66; padding:1.4mm 1.8mm; vertical-align:top; text-align:left; }
  /* Ghi đè kiểu bảng in chung (app.css "#printRoot table / th / td"): màn xem trước không có các luật chung đó — phải giống hệt để ngắt trang khớp. */
  #printRoot .tq-print th { font-size:9pt; text-transform:none; letter-spacing:0; color:#000; }
  #printRoot .tq-print td { color:#000; }
  #printRoot .tq-p-info { table-layout:fixed; font-size:9pt; }
  #printRoot .tq-p-info th { background:#F5EFE6; font-weight:700; vertical-align:middle; }
  #printRoot .tq-p-info td { vertical-align:middle; }
  #printRoot .tq-p-info td.is-name { font-weight:700; text-transform:uppercase; }
  #printRoot .tq-p-info td.is-trip { text-align:center; font-style:normal; }
  #printRoot .tq-p-tb thead th { font-size:8pt; text-transform:uppercase; letter-spacing:.02em; background:#a9783a; color:#fff; font-weight:700; text-align:center; vertical-align:middle; }
  #printRoot .tq-p-tb .c-no { text-align:center; padding-left:.5mm; padding-right:.5mm; }
  #printRoot .tq-p-tb .c-date { text-align:center; white-space:nowrap; padding-left:.6mm; padding-right:.6mm; font-size:8.3pt; }
  #printRoot .tq-p-tb .c-n { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; padding-left:1.2mm; padding-right:1.4mm; }
  #printRoot .tq-p-tb thead .c-n { text-align:center; white-space:normal; }
  #printRoot .tq-p-tb .c-note { font-size:8pt; }
  #printRoot .tq-p-g td { background:#F5EFE6; font-weight:800; }
  #printRoot .tq-p-t td { font-weight:800; text-align:center; }
  #printRoot .tq-p-t td.c-n { text-align:right; }
  #printRoot .tq-p-t.is-due td { background:#FFF4E0; color:#8A5F27; }
  #printRoot .tq-p-note { margin:4mm 0 0; font-size:9pt; }
  #printRoot .tq-p-end { padding:5mm 0 2mm; break-inside:avoid; page-break-inside:avoid; }
  #printRoot .tq-p-date { margin:0; text-align:right; font-style:italic; line-height:1.6; }
  #printRoot .tq-p-sign { display:grid; grid-template-columns:1fr 1fr; margin:3mm 0 0; text-align:center; break-inside:avoid; page-break-inside:avoid; }
  #printRoot .tq-p-sign div { display:grid; gap:1mm; min-height:30mm; align-content:start; }
  #printRoot .tq-p-sign i { font-size:9pt; }
}

/* Báo giá tour — bảng nhập liệu kiểu bảng tính (09/11): ô cao bằng nhau, thẳng cột, ô nhập không viền riêng; nội dung dài thì cả hàng cao lên. */
@media screen {
  /* Tiêu đề hạng mục: tên như chữ đầu mục (viền hiện khi rê / sửa), tổng + nút gọn bên phải */
  .tq-ov .tq-grp { gap:12px; }
  .tq-ov .tq-gh { gap:8px; }
  .tq-ov .tq-gno { min-width:28px; font-size:14px; }
  .tq-ov .tq-gh input { min-height:34px; padding:5px 8px; border-color:transparent; background:transparent; font-size:14px; font-weight:800; letter-spacing:.01em; }
  .tq-ov .tq-gh input:hover:not(:disabled) { border-color:#E6D9C6; background:#fff; }
  .tq-ov .tq-gh input:focus { background:#fff; }
  .tq-ov .tq-gsum { min-width:120px; text-align:right; font-size:14.5px; }
  .tq-ov .tq-gacts .tq-ib { width:28px; height:28px; font-size:14px; }
}
@media screen and (min-width:901px) {
  .tq-ov .tq-tbl { border:1px solid #E6D9C6; border-radius:10px; overflow:hidden; background:#fff; }
  .tq-ov .tq-tbl .tq-row { gap:0; align-items:stretch; border-bottom:1px solid #EFE7DB; }
  .tq-ov .tq-tbl .tq-row:hover:not(.tq-th) { background:#FFFCF7; }
  .tq-ov .tq-tbl .tq-th { padding:0; background:#F7F1E8; border-bottom:1px solid #E6D9C6; }
  .tq-ov .tq-tbl .tq-th span { display:flex; align-items:center; min-height:34px; padding:0 10px; border-right:1px solid #EFE7DB; font-size:11px; letter-spacing:.03em; color:#7A6C5C; }
  .tq-ov .tq-tbl .tq-th span.is-n { justify-content:flex-end; text-align:right; }
  .tq-ov .tq-tbl .tq-th span:nth-last-child(-n+2) { border-right:0; }
  .tq-ov .tq-tbl .tq-c { display:flex; align-items:stretch; min-height:42px; border-right:1px solid #EFE7DB; }
  .tq-ov .tq-tbl .tq-c > :is(input, textarea) { flex:1; align-self:stretch; height:auto; min-height:42px; margin:0; padding:11px 10px; border:0; border-radius:0; background:transparent; font-size:13.5px; line-height:1.45; }
  .tq-ov .tq-tbl .tq-c > textarea { padding-top:11px; padding-bottom:9px; }
  /* Ô một dòng căn trên: chữ cùng hàng với dòng đầu của ô nội dung / ghi chú nhiều dòng */
  .tq-ov .tq-tbl .tq-c > input { align-self:flex-start; height:42px; padding-top:0; padding-bottom:0; }
  .tq-ov .tq-tbl .tq-c.is-date > input { padding:0 8px; }
  .tq-ov .tq-tbl .tq-c > :is(input, textarea):focus { outline:0; background:#fff; box-shadow:inset 0 0 0 2px #a9783a; }
  .tq-ov .tq-tbl .tq-c > :is(input, textarea):disabled { background:transparent; color:#25211C; }
  .tq-ov .tq-tbl .tq-c > input.is-auto { background:#FBF8F3; color:#6F655A; }
  .tq-ov .tq-tbl .tq-c > input.is-bad { background:#FFF3F1; box-shadow:inset 0 0 0 2px #C0392B; }
  .tq-ov .tq-tbl .tq-c > ::placeholder { color:#C9BCAA; }
  .tq-ov .tq-tbl .tq-c.is-net { align-items:flex-start; justify-content:flex-end; padding:11px 10px 0; background:#FBF8F3; }
  .tq-ov .tq-tbl .tq-c.is-net b { font-size:13.5px; line-height:1.45; }
  .tq-ov .tq-tbl .tq-c.is-note { border-right:0; }
  .tq-ov .tq-tbl .tq-c.is-x { align-items:flex-start; justify-content:center; padding-top:7px; border-right:0; }
  .tq-ov .tq-tbl .tq-c.is-x .tq-ib { border-color:transparent; background:transparent; color:#B5A58E; }
  .tq-ov .tq-tbl .tq-row:hover .tq-c.is-x .tq-ib:not(:disabled) { border-color:#E6D9C6; color:#6F655A; }
  .tq-ov .tq-tbl .tq-addrow { display:block; width:100%; min-height:38px; padding:0 12px; border:0; border-radius:0; background:#fff; box-shadow:none; text-align:left; font:inherit; font-size:13px; font-weight:700; color:#8A5F27; cursor:pointer; }
  .tq-ov .tq-tbl .tq-addrow:hover:not(:disabled) { background:#FFF8EC; }
  .tq-ov .tq-tbl .tq-row:last-of-type:not(.tq-th) + .tq-addrow, .tq-ov .tq-tbl .tq-th + .tq-addrow { border-top:0; }
}
@media screen and (max-width:900px) {
  .tq-ov .tq-tbl .tq-c.is-x { grid-area:del; align-self:end; }
  .tq-ov .tq-tbl .tq-addrow { margin-top:6px; padding:8px 0; border:0; background:none; box-shadow:none; font:inherit; font-size:13px; font-weight:700; color:#8A5F27; cursor:pointer; }
}

/* Xem trước (journeys-tour.js showPages): thanh "Căn chỉnh" — tỷ lệ % nội dung, lề mm, vừa 1 trang */
@media screen {
  .tp-pv [data-pv="adj"].is-on { border-color:#a9783a; background:#FFF8EC; color:#8A5F27; }
  .tp-pv .tp-pv-adj { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; padding:10px 16px; background:#fff; border-bottom:1px solid #EFE9DD; font-family:'Plus Jakarta Sans',system-ui,sans-serif; font-size:13px; color:#25211C; }
  .tp-pv .tp-pv-adj[hidden] { display:none; }
  .tp-pv .tp-pv-adj label { display:inline-flex; align-items:center; gap:8px; font-weight:700; }
  .tp-pv .tp-pv-step { display:inline-flex; align-items:center; border:1px solid #DCCFBC; border-radius:8px; overflow:hidden; background:#fff; }
  .tp-pv .tp-pv-step button { width:32px; height:34px; min-height:0; padding:0; border:0; border-radius:0; background:#F7F1E8; font-size:16px; color:#6F655A; cursor:pointer; box-shadow:none; }
  .tp-pv .tp-pv-step button:hover { background:#EFE4D3; }
  .tp-pv .tp-pv-step input { width:52px; height:34px; padding:0 2px; border:0; text-align:right; font:inherit; font-weight:700; font-variant-numeric:tabular-nums; -moz-appearance:textfield; }
  .tp-pv .tp-pv-step input::-webkit-inner-spin-button, .tp-pv .tp-pv-step input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
  .tp-pv .tp-pv-step em { padding:0 8px 0 3px; font-style:normal; font-weight:500; color:#8A7E70; }
  .tp-pv .tp-pv-adj > button { min-height:34px; }
  .tp-pv .tp-pv-adj-st { color:#6F655A; font-size:12.5px; }
  .tp-pv .tp-pv-win { overflow:hidden; }
}

/* Giá trị phân bổ lần này (chi tiết hành trình, 14/11/2026): bảng tiền từng dịch vụ + ô sửa tay + trạng thái phiếu hoa hồng nội bộ */
@media screen {
  #appView .jn-alloc { margin:0 0 20px; padding:16px 18px; }
  #appView .jn-alloc h2 { margin:0 0 10px; font-size:15px; font-weight:700; color:#25211C; }
  #appView .jn-alloc .tbl-wrap { overflow-x:auto; }
  #appView table.jn-al-t { width:100%; min-width:640px; border-collapse:collapse; font-size:13.5px; }
  #appView .jn-al-t th { padding:8px 10px; border-bottom:1px solid #EFE9DD; background:#FAF7F2; font-size:12.5px; font-weight:600; color:#6F655A; text-align:left; white-space:nowrap; }
  #appView .jn-al-t td { padding:9px 10px; border-bottom:1px solid #EFE9DD; vertical-align:top; color:#25211C; }
  #appView .jn-al-t :is(th, td).r { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
  #appView .jn-al-t td.c { width:44px; text-align:center; }
  #appView .jn-al-t td small { display:block; margin-top:2px; font-size:12px; font-weight:500; color:#6F655A; white-space:normal; }
  #appView .jn-al-t td small em { font-style:normal; font-weight:700; color:#9A6A2E; }
  #appView .jn-al-t tr.is-manual td { background:#FFFAF2; }
  #appView .jn-al-t tfoot td { border-bottom:0; font-weight:600; background:#FAF7F2; }
  #appView .jn-al-t tfoot tr + tr td { background:#F3EBD9; }
  #appView .jn-al-t tr.jn-al-edit td { background:#FFFAF2; }
  #appView .jn-al-form { display:grid; grid-template-columns:repeat(3,minmax(0,200px)) 1fr; gap:10px 14px; align-items:end; }
  #appView .jn-al-form label { display:flex; flex-direction:column; gap:4px; font-size:12.5px; font-weight:600; color:#6F655A; }
  #appView .jn-al-form :is(input, select) { min-height:38px; box-sizing:border-box; font-size:14px; }
  #appView .jn-al-form input { text-align:right; font-variant-numeric:tabular-nums; }
  #appView .jn-al-btns { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
  #appView .jn-al-form .jn-small { grid-column:1 / -1; margin:0; }
  #appView .jn-al-comm { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-top:12px; }
  #appView .jn-al-comm p { margin:0; }
  #appView .jn-al-ok { font-size:13px; font-weight:600; color:#2E6B33; }
  #appView .jn-svc-row .jn-svc-of { display:block; font-size:12px; font-weight:500; color:#6F655A; }
}
@media screen and (max-width: 760px) {
  #appView .jn-alloc { padding:14px 12px; }
  #appView .jn-al-form { grid-template-columns:1fr 1fr; }
  #appView .jn-al-btns { grid-column:1 / -1; }
}
