/* OCV HISTORICO CONSOLIDADO V186.0 — 2026.08.11 */
#historicoBox .hist186-shell{display:grid;gap:16px;font-family:Arial,Helvetica,sans-serif}
#historicoBox .hist186-shell svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hist186-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,#fff,#eff6ff);box-shadow:0 12px 32px rgba(15,23,42,.08)}
.hist186-hero h2{margin:4px 0;font-size:26px}.hist186-hero p{margin:0;color:var(--mut);font-size:14px}.hist186-kicker{color:var(--blue);font-size:11px;font-weight:900;letter-spacing:.12em}.hist186-sync{padding:9px 12px;border-radius:999px;background:#dcfce7;color:#166534;font-size:12px;font-weight:900;white-space:nowrap}
.hist186-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.hist186-summary>div{padding:15px;border:1px solid var(--line);border-radius:17px;background:var(--card);box-shadow:0 5px 16px rgba(15,23,42,.05)}.hist186-summary small{display:block;color:var(--mut);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.hist186-summary b{display:block;margin-top:5px;font-size:20px;color:var(--txt)}
.hist186-filters{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(4,minmax(135px,.6fr));gap:9px}.hist186-filters label{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:13px;background:var(--card)}.hist186-filters label input{border:0!important;background:transparent!important;padding-left:0!important;box-shadow:none!important}.hist186-filters select{min-height:44px;border-radius:13px}
.hist186-list{display:grid;gap:12px}.hist186-folder{border:1px solid var(--line);border-radius:18px;background:var(--card);overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.05)}.hist186-folder-head{width:100%;display:grid;grid-template-columns:46px 1fr auto 24px;gap:12px;align-items:center;padding:15px;text-align:left;background:transparent;border:0;color:var(--txt)}.hist186-folder-head:hover{background:#f8fafc}.hist186-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#dbeafe;color:#1d4ed8;font-weight:900}.hist186-folder-head span:nth-child(2){display:grid;gap:3px}.hist186-folder-head small{color:var(--mut);font-weight:600}.hist186-folder-head strong{font-size:15px}.hist186-folder-head i{font-style:normal;font-size:22px;transition:.2s}.hist186-folder.open .hist186-folder-head i{transform:rotate(180deg)}.hist186-folder-body{display:none;padding:0 14px 14px}.hist186-folder.open .hist186-folder-body{display:grid;gap:10px}
.hist207-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--card)}.hist207-modes,.hist207-open-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.hist207-tools button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#475569;font-size:12px;font-weight:800}.hist207-tools button:hover,.hist207-tools button.active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.hist207-tools svg{width:16px!important;height:16px!important}.hist207-alphabet{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--card)}.hist207-alphabet button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:36px;height:36px;padding:0 9px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;color:#334155;font-size:12px;font-weight:900}.hist207-alphabet button:first-child{padding:0 12px}.hist207-alphabet button small{display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-size:9px}.hist207-alphabet button.active{border-color:#2563eb;background:#2563eb;color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.2)}.hist207-alphabet button.active small{background:rgba(255,255,255,.2);color:#fff}.hist207-alphabet button:disabled{opacity:.34;cursor:not-allowed}.hist207-letter{border:1px solid #cbdcf5;border-radius:19px;background:#f8fbff;overflow:hidden}.hist207-letter-head{width:100%;display:grid;grid-template-columns:54px 1fr auto 24px;align-items:center;gap:12px;padding:14px 16px;border:0;background:linear-gradient(135deg,#f8fbff,#eef5ff);color:var(--txt);text-align:left}.hist207-letter-head:hover{background:#eaf3ff}.hist207-letter-badge{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#2563eb;color:#fff;font-size:22px;font-weight:950;box-shadow:0 6px 14px rgba(37,99,235,.22)}.hist207-letter-head>span:nth-child(2){display:grid;gap:3px}.hist207-letter-head small{color:var(--mut);font-size:12px}.hist207-letter-head strong{font-size:15px}.hist207-letter-head i{font-style:normal;font-size:22px;transition:.2s}.hist207-letter.open .hist207-letter-head i{transform:rotate(180deg)}.hist207-letter-body{display:none;padding:11px;background:#f3f7fd}.hist207-letter.open .hist207-letter-body{display:grid;gap:9px}.hist207-client-shell{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:stretch}.hist207-client-star{display:grid;place-items:center;width:34px;height:34px;align-self:center;justify-self:center;padding:0;border:0;border-radius:10px;background:#f8fafc;color:#94a3b8}.hist207-client-star:hover,.hist207-client-star.on{background:#fef3c7;color:#b45309}.hist207-client-star.on svg{fill:#fbbf24}.hist207-client-shell .hist186-folder-head{padding-left:4px}.hist207-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 3px 3px;color:var(--mut);font-size:12px}.hist207-pagination>div{display:flex;gap:5px;flex-wrap:wrap}.hist207-pagination button{min-width:36px;min-height:36px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--txt);font-size:12px;font-weight:800}.hist207-pagination button.active{border-color:#2563eb;background:#2563eb;color:#fff}.hist207-pagination button:disabled{opacity:.4;cursor:not-allowed}
.hist186-card{border:1px solid #dbe3ef;border-radius:16px;padding:15px;background:#fff}.hist186-card.favorite{border-color:#fbbf24;box-shadow:inset 3px 0 #f59e0b}.hist186-card header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.hist186-card header select{width:auto;min-width:145px}.hist186-title{display:flex;gap:9px;align-items:flex-start}.hist186-title h3{margin:1px 0 4px;font-size:16px}.hist186-title p{margin:0;color:var(--mut);font-size:12.5px}.hist186-star{display:grid;place-items:center;min-width:34px;width:34px;height:34px;padding:0;border-radius:10px;color:#94a3b8;background:#f8fafc}.hist186-star.on{color:#b45309;background:#fef3c7}.hist186-star.on svg{fill:#fbbf24}
.hist186-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:13px}.hist186-kpis>div{padding:10px;border-radius:12px;background:#f8fafc;border:1px solid #eef2f7}.hist186-kpis small{display:block;color:var(--mut);font-size:10px;text-transform:uppercase;font-weight:800}.hist186-kpis b{display:block;margin-top:3px;font-size:14px}.hist186-payment{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.hist186-payment span{padding:6px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:800}.hist186-payment span.ok{background:#dcfce7;color:#166534}.hist186-payment span.pending{background:#fff7ed;color:#9a3412}.hist186-card footer{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px;padding-top:12px;border-top:1px solid #eef2f7}.hist186-card footer button{min-height:38px;padding:8px 11px;font-size:12px}.hist186-empty{display:grid;gap:5px;padding:32px;text-align:center;border:1px dashed var(--line);border-radius:18px;background:var(--card)}.hist186-empty span{color:var(--mut)}
body.dark-pro .hist186-hero{background:linear-gradient(135deg,#101722,#0b111c)}body.dark-pro .hist186-folder,body.dark-pro .hist186-summary>div,body.dark-pro .hist186-card,body.dark-pro .hist186-filters label,body.dark-pro .hist207-tools,body.dark-pro .hist207-alphabet{background:#101722;border-color:#263247}body.dark-pro .hist186-folder-head:hover,body.dark-pro .hist186-kpis>div,body.dark-pro .hist186-star,body.dark-pro .hist207-client-star,body.dark-pro .hist207-tools button,body.dark-pro .hist207-alphabet button,body.dark-pro .hist207-pagination button{background:#0b111c;border-color:#263247}body.dark-pro .hist186-card footer{border-color:#263247}body.dark-pro .hist207-letter{border-color:#263247;background:#0b111c}body.dark-pro .hist207-letter-head{background:#101722}body.dark-pro .hist207-letter-body{background:#0b111c}
@media(max-width:1180px){.hist186-filters{grid-template-columns:1fr 1fr 1fr}.hist186-filters label{grid-column:span 2}}
@media(max-width:950px){.hist186-summary,.hist186-kpis{grid-template-columns:repeat(2,1fr)}.hist186-filters{grid-template-columns:1fr 1fr}.hist186-filters label{grid-column:span 2}}
@media(max-width:620px){.hist186-hero,.hist186-card header{flex-direction:column}.hist186-sync{align-self:flex-start}.hist186-summary,.hist186-kpis,.hist186-filters{grid-template-columns:1fr}.hist186-filters label{grid-column:auto}.hist207-tools,.hist207-pagination{align-items:stretch;flex-direction:column}.hist207-modes,.hist207-open-tools{display:grid;grid-template-columns:1fr}.hist207-tools button{justify-content:center}.hist207-letter-head{grid-template-columns:46px 1fr 20px;padding:11px}.hist207-letter-head strong{display:none}.hist207-letter-badge{width:42px;height:42px;border-radius:12px;font-size:19px}.hist207-client-shell{grid-template-columns:42px minmax(0,1fr)}.hist186-folder-head{grid-template-columns:42px 1fr 20px}.hist186-folder-head strong{display:none}.hist186-card header select{width:100%}.hist186-card footer button{flex:1 1 calc(50% - 7px)}}

/* V206 — resumo do acordo financeiro sincronizado */
.hist206-finance{display:grid;grid-template-columns:.7fr 1fr 1.45fr;gap:8px;margin-top:10px;padding:10px;border:1px solid #bfdbfe;border-radius:13px;background:#eff6ff}
.hist206-finance>span{display:grid;gap:3px}.hist206-finance small{color:#64748b;font-size:9px;font-weight:900;text-transform:uppercase}.hist206-finance b{color:#0f172a;font-size:12px}.hist206-finance em{color:#475569;font-size:10px;font-style:normal}
body.dark-pro .hist206-finance{border-color:#1e40af;background:#102445}body.dark-pro .hist206-finance b{color:#e5eefb}
@media(max-width:760px){.hist206-finance{grid-template-columns:1fr}}
