:root {
    --surface: #ffffff;
    --border: rgba(15, 23, 42, 0.12);
    --accent-solid: #0098b2;
    --accent-solid-2: #00b0c8;
}

/* 방문자 통계 전용 */
.stats-card {
    margin-bottom: 10px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: block;
}

.no-hover:hover {
    box-shadow: 0 4px 24px rgba(33,150,243,0.10);
    background: #e8f2fc;
}

.filter-section {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.campaign-card.stats-card,
.campaign-card.stats-card:hover {
    box-shadow: none;
}

.campaign-card.stats-card + .campaign-card.stats-card {
    margin-top: 12px;
}

.stats-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.stats-title { font-size: 18px; font-weight: 900; color: #0f5f7f; letter-spacing: .2px; }
.stats-desc { font-size: 13px; color: rgba(55, 103, 119, 0.9); }

.pillbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.stats-pillbar { justify-content: flex-end; }
.stats-pill {
    background: #ffffff;
    border: 1px solid rgba(0, 152, 178, 0.22);
    color: #0f5f7f;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0, 88, 110, 0.12);
}
.stats-pill.active {
    background: linear-gradient(135deg, var(--accent-solid), var(--accent-solid-2));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(0, 88, 110, 0.18);
}

.chart-area {
    position: relative;
    width: 100%;
    min-height: 320px;
    margin-top: 14px;
    background: var(--surface);
    border-radius: 14px;
    padding: 12px;
    box-shadow: none;
    border: 1px solid var(--border);
    box-sizing: border-box;
    overflow: hidden;
}
.chart-area canvas { width: 100% !important; height: 320px !important; }
.chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #475569;
    pointer-events: none;
}

.stats-table-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stats-summary { color: #5a7c8a; font-size: 12px; font-weight: 800; margin-top: 6px; }
.stats-table-wrap { background: var(--surface); border-radius: 14px; box-shadow: none; border: 1px solid var(--border); margin-top: 12px; overflow: hidden; }
.stats-table { margin: 0; width: 100%; border-collapse: collapse; table-layout: fixed; }
.stats-table thead th { background: #e0f2fe; color: #0f172a; }
.stats-table td, .stats-table th { padding: 10px 12px; font-size: 0.82rem; white-space: normal; }
.stats-table th:first-child, .stats-table td:first-child { width: 62%; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.stats-table th:last-child, .stats-table td:last-child { width: 38%; min-width: 0; text-align: right; }
.stats-table tbody tr:nth-child(2n) td { background: #f8fafc; }
.stats-table tbody tr:hover td { background: #f1f5f9; }

@media (max-width: 640px) {
    .stats-top { flex-direction: column; align-items: flex-start; }
    .chart-area { min-height: 260px; }
    .chart-area canvas { height: 260px !important; }
    .stats-pillbar { width: 100%; }
    .stats-pillbar .pill { flex: 1; text-align: center; }
}
