
    #page-vendas { max-width:1680px; margin-left:auto; margin-right:auto; }
    .vd-panel { background:var(--card); border:1px solid var(--border); border-radius:6px; overflow:hidden; }
                            .vd-chip { display:inline-flex; align-items:center; height:40px; padding:0 14px; border:1px solid var(--border); border-radius:20px; background:transparent; color:var(--text-2); font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; white-space:nowrap; transition:color .12s, border-color .12s, background .12s; }
    .vd-chip:hover { color:#ffffff; border-color:var(--accent); }
    .vd-chip.active { color:#ffffff; background:var(--detail); border-color:var(--accent); }
    .vd-input { height:40px; box-sizing:border-box; padding:0 12px; background:#000000; border:1px solid var(--border); border-radius:6px; color:#ffffff; font-size:14px; font-family:inherit; color-scheme:dark; min-width:0; }
    .vd-input:focus { outline:none; border-color:var(--accent); }
            .vd-stats { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:24px; padding:24px 20px; border-bottom:1px solid var(--border); }
    .vd-stat { background:var(--card); border:1px solid rgba(145,158,171,.16); border-radius:6px; padding:24px; min-width:0; height:130px; box-sizing:border-box; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
    .vd-stat.wide { grid-column:span 2; }
    .vd-stat { container-type:inline-size; }
    .vd-stat:not(.wide) b { font-size:clamp(22px, 12cqw, 32px); }
    .vd-stat-t { min-width:0; display:flex; flex-direction:column; gap:12px; }
    .vd-stat span { display:block; font-size:12px; color:#919eab; }
    .vd-stat b { display:block; font-size:32px; line-height:40px; font-weight:700; color:#ffffff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
            .vd-hint { padding:10px 20px; border-bottom:1px solid var(--border); font-size:12px; color:var(--text-3); line-height:1.5; }
    .vd-row { box-sizing:border-box; display:grid; grid-template-columns:116px minmax(0,1fr) 92px 80px 112px 112px; align-items:center; gap:14px; min-height:64px; padding:10px 20px; border-bottom:1px solid var(--card); }
    .vd-row:last-child { border-bottom:none; }
    .vd-row:not(.vd-headrow):hover { background:#0a0a0a; }
    .vd-headrow { min-height:40px; padding-top:0; padding-bottom:0; font-size:12px; font-weight:600; color:var(--text-3); background:#050505; }
    .vd-date { font-size:13px; color:#cbd5e1; white-space:nowrap; }
    .vd-date small { display:block; font-size:12px; color:var(--text-3); }
    .vd-main { min-width:0; }
    .vd-prod { font-size:14px; font-weight:600; color:#ffffff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
                .vd-method { font-size:13px; color:#cbd5e1; }
    /* T2-3: origem da venda (pago x falso orgânico x orgânico puro) e jornada de toques */
                            .vd-rule { font-size:12.5px; line-height:1.55; color:#919eab; margin:10px 0 0; }
    .vd-rule b { color:#d1d5db; }
    .vd-jr { list-style:none; margin:12px 0 0; padding:0 0 0 14px; border-left:2px solid #262626; display:flex; flex-direction:column; gap:14px; }
    .vd-jr li { position:relative; font-size:13px; line-height:1.5; color:#d1d5db; }
    .vd-jr li::before { content:''; position:absolute; left:-20px; top:6px; width:10px; height:10px; border-radius:50%; background:#3a3a3a; }
    .vd-jr li.pago::before { background:#60a5fa; } .vd-jr li.organico::before { background:#4ade80; } .vd-jr li.referral::before { background:#fbbf24; }
    .vd-jr small { display:block; color:#919eab; font-size:12px; }
    .vd-jr .vd-tag { display:inline-block; margin-left:6px; padding:0 6px; border-radius:4px; font-size:11px; font-weight:700; background:rgba(145,158,171,.16); color:#cbd5e1; }
    .vd-jr-sum { font-size:13px; line-height:1.55; color:#d1d5db; margin:0 0 4px; }
    .vd-win { display:flex; gap:8px; align-items:center; margin-top:10px; font-size:13px; color:#cbd5e1; }
    .vd-win select { min-height:44px; padding:0 10px; background:#111; color:#fff; border:1px solid #333; border-radius:8px; }
    .vd-amt { font-size:14px; font-weight:700; color:#ffffff; text-align:right; white-space:nowrap; }
    .vd-badge { display:inline-flex; align-items:center; height:24px; padding:0 10px; border-radius:6px; font-size:12px; font-weight:700; white-space:nowrap; border:1px solid transparent; }
    .vd-st-paid { color:#4ade80; background:rgba(74,222,128,.1); border-color:rgba(74,222,128,.3); }
    .vd-st-pending { color:#f59e0b; background:rgba(245,158,11,.1); border-color:rgba(245,158,11,.3); }
    .vd-st-refunded { color:#93c5fd; background:rgba(147,197,253,.1); border-color:rgba(147,197,253,.3); }
    .vd-st-chargeback { color:#f87171; background:rgba(248,113,113,.1); border-color:rgba(248,113,113,.3); }
    .vd-st-cancelled { color:var(--text-2); background:rgba(136,146,164,.1); border-color:rgba(136,146,164,.3); }
    .vd-search { flex:1 1 220px; max-width:320px; }
    .vd-search .vd-input { width:100%; }
    .vd-pager { display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:16px 20px; border-top:1px solid var(--border); }
    .vd-pg { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0; border:1px solid var(--border); border-radius:50%; background:transparent; color:var(--text); font:600 14px/1 inherit; font-family:inherit; cursor:pointer; }
    button.vd-pg:hover:not(:disabled) { border-color:var(--accent); color:var(--accent); }
    .vd-pg:disabled { opacity:.35; cursor:default; }
    .vd-pg.cur { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); cursor:default; }
    /* status como abas de 48px */
    #vdStatuses { gap:0; border-bottom:1px solid var(--border); flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
    #vdStatuses::-webkit-scrollbar { display:none; }
    #vdStatuses .vd-chip { height:48px; border:0; border-bottom:2px solid transparent; border-radius:0; padding:0 16px; margin-bottom:-1px; flex-shrink:0; background:transparent; }
    #vdStatuses .vd-chip:hover { color:var(--text); border-color:transparent; border-bottom-color:rgba(184,246,253,.4); }
    #vdStatuses .vd-chip.active { color:var(--accent); background:transparent; border-color:transparent; border-bottom-color:var(--accent); }
    .vd-btn { height:40px; padding:0 18px; border:1px solid var(--border); border-radius:6px; background:transparent; color:#ffffff; font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; }
    .vd-btn:hover { border-color:var(--accent); }
    .vd-btn:disabled { opacity:.5; cursor:default; }
    /* Vendas: conteudo de 1065px, cards, abas de 48px, busca de 40px e tabela (cabecalho 57px, linhas 82px) */
    #page-vendas { max-width:1113px; }
    .vd-panel { background:var(--card); border:1px solid rgba(145,158,171,.16); border-radius:6px; overflow:hidden; }
    .vd-stats { padding:0 0 24px; border:0; margin-top:8px; }
    .vd-tabs { display:flex; gap:0; border-bottom:1px solid rgba(145,158,171,.16); overflow-x:auto; scrollbar-width:none; padding:0 8px; }
    .vd-tabs::-webkit-scrollbar { display:none; }
    .vd-tabs .vd-chip { height:48px; border:0; border-bottom:2px solid transparent; border-radius:0; padding:0 16px; margin-bottom:-1px; flex-shrink:0; background:transparent; color:#919eab; font-size:14px; font-weight:600; }
    .vd-tabs .vd-chip:hover { color:#fff; border-bottom-color:rgba(184,246,253,.4); }
    .vd-tabs .vd-chip.active { color:#B8F6FD; background:transparent; border-bottom-color:#B8F6FD; }
    .vd-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:16px 20px; }
    .vd-searchbox { position:relative; width:207px; flex-shrink:0; color:#919eab; }
    .vd-searchbox svg { position:absolute; left:12px; top:12px; pointer-events:none; }
    .vd-searchbox .vd-input { width:100%; padding-left:36px; background:transparent; border-color:rgba(145,158,171,.32); }
    .vd-toolbar .vd-chip { height:36px; border-radius:6px; font-size:13px; }
    .vd-toolbar .vd-chip.active { background:rgba(184,246,253,.16); border-color:transparent; color:#B8F6FD; }
    .vd-row { grid-template-columns:116px minmax(0,1.2fr) minmax(0,1fr) 120px 84px 112px 48px; min-height:82px; padding:12px 20px; gap:16px; border-bottom:1px solid rgba(145,158,171,.12); }
    .vd-headrow { min-height:57px; background:rgba(145,158,171,.08); font-size:12px; font-weight:700; color:#919eab; text-transform:none; }
    .vd-row:not(.vd-headrow):hover { background:rgba(255,255,255,.03); }
    .vd-sub { font-size:12px; color:#919eab; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .vd-badge { height:24px; padding:0 8px; border-radius:6px; font-size:12px; font-weight:700; border:0; }
    .vd-st-paid { color:#4ade80; background:rgba(74,222,128,.16); }
    .vd-st-pending { color:#fbbf24; background:rgba(251,191,36,.16); }
    .vd-st-refunded, .vd-st-chargeback { color:#ff6b5e; background:rgba(255,86,48,.16); }
    .vd-st-cancelled { color:#919eab; background:rgba(145,158,171,.16); }
    .vd-st-failed { color:#ff6b5e; background:rgba(255,86,48,.16); border-color:rgba(255,86,48,.3); }
    .vd-st-expired { color:#b8a37a; background:rgba(184,163,122,.14); border-color:rgba(184,163,122,.3); }
    .vd-reason { color:#ff9c91; font-size:12px; line-height:1.35; white-space:normal; overflow-wrap:anywhere; }
    .vd-reason.is-expired { color:#b8a37a; }
    .vd-act { display:flex; justify-content:flex-end; }
    .vd-fbtn { display:inline-flex; align-items:center; gap:8px; width:99px; height:36px; padding:0 12px; border:1px solid rgba(145,158,171,.32); border-radius:6px; background:transparent; color:#fff; font:600 14px/1 inherit; font-family:inherit; cursor:pointer; transition:background-color .15s,border-color .15s; }
    .vd-fbtn:hover { background:rgba(255,255,255,.06); border-color:rgba(145,158,171,.56); }
    .vd-fcount { min-width:18px; height:18px; padding:0 5px; border-radius:6px; background:#B8F6FD; color:#121635; font-size:12px; font-weight:700; line-height:18px; text-align:center; }
    .vd-fcount[hidden] { display:none; }
    .vd-scrim { position:fixed; inset:0; background:rgba(0,0,0,.56); z-index:140; opacity:0; pointer-events:none; transition:opacity .15s; }
    .vd-scrim.on { opacity:1; pointer-events:auto; }
    .vd-drawer { position:fixed; top:0; right:0; bottom:0; width:400px; max-width:100vw; background:var(--card); border-left:1px solid rgba(255,255,255,.08); z-index:150; display:flex; flex-direction:column; transform:translateX(100%); visibility:hidden; transition:transform .2s, visibility 0s .2s; }
    .vd-drawer.open { transform:none; visibility:visible; transition:transform .2s; }
    .vd-dr-head { display:flex; align-items:center; justify-content:space-between; height:64px; padding:0 20px; border-bottom:1px solid rgba(255,255,255,.08); flex-shrink:0; }
    .vd-dr-head h2 { font-size:16px; font-weight:700; color:#fff; margin:0; }
    .vd-dr-x { width:40px; height:40px; border:0; border-radius:6px; background:transparent; color:#919eab; font-size:24px; line-height:1; cursor:pointer; }
    .vd-dr-x:hover { background:rgba(255,255,255,.06); color:#fff; }
    .vd-dr-body { flex:1; overflow-y:auto; padding:8px 20px 24px; }
    .vd-dr-grp { padding:16px 0; border-bottom:1px solid rgba(255,255,255,.06); }
    .vd-dr-grp:last-child { border-bottom:0; }
    .vd-dr-t { font-size:14px; font-weight:600; color:#fff; margin-bottom:12px; }
    .vd-dr-row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
    .vd-dr-row2 label, .vd-utm { display:flex; flex-direction:column; gap:6px; font-size:12px; color:#919eab; }
    .vd-utm { margin-bottom:12px; }
    .vd-dr-help { font-size:12px; color:#919eab; margin-top:8px; }
    .vd-dr-list { display:flex; flex-direction:column; gap:4px; max-height:200px; overflow-y:auto; }
    .vd-ck { display:flex; align-items:center; gap:12px; min-height:36px; font-size:14px; color:#fff; cursor:pointer; }
    .vd-ck input { width:18px; height:18px; accent-color:#B8F6FD; flex-shrink:0; }
    .vd-dr-foot { display:flex; gap:8px; padding:16px 20px; border-top:1px solid rgba(255,255,255,.08); flex-shrink:0; }
    .vd-dbtn { flex:1; height:36px; border-radius:6px; border:1px solid rgba(145,158,171,.32); background:transparent; color:#fff; font:600 14px/1 inherit; font-family:inherit; cursor:pointer; }
    .vd-dbtn:hover { background:rgba(255,255,255,.06); }
    .vd-dbtn.primary { background:#B8F6FD; border-color:#B8F6FD; color:#121635; }
    .vd-dbtn.primary:hover { background:var(--accent-hover); }
    body.vd-dr-open #main { overflow:hidden; }
    .vd-dr-tabs { display:flex; height:48px; border-bottom:1px solid rgba(255,255,255,.08); flex-shrink:0; padding:0 8px; }
    .vd-dr-tabs button { flex:1; height:48px; border:0; border-bottom:2px solid transparent; background:transparent; color:#919eab; font:600 14px/1 inherit; font-family:inherit; cursor:pointer; margin-bottom:-1px; transition:color .15s; }
    .vd-dr-tabs button:hover { color:#fff; }
    .vd-dr-tabs button.active { color:#B8F6FD; border-bottom-color:#B8F6FD; }
    .vd-kv { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:44px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.06); font-size:14px; }
    .vd-kv span { color:#919eab; flex-shrink:0; }
    .vd-kv b { color:#fff; font-weight:600; text-align:right; min-width:0; overflow-wrap:anywhere; }
    .vd-more { width:36px; height:36px; border:0; border-radius:6px; background:transparent; color:#919eab; font-size:20px; line-height:1; cursor:pointer; transition:background-color .15s,color .15s; }
    .vd-more:hover { background:rgba(255,255,255,.08); color:#fff; }
    .vd-menu { position:fixed; z-index:160; background:var(--card); border:1px solid rgba(145,158,171,.24); border-radius:6px; padding:8px; box-shadow:0 12px 24px -4px rgba(0,0,0,.5); }
    .vd-menu[hidden] { display:none; }
    .vd-menu button { display:block; width:100%; height:44px; padding:0 12px; border:0; border-radius:6px; background:transparent; color:#fff; font:500 14px/1 inherit; font-family:inherit; text-align:left; cursor:pointer; }
    .vd-menu button:hover { background:rgba(255,255,255,.06); }
    .vd-row:not(.vd-headrow) { cursor:pointer; }
    @media (max-width:640px) {
      .vd-drawer { width:100vw; }
      .vd-dr-x { width:44px; height:44px; }
      .vd-dr-head { height:64px; }
      .vd-dbtn, .vd-fbtn { height:44px; }
      .vd-fbtn { width:auto; padding:0 16px; }
      .vd-more { width:44px; height:44px; margin:-4px -8px -4px 0; }
      .vd-ck { min-height:44px; }
      .vd-dr-tabs button, .vd-tabs .vd-chip { min-height:48px; }
      .vd-searchbox { flex:1 1 140px; width:auto; }
      .vd-searchbox .vd-input { height:44px; }
    }
    @media (max-width:1024px) { .vd-stats { grid-template-columns:repeat(2, minmax(0,1fr)); } .vd-stat.wide { grid-column:span 2; } }
    @media (max-width:760px) {
      .vd-hint, .vd-row { padding-left:14px; padding-right:14px; }
      .vd-toolbar { padding:12px 14px; }
      .vd-headrow { display:none; }
      #vdList { padding:12px; display:flex; flex-direction:column; gap:12px; }
      .vd-row { grid-template-columns:minmax(0,1fr) auto 36px; grid-template-areas:"prod amt act" "cust st st" "date method method"; gap:6px 12px; padding:14px; background:var(--card); border:1px solid var(--border) !important; border-radius:var(--r-card); box-shadow:var(--shadow-card); }
      .vd-searchbox { width:100%; }
      .vd-pager { justify-content:center; }
      .vd-row .vd-c-prod { grid-area:prod; }  .vd-row .vd-amt { grid-area:amt; }
      .vd-row .vd-date { grid-area:date; display:flex; gap:6px; align-items:baseline; } .vd-row .vd-date small { display:inline; }
      .vd-row .vd-st { grid-area:st; justify-self:end; }
      .vd-row .vd-method { grid-area:method; justify-self:end; font-size:13px; }
            .vd-row .vd-act { grid-area:act; justify-self:end; }
      .vd-tabs { padding:0 4px; }
                         .vd-stats { grid-template-columns:1fr; gap:16px; } .vd-stat.wide { grid-column:auto; } .vd-stat { height:128px; }
    }