/* Macedo HUB — Fiscal (desktop). Reaproveita a estrutura da Central de Boletos (.cb). */
.cb.so-cert { grid-template-columns: 236px minmax(0, 1fr) 0; }
.cb.so-cert .cb-det { display: none; }
.fs .cb-abas .t-notas .i { color: var(--tinta-2); } .fs .cb-abas .t-cert .i { color: #A07F2E; }
.fs .cb-abas .t-cert .c { background: #E9C878; color: #4A3608; }
.fs-sefaz { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--linha); font-size: 12.5px; }
.fs-sefaz .pt { width: 9px; height: 9px; border-radius: 50%; background: #3E8A63; box-shadow: 0 0 0 4px rgba(62,138,99,0.16); flex: none; }
.fs-sefaz strong { display: block; font-size: 13px; }
.fs-sefaz span { color: var(--tinta-2); }
.fs-filtros { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 22px 12px; }
.fs-filtros[hidden], .cb-busca[hidden] { display: none; }
.fs-sel select { height: 36px; padding: 0 30px 0 12px; border: 0; border-radius: 10px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--sup) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%237A8A80' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--tinta); font: 500 13.5px var(--body); box-shadow: inset 0 0 0 1px var(--linha); }
.fs-sel select:focus-visible { outline: 2px solid var(--dourado); }
.fs-per { margin: 0; padding: 3px; border-radius: 10px; background: var(--sup); box-shadow: inset 0 0 0 1px var(--linha); }
.fs-per button { height: 30px; }
.fs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.fs-stats div { padding: 12px 14px; border-radius: 13px; background: var(--sup); box-shadow: inset 0 0 0 1px var(--linha); }
.fs-stats small { display: block; font-size: 12px; color: var(--tinta-2); }
.fs-stats strong { display: block; margin-top: 2px; font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.fs-stats .a strong { color: #9A6A12; }
.fs-dia { margin: 16px 2px 8px; font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.fs-dia:first-child { margin-top: 2px; }
.fs-lin.suspeita { box-shadow: inset 0 0 0 1.5px rgba(192,83,63,0.5); }
.fs-faixa { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px 12px 10px 14px; border-radius: 12px; background: rgba(201,162,74,0.12); font-size: 13.5px; }
.fs-faixa.al { background: rgba(224,122,100,0.12); }
.fs-chip { height: 22px; margin-left: 6px; vertical-align: 1px; }
.fs-manif { grid-template-columns: 1fr 1fr; }
.fs-manif .cb-bt.forte { grid-column: 1 / -1; }
.fs-manif .cb-link { grid-column: 1 / -1; justify-self: start; }
.cb-bt.perigo { color: #A3402F; box-shadow: inset 0 0 0 1px rgba(192,83,63,0.45); }
.fs-just { margin-top: 10px; }
.fs-just[hidden] { display: none; }
.fs-dl { grid-template-columns: 76px 1fr; }
.fs-dl .ch { font: 12px ui-monospace, Menlo, monospace; word-break: break-all; }
.fs-copiar { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; vertical-align: -6px; border: 0; border-radius: 6px; background: transparent; color: var(--tinta-2); cursor: pointer; }
.fs-copiar:hover { background: rgba(127,127,100,0.12); }
.fs-itens { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 12.5px; }
.fs-itens th { padding: 6px 0; text-align: left; font-weight: 500; color: var(--tinta-2); box-shadow: inset 0 -1px 0 var(--linha); }
.fs-itens td { padding: 7px 0; vertical-align: top; box-shadow: inset 0 -1px 0 var(--linha); }
.fs-itens th:nth-child(n+2), .fs-itens td:nth-child(n+2) { text-align: right; white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
.fs-dups { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; font-size: 12.5px; color: var(--tinta-2); }
.fs-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.fs-cert { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--sup); box-shadow: inset 0 0 0 1px var(--linha); }
.fs-cert.atencao { box-shadow: inset 0 0 0 1.5px rgba(201,162,74,0.6); }
.fs-cert.erro { box-shadow: inset 0 0 0 1.5px rgba(192,83,63,0.55); }
.fs-cert header { display: flex; align-items: center; gap: 10px; }
.fs-cert header img { width: 38px; height: 38px; border-radius: 50%; }
.fs-cert header strong { display: block; font-size: 14.5px; }
.fs-cert header span { font-size: 12px; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.fs-cert .val { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--tinta-2); }
.fs-cert .val b { color: var(--tinta); font-weight: 600; }
.fs-cert .fs-barra { height: 5px; border-radius: 3px; background: rgba(127,127,100,0.14); overflow: hidden; }
.fs-cert .fs-barra i { display: block; height: 100%; border-radius: 3px; background: #3E8A63; }
.fs-cert.atencao .barra i { background: #C9A24A; } .fs-cert.erro .barra i { background: #C0533F; }
.fs-cert dl { display: grid; grid-template-columns: 92px 1fr; gap: 5px 8px; margin: 0; font-size: 12.5px; }
.fs-cert dt { color: var(--tinta-2); } .fs-cert dd { margin: 0; }
.fs-cert .acoes { display: flex; gap: 8px; }
.fs-cert .acoes .cb-bt { flex: 1; min-height: 36px; font-size: 13px; }
.cb-bt.girando svg { animation: cbGira 800ms linear infinite; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

html[data-tema="escuro"] .fs-stats .a strong { color: #E8CB85; }
html[data-tema="escuro"] .cb-bt.perigo { color: #F0A090; box-shadow: inset 0 0 0 1px rgba(224,122,100,0.5); }
html[data-tema="escuro"] .fs-cert .fs-barra i { background: #66A985; }
html[data-tema="escuro"] .fs-sel select { background-color: var(--sup); }
