﻿/* ===== Dashboard-specific styles (add to wa-thread.css or a separate file) ===== */

/* ── KPI cards grid ── */
.wa-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.wa-kpi-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e2e2;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.15s;
    min-width: 0;
}

.wa-kpi-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.09);
}

.wa-kpi-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.wa-kpi-label {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.6;
    margin-bottom: 2px;
    white-space: nowrap;
}

.wa-kpi-value {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
}

/* ── Two-column layout ── */
.wa-dash-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 720px) {
    .wa-dash-2col {
        grid-template-columns: 1fr;
    }
}

/* ── Section header inside a table-wrap ── */
.wa-dash-section-header {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 1px solid #e8e8e8;
    background: #f9f9f9;
}

/* ── Progress bar (used for share / read rate) ── */
.wa-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.wa-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #25d366;
    min-width: 2px;
    transition: width 0.4s ease;
}

.wa-progress-label {
    font-size: 0.8rem;
    opacity: 0.7;
    white-space: nowrap;
    min-width: 32px;
}

    /* ===== Dashboard-specific styles (add to wa-thread.css or a separate file) ===== */

/* ── KPI cards grid ── */
.wa-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.wa-kpi-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e2e2;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.15s;
    min-width: 0;
    text-decoration: none;
}

.wa-kpi-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.09);
}

.wa-kpi-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.wa-kpi-label {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.6;
    margin-bottom: 2px;
    white-space: nowrap;
}

.wa-kpi-value {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
}

/* ── Two-column layout ── */
.wa-dash-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 720px) {
    .wa-dash-2col {
        grid-template-columns: 1fr;
    }
}

/* ── Section header inside a table-wrap ── */
.wa-dash-section-header {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 1px solid #e8e8e8;
    background: #f9f9f9;
}

/* ── Clickable table rows ── */
.wa-dash-row-link:hover {
    background: #f0f7ff !important;
}

.wa-dash-row-link:hover td:first-child::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.45;
}

/* ── Progress bar (used for share / read rate) ── */
.wa-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.wa-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #25d366;
    min-width: 2px;
    transition: width 0.4s ease;
}

.wa-progress-label {
    font-size: 0.8rem;
    opacity: 0.7;
    white-space: nowrap;
    min-width: 32px;
}

    /* ===== Dashboard-specific styles (add to wa-thread.css or a separate file) ===== */

/* ── KPI cards grid ── */
.wa-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.wa-kpi-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e2e2;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.15s;
    min-width: 0;
}

.wa-kpi-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.09);
}

a.wa-kpi-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.wa-kpi-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.13);
    border-color: #b0b0b0;
    transform: translateY(-1px);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.wa-kpi-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.wa-kpi-label {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.6;
    margin-bottom: 2px;
    white-space: nowrap;
}

.wa-kpi-value {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
}

/* ── Two-column layout ── */
.wa-dash-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 720px) {
    .wa-dash-2col {
        grid-template-columns: 1fr;
    }
}

/* ── Section header inside a table-wrap ── */
.wa-dash-section-header {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 1px solid #e8e8e8;
    background: #f9f9f9;
}

/* ── Clickable table rows ── */
.wa-dash-row-link:hover {
    background: #f0f7ff !important;
}

.wa-dash-row-link:hover td:first-child::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.45;
}

/* ── Progress bar (used for share / read rate) ── */
.wa-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.wa-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #25d366;
    min-width: 2px;
    transition: width 0.4s ease;
}

.wa-progress-label {
    font-size: 0.8rem;
    opacity: 0.7;
    white-space: nowrap;
    min-width: 32px;
}