.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.dashboard-shell {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.75rem;
    padding: 1.5rem;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 30%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(135deg, #123c69 0%, #1d5fa2 45%, #278ea5 100%);
    box-shadow: 0 24px 50px rgba(18, 60, 105, 0.22);
}

.dashboard-hero.telecaller-theme {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(135deg, #0b3c49 0%, #116466 48%, #1d7874 100%);
    box-shadow: 0 24px 50px rgba(11, 60, 73, 0.24);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dashboard-hero p {
    max-width: 700px;
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
    gap: 1.25rem;
    align-items: end;
}

.dashboard-hero-panel {
    position: relative;
    z-index: 1;
}

.dashboard-highlight {
    display: grid;
    gap: 0.85rem;
}

.dashboard-highlight-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.dashboard-highlight-card strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.dashboard-highlight-card span {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 1.1rem 1.1rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.98));
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: var(--metric-accent, #1d5fa2);
}

.metric-card::after {
    content: "";
    position: absolute;
    top: -28px;
    right: -16px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--metric-accent, #1d5fa2) 14%, transparent);
}

.metric-card.primary { --metric-accent: #1d5fa2; }
.metric-card.success { --metric-accent: #1f8a70; }
.metric-card.info { --metric-accent: #278ea5; }
.metric-card.warning { --metric-accent: #f29f05; }

.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 0.85rem;
    border-radius: 14px;
    color: #fff;
    background: var(--metric-accent, #1d5fa2);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--metric-accent, #1d5fa2) 28%, transparent);
}

.metric-label {
    margin: 0;
    color: #5b6472;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metric-value {
    position: relative;
    z-index: 1;
    margin: 0.3rem 0 0;
    color: #14213d;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.metric-meta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.55rem;
    color: #64748b;
    font-size: 0.88rem;
}

.dashboard-section {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem 0.85rem;
}

.dashboard-section-header h5,
.dashboard-section-header h4 {
    margin: 0;
    color: #102a43;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dashboard-section-subtitle {
    margin-top: 0.25rem;
    color: #6c7a89;
    font-size: 0.92rem;
}

.dashboard-section-body {
    padding: 0 1.25rem 1.2rem;
}

.dashboard-section.soft-accent {
    background:
        linear-gradient(180deg, rgba(245, 250, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.dashboard-section.teal-accent {
    background:
        linear-gradient(180deg, rgba(238, 252, 249, 0.94), rgba(255, 255, 255, 0.98));
}

.dashboard-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 0.65rem;
}

.dashboard-table thead th {
    border: 0;
    color: #6c7a89;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-table tbody tr {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.dashboard-table tbody td {
    padding: 0.9rem 0.95rem;
    vertical-align: middle;
    border-top: 0;
    border-bottom: 0;
}

.dashboard-table tbody td:first-child {
    border-radius: 14px 0 0 14px;
}

.dashboard-table tbody td:last-child {
    border-radius: 0 14px 14px 0;
}

.dashboard-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #102a43;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd166, #f4a261);
}

.dashboard-entity {
    display: flex;
    flex-direction: column;
}

.dashboard-entity strong {
    color: #102a43;
    font-weight: 700;
}

.dashboard-entity span {
    color: #6c7a89;
    font-size: 0.86rem;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: #102a43;
    font-size: 0.82rem;
    font-weight: 700;
    background: #eef4f8;
}

.dashboard-filter-card {
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f6fafc);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
}

.dashboard-filter-card .card-body {
    padding: 1.25rem;
}

.dashboard-filter-card label {
    color: #34495e;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-note {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    color: #44607a;
    background: #f3f8fb;
}

.dashboard-empty {
    padding: 1.2rem;
    border-radius: 18px;
    text-align: center;
    color: #6c7a89;
    background: #f8fafc;
}

.dashboard-modal .modal-content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.dashboard-modal .modal-header {
    border-bottom: 0;
}

.dashboard-list-item {
    border: 0;
    border-radius: 16px;
    background: #f8fafc;
}

@media (max-width: 1199px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dashboard-shell {
        padding-top: 1rem;
    }

    .dashboard-hero {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-section-body,
    .dashboard-section-header,
    .dashboard-filter-card .card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dashboard-table {
        min-width: 620px;
    }
}
