.hrkpi-dashboard {
    width: 100%;
    font-family: inherit;
}

.hrkpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.hrkpi-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.hrkpi-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.hrkpi-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.hrkpi-alert {
    margin-bottom: 16px;
    border-radius: 18px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
}

.hrkpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.hrkpi-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    min-height: 420px;
}

.hrkpi-card::before {
    content: "";
    position: absolute;
    inset-inline-start: -90px;
    top: -90px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.10);
}

.hrkpi-card.percentage::before {
    background: rgba(245, 158, 11, 0.13);
}

.hrkpi-card-inner {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.hrkpi-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.hrkpi-label {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.hrkpi-value {
    margin: 8px 0 0;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    color: #0f172a;
}

.hrkpi-value strong {
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hrkpi-value span {
    padding-bottom: 5px;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

.hrkpi-note {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.hrkpi-chip {
    border-radius: 18px;
    padding: 10px 13px;
    min-width: 92px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.hrkpi-chip small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.hrkpi-chip strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.hrkpi-chip.success {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.hrkpi-chip.success strong {
    color: #047857;
}

.hrkpi-chip.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.hrkpi-chip.warning strong {
    color: #b45309;
}

.hrkpi-chip.danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.hrkpi-chip.danger strong {
    color: #b91c1c;
}

.hrkpi-chart {
    margin-top: 16px;
    min-height: 250px;
}

.hrkpi-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.hrkpi-mini-box {
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px;
}

.hrkpi-mini-box small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.hrkpi-mini-box strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.hrkpi-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.hrkpi-rule {
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: center;
}

.hrkpi-rule small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.hrkpi-rule strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
}

.hrkpi-rule.good strong {
    color: #047857;
}

.hrkpi-rule.mid strong {
    color: #b45309;
}

.hrkpi-rule.bad strong {
    color: #b91c1c;
}

@media (max-width: 1100px) {
    .hrkpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    .hrkpi-title,
    .hrkpi-value,
    .hrkpi-value strong,
    .hrkpi-chip strong,
    .hrkpi-mini-box strong,
    .hrkpi-rule strong {
        color: #f8fafc;
    }

    .hrkpi-card {
        background: #111827;
        border-color: rgba(255, 255, 255, 0.10);
    }

    .hrkpi-mini-box,
    .hrkpi-rule,
    .hrkpi-chip {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.10);
    }

    .hrkpi-label,
    .hrkpi-subtitle,
    .hrkpi-note,
    .hrkpi-mini-box small,
    .hrkpi-rule small,
    .hrkpi-value span {
        color: #94a3b8;
    }
}