.etpa-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
}

.etpa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.etpa-header h1 {
    color: #f0f6fc;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.etpa-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 0.75rem;
}

.etpa-kpi-card {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.9rem 1rem;
}

.etpa-kpi-card span {
    color: #8b949e;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.etpa-kpi-card strong {
    color: #c9d1d9;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.etpa-positive {
    color: #46e23e !important;
}

.etpa-negative {
    color: #f85149 !important;
}

.etpa-chart-panel {
    position: relative;
    height: calc(100vh - 170px);
    min-height: 520px;
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.etpa-chart-panel canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.etpa-status {
    position: absolute;
    inset: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b949e;
    background: rgba(13, 17, 23, 0.7);
}

.etpa-status.hidden {
    display: none;
}

.etpa-values-panel {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem;
}

.etpa-values-header {
    align-items: center;
    border-bottom: 1px solid #30363d;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.etpa-values-header h2 {
    color: #c9d1d9;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.etpa-values-header span {
    color: #8b949e;
    font-size: 0.8rem;
    white-space: nowrap;
}

.etpa-values-table-wrapper {
    max-height: 460px;
    overflow: auto;
}

.etpa-values-table {
    border-collapse: collapse;
    color: #c9d1d9;
    font-size: 0.875rem;
    width: 100%;
}

.etpa-values-table th {
    background: #21262d;
    border-bottom: 2px solid #30363d;
    color: #f0f6fc;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    position: sticky;
    text-align: left;
    top: 0;
    white-space: nowrap;
    z-index: 10;
}

.etpa-values-table td {
    border-bottom: 1px solid #21262d;
    font-variant-numeric: tabular-nums;
    padding: 0.625rem 0.5rem;
    white-space: nowrap;
}

.etpa-values-table td:nth-child(2),
.etpa-values-table td:nth-child(3) {
    text-align: right;
}

.etpa-values-table tr:hover {
    background: rgba(56, 139, 253, 0.1);
}

@media (max-width: 700px) {
    .etpa-kpi-grid {
        grid-template-columns: 1fr;
    }

    .etpa-chart-panel {
        height: 520px;
        min-height: 420px;
    }

    .etpa-values-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
