@charset "utf-8";
/* ==========================================================================
   요약 카드 공통 — 서비스 관리 화면(svc-card) 디자인으로 통일
   대상 : .statsum .card  (상담/예약/입실, 통계 5개, 경영정보, 대시보드 상단)
          .db-kpis .db-kpi (대시보드 '이번 달 현황')
   마크업은 그대로 두고 CSS 로만 배치를 바꿈
     기존 : 숫자(.amt) → 아래 [라벨(.lbl) | 보조값(.cnt)]
     변경 : 라벨(위) → 숫자 → 점선 아래 보조값
   카드 색 : 순서대로 파랑 / 초록 / 주황 / 보라 (왼쪽 띠 + 라벨 점)
   ========================================================================== */

.statsum{gap:14px;}
.statsum .card,
.db-kpis .db-kpi{
    --c:#5D8AF3;
    position:relative; display:flex; flex-direction:column;
    padding:16px 18px 14px; overflow:hidden;
    background:#fff; border:1px solid #e3e6ec; border-radius:10px;
    box-shadow:0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.05);
}
.statsum .card::before,
.db-kpis .db-kpi::before{content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--c);}

.statsum .card:nth-child(4n+1), .db-kpis .db-kpi:nth-child(4n+1){--c:#5D8AF3;}
.statsum .card:nth-child(4n+2), .db-kpis .db-kpi:nth-child(4n+2){--c:#1f9d61;}
.statsum .card:nth-child(4n+3), .db-kpis .db-kpi:nth-child(4n+3){--c:#e08a00;}
.statsum .card:nth-child(4n+4), .db-kpis .db-kpi:nth-child(4n+4){--c:#7c4ddb;}

/* .foot 안의 라벨·보조값을 카드 기준으로 배치 */
.statsum .card .foot{display:contents;}

/* 라벨 (맨 위) */
.statsum .card .lbl,
.db-kpis .db-kpi .lbl{
    order:-1; display:flex; align-items:center; gap:8px; margin:0;
    font-size:14px; font-weight:600; color:#52514e;
}
.statsum .card .lbl::before,
.db-kpis .db-kpi .lbl::before{content:''; flex:none; width:8px; height:8px; border-radius:50%; background:var(--c);}

/* 타이틀 앞 아이콘 (카드의 data-icon) — 카드 색(--c)으로 칠한 선 아이콘, 없으면 위의 점 */
.statsum .card[data-icon] .lbl::before,
.db-kpis .db-kpi[data-icon] .lbl::before{
    width:18px; height:18px; border-radius:0; background:var(--c);
    -webkit-mask:var(--ico) center / contain no-repeat; mask:var(--ico) center / contain no-repeat;
}
[data-icon="chat"]{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");}
[data-icon="in"]{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/><path d='m10 17 5-5-5-5'/><path d='M15 12H3'/></svg>");}
[data-icon="bed"]{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 4v16'/><path d='M2 8h18a2 2 0 0 1 2 2v10'/><path d='M2 17h20'/><path d='M6 8v9'/></svg>");}
[data-icon="pay"]{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2'/><path d='M2 10h20'/><path d='M6 15h4'/></svg>");}
[data-icon="cal-check"]{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/><path d='m9 16 2 2 4-4'/></svg>");}
[data-icon="cal-month"]{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/><path d='M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01'/></svg>");}
[data-icon="cal-week"]{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/><path d='M7 15h10'/></svg>");}
[data-icon="clock"]{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");}
[data-icon="trend"]{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v18h18'/><path d='m7 15 4-4 3 3 5-6'/></svg>");}
[data-icon="pie"]{--ico:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21.21 15.89A10 10 0 1 1 8 2.83'/><path d='M22 12A10 10 0 0 0 12 2v10z'/></svg>");}

/* 숫자 */
.statsum .card .amt,
.db-kpis .db-kpi .val{
    order:0; margin:6px 0 10px;
    font-size:26px; font-weight:700; line-height:1.2; letter-spacing:-.5px;
    color:#0b0b0b; white-space:nowrap; font-variant-numeric:tabular-nums;
}
.statsum .card .amt small,
.db-kpis .db-kpi .val small{margin-left:3px; font-size:14px; font-weight:500; color:#52514e;}

/* 보조값 (점선 아래) */
.statsum .card .cnt,
.db-kpis .db-kpi .sub{
    order:1; margin-top:auto; padding-top:10px; border-top:1px dashed #e3e6ec;
    font-size:13px; color:#52514e; font-variant-numeric:tabular-nums;
}
.statsum .card .cnt:empty{display:none;}
