/* ECBT Score panel — "Veredito da Área" modal styling.
   Namespace: .ecbt-panel-*  (over the shared .ecbt-overlay / .ecbt-dialog tokens).
   File owner: app/css/ecbt-panel.css (CLAUDE.md File Ownership rule).
*/

.ecbt-panel-overlay {
    z-index: 9000;
}

.ecbt-panel-dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 720px;
    padding: 16px 20px;
}

.ecbt-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}
.ecbt-panel-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}
.ecbt-panel-subtitle {
    flex: 1;
    color: rgba(148, 163, 184, 0.85);
    font-size: 12px;
}
.ecbt-panel-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
.ecbt-panel-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.32);
}
.ecbt-panel-audit-trail {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    margin-right: 6px;
    transition: background 0.15s, border-color 0.15s;
}
.ecbt-panel-audit-trail:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.46);
}
.ecbt-panel-audit-trail:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.ecbt-panel-body {
    min-height: 220px;
}

.ecbt-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 14px;
}

.ecbt-panel-block {
    background: rgba(15, 20, 30, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ecbt-panel-block header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ecbt-panel-block h3 {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}
.ecbt-panel-sub,
.ecbt-panel-mode {
    font-size: 10px;
    color: rgba(148, 163, 184, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ecbt-panel-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.ecbt-panel-bar--thin {
    height: 6px;
    flex: 1;
}
.ecbt-panel-bar--thin > span {
    display: block;
    height: 100%;
    border-radius: 3px;
    transition: width 0.2s ease-out;
}

.ecbt-panel-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
}
.ecbt-panel-key {
    color: rgba(148, 163, 184, 0.85);
}
.ecbt-panel-value {
    color: rgba(255, 255, 255, 0.92);
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 600;
}

.ecbt-panel-row {
    display: grid;
    grid-template-columns: 60px 1fr 48px;
    gap: 6px;
    align-items: center;
    font-size: 11px;
}

.ecbt-panel-veto {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: rgba(252, 165, 165, 0.96);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.ecbt-panel-block--monetary {
    border: 2px solid rgba(255, 255, 255, 0.08);
}
.ecbt-panel-big {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 800;
    font-size: 28px;
    text-align: center;
    padding: 6px 0;
    letter-spacing: -0.5px;
}
.ecbt-panel-band {
    font-size: 11px;
    color: rgba(203, 213, 225, 0.88);
    text-align: center;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.ecbt-panel-hidden {
    display: none;
}

/* F8 addendum — netZero banner + compensation chips */
.ecbt-panel-netzero-banner {
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: rgba(187, 247, 208, 0.96);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    margin: 2px 0 6px;
}

.ecbt-panel-comp {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.ecbt-panel-comp-label {
    font-size: 10px;
    color: rgba(203, 213, 225, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: 100%;
}
.ecbt-panel-comp-chip {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: rgba(187, 247, 208, 0.94);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

@media (max-width: 800px) {
    .ecbt-panel-dialog {
        min-width: 0;
        width: 95vw;
    }
    .ecbt-panel-grid {
        grid-template-columns: 1fr;
    }
}
