/* =========================================================
   Página do Max Posto · telas ilustrativas
   (usa a moldura de telas de agenda.css)
   ========================================================= */

/* Cores dos combustíveis */
.cor { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; flex: 0 0 auto; }
.cor.gc { background: #F09000; } .cor.ga { background: #C0392B; } .cor.et { background: #25A55A; } .cor.ds { background: #202038; }

/* ---------- Topo ---------- */
.mini-pista {
  background: rgba(255, 255, 255, .97); border-radius: 20px; padding: 22px; color: var(--marinho);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .3); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); transition: transform .6s;
}
.hero-visual:hover .mini-pista { transform: none; }
.mp-bicos { display: grid; gap: 8px; margin-bottom: 14px; }
.mp-bico { position: relative; overflow: hidden; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; background: var(--cinza-2); border-radius: 12px; padding: 10px 14px; }
.mp-bico .cor { width: 14px; height: 14px; border-radius: 4px; margin: 0; }
.mp-bico strong { display: block; font-size: .92rem; }
.mp-bico small { color: #8A8AA0; font-size: .78rem; }
.mp-bico > b { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1rem; }
.mp-bico .livre { color: #9A9AB0; font-weight: 600; font-size: .85rem; }
.mp-bico .pagar-txt { color: #6B5BD2; font-size: .8rem; }
.mp-bico.ativo { background: #FFF6E6; box-shadow: inset 3px 0 #F09000; }
.mp-bico.pagar { background: rgba(107, 91, 210, .08); box-shadow: inset 3px 0 #6B5BD2; }
.mp-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(240, 144, 0, .15); }
.mp-barra em { display: block; height: 100%; width: 0; background: #F09000; animation: encher 6s linear infinite; }
.mp-barra.lenta em { animation-duration: 11s; }
@keyframes encher { to { width: 100%; } }
.pagina-posto .chip-flutuante.c2 { bottom: -58px; }
.mp-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--borda); padding-top: 12px; }
.mp-total small { display: block; color: #8A8AA0; font-size: .74rem; }
.mp-total b { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1.15rem; }

/* ---------- Ajustes comuns ---------- */
.menu-badge.laranja-b { background: #F09000; }
.linha-graf.alto { height: 170px; }
.l2.cinza { stroke: #C9C9D9; stroke-dasharray: 1; }
.alertas { display: grid; gap: 6px; }
.alertas .caixa-cab { margin-bottom: 2px; }
.alerta-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 9px; }
.alerta-item .ico { width: 16px; height: 16px; flex: 0 0 auto; }
.alerta-item.amarelo { background: rgba(240, 144, 0, .12); color: #A55F00; }
.alerta-item.vermelho { background: rgba(229, 72, 77, .1); color: #B3262B; }
.alerta-item.azul { background: rgba(107, 91, 210, .1); color: #4A3DA8; }
.hbarras.comb > div { grid-template-columns: 118px 1fr 44px; }
.hbarras.comb span { white-space: nowrap; }
.hbarras .cor, .tela.ativa .hbarras .cor { display: inline-block; width: 10px; height: 10px; border-radius: 3px; transition: none; }
.pagina-posto .app-busca { white-space: nowrap; }

/* Tabelas */
.tabela-app { background: #fff; border: 1px solid #ECECF2; border-radius: 14px; overflow: hidden; }
.tabela-app .tr { display: grid; grid-template-columns: 52px 50px 130px 1fr 66px 54px 76px 96px 140px; align-items: center; gap: 8px; padding: 0 14px; height: 40px; border-top: 1px solid #F3F3F7; font-size: 12px;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.tela.ativa .tabela-app .tr { opacity: 1; transform: none; }
.tabela-app .tr.th { height: 34px; border-top: 0; background: #FAFAFC; font-size: 10.5px; font-weight: 700; color: #8A8AA0; text-transform: uppercase; letter-spacing: .03em; opacity: 1; transform: none; }
.tabela-app .dir { text-align: right; font-variant-numeric: tabular-nums; }
.tabela-app .tr > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bico { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 6px; background: var(--marinho); color: #fff; font-size: 11px; }
.tr.novo-ab { animation: linha-nova-app 2.4s ease infinite; }
@keyframes linha-nova-app { 0%, 100% { background: transparent; } 40% { background: rgba(240, 144, 0, .12); } }
.tr.afericao { color: #8A8AA0; font-style: italic; }
.sem-id { color: #B3262B; font-weight: 700; }
.rodape-tabela { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: #6B6B85; }
.tabela-app.mini .tr { grid-template-columns: 1.4fr 1fr 1fr .8fr .8fr; height: 34px; font-size: 11.5px; }
.tabela-app.mini.lmc .tr { grid-template-columns: 1.5fr repeat(6, 1fr); }
.neg { color: #B3262B; font-weight: 700; } .pos { color: #1D6E40; font-weight: 700; }

/* 3. Pista */
.pista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bomba { background: #EEEEF4; border-radius: 16px; padding: 10px; display: grid; gap: 8px; }
.bomba-cab { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; padding: 2px 4px; }
.bomba-cab .ico { width: 16px; height: 16px; color: #F09000; }
.bico-card { position: relative; overflow: hidden; background: #fff; border-radius: 12px; padding: 12px; display: grid; gap: 3px; border: 1.5px solid transparent;
  opacity: 0; transform: scale(.96); transition: opacity .4s, transform .4s; }
.tela.ativa .bico-card { opacity: 1; transform: none; }
.bc-topo { display: flex; justify-content: space-between; align-items: center; }
.bc-topo .cor { width: 14px; height: 14px; margin: 0; border-radius: 4px; }
.bico-card small { color: #8A8AA0; font-size: 10.5px; }
.bico-card strong { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bico-card em { font-style: normal; font-size: 11px; font-weight: 600; color: #55556E; }
.bico-card.livre strong { color: #B5B5C8; font-size: 18px; }
.bico-card.abastecendo { border-color: #F09000; background: #FFF9EF; }
.bico-card.abastecendo strong { color: #C77700; }
.bico-card.pagar { border-color: #6B5BD2; background: rgba(107, 91, 210, .06); }
.bico-card.pagar strong { color: #4A3DA8; }
.bc-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(240, 144, 0, .15); }
.bc-barra u { display: block; height: 100%; width: 0; background: #F09000; animation: encher 7s linear infinite; }
.bc-barra.lenta u { animation-duration: 12s; }
.pista-rodape { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; margin-top: 14px; }
.pista-rodape > div { background: #fff; border: 1px solid #ECECF2; border-radius: 12px; padding: 12px 14px; }
.pista-rodape small { display: block; color: #8A8AA0; font-size: 11px; }
.pista-rodape b { font-size: 15px; }

/* 4. Frentistas */
.frentistas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.fr-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #ECECF2; border-radius: 14px; padding: 14px; text-align: center; display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
.tela.ativa .fr-card { opacity: 1; transform: none; }
.fr-card .avatar { width: 46px; height: 46px; font-size: 14px; margin-bottom: 6px; }
.fr-card > small { color: #8A8AA0; font-size: 11px; }
.fr-card.top { border-color: #F09000; background: linear-gradient(180deg, #FFF8EC, #fff); }
.fr-pos { position: absolute; top: 10px; left: 12px; font-weight: 800; color: #F09000; font-size: 13px; }
.fr-num { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 4px; width: 100%; margin-top: 10px; }
.fr-num b { display: block; font-size: 13px; }
.fr-num small { color: #8A8AA0; font-size: 10px; }
.fr-barra { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: #F09000; transition: width 1.2s cubic-bezier(.2, .8, .2, 1) .3s; }
.tela.ativa .fr-barra { width: calc(var(--v) * 100%); }
.fr-baixo { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.pilhas { display: grid; gap: 10px; margin-bottom: 10px; }
.pilhas > div { display: grid; grid-template-columns: 54px 1fr; align-items: center; font-size: 12px; font-weight: 600; }
.pilha { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: #EEEEF3; }
.pilha i { width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1) .2s; }
.tela.ativa .pilha i { width: var(--w); }
.sem-ident { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: rgba(229, 72, 77, .05); border-color: rgba(229, 72, 77, .3); }
.sem-ident > .ico { width: 30px; height: 30px; color: #E5484D; }
.sem-ident small { display: block; color: #6B6B85; font-size: 11.5px; margin-top: 2px; }

/* 5. Caixa */
.caixa-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
.total-cx { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; font-size: 17px; color: var(--marinho); }
.formas { display: grid; gap: 10px; margin-bottom: 14px; }
.formas > div { display: grid; grid-template-columns: 26px 1fr 80px 92px; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.formas b { text-align: right; font-variant-numeric: tabular-nums; }
.formas > div > i { height: 8px; border-radius: 4px; background: #EEEEF3; position: relative; overflow: hidden; }
.formas > div > i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #F09000; border-radius: 4px; transition: width 1s cubic-bezier(.2, .8, .2, 1) .2s; }
.tela.ativa .formas > div > i::after { width: calc(var(--v) * 100%); }
.fp-ico { width: 26px; height: 26px; border-radius: 8px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.sobra-quebra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid #F0F0F5; padding-top: 12px; }
.sobra-quebra small { display: block; color: #8A8AA0; font-size: 11px; }
.sobra-quebra b { font-size: 16px; }
.quebra { color: #B3262B; }

/* 6. Notas */
.notas-grid { display: grid; grid-template-columns: 1fr 300px; gap: 14px; }
.notas-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.notas-kpis > div { background: #fff; border: 1px solid #ECECF2; border-radius: 12px; padding: 8px 12px; }
.notas-kpis small { display: block; color: #8A8AA0; font-size: 10.5px; }
.notas-kpis b { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 20px; }
.notas-kpis .vermelho b { color: #E5484D; }
.tabela-app .tr.n { grid-template-columns: 62px 58px 1fr 76px 96px; }
.emitir { background: #fff; border: 1px solid #ECECF2; border-radius: 16px; box-shadow: 0 16px 36px rgba(32, 32, 56, .1); align-self: start; }
.form-app.um { grid-template-columns: 1fr; }
.abast-sel { display: grid; gap: 6px; }
.abast-sel > div { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; border: 1px solid #E2E2EA; border-radius: 10px; padding: 8px 10px; font-size: 11.5px; font-weight: 600; }
.abast-sel .on { border-color: #F09000; background: #FFF8EC; }
.chk { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #C9C9D9; display: grid; place-items: center; font-size: 11px; color: #fff; }
.abast-sel .on .chk { background: #F09000; border-color: #F09000; }
.total-nota { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #E2E2EA; padding-top: 10px; }
.total-nota small { color: #8A8AA0; }
.total-nota b { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 20px; }

/* 6b. Grade de notas emitidas */
.acoes-grade { display: flex; gap: 8px; }
.acoes-grade .btn-app { font-size: 11.5px; padding: 7px 12px; }
.filtros-grade { display: flex; align-items: stretch; gap: 8px; margin-bottom: 10px; }
.fg-campo { background: #fff; border: 1px solid #E2E2EA; border-radius: 10px; padding: 4px 10px; display: flex; flex-direction: column; justify-content: center; }
.fg-campo small { font-size: 9.5px; color: #8A8AA0; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.fg-campo b { font-size: 11.5px; white-space: nowrap; }
.fg-chips { display: flex; align-items: center; background: #EDEDF3; border-radius: 10px; padding: 3px; }
.fg-chips span { padding: 6px 9px; border-radius: 8px; font-size: 11px; font-weight: 600; color: #6B6B85; white-space: nowrap; }
.fg-chips .on { background: #fff; color: var(--marinho); box-shadow: 0 2px 6px rgba(32, 32, 56, .1); }
.fg-busca { flex: 1; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #E2E2EA; border-radius: 10px; padding: 0 10px; color: #9A9AB0; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.fg-busca .ico { width: 14px; height: 14px; flex: 0 0 auto; }
.grade-notas { background: #fff; border: 1px solid #ECECF2; border-radius: 14px; overflow: hidden; }
.gr { display: grid; grid-template-columns: 22px 78px 56px 34px 38px 1fr 40px 66px 74px 84px 136px 16px; gap: 7px; align-items: center; padding: 0 12px; height: 31px; border-top: 1px solid #F3F3F7; font-size: 11.5px; cursor: pointer;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s, background .15s; }
.tela.ativa .gr { opacity: 1; transform: none; }
.gr > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr:nth-child(even):not(.gh) { background: #FBFBFD; }
.gr:hover:not(.gh) { background: #FFF6E8; }
.gr.sel, .gr.sel:nth-child(even) { background: rgba(240, 144, 0, .1); box-shadow: inset 3px 0 #F09000; }
.gr.gh { height: 32px; border-top: 0; background: #F6F6FA; font-size: 10px; font-weight: 700; color: #77778F; text-transform: uppercase; letter-spacing: .03em; cursor: default; opacity: 1; transform: none; }
.gr .dir { text-align: right; font-variant-numeric: tabular-nums; }
.ord { cursor: pointer; }
.ord::after { content: " ↕"; color: #C3C3D3; }
.ord.desc::after { content: " ↓"; color: #F09000; }
.ord.asc::after { content: " ↑"; color: #F09000; }
.gchk { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #C9C9D9; background: #fff; vertical-align: middle; }
.gchk.on { background: #F09000; border-color: #F09000; }
.gchk.on::after { content: "✓"; color: #fff; font-size: 10px; font-weight: 800; font-style: normal; }
.gchk.parcial { background: #F09000; border-color: #F09000; }
.gchk.parcial::after { content: "–"; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; line-height: 1; }
.mod { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 5px; }
.mod.m65 { background: #FFF3DD; color: #C77700; }
.mod.m55 { background: #E8E8F4; color: var(--marinho); }
.chave-ac { font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; color: #8A8AA0; }
.gr.erro .chave-ac { color: #B3262B; font-family: inherit; font-weight: 600; }
.gr.cancelada > span:not(:first-child):not(:nth-child(10)) { color: #A5A5B8; text-decoration: line-through; }
.mais { color: #9A9AB0; font-weight: 800; text-align: center; }
.gr-rodape { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-top: 1px solid #ECECF2; background: #F6F6FA; font-size: 11.5px; color: #55556E; }
.gr-sel { color: #C77700; font-weight: 700; }
.paginas { display: flex; gap: 4px; }
.paginas i { font-style: normal; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #fff; border: 1px solid #E2E2EA; font-size: 11px; font-weight: 600; padding: 0 5px; }
.paginas i.on { background: var(--marinho); color: #fff; border-color: var(--marinho); }

/* 6c. Dashboard de notas */
.dn-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 12px; }
.dn-kpis > div { position: relative; overflow: hidden; background: #fff; border: 1px solid #ECECF2; border-radius: 13px; padding: 10px 14px; }
.dn-kpis > div::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: #F09000; }
.dn-kpis > div:nth-child(2)::before { background: var(--marinho); }
.dn-kpis > div:nth-child(3)::before { background: #6B5BD2; }
.dn-kpis > div:nth-child(4)::before { background: #25A55A; }
.dn-kpis > div.alerta::before { background: #E5484D; }
.dn-kpis small { display: block; color: #8A8AA0; font-size: 10.5px; }
.dn-kpis b { display: block; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 21px; line-height: 1.25; }
.dn-kpis em { font-style: normal; font-size: 10.5px; color: #8A8AA0; }
.dn-kpis em.sobe { color: #1D8A4A; font-weight: 600; }
.dn-kpis .alerta b { color: #E5484D; }
.dn-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.dn-dia { grid-column: span 2; }
.pilhas-dia { display: flex; align-items: flex-end; gap: 7px; height: 104px; padding-bottom: 16px; }
.pilhas-dia > div { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.pilhas-dia i { display: block; height: 0; border-radius: 4px; transition: height 1s cubic-bezier(.2, .8, .2, 1); }
.pilhas-dia i.a { background: #FFC97A; }
.pilhas-dia i.b { background: #202038; transition-delay: .3s; }
.pilhas-dia .hoje i.a { background: #F09000; }
.tela.ativa .pilhas-dia i.a { height: calc(var(--a) * 100%); }
.tela.ativa .pilhas-dia i.b { height: calc(var(--b) * 100%); }
.pilhas-dia span { position: absolute; bottom: -16px; left: 0; right: 0; text-align: center; font-size: 10px; color: #9A9AB0; }
.dn-rosca { position: relative; justify-content: center; margin-bottom: 6px; }
.rosca-pag.dn-rosca svg { width: 84px; height: 84px; }
.dn-rosca-centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dn-rosca-centro b { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 13px; line-height: 1.1; }
.dn-rosca-centro small { font-size: 8px; color: #8A8AA0; }
.dn-leg li { display: flex; align-items: center; font-size: 11px; }
.dn-leg li b { margin-left: auto; }
.dn-hb > div { grid-template-columns: 58px 1fr 70px; gap: 8px; font-size: 11.5px; }
.dn-hb b { text-align: right; }
.hbarras.dn-hb { gap: 9px; }
.top-cli { display: grid; gap: 8px; }
.top-cli > div { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; font-size: 11.5px; font-weight: 600;
  opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .4s; }
.tela.ativa .top-cli > div { opacity: 1; transform: none; }
.top-cli .avatar { width: 28px; height: 28px; font-size: 10px; }
.top-cli span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.por-caixa { display: grid; gap: 6px; margin-bottom: 8px; }
.por-caixa > div { display: grid; grid-template-columns: 1fr 40px; gap: 4px 8px; font-size: 11.5px; font-weight: 600; }
.por-caixa span, .por-caixa i { grid-column: 1; }
.por-caixa b { grid-column: 2; grid-row: 1 / span 2; text-align: right; align-self: center; }
.por-caixa i { display: block; height: 7px; border-radius: 4px; background: #EEEEF3; position: relative; overflow: hidden; }
.por-caixa i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #FFB347, #F09000); border-radius: 4px; transition: width 1s cubic-bezier(.2, .8, .2, 1) .2s; }
.tela.ativa .por-caixa i::after { width: calc(var(--v) * 100%); }
.dn-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid #F0F0F5; padding-top: 10px; }
.dn-mini small { display: block; color: #8A8AA0; font-size: 10.5px; }
.dn-mini b { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 17px; }

/* 7. Importar */
.importar-grid { display: grid; grid-template-columns: 1fr 320px; gap: 14px; }
.tabela-app .tr.i { grid-template-columns: 1fr 52px 86px 90px; height: 54px; }
.tr.i strong { display: block; font-size: 12px; }
.tr.i small { display: block; color: #8A8AA0; font-size: 10.5px; }
.tr.i.sel { background: #FFF8EC; box-shadow: inset 3px 0 #F09000; }
.nota-detalhe { background: #fff; border: 1px solid #ECECF2; border-radius: 16px; padding: 16px; display: grid; gap: 12px; align-self: start; box-shadow: 0 16px 36px rgba(32, 32, 56, .08); }
.nd-cab { display: flex; align-items: center; gap: 10px; }
.nd-cab .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--marinho); color: #FFB347; }
.nd-cab small { display: block; color: #8A8AA0; font-size: 10.5px; }
.nd-itens { display: grid; gap: 6px; }
.nd-itens > div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: var(--cinza-2); border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 600; }
.nd-itens em { font-style: normal; font-size: 10.5px; color: #6B6B85; background: #fff; padding: 2px 8px; border-radius: 999px; }
.nd-passos { display: grid; gap: 5px; font-size: 11.5px; color: #8A8AA0; }
.nd-passos .on { color: #1D6E40; font-weight: 600; }

/* 8. Tanques */
.tanques { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.tanque { background: #fff; border: 1px solid #ECECF2; border-radius: 14px; padding: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tanque small { color: #8A8AA0; font-size: 11px; }
.tanque b { font-size: 11.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tq-vaso { position: relative; width: 74px; height: 118px; border-radius: 37px / 14px; background: #EEEEF3; overflow: hidden; margin-bottom: 8px; box-shadow: inset 0 0 0 3px #E2E2EA; }
.tq-nivel { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height 1.6s cubic-bezier(.2, .8, .2, 1) .2s; }
.tela.ativa .tq-nivel { height: calc(var(--n) * 100%); }
.tq-nivel::before { content: ""; position: absolute; left: -50%; top: -6px; width: 200%; height: 12px; border-radius: 45%; background: inherit; filter: brightness(1.15); animation: onda-tq 3s ease-in-out infinite alternate; }
@keyframes onda-tq { from { transform: translateX(-8%) rotate(-2deg); } to { transform: translateX(8%) rotate(2deg); } }
.tq-nivel.gc { background: #F09000; } .tq-nivel.ga { background: #C0392B; } .tq-nivel.et { background: #25A55A; } .tq-nivel.ds { background: #34345A; }
.tq-vaso span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); font-size: 15px; z-index: 1; }
.alerta-tq { border-color: rgba(229, 72, 77, .5); background: rgba(229, 72, 77, .04); }
.alerta-tq .tq-vaso span { color: #B3262B; text-shadow: none; }
.alerta-tq strong::after { content: " ⚠"; color: #E5484D; }

/* 9. Clientes */
.ficha-perfil.cli .avatar.grande { box-shadow: 0 0 0 5px rgba(32, 32, 56, .12); }
.placas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.placas > div { display: flex; align-items: center; gap: 10px; background: var(--cinza-2); border-radius: 10px; padding: 8px 10px; }
.placas small { color: #6B6B85; font-size: 11px; }
.placa { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .06em; background: #fff; border: 2px solid var(--marinho); border-top-width: 6px; border-top-color: #1E4FA8; border-radius: 5px; padding: 1px 7px; }
.receber { display: grid; gap: 8px; }
.receber > div { display: grid; grid-template-columns: 1fr auto 100px; gap: 10px; align-items: center; font-size: 12px; padding: 6px 0; border-top: 1px solid #F3F3F7; }
.receber > div:first-child { border-top: 0; }
.receber b { text-align: right; }

/* 10. Relatórios */
.rel-largo { grid-column: 1 / -1; }
.barras-dia { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.barras-dia i { flex: 1; height: 0; border-radius: 5px 5px 2px 2px; background: #E3E3EC; transition: height 1s cubic-bezier(.2, .8, .2, 1); }
.barras-dia i:nth-child(6), .barras-dia i:nth-child(13) { background: #FFC97A; }
.barras-dia i.hoje { background: #F09000; }
.tela.ativa .barras-dia i { height: calc(var(--v) * 100%); }
.rosca-pag { display: flex; align-items: center; gap: 16px; }
.rosca-pag svg { width: 110px; height: 110px; transform: rotate(-90deg); flex: 0 0 auto; }
.rosca-pag circle { fill: none; stroke-width: 6; }
.rosca-pag .f { stroke: #EEEEF3; }
.rosca-pag .sg { stroke-dasharray: 0 100; stroke-dashoffset: calc(var(--o) * -1); transition: stroke-dasharray 1.3s cubic-bezier(.2, .8, .2, 1) .2s; }
.tela.ativa .rosca-pag .sg { stroke-dasharray: var(--d) 100; }
.pagina-posto .rel-grid { grid-template-columns: 1fr 1fr 1fr; }
.pagina-posto .rel-kpis { grid-template-columns: 1fr; gap: 8px; }

/* ---------- Do bico à nota ---------- */
.caminho { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cm-passo { position: relative; z-index: 1; background: var(--marinho-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 26px 18px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .4s, transform .4s, box-shadow .4s, background .4s; }
.cm-passo .ico { width: 34px; height: 34px; color: #FFB347; margin-bottom: 4px; }
.cm-passo strong { color: #fff; font-size: 1.02rem; }
.cm-passo small { color: #A9A9C4; font-size: .85rem; }
.cm-num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: #F09000; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; box-shadow: 0 0 0 5px var(--marinho); }
.cm-passo.ativo { border-color: rgba(240, 144, 0, .7); background: #34345A; transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.cm-trilho { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: rgba(255, 255, 255, .1); z-index: 0; }
.cm-trilho u { position: absolute; left: 0; top: -1px; height: 4px; width: 0; background: linear-gradient(90deg, #F09000, #FFB347); border-radius: 2px; transition: width .8s ease; box-shadow: 0 0 12px #F09000; }

/* ---------- Recursos com fotos em movimento ---------- */
.recursos > .rec-card { position: relative; overflow: hidden; padding: 0 24px 26px; }
.rec-foto {
  position: relative; margin: 0 -24px 0; height: 170px; overflow: hidden; background: var(--marinho);
  clip-path: inset(0 0 100% 0); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1);
}
.rec-card.visivel .rec-foto, .recursos:not(.anima) .rec-foto { clip-path: inset(0 0 0 0); }
.rec-foto img {
  width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 50%;
  animation: ken-burns 16s ease-in-out infinite alternate; will-change: transform;
  transition: filter .5s;
}
.rec-card:nth-child(3n+2) .rec-foto img { animation-name: ken-burns-2; animation-duration: 19s; }
.rec-card:nth-child(3n) .rec-foto img { animation-name: ken-burns-3; animation-duration: 22s; }
.rec-card:nth-child(2) .rec-foto img { animation-delay: -4s; }
.rec-card:nth-child(4) .rec-foto img { animation-delay: -7s; }
.rec-card:nth-child(6) .rec-foto img { animation-delay: -3s; }
.rec-card:nth-child(8) .rec-foto img { animation-delay: -9s; }
@keyframes ken-burns { 0% { transform: scale(1.05) translate(0, 0); } 100% { transform: scale(1.22) translate(-4%, -3%); } }
@keyframes ken-burns-2 { 0% { transform: scale(1.22) translate(3%, 2%); } 100% { transform: scale(1.05) translate(-2%, 0); } }
@keyframes ken-burns-3 { 0% { transform: scale(1.08) translate(-3%, 2%); } 100% { transform: scale(1.24) translate(3%, -2%); } }
/* película com a cor da marca e brilho que passa no hover */
.rec-foto::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(32, 32, 56, 0) 35%, rgba(32, 32, 56, .55) 100%);
  transition: opacity .5s;
}
.rec-foto::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; z-index: 2; pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg);
  transition: left .9s ease;
}
.rec-card:hover .rec-foto::after { left: 140%; }
.rec-card:hover .rec-foto img { filter: saturate(1.15) brightness(1.05); animation-duration: 6s; }
.rec-card:hover .rec-foto::before { opacity: .6; }
/* ícone sobre a foto */
.recursos .rec-card .dif-ico {
  position: relative; z-index: 3; margin: -32px 0 .9rem; background: #fff; box-shadow: 0 10px 24px rgba(32, 32, 56, .18);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .3s, color .3s;
}
.rec-card:hover .dif-ico { transform: translateY(-6px) rotate(-6deg); background: #F09000; color: #fff; }
.rec-card h3 { transition: color .3s; }
.rec-card:hover h3 { color: #C77700; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .caminho { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .cm-trilho { display: none; }
}
@media (max-width: 860px) { .mini-pista { transform: none; } }
@media (max-width: 640px) {
  .caminho { grid-template-columns: 1fr 1fr; }
}
