/* Easy Cockpit: one presentation layer, shared with the existing data renderer. */
#tab-dashboard {
    --ec-bg: #f5f7fb;
    --ec-surface: #fff;
    --ec-alt: #f8faff;
    --ec-line: #e4eaf3;
    --ec-text: #192740;
    --ec-muted: #64748b;
    --ec-blue: #285eeb;
    --ec-blue-soft: #edf3ff;
    --ec-green: #078666;
    --ec-green-soft: #eaf8f2;
    --ec-orange: #a86217;
    --ec-orange-soft: #fff4e5;
    --ec-red: #be3846;
    --ec-red-soft: #fff0f1;
    padding: 28px 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ec-text);
    font-size: 14px;
}
#tab-dashboard *, #tab-dashboard *::before, #tab-dashboard *::after { box-sizing: border-box; }
#tab-dashboard > *, #tab-dashboard .easy-cockpit-card > * { min-width: 0; }
#tab-dashboard button, #tab-dashboard select { font: inherit; }
#tab-dashboard button { cursor: pointer; }
#tab-dashboard button:disabled { cursor: not-allowed; opacity: .65; }
#tab-dashboard :is(button, select, summary):focus-visible { outline: 3px solid #88afff; outline-offset: 3px; }
#tab-dashboard .cockpit-icon { width: 20px; height: 20px; flex-shrink: 0; }
#tab-dashboard .cockpit-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 4px 0 24px; }
#tab-dashboard .easy-cockpit-eyebrow { color: var(--ec-blue); text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
#tab-dashboard .cockpit-intro h2 { margin: 9px 0 7px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -1px; }
#tab-dashboard .cockpit-intro p { margin: 0; color: var(--ec-muted); font-size: 13px; }
#tab-dashboard .easy-cockpit-filters { display: flex; gap: 10px; padding: 0; background: transparent; border: 0; }
#tab-dashboard .easy-cockpit-filters label { display: grid; gap: 6px; color: var(--ec-muted); font-size: 11px; font-weight: 600; }
#tab-dashboard .easy-cockpit-filters select { width: 150px; min-height: 40px; padding: 9px 28px 9px 12px; border: 1px solid var(--ec-line); border-radius: 10px; background: var(--ec-surface); color: var(--ec-text); font-size: 12px; }
#tab-dashboard .easy-cockpit-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(245px, .8fr); overflow: hidden; border-radius: 20px; background: linear-gradient(110deg, #101d37, #213756); color: #fff; box-shadow: 0 14px 32px rgb(16 36 68 / 12%); }
#tab-dashboard .easy-cockpit-hero-copy { padding: 28px 30px; }
#tab-dashboard .cockpit-lead-label { display: flex; align-items: center; gap: 10px; color: #c7d8ff; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
#tab-dashboard .cockpit-lead-label i { width: 7px; height: 7px; border-radius: 50%; background: #f6b46f; box-shadow: 0 0 0 4px rgb(252 170 92 / 14%); }
#tab-dashboard .easy-cockpit-hero h2 { margin: 16px 0 10px; color: #fff; font-size: clamp(22px, 2.2vw, 29px); letter-spacing: -.7px; line-height: 1.2; }
#tab-dashboard .easy-cockpit-hero-copy > p { margin: 0; color: #c5d0e6; font-size: 13px; line-height: 1.6; }
#tab-dashboard .cockpit-lead-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 12px; margin-top: 20px; }
#tab-dashboard .cockpit-lead-actions .btn { margin: 0; padding: 11px 16px; min-height: 40px; border: 1px solid #5487ff; border-radius: 9px; background: #326cf5; color: #fff; font-size: 12px; font-weight: 700; }
#tab-dashboard .cockpit-lead-actions .btn:hover { background: #2059d9; }
#tab-dashboard .cockpit-decision-context { flex: 1; min-width: 160px; padding: 10px 0; font-size: 12px; }
#tab-dashboard .cockpit-decision-context summary { cursor: pointer; color: #d9e3fa; }
#tab-dashboard .cockpit-decision-context strong { display: block; margin-top: 14px; line-height: 1.5; }
#tab-dashboard .cockpit-decision-context p { margin-bottom: 0; color: #c5d0e6; line-height: 1.6; }
#tab-dashboard .cockpit-signals { display: flex; align-items: center; padding: 22px 26px; border-left: 1px solid rgb(255 255 255 / 10%); background: rgb(255 255 255 / 4%); }
#tab-dashboard .easy-cockpit-live-signals { display: grid; width: 100%; gap: 15px; }
#tab-dashboard .easy-cockpit-live-signals article { display: flex; align-items: start; gap: 11px; }
#tab-dashboard .easy-cockpit-live-signals article > b { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: rgb(255 255 255 / 8%); color: #aecbff; font-size: 13px; }
#tab-dashboard .easy-cockpit-live-signals small { display: block; color: #a4b9d9; font-size: 10px; margin-bottom: 3px; }
#tab-dashboard .easy-cockpit-live-signals strong { display: block; color: #fff; font-size: 13px; }
#tab-dashboard .easy-cockpit-live-signals span { display: block; color: #b7c9e3; font-size: 11px; line-height: 1.4; margin-top: 3px; }
#tab-dashboard .easy-cockpit-live-signals [data-estado="risco"] > b { color: #ffadad; background: rgb(220 67 76 / 18%); }
#tab-dashboard .easy-cockpit-live-signals [data-estado="atencao"] > b { color: #ffd2ab; background: rgb(195 129 50 / 18%); }
#tab-dashboard .easy-cockpit-live-signals [data-estado="positivo"] > b { color: #88e6c5; background: rgb(40 150 111 / 18%); }
#tab-dashboard .easy-cockpit-section { margin-top: 24px; }
#tab-dashboard .easy-cockpit-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
#tab-dashboard .easy-cockpit-heading h3 { margin: 0; font-size: 15px; letter-spacing: -.25px; color: var(--ec-text); }
#tab-dashboard .easy-cockpit-heading p { margin: 5px 0 0; color: var(--ec-muted); font-size: 11px; line-height: 1.5; }
#tab-dashboard .easy-cockpit-heading > span { color: var(--ec-muted); font-size: 11px; }
#tab-dashboard .easy-cockpit-heading #cockpit-prioridades-total { padding: 5px 8px; border-radius: 7px; background: var(--ec-alt); font-size: 10px; }
#tab-dashboard .easy-cockpit-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
#tab-dashboard .easy-cockpit-card { padding: 22px; border: 1px solid var(--ec-line); border-radius: 16px; background: var(--ec-surface); box-shadow: 0 8px 28px rgb(18 38 73 / 3%); }
#tab-dashboard .easy-cockpit-kpi { position: relative; padding: 20px 18px; overflow: hidden; }
#tab-dashboard .easy-cockpit-kpi::before { content: ''; position: absolute; top: 0; left: 18px; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ec-blue); }
#tab-dashboard .easy-cockpit-kpi.is-risk::before { background: #f2a35b; }
#tab-dashboard .easy-cockpit-kpi.is-positive::before { background: var(--ec-green); }
#tab-dashboard .easy-cockpit-kpi > div { display: flex; justify-content: space-between; gap: 8px; color: var(--ec-muted); font-size: 11px; font-weight: 600; }
#tab-dashboard .easy-cockpit-kpi > div b { color: var(--ec-blue); font-size: 13px; }
#tab-dashboard .easy-cockpit-kpi > strong { display: block; margin: 15px 0 9px; font-size: clamp(19px, 1.8vw, 27px); letter-spacing: -.9px; overflow-wrap: anywhere; }
#tab-dashboard .easy-cockpit-kpi > small { color: var(--ec-muted); font-size: 11px; line-height: 1.5; }
#tab-dashboard .cockpit-cmv-pulso > small { display: block; margin-top: 5px; }
#tab-dashboard .cockpit-cmv-pulso .cockpit-cmv-status { font-weight: 700; }
#tab-dashboard .cockpit-cmv-pulso[data-estado="neutro"]::before { background: var(--ec-muted); }
#tab-dashboard .cockpit-cmv-pulso[data-estado="adequado"]::before { background: var(--ec-green); }
#tab-dashboard .cockpit-cmv-pulso[data-estado="baixo"]::before { background: var(--ec-orange); }
#tab-dashboard .cockpit-cmv-pulso[data-estado="alto"]::before { background: var(--ec-red); }
#tab-dashboard .cockpit-cmv-pulso[data-estado="adequado"] .cockpit-cmv-status { color: var(--ec-green); }
#tab-dashboard .cockpit-cmv-pulso[data-estado="baixo"] .cockpit-cmv-status { color: var(--ec-orange); }
#tab-dashboard .cockpit-cmv-pulso[data-estado="alto"] .cockpit-cmv-status { color: var(--ec-red); }
#tab-dashboard .easy-cockpit-two-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
#tab-dashboard .easy-cockpit-priority-list { display: grid; }
#tab-dashboard .easy-cockpit-priority { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--ec-line); }
#tab-dashboard .easy-cockpit-priority:first-child { border-top: 0; }
#tab-dashboard .easy-cockpit-priority > b { display: grid; place-items: center; width: 30px; height: 32px; border-radius: 9px; background: var(--ec-blue-soft); color: var(--ec-blue); font-size: 11px; }
#tab-dashboard .easy-cockpit-priority-copy strong { display: block; font-size: 12px; line-height: 1.5; }
#tab-dashboard .easy-cockpit-priority-copy small { display: block; color: var(--ec-muted); font-size: 11px; line-height: 1.5; margin-top: 4px; }
#tab-dashboard .easy-cockpit-impact { grid-column: 2; font-size: 11px; }
#tab-dashboard .easy-cockpit-impact strong { color: var(--ec-blue); margin-right: 8px; }
#tab-dashboard .easy-cockpit-impact small { color: var(--ec-muted); }
#tab-dashboard .easy-cockpit-priority button { grid-column: 3; grid-row: 1 / 3; border: 1px solid var(--ec-line); border-radius: 8px; padding: 8px 10px; background: var(--ec-surface); color: var(--ec-text); font-size: 11px; }
#tab-dashboard .easy-cockpit-priority button:hover { color: var(--ec-blue); border-color: var(--ec-blue); }
#tab-dashboard .cockpit-ai-panel > h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.5px; margin: 17px 0 10px; }
#tab-dashboard .cockpit-ai-panel > p { color: var(--ec-muted); font-size: 12px; line-height: 1.7; }
#tab-dashboard .easy-cockpit-ai-status { display: block; font-size: 11px; color: var(--ec-muted); margin: 20px 0 12px; line-height: 1.5; }
#tab-dashboard .easy-cockpit-ai-status.is-error { color: var(--ec-red); }
#tab-dashboard .easy-cockpit-ai-button { width: 100%; margin: 0; padding: 11px 15px; border: 1px solid var(--ec-line); border-radius: 9px; color: var(--ec-blue); background: var(--ec-blue-soft); font-size: 12px; font-weight: 700; }
#tab-dashboard .easy-cockpit-ai-result { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--ec-line); color: var(--ec-text); }
#tab-dashboard .focus-ai-summary-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
#tab-dashboard .focus-ai-summary-head strong { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; }
#tab-dashboard #cockpit-ia-selo { color: var(--ec-muted); font-size: 9px; letter-spacing: .6px; }
#tab-dashboard #cockpit-ia-resumo { font-size: 12px; line-height: 1.7; }
#tab-dashboard .executive-summary-section { margin-top: 16px; }
#tab-dashboard .executive-weekly-summary :is(.executive-factors, .executive-actions) { grid-template-columns: 1fr; }
#tab-dashboard .executive-weekly-summary li { background: var(--ec-alt); border-color: var(--ec-line); }
#tab-dashboard .executive-evidence { color: var(--ec-text); font-size: 11px; }
#tab-dashboard #cockpit-ia-meta { display: block; margin-top: 16px; color: var(--ec-muted); font-size: 10px; line-height: 1.5; }
#tab-dashboard .cockpit-explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#tab-dashboard .cockpit-area { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 16px; border: 1px solid var(--ec-line); border-radius: 13px; background: var(--ec-surface); color: var(--ec-text); text-align: left; }
#tab-dashboard .cockpit-area:hover { border-color: var(--ec-blue); }
#tab-dashboard .cockpit-area-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--ec-blue-soft); color: var(--ec-blue); }
#tab-dashboard .cockpit-area:nth-child(2) .cockpit-area-icon { color: var(--ec-green); background: var(--ec-green-soft); }
#tab-dashboard .cockpit-area:nth-child(4) .cockpit-area-icon { color: var(--ec-orange); background: var(--ec-orange-soft); }
#tab-dashboard .cockpit-area > span:nth-child(2) { min-width: 0; flex: 1; }
#tab-dashboard .cockpit-area strong { display: block; font-size: 12px; }
#tab-dashboard .cockpit-area small { display: block; margin-top: 4px; color: var(--ec-muted); font-size: 10px; line-height: 1.4; }
#tab-dashboard .cockpit-area > svg { width: 14px; color: var(--ec-muted); }
#tab-dashboard .cockpit-metadata { margin-top: 18px; color: var(--ec-muted); }
#tab-dashboard .easy-cockpit-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 10px; }
#tab-dashboard .cockpit-metadata > p { font-size: 10px; line-height: 1.5; margin: 8px 0 0; }
#tab-dashboard .focus-native-details { border: 1px solid var(--ec-line); border-radius: 14px; background: var(--ec-surface); padding: 18px 20px; }
#tab-dashboard .focus-native-details > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
#tab-dashboard .focus-native-details > summary::-webkit-details-marker { display: none; }
#tab-dashboard .focus-native-details[open] > summary { margin-bottom: 20px; }
#tab-dashboard .focus-native-action { display: flex; align-items: center; gap: 8px; border: 0; padding: 0; background: none; color: var(--ec-blue); font-size: 11px; white-space: nowrap; }
#tab-dashboard .focus-heading-actions > span { color: var(--ec-muted); font-size: 11px; }
#tab-dashboard .focus-native-chevron { display: inline-block; font-size: 16px; }
#tab-dashboard .focus-native-details[open] .focus-native-chevron { transform: rotate(180deg); }
#tab-dashboard .easy-cockpit-analysis-grid, #tab-dashboard .easy-cockpit-opportunities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#tab-dashboard .easy-cockpit-analysis { background: var(--ec-alt); box-shadow: none; }
#tab-dashboard .easy-cockpit-analysis header { display: flex; justify-content: space-between; gap: 10px; }
#tab-dashboard .easy-cockpit-analysis header span { color: var(--ec-muted); font-size: 10px; }
#tab-dashboard .easy-cockpit-analysis h4 { margin: 6px 0; font-size: 14px; }
#tab-dashboard .easy-cockpit-analysis p { font-size: 11px; line-height: 1.6; color: var(--ec-muted); }
#tab-dashboard .easy-cockpit-analysis header > b { align-self: start; color: var(--ec-blue); font-size: 12px; }
#tab-dashboard .easy-cockpit-analysis-value { margin-top: 15px; font-size: 19px; font-weight: 700; }
#tab-dashboard .easy-cockpit-analysis footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--ec-line); padding-top: 14px; margin-top: 18px; }
#tab-dashboard .easy-cockpit-analysis footer span { color: var(--ec-muted); font-size: 10px; }
#tab-dashboard .easy-cockpit-analysis footer button { color: var(--ec-blue); background: transparent; border: 0; font-size: 11px; }
#tab-dashboard .easy-cockpit-mini-bar { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 8px; font-size: 10px; margin-top: 8px; }
#tab-dashboard .easy-cockpit-mini-bar i { height: 5px; background: var(--ec-line); border-radius: 5px; overflow: hidden; }
#tab-dashboard .easy-cockpit-mini-bar i b { display: block; height: 100%; background: var(--bar-color, var(--ec-blue)); }
#tab-dashboard .easy-cockpit-bridge-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
#tab-dashboard .easy-cockpit-bridge-grid article { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--ec-line); border-radius: 10px; }
#tab-dashboard .easy-cockpit-bridge-grid :is(small, span) { color: var(--ec-muted); font-size: 10px; }
#tab-dashboard .easy-cockpit-bridge-grid strong { font-size: 19px; overflow-wrap: anywhere; }
#tab-dashboard .easy-cockpit-note { color: var(--ec-muted); font-size: 11px; line-height: 1.6; }
#tab-dashboard .easy-cockpit-empty, #tab-dashboard .easy-cockpit-opportunity-empty { padding: 18px 0; color: var(--ec-muted); font-size: 12px; line-height: 1.6; }
#tab-dashboard .easy-cockpit-opportunity { display: grid; gap: 10px; box-shadow: none; }
#tab-dashboard .easy-cockpit-opportunity > b { color: var(--ec-blue); }
#tab-dashboard .easy-cockpit-opportunity strong { display: block; font-size: 13px; }
#tab-dashboard .easy-cockpit-opportunity small { display: block; margin-top: 8px; color: var(--ec-muted); font-size: 11px; line-height: 1.6; }
#tab-dashboard .easy-cockpit-opportunity span { display: block; margin-top: 12px; color: var(--ec-green); font-size: 12px; }
#tab-dashboard .easy-cockpit-quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#tab-dashboard .easy-cockpit-quick-actions button { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--ec-text); background: var(--ec-alt); border: 1px solid var(--ec-line); border-radius: 10px; text-align: left; }
#tab-dashboard .easy-cockpit-quick-actions b { color: var(--ec-blue); }
#tab-dashboard .easy-cockpit-quick-actions strong { display: block; font-size: 12px; }
#tab-dashboard .easy-cockpit-quick-actions small { display: block; color: var(--ec-muted); font-size: 10px; margin-top: 4px; }
#tab-dashboard .cockpit-results-grid { display: grid; grid-template-columns: minmax(190px, .5fr) minmax(0, 1fr); gap: 20px; }
#tab-dashboard .easy-cockpit-results { display: grid; gap: 12px; }
#tab-dashboard .easy-cockpit-results h3 { font-size: 15px; margin: 0; }
#tab-dashboard .easy-cockpit-results p, #tab-dashboard .easy-cockpit-results em { color: var(--ec-muted); font-size: 11px; line-height: 1.6; margin: 0; }
#tab-dashboard .easy-cockpit-results small, #tab-dashboard .easy-cockpit-results span { color: var(--ec-muted); font-size: 11px; }
#tab-dashboard .easy-cockpit-results strong { display: block; font-size: 22px; margin: 7px 0; color: var(--ec-green); }
@media (max-width: 1180px) {
    #tab-dashboard .cockpit-intro { align-items: start; flex-direction: column; gap: 18px; }
    #tab-dashboard .cockpit-explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #tab-dashboard .easy-cockpit-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    #tab-dashboard { padding: 22px 18px; }
    #tab-dashboard .easy-cockpit-hero, #tab-dashboard .easy-cockpit-two-columns, #tab-dashboard .easy-cockpit-analysis-grid, #tab-dashboard .easy-cockpit-opportunities { grid-template-columns: 1fr; }
    #tab-dashboard .easy-cockpit-hero-copy { padding: 24px; }
    #tab-dashboard .cockpit-signals { border-left: 0; border-top: 1px solid rgb(255 255 255 / 10%); padding: 20px 24px; }
    #tab-dashboard .easy-cockpit-live-signals { grid-template-columns: 1fr; }
    #tab-dashboard .easy-cockpit-filters { width: 100%; }
    #tab-dashboard .easy-cockpit-filters label { flex: 1; min-width: 0; }
    #tab-dashboard .easy-cockpit-filters select { width: 100%; }
    #tab-dashboard .easy-cockpit-heading { align-items: start; gap: 12px; }
    #tab-dashboard .easy-cockpit-heading > span { max-width: 100px; text-align: right; }
    #tab-dashboard .easy-cockpit-bridge-grid { grid-template-columns: 1fr; }
    #tab-dashboard .easy-cockpit-bridge-grid > b { text-align: center; }
    #tab-dashboard .easy-cockpit-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    #tab-dashboard { padding: 20px 14px; }
    #tab-dashboard .cockpit-explore-grid, #tab-dashboard .cockpit-results-grid, #tab-dashboard .easy-cockpit-quick-actions { grid-template-columns: 1fr; }
    #tab-dashboard .easy-cockpit-kpi { padding: 18px 14px; }
    #tab-dashboard .easy-cockpit-kpi > strong { font-size: 21px; }
    #tab-dashboard .easy-cockpit-card { padding: 18px; }
    #tab-dashboard .focus-native-details { padding: 16px; }
    #tab-dashboard .focus-native-action > span { display: none; }
}
