/* PulseBoard dashboard */

.pb-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px 2rem;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
}

.pb-page h1,
.pb-page h2,
.pb-page h3,
.pb-page h4,
.pb-page h5,
.pb-page h6,
.pb-page p,
.pb-page span,
.pb-page button {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
}

.pb-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.pb-title {
    margin: 0 0 0.4rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em !important;
    line-height: 1.25 !important;
}

.pb-meta {
    margin: 0;
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.5;
}

.pb-meta b {
    color: #374151;
    font-weight: 600;
}

.pb-btn-refresh {
    background: #3FD6D4;
    color: #111827;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.pb-btn-refresh:hover {
    background: #35c4c2;
}

.pb-btn-refresh:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.pb-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    padding: 1.15rem 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
}

.pb-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pb-section-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9ca3af;
}

.pb-section-note {
    font-size: 12px;
    color: #9ca3af;
}

.pb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.pb-kpi-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-kpi-card {
    background: #262646;
    border-radius: 12px;
    padding: 1rem 0.85rem;
    text-align: center;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.pb-kpi-title {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.35;
}

.pb-kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.pb-kpi-value.highlight {
    color: #3FD6D4;
}

.pb-kpi-sub {
    font-size: 12px;
    font-weight: 600;
    color: #3FD6D4;
    line-height: 1.35;
}

.pb-kpi-sub.muted {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.pb-charts-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.pb-chart-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 1rem 1.1rem 0.75rem;
}

.pb-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.pb-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.pb-chart-note {
    font-size: 12px;
    color: #9ca3af;
}

.pb-chart-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.pb-chart-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #3FD6D4;
}

.pb-radzen-chart svg text {
    font-size: 10px !important;
}

.pb-radzen-chart .rz-axis text,
.pb-radzen-chart .rz-category-axis text {
    font-size: 10px !important;
}

.pb-renewal-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 0.35rem;
}

.pb-renewal-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.pb-renewal-label {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.pb-renewal-bar-wrap {
    height: 8px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.pb-renewal-bar {
    height: 100%;
    background: #3FD6D4;
    border-radius: 999px;
}

.pb-renewal-count {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    min-width: 1.5rem;
    text-align: right;
}

.pb-loading {
    padding: 3rem 1rem;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 991px) {
    .pb-kpi-grid,
    .pb-kpi-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pb-charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .pb-kpi-grid,
    .pb-kpi-grid-3 {
        grid-template-columns: 1fr;
    }
}
