.tp-historico{max-width:1440px;margin:0 auto;padding:24px;color:var(--ink,#172c27);font:14px/1.5 "Source Sans 3",system-ui,sans-serif;min-width:0}
.tp-historico [hidden]{display:none!important}.tp-historico *{box-sizing:border-box}
.tp-historico h1{font-size:27px;line-height:1.15;margin:0 0 8px}.tp-historico h2{font-size:18px;margin:0 0 8px}.tp-historico h3{font-size:16px;margin:18px 0 8px}
.tp-historico p{margin:6px 0 12px}.tp-historico .rh-sobrancelha{color:var(--muted,#556d65);font-size:12px;margin:0 0 7px}
.tp-historico .rh-cabecalho,.tp-historico .rh-dialogo-cabecalho{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:18px}
.tp-historico .rh-cabecalho{padding:20px;background:var(--surface,#fff);border:1px solid var(--rule,#d8e0db);border-radius:7px}
.tp-historico .rh-card{background:var(--surface,#fff);border:1px solid var(--rule,#d8e0db);border-radius:7px;padding:20px;margin:16px 0}
.tp-historico .rh-nota{font-size:13px;color:var(--body,#53665e);line-height:1.5}
.tp-historico .rh-origem{color:var(--accent,#17594d)}.tp-historico .rh-medida-atual{font-weight:600}
.tp-historico .rh-periodo-atalho{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-top:14px}.tp-historico .rh-periodo-atalho p{flex:1 1 260px;margin:0}
.tp-historico .rh-valores{display:flex;flex-wrap:wrap;gap:12px 24px;margin:16px 0;padding-top:12px;border-top:1px solid var(--rule,#d8e0db)}.tp-historico .rh-valores div{flex:1 1 180px}.tp-historico .rh-valores dt{font-weight:600}.tp-historico .rh-valores dd{margin:3px 0 0;color:var(--body,#53665e);font-size:13px}
.tp-historico .rh-status:not(:empty){padding:14px 16px;border-left:3px solid var(--accent,#17594d);background:var(--surface,#fff);margin-bottom:16px}
.tp-historico .rh-filtros{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.tp-historico .rh-filtros label{display:grid;gap:5px;font-size:13px;flex:1 1 120px}
.tp-historico .rh-filtros .rh-periodo{flex-basis:200px}
.tp-historico .rh-filtros .rh-busca{flex:2 1 260px}.tp-historico label input,.tp-historico label select{width:100%;min-width:0;height:39px;margin:0;padding:7px 9px;background:var(--surface,#fff);color:var(--ink,#172c27);border:1px solid var(--rule,#cad5ce);border-radius:3px;font:inherit}
.tp-historico button,.tp-historico .rh-exportar{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 12px;background:var(--surface,#fff);color:var(--accent,#17594d);border:1px solid var(--rule,#cad5ce);font:inherit;font-size:13px;font-weight:600;border-radius:3px;text-decoration:none;cursor:pointer;white-space:normal}
.tp-historico button:hover,.tp-historico .rh-exportar:hover{background:var(--accent-soft,#e7f2ed);border-color:var(--accent,#17594d)}.tp-historico button:disabled{opacity:.48;cursor:default}
.tp-historico :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--accent,#17594d);outline-offset:3px}
.tp-historico .rh-resumos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tp-historico .rh-resumos button{display:grid;justify-content:stretch;text-align:left;padding:16px;color:var(--ink,#172c27);border-radius:7px}
.tp-historico .rh-resumos strong{font-size:27px;font-variant-numeric:tabular-nums;line-height:1.2}.tp-historico .rh-resumos small{font-size:12px;color:var(--body,#53665e);font-weight:400}.tp-historico .rh-resumos button[aria-pressed=true]{border:2px solid var(--accent,#17594d);background:var(--accent-soft,#e7f2ed);padding:15px}
.tp-historico .rh-tabela{position:relative;overflow:auto;width:100%;margin-top:16px}.tp-historico table{width:100%;border-collapse:collapse;table-layout:auto}.tp-historico th{text-align:left;font-weight:600;font-size:12px;color:var(--body,#53665e);background:var(--surface2,#f7f9f6);white-space:nowrap}
.tp-historico th,.tp-historico td{padding:12px 10px;border-bottom:1px solid var(--rule,#d8e0db);vertical-align:middle}.tp-historico td:first-child{min-width:190px;max-width:290px;overflow-wrap:anywhere}.tp-historico td small{display:block;margin-top:4px;color:var(--body,#53665e);font-size:12px;font-weight:400}
.tp-historico tbody tr:hover{background:var(--surface2,#f5f8f5)}.tp-historico .rh-numero{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.tp-historico .rh-vazio{padding:28px;text-align:center}
.tp-historico .rh-badge{display:inline-block;padding:3px 7px;border:1px solid var(--rule,#cbd4cf);border-radius:4px;font-size:12px;white-space:nowrap}.tp-historico .rh-reducao{color:var(--accent,#17594d);background:var(--accent-soft,#e7f2ed)}
.tp-historico .rh-paginacao{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:16px}.tp-historico .rh-total{margin-right:auto;font-size:13px;color:var(--body,#53665e)}
.tp-historico details{margin-top:10px}.tp-historico summary{cursor:pointer;color:var(--accent,#17594d);width:fit-content}.tp-historico details p{margin-top:10px;max-width:1000px}
.tp-historico .rh-dialogo{width:min(760px,calc(100vw - 32px));max-height:90vh;padding:24px;color:var(--ink,#172c27);background:var(--surface,#fff);border:1px solid var(--rule,#d8e0db);border-radius:8px;overflow:auto}.tp-historico .rh-dialogo::backdrop{background:rgb(0 20 15 / .55)}
.tp-historico .rh-dialogo td:first-child{min-width:120px}.tp-historico .rh-dialogo ul{padding-left:20px}.tp-historico .rh-dialogo li{margin:8px 0}.tp-historico .rh-equacao{padding:14px;background:var(--surface2,#f5f8f5);border-radius:4px}
.tp-historico .rh-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.tp-historico{padding:16px}.tp-historico .rh-resumos{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-historico .rh-cabecalho{flex-wrap:wrap;padding:14px}.tp-historico .rh-card{padding:14px}.tp-historico .rh-dialogo{padding:16px}.tp-historico .rh-paginacao{flex-wrap:wrap}.tp-historico .rh-total{flex-basis:100%}.tp-historico .rh-filtros label{flex-basis:140px}}
