/* AF CRM — Renomear/configurar etapas dos quadros (30/09/2026) */
.akr-lapis { position: fixed; z-index: 9990; display: none; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; background: rgba(255,255,255,.95); color: #44403c; font-size: 13px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.akr-lapis:hover { background: #fff; color: #1d4ed8; border-color: #93c5fd; }
.akr-lapis.akr-engr { background: transparent; border: 0; box-shadow: none; color: rgba(255,255,255,.85); font-size: 15px; }
.akr-lapis.akr-engr:hover { background: rgba(255,255,255,.18); color: #fff; }
.akr-edita { position: fixed; z-index: 9991; padding: 2px 8px; border: 1px solid #93c5fd; border-radius: 6px; background: #fff; color: #1c1917; outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.2), 0 4px 12px rgba(0,0,0,.15); }
.akr-destaque { outline: 2px solid #3b82f6 !important; outline-offset: 2px; border-radius: 8px; transition: outline-color .3s; }
:is(.dark *).akr-lapis:not(.akr-engr) { background: rgba(28,25,23,.95); color: #e7e5e4; border-color: #57534e; }
:is(.dark *).akr-edita { background: #1c1917; color: #f5f5f4; border-color: #3b82f6; }
/* honorários da ficha: Em aberto × Pagos */
.ahr-lista { display: flex !important; flex-direction: column; }
.ahr-lista > * { margin-top: 0 !important; margin-bottom: 12px !important; }
.ahr-sec { margin: 8px 0 4px !important; padding: 6px 2px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #57534e; border-bottom: 1px solid #e7e5e4; }
.ahr-sec-abertos { color: #b45309; border-bottom-color: #fde68a; }
.ahr-sec-pagos { color: #15803d; border-bottom-color: #bbf7d0; margin-top: 16px !important; }
.ahr-venc { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #44403c; }
.ahr-venc.ahr-ruim { color: #b91c1c; }
.ahr-venc.ahr-perto { color: #b45309; }
.ahr-venc.ahr-ok { color: #15803d; font-weight: 500; }
.ahr-venc.ahr-sem { color: #a8a29e; font-weight: 500; }
:is(.dark *).ahr-sec { color: #d6d3d1; border-bottom-color: #44403c; }
:is(.dark *).ahr-venc { color: #d6d3d1; }
:is(.dark *).ahr-venc.ahr-ruim { color: #fca5a5; }
:is(.dark *).ahr-venc.ahr-ok { color: #86efac; }
.akr-funil-tit { padding: 16px 16px 8px; }
.akr-funil-tit h1 { margin: 0; line-height: 1.2; }
.akr-funil-tit p { margin: 2px 0 0; }
/* honorários: filtros e lista resumida */
.ahr-filtros { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 12px !important; }
.ahr-pilulas, .ahr-modo { display: flex; flex-wrap: wrap; gap: 6px; }
.ahr-pil, .ahr-modo-bt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #e7e5e4; border-radius: 999px; background: #fff; color: #44403c; font-size: 13px; font-weight: 600; cursor: pointer; }
.ahr-pil:hover, .ahr-modo-bt:hover { border-color: #a8a29e; }
.ahr-pil.ahr-on, .ahr-modo-bt.ahr-on { background: #1c1917; border-color: #1c1917; color: #fff; }
.ahr-pil-n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.07); font-size: 12px; text-align: center; }
.ahr-pil.ahr-on .ahr-pil-n { background: rgba(255,255,255,.2); }
.ahr-pil-ruim:not(.ahr-on) { color: #b91c1c; border-color: #fecaca; }
.ahr-tabela { border: 1px solid #e7e5e4; border-radius: 12px; overflow: hidden; background: #fff; }
.ahr-tr { display: grid; grid-template-columns: minmax(160px, 2.2fr) 1fr 1fr 1.1fr 1.1fr 1.1fr 0.9fr; gap: 10px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid #f5f5f4; background: transparent; font-size: 13px; color: #292524; text-align: left; cursor: pointer; }
.ahr-tr:hover { background: #fafaf9; }
.ahr-th, .ahr-tf { cursor: default; font-weight: 700; background: #fafaf9; }
.ahr-th { border-top: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #78716c; }
.ahr-th:hover, .ahr-tf:hover { background: #fafaf9; }
.ahr-parc { display: flex; flex-direction: column; min-width: 0; }
.ahr-parc small { color: #78716c; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ahr-num { text-align: right; font-variant-numeric: tabular-nums; }
.ahr-txt-ruim { color: #b91c1c; font-weight: 600; }
.ahr-txt-ok { color: #15803d; }
.ahr-st { justify-self: start; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #f5f5f4; color: #44403c; }
.ahr-st-quitado { background: #f0fdf4; color: #15803d; }
.ahr-st-atrasado { background: #fef2f2; color: #b91c1c; }
.ahr-st-em_dia { background: #eff6ff; color: #1d4ed8; }
.ahr-destaque { outline: 2px solid #3b82f6; outline-offset: 3px; border-radius: 12px; }
@media (max-width: 760px) {
  .ahr-tr { grid-template-columns: 1.6fr 1fr 1fr; }
  .ahr-tr > span:nth-child(3), .ahr-tr > span:nth-child(4), .ahr-tr > span:nth-child(5) { display: none; }
}
:is(.dark *).ahr-pil, :is(.dark *).ahr-modo-bt { background: #1c1917; color: #e7e5e4; border-color: #44403c; }
:is(.dark *).ahr-pil.ahr-on, :is(.dark *).ahr-modo-bt.ahr-on { background: #f5f5f4; color: #1c1917; border-color: #f5f5f4; }
:is(.dark *).ahr-tabela { background: #1c1917; border-color: #44403c; }
:is(.dark *).ahr-tr { color: #e7e5e4; border-top-color: #292524; }
:is(.dark *).ahr-tr:hover, :is(.dark *).ahr-th, :is(.dark *).ahr-tf { background: #292524; }
