/* Portal đối tác (/portal, P49): khung cột trái (desktop) / thanh trên + thanh tab dưới (mobile), các khối Tổng quan, Chiến dịch,
   Doanh nghiệp. Chuyển từ portal-v2.css (bản thử) sang. Dùng lại biến và component của styles.css, app.css (.btn, .badge, .notice-*,
   .dropzone, .file-pill, .kv, .kpis, .bars, .dlg, .tbl, .choice, .task). Nhịp khoảng cách theo --sp-1/2/3, xếp khối
   bằng :is(...) > * + *. Thiết kế mobile trước. */

/* ---------- Khung trang ---------- */
.pv-shell { min-height: 100vh; }
.pv-skip:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }

.pv-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
.pv-logo { display: inline-flex; align-items: center; gap: 8px; flex: none; text-decoration: none !important; }
.pv-logo img { height: 26px; width: auto; }
.pv-logo .logo-tag { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.pv-top-biz { flex: 1; min-width: 0; display: flex; }
.pv-col { min-width: 0; }

.pv-side { display: none; }
.pv-main { width: 100%; max-width: 1008px; margin: 0 auto; padding: 20px var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
.pv-main:focus { outline: none; }

/* Thanh tab dưới (mobile) */
.pv-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.pv-tabbar:empty { display: none; }
.pv-tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 1px 7px; font-size: 10.5px; text-align: center; font-weight: 600; color: var(--muted); text-decoration: none; }
.pv-tabbar a .i { width: 22px; height: 22px; }
.pv-tabbar a > span:not(.pv-count) { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; } /* 4 mục ở 375px (P57: bỏ mục Thương hiệu): nhãn 1 dòng */
.pv-tabbar a[aria-current="page"] { color: var(--brand-700); }
.pv-tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.pv-tabbar .pv-count { position: absolute; top: 3px; left: calc(50% + 6px); }

.pv-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1; }

@media (min-width: 1024px) {
  .pv-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .pv-tabbar { display: none; }
  /* Thanh trên ở cột nội dung (P64): chỉ ô đổi doanh nghiệp, thẳng mép với nội dung (.pv-main tối đa 1008px, lề 32px); logo,
     tài khoản đã có ở cột trái */
  .pv-top { height: 64px; padding: 0 max(32px, calc((100% - 1008px) / 2 + 32px)); }
  .pv-top > .pv-logo, .pv-top > .pv-top-menu { display: none; }
  .pv-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px; padding: 20px 14px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
  .pv-main { padding: 32px 32px 72px; }
}

/* Ô đổi doanh nghiệp ở thanh trên (P64, thay thẻ doanh nghiệp ở cột trái vì tên pháp nhân thường dài): nút hiện doanh nghiệp đang
   xem (tên 1 dòng, MST), danh sách thả xuống hiện đủ tên, cuối danh sách "Đăng ký doanh nghiệp khác" */
.pv-bsw { min-width: 0; max-width: 100%; }
.pv-bsw-btn { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 5px 10px 5px 5px; border: 1px solid transparent; border-radius: var(--radius); color: var(--ink); }
summary.pv-bsw-btn:hover, .pv-bsw[open] > .pv-bsw-btn { background: var(--bg-soft); border-color: var(--line); }
summary.pv-bsw-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pv-bsw-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.pv-bsw-t { display: grid; min-width: 0; line-height: 1.3; }
.pv-bsw-t b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-bsw-t small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-bsw-btn > .i { flex: none; color: var(--muted); transition: transform 0.15s; }
.pv-bsw[open] > .pv-bsw-btn > .i { transform: rotate(180deg); }
.pv-menu-pop.pv-bsw-pop { left: 0; right: auto; width: min(520px, calc(100vw - 32px)); max-width: none; max-height: min(480px, calc(100vh - 96px)); overflow-y: auto; }
.pv-bsw-h { padding: 8px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.pv-menu-pop .pv-bsw-item { align-items: flex-start; }
.pv-bsw-item .pv-bsw-t b { white-space: normal; overflow-wrap: anywhere; font-weight: 600; } /* trong danh sách: đủ tên */
.pv-bsw-item[aria-current="true"] { background: var(--brand-50); }
.pv-bsw-item[aria-current="true"] .pv-bsw-t b { color: var(--brand-700); }
.pv-bsw-item > .i { flex: none; margin: 2px 0 0 auto; color: var(--brand); }
.pv-menu-pop .pv-bsw-add { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--brand-700); font-weight: 600; }
@media (max-width: 1023px) {
  .pv-bsw-ic { display: none; } /* thanh trên mobile chật: bỏ icon, giữ tên + MST */
  .pv-bsw-t b { font-size: 14px; }
  .pv-bsw-t small { font-size: 11.5px; }
  /* Danh sách bám đủ bề ngang màn hình ngay dưới thanh trên */
  .pv-menu-pop.pv-bsw-pop { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 140px); }
}

/* Sidebar (logo thương hiệu dùng ở thẻ thương hiệu, trang Doanh nghiệp) */
.pv-biz-logo { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; }
.pv-biz-logo.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; }
.pv-nav { display: grid; gap: 2px; }
.pv-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.pv-nav a:hover { background: var(--bg-soft); }
.pv-nav a .i { color: var(--muted); }
.pv-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.pv-nav a[aria-current="page"] .i { color: var(--brand); }
.pv-nav .pv-count { margin-left: auto; }
.pv-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.pv-proto-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Menu thả xuống (tài khoản, thao tác thêm) */
.pv-menu { position: relative; }
.pv-menu > summary { list-style: none; cursor: pointer; }
.pv-menu > summary::-webkit-details-marker { display: none; }
.pv-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: max-content; min-width: 220px; max-width: min(300px, calc(100vw - 32px)); padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 2px; }
/* Menu tài khoản ở cột trái: cột cuộn dọc (overflow-y) cắt cả trục ngang, popup bám đúng bề ngang cột để không bị cắt */
.pv-side .pv-menu-pop { top: auto; bottom: calc(100% + 6px); left: 0; right: 0; width: auto; min-width: 0; max-width: none; }
.pv-menu-pop .who { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pv-menu-pop .who b { display: block; color: var(--ink); font-size: 14px; }
.pv-menu-pop :is(a, button) { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; text-decoration: none; }
.pv-menu-pop :is(a, button):hover { background: var(--bg-soft); }
.pv-menu-pop .danger { color: var(--err); }
.pv-menu-pop .danger:hover { background: var(--err-50); }
.pv-acct { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--radius); }
.pv-acct:hover { background: var(--bg-soft); }
.pv-acct .t { min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; }

/* ---------- Bố cục trang ---------- */
:is(.pv-page, .pv-sec-body, .pv-sheet-body, .pv-wiz-body) > * + * { margin-top: var(--sp-3); }
:is(.pv-group, .pv-form-stack) > * + * { margin-top: var(--sp-2); }
.pv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.pv-head h1 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.pv-head h1:focus, .pv-camp-head h1:focus, .pv-empty h1:focus { outline: none; }
.pv-head p { margin-top: 4px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.pv-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pv-back:hover { color: var(--brand); text-decoration: none; }
.pv-sh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pv-sh h2 { font-size: 18px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.pv-sh-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } /* nút, nhãn bên phải tiêu đề phần (VD Thương hiệu) */
.pv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
@media (min-width: 640px) { .pv-card { padding: 24px; } }
.pv-card > h3, .pv-h3 { font-size: 16px; }
.pv-muted { color: var(--muted); font-size: 14px; }
.pv-miss { color: var(--warn); font-weight: 600; }
.pv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #a82232; }

/* ---------- Hành trình "Để ưu đãi được lên sóng" ---------- */
.pv-journey { border-color: var(--brand-200); background: linear-gradient(180deg, var(--brand-50), #fff 72%); }
.pv-journey-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; }
.pv-journey-top h2 { font-size: 18px; font-weight: 800; }
.pv-journey-top p { margin-top: 4px; font-size: 14px; color: var(--ink-2); max-width: 560px; }

/* Thanh bước ngang: nhãn ngắn, xuống dòng được, không tràn ngang trên mobile */
.pv-track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin-top: var(--sp-3); }
.pv-track li { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.pv-track li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.pv-track li:first-child::before { display: none; }
.pv-track .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font-weight: 700; font-size: 12px; color: var(--muted); }
.pv-track .dot .i { width: 14px; height: 14px; stroke-width: 3; }
.pv-track li.done::before, .pv-track li.current::before, .pv-track li.alert::before { background: var(--brand); }
.pv-track li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.pv-track li.current { color: var(--brand-700); font-weight: 700; }
.pv-track li.current .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-100); }
.pv-track li.alert { color: var(--err); font-weight: 700; }
.pv-track li.alert .dot { border-color: var(--err); color: var(--err); box-shadow: 0 0 0 5px var(--err-50); }
.pv-track .t { overflow-wrap: anywhere; }
.pv-track small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
/* Ngày dd/mm/yyyy luôn 1 dòng: .t có overflow-wrap: anywhere (cho nhãn) nên cột hẹp từng bẻ "30/09/202" + "6" */
.pv-track time { white-space: nowrap; }
/* Màn hẹp: mỗi cột chỉ ~59-72px, ngày 11.5px rộng ~73px → chữ phụ nhỏ lại cho ngày vừa cột, không đè sang bước bên cạnh */
@media (max-width: 399px) { .pv-track small { font-size: 11px; letter-spacing: -0.02em; } }
@media (max-width: 359px) { .pv-track small { font-size: 10px; } }
.pv-track a { color: inherit; }

/* Việc tiếp theo */
.pv-next { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: var(--sp-3); padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pv-next-t { flex: 1; min-width: min(100%, 220px); }
.pv-next-t small { display: block; font-size: 13px; color: var(--muted); }
.pv-next-t b { display: block; font-size: 16px; line-height: 1.35; }
.pv-next-t span { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 479px) { .pv-next .btn { width: 100%; } }
.pv-next-wrap { margin-top: var(--sp-3); }
.pv-next-wrap:empty { display: none; }
.pv-next-wrap > .pv-next { margin-top: 0; }
/* Báo cáo của chiến dịch đang chạy (P70): khối riêng dưới số liệu, lịch sử các lần gửi */
.pv-report > * + * { margin-top: var(--sp-3); }
.pv-rp-hist summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.pv-rp-hist ul { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: 6px; }
.pv-rp-hist li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; min-width: 0; }
.pv-rp-hist li a { overflow-wrap: anywhere; }
.pv-rp-hist li .i { flex: none; color: var(--muted); }
/* Đối tác đã xong mọi việc bắt buộc (P70): khối "Hoàn tất đăng ký!" */
.pv-done { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--ok-50); border: 1px solid #bfe5d2; border-radius: var(--radius); }
.pv-done-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; }
.pv-done-t { min-width: 0; }
.pv-done-t b { display: block; font-size: 18px; line-height: 1.35; color: var(--ok); }
.pv-done-t p { margin: 6px 0 0; color: var(--ink); }
.pv-done-st { display: flex; align-items: center; gap: 6px; margin-top: var(--sp-2); font-size: 14px; color: var(--ink-2); }
.pv-done-st .i { flex: none; color: var(--ok); }
@media (max-width: 479px) { .pv-done { padding: 14px 16px; gap: 10px; } .pv-done-ic { width: 32px; height: 32px; } }

/* ---------- Danh sách dạng hàng (việc cần làm, ưu đãi, thiết lập) ---------- */
.pv-list { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pv-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; color: var(--ink); text-decoration: none !important; border-top: 1px solid var(--line); }
.pv-list > li:first-child > .pv-row { border-top: 0; }
a.pv-row:hover { background: var(--bg-soft); }
a.pv-row:focus-visible { outline-offset: -3px; }
.pv-row-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.pv-row-ic.urbox { background: var(--info-50); color: var(--info); }
.pv-row-ic.ok { background: var(--ok-50); color: var(--ok); }
.pv-row-ic.err { background: var(--err-50); color: var(--err); }
.pv-row-ic.mute { background: var(--bg-soft); color: var(--muted); }
.pv-row-t { min-width: 0; }
.pv-row-t > b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pv-row-t > .sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pv-row-r { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.pv-owner { padding: 2px 8px; font-size: 12px; }
.pv-more { display: block; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: #fff; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pv-more:hover { background: var(--bg-soft); }
@media (max-width: 400px) { .pv-row { padding: 12px; gap: 10px; } }
/* Màn rộng: hàng cùng nhịp với hộp việc (.task: icon 40px, lề 20px) để các danh sách trên một trang thẳng cột */
@media (min-width: 640px) {
  .pv-row, .pv-tg-h { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; padding: 14px 20px; }
  .pv-row-ic, .pv-tg-h .pv-camp-ic, .pv-tg-ic { width: 40px; height: 40px; border-radius: 12px; }
}
/* Việc cần làm chia nhóm (P54): nhóm Doanh nghiệp và từng chiến dịch, mỗi nhóm một khối: đầu nhóm + danh sách việc */
.pv-tgs { display: grid; gap: 12px; }
.pv-tg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pv-tg > .pv-list { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.pv-tg-h { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; background: var(--bg-soft); color: var(--ink); text-decoration: none !important; }
a.pv-tg-h:hover { background: var(--brand-50); }
a.pv-tg-h:focus-visible { outline-offset: -3px; }
.pv-tg-h .pv-camp-ic, .pv-tg-ic { width: 36px; height: 36px; border-radius: 10px; }
.pv-tg-ic { display: grid; place-items: center; background: #fff; color: var(--brand); border: 1px solid var(--line); } /* icon card Doanh nghiệp */
.pv-tg-t { min-width: 0; }
.pv-tg-t > b { display: block; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.pv-tg-t > span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pv-more-out { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (max-width: 400px) { .pv-tg-h { padding: 12px; gap: 10px; } }
/* Việc trong card Việc cần làm (P60): chấm tròn (bullet) ở cột icon, canh giữa dưới icon đầu card, ngang dòng tên việc */
.pv-row-dot { justify-self: center; align-self: start; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--brand); }
.pv-row-dot:is(.urbox, .info) { background: var(--info); }

/* ---------- Tổng quan (P60): Số liệu chiến dịch (Việc cần làm dùng card .pv-tg ở trên) ---------- */
.pv-group > .pv-sh-sub { margin-top: var(--sp-3); }
.pv-sh-sub h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.pv-sh-sub .hint { font-size: 13px; }
/* Tình trạng chiến dịch: thanh chia mỏng (mỗi đoạn một nhóm trạng thái, độ dài theo số chiến dịch) + ô số, bấm mở danh sách lọc sẵn */
.pv-stc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pv-stc-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 16px 16px 0; }
.pv-stc-top b { font-size: 16px; }
.pv-stc-top span { font-size: 13px; color: var(--muted); }
.pv-seg { display: flex; gap: 2px; height: 8px; margin: 12px 16px 0; }
.pv-seg i { flex: 1 1 0; min-width: 6px; border-radius: 4px; }
.pv-stc .t-warn { background: var(--warn); }
.pv-stc .t-info { background: var(--info); }
.pv-stc .t-ok { background: var(--ok); }
.pv-stc .t-mute { background: color-mix(in srgb, var(--muted) 45%, #fff); }
.pv-stc-cells { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 16px; border-top: 1px solid var(--line); background: var(--line); }
@media (min-width: 640px) { .pv-stc-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pv-stc-cells > li { display: grid; background: #fff; }
.pv-stc-cells :is(a, div) { display: grid; align-content: start; gap: 2px; padding: 12px 16px 14px; color: var(--ink); text-decoration: none !important; }
.pv-stc-cells a:hover { background: var(--bg-soft); }
.pv-stc-cells a:focus-visible { outline-offset: -3px; }
.pv-stc-cells .n { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pv-stc-cells .sw { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.pv-stc-cells .l { font-size: 14px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.pv-stc-cells .s { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.pv-stc-cells .is-zero .n { color: var(--muted); }
@media (max-width: 400px) { .pv-stc-cells :is(a, div) { padding: 12px; } }
/* Hiệu quả theo chiến dịch: tên + trạng thái, thanh voucher đã dùng / đã phát (xuống dưới tên trên màn hẹp) */
.pv-perf { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 14px 16px; color: var(--ink); text-decoration: none !important; border-top: 1px solid var(--line); }
.pv-list > li:first-child > .pv-perf { border-top: 0; }
a.pv-perf:hover { background: var(--bg-soft); }
a.pv-perf:focus-visible { outline-offset: -3px; }
.pv-perf .pv-camp-ic { width: 36px; height: 36px; border-radius: 10px; }
.pv-perf-t { min-width: 0; }
.pv-perf-t > b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pv-perf-t > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pv-perf-m { grid-column: 2; min-width: 0; }
.pv-perf-m .pv-camp-stat b { font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .pv-perf { grid-template-columns: 36px minmax(0, 1fr) minmax(200px, 38%); gap: 16px; }
  .pv-perf-m { grid-column: auto; }
}
@media (max-width: 400px) { .pv-perf { padding: 12px; gap: 10px; } }
/* Phân loại chiến dịch (Sponsored / Voucher) trong thẻ, đầu nhóm việc và chip ở chi tiết chiến dịch */
.pv-camp-t span.cls-tag, .pv-tg-t span.cls-tag { display: inline-flex; vertical-align: 1px; margin-right: 2px; }
.pv-chip.cls-promotion { border-color: #dccbf3; background: var(--brand-50); color: var(--brand-700); }
.pv-chip.cls-voucher { border-color: #c4dbf6; background: var(--info-50); color: var(--info); }

/* Ưu đãi */
.pv-offer { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; }
.pv-offer .oi-meta { display: block; }
.pv-offer .oi-facts { display: flex; }
.pv-offer .pv-chev { margin-top: 10px; color: var(--muted); }
.pv-offer.is-off { opacity: 0.65; }
.pv-blockers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.pv-block { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--warn-50); color: var(--warn); font-weight: 600; }
.pv-block .i { width: 14px; height: 14px; }
.pv-block.urbox { background: var(--info-50); color: var(--info); }

/* ---------- Thẻ chiến dịch ---------- */
.pv-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pv-camp { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none !important; transition: border-color 0.15s, box-shadow 0.15s; }
a.pv-camp:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.pv-camp-top { display: flex; align-items: flex-start; gap: 12px; }
.pv-camp-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.pv-camp-t { flex: 1; min-width: 0; }
/* Tên ưu đãi tối đa 2 dòng (tên đầy đủ ở title), thẻ cạnh nhau cao đều hơn */
.pv-camp-t b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.pv-camp-t > span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
/* Dòng phụ (P64): phân loại, kênh, mã chiến dịch (nhãn nhỏ, tra cứu khi liên hệ UrBox); hẹp thì mã xuống dòng gọn, không dấu phân cách treo */
.pv-camp-t > .pv-camp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pv-camp-code { padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 18px; letter-spacing: .02em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Thông tin chính (P64): cột nhãn nhỏ / giá trị đậm, các cột chia đều bề ngang thẻ, giá trị dài tự xuống dòng */
.pv-camp-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; align-self: start; }
.pv-camp-fact { display: grid; gap: 2px; align-content: start; min-width: 0; }
.pv-camp-fact small { font-size: 12px; color: var(--muted); }
.pv-camp-fact b { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.pv-camp-fact > span { font-size: 12px; font-weight: 600; }
.pv-camp-fact > .is-warn { color: var(--warn); }
.pv-camp-fact > .is-err { color: var(--err); }
/* Chân thẻ theo trạng thái, luôn nằm đáy thẻ */
.pv-camp-foot { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pv-camp-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pv-camp-row b, .pv-camp-sum b { color: var(--ink); }
.pv-camp-prog { display: grid; }
.pv-camp-next { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.pv-camp-next > span { flex: 1; min-width: 0; }
.pv-camp-next b { color: var(--brand-700); }
.pv-camp-next > .i { color: var(--brand); transition: transform 0.15s; }
a.pv-camp:hover .pv-camp-next > .i { transform: translateX(2px); }
.pv-camp-line { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-2); }
.pv-camp-line > .i { margin-top: 1px; }
.pv-camp-line.is-ok { color: var(--ok); font-weight: 600; }
.pv-camp-line.is-warn { color: var(--warn); }
.pv-camp-line.is-err { color: var(--err); font-weight: 600; }
.pv-camp-line.is-info > .i { color: var(--info); }
.pv-camp-line.is-brand { color: var(--brand-700); font-weight: 600; }
.pv-camp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pv-camp-kpi { display: grid; gap: 4px; align-content: start; min-width: 0; }
.pv-camp-kpi small { font-size: 12px; color: var(--muted); }
.pv-camp-kpi b { font-size: 17px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.pv-camp-kpi b span { font-size: 13px; font-weight: 500; color: var(--muted); }
.pv-camp-stat { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.pv-camp-stat b { color: var(--ink); }
.pv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pv-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); font-size: 12.5px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.pv-chip .i { width: 14px; height: 14px; }
.pv-chip.ch { border-color: #ffd36b; background: var(--accent-50); color: #7a5000; }
.pv-meter { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pv-meter i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; }
.pv-meter.ok i { background: var(--ok); }
.pv-meter.warn i { background: var(--warn); }
.pv .kpi .v { font-size: clamp(19px, 5vw, 24px); overflow-wrap: anywhere; }

/* Bộ lọc, tab */
.pv-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pv-filter { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pv-filter b { font-size: 12px; padding: 0 7px; border-radius: 999px; background: var(--bg-soft); }
/* Nhóm lọc thêm khi mở từ ô tình trạng ở Tổng quan (P62): "Đang xem Cần bổ sung · 3 chiến dịch" + Bỏ lọc */
.pv-subfilter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--brand-50); font-size: 14px; color: var(--ink-2); }
.pv-filters + .pv-subfilter { margin-top: var(--sp-2); }
.pv-subfilter b { color: var(--brand-700); }
.pv-subfilter .link-btn { display: inline-flex; align-items: center; gap: 4px; }
.pv-filter[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.pv-filter[aria-pressed="true"] b { background: var(--brand); color: #fff; }
.pv-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pv-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.pv-tabs a:hover { color: var(--ink-2); }
.pv-tabs a[aria-current="page"] { color: var(--brand-700); border-bottom-color: var(--brand); }
.pv-tabs .pv-count { background: var(--bg-soft); color: var(--ink-2); }

/* Đầu trang chiến dịch */
.pv-camp-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px 14px; align-items: start; }
.pv-camp-head .pv-camp-ic { width: 52px; height: 52px; border-radius: 14px; }
.pv-camp-head h1 { font-size: clamp(21px, 3vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.pv-camp-head .pv-chips { margin-top: 8px; }
.pv-camp-head > .pv-actions { grid-column: 1 / -1; }
@media (min-width: 768px) { .pv-camp-head { grid-template-columns: 52px minmax(0, 1fr) auto; } .pv-camp-head > .pv-actions { grid-column: auto; } }

/* ---------- Doanh nghiệp: thẻ mục ---------- */
.pv-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); scroll-margin-top: 72px; transition: box-shadow 0.4s; }
.pv-sec.flash { box-shadow: 0 0 0 4px var(--brand-100); }
.pv-sec-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 18px 20px; }
.pv-sec-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.pv-sec.is-ok .pv-sec-ic { background: var(--ok-50); color: var(--ok); }
.pv-sec-head h2 { font-size: 17px; }
.pv-sec-head p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.pv-sec-body { padding: 0 20px 20px; }
@media (max-width: 559px) {
  .pv-sec-head { grid-template-columns: 36px minmax(0, 1fr); padding: 16px; }
  .pv-sec-ic { width: 36px; height: 36px; }
  .pv-sec-head > .badge { grid-column: 2; justify-self: start; }
  .pv-sec-body { padding: 0 16px 16px; }
}
.pv-part { display: grid; gap: var(--sp-2); }
.pv-part + .pv-part { padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.pv-part-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.pv-part-head h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.pv-part-head .pv-ok { color: var(--ok); }
.pv-part-head .pv-todo { color: var(--warn); }
.pv-kv { margin: 0; }
.pv-kv .kv { padding: 9px 0; }
.pv-kv .kv dd { font-weight: 500; overflow-wrap: anywhere; }
.pv-kv .kv dd .badge { margin-left: 4px; vertical-align: middle; }
.pv-brand { display: flex; align-items: center; gap: 14px; }
.pv-brand b { display: block; font-size: 17px; }
.pv-brand > div span { font-size: 14px; color: var(--muted); } /* chỉ dòng chữ, không đè màu chữ viết tắt trên logo */
/* Danh sách thương hiệu ngang hàng (P52): thẻ từng thương hiệu, hộp thoại thêm / sửa có logo */
.pv-brand-card { display: grid; gap: var(--sp-2); align-content: start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.pv-brand-card .pv-brand > div { min-width: 0; }
.pv-brand-card .pv-brand b { overflow-wrap: anywhere; }
@media (min-width: 560px) { .pv-brand-card .kv { grid-template-columns: 88px minmax(0, 1fr); } } /* thẻ nửa bề ngang: cột nhãn hẹp, mô tả đủ chỗ */
.pv-brand-miss { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--warn); }
.pv-brand-miss .i { flex: none; margin-top: 3px; }
.pv-brand-act { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-brand-assets { display: inline-flex; gap: 6px; align-items: center; justify-self: start; font-size: 14px; font-weight: 600; }
.pv-brand-assets.is-ok { color: var(--ok); }
.pv-brand-assets.is-warn { color: var(--warn); }
.pv-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-logo-row { display: flex; gap: 14px; align-items: center; }
.pv-logo-up { display: grid; gap: 6px; justify-items: start; min-width: 0; }
#bdIntroHint.is-err { color: var(--err); }
/* Mục Thương hiệu: mô tả giữ xuống dòng như đối tác nhập; khối được dẫn tới (#/thuong-hieu/brands) sáng viền một lúc */
.pv-pre { white-space: pre-line; }
.pv-card.flash { box-shadow: 0 0 0 4px var(--brand-100); }
.pv-intro { font-size: 15px; color: var(--ink-2); }
.pv-thumbs { display: grid; gap: 8px; }
.pv-lock { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--bg-soft); border: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.pv-lock .i { color: var(--muted); margin-top: 2px; }
.pv-lock b { display: block; color: var(--ink); font-size: 15px; }
.pv-howto { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }

/* Form sửa trong thẻ */
.pv-form > * + * { margin-top: var(--sp-3); }
.pv-form :is(.field, .field-row) + :is(.field, .field-row) { margin-top: var(--sp-3); }
.pv-form .field { gap: var(--sp-1); }
.pv-form .field-row { gap: var(--sp-3) 16px; }
.pv-form .field-row > .field + .field { margin-top: 0; }
.pv-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-form .pv-num { max-width: 180px; }
.pv-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-roles label { cursor: pointer; }
.pv-roles input { accent-color: var(--brand); }
.pv-up { display: grid; gap: var(--sp-1); }
/* Ô tải file dùng được bằng bàn phím: input phủ trong suốt thay vì display:none */
.pv .dropzone { position: relative; }
.pv .dropzone input { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pv .dropzone:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.pv .dropzone.busy { pointer-events: none; opacity: 0.7; }
.pv .dropzone.sm { padding: 14px 16px; }
.pv .file-pill .name { color: var(--ink); }

/* Cửa hàng */
.pv-store-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pv-store-tools .input-ic { flex: 1; min-width: min(100%, 220px); }
.pv-store-tools .input { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.pv .tbl td { overflow-wrap: anywhere; }
.pv .tbl .fix { min-width: 180px; }

/* Thành viên */
.pv-members { list-style: none; display: grid; gap: 0; }
.pv-members li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pv-members li:first-child { border-top: 0; }
.pv-members .avatar { width: 36px; height: 36px; font-size: 14px; background: var(--brand-100); color: var(--brand-700); }
.pv-members .t { flex: 1; min-width: 0; font-size: 14px; }
.pv-members .t b { display: block; overflow-wrap: anywhere; }
.pv-members .t span { color: var(--muted); font-size: 13px; }

/* ---------- Ngăn chi tiết, hộp thoại ---------- */
.dlg.pv-sheet { width: min(560px, 100%); }
@media (min-width: 640px) {
  .dlg.pv-sheet { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .dlg.pv-sheet .dlg-foot { border-radius: 0 0 0 var(--radius-lg); }
  .dlg.pv-sheet[open] { animation: pv-slide 0.2s ease-out; }
}
@keyframes pv-slide { from { transform: translateX(32px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dlg.pv-sheet[open] { animation: none; } }
.pv-sheet-title { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pv-sheet-title h2 { overflow-wrap: anywhere; }
.pv-sheet .dlg-foot { flex-wrap: wrap; }
.pv-vsteps { list-style: none; display: grid; gap: 12px; }
.pv-vsteps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; color: var(--muted); }
.pv-vsteps .d { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: #fff; }
.pv-vsteps .d .i { width: 13px; height: 13px; stroke-width: 3; }
.pv-vsteps li.done { color: var(--ink-2); }
.pv-vsteps li.done .d { background: var(--ok); border-color: var(--ok); color: #fff; }
.pv-vsteps li.wait .d { border-color: var(--warn); color: var(--warn); }
.pv-vsteps li.urbox .d { border-color: var(--info); color: var(--info); }
.pv-vsteps b { display: block; color: var(--ink); font-weight: 600; }
.pv-vsteps a { font-weight: 600; }
.dlg.pv-confirm { width: min(460px, calc(100% - 32px)); }
@media (max-width: 639px) {
  .dlg.pv-confirm { width: calc(100% - 32px); height: fit-content; max-height: calc(100dvh - 32px); margin: auto; border-radius: var(--radius-lg); }
  .dlg.pv-confirm .dlg-foot { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}
.pv-confirm .dlg-body p { color: var(--ink-2); }
.pv-confirm .dlg-body > * + * { margin-top: var(--sp-2); }

/* ---------- Tạo chiến dịch ---------- */
.pv-types { display: grid; gap: 12px; }
@media (min-width: 640px) { .pv-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pv-type { display: grid; gap: 10px; align-content: start; padding: 20px; border: 1.5px solid var(--line-2); border-radius: var(--radius-lg); background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.pv-type:hover { border-color: var(--brand); background: var(--brand-50); }
.pv-type[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.pv-type b { font-size: 17px; }
.pv-type p { font-size: 14px; color: var(--ink-2); }
.pv-type .pv-camp-ic { width: 48px; height: 48px; }
.pv-ticks { list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pv-ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.pv-ticks .i { width: 16px; height: 16px; margin-top: 3px; color: var(--ok); }
.pv-wiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
@media (max-width: 479px) { .pv-wiz-foot .btn-primary { flex: 1; } }
.pv-soon { opacity: 0.6; }
.pv-soon .choice-body { cursor: default; border-style: dashed; }
.pv-sum { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius); background: var(--bg-soft); }
.pv-sum .kv { padding: 6px 0; }
.pv-terms { max-height: 260px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }

/* ---------- Trạng thái rỗng, đang tải, hỗ trợ ---------- */
.pv-empty { display: grid; justify-items: center; gap: var(--sp-2); padding: 40px 20px; text-align: center; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.pv-empty-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.pv-empty :is(h1, h2) { font-size: 19px; font-weight: 800; }
.pv-empty p { max-width: 460px; color: var(--muted); font-size: 15px; }
.pv-empty .btn { margin-top: 8px; }
.pv-skel { display: grid; gap: 16px; }
.pv-skel .skeleton.h { height: 30px; width: 45%; }
.pv-skel .skeleton.card { height: 150px; border-radius: var(--radius-lg); }


/* ---------- Đăng nhập, chưa có doanh nghiệp, đang tải ---------- */
body.pv { background: var(--bg-soft); }
.pv-login .login { padding: 24px var(--gutter) 48px; }
.pv-solo { max-width: 560px; margin: 0 auto; padding: 48px var(--gutter); }
.pv-loading { display: grid; place-items: center; min-height: 60vh; color: var(--brand); }
.pv-center { justify-content: center; }
.pv-spin { color: var(--brand); margin-top: 2px; }

/* ---------- Thẻ doanh nghiệp + đổi công ty ---------- */
.pv-biz-logo { overflow: hidden; }
.pv-biz-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pv-biz-logo:has(img) { background: #fff; border: 1px solid var(--line); } /* logo nền trắng / trong suốt vẫn thấy khung */
.pv-biz-logo:has(> svg) { background: var(--brand-50); color: var(--brand); } /* chưa có logo, chưa có tên: ô chờ nhạt */
.pv-count.mute { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.pv-tabbar .pv-count.mute { display: none; }

/* ---------- Thẻ chiến dịch ---------- */
.pv-camp-ic.vibrant { background: var(--accent-50); color: var(--accent-600); }
.pv-camp-ic.voucher { background: var(--info-50); color: var(--info); }
.pv-camp.is-off { opacity: 0.7; }
.pv-camp-head h1 { overflow-wrap: anywhere; }

/* ---------- Việc thiết lập ---------- */
.pv-tasks { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pv-tasks > .task { scroll-margin-top: 72px; transition: box-shadow 0.4s; }
.pv-tasks > .task.flash { box-shadow: inset 0 0 0 3px var(--brand-100); }
.pv-tgroup + .pv-tgroup { margin-top: var(--sp-3); }
.pv-tgroup-h { display: flex; align-items: center; gap: 8px; margin-bottom: var(--sp-1); font-size: 13px; font-weight: 600; color: var(--muted); }
.pv-tgroup-h > span { min-width: 22px; padding: 0 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; text-align: center; }
.task-t b { overflow-wrap: anywhere; }
.pv .task-body > * { min-width: 0; }
.pv-contract { height: 640px; }
@media (max-width: 639px) { .pv-contract { height: 480px; } }
.pv-more-box { border: 1px solid var(--line); border-radius: var(--radius); }
.pv-more-box > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--brand-700); }
.pv-more-box > summary::-webkit-details-marker { display: none; }
.pv-more-box[open] > summary { border-bottom: 1px solid var(--line); }
.pv-more-box > :not(summary) { margin: 12px 14px; }
.pv-more-box[open] > .tpl-actions { margin-bottom: 14px; }
.pv-fixed { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-soft); font-size: 14px; color: var(--ink-2); }
.pv-fixed .i { color: var(--brand); margin-top: 3px; flex: none; }
.pv-commit { padding: 12px 14px; border-radius: var(--radius); background: var(--brand-50); }
.pv-num { max-width: 160px; }
.pv-err-txt { color: var(--err); }
.pv .pv-fix { min-width: 200px; }
.pv-pad { padding: 10px 14px; }
.pv .notice .grow { flex: 1 1 240px; min-width: 0; }
.pv .notice:has(.grow) { flex-wrap: wrap; align-items: center; }

/* ---------- Chi tiết chiến dịch ---------- */
.pv-checks { list-style: none; display: grid; gap: 10px; }
.pv-checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; }
.pv-checks li > .i { margin-top: 2px; }
.pv-checks li.ok > .i { color: var(--ok); }
.pv-checks li.warn > .i { color: var(--warn); }
.pv-checks b { display: block; font-weight: 600; }
.pv-checks small { display: block; color: var(--muted); font-size: 13px; }
/* Nội dung chiến dịch: thẻ voucher (nền tím để vết cắt của thẻ hiện đúng) + 3 con số chính; chi tiết chia nhóm; thể lệ thu gọn */
.pv-cc { display: grid; gap: var(--sp-3); }
.pv-cc-top { display: grid; gap: var(--sp-3); align-items: center; }
.pv-cc-visual { margin: 0; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, var(--brand-700), var(--brand) 75%); }
.pv-cc-visual figcaption { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #fff; opacity: 0.92; }
.pv-cc-visual .vp-title { font-size: 18px; }
.pv-cc-facts { list-style: none; display: grid; gap: var(--sp-1); }
.pv-cc-facts li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg-soft); }
.pv-cc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--brand); }
.pv-cc-k { font-size: 14px; color: var(--ink-2); }
.pv-cc-facts b { font-size: 16px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pv-cc-groups { display: grid; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.pv-cc-g h3 { margin-bottom: var(--sp-2); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pv-cc-g dl { margin: 0; display: grid; gap: var(--sp-2); }
.pv-cc-g dt { font-size: 13px; color: var(--muted); }
.pv-cc-g dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pv-cc-terms { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.pv-cc-terms > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; }
.pv-cc-terms > summary::-webkit-details-marker { display: none; }
.pv-cc-terms > summary .hint { font-weight: 500; }
.pv-cc-terms > summary > .i { flex: none; color: var(--muted); transition: transform 0.2s; }
.pv-cc-terms[open] > summary > .i { transform: rotate(180deg); }
.pv-cc-terms ol { margin: var(--sp-2) 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pv-cc-lock { display: flex; align-items: flex-start; gap: 6px; }
.pv-cc-lock .i { flex: none; margin-top: 2px; }
@media (max-width: 639px) { .pv-cc-g + .pv-cc-g { padding-top: var(--sp-3); border-top: 1px dashed var(--line); } }
@media (min-width: 640px) {
  .pv-cc-groups { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-3) 24px; }
}
@media (min-width: 900px) {
  .pv-cc-top { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; }
}
.pv-bars { grid-template-columns: repeat(auto-fit, minmax(28px, 1fr)); }
.pv-empty-sm { padding: 24px 20px; }
.pv-new .cf { margin-bottom: var(--sp-3); }
.pv-wl-both { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.pv-wiz-foot .btn-primary { margin-left: auto; }
.pv-nowrap { white-space: nowrap; }
/* Dòng việc có nhãn trạng thái (việc doanh nghiệp ở chi tiết chiến dịch): màn hẹp đưa nhãn xuống dưới tên, như .task */
@media (max-width: 559px) {
  .pv-row:has(.pv-row-st) { grid-template-areas: "ic t chev" "ic st chev"; row-gap: 6px; }
  .pv-row:has(.pv-row-st) > .pv-row-ic { grid-area: ic; align-self: start; }
  .pv-row:has(.pv-row-st) > .pv-row-t { grid-area: t; }
  .pv-row:has(.pv-row-st) > .pv-row-r { display: contents; }
  .pv-row-st { grid-area: st; justify-self: start; }
  .pv-row:has(.pv-row-st) > .pv-row-r > .i { grid-area: chev; }
}
/* Việc doanh nghiệp "Luôn yêu cầu cập nhật" cần cập nhật / xác nhận cho chiến dịch này (P72) */
.pv-stale { border-top: 1px solid var(--line); background: var(--warn-50); }
.pv-list > li.pv-stale:first-child { border-top: 0; }
.pv-stale > .pv-row { border-top: 0; }
.pv-stale-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px 64px; }
@media (max-width: 400px) { .pv-stale-acts { padding: 0 12px 12px; } .pv-stale-acts .btn { flex: 1 1 auto; } }
/* Nhóm việc đã xong hết, thu gọn một dòng (chi tiết chiến dịch: Việc của doanh nghiệp) */
.pv-fold { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pv-fold > summary { list-style: none; cursor: pointer; border-top: 0; }
.pv-fold > summary::-webkit-details-marker { display: none; }
.pv-fold > summary:hover { background: var(--bg-soft); }
.pv-fold > summary:focus-visible { outline-offset: -3px; }
.pv-fold > summary .chev { transition: transform 0.2s; }
.pv-fold[open] > summary .chev { transform: rotate(180deg); }
.pv-fold > .pv-list { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
/* Cột trái trắng suốt chiều cao trang (cột sticky chỉ cao bằng màn hình) */
@media (min-width: 1024px) {
  .pv-shell { background: linear-gradient(90deg, #fff 0, #fff 251px, var(--line) 251px, var(--line) 252px, transparent 252px); }
  .pv-side { border-right: 0; }
}
.pv-camp-top > .badge { flex: none; }
/* Màn hẹp: nhãn trạng thái xuống dòng dưới tên chiến dịch, tên không bị ép hẹp */
@media (max-width: 479px) {
  .pv-camp { padding: 16px; }
  .pv-camp-top { flex-wrap: wrap; row-gap: 8px; }
  .pv-camp-top > .pv-camp-t { flex-basis: calc(100% - 56px); }
  .pv-camp-top > .badge { margin-left: 56px; }
}

/* Nút nguy hiểm (hộp xác nhận xóa, huỷ chiến dịch) */
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #a82232; }
