/* Tour interativo do sistema (app/views/site/tour/*.html). Usado pelo CMS e pelo Astro. */
.tour { --t-ink: #1b2533; --t-soft: #5b6878; --t-line: #e3e8ef; --t-bg: #f3f5f8; --t-side: #3b3f46; --t-navy: #123a7a; --t-blue: #1f63c6; --t-green: #1f9d4c; --t-red: #d93636; --t-amber: #c98a00; margin-top: 40px; }

/* Abas */
.tr-tabs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 4px 2px 16px; }
.tr-tabs button { flex: none; font: inherit; font-size: .95rem; font-weight: 700; color: var(--ink, #0b1b33); background: #fff; border: 1.5px solid var(--line, #e3e9f2); border-radius: 99px; padding: 10px 18px; cursor: pointer; transition: .15s; }
.tr-tabs button:hover { border-color: var(--brand, #0a4dff); color: var(--brand, #0a4dff); }
.tr-tabs button[aria-selected="true"] { background: var(--brand, #0a4dff); border-color: var(--brand, #0a4dff); color: #fff; }
.tr-tabs button:focus-visible { outline: 3px solid #9db8ff; outline-offset: 2px; }

/* Palco: janela do sistema + explicação */
.tr-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.tr-win { background: #fff; border: 1px solid #d5dce6; border-radius: 14px; box-shadow: 0 24px 60px rgba(11, 27, 51, .16); overflow: hidden; font-size: 12.5px; line-height: 1.45; color: var(--t-ink); }
.tr-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #e9edf2; border-bottom: 1px solid #d5dce6; }
.tr-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c4ccd6; }
.tr-bar span { margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--t-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-app { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 430px; }
.tr-side { background: var(--t-side); color: #d9dde3; padding: 10px 0; display: flex; flex-direction: column; }
.tr-side b { font-size: 11px; color: #fff; background: #2f6fd0; text-align: center; padding: 4px; margin: 0 8px 8px; border-radius: 4px; }
.tr-side span { padding: 7px 14px; font-size: 12px; border-left: 3px solid transparent; }
.tr-side span.on { background: #2b2f35; color: #fff; font-weight: 700; border-left-color: #4d8df0; }
.tr-main { background: var(--t-bg); padding: 14px; min-width: 0; }
.tr-scr[hidden], .tr-info[hidden] { display: none; }
.tr-scr { animation: tr-in .25s ease; }
@keyframes tr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Peças comuns das telas */
.tr-box, .tr-card, .tr-t, .tr-sum > div, .tr-nfe, .tr-pdvl, .tr-pdvr > div, .tr-field, .tr-after { background: #fff; border: 1px solid var(--t-line); border-radius: 8px; }
.tr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tr-head > b { font-size: 16px; color: var(--t-navy); }
.tr-acts { display: flex; gap: 6px; }
.tr-btn { font-style: normal; font-weight: 700; font-size: 11.5px; padding: 5px 10px; border-radius: 6px; border: 1px solid #c9d2de; background: #fff; color: var(--t-ink); white-space: nowrap; }
.tr-btn.g { background: var(--t-green); border-color: var(--t-green); color: #fff; }
.tr-t { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.tr-t th { text-align: left; font-size: 11px; font-weight: 700; color: var(--t-soft); padding: 8px 10px; border-bottom: 1px solid var(--t-line); background: #fafbfc; white-space: nowrap; }
.tr-t td { padding: 8px 10px; border-bottom: 1px solid var(--t-line); vertical-align: middle; }
.tr-t tr.last td { border-bottom: 0; }
.tr-t .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tour .ok { color: var(--t-green) !important; }
.tour .bad { color: var(--t-red) !important; font-weight: 700; }
.tour .st { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.tour .st.r { background: #fde8e8; color: #b42323; }
.tour .st.y { background: #fff4d6; color: #8a5d00; }
.tour .st.g { background: #e3f6ea; color: #17733a; }
.tour .st.b { background: #e5eefc; color: #1d4f9c; }
.tour .tag { display: inline-block; font-size: 10px; font-weight: 700; background: #e5eefc; color: #1d4f9c; border-radius: 4px; padding: 1px 6px; margin-left: 4px; }

/* Painel */
.tr-hello { background: linear-gradient(120deg, #0f2f66, #1f5fc0); color: #fff; border-radius: 10px; padding: 14px 18px; display: grid; gap: 2px; margin-bottom: 10px; }
.tr-hello strong { font-size: 18px; }
.tr-hello span { color: #dbe6ff; }
.tr-hello small { font-size: 10.5px; color: #b9cbef; font-weight: 600; }
.tr-box { padding: 10px 12px; margin-bottom: 10px; }
.tr-boxh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tr-boxh b { color: var(--t-navy); font-size: 14px; }
.tr-boxh small { color: var(--t-soft); }
.tr-boxh .tr-btn { margin-left: auto; background: var(--t-blue); color: #fff; border-color: var(--t-blue); }
.tr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tr-kpis > div { border: 1px solid var(--t-line); border-radius: 6px; padding: 8px 10px; display: grid; gap: 2px; align-content: start; }
.tr-kpis small, .tr-sum small, .tr-nfe small, .tr-field small, .tr-cli small, .tr-total small { font-size: 10px; font-weight: 700; letter-spacing: .03em; color: var(--t-soft); }
.tr-kpis strong { font-size: 17px; color: var(--t-ink); }
.tr-kpis span { font-size: 10.5px; color: var(--t-soft); }
.tr-meter { display: block; height: 6px; background: #e8edf3; border-radius: 99px; overflow: hidden; margin: 2px 0; }
.tr-meter i { display: block; height: 100%; background: var(--t-green); }
.tr-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tr-card { padding: 10px 12px; display: grid; gap: 6px; align-content: start; }
.tr-card b { color: var(--t-navy); font-size: 13px; }
.tr-card p { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 11.5px; color: var(--t-ink); }
.tr-card em { margin-left: auto; font-style: normal; font-weight: 700; white-space: nowrap; }
.tour .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tour .dot.g { background: var(--t-green); } .tour .dot.r { background: var(--t-red); } .tour .dot.y { background: #e0a100; } .tour .dot.b { background: var(--t-blue); }

/* Caixa */
.tr-pdv { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 10px; }
.tr-pdvl { overflow: hidden; display: flex; flex-direction: column; }
.tr-pdvl .tr-t { border: 0; border-radius: 0; }
.tr-pdvh { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--t-line); flex-wrap: wrap; }
.tr-pdvh b { color: var(--t-navy); font-size: 13px; }
.tr-net { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #17733a; background: #e3f6ea; padding: 3px 9px; border-radius: 99px; }
.tr-net i { width: 7px; height: 7px; border-radius: 50%; background: var(--t-green); }
.tr-keys { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-top: 1px solid var(--t-line); background: #fafbfc; }
.tr-keys span { font-size: 10.5px; color: var(--t-soft); border: 1px solid var(--t-line); background: #fff; border-radius: 4px; padding: 2px 7px; }
.tr-pdvr { display: grid; gap: 8px; align-content: start; }
.tr-pdvr > div { padding: 10px 12px; display: grid; gap: 2px; }
.tr-cli b { font-size: 13px; }
.tr-cli span, .tr-total span { font-size: 11px; color: var(--t-soft); }
.tr-pdvr .tr-total { background: var(--t-navy); border-color: var(--t-navy); }
.tr-total small { color: #b9cbef; }
.tr-total strong { font-size: 24px; color: #fff; line-height: 1.2; }
.tr-total span { color: #b9cbef; }
.tr-pdvr .tr-pay { grid-template-columns: 1fr 1fr; gap: 6px; }
.tr-pay span { text-align: center; font-size: 11px; font-weight: 700; border: 1px solid var(--t-line); border-radius: 6px; padding: 7px 4px; }
.tr-pay span.on { background: var(--t-blue); border-color: var(--t-blue); color: #fff; }
.tr-pdvr .tr-ok { background: #e3f6ea; border-color: #bfe6cc; color: #17733a; font-weight: 700; font-size: 11.5px; text-align: center; }

/* Contas a receber / estoque */
.tr-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.tr-sum > div { padding: 8px 10px; display: grid; gap: 1px; border-left-width: 4px; }
.tr-sum strong { font-size: 15px; white-space: nowrap; }
.tr-sum span { font-size: 10.5px; color: var(--t-soft); }
.tr-sum .b { border-left-color: var(--t-blue); }
.tr-sum .r { border-left-color: var(--t-red); } .tr-sum .r strong { color: var(--t-red); }
.tr-sum .y { border-left-color: #e0a100; } .tr-sum .y strong { color: #8a5d00; }
.tr-sum .g { border-left-color: var(--t-green); } .tr-sum .g strong { color: #17733a; }
.tr-pills { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tr-pills span { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--t-line); }
.tr-pills span.on { background: var(--t-navy); border-color: var(--t-navy); color: #fff; }
.tr-wa { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: #fff; background: #1f9d4c; border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.tr-wa::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; }
.tour .abc { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-weight: 800; font-size: 11px; color: #fff; }
.tour .abc.a { background: var(--t-green); } .tour .abc.b { background: var(--t-blue); } .tour .abc.c { background: #8a96a6; }

/* XML */
.tr-nfe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; margin-bottom: 10px; }
.tr-nfe > div { display: grid; }
.tr-nfe b { font-size: 12.5px; }
.tour .link { font-weight: 700; font-size: 11.5px; }
.tour .link.y { color: #8a5d00; }
.tr-after { margin-top: 10px; padding: 9px 12px; background: #eef5ff; border-color: #cfe0fb; color: var(--t-ink); }

/* WhatsApp */
.tr-camp { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }
.tr-form { display: grid; gap: 8px; align-content: start; }
.tr-field { padding: 10px 12px; display: grid; gap: 3px; }
.tr-field b { font-size: 13px; }
.tr-field span { font-size: 11px; color: var(--t-soft); }
.tr-field p { margin: 0; color: var(--t-ink); font-size: 12px; }
.tr-field mark { background: #e5eefc; color: #1d4f9c; border-radius: 3px; padding: 0 3px; font-weight: 700; }
.tr-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-stats span { background: #fff; border: 1px solid var(--t-line); border-radius: 6px; padding: 6px 10px; font-size: 11.5px; color: var(--t-soft); }
.tr-stats b { color: var(--t-ink); font-size: 13px; }
.tr-phone { background: #e7ded3; border: 6px solid #1b2533; border-radius: 22px; padding: 0 8px 12px; display: grid; gap: 8px; align-content: start; min-height: 300px; overflow: hidden; }
.tr-ph-top { background: #0f6b52; color: #fff; font-weight: 700; font-size: 11.5px; margin: 0 -8px; padding: 10px 12px; }
.tr-msg { background: #fff; border-radius: 8px; padding: 7px 9px 4px; font-size: 11.5px; line-height: 1.4; max-width: 92%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.tr-msg small { display: block; text-align: right; font-size: 9.5px; color: #8a96a6; margin-top: 2px; }
.tr-msg.me { background: #d8f8c8; justify-self: end; }

/* Marcadores numerados (inseridos pelo tour.js) */
.tr-hs { position: relative; transition: box-shadow .2s, outline-color .2s; outline: 2px solid transparent; outline-offset: 2px; }
td.tr-hs, tr.tr-hs > td:first-child { position: relative; }
tr.tr-hs > td:first-child { padding-left: 20px; }
.tr-n { position: absolute; top: -9px; right: -9px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; background: var(--brand, #0a4dff); color: #fff; font: 800 11px/20px 'Plus Jakarta Sans Variable', system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 3px rgba(10, 77, 255, .22); pointer-events: none; }
tr.tr-hs > td:first-child .tr-n { left: -6px; right: auto; top: 50%; margin-top: -10px; }
.tr-hs.is-on { outline-color: var(--brand, #0a4dff); border-radius: 6px; }
tr.tr-hs.is-on > td { background: #eef3ff; }
.tr-hs.is-on > .tr-n, tr.tr-hs.is-on .tr-n { animation: tr-pulse 1s ease infinite; }
@keyframes tr-pulse { 50% { box-shadow: 0 0 0 7px rgba(10, 77, 255, .15); } }

/* Explicação */
.tr-infos { position: sticky; top: 96px; display: grid; gap: 18px; }
.tr-info h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 6px; }
.tr-info > p { font-size: .98rem; margin-bottom: 14px; }
.tr-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tr-notes li { position: relative; padding: 10px 12px 10px 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line, #e3e9f2); font-size: .93rem; color: var(--ink-soft, #4a5a72); cursor: default; transition: .15s; }
.tr-notes li::before { content: attr(data-n); position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand, #0a4dff); color: #fff; font-weight: 800; font-size: .78rem; display: grid; place-items: center; }
.tr-notes li b { color: var(--ink, #0b1b33); }
.tr-notes li.is-on { border-color: var(--brand, #0a4dff); box-shadow: 0 6px 18px rgba(10, 77, 255, .12); }
.tr-cta { justify-content: center; }
.tr-aviso { margin-top: 18px; font-size: .85rem; text-align: center; color: var(--ink-soft, #4a5a72); }

@media (max-width: 1080px) {
  .tr-stage { grid-template-columns: 1fr; }
  .tr-infos { position: static; }
}
@media (max-width: 760px) {
  .tr-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; padding-bottom: 12px; }
  .tr-app { grid-template-columns: 1fr; min-height: 0; }
  .tr-side { display: none; }
  .tr-main { padding: 10px; }
  .tr-scr { overflow-x: auto; padding: 10px 10px 4px 4px; margin: -10px -10px -4px -4px; }
  .tour { font-size: .95rem; }
  .tr-kpis, .tr-sum, .tr-nfe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-3, .tr-pdv, .tr-camp { grid-template-columns: 1fr; }
  .tr-phone { display: none; }
  .tr-t .hide-s { display: none; }
  .tr-t th, .tr-t td { padding: 7px 6px; }
  .tr-win { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-scr, .tr-hs.is-on > .tr-n, tr.tr-hs.is-on .tr-n { animation: none; }
}

/* Estoque e granel */
.tr-sum.tr-3c { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-end { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; background: #fff; border: 1px dashed #9db8ff; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.tr-end small { width: 100%; font-size: 10px; font-weight: 700; letter-spacing: .03em; color: var(--t-soft); text-transform: uppercase; }
.tr-end p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--t-ink); }
.tr-end p b { background: #e5eefc; color: #1d4f9c; border-radius: 4px; padding: 1px 7px; }
.tr-end i { font-style: normal; color: #8a96a6; }
.tr-btn.on { background: var(--t-navy); border-color: var(--t-navy); color: #fff; }
.tr-btn.b { background: var(--t-blue); border-color: var(--t-blue); color: #fff; }

/* Banho e tosa */
.tr-kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; border-radius: 8px; }
.tr-col { background: #e9edf2; border-radius: 8px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.tr-col > b { font-size: 11.5px; color: var(--t-navy); display: flex; align-items: center; gap: 6px; }
.tr-col > b i { font-style: normal; font-size: 10px; background: #fff; border-radius: 99px; padding: 0 7px; color: var(--t-soft); }
.tr-kc { background: #fff; border: 1px solid var(--t-line); border-left: 3px solid var(--t-blue); border-radius: 6px; padding: 7px 9px; display: grid; gap: 1px; }
.tr-kc.on { border-left-color: #e0a100; }
.tr-kc small { font-size: 10.5px; color: var(--t-soft); font-weight: 600; }
.tr-kc strong { font-size: 12.5px; }
.tr-kc span { font-size: 10.5px; color: var(--t-soft); }
.tr-kc .tr-wa { justify-self: start; margin-top: 4px; }
.tr-os { background: #fff; border: 1px solid var(--t-line); border-radius: 8px; padding: 10px 12px; }
.tr-os-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tr-os-h b { color: var(--t-navy); font-size: 13px; }
.tr-os-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.tr-os-tabs span { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 5px; border: 1px solid var(--t-line); }
.tr-os-tabs span.on { background: var(--t-navy); border-color: var(--t-navy); color: #fff; }
.tr-os p, .tr-mais p { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--t-line); font-size: 11.5px; color: var(--t-ink); }
.tr-os em, .tr-mais em { font-style: normal; font-weight: 700; white-space: nowrap; }
.tr-os p.tot { border-bottom: 0; font-weight: 700; }
.tr-os p.tot em { color: var(--t-navy); font-size: 13px; }

/* Clientes sem comprar */
.tr-filtros { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; margin-bottom: 10px; border-radius: 8px; }
.tr-filtros > span { display: grid; background: #fff; border: 1px solid var(--t-line); border-radius: 6px; padding: 4px 9px; font-size: 11.5px; font-weight: 600; }
.tr-filtros small { font-size: 9.5px; font-weight: 700; color: var(--t-soft); }
.tr-filtros .ck { align-self: stretch; display: flex; align-items: center; color: #17733a; }
.tr-t tr.sel td { background: #eef3ff; font-weight: 700; }
.tr-mais { margin-top: 10px; background: #fff; border: 1px solid var(--t-line); border-radius: 8px; padding: 10px 12px; }
.tr-mais > b { display: block; color: var(--t-navy); font-size: 12.5px; margin-bottom: 4px; }
.tr-mais .tr-acts { flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 760px) {
  .tr-sum.tr-3c { grid-template-columns: 1fr 1fr; }
  .tr-kanban { grid-template-columns: 1fr; }
}

/* Menu lateral clicável */
.tr-side .tr-link { cursor: pointer; transition: background .15s, color .15s; }
.tr-side .tr-link:hover { background: #2b2f35; color: #fff; }

/* Financeiro: calendário */
.tr-fin-tabs { margin: 0 0 10px; }
.tr-semana { background: #fff; border: 1px solid var(--t-line); border-radius: 8px; padding: 10px 12px; }
.tr-sem-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 8px; font-size: 11.5px; color: var(--t-soft); }
.tr-sem-h b { color: var(--t-navy); font-size: 13px; margin-right: auto; }
.tr-sem-h span { display: inline-flex; align-items: center; gap: 5px; }
.tr-dias { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tr-dias > div { background: #f6f8fb; border: 1px solid var(--t-line); border-radius: 6px; padding: 6px; display: grid; gap: 5px; align-content: start; }
.tr-dias > div.hoje { border-color: var(--t-blue); background: #eef3ff; }
.tr-dias small { font-size: 10px; font-weight: 700; color: var(--t-navy); }
.tr-tit { background: #fff; border: 1px solid var(--t-line); border-left: 3px solid var(--t-blue); border-radius: 5px; padding: 5px 6px; min-width: 0; overflow-wrap: anywhere; display: grid; font-size: 10.5px; color: var(--t-soft); line-height: 1.35; }
.tr-tit b { font-size: 11.5px; color: var(--t-ink); white-space: nowrap; letter-spacing: -.01em; }
.tr-tit span { font-weight: 700; font-size: 10px; }
.tr-tit.g { border-left-color: var(--t-green); } .tr-tit.g span { color: #17733a; }
.tr-tit.r { border-left-color: var(--t-red); } .tr-tit.r span { color: #b42323; }
.tr-tit.y { border-left-color: #e0a100; } .tr-tit.y span { color: #8a5d00; }

@media (max-width: 760px) {
  .tr-dias { grid-template-columns: 1fr 1fr; }
  .tr-dias > div:first-child { display: none; }
}

/* Ferragem e tintas: amostras de cor, endereço e busca */
.tour .tr-cor, .tour .tr-ico { display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; background: var(--c, #ddd); border: 1px solid rgba(27, 37, 51, .14); }
.tour .tr-cor { border-radius: 50% 50% 50% 3px; transform: rotate(-45deg); }
.tour .tr-ico { border-radius: 4px; }
.tr-leque { display: flex; gap: 0; margin-bottom: 10px; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--t-line); }
.tr-leque i { flex: 1; background: var(--c); }
.tr-busca { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #c9d2de; border-radius: 6px; padding: 6px 10px; margin-bottom: 10px; color: var(--t-soft); font-size: 12px; }
.tr-busca span { font-size: 14px; color: var(--t-blue); }
.tr-loc { display: inline-block; font-size: 11px; font-weight: 600; color: #1d4f9c; background: #eef3ff; border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.tr-tot-orc { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr-tot-orc b { color: var(--t-navy); font-size: 13px; }
.tr-nfe .st { vertical-align: 1px; }

/* Tema "tinta": toques de cor suaves na seção do tour */
.tema-tinta { --p1: #a78bfa; --p2: #6cb8ff; --p3: #5cc9a7; --p4: #ffd166; --p5: #f58bb0; --p6: #7dd3c0; }
section.tema-tinta { background:
  radial-gradient(520px 320px at 0% 0%, rgba(167, 139, 250, .13), transparent 70%),
  radial-gradient(480px 300px at 100% 12%, rgba(92, 201, 167, .13), transparent 70%),
  radial-gradient(520px 320px at 96% 100%, rgba(255, 209, 102, .16), transparent 70%),
  radial-gradient(420px 280px at 4% 96%, rgba(245, 139, 176, .11), transparent 70%),
  var(--bg-soft, #f4f7fb); }
.tema-tinta .tr-tabs button::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 8px; vertical-align: 1px; border-radius: 50% 50% 50% 2px; transform: rotate(-45deg); background: var(--dot, var(--p2)); }
.tema-tinta .tr-tabs button:nth-child(6n+1) { --dot: var(--p1); }
.tema-tinta .tr-tabs button:nth-child(6n+2) { --dot: var(--p2); }
.tema-tinta .tr-tabs button:nth-child(6n+3) { --dot: var(--p3); }
.tema-tinta .tr-tabs button:nth-child(6n+4) { --dot: var(--p4); }
.tema-tinta .tr-tabs button:nth-child(6n+5) { --dot: var(--p5); }
.tema-tinta .tr-tabs button:nth-child(6n+6) { --dot: var(--p6); }
.tema-tinta .tr-tabs button[aria-selected="true"]::before { box-shadow: 0 0 0 2px #fff; }
.tema-tinta .tr-win { box-shadow: 0 24px 60px rgba(11, 27, 51, .14), -18px 18px 0 -6px rgba(167, 139, 250, .14), 18px -14px 0 -6px rgba(92, 201, 167, .14); }

@media (max-width: 760px) {
  .tr-loc { white-space: normal; }
  tr.tr-hs > td:first-child { padding-left: 12px; }
  .tema-tinta .tr-win { box-shadow: 0 16px 40px rgba(11, 27, 51, .14); }
}

/* Menu lateral como o do sistema: ícones, seta e subitens do grupo aberto */
.tr-side span { display: flex; align-items: center; gap: 8px; }
.tr-ic { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.tr-ar { margin-left: auto; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: .55; transition: transform .2s; }
.tr-side .tr-grp.on { background: none; border-left-color: transparent; color: #fff; }
.tr-side .tr-grp.on .tr-ar { transform: rotate(45deg); opacity: .9; }
.tr-subs { display: none; background: #33373d; padding: 2px 0 4px; }
.tr-side .tr-grp.on + .tr-subs { display: block; }
.tr-side .tr-subs span { padding: 5px 10px 5px 36px; font-size: 11.5px; color: #bfc5cd; font-weight: 400; }
.tr-side .tr-subs span.on { color: #fff; font-weight: 700; background: #2b2f35; border-left-color: #4d8df0; }

/* Checkout com ilustrações dos produtos */
.tr-pedido { font-size: 11px; font-weight: 600; color: #1d4f9c; background: #eef3ff; padding: 6px 10px; border-bottom: 1px solid var(--t-line); }
.tr-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px; border-bottom: 1px solid var(--t-line); background: #fafbfc; }
.tr-prod { position: relative; display: grid; justify-items: center; text-align: center; gap: 1px; background: #fff; border: 1px solid var(--t-line); border-radius: 8px; padding: 6px 4px 7px; }
.tr-prod svg { width: 46px; height: 46px; margin-bottom: 2px; }
.tr-prod b { font-size: 10.5px; line-height: 1.25; color: var(--t-ink); }
.tr-prod span { font-size: 10px; color: var(--t-soft); }
.tr-prod em { font-style: normal; font-weight: 800; font-size: 11px; color: var(--t-navy); }
.tr-prod.on { border-color: var(--t-blue); box-shadow: 0 0 0 2px rgba(31, 99, 198, .15); }
.tr-prod.on::after { content: '✓'; position: absolute; top: 4px; right: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--t-blue); color: #fff; font-size: 9px; font-weight: 800; line-height: 15px; }

@media (max-width: 760px) {
  .tr-prod svg { width: 38px; height: 38px; }
  .tr-prod b { font-size: 10px; }
}

/* ------------------------------------------------------------------ BI Administrativo e Financeiro (tour/bi.html) */
section.tema-bi { background: radial-gradient(900px 420px at 15% 0%, #e3ecff, transparent 70%), radial-gradient(700px 380px at 100% 100%, #e6f6ee, transparent 70%), var(--bg-soft, #f4f7fb); }
.tour .tr-scr [data-ir] { cursor: pointer; }

/* Cartão que abre o BI */
.bi-abre { margin-top: 36px; }
.bi-teaser { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; width: 100%; text-align: left; font: inherit; color: #fff; cursor: pointer; border: 0; border-radius: 22px; padding: 30px; background: linear-gradient(125deg, #0b2a5e 0%, #123f8f 55%, #1f63c6 100%); box-shadow: 0 28px 60px rgba(11, 42, 94, .28); transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.bi-teaser::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); pointer-events: none; }
.bi-teaser:hover { transform: translateY(-3px); box-shadow: 0 34px 70px rgba(11, 42, 94, .34); }
.bi-teaser:focus-visible { outline: 3px solid #9db8ff; outline-offset: 4px; }
.bi-teaser > span { display: grid; gap: 16px; align-content: start; position: relative; z-index: 1; }
.bi-t-ola { display: grid; gap: 2px; font-size: 1.02rem; color: #d6e3ff; }
.bi-t-ola b { font-size: 1.6rem; color: #fff; line-height: 1.2; }
.bi-t-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bi-t-kpis > span { display: grid; gap: 2px; align-content: start; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 12px 14px; }
.bi-t-kpis small { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #b9cbef; }
.bi-t-kpis strong { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.bi-t-kpis em { font-style: normal; font-size: .8rem; color: #c9d8f5; }
.bi-teaser .bi-t-kpis em.ok { color: #7ee2a4 !important; }
.bi-t-meter { display: block; height: 7px; margin-top: 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.bi-t-meter i { display: block; width: 79%; height: 100%; border-radius: 99px; background: #4ade80; transform-origin: left; animation: bi-cresce 1.4s ease .2s both; }
.bi-t-graf { width: 100%; height: 46px; }
.bi-t-graf rect { fill: rgba(255, 255, 255, .28); transform-origin: bottom; transform-box: fill-box; animation: bi-sobe .9s ease both; }
.bi-t-graf rect.h { fill: #ffd166; }
.bi-t-graf rect:nth-child(3n) { animation-delay: .1s; }
.bi-t-graf rect:nth-child(3n+1) { animation-delay: .2s; }
@keyframes bi-sobe { from { transform: scaleY(.15); } }
@keyframes bi-cresce { from { transform: scaleX(0); } }
.bi-t-tit { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #b9cbef; }
.bi-t-lista { display: grid; gap: 8px; }
.bi-t-lista span { display: block; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: .95rem; }
.bi-t-ir { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 14px 20px; border-radius: 12px; background: #fff; color: var(--brand, #0a4dff); font-weight: 800; font-size: 1.02rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.bi-t-ir span { transition: transform .2s; }
.bi-teaser:hover .bi-t-ir span { transform: translateX(4px); }
.bi-corpo { animation: tr-in .35s ease; scroll-margin-top: 90px; }
.bi-corpo[hidden] { display: none; }
.bi-corpo .tour { margin-top: 0; }

/* Peças das telas do BI */
.bi-relogio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; background: linear-gradient(120deg, #0d2a5c, #1a4f9e); color: #fff; border-radius: 10px; padding: 10px 16px; margin-bottom: 10px; }
.bi-hora { display: grid; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .2); }
.bi-hora strong { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.bi-hora span { font-size: 10.5px; color: #c9d8f5; margin-top: 4px; }
.bi-tempo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 11.5px; }
.bi-tempo b { width: 100%; font-size: 11px; color: #c9d8f5; }
.bi-tempo span { display: grid; }
.bi-tempo small { font-size: 9.5px; color: #b9cbef; font-weight: 700; }
.bi-chips { display: flex; gap: 6px; margin-bottom: 10px; }
.bi-chips span { font-size: 10.5px; font-weight: 600; color: #1d4f9c; background: #fff; border: 1px solid #c9d8f5; border-radius: 5px; padding: 3px 9px; }
.bi-dock { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--t-line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 6px 16px rgba(11, 27, 51, .08); }
.bi-dock b { width: 100%; font-size: 11px; color: var(--t-navy); }
.bi-dock span { font-size: 10.5px; font-weight: 600; border: 1px solid var(--t-line); border-radius: 6px; padding: 5px 8px; }
.bi-dock span.w { background: #e3f6ea; border-color: #bfe6cc; color: #17733a; }
.bi-at { font-size: 10.5px; color: var(--t-soft); align-self: center; }
.bi-md { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.bi-md-col { display: grid; gap: 10px; }
.bi-md .tr-card b small { font-size: 9.5px; color: var(--t-soft); font-weight: 600; margin-left: 4px; }
.bi-md .tr-card p.sub { margin: -5px 0 0 13px; font-size: 10px; color: var(--t-soft); }
.bi-md .tr-card p.tot { border-top: 1px solid var(--t-line); padding-top: 6px; font-weight: 700; }

.bi-filtros { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; margin-bottom: 8px; }
.bi-filtros > span { display: grid; background: #fff; border: 1px solid #c9d2de; border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 600; }
.bi-filtros small { font-size: 9px; font-weight: 700; color: var(--t-soft); }
.bi-auto { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--t-soft); align-self: center; }
.bi-abas { display: flex; gap: 2px; border-bottom: 1px solid #c9d2de; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.bi-abas span { flex: none; font-size: 11px; font-weight: 700; color: #1d4f9c; padding: 5px 9px; border: 1px solid #c9d2de; border-bottom: 0; border-radius: 4px 4px 0 0; background: #e9eef6; transition: background .15s; }
.bi-abas span:hover { background: #fff; }
.bi-abas span.on { background: #fff; color: var(--t-ink); }
.tr-sum.bi-kp3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bi-g2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
.bi-g2.b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bi-g2.c { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
.bi-pn { background: #fff; border: 1px solid var(--t-line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.tr-scr > .bi-pn { margin-bottom: 10px; }
.bi-pnh { display: flex; justify-content: space-between; align-items: start; gap: 8px; margin-bottom: 6px; }
.bi-pnh b { display: grid; color: var(--t-ink); font-size: 12.5px; }
.bi-pnh small { font-weight: 400; font-size: 10px; color: var(--t-soft); }
.bi-exp { display: flex; gap: 3px; }
.bi-exp em { font-style: normal; font-size: 9.5px; border: 1px solid var(--t-line); border-radius: 4px; padding: 1px 5px; color: var(--t-soft); }
.bi-pn .tr-t { border: 0; }
.bi-pn .tr-t td { padding: 6px; }
.bi-pos { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: #e5eefc; color: #1d4f9c; font-style: normal; font-weight: 800; font-size: 9.5px; }
.bi-nota { margin: 6px 0 0; font-size: 10.5px; color: var(--t-soft); }

/* Gráficos */
.bi-svg { display: block; width: 100%; height: auto; overflow: visible; }
.bi-svg .gl { stroke: #e8edf3; stroke-width: 1; }
.bi-svg .ax { font: 600 8.5px system-ui, sans-serif; fill: #8592a3; }
.bi-svg .lb { font: 700 9px system-ui, sans-serif; fill: #1d4f9c; }
.bi-svg .lb.g { fill: #17733a; }
.bi-svg .lb.r { fill: #b42323; }
.bi-svg .lb.y { fill: #8a5d00; }
.bi-svg .b { fill: #9dbdf0; }
.bi-svg .b-top { fill: #1f63c6; }
.bi-svg .b-hoje { fill: #1f63c6; opacity: .55; }
.bi-svg .b-pico { fill: #e0a100; }
.bi-svg .b-rec { fill: #1f9d4c; }
.bi-svg .b-pag { fill: #e86a6a; }
.bi-svg .meta { stroke: #1f9d4c; stroke-width: 1.2; stroke-dasharray: 5 3; }
.bi-svg .semana { fill: none; stroke: #9aa5b2; stroke-width: 1.6; stroke-dasharray: 4 3; }
.bi-svg .hoje { fill: none; stroke: #1f63c6; stroke-width: 2.4; stroke-linejoin: round; }
.bi-svg .area { fill: rgba(31, 99, 198, .12); }
.bi-svg .prev { stroke: #1f63c6; stroke-width: 1.8; stroke-dasharray: 2 3; }
.bi-svg .prevp { fill: #fff; stroke: #1f63c6; stroke-width: 1.6; }
.bi-svg .agora { fill: #1f63c6; stroke: #fff; stroke-width: 2; }
.bi-svg .linha-r { fill: none; stroke: #d93636; stroke-width: 2; stroke-linejoin: round; }
.bi-svg .area-r { fill: rgba(217, 54, 54, .08); }
.bi-svg .pt-r { fill: #fff; stroke: #d93636; stroke-width: 1.5; }
.bi-rosca-w { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; }
.bi-rosca { width: 110px; height: 110px; }
.bi-rosca .rc1 { font: 800 6.5px system-ui, sans-serif; fill: var(--t-ink); }
.bi-rosca .rc2 { font: 600 3.6px system-ui, sans-serif; fill: var(--t-soft); }
.bi-leg { display: grid; gap: 4px; font-size: 11px; }
.bi-leg span { display: flex; align-items: center; gap: 6px; }
.bi-leg i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.bi-leg em { margin-left: auto; font-style: normal; font-weight: 700; }
.bi-leg.l { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 10.5px; color: var(--t-soft); }
.bi-leg .ln { width: 16px; height: 0; border-radius: 0; border-top: 2.4px solid #1f63c6; }
.bi-leg .ln.semana { border-top: 2px dashed #9aa5b2; }
.bi-leg .ln.meta { border-top: 2px dashed #1f9d4c; }
.bi-leg .ln.prev { border-top: 2px dotted #1f63c6; }
.bi-gauge-w { display: grid; justify-items: center; gap: 4px; text-align: center; padding-top: 6px; }
.bi-gauge { width: 100%; max-width: 200px; }
.bi-gauge .gg-f, .bi-gauge .gg-v { fill: none; stroke-width: 13; stroke-linecap: round; }
.bi-gauge .gg-f { stroke: #e8edf3; }
.bi-gauge .gg-v { stroke: #1f9d4c; }
.bi-gauge .gg-t { font: 800 20px system-ui, sans-serif; fill: var(--t-ink); }
.bi-gauge-w p { margin: 0; font-size: 11.5px; color: var(--t-soft); }
.bi-gauge-w p b { color: var(--t-ink); }
.bi-hb { display: grid; gap: 7px; }
.bi-hb p { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 0; font-size: 11px; }
.bi-hb.curto p { grid-template-columns: 78px minmax(40px, 1fr) auto; gap: 6px; }
.bi-hb.largo p { grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto; }
.bi-hb p > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-hb p > i, .bi-bar { display: block; height: 10px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.bi-hb p > i > i, .bi-bar > i { display: block; height: 100%; border-radius: 99px; background: #1f63c6; }
.bi-hb i.r { background: #d93636; }
.bi-hb i.y { background: #e0a100; }
.bi-bar i.g { background: #1f9d4c; }
.bi-bar i.c { background: #8a96a6; }
.bi-hb em { font-style: normal; font-weight: 700; text-align: right; white-space: nowrap; }
.bi-abc { display: grid; gap: 10px; }
.bi-abc p { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 8px; align-items: center; margin: 0; font-size: 11.5px; }
.bi-abc .bi-bar { grid-column: 2; }
.bi-heat { display: grid; grid-template-columns: 30px repeat(15, minmax(0, 1fr)); gap: 3px; align-items: center; }
.bi-heat small { font-size: 9.5px; font-weight: 600; color: var(--t-soft); text-align: center; }
.bi-heat i { display: block; height: 18px; border-radius: 3px; }
.bi-heat .h0 { background: #f1f5fb; }
.bi-heat .h1 { background: #dbe7fa; }
.bi-heat .h2 { background: #b3cdf3; }
.bi-heat .h3 { background: #7fa9ea; }
.bi-heat .h4 { background: #4683dc; }
.bi-heat .h5 { background: #1c58b8; }

@media (max-width: 960px) {
  .bi-teaser { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 760px) {
  .bi-teaser { padding: 20px 16px; border-radius: 18px; gap: 18px; }
  .bi-t-ola b { font-size: 1.3rem; }
  .bi-t-kpis strong { font-size: 1.12rem; }
  .bi-t-lista span:nth-child(n+5) { display: none; }
  .bi-md, .bi-g2, .bi-g2.b, .bi-g2.c { grid-template-columns: 1fr; }
  .tr-sum.bi-kp3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-sum .hide-s, .bi-filtros .hide-s, .bi-tempo .hide-s, .bi-dock .hide-s { display: none; }
  .bi-auto { display: none; }
  .bi-hora strong { font-size: 24px; }
  .bi-rosca-w { grid-template-columns: 90px minmax(0, 1fr); }
  .bi-rosca { width: 90px; height: 90px; }
  .bi-hb p, .bi-hb.curto p { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .bi-hb.largo p { grid-template-columns: minmax(0, 1fr) auto; }
  .bi-hb.largo p > i { display: none; }
  .bi-heat { grid-template-columns: 26px repeat(15, minmax(0, 1fr)); gap: 2px; }
  .bi-heat i { height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bi-t-graf rect, .bi-t-meter i, .bi-corpo { animation: none; }
  .bi-teaser, .bi-teaser:hover { transform: none; }
}
