.sd-page {
    padding: 14px 18px 24px;
    background: #f5f7fb;
    min-height: 100%;
    color: #243348;
    font-family: inherit
}

.sd-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap
}

    .sd-heading h2 {
        font-size: 21px;
        font-weight: 700;
        margin: 0 0 2px
    }

    .sd-heading span, .sd-controls span {
        font-size: 12px;
        color: #738093
    }

.sd-controls {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap
}

.sd-refresh {
    border: 1px solid #d6deeb;
    background: white;
    border-radius: 7px;
    padding: 7px 12px;
    color: #285b8f;
    cursor: pointer
}

    .sd-refresh:disabled {
        opacity: .55;
        cursor: wait
    }

.sd-progress {
    font-size: 12px;
    color: #285b8f;
    margin: 0 0 8px
}

.sd-error {
    background: #fff2f0;
    color: #a33;
    padding: 10px;
    border-radius: 7px;
    margin-bottom: 12px
}

.sd-kpis {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 12px
}

.sd-kpi {
    border: 1px solid #e4e9f2;
    background: white;
    border-radius: 11px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    box-shadow: 0 2px 10px #1c365009
}

    .sd-kpi span {
        font-size: 12px;
        color: #6d7c8f
    }

    .sd-kpi strong {
        font-size: 29px;
        line-height: 1.2;
        color: #20354d
    }

    .sd-kpi small {
        font-size: 11px;
        color: #8896a6
    }

.sd-kpi-button {
    cursor: pointer;
    width: 100%;
    font: inherit
}

    .sd-kpi-button:hover, .sd-status-item:hover {
        border-color: #89b8ec;
        background: #fafdff
    }

.sd-status {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px;
    margin-bottom: 12px
}

.sd-status-item {
    border: 1px solid #e4e9f2;
    background: #fff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
    color: #34465b
}

    .sd-status-item span:not(.sd-dot) {
        font-size: 12px;
        flex: 1
    }

    .sd-status-item strong {
        font-size: 19px
    }

    .sd-status-item small {
        font-size: 10px;
        color: #7b91a7
    }

.sd-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    vertical-align: middle
}

.sd-charts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px
}

.sd-panel {
    background: #fff;
    border: 1px solid #e4e9f2;
    border-radius: 11px;
    box-shadow: 0 2px 10px #1c365009;
    min-width: 0;
    overflow: hidden
}

    .sd-panel header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 15px 16px 4px
    }

    .sd-panel h3 {
        font-size: 14px;
        font-weight: 700;
        margin: 0 0 2px
    }

    .sd-panel header small {
        font-size: 11px;
        color: #8997a7
    }

    .sd-panel header button {
        background: none;
        border: 0;
        color: #2366ac;
        cursor: pointer;
        font-size: 12px
    }

.sd-chart {
    height: 275px;
    min-width: 0;
    overflow: hidden
}

.sd-empty {
    height: 275px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8997a7;
    font-size: 13px;
    padding: 15px;
    text-align: center
}

.sd-toggle {
    font-size: 11px;
    color: #738093;
    white-space: nowrap
}

.sd-overlay {
    position: fixed;
    inset: 0;
    background: #15283c99;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 18px
}

.sd-dialog {
    background: white;
    width: min(940px,100%);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 16px 70px #07192e50
}

    .sd-dialog header {
        display: flex;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid #e6ebf2
    }

    .sd-dialog h3 {
        margin: 0;
        font-size: 17px
    }

    .sd-dialog header small {
        color: #8593a3
    }

    .sd-dialog header button {
        background: none;
        border: 0;
        font-size: 19px;
        cursor: pointer
    }

    .sd-dialog footer {
        padding: 12px 20px;
        border-top: 1px solid #e6ebf2;
        text-align: right
    }

.sd-table-wrap {
    overflow: auto
}

.sd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px
}

    .sd-table th, .sd-table td {
        padding: 11px 14px;
        border-bottom: 1px solid #eef1f5;
        text-align: left
    }

    .sd-table th {
        background: #f7f9fc;
        color: #65748a;
        font-weight: 600
    }

@media(max-width:1050px) {
    .sd-kpis {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .sd-status {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }
}

@media(max-width:700px) {
    .sd-page {
        padding: 10px
    }

    .sd-heading {
        align-items: flex-start
    }

    .sd-controls {
        width: 100%
    }

    .sd-charts {
        grid-template-columns: 1fr
    }

    .sd-status {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .sd-status-item {
        flex-wrap: wrap
    }

        .sd-status-item small {
            display: none
        }

    .sd-kpi {
        padding: 12px
    }

        .sd-kpi strong {
            font-size: 24px
        }
}
