/* css/blueprism-tecnico.css — Painel Técnico Blue Prism (#bptRoot). Só variáveis de tema, nunca cor fixa. */
#bptRoot { margin-top: 18px; }
.bpt-filtros { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.bpt-sel { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.bpt-sel select { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; min-width: 150px; }
.bpt-sel select:disabled { opacity: .5; }
.bpt-sel-proc select { min-width: 280px; max-width: 420px; }
.bpt-meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.bpt-stale { margin-left: 6px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--warn-border); background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.bpt-nota { margin: 4px 0 10px; font-size: 12px; color: var(--muted); }

.bpt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.bpt-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); min-width: 0; cursor: default; transition: all 0.2s ease; }
.bpt-kpi[onclick] { cursor: pointer; }
.bpt-kpi[onclick]:hover { border-color: var(--accent); }
.bpt-kpi.active { outline: 2px solid var(--accent); outline-offset: -1px; background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.bpt-kpi span { font-size: 11px; color: var(--muted); }
.bpt-kpi b { font-size: 24px; color: var(--ink); line-height: 1.2; }
.bpt-kpi small { font-size: 11px; color: var(--muted); }
.bpt-kpi-bad { border-color: var(--inc-col); }
.bpt-kpi-bad b { color: var(--inc-col); }

.bpt-abas { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 14px; width: fit-content; max-width: 100%; }
.bpt-aba-btn { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.bpt-aba-btn:hover { color: var(--ink); }
.bpt-aba-btn.on { background: var(--accent); color: var(--chip-on-ink, var(--ink)); }
.bpt-aba { padding: 4px 0 20px; }

.bpt-sub { margin: 18px 0 8px; font-size: 13px; color: var(--ink); }
.bpt-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 8px; font-size: 12px; color: var(--muted); }
.bpt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bpt-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bpt-done, .bpt-st-both { background: var(--accent); }
.bpt-pend { background: color-mix(in srgb, var(--muted) 55%, transparent); }
.bpt-exc, .bpt-st-extra { background: var(--inc-col); }
.bpt-a1 { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.bpt-a2 { background: var(--accent); }
.bpt-a3 { background: var(--warn); }
.bpt-a4 { background: var(--inc-col); }
.bpt-st-idle { background: var(--warn); }
.bpt-muted { color: var(--muted); font-weight: 400 !important; }

.bpt-daily { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding: 6px 4px 0; border-bottom: 1px solid var(--line); }
.bpt-day { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.bpt-stack { display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; overflow: hidden; min-height: 2px; }
.bpt-stack span { display: block; min-height: 0; }
.bpt-day small { text-align: center; font-size: 9px; color: var(--muted); margin-top: 3px; }

.bpt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bpt-table th { text-align: left; padding: 8px 10px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bpt-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink); text-align: left; }
.bpt-table .bpt-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bpt-table tr.bpt-fora td { opacity: .55; }
.bpt-name { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bpt-sug { font-size: 12px; color: var(--muted); max-width: 360px; }
.bpt-barcell { width: 22%; min-width: 110px; }
.bpt-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--soft); }
.bpt-bar span { display: block; height: 100%; }
.bpt-bad { color: var(--inc-col); font-weight: 700; }
.bpt-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 600; margin: 1px 2px 1px 0; }
.bpt-badge-ok { border-color: var(--accent); color: var(--accent); }
.bpt-badge-bad { border-color: var(--inc-col); color: var(--inc-col); }

.bpt-chips { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0; }
.bpt-chip { flex: 1; min-width: 150px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); display: flex; flex-direction: column; gap: 2px; }
.bpt-chip b { font-size: 22px; color: var(--ink); }
.bpt-chip span { font-size: 12px; color: var(--muted); }
.bpt-chip-bad b { color: var(--inc-col); }
.bpt-reasons { display: flex; flex-direction: column; gap: 12px; }
.bpt-reason-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink); }
.bpt-reason-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bpt-rbar { height: 8px; border-radius: 4px; background: var(--soft); margin: 5px 0 3px; overflow: hidden; }
.bpt-rbar span { display: block; height: 100%; background: var(--inc-col); border-radius: 4px; }
.bpt-reason small { color: var(--muted); font-size: 11px; }

.bpt-heat-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bpt-heat { display: grid; grid-template-columns: 38px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; margin-top: 6px; }
.bpt-hh { font-size: 9px; color: var(--muted); text-align: left; }
.bpt-dl { font-size: 11px; color: var(--muted); }
.bpt-cell { display: block; height: 22px; border-radius: 3px; background: var(--soft); }
.bpt-cell.bpt-st-none { background: var(--soft); }
.bpt-cell.bpt-st-lic { background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), var(--soft)); }
.bpt-cell.bpt-over { outline: 2px solid var(--inc-col); outline-offset: -2px; }
.bpt-cell.bpt-st-both { background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), var(--soft)); }
.bpt-cell.bpt-st-idle { background: color-mix(in srgb, var(--warn) calc(var(--v) * 100%), var(--soft)); }
.bpt-cell.bpt-st-extra { background: color-mix(in srgb, var(--inc-col) calc(var(--v) * 100%), var(--soft)); }
/* Diferenciação visual Exceção de Negócio (amarelo/âmbar suave) vs Sistema (vermelho alerta) */
.bpt-exc-bus { background: var(--warn, #f59e0b); }
.bpt-exc-sys { background: var(--inc-col, #ef4444); }
.bpt-warn-txt { color: var(--warn, #f59e0b); font-weight: 700; }
/* ---- Aba Críticas ---- */
.bpt-star { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 6px 0 0; vertical-align: middle; }
.bpt-star:hover, .bpt-star.on { color: var(--warn, #f59e0b); }
.bpt-crit-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bpt-crit-manage, .bpt-crit-done { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.bpt-crit-done { background: var(--accent); color: var(--chip-on-ink, var(--ink)); border: 0; }
.bpt-crit-picker { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.bpt-crit-picker-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.bpt-crit-picker-top input { flex: 1; min-width: 180px; background: var(--soft); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.bpt-crit-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 14px; max-height: 280px; overflow-y: auto; }
.bpt-crit-lista label { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 0; cursor: pointer; color: var(--ink); }
.bpt-crit-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }
.bpt-crit-card { border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; background: var(--panel); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bpt-crit-card.bpt-crit-ok { border-left-color: var(--accent); }
.bpt-crit-card.bpt-crit-warn { border-left-color: var(--warn, #f59e0b); }
.bpt-crit-card.bpt-crit-bad { border-color: var(--inc-col); }
.bpt-crit-head { display: flex; align-items: center; gap: 8px; }
.bpt-crit-nome { flex: 1; font-weight: 700; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bpt-crit-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line); }
.bpt-crit-badge-ok { color: var(--accent); border-color: var(--accent); }
.bpt-crit-badge-warn { color: var(--warn, #f59e0b); border-color: var(--warn, #f59e0b); }
.bpt-crit-badge-bad { color: var(--inc-col); border-color: var(--inc-col); }
.bpt-crit-aviso { font-size: 12px; color: var(--warn, #f59e0b); }
.bpt-crit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 10px; }
.bpt-crit-m { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bpt-crit-m b { font-size: 16px; color: var(--ink); }
.bpt-crit-m span { font-size: 11px; color: var(--muted); }
.bpt-crit-spark { display: flex; align-items: flex-end; gap: 3px; height: 42px; }
.bpt-crit-spark > div { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bpt-crit-spark .bpt-stack { width: 100%; min-height: 2px; }
.bpt-crit-foot { display: flex; justify-content: space-between; align-items: center; }
.bpt-crit-foot small { color: var(--muted); font-size: 11px; }
.bpt-link { border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }

/* aba Hoje (Control Room) */
.bpt-vmchip { display:inline-block; font-size:11px; padding:1px 8px; border:1px solid var(--line); border-radius:999px; background:var(--soft); margin:1px 2px; cursor:pointer; white-space:nowrap; }
.bpt-input { padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--soft); color:var(--ink); font-size:13px; }
