/* Correções direcionadas de legibilidade e densidade para Pendências e Operação. */
.data-quality-page,.operation-page{min-width:0;max-width:100%;}
.data-quality-csv-import{min-width:0;background:linear-gradient(150deg,#102740,#0b192a)!important;color:#e4effe;}
.data-quality-csv-import>.card-header{background:transparent;border-color:#29445f;color:#e4effe;}
.data-quality-csv-import>.card-header p:not(.eyebrow){color:#a6bad1;}
.data-quality-csv-import #company-csv-status{background:#0b1c30;color:#c5d8ed;border:1px solid #29445f;}
.data-quality-csv-import .csv-review-filters{background:#0a1a2b;}
.data-quality-csv-import .csv-import-controls label{color:#c8d9ed;}
.data-quality-table-wrap{max-height:390px;overscroll-behavior:contain;scrollbar-gutter:stable;}
.data-quality-table-wrap table{min-width:850px;background:#0a192a;color:#dce9f8;}
.data-quality-table-wrap thead{position:sticky;top:0;z-index:2;background:#10243a;}
.data-quality-table-wrap th{background:#10243a;color:#b8cde3;}
.data-quality-table-wrap td{background:#0b1b2e;color:#dce9f8;}
.data-quality-table-wrap tbody tr:nth-child(even) td{background:#0e2034;}
.data-quality-table-wrap tbody tr:hover td{background:#122b46;}
.data-quality-table-wrap td small{color:#9bb0c8;}
.operation-company-kpis>div{border:1px solid #29435f;background:#0b1b2e;color:#dce9f8;}
.operation-company-kpis span{color:#a8bdd4;}
.operation-company-kpis strong{color:#f1f7ff;}
.operation-health,.health-indicator,.operation-no-rate{border-color:#29435f;border-left-color:#59728c;background:#0d2034;color:#c5d5e7;}
.operation-health.health-neutral,.health-indicator.health-neutral{border-color:#29435f!important;border-left-color:#7188a1!important;background:#0d2034!important;color:#d0deed!important;}
.operation-health.health-neutral b,.health-indicator.health-neutral b{background:#1b344c!important;color:#d0deed!important;}
.operation-health.health-green,.health-indicator.health-green{border-color:#276b56!important;border-left-color:#35d399!important;background:#0d302b!important;color:#aaf2d7!important;}
.operation-health.health-green b,.health-indicator.health-green b{background:#164839!important;color:#b8f6df!important;}
.operation-health.health-yellow,.health-indicator.health-yellow{border-color:#715b2a!important;border-left-color:#eabf4b!important;background:#302a18!important;color:#f5dda0!important;}
.operation-health.health-yellow b,.health-indicator.health-yellow b{background:#4c3c18!important;color:#ffe39a!important;}
.operation-health.health-red,.health-indicator.health-red{border-color:#7b3942!important;border-left-color:#f06a77!important;background:#351c26!important;color:#ffc0c7!important;}
.operation-health.health-red b,.health-indicator.health-red b{background:#562831!important;color:#ffc5ca!important;}
.operation-company .operation-progress{background:#1b344c;}
.operation-company h4{color:#f1f7ff;}
.operation-company p,.operation-company small{color:#a8bdd4;}
.operation-company .operation-company-actions button,.operation-history-actions button{background:#10243a;border-color:#31516e;color:#d9e8f8;}
.operation-company .operation-company-actions button.primary{background:linear-gradient(110deg,#086bdd,#1684ff);border-color:#1684ff;color:#fff;}
.tadeu-panel{display:grid;gap:.8rem;min-width:0;padding:1rem;border:1px solid #294762;border-radius:13px;background:linear-gradient(145deg,#102740,#091827);color:#e7f1ff;}
.tadeu-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;}
.tadeu-heading h3{margin:.1rem 0;color:#edf6ff;font-size:1rem;}
.tadeu-heading p:last-child{margin:.3rem 0 0;color:#a6bad1;font-size:.76rem;line-height:1.5;}
.tadeu-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;}
.tadeu-kpis article{display:grid;gap:.25rem;min-width:0;padding:.65rem .75rem;border:1px solid #294560;border-radius:9px;background:#0a1a2b;}
.tadeu-kpis span{color:#9db4cc;font-size:.68rem;}
.tadeu-kpis strong{color:#f1f7ff;font-size:1.15rem;}
.tadeu-last-run{margin:0;color:#a9bfd5;font-size:.72rem;}
.tadeu-ui-summary{margin:0;padding:.55rem .7rem;border:1px solid #29435e;border-radius:7px;background:#0a192a;color:#a9bfd5;font-size:.68rem;line-height:1.5;}
.tadeu-findings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;}
.tadeu-findings article{display:flex;align-items:flex-start;gap:.55rem;min-width:0;padding:.6rem .7rem;border:1px solid #263f58;border-radius:8px;background:#0a1a2a;}
.tadeu-findings article>span{display:grid;place-items:center;flex:none;width:1.25rem;height:1.25rem;border-radius:50%;background:#643a1e;color:#ffd99b;font-weight:800;}
.tadeu-findings article.is-clear>span{background:#123c36;color:#89e4c6;}
.tadeu-findings strong{color:#e7f1ff;font-size:.72rem;}
.tadeu-findings p,.tadeu-external p{margin:.2rem 0 0;color:#9fb4cb;font-size:.67rem;line-height:1.45;}
.tadeu-empty,.tadeu-error{margin:0;color:#b9c9dc;font-size:.75rem;}
.tadeu-external{padding:.65rem .75rem;border:1px solid #705c30;border-radius:8px;background:#2c2517;color:#f4d88e;font-size:.72rem;}
.tadeu-external p{color:#dfc98f;}
.tadeu-history{border-top:1px solid #29435e;padding-top:.6rem;color:#bfd0e3;font-size:.72rem;}
.tadeu-history summary{cursor:pointer;font-weight:650;}
.tadeu-history ol{display:grid;gap:.35rem;margin:.55rem 0 0;padding-left:1.2rem;}
.tadeu-history li{display:flex;justify-content:space-between;gap:.7rem;color:#9fb4cb;font-size:.67rem;}
.tadeu-assistant-open{position:fixed;z-index:40;right:1.2rem;bottom:1.2rem;border:1px solid #4099e8;border-radius:999px;padding:.75rem 1rem;background:#1268d8;color:#fff;font-weight:700;box-shadow:0 8px 28px #0008;cursor:pointer;}
.tadeu-assistant-dialog{width:min(34rem,calc(100vw - 1.5rem));max-height:min(80vh,46rem);padding:1rem;border:1px solid #315679;border-radius:15px;background:#091827;color:#e8f2ff;box-shadow:0 25px 80px #000b;}
.tadeu-assistant-dialog::backdrop{background:#020711b8;backdrop-filter:blur(3px);}
.tadeu-assistant-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:0;}
.tadeu-assistant-head h2{margin:0;color:#f2f7ff;}
.tadeu-assistant-note{font-size:.76rem;line-height:1.5;color:#a9bfd5;}
.tadeu-assistant-thread{display:grid;gap:.65rem;max-height:42vh;overflow:auto;padding:.2rem;}
.tadeu-message{padding:.75rem;border:1px solid #29445f;border-radius:10px;background:#0d2033;}
.tadeu-message p{margin:.4rem 0;color:#d4e2f2;font-size:.82rem;line-height:1.5;}
.tadeu-message ul{margin:.4rem 0;padding-left:1.2rem;color:#b5c9df;font-size:.74rem;}
.tadeu-message ol{margin:.5rem 0;padding-left:1.35rem;color:#d4e2f2;font-size:.78rem;line-height:1.6;}
.tadeu-internal-link{display:inline-flex;margin:.25rem 0 .5rem;color:#39bdf8;font-size:.78rem;font-weight:700;}
.operator-color-key i.approximate-location-key{border:2px dashed #f4b942;background:#f4b942;color:#172333;}
.operator-color-key i.municipality-area-key{width:20px;height:14px;border:2px dashed #c38c1c;border-radius:3px;background:rgba(240,189,74,.18);box-shadow:none;}
.humyn-map-location-state.state-municipality{color:#966b12;}
.tadeu-message small{color:#8da7c1;font-size:.65rem;}
.tadeu-assistant-form{display:grid;gap:.45rem;margin-top:.8rem;}
.tadeu-assistant-form textarea{width:100%;resize:vertical;border:1px solid #31516f;border-radius:8px;padding:.65rem;background:#061321;color:#eef6ff;font:inherit;}
.scope-location-badge.approximate{border-color:#806a31;background:#302a19;color:#f6d781;}
.scope-location-approximate{padding:.55rem .65rem;border:1px solid #806a31;border-radius:8px;background:#292416;color:#f3d47e!important;}
@media(max-width:850px){.tadeu-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}.tadeu-findings{grid-template-columns:1fr;}}
@media(max-width:560px){.data-quality-table-wrap{max-height:340px;}.tadeu-heading{align-items:stretch;flex-direction:column;}.tadeu-heading button{width:100%;}.tadeu-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}.tadeu-history li{align-items:flex-start;flex-direction:column;}}
@media(max-width:560px){.tadeu-assistant-open{right:.65rem;bottom:.65rem}.tadeu-assistant-dialog{padding:.8rem}.tadeu-assistant-thread{max-height:38vh}}
@media(prefers-reduced-motion:reduce){.tadeu-panel *,.data-quality-table-wrap *,.operation-page *{scroll-behavior:auto!important;animation:none!important;transition:none!important;}}
