/* ==========================================================================
   dashboard_design.css — 메인 대시보드(첨부 디자인) 콘텐츠 스타일
   첨부 HTML의 <style> 중 .content(.greet + .bento) 영역만 가져와
   전부 #dash 컨테이너로 스코프 → 기존 Bootstrap(.card/.badge 등)과 충돌 방지.
   전역 reset(*), body 배경, 바깥 .wrap/.shell/.nav 래퍼는 의도적으로 제외.
   ========================================================================== */

#dash {
    /* 테마: 쿨 단일 톤 */
    --bg: #EDEEF0; --card: #FFFFFF; --ink: #16161A; --ink2: #3C3C42;
    --muted: #8A8D93; --faint: #AEB1B8; --line: #ECEDF0; --soft: #F3F4F6;
    --red: #DD1402; --red-soft: #FCE7E3; --gray: #9A9DA3; --slate: #33343C;
    --amber: #B07D14; --amber-soft: #F6EDD6; --cream: #F6F7F9; --sand: #EEF0F2;
    --blush: #FCE8E5; --busy: #DBDDE1; --warm: #6E727A; --r: 22px;
    --shadow: 0 1px 2px rgba(20,22,28,.05), 0 16px 32px -14px rgba(30,36,46,.20);
    font-family: 'NanumSquare_ac', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}
#dash *, #dash *::before, #dash *::after { box-sizing: border-box; }
#dash .ico { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#dash .mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* greeting */
#dash .greet { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
#dash .greet h1 { font-size: 23px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; margin: 0; }
#dash .greet h1 span { color: var(--muted); font-weight: 600; }
#dash .greet-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#dash .pill { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
#dash .pill svg { color: var(--muted); }
#dash .greet-r .vendor { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink2); padding: 0 4px; white-space: nowrap; }
#dash .greet-r .vendor svg { width: 17px; height: 17px; fill: var(--red); stroke: none; }
#dash .gbtn { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 999px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border: none; white-space: nowrap; text-decoration: none; }
#dash .gbtn svg { width: 16px; height: 16px; }
#dash .gbtn.red { background: var(--red); color: #fff; }
#dash .gbtn.dark { background: var(--ink); color: #fff; }
#dash .gbtn.accent { background: var(--slate); color: #fff; }
#dash .gbtn.ghost { background: var(--card); color: var(--ink2); box-shadow: var(--shadow); }

/* bento */
#dash .bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-rows: minmax(10px, auto); }
#dash .card { background: var(--card); border: none; border-radius: var(--r); box-shadow: var(--shadow); padding: 15px 20px; min-width: 0; }
/* 상단 첫 줄(차량현황/운행실적/당월수입) 3개 카드만 살짝 컴팩트하게 */
#dash .bento > :nth-child(-n+3) { padding-top: 11px; padding-bottom: 11px; }
#dash .sp1 { grid-column: span 1; } #dash .sp2 { grid-column: span 2; }
#dash .ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
#dash .ch h2 { font-size: 15px; font-weight: 800; white-space: nowrap; margin: 0; }
#dash .ch .sub { font-size: 11.5px; color: var(--faint); margin-top: 3px; white-space: nowrap; }
#dash .exp { width: 30px; height: 30px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; color: var(--ink); cursor: pointer; flex: 0 0 auto; }
#dash .seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 2px; }
#dash .seg button { border: none; background: none; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--muted); padding: 7px 13px; border-radius: 999px; cursor: pointer; }
#dash .seg button.on { background: var(--ink); color: #fff; }
#dash .badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
#dash .badge.up { color: var(--red); background: var(--red-soft); }

/* 차량 현황 */
#dash .vstat-list { display: flex; flex-direction: column; gap: 6px; }
#dash .card:has(.vstat-list) { display: flex; flex-direction: column; background-image: radial-gradient(#ECEDF0 1.2px, transparent 1.5px); background-size: 15px 15px; }
#dash .card:has(.vstat-list) .vstat-list { flex: 1; justify-content: center; }
#dash .veh-total { display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 16px; border-radius: 16px; background: var(--soft); margin-bottom: 7px; }
#dash .veh-total .vt-l { font-size: 13.5px; color: var(--ink2); font-weight: 700; }
#dash .veh-total .vt-n { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; }
#dash .veh-total .vt-n small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 2px; }
#dash .veh-total .vt-badge { font-size: 11px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 4px 10px; border-radius: 999px; }
#dash .vstat { display: flex; align-items: center; gap: 12px; padding: 5px 13px; border-radius: 15px; background: var(--soft); }
#dash .vstat .vi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--ink); flex: 0 0 auto; }
#dash .vstat.hot .vi { background: var(--red); color: #fff; }
#dash .vstat .vt { font-size: 15px; font-weight: 800; white-space: nowrap; }
#dash .vstat .vt small { display: block; font-size: 13px; font-weight: 600; color: #6B6B72; margin-top: 1px; white-space: nowrap; }
#dash .vstat b { margin-left: auto; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
#dash .vstat b small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 1px; }

/* black combo hero */
#dash .hero { background: #fff; color: var(--ink); position: relative; overflow: hidden; display: flex; flex-direction: column; }
#dash .hero .ch h2 { color: var(--ink); }
#dash .hero-pills { display: flex; gap: 10px; margin-bottom: 6px; }
#dash .hero-pill { flex: 1; background: #fff; border-radius: 16px; padding: 9px 15px; }
#dash .hero-pill .t { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink); font-weight: 700; }
#dash .hero-pill .t .i { width: 24px; height: 24px; border-radius: 8px; background: var(--sand); display: grid; place-items: center; color: var(--ink); }
#dash .hero-pill .v { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; display: flex; align-items: center; justify-content: space-between; }
#dash .combo { width: 100%; flex: 1; min-height: 60px; margin-top: 6px; }
#dash .hero-foot { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--faint); font-weight: 600; }
#dash .hero-foot span { display: inline-flex; align-items: center; gap: 6px; }
#dash .hero-foot .d { width: 9px; height: 9px; border-radius: 50%; }

/* wallet */
#dash .wallet { display: flex; flex-direction: column; }
#dash .wallet .ch { margin-top: 10px; }  /* 제목이 상단에 너무 붙어 보여 아래로 내림 */
#dash .inc-comp { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
#dash .ic-title { font-size: 12px; font-weight: 700; color: var(--faint); margin-bottom: 11px; }
#dash .ic-bar { display: flex; gap: 3px; height: 10px; margin-bottom: 13px; background: var(--soft); border-radius: 999px; }
#dash .ic-bar i { display: block; height: 100%; border-radius: 999px; }
#dash .ic-leg { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
#dash .ic-leg li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); font-weight: 600; }
#dash .ic-leg .d { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 auto; }
#dash .ic-leg b { margin-left: auto; font-weight: 800; }
#dash .wallet .bal-l { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; margin-top: 12px; }
#dash .wallet .bal { font-size: 27px; font-weight: 800; letter-spacing: -0.04em; margin-top: 7px; }
#dash .wallet .sp-l { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
#dash .barwrap { position: relative; height: 11px; border-radius: 999px; background: var(--soft); }
#dash .barwrap .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: repeating-linear-gradient(45deg, #F2543F 0 5px, #DD1402 5px 10px); }
#dash .barwrap .knob { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 23px; height: 17px; border-radius: 7px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; gap: 2.5px; }
#dash .barwrap .knob i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink2); }
#dash .wallet .sp-sub { font-size: 11.5px; color: var(--faint); margin-top: 10px; }
#dash .wallet .sp-sub b { color: var(--ink); font-weight: 700; }

/* ring */
#dash .ring-wrap { position: relative; display: grid; place-items: center; padding: 4px 0; }
#dash .ring-svg { width: 140px; height: 140px; transform: rotate(-90deg); }
#dash .ring-cap { position: absolute; text-align: center; }
#dash .ring-cap b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; display: block; white-space: nowrap; }
#dash .ring-cap i { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 600; }
#dash .ring-stats { display: flex; gap: 7px; margin-top: 15px; }
#dash .ring-stats div { flex: 1; background: var(--soft); border-radius: 13px; padding: 10px 6px; text-align: center; }
#dash .ring-stats b { font-size: 16px; font-weight: 800; display: block; }
#dash .ring-stats b.r { color: var(--red); }
#dash .ring-stats span { font-size: 10px; color: var(--muted); font-weight: 600; }

/* waveform / trend */
#dash .wave-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
#dash .wave-top .v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
#dash .wave-top .v small { font-size: 12px; color: var(--muted); font-weight: 600; }
#dash .wave-chart { width: 100%; flex: 1; min-height: 78px; display: block; }
#dash .trend { display: flex; flex-direction: column; }

/* calendar heatmap */
#dash .cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
#dash .cal-head .m { font-size: 13.5px; font-weight: 800; margin: 0 auto 0 0; }
#dash .cal-nav { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--ink2); cursor: pointer; }
#dash .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
#dash .cal-grid .wd { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--faint); padding-bottom: 2px; }
#dash .cal-cell { height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink2); background: var(--soft); }
#dash .cal-cell.busy { background: var(--busy); color: var(--ink2); }
#dash .cal-cell.today { background: var(--red); color: #fff; }
#dash .cal-cell.edu { background: var(--red-soft); color: var(--red); }
#dash .cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
#dash .cal-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
#dash .cal-legend i { width: 11px; height: 11px; border-radius: 4px; flex: 0 0 auto; }

/* route revenue rank list */
#dash .rrank { display: flex; flex-direction: column; gap: 10px; }
#dash .rrank-row { display: flex; align-items: center; gap: 13px; }
#dash .rrank-no { width: 24px; height: 24px; border-radius: 8px; background: var(--soft); color: var(--ink2); font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
#dash .rrank-row.t1 .rrank-no { background: var(--red); color: #fff; }
#dash .rrank-row.t2 .rrank-no { background: var(--ink); color: #fff; }
#dash .rrank-row.t3 .rrank-no { background: var(--gray); color: #fff; }
#dash .rrank-nm { width: 82px; font-size: 12.5px; font-weight: 700; flex: 0 0 auto; white-space: nowrap; }
#dash .rrank-bar { flex: 1; height: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; min-width: 0; }
#dash .rrank-bar i { display: block; height: 100%; border-radius: 999px; }
#dash .rrank-amt { width: 104px; text-align: right; font-size: 12.5px; font-weight: 800; color: var(--ink); flex: 0 0 auto; font-variant-numeric: tabular-nums; }

/* tracker (금일 운행) */
#dash .tracker { background: #33343C; background-image: radial-gradient(120% 90% at 100% 100%, rgba(221,20,2,.42) 0%, rgba(221,20,2,0) 45%); color: #fff; display: flex; flex-direction: column; }
#dash .tracker .ch h2 { color: #fff; }
#dash .tracker .lab { font-size: 12px; color: rgba(255,255,255,.62); font-weight: 600; text-align: center; margin-top: auto; }
#dash .tracker .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 auto; text-align: center; }
#dash .ctrl-link { display: inline-flex; align-self: center; align-items: center; gap: 8px; margin-top: 16px; background: var(--red); color: #fff; border-radius: 12px; padding: 9px 15px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
#dash .ctrl-link .ci { width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: 0 0 auto; }
#dash .tracker .live2 { display: inline-flex; align-self: center; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.62); margin-top: 10px; }
#dash .tracker .live2 i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* 금일 배차 */
#dash .card.disp { display: flex; flex-direction: column; justify-content: flex-start; }
#dash .disp-split { display: flex; gap: 4px; height: 12px; margin: 4px 0 12px; }
#dash .disp-split i { display: block; height: 100%; border-radius: 999px; }
#dash .disp-split i.on { background: var(--red); }
#dash .disp-split i.off { background: var(--busy); }
#dash .disp-grid { display: flex; gap: 10px; }
#dash .disp-grid .dstat { flex: 1; background: var(--soft); border-radius: 14px; padding: 13px 14px; }
#dash .dstat b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
#dash .dstat b small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 2px; }
#dash .dstat span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 7px; }
#dash .dstat .d { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 auto; }
#dash .dstat .d.on { background: var(--red); }
#dash .dstat .d.off { background: var(--busy); }
#dash .disp-shifts { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
#dash .disp-shifts .stitle { font-size: 11.5px; font-weight: 700; color: var(--faint); letter-spacing: 0.04em; }
#dash .dshift { display: flex; align-items: center; gap: 11px; }
#dash .dshift > span { width: 50px; font-size: 12px; color: var(--ink2); font-weight: 600; flex: 0 0 auto; }
#dash .dshift .dbar { flex: 1; height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; min-width: 0; }
#dash .dshift .dbar i { display: block; height: 100%; border-radius: 999px; }
#dash .dshift b { width: 32px; text-align: right; font-size: 12.5px; font-weight: 800; flex: 0 0 auto; font-variant-numeric: tabular-nums; }

/* charts row */
#dash .ch-leg { display: flex; gap: 12px; }
#dash .ch-leg span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
#dash .ch-leg em { width: 10px; height: 10px; border-radius: 3px; font-style: normal; }
#dash .bars2 { width: 100%; height: auto; aspect-ratio: 720 / 280; display: block; }
#dash .card:has(.bars2) { display: flex; flex-direction: column; }
#dash .card:has(.bars2) .bars2 { margin-top: auto; margin-bottom: auto; }
#dash .pies { display: flex; gap: 16px; }
#dash .pie { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
#dash .pie .pt { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
#dash .dn { width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
#dash .dn .hole { width: 78px; height: 78px; border-radius: 50%; background: var(--card); display: grid; place-items: center; text-align: center; }
#dash .dn .hole b { font-size: 18px; font-weight: 800; color: var(--red); }
#dash .dn .hole i { display: block; font-style: normal; font-size: 10px; color: var(--muted); font-weight: 600; }
#dash .leg { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
#dash .leg li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
#dash .leg .d { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 auto; }
#dash .leg b { margin-left: auto; font-weight: 700; }

@media (max-width: 1180px) {
    #dash .bento { grid-template-columns: repeat(2, 1fr); }
    #dash .sp2 { grid-column: span 2; }
}
@media (max-width: 680px) {
    #dash .bento { grid-template-columns: 1fr; }
    #dash .sp1, #dash .sp2 { grid-column: span 1; }
}
