.imbalance-dashboard {
    color: #ffffff;
    padding: 18px 22px 28px;
}

.imbalance-dashboard h1 {
    margin: 10px 0 18px;
    text-align: center;
    color: #ffffff;
    font-family: "DIN", "Segoe UI", sans-serif;
}

.imbalance-dashboard h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: "DIN", "Segoe UI", sans-serif;
    font-size: 18px;
}

.imbalance-chart-panel,
.imbalance-table-panel {
    width: 100%;
    margin-bottom: 22px;
}

.imbalance-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.imbalance-panel-header h3 {
    margin: 0;
}

.imbalance-fullscreen-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #30363d;
    border-radius: 6px;
    background: #161b22;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.imbalance-fullscreen-btn:hover {
    background: #21262d;
}

.imbalance-chart-wrap {
    height: 360px;
    padding: 14px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.imbalance-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.imbalance-table-wrap {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    width: 100%;
    max-height: 55vh;
    min-height: 340px;
    overflow: auto;
}

.imbalance-table-wrap table {
    width: 100%;
    min-width: 1700px;
    border-collapse: collapse;
    background: #000000;
    color: #ffffff;
    font-family: "DIN", "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: bold;
}

.imbalance-table-wrap thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.imbalance-table-wrap th,
.imbalance-table-wrap td {
    padding: 7px 8px;
    border: 1px solid #30363d;
    text-align: center;
    white-space: nowrap;
}

.imbalance-table-wrap th {
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
    color: #ffffff;
}

.imbalance-table-wrap td {
    background: #000000;
}

.imbalance-table-wrap td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
}

.imbalance-table-wrap th:first-child {
    position: sticky;
    left: 0;
    z-index: 6;
}

.imbalance-table-wrap tbody tr:hover td {
    background: #171b22;
}

.imbalance-table-wrap tbody tr:hover td:first-child {
    background: linear-gradient(135deg, #2b313a 0%, #3a414d 100%);
}

.imbalance-loading {
    padding: 20px;
    color: #c9d1d9;
    text-align: center;
}

.imbalance-chart-panel.is-fullscreen,
.imbalance-chart-panel:fullscreen {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 18px;
    background: #0b0f14;
}

.imbalance-chart-panel.is-fullscreen .imbalance-chart-wrap,
.imbalance-chart-panel:fullscreen .imbalance-chart-wrap {
    height: calc(100vh - 82px);
}

.imbalance-chart-panel.is-fullscreen .imbalance-fullscreen-btn,
.imbalance-chart-panel:fullscreen .imbalance-fullscreen-btn {
    position: relative;
    z-index: 2;
}

body.imbalance-fullscreen-active {
    overflow: hidden;
}

@media (max-width: 900px) {
    .imbalance-dashboard {
        padding: 14px 12px 24px;
    }

    .imbalance-chart-wrap {
        height: 300px;
    }

    .imbalance-table-wrap {
        max-height: 55vh;
        min-height: 300px;
    }
}
