/* =========================================================
   WONDER APP — VENDOR DASHBOARD
   File: vendor_app/assets/css/dashboard.css

   Purpose:
   - Vendor dashboard
   - Overview
   - Leads summary
   - Enquiries summary
   - Quotes summary
   - Orders summary
   - Revenue summary
   - Quick actions

   Depends on:
   variables.css
   reset.css
   base.css
   layout.css
   cards.css
   tables.css
   buttons.css
   responsive.css
   ========================================================= */


/* =========================================================
   1. DASHBOARD ROOT
   ========================================================= */

.dashboard {
    width: 100%;
    min-height: 100%;
    padding: 0;
}

.dashboard-page {
    width: 100%;
    min-width: 0;
}

.dashboard-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
}

.dashboard-section {
    width: 100%;
    margin-bottom: 28px;
}

.dashboard-section:last-child {
    margin-bottom: 0;
}


/* =========================================================
   2. DASHBOARD HEADER
   ========================================================= */

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-header-content {
    flex: 1;
    min-width: 0;
}

.dashboard-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    margin: 7px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #6b7280);
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}


/* =========================================================
   3. WELCOME / HERO PANEL
   ========================================================= */

.dashboard-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 28px;
    margin-bottom: 24px;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-lg, 16px);

    background:
        linear-gradient(
            135deg,
            var(--primary-color, #2563eb),
            var(--primary-dark, #1d4ed8)
        );

    color: #ffffff;
}

.dashboard-welcome::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -110px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.dashboard-welcome-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dashboard-welcome-title {
    margin: 0 0 8px;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.dashboard-welcome-text {
    max-width: 680px;
    margin: 0;

    font-size: 14px;
    line-height: 1.65;

    color: rgba(255, 255, 255, 0.86);
}

.dashboard-welcome-actions {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.dashboard-welcome .btn {
    border-color: rgba(255, 255, 255, 0.3);
}


/* =========================================================
   4. DASHBOARD FILTER BAR
   ========================================================= */

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 20px;
    padding: 14px 16px;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-md, 12px);

    background: var(--surface-color, #ffffff);
}

.dashboard-toolbar-left,
.dashboard-toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-toolbar-left {
    min-width: 0;
}

.dashboard-toolbar-right {
    justify-content: flex-end;
}

.dashboard-filter {
    min-width: 150px;
}

.dashboard-date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* =========================================================
   5. KPI / STATISTICS GRID
   ========================================================= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;

    margin-bottom: 24px;
}

.dashboard-stat-card {
    position: relative;

    min-width: 0;
    padding: 20px;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-lg, 16px);

    background: var(--surface-color, #ffffff);

    box-shadow: var(
        --shadow-sm,
        0 1px 2px rgba(0, 0, 0, 0.05)
    );

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);

    box-shadow: var(
        --shadow-md,
        0 8px 24px rgba(0, 0, 0, 0.08)
    );
}

.dashboard-stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 16px;
}

.dashboard-stat-label {
    margin: 0;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;

    color: var(--text-muted, #6b7280);
}

.dashboard-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 12px;

    background: var(--primary-soft, #eff6ff);
    color: var(--primary-color, #2563eb);

    font-size: 20px;
}

.dashboard-stat-value {
    margin: 0;

    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;

    color: var(--heading-color, #111827);
}

.dashboard-stat-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 10px;

    font-size: 12px;
}

.dashboard-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    font-weight: 600;
}

.dashboard-stat-change.positive {
    color: var(--success-color, #16a34a);
}

.dashboard-stat-change.negative {
    color: var(--danger-color, #dc2626);
}

.dashboard-stat-change.neutral {
    color: var(--text-muted, #6b7280);
}

.dashboard-stat-period {
    color: var(--text-muted, #6b7280);
}


/* =========================================================
   6. STAT CARD VARIANTS
   ========================================================= */

.dashboard-stat-card.is-primary .dashboard-stat-icon {
    background: var(--primary-soft, #eff6ff);
    color: var(--primary-color, #2563eb);
}

.dashboard-stat-card.is-success .dashboard-stat-icon {
    background: var(--success-soft, #f0fdf4);
    color: var(--success-color, #16a34a);
}

.dashboard-stat-card.is-warning .dashboard-stat-icon {
    background: var(--warning-soft, #fffbeb);
    color: var(--warning-color, #d97706);
}

.dashboard-stat-card.is-danger .dashboard-stat-icon {
    background: var(--danger-soft, #fef2f2);
    color: var(--danger-color, #dc2626);
}

.dashboard-stat-card.is-info .dashboard-stat-icon {
    background: var(--info-soft, #eff6ff);
    color: var(--info-color, #0284c7);
}

.dashboard-stat-card.is-purple .dashboard-stat-icon {
    background: var(--purple-soft, #faf5ff);
    color: var(--purple-color, #9333ea);
}


/* =========================================================
   7. MINI PROGRESS
   ========================================================= */

.dashboard-stat-progress {
    width: 100%;
    height: 5px;

    margin-top: 14px;

    overflow: hidden;

    border-radius: 999px;

    background: var(--border-light, #f3f4f6);
}

.dashboard-stat-progress-bar {
    height: 100%;
    width: 0;

    border-radius: inherit;

    background: var(--primary-color, #2563eb);

    transition: width 0.4s ease;
}


/* =========================================================
   8. CONTENT GRID
   ========================================================= */

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

.dashboard-col-12 {
    grid-column: span 12;
}

.dashboard-col-8 {
    grid-column: span 8;
}

.dashboard-col-7 {
    grid-column: span 7;
}

.dashboard-col-6 {
    grid-column: span 6;
}

.dashboard-col-5 {
    grid-column: span 5;
}

.dashboard-col-4 {
    grid-column: span 4;
}

.dashboard-col-3 {
    grid-column: span 3;
}


/* =========================================================
   9. DASHBOARD PANEL
   ========================================================= */

.dashboard-panel {
    min-width: 0;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-lg, 16px);

    background: var(--surface-color, #ffffff);

    box-shadow: var(
        --shadow-sm,
        0 1px 2px rgba(0, 0, 0, 0.04)
    );
}

.dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    padding: 18px 20px;

    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.dashboard-panel-title-group {
    min-width: 0;
}

.dashboard-panel-title {
    margin: 0;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;

    color: var(--heading-color, #111827);
}

.dashboard-panel-subtitle {
    margin: 4px 0 0;

    font-size: 12px;
    line-height: 1.5;

    color: var(--text-muted, #6b7280);
}

.dashboard-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    flex-shrink: 0;
}

.dashboard-panel-body {
    padding: 20px;
}

.dashboard-panel-footer {
    padding: 14px 20px;

    border-top: 1px solid var(--border-color, #e5e7eb);

    background: var(--surface-muted, #f9fafb);

    border-radius: 0 0 var(--radius-lg, 16px)
        var(--radius-lg, 16px);
}


/* =========================================================
   10. QUICK ACTIONS
   ========================================================= */

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;

    padding: 14px;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-md, 12px);

    background: var(--surface-color, #ffffff);

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.dashboard-quick-action:hover {
    border-color: var(--primary-color, #2563eb);

    background: var(--primary-soft, #eff6ff);

    transform: translateY(-1px);
}

.dashboard-quick-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    border-radius: 10px;

    background: var(--primary-soft, #eff6ff);
    color: var(--primary-color, #2563eb);
}

.dashboard-quick-action-content {
    min-width: 0;
}

.dashboard-quick-action-title {
    display: block;

    overflow: hidden;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;

    color: var(--heading-color, #111827);

    white-space: nowrap;
    text-overflow: ellipsis;
}

.dashboard-quick-action-text {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    font-size: 11px;
    line-height: 1.4;

    color: var(--text-muted, #6b7280);

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   11. ACTIVITY LIST
   ========================================================= */

.dashboard-activity-list {
    display: flex;
    flex-direction: column;
}

.dashboard-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.dashboard-activity-item:first-child {
    padding-top: 0;
}

.dashboard-activity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    border-radius: 50%;

    background: var(--primary-soft, #eff6ff);
    color: var(--primary-color, #2563eb);
}

.dashboard-activity-content {
    min-width: 0;
    flex: 1;
}

.dashboard-activity-title {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;

    color: var(--heading-color, #111827);
}

.dashboard-activity-text {
    margin: 3px 0 0;

    font-size: 12px;
    line-height: 1.5;

    color: var(--text-muted, #6b7280);
}

.dashboard-activity-time {
    display: block;

    margin-top: 5px;

    font-size: 11px;

    color: var(--text-muted, #9ca3af);
}


/* =========================================================
   12. LEAD SUMMARY
   ========================================================= */

.dashboard-lead-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-lead-item {
    padding: 14px;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;

    background: var(--surface-muted, #f9fafb);
}

.dashboard-lead-label {
    margin: 0;

    font-size: 11px;
    color: var(--text-muted, #6b7280);
}

.dashboard-lead-value {
    margin: 5px 0 0;

    font-size: 22px;
    font-weight: 700;

    color: var(--heading-color, #111827);
}

.dashboard-lead-percent {
    margin-top: 4px;

    font-size: 11px;
    color: var(--text-muted, #6b7280);
}


/* =========================================================
   13. STATUS DISTRIBUTION
   ========================================================= */

.dashboard-status-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-status-row {
    display: grid;
    grid-template-columns: 130px minmax(80px, 1fr) 55px;
    align-items: center;
    gap: 12px;
}

.dashboard-status-name {
    min-width: 0;

    overflow: hidden;

    font-size: 12px;
    font-weight: 500;

    color: var(--text-color, #374151);

    white-space: nowrap;
    text-overflow: ellipsis;
}

.dashboard-status-bar {
    width: 100%;
    height: 7px;

    overflow: hidden;

    border-radius: 999px;

    background: var(--border-light, #f3f4f6);
}

.dashboard-status-progress {
    height: 100%;
    width: 0;

    border-radius: inherit;

    background: var(--primary-color, #2563eb);

    transition: width 0.5s ease;
}

.dashboard-status-count {
    text-align: right;

    font-size: 12px;
    font-weight: 600;

    color: var(--heading-color, #111827);
}


/* =========================================================
   14. REVENUE SUMMARY
   ========================================================= */

.dashboard-revenue {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-revenue-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-revenue-label {
    margin: 0 0 5px;

    font-size: 12px;
    color: var(--text-muted, #6b7280);
}

.dashboard-revenue-value {
    margin: 0;

    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;

    color: var(--heading-color, #111827);
}

.dashboard-revenue-change {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    font-size: 12px;
    font-weight: 600;
}

.dashboard-revenue-change.positive {
    color: var(--success-color, #16a34a);
}

.dashboard-revenue-change.negative {
    color: var(--danger-color, #dc2626);
}


/* =========================================================
   15. REVENUE BREAKDOWN
   ========================================================= */

.dashboard-revenue-breakdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-revenue-item {
    padding: 13px;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
}

.dashboard-revenue-item-label {
    display: block;

    font-size: 11px;

    color: var(--text-muted, #6b7280);
}

.dashboard-revenue-item-value {
    display: block;

    margin-top: 5px;

    font-size: 16px;
    font-weight: 700;

    color: var(--heading-color, #111827);
}


/* =========================================================
   16. CHART CONTAINER
   ========================================================= */

.dashboard-chart {
    position: relative;

    width: 100%;
    min-height: 280px;
}

.dashboard-chart-sm {
    min-height: 200px;
}

.dashboard-chart-md {
    min-height: 280px;
}

.dashboard-chart-lg {
    min-height: 360px;
}

.dashboard-chart canvas {
    display: block;

    width: 100% !important;
    max-width: 100%;
}


/* =========================================================
   17. CHART LEGEND
   ========================================================= */

.dashboard-chart-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 16px;
}

.dashboard-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 11px;

    color: var(--text-muted, #6b7280);
}

.dashboard-chart-legend-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: var(--primary-color, #2563eb);
}


/* =========================================================
   18. DASHBOARD TABLE
   ========================================================= */

.dashboard-table-wrapper {
    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.dashboard-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 650px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 13px 16px;

    text-align: left;

    border-bottom: 1px solid var(--border-color, #e5e7eb);

    font-size: 12px;
}

.dashboard-table th {
    font-size: 11px;
    font-weight: 600;

    color: var(--text-muted, #6b7280);

    background: var(--surface-muted, #f9fafb);

    white-space: nowrap;
}

.dashboard-table td {
    color: var(--text-color, #374151);
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-table tbody tr {
    transition: background 0.15s ease;
}

.dashboard-table tbody tr:hover {
    background: var(--surface-hover, #f9fafb);
}


/* =========================================================
   19. TABLE CUSTOMER / BUSINESS INFO
   ========================================================= */

.dashboard-entity {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
}

.dashboard-entity-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    overflow: hidden;

    border-radius: 50%;

    background: var(--primary-soft, #eff6ff);
    color: var(--primary-color, #2563eb);

    font-size: 12px;
    font-weight: 700;
}

.dashboard-entity-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.dashboard-entity-info {
    min-width: 0;
}

.dashboard-entity-name {
    display: block;

    overflow: hidden;

    font-size: 12px;
    font-weight: 600;

    color: var(--heading-color, #111827);

    white-space: nowrap;
    text-overflow: ellipsis;
}

.dashboard-entity-meta {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    font-size: 10px;

    color: var(--text-muted, #6b7280);

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   20. STATUS BADGES
   ========================================================= */

.dashboard-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;

    padding: 4px 9px;

    border-radius: 999px;

    font-size: 10px;
    line-height: 1;
    font-weight: 600;

    white-space: nowrap;
}

.dashboard-status.pending {
    background: var(--warning-soft, #fffbeb);
    color: var(--warning-color, #b45309);
}

.dashboard-status.active {
    background: var(--primary-soft, #eff6ff);
    color: var(--primary-color, #2563eb);
}

.dashboard-status.success,
.dashboard-status.completed,
.dashboard-status.accepted {
    background: var(--success-soft, #f0fdf4);
    color: var(--success-color, #15803d);
}

.dashboard-status.danger,
.dashboard-status.cancelled,
.dashboard-status.rejected {
    background: var(--danger-soft, #fef2f2);
    color: var(--danger-color, #b91c1c);
}

.dashboard-status.info {
    background: var(--info-soft, #f0f9ff);
    color: var(--info-color, #0369a1);
}

.dashboard-status.neutral {
    background: var(--surface-muted, #f3f4f6);
    color: var(--text-muted, #6b7280);
}


/* =========================================================
   21. PERFORMANCE SCORE
   ========================================================= */

.dashboard-performance {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-performance-circle {
    position: relative;

    width: 120px;
    height: 120px;

    flex: 0 0 120px;
}

.dashboard-performance-circle svg {
    display: block;

    width: 100%;
    height: 100%;

    transform: rotate(-90deg);
}

.dashboard-performance-circle-bg {
    fill: none;

    stroke: var(--border-light, #f3f4f6);
    stroke-width: 8;
}

.dashboard-performance-circle-value {
    fill: none;

    stroke: var(--primary-color, #2563eb);
    stroke-width: 8;

    stroke-linecap: round;

    transition: stroke-dashoffset 0.5s ease;
}

.dashboard-performance-score {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;
}

.dashboard-performance-number {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;

    color: var(--heading-color, #111827);
}

.dashboard-performance-label {
    margin-top: 5px;

    font-size: 10px;

    color: var(--text-muted, #6b7280);
}

.dashboard-performance-content {
    min-width: 0;
}

.dashboard-performance-title {
    margin: 0;

    font-size: 15px;
    font-weight: 700;
}

.dashboard-performance-text {
    margin: 5px 0 0;

    font-size: 12px;
    line-height: 1.6;

    color: var(--text-muted, #6b7280);
}


/* =========================================================
   22. ALERT / ATTENTION PANEL
   ========================================================= */

.dashboard-attention {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 16px;

    border: 1px solid var(--warning-border, #fde68a);
    border-radius: 12px;

    background: var(--warning-soft, #fffbeb);
}

.dashboard-attention-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border-radius: 50%;

    background: rgba(245, 158, 11, 0.12);
    color: var(--warning-color, #d97706);
}

.dashboard-attention-content {
    min-width: 0;
}

.dashboard-attention-title {
    margin: 0;

    font-size: 13px;
    font-weight: 700;

    color: var(--heading-color, #111827);
}

.dashboard-attention-text {
    margin: 3px 0 0;

    font-size: 12px;
    line-height: 1.5;

    color: var(--text-color, #4b5563);
}

.dashboard-attention-action {
    margin-left: auto;

    flex-shrink: 0;
}


/* =========================================================
   23. EMPTY DASHBOARD STATE
   ========================================================= */

.dashboard-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 220px;

    padding: 30px;

    text-align: center;
}

.dashboard-empty-content {
    max-width: 420px;
}

.dashboard-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 14px;

    border-radius: 16px;

    background: var(--surface-muted, #f3f4f6);
    color: var(--text-muted, #6b7280);

    font-size: 24px;
}

.dashboard-empty-title {
    margin: 0;

    font-size: 15px;
    font-weight: 700;
}

.dashboard-empty-text {
    margin: 6px 0 16px;

    font-size: 12px;
    line-height: 1.6;

    color: var(--text-muted, #6b7280);
}


/* =========================================================
   24. LOADING SKELETON
   ========================================================= */

.dashboard-skeleton {
    position: relative;

    overflow: hidden;

    background: var(--surface-muted, #f3f4f6);

    border-radius: 8px;
}

.dashboard-skeleton::after {
    content: "";

    position: absolute;

    inset: 0;

    transform: translateX(-100%);

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.55),
        transparent
    );

    animation: dashboardSkeletonLoading 1.4s infinite;
}

.dashboard-skeleton-line {
    height: 12px;
    margin-bottom: 8px;
}

.dashboard-skeleton-line:last-child {
    margin-bottom: 0;
}

.dashboard-skeleton-line.short {
    width: 55%;
}

.dashboard-skeleton-line.medium {
    width: 75%;
}

.dashboard-skeleton-line.full {
    width: 100%;
}

@keyframes dashboardSkeletonLoading {
    100% {
        transform: translateX(100%);
    }
}


/* =========================================================
   25. DASHBOARD PAGINATION
   ========================================================= */

.dashboard-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-top: 16px;
}

.dashboard-pagination-info {
    font-size: 11px;

    color: var(--text-muted, #6b7280);
}

.dashboard-pagination-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* =========================================================
   26. TOP PERFORMERS
   ========================================================= */

.dashboard-performers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-performer {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px;

    border-radius: 10px;

    background: var(--surface-muted, #f9fafb);
}

.dashboard-performer-rank {
    width: 24px;

    text-align: center;

    font-size: 11px;
    font-weight: 700;

    color: var(--text-muted, #6b7280);
}

.dashboard-performer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    overflow: hidden;

    border-radius: 50%;

    background: var(--primary-soft, #eff6ff);
    color: var(--primary-color, #2563eb);
}

.dashboard-performer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-performer-info {
    min-width: 0;
    flex: 1;
}

.dashboard-performer-name {
    display: block;

    overflow: hidden;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.dashboard-performer-meta {
    display: block;

    margin-top: 2px;

    font-size: 10px;

    color: var(--text-muted, #6b7280);
}

.dashboard-performer-value {
    font-size: 12px;
    font-weight: 700;

    color: var(--heading-color, #111827);
}


/* =========================================================
   27. CONVERSION FUNNEL
   ========================================================= */

.dashboard-funnel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-funnel-row {
    display: grid;
    grid-template-columns: 100px minmax(80px, 1fr) 50px;
    align-items: center;
    gap: 10px;
}

.dashboard-funnel-label {
    font-size: 11px;

    color: var(--text-color, #4b5563);
}

.dashboard-funnel-bar {
    height: 24px;

    overflow: hidden;

    border-radius: 6px;

    background: var(--surface-muted, #f3f4f6);
}

.dashboard-funnel-progress {
    display: flex;
    align-items: center;

    height: 100%;
    width: 0;

    padding-left: 8px;

    border-radius: inherit;

    background: var(--primary-color, #2563eb);

    color: #ffffff;

    font-size: 10px;
    font-weight: 600;

    transition: width 0.5s ease;
}

.dashboard-funnel-value {
    text-align: right;

    font-size: 11px;
    font-weight: 600;

    color: var(--heading-color, #111827);
}


/* =========================================================
   28. NOTIFICATION SUMMARY
   ========================================================= */

.dashboard-notification-list {
    display: flex;
    flex-direction: column;
}

.dashboard-notification {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 12px 0;

    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.dashboard-notification:last-child {
    border-bottom: 0;
}

.dashboard-notification.unread {
    position: relative;
}

.dashboard-notification.unread::before {
    content: "";

    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    margin-top: 6px;

    border-radius: 50%;

    background: var(--primary-color, #2563eb);
}

.dashboard-notification-content {
    min-width: 0;
    flex: 1;
}

.dashboard-notification-title {
    margin: 0;

    font-size: 12px;
    font-weight: 600;
}

.dashboard-notification-text {
    margin: 3px 0 0;

    font-size: 11px;
    line-height: 1.5;

    color: var(--text-muted, #6b7280);
}

.dashboard-notification-time {
    margin-top: 4px;

    font-size: 10px;

    color: var(--text-muted, #9ca3af);
}


/* =========================================================
   29. DATE RANGE / PERIOD SELECTOR
   ========================================================= */

.dashboard-period-selector {
    display: inline-flex;
    align-items: center;

    padding: 3px;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 9px;

    background: var(--surface-muted, #f9fafb);
}

.dashboard-period-option {
    border: 0;

    padding: 7px 11px;

    border-radius: 7px;

    background: transparent;

    color: var(--text-muted, #6b7280);

    font-size: 11px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dashboard-period-option:hover {
    color: var(--heading-color, #111827);
}

.dashboard-period-option.active {
    background: var(--surface-color, #ffffff);

    color: var(--primary-color, #2563eb);

    box-shadow: var(
        --shadow-sm,
        0 1px 2px rgba(0, 0, 0, 0.05)
    );
}


/* =========================================================
   30. SEARCH / DASHBOARD COMMAND
   ========================================================= */

.dashboard-search {
    position: relative;

    width: 100%;
    max-width: 320px;
}

.dashboard-search input {
    width: 100%;

    padding-left: 38px;
}

.dashboard-search-icon {
    position: absolute;

    left: 12px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted, #9ca3af);

    pointer-events: none;
}


/* =========================================================
   31. METRIC COMPARISON
   ========================================================= */

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

.dashboard-comparison-item {
    padding: 13px;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
}

.dashboard-comparison-label {
    display: block;

    font-size: 10px;

    color: var(--text-muted, #6b7280);
}

.dashboard-comparison-value {
    display: block;

    margin-top: 4px;

    font-size: 17px;
    font-weight: 700;
}

.dashboard-comparison-value.current {
    color: var(--primary-color, #2563eb);
}

.dashboard-comparison-value.previous {
    color: var(--text-muted, #6b7280);
}


/* =========================================================
   32. DASHBOARD RESPONSIVE — LARGE TABLETS
   ========================================================= */

@media (max-width: 1200px) {

    .dashboard-container {
        padding: 20px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-col-8,
    .dashboard-col-7 {
        grid-column: span 8;
    }

    .dashboard-col-5,
    .dashboard-col-4 {
        grid-column: span 4;
    }

    .dashboard-col-6 {
        grid-column: span 6;
    }
}


/* =========================================================
   33. DASHBOARD RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 992px) {

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

    .dashboard-header-actions {
        justify-content: flex-start;
    }

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

    .dashboard-welcome-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-toolbar-right {
        justify-content: flex-start;
    }

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

    .dashboard-col-12,
    .dashboard-col-8,
    .dashboard-col-7,
    .dashboard-col-6,
    .dashboard-col-5,
    .dashboard-col-4,
    .dashboard-col-3 {
        grid-column: span 2;
    }

    .dashboard-lead-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-status-row {
        grid-template-columns: 110px minmax(80px, 1fr) 45px;
    }
}


/* =========================================================
   34. DASHBOARD RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .dashboard-container {
        padding: 16px;
    }

    .dashboard-section {
        margin-bottom: 20px;
    }

    .dashboard-title {
        font-size: 23px;
    }

    .dashboard-subtitle {
        font-size: 13px;
    }

    .dashboard-welcome {
        padding: 20px;
        border-radius: 14px;
    }

    .dashboard-welcome-title {
        font-size: 20px;
    }

    .dashboard-welcome-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-welcome-actions .btn {
        width: 100%;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-stat-card {
        padding: 16px;
    }

    .dashboard-stat-value {
        font-size: 26px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-col-12,
    .dashboard-col-8,
    .dashboard-col-7,
    .dashboard-col-6,
    .dashboard-col-5,
    .dashboard-col-4,
    .dashboard-col-3 {
        grid-column: span 1;
    }

    .dashboard-panel-header {
        padding: 15px;
    }

    .dashboard-panel-body {
        padding: 15px;
    }

    .dashboard-panel-footer {
        padding: 12px 15px;
    }

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

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

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

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

    .dashboard-period-selector {
        width: 100%;
    }

    .dashboard-period-option {
        flex: 1;
    }

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

    .dashboard-attention {
        flex-wrap: wrap;
    }

    .dashboard-attention-action {
        width: 100%;
        margin-left: 46px;
    }
}


/* =========================================================
   35. DASHBOARD RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .dashboard-container {
        padding: 12px;
    }

    .dashboard-header {
        margin-bottom: 18px;
    }

    .dashboard-title {
        font-size: 21px;
    }

    .dashboard-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-header-actions .btn {
        width: 100%;
    }

    .dashboard-toolbar {
        padding: 12px;
    }

    .dashboard-toolbar-left,
    .dashboard-toolbar-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-filter {
        width: 100%;
        min-width: 0;
    }

    .dashboard-search {
        max-width: none;
    }

    .dashboard-stat-top {
        margin-bottom: 12px;
    }

    .dashboard-stat-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .dashboard-stat-value {
        font-size: 24px;
    }

    .dashboard-panel-title {
        font-size: 14px;
    }

    .dashboard-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-panel-actions {
        justify-content: flex-start;
    }

    .dashboard-status-row {
        grid-template-columns: 85px minmax(60px, 1fr) 38px;
        gap: 7px;
    }

    .dashboard-status-name,
    .dashboard-status-count {
        font-size: 10px;
    }

    .dashboard-funnel-row {
        grid-template-columns: 75px minmax(60px, 1fr) 40px;
    }

    .dashboard-funnel-label,
    .dashboard-funnel-value {
        font-size: 10px;
    }

    .dashboard-revenue-value {
        font-size: 27px;
    }

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

    .dashboard-attention-action {
        margin-left: 0;
    }
}


/* =========================================================
   36. ACCESSIBILITY
   ========================================================= */

.dashboard a:focus-visible,
.dashboard button:focus-visible,
.dashboard input:focus-visible,
.dashboard select:focus-visible,
.dashboard textarea:focus-visible {
    outline: 3px solid
        var(--focus-color, rgba(37, 99, 235, 0.25));

    outline-offset: 2px;
}


/* =========================================================
   37. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .dashboard *,
    .dashboard *::before,
    .dashboard *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   38. PRINT
   ========================================================= */

@media print {

    .dashboard-container {
        max-width: none;
        padding: 0;
    }

    .dashboard-header-actions,
    .dashboard-toolbar,
    .dashboard-panel-actions,
    .dashboard-quick-actions {
        display: none !important;
    }

    .dashboard-panel,
    .dashboard-stat-card {
        box-shadow: none !important;
        break-inside: avoid;
    }

    .dashboard-grid {
        gap: 12px;
    }

    .dashboard-welcome {
        color: #000000;
        background: #ffffff;
        border: 1px solid #cccccc;
    }

    .dashboard-welcome-text {
        color: #333333;
    }
}